Yep your code needs java 8, ensure you didnt upgrade java version and kept
an older marker (.openshift/markers/java[7|8])


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2016-02-26 16:27 GMT+01:00 Daniel Cunha <[email protected]>:

> Unsupported major.minor version 52.0
> Sounds like an incompatibility java version.
>
> Look what version of the JDK you have on cloud and what version your code
> need to have.
>
>
> On Fri, Feb 26, 2016 at 6:51 AM, mauro2java2011 <[email protected]>
> wrote:
>
> > i have pushed a tomee to openshift but when i start i not get any web
> page
> > .
> > i have also ebable the apps dir into tomee.xml
> > into apps dir i have put MIaee.ear that contain a ejb and a war
> >
> > my tomee not show any page but it is started .
> > into catalina.out i get:
> >
> >
> >
> > [miotomee-mauro.rhcloud.com 56d0302889f5cf7394000152]\> ls
> > app-deployments  app-root  diy  git  mysql  phpmyadmin
> > [miotomee-mauro.rhcloud.com 56d0302889f5cf7394000152]\> cd
> > $OPENSHIFT_DATA_DIR
> > [miotomee-mauro.rhcloud.com data]\> cd tomee/logs
> > [miotomee-mauro.rhcloud.com logs]\> ls
> > catalina.2016-02-26.log      localhost_access_log.2016-02-26.txt
> > catalina.out                 manager.2016-02-26.log
> > diy.log                      mysql.log
> > host-manager.2016-02-26.log  phpmyadmin.log
> > localhost.2016-02-26.log
> > [miotomee-mauro.rhcloud.com logs]\> vim catalina.2016-02-26.log
> > INFO: Configuring enterprise application:
> >
> /var/lib/openshift/56d0302889f5cf7394000152/app-root/data/tomee/apps/MIaee
> > Feb 26, 2016 7:24:02 AM org.apache.openejb.OpenEJB$Instance <init>
> > SEVERE: OpenEJB has encountered a fatal error and cannot be started: The
> > Assembler encountered an unexpected error while attempting to build the
> > container
> >
> > system.
> > java.lang.UnsupportedClassVersionError: nuovi/mauro/ejbs/NuovoEjb :
> > Unsupported major.minor version 52.0
> >         at java.lang.ClassLoader.defineClass1(Native Method)
> >         at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
> >         at
> > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> >         at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
> >         at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
> >         at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> >         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
> >         at
> >
> org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:205)
> >         at
> >
> org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:79)
> >         at
> > org.apache.xbean.finder.archive.JarArchive.loadClass(JarArchive.java:84)
> >         at
> >
> >
> org.apache.xbean.finder.archive.CompositeArchive.loadClass(CompositeArchive.java:58)
> >         at
> >
> >
> org.apache.openejb.config.FinderFactory$DebugArchive.loadClass(FinderFactory.java:282)
> >         at
> >
> >
> org.apache.xbean.finder.AnnotationFinder$ClassInfo.get(AnnotationFinder.java:1453)
> >         at
> >
> >
> org.apache.xbean.finder.AnnotationFinder.findMetaAnnotatedClasses(AnnotationFinder.java:563)
> >         at
> >
> >
> org.apache.xbean.finder.AnnotationFinder.findMetaAnnotatedClasses(AnnotationFinder.java:512)
> >         at
> >
> >
> org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:1406)
> >         at
> >
> >
> org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:442)
> >         at
> >
> >
> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:356)
> >         at
> >
> >
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:401)
> >         at
> >
> >
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:962)
> >         at
> >
> >
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:792)
> >         at
> >
> >
> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:508)
> >         at
> >
> >
> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:589)
> >         at
> >
> >
> org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:440)
> >         at
> > org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:419)
> >         at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
> >         at org.apache.openejb.OpenEJB.init(OpenEJB.java:298)
> >         at
> > org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:253)
> >         at
> > org.apache.tomee.catalina.ServerListener.install(ServerListener.java:168)
> >         at
> >
> >
> org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:55)
> >         at
> >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> >         at
> >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >         at
> >
> >
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
> >         at
> > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
> >
> > INFO: Using 'openejb.default.deployment-
> >
> > module=org.apache.openejb.config.WebModule'
> > -- INSERT --
> >
> >
> >
> > how resolve§?
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://tomee-openejb.979440.n4.nabble.com/error-inti-tomee-on-openshif-tp4677690.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >
>
>
>
> --
> Daniel Cunha
> https://twitter.com/dvlc_
> http://www.tomitribe.com
> http://www.tomitribe.io
>

Reply via email to