New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem installing on Debian 7.x Wheezy #385

Closed
blainepalmer opened this Issue Jul 2, 2013 · 4 comments

Comments

Projects
None yet
4 participants
@blainepalmer

blainepalmer commented Jul 2, 2013

I installed by following the directions and received the following error:

org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/commafeed]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.UnsupportedClassVersionError: com/commafeed/frontend/rest/Enums : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:314)
        at org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:179)
        at org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:73)
        at org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:1222)
        at org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:417)
        at org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:340)
        at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:379)
        at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:884)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1111)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1033)
        at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:124)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 11 more

Version information from Maven:

Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_03, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.9.6", arch: "amd64", family: "unix"

I installed it following the MySQL instructions.

I would be interested in finding out what's necessary to get this up and running on Debian Wheezy.

Thanks for any assistance you can provide.

@Athou

This comment has been minimized.

Show comment
Hide comment
@Athou

Athou Jul 2, 2013

Owner

Is tomee starting using your java7? This is an error happening if you're using an older version of java with classes compiled for java7

Owner

Athou commented Jul 2, 2013

Is tomee starting using your java7? This is an error happening if you're using an older version of java with classes compiled for java7

@blainepalmer

This comment has been minimized.

Show comment
Hide comment
@blainepalmer

blainepalmer Jul 2, 2013

I've not installed any other packages on this system besides those in the instructions.

/opt/commafeed/logs# java -version
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.5) (6b27-1.12.5-1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

It seems like you may be right, but after running apt-get remove openjdk-6-jre the results of java -version are the same. It appears that this was installed by default.

root@server:/opt/commafeed# ls -la /usr/bin/java
lrwxrwxrwx 1 root root 22 Jul  2 14:32 /usr/bin/java -> /etc/alternatives/java
root@server:/opt/commafeed# ls -la /etc/alternatives/java
lrwxrwxrwx 1 root root 46 Jul  2 14:32 /etc/alternatives/java -> /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java

Now, dpkg and apt-get both tell me java-6-openjdk isn't installed, so I'm not sure what's going on there.

So I tried re-symlinking the JRE bin in /etc/alternatives

root@server:/opt/commafeed# rm /etc/alternatives/java
root@server:/opt/commafeed# ln -s /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java /etc/alternatives/java
root@server:/opt/commafeed# ls -la /etc/alternatives/java
lrwxrwxrwx 1 root root 46 Jul  2 15:57 /etc/alternatives/java -> /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java

Great success!

image

Thank you for pointing me in the right direction :)

blainepalmer commented Jul 2, 2013

I've not installed any other packages on this system besides those in the instructions.

/opt/commafeed/logs# java -version
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.5) (6b27-1.12.5-1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

It seems like you may be right, but after running apt-get remove openjdk-6-jre the results of java -version are the same. It appears that this was installed by default.

root@server:/opt/commafeed# ls -la /usr/bin/java
lrwxrwxrwx 1 root root 22 Jul  2 14:32 /usr/bin/java -> /etc/alternatives/java
root@server:/opt/commafeed# ls -la /etc/alternatives/java
lrwxrwxrwx 1 root root 46 Jul  2 14:32 /etc/alternatives/java -> /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java

Now, dpkg and apt-get both tell me java-6-openjdk isn't installed, so I'm not sure what's going on there.

So I tried re-symlinking the JRE bin in /etc/alternatives

root@server:/opt/commafeed# rm /etc/alternatives/java
root@server:/opt/commafeed# ln -s /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java /etc/alternatives/java
root@server:/opt/commafeed# ls -la /etc/alternatives/java
lrwxrwxrwx 1 root root 46 Jul  2 15:57 /etc/alternatives/java -> /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java

Great success!

image

Thank you for pointing me in the right direction :)

@reggna

This comment has been minimized.

Show comment
Hide comment
@reggna

reggna Jul 29, 2013

Further reference for fellow Ubuntu server users: apt-get remove openjdk-6-jre-headless should solve this problem. If not, it might be worth just running: apt-get remove openjdk-6-*

reggna commented Jul 29, 2013

Further reference for fellow Ubuntu server users: apt-get remove openjdk-6-jre-headless should solve this problem. If not, it might be worth just running: apt-get remove openjdk-6-*

@dsferruzza

This comment has been minimized.

Show comment
Hide comment
@dsferruzza

dsferruzza Jul 29, 2013

Personally, I solved the problem using update-alternatives --config java which allows to choose the version of Java we want to use.

dsferruzza commented Jul 29, 2013

Personally, I solved the problem using update-alternatives --config java which allows to choose the version of Java we want to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment