Public bug reported:

Tomcat 7 package for Ubuntu 16.04.2 LTS (xenial) was compiled with java
1.8.

Must be compiled with java 1.7 due to compilation issues that leads to
exceptions like this:

```
ERROR - ContextLoader.initWebApplicationContext(225) |2016-05-06 08:38:40,328| 
Context initialization failed
java.lang.NoSuchMethodError: 
java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
at 
org.apache.catalina.core.ApplicationContext.getInitParameterNames(ApplicationContext.java:368)
at 
org.apache.catalina.core.ApplicationContextFacade.getInitParameterNames(ApplicationContextFacade.java:367)
at 
org.springframework.web.context.support.WebApplicationContextUtils.registerEnvironmentBeans(WebApplicationContextUtils.java:195)
at 
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.postProcessBeanFactory(AbstractRefreshableWebApplicationContext.java:144)
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:404)

```

It is detailed by Mike Seaton at this post:

https://talk.openmrs.org/t/problem-starting-platform-on-
ubuntu-16-04-lts/6190/3

> If I install the tomcat7-user package on Ubuntu 14.04, the contents of
META-INF/MANIFEST.MF in catalina.jar (found in /usr/share/tomcat7/lib/)
are:

```
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.3
Created-By: 1.7.0_79-b14 (Oracle Corporation)
Specification-Title: Apache Tomcat
Specification-Version: 7.0
Specification-Vendor: Apache Software Foundation
Implementation-Title: Apache Tomcat
Implementation-Version: 7.0.52
Implementation-Vendor: Apache Software Foundation
X-Compile-Source-JDK: 1.6
X-Compile-Target-JDK: 1.6
```
> By contrast, installing the same package on Ubuntu 16.04 shows these contents 
> in the same file:

```
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.6
Created-By: 1.8.0_01-internal-b15 (Oracle Corporation)
Specification-Title: Apache Tomcat
Specification-Version: 7.0
Specification-Vendor: Apache Software Foundation
Implementation-Title: Apache Tomcat
Implementation-Version: 7.0.68
Implementation-Vendor: Apache Software Foundation
X-Compile-Source-JDK: 1.6
X-Compile-Target-JDK: 1.6
```

My current workaround is to replace /usr/share/tomcat7 with official
apache tomcat7 binary tar.gz .

** Affects: tomcat7 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1669093

Title:
  tomcat7 package compiled with java 1.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1669093/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to