---------- Forwarded message ---------- From: Romain Manni-Bucau <rmannibu...@gmail.com> Date: Fri, Aug 15, 2014 at 1:46 PM Subject: Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator To: "users@tomee.apache.org" <users@tomee.apache.org>
Just replace geronimo javamail by http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar and maybe http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar + mail.jar you want Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau On Wed, Aug 27, 2014 at 11:45 AM, Howard W. Smith, Jr. < smithh032...@gmail.com> wrote: > Can you search google for > > tomee 1.7 Geronimo > > I initiated a discussion here on this list about it. Romain provided URL > to download a jar to fix the issue. > On Aug 27, 2014 10:48 AM, "Felipe Jaekel" <fkjae...@gmail.com> wrote: > >> Thanks, I'll do that. >> >> How do you remove Geronimo JavaMail? Tried it in 1.7.0 plus to solve some >> issues and the server don't start anymore: >> >> GRAVE: FATAL ERROR: Unknown error in Assembler. Please send the following >> stack trace and this message to us...@openejb.apache.org : >> org.apache.xbean.recipe.ConstructionException: Error invoking >> constructor: >> public org.apache.tomee.catalina.TomcatSecurityService() >> at >> >> org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:968) >> at >> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276) >> at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96) >> at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61) >> at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49) >> at >> >> org.apache.openejb.assembler.classic.Assembler.createSecurityService(Assembler.java:2517) >> at >> >> org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:498) >> at >> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:420) >> 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) >> at org.apache.catalina.startup.Catalina.load(Catalina.java:638) >> at org.apache.catalina.startup.Catalina.load(Catalina.java:663) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> at >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:606) >> at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280) >> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454) >> Caused by: java.lang.NoClassDefFoundError: >> org/apache/geronimo/osgi/locator/ProviderLocator >> at >> >> javax.security.jacc.PolicyConfigurationFactory$1.run(PolicyConfigurationFactory.java:89) >> at java.security.AccessController.doPrivileged(Native Method) >> at >> >> javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:80) >> at >> >> org.apache.openejb.core.security.AbstractSecurityService.installJacc(AbstractSecurityService.java:314) >> at >> >> org.apache.openejb.core.security.AbstractSecurityService.<init>(AbstractSecurityService.java:77) >> at >> >> org.apache.openejb.core.security.AbstractSecurityService.<init>(AbstractSecurityService.java:71) >> at >> >> org.apache.tomee.catalina.TomcatSecurityService.<init>(TomcatSecurityService.java:51) >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) >> at >> >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) >> at >> >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) >> at java.lang.reflect.Constructor.newInstance(Constructor.java:526) >> at >> >> org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:958) >> ... 24 more >> Caused by: java.lang.ClassNotFoundException: >> org.apache.geronimo.osgi.locator.ProviderLocator >> at java.net.URLClassLoader$1.run(URLClassLoader.java:366) >> 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:358) >> ... 36 more >> >> >> >> 2014-08-27 11:15 GMT-03:00 Howard W. Smith, Jr. <smithh032...@gmail.com>: >> >> > I would never do that. I take tomee zip file, unzip to folder, and add >> jars >> > needed by my app like JUEL, jodatime latest version, JavaMail, Derby, >> > EclipseLink, and MyFaces 2.2.x. I also add my tomee/conf files. >> > >> > And I remove Geronimo JavaMail, jodatime 1.6.2 jars. >> > On Aug 26, 2014 4:34 PM, "Felipe Jaekel" <fkjae...@gmail.com> wrote: >> > >> > > Thanks, but I mean that if I copy TomEE 1.7.0 libraries to the current >> > > 1.6.0.2 installation, will I need to delete older versions like >> MyFaces >> > > 2.1.13 and ActiveMQ 5.9.1? >> > > >> > > >> > > 2014-08-22 15:00 GMT-03:00 Howard W. Smith, Jr. < >> smithh032...@gmail.com >> > >: >> > > >> > > > I'm the type of TomEE user that just >> > > > >> > > > - drops WAR in tomee/webapps >> > > > - drop a few libraries in tomee/lib >> > > > >> > > > All of the files that I drop in tomee/webapps and tomee/lib can be >> used >> > > in >> > > > tomee+ 1.6.0.2 and 1.7.0. >> > > > >> > > > i really think the libraries that you are currently deploying to >> tomee >> > > > 1.6.0.2 can/will work with tomee 1.7.0, too, but it may be best for >> you >> > > to >> > > > try it, test it, reply with stacktrace if anything occurs, and/or >> share >> > > > your library/dependencies list, and/or pom. >> > > > >> > > > >> > > > >> > > > On Fri, Aug 22, 2014 at 1:47 PM, Felipe Jaekel <fkjae...@gmail.com> >> > > wrote: >> > > > >> > > > > What about older versions of libraries, do I need to delete them? >> > > > > >> > > > > I still haven't tested my applications on TomEE 1.7.0. I'm trying >> to >> > > get >> > > > > familiar with the upgrade process first. >> > > > > >> > > > > >> > > > > 2014-08-22 11:40 GMT-03:00 Romain Manni-Bucau < >> rmannibu...@gmail.com >> > >: >> > > > > >> > > > > > Hi >> > > > > > >> > > > > > tomcat tool should be enough regarding configuration syntax. >> > > > > > >> > > > > > >> > > > > > Romain Manni-Bucau >> > > > > > Twitter: @rmannibucau >> > > > > > Blog: http://rmannibucau.wordpress.com/ >> > > > > > LinkedIn: http://fr.linkedin.com/in/rmannibucau >> > > > > > Github: https://github.com/rmannibucau >> > > > > > >> > > > > > >> > > > > > 2014-08-22 16:37 GMT+02:00 Felipe Jaekel <fkjae...@gmail.com>: >> > > > > > > In Tomcat I used to check the file differences here >> > > > > > > <http://tomcat.apache.org/migration-7.html#Upgrading_7.0.x> >> and >> > > > > override >> > > > > > > the JAR files. >> > > > > > > >> > > > > > > I recently started to use TomEE Plus 1.6.0.2, and now I'd >> like to >> > > > > upgrade >> > > > > > > it to 1.7.0. >> > > > > > > >> > > > > > > What would be the best way to do it? >> > > > > > > >> > > > > > > Thanks >> > > > > > >> > > > > >> > > > >> > > >> > >> >