TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

smithh032772
I just downloaded TomEE 1.7.0 release, and I get the exception stack trace
below, when I start tomEE 1.7.0 (and java 8 update 11) after deploying my
webapp to tomee 1.7.0. Please advise.


INFO: Enterprise application "openejb" loaded.
Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating TransactionManager(id=Default Transaction Manager)
Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating SecurityService(id=Tomcat Security Service)
Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
handleUnknownError
SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the following
stack trace and this message to [hidden email] :
 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:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
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:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
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:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 36 more

Aug 15, 2014 12:19:36 PM org.apache.openejb.OpenEJB$Instance <init>
SEVERE: OpenEJB has encountered a fatal error and cannot be started:
Assembler failed to build the container system.
org.apache.openejb.OpenEJBException:
org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
constructor: public org.apache.tomee.catalina.TomcatSecurityService()
at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
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:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
Caused by: 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)
... 17 more
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:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
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:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 36 more

Aug 15, 2014 12:19:36 PM org.apache.tomee.catalina.ServerListener install
SEVERE: TomEE Listener can't start OpenEJB
org.apache.openejb.OpenEJBException:
org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
constructor: public org.apache.tomee.catalina.TomcatSecurityService()
at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
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:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
Caused by: 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)
... 17 more
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:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
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:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 36 more

Aug 15, 2014 12:19:37 PM org.apache.catalina.startup.Catalina load
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

smithh032772
I solved the error by adding geronimo-javamail_1.4_mail-1.8.3.jar to
tomee/lib. I do not like using this JAR, because of javamail sendmail
issues that I have experienced with TomEE 1.5.x and 1.6.x.

Now, TomEE 1.7.0 requires geronimo-javamail_1.4_mail-1.8.3.jar to exist in
tomee/lib to run/start properly?

My preference is to use Sun/Oracle's javamail.jar instead
of geronimo-javamail_1.4_mail-1.8.3.jar. Should I add Sun/Oracle's
javamail.jar to my WAR, since I'm assuming that I cannot add both JARs to
tomee/lib?




On Fri, Aug 15, 2014 at 12:57 PM, Howard W. Smith, Jr. <
[hidden email]> wrote:

> I just downloaded TomEE 1.7.0 release, and I get the exception stack trace
> below, when I start tomEE 1.7.0 (and java 8 update 11) after deploying my
> webapp to tomee 1.7.0. Please advise.
>
>
> INFO: Enterprise application "openejb" loaded.
> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating TransactionManager(id=Default Transaction Manager)
> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
> createRecipe
> INFO: Creating SecurityService(id=Tomcat Security Service)
> Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
> handleUnknownError
> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
> following stack trace and this message to [hidden email] :
>  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:62)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
>  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:62)
>  at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>  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:372)
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 36 more
>
> Aug 15, 2014 12:19:36 PM org.apache.openejb.OpenEJB$Instance <init>
> SEVERE: OpenEJB has encountered a fatal error and cannot be started:
> Assembler failed to build the container system.
> org.apache.openejb.OpenEJBException:
> org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
> public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>  at
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
> 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:62)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
> Caused by: 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)
> ... 17 more
> 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:62)
>  at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>  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:372)
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 36 more
>
> Aug 15, 2014 12:19:36 PM org.apache.tomee.catalina.ServerListener install
> SEVERE: TomEE Listener can't start OpenEJB
> org.apache.openejb.OpenEJBException:
> org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
> public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>  at
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
> 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:62)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
> Caused by: 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)
> ... 17 more
> 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:62)
>  at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>  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:372)
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 36 more
>
> Aug 15, 2014 12:19:37 PM org.apache.catalina.startup.Catalina load
>
>
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

Romain Manni-Bucau
you can also just add geronimo osgi locator jar.

That said if we don't run without geronimo javamail there is a (known) bug


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-08-15 19:33 GMT+02:00 Howard W. Smith, Jr. <[hidden email]>:

> I solved the error by adding geronimo-javamail_1.4_mail-1.8.3.jar to
> tomee/lib. I do not like using this JAR, because of javamail sendmail
> issues that I have experienced with TomEE 1.5.x and 1.6.x.
>
> Now, TomEE 1.7.0 requires geronimo-javamail_1.4_mail-1.8.3.jar to exist in
> tomee/lib to run/start properly?
>
> My preference is to use Sun/Oracle's javamail.jar instead
> of geronimo-javamail_1.4_mail-1.8.3.jar. Should I add Sun/Oracle's
> javamail.jar to my WAR, since I'm assuming that I cannot add both JARs to
> tomee/lib?
>
>
>
>
> On Fri, Aug 15, 2014 at 12:57 PM, Howard W. Smith, Jr. <
> [hidden email]> wrote:
>
>> I just downloaded TomEE 1.7.0 release, and I get the exception stack trace
>> below, when I start tomEE 1.7.0 (and java 8 update 11) after deploying my
>> webapp to tomee 1.7.0. Please advise.
>>
>>
>> INFO: Enterprise application "openejb" loaded.
>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
>> createRecipe
>> INFO: Creating TransactionManager(id=Default Transaction Manager)
>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
>> createRecipe
>> INFO: Creating SecurityService(id=Tomcat Security Service)
>> Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
>> handleUnknownError
>> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
>> following stack trace and this message to [hidden email] :
>>  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:62)
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:483)
>>  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:62)
>>  at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>  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:372)
>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>> at java.security.AccessController.doPrivileged(Native Method)
>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> ... 36 more
>>
>> Aug 15, 2014 12:19:36 PM org.apache.openejb.OpenEJB$Instance <init>
>> SEVERE: OpenEJB has encountered a fatal error and cannot be started:
>> Assembler failed to build the container system.
>> org.apache.openejb.OpenEJBException:
>> org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
>> public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>>  at
>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>> 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:62)
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:483)
>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>> Caused by: 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)
>> ... 17 more
>> 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:62)
>>  at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>  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:372)
>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>> at java.security.AccessController.doPrivileged(Native Method)
>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> ... 36 more
>>
>> Aug 15, 2014 12:19:36 PM org.apache.tomee.catalina.ServerListener install
>> SEVERE: TomEE Listener can't start OpenEJB
>> org.apache.openejb.OpenEJBException:
>> org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
>> public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>>  at
>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>> 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:62)
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:483)
>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>> Caused by: 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)
>> ... 17 more
>> 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:62)
>>  at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>  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:372)
>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>> at java.security.AccessController.doPrivileged(Native Method)
>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> ... 36 more
>>
>> Aug 15, 2014 12:19:37 PM org.apache.catalina.startup.Catalina load
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

smithh032772
In reply to this post by smithh032772
okay, when i use (tomee 1.7.0) geronimo-javamail_1.4_mail-1.8.3.jar, my app
still has javamail sendmail issues. see exception below. next, I'll try to
add Sun/Oracle's javamail to my WAR. I hope that resolves the stacktrace
issue below and allows me to use tomee 1.7.0. otherwise, i will just have
to keep using tomee 1.6.0.2 and/or the next tomee release that does 'not'
require geronimo-javamail_1.4_mail-1.8.3.jar.


javax.mail.SendFailedException: Send failure
(javax.mail.MessagingException: Connection error
(java.net.ConnectException: Connection timed out: connect))
at javax.mail.Transport.send(Transport.java:163)
at javax.mail.Transport.send(Transport.java:48)
at utils.mail.JavaMail.sendMail(JavaMail.java:151)
at pf.ApplicationScopeBean.sendMail(ApplicationScopeBean.java:601)
at
pf.ApplicationScopeBean$$OwbNormalScopeProxy0.sendMail(pf/ApplicationScopeBean.java)
at
utils.mail.EmailOrderSentByUser.emailDriverWorksheet(EmailOrderSentByUser.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
at
org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
at
org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:256)
at
org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:212)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:308)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:303)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:92)
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:308)
at
utils.mail.EmailOrderSentByUser$$LocalBeanProxy.emailDriverWorksheet(utils/mail/EmailOrderSentByUser.java)
at mdb.EmailMessageDrivenBean.onMessage(EmailMessageDrivenBean.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
at
org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
at org.apache.openejb.core.mdb.MdbContainer._invoke(MdbContainer.java:402)
at org.apache.openejb.core.mdb.MdbContainer.invoke(MdbContainer.java:373)
at
org.apache.openejb.core.mdb.EndpointHandler.deliverMessage(EndpointHandler.java:228)
at
org.apache.openejb.core.mdb.EndpointHandler.invoke(EndpointHandler.java:169)
at
mdb.EmailMessageDrivenBean$$LocalBeanProxy.onMessage(mdb/EmailMessageDrivenBean.java)
at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:123)
at
org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:64)
at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:994)
at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:366)
at
org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.mail.MessagingException: Connection error
(java.net.ConnectException: Connection timed out: connect)
at
org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:161)
at
org.apache.geronimo.javamail.transport.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:165)
at javax.mail.Service.connect(Service.java:274)
at javax.mail.Service.connect(Service.java:91)
at javax.mail.Service.connect(Service.java:76)
at javax.mail.Transport.send(Transport.java:94)
... 55 more
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at
java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:286)
at
org.apache.geronimo.javamail.util.MailConnection.getConnectedSocket(MailConnection.java:307)
at
org.apache.geronimo.javamail.util.MailConnection.getConnection(MailConnection.java:250)
at
org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:140)
... 60 more





On Fri, Aug 15, 2014 at 1:33 PM, Howard W. Smith, Jr. <
[hidden email]> wrote:

> I solved the error by adding geronimo-javamail_1.4_mail-1.8.3.jar to
> tomee/lib. I do not like using this JAR, because of javamail sendmail
> issues that I have experienced with TomEE 1.5.x and 1.6.x.
>
> Now, TomEE 1.7.0 requires geronimo-javamail_1.4_mail-1.8.3.jar to exist in
> tomee/lib to run/start properly?
>
> My preference is to use Sun/Oracle's javamail.jar instead
> of geronimo-javamail_1.4_mail-1.8.3.jar. Should I add Sun/Oracle's
> javamail.jar to my WAR, since I'm assuming that I cannot add both JARs to
> tomee/lib?
>
>
>
>
> On Fri, Aug 15, 2014 at 12:57 PM, Howard W. Smith, Jr. <
> [hidden email]> wrote:
>
>> I just downloaded TomEE 1.7.0 release, and I get the exception stack
>> trace below, when I start tomEE 1.7.0 (and java 8 update 11) after
>> deploying my webapp to tomee 1.7.0. Please advise.
>>
>>
>> INFO: Enterprise application "openejb" loaded.
>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
>> createRecipe
>> INFO: Creating TransactionManager(id=Default Transaction Manager)
>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
>> createRecipe
>> INFO: Creating SecurityService(id=Tomcat Security Service)
>> Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
>> handleUnknownError
>> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
>> following stack trace and this message to [hidden email] :
>>  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:62)
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:483)
>>  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:62)
>>  at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>  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:372)
>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>> at java.security.AccessController.doPrivileged(Native Method)
>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> ... 36 more
>>
>> Aug 15, 2014 12:19:36 PM org.apache.openejb.OpenEJB$Instance <init>
>> SEVERE: OpenEJB has encountered a fatal error and cannot be started:
>> Assembler failed to build the container system.
>> org.apache.openejb.OpenEJBException:
>> org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
>> public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>>  at
>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>> 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:62)
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:483)
>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>> Caused by: 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)
>> ... 17 more
>> 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:62)
>>  at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>  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:372)
>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>> at java.security.AccessController.doPrivileged(Native Method)
>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> ... 36 more
>>
>> Aug 15, 2014 12:19:36 PM org.apache.tomee.catalina.ServerListener install
>> SEVERE: TomEE Listener can't start OpenEJB
>> org.apache.openejb.OpenEJBException:
>> org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
>> public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>>  at
>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>> 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:62)
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:483)
>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>> Caused by: 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)
>> ... 17 more
>> 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:62)
>>  at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>  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:372)
>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>> at java.security.AccessController.doPrivileged(Native Method)
>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> ... 36 more
>>
>> Aug 15, 2014 12:19:37 PM org.apache.catalina.startup.Catalina load
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

Romain Manni-Bucau
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


2014-08-15 19:42 GMT+02:00 Howard W. Smith, Jr. <[hidden email]>:

> okay, when i use (tomee 1.7.0) geronimo-javamail_1.4_mail-1.8.3.jar, my app
> still has javamail sendmail issues. see exception below. next, I'll try to
> add Sun/Oracle's javamail to my WAR. I hope that resolves the stacktrace
> issue below and allows me to use tomee 1.7.0. otherwise, i will just have
> to keep using tomee 1.6.0.2 and/or the next tomee release that does 'not'
> require geronimo-javamail_1.4_mail-1.8.3.jar.
>
>
> javax.mail.SendFailedException: Send failure
> (javax.mail.MessagingException: Connection error
> (java.net.ConnectException: Connection timed out: connect))
> at javax.mail.Transport.send(Transport.java:163)
> at javax.mail.Transport.send(Transport.java:48)
> at utils.mail.JavaMail.sendMail(JavaMail.java:151)
> at pf.ApplicationScopeBean.sendMail(ApplicationScopeBean.java:601)
> at
> pf.ApplicationScopeBean$$OwbNormalScopeProxy0.sendMail(pf/ApplicationScopeBean.java)
> at
> utils.mail.EmailOrderSentByUser.emailDriverWorksheet(EmailOrderSentByUser.java:102)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> at
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
> at
> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
> at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> at
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
> at
> org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:256)
> at
> org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:212)
> at
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:308)
> at
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:303)
> at
> org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:92)
> at
> org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:308)
> at
> utils.mail.EmailOrderSentByUser$$LocalBeanProxy.emailDriverWorksheet(utils/mail/EmailOrderSentByUser.java)
> at mdb.EmailMessageDrivenBean.onMessage(EmailMessageDrivenBean.java:190)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> at
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
> at
> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
> at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> at
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
> at org.apache.openejb.core.mdb.MdbContainer._invoke(MdbContainer.java:402)
> at org.apache.openejb.core.mdb.MdbContainer.invoke(MdbContainer.java:373)
> at
> org.apache.openejb.core.mdb.EndpointHandler.deliverMessage(EndpointHandler.java:228)
> at
> org.apache.openejb.core.mdb.EndpointHandler.invoke(EndpointHandler.java:169)
> at
> mdb.EmailMessageDrivenBean$$LocalBeanProxy.onMessage(mdb/EmailMessageDrivenBean.java)
> at
> org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:123)
> at
> org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:64)
> at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:994)
> at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
> at
> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:366)
> at
> org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: javax.mail.MessagingException: Connection error
> (java.net.ConnectException: Connection timed out: connect)
> at
> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:161)
> at
> org.apache.geronimo.javamail.transport.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:165)
> at javax.mail.Service.connect(Service.java:274)
> at javax.mail.Service.connect(Service.java:91)
> at javax.mail.Service.connect(Service.java:76)
> at javax.mail.Transport.send(Transport.java:94)
> ... 55 more
> Caused by: java.net.ConnectException: Connection timed out: connect
> at java.net.DualStackPlainSocketImpl.connect0(Native Method)
> at
> java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
> at
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
> at
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:589)
> at java.net.Socket.connect(Socket.java:538)
> at java.net.Socket.<init>(Socket.java:434)
> at java.net.Socket.<init>(Socket.java:286)
> at
> org.apache.geronimo.javamail.util.MailConnection.getConnectedSocket(MailConnection.java:307)
> at
> org.apache.geronimo.javamail.util.MailConnection.getConnection(MailConnection.java:250)
> at
> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:140)
> ... 60 more
>
>
>
>
>
> On Fri, Aug 15, 2014 at 1:33 PM, Howard W. Smith, Jr. <
> [hidden email]> wrote:
>
>> I solved the error by adding geronimo-javamail_1.4_mail-1.8.3.jar to
>> tomee/lib. I do not like using this JAR, because of javamail sendmail
>> issues that I have experienced with TomEE 1.5.x and 1.6.x.
>>
>> Now, TomEE 1.7.0 requires geronimo-javamail_1.4_mail-1.8.3.jar to exist in
>> tomee/lib to run/start properly?
>>
>> My preference is to use Sun/Oracle's javamail.jar instead
>> of geronimo-javamail_1.4_mail-1.8.3.jar. Should I add Sun/Oracle's
>> javamail.jar to my WAR, since I'm assuming that I cannot add both JARs to
>> tomee/lib?
>>
>>
>>
>>
>> On Fri, Aug 15, 2014 at 12:57 PM, Howard W. Smith, Jr. <
>> [hidden email]> wrote:
>>
>>> I just downloaded TomEE 1.7.0 release, and I get the exception stack
>>> trace below, when I start tomEE 1.7.0 (and java 8 update 11) after
>>> deploying my webapp to tomee 1.7.0. Please advise.
>>>
>>>
>>> INFO: Enterprise application "openejb" loaded.
>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
>>> createRecipe
>>> INFO: Creating TransactionManager(id=Default Transaction Manager)
>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
>>> createRecipe
>>> INFO: Creating SecurityService(id=Tomcat Security Service)
>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
>>> handleUnknownError
>>> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
>>> following stack trace and this message to [hidden email] :
>>>  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:62)
>>>  at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>>  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:62)
>>>  at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>>  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:372)
>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>> ... 36 more
>>>
>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.OpenEJB$Instance <init>
>>> SEVERE: OpenEJB has encountered a fatal error and cannot be started:
>>> Assembler failed to build the container system.
>>> org.apache.openejb.OpenEJBException:
>>> org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
>>> public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
>>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>>>  at
>>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>>> 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:62)
>>>  at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>>> Caused by: 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)
>>> ... 17 more
>>> 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:62)
>>>  at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>>  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:372)
>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>> ... 36 more
>>>
>>> Aug 15, 2014 12:19:36 PM org.apache.tomee.catalina.ServerListener install
>>> SEVERE: TomEE Listener can't start OpenEJB
>>> org.apache.openejb.OpenEJBException:
>>> org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
>>> public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
>>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>>>  at
>>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>>> 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:62)
>>>  at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>>> Caused by: 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)
>>> ... 17 more
>>> 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:62)
>>>  at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>>  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:372)
>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>> ... 36 more
>>>
>>> Aug 15, 2014 12:19:37 PM org.apache.catalina.startup.Catalina load
>>>
>>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

smithh032772
okay, see below:

1. added geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
<http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar>
to
tomee/lib
2. removed geronimo-javamail_1.4_mail-1.8.3.jar from tomee/lib
3. added [Oracle] javax.mail.jar to tomee/lib
4. started tomee 1.7.0, no errors
5. logged into my app and saw the following exception

[EL Warning]: 2014-08-15 13:52:45.914--ServerSession(2077670077)--Problem
while registering MBean: java.lang.NullPointerException

6. javamail sendmail works as expected :)

should I add geronimo-osgi-registry-1.1.jar
<http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar>
to
resolve the exception in #5 above?


On Fri, Aug 15, 2014 at 1:46 PM, Romain Manni-Bucau <[hidden email]>
wrote:

> 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
>
>
> 2014-08-15 19:42 GMT+02:00 Howard W. Smith, Jr. <[hidden email]>:
> > okay, when i use (tomee 1.7.0) geronimo-javamail_1.4_mail-1.8.3.jar, my
> app
> > still has javamail sendmail issues. see exception below. next, I'll try
> to
> > add Sun/Oracle's javamail to my WAR. I hope that resolves the stacktrace
> > issue below and allows me to use tomee 1.7.0. otherwise, i will just have
> > to keep using tomee 1.6.0.2 and/or the next tomee release that does 'not'
> > require geronimo-javamail_1.4_mail-1.8.3.jar.
> >
> >
> > javax.mail.SendFailedException: Send failure
> > (javax.mail.MessagingException: Connection error
> > (java.net.ConnectException: Connection timed out: connect))
> > at javax.mail.Transport.send(Transport.java:163)
> > at javax.mail.Transport.send(Transport.java:48)
> > at utils.mail.JavaMail.sendMail(JavaMail.java:151)
> > at pf.ApplicationScopeBean.sendMail(ApplicationScopeBean.java:601)
> > at
> >
> pf.ApplicationScopeBean$$OwbNormalScopeProxy0.sendMail(pf/ApplicationScopeBean.java)
> > at
> >
> utils.mail.EmailOrderSentByUser.emailDriverWorksheet(EmailOrderSentByUser.java:102)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:483)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> > at
> >
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
> > at
> >
> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
> > at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:483)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> > at
> >
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
> > at
> >
> org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:256)
> > at
> >
> org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:212)
> > at
> >
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:308)
> > at
> >
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:303)
> > at
> >
> org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:92)
> > at
> >
> org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:308)
> > at
> >
> utils.mail.EmailOrderSentByUser$$LocalBeanProxy.emailDriverWorksheet(utils/mail/EmailOrderSentByUser.java)
> > at mdb.EmailMessageDrivenBean.onMessage(EmailMessageDrivenBean.java:190)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:483)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> > at
> >
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
> > at
> >
> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
> > at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:483)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> > at
> >
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
> > at
> org.apache.openejb.core.mdb.MdbContainer._invoke(MdbContainer.java:402)
> > at org.apache.openejb.core.mdb.MdbContainer.invoke(MdbContainer.java:373)
> > at
> >
> org.apache.openejb.core.mdb.EndpointHandler.deliverMessage(EndpointHandler.java:228)
> > at
> >
> org.apache.openejb.core.mdb.EndpointHandler.invoke(EndpointHandler.java:169)
> > at
> >
> mdb.EmailMessageDrivenBean$$LocalBeanProxy.onMessage(mdb/EmailMessageDrivenBean.java)
> > at
> >
> org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:123)
> > at
> >
> org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:64)
> > at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:994)
> > at
> org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
> > at
> >
> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:366)
> > at
> >
> org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
> > at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> > at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> > at java.lang.Thread.run(Thread.java:745)
> > Caused by: javax.mail.MessagingException: Connection error
> > (java.net.ConnectException: Connection timed out: connect)
> > at
> >
> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:161)
> > at
> >
> org.apache.geronimo.javamail.transport.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:165)
> > at javax.mail.Service.connect(Service.java:274)
> > at javax.mail.Service.connect(Service.java:91)
> > at javax.mail.Service.connect(Service.java:76)
> > at javax.mail.Transport.send(Transport.java:94)
> > ... 55 more
> > Caused by: java.net.ConnectException: Connection timed out: connect
> > at java.net.DualStackPlainSocketImpl.connect0(Native Method)
> > at
> >
> java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
> > at
> >
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
> > at
> >
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
> > at
> >
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
> > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
> > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> > at java.net.Socket.connect(Socket.java:589)
> > at java.net.Socket.connect(Socket.java:538)
> > at java.net.Socket.<init>(Socket.java:434)
> > at java.net.Socket.<init>(Socket.java:286)
> > at
> >
> org.apache.geronimo.javamail.util.MailConnection.getConnectedSocket(MailConnection.java:307)
> > at
> >
> org.apache.geronimo.javamail.util.MailConnection.getConnection(MailConnection.java:250)
> > at
> >
> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:140)
> > ... 60 more
> >
> >
> >
> >
> >
> > On Fri, Aug 15, 2014 at 1:33 PM, Howard W. Smith, Jr. <
> > [hidden email]> wrote:
> >
> >> I solved the error by adding geronimo-javamail_1.4_mail-1.8.3.jar to
> >> tomee/lib. I do not like using this JAR, because of javamail sendmail
> >> issues that I have experienced with TomEE 1.5.x and 1.6.x.
> >>
> >> Now, TomEE 1.7.0 requires geronimo-javamail_1.4_mail-1.8.3.jar to exist
> in
> >> tomee/lib to run/start properly?
> >>
> >> My preference is to use Sun/Oracle's javamail.jar instead
> >> of geronimo-javamail_1.4_mail-1.8.3.jar. Should I add Sun/Oracle's
> >> javamail.jar to my WAR, since I'm assuming that I cannot add both JARs
> to
> >> tomee/lib?
> >>
> >>
> >>
> >>
> >> On Fri, Aug 15, 2014 at 12:57 PM, Howard W. Smith, Jr. <
> >> [hidden email]> wrote:
> >>
> >>> I just downloaded TomEE 1.7.0 release, and I get the exception stack
> >>> trace below, when I start tomEE 1.7.0 (and java 8 update 11) after
> >>> deploying my webapp to tomee 1.7.0. Please advise.
> >>>
> >>>
> >>> INFO: Enterprise application "openejb" loaded.
> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
> >>> createRecipe
> >>> INFO: Creating TransactionManager(id=Default Transaction Manager)
> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
> >>> createRecipe
> >>> INFO: Creating SecurityService(id=Tomcat Security Service)
> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
> >>> handleUnknownError
> >>> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
> >>> following stack trace and this message to [hidden email] :
> >>>  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:62)
> >>>  at
> >>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>> at java.lang.reflect.Method.invoke(Method.java:483)
> >>>  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:62)
> >>>  at
> >>>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
> >>>  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:372)
> >>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> >>> at java.security.AccessController.doPrivileged(Native Method)
> >>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >>> ... 36 more
> >>>
> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.OpenEJB$Instance <init>
> >>> SEVERE: OpenEJB has encountered a fatal error and cannot be started:
> >>> Assembler failed to build the container system.
> >>> org.apache.openejb.OpenEJBException:
> >>> org.apache.xbean.recipe.ConstructionException: Error invoking
> constructor:
> >>> public org.apache.tomee.catalina.TomcatSecurityService(): Error
> invoking
> >>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
> >>>  at
> >>>
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
> >>> 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:62)
> >>>  at
> >>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>> at java.lang.reflect.Method.invoke(Method.java:483)
> >>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
> >>> Caused by: 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)
> >>> ... 17 more
> >>> 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:62)
> >>>  at
> >>>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
> >>>  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:372)
> >>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> >>> at java.security.AccessController.doPrivileged(Native Method)
> >>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >>> ... 36 more
> >>>
> >>> Aug 15, 2014 12:19:36 PM org.apache.tomee.catalina.ServerListener
> install
> >>> SEVERE: TomEE Listener can't start OpenEJB
> >>> org.apache.openejb.OpenEJBException:
> >>> org.apache.xbean.recipe.ConstructionException: Error invoking
> constructor:
> >>> public org.apache.tomee.catalina.TomcatSecurityService(): Error
> invoking
> >>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
> >>>  at
> >>>
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
> >>> 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:62)
> >>>  at
> >>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>> at java.lang.reflect.Method.invoke(Method.java:483)
> >>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
> >>> Caused by: 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)
> >>> ... 17 more
> >>> 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:62)
> >>>  at
> >>>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
> >>>  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:372)
> >>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> >>> at java.security.AccessController.doPrivileged(Native Method)
> >>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >>> ... 36 more
> >>>
> >>> Aug 15, 2014 12:19:37 PM org.apache.catalina.startup.Catalina load
> >>>
> >>>
> >>
>
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

Romain Manni-Bucau
I think it is not linked but without more info no idea to be honest.


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-08-15 19:57 GMT+02:00 Howard W. Smith, Jr. <[hidden email]>:

> okay, see below:
>
> 1. added geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
> <http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar>
> to
> tomee/lib
> 2. removed geronimo-javamail_1.4_mail-1.8.3.jar from tomee/lib
> 3. added [Oracle] javax.mail.jar to tomee/lib
> 4. started tomee 1.7.0, no errors
> 5. logged into my app and saw the following exception
>
> [EL Warning]: 2014-08-15 13:52:45.914--ServerSession(2077670077)--Problem
> while registering MBean: java.lang.NullPointerException
>
> 6. javamail sendmail works as expected :)
>
> should I add geronimo-osgi-registry-1.1.jar
> <http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar>
> to
> resolve the exception in #5 above?
>
>
> On Fri, Aug 15, 2014 at 1:46 PM, Romain Manni-Bucau <[hidden email]>
> wrote:
>
>> 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
>>
>>
>> 2014-08-15 19:42 GMT+02:00 Howard W. Smith, Jr. <[hidden email]>:
>> > okay, when i use (tomee 1.7.0) geronimo-javamail_1.4_mail-1.8.3.jar, my
>> app
>> > still has javamail sendmail issues. see exception below. next, I'll try
>> to
>> > add Sun/Oracle's javamail to my WAR. I hope that resolves the stacktrace
>> > issue below and allows me to use tomee 1.7.0. otherwise, i will just have
>> > to keep using tomee 1.6.0.2 and/or the next tomee release that does 'not'
>> > require geronimo-javamail_1.4_mail-1.8.3.jar.
>> >
>> >
>> > javax.mail.SendFailedException: Send failure
>> > (javax.mail.MessagingException: Connection error
>> > (java.net.ConnectException: Connection timed out: connect))
>> > at javax.mail.Transport.send(Transport.java:163)
>> > at javax.mail.Transport.send(Transport.java:48)
>> > at utils.mail.JavaMail.sendMail(JavaMail.java:151)
>> > at pf.ApplicationScopeBean.sendMail(ApplicationScopeBean.java:601)
>> > at
>> >
>> pf.ApplicationScopeBean$$OwbNormalScopeProxy0.sendMail(pf/ApplicationScopeBean.java)
>> > at
>> >
>> utils.mail.EmailOrderSentByUser.emailDriverWorksheet(EmailOrderSentByUser.java:102)
>> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > at
>> >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> > at
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> > at java.lang.reflect.Method.invoke(Method.java:483)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>> > at
>> >
>> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
>> > at
>> >
>> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
>> > at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
>> > at
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> > at java.lang.reflect.Method.invoke(Method.java:483)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>> > at
>> >
>> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
>> > at
>> >
>> org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:256)
>> > at
>> >
>> org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:212)
>> > at
>> >
>> org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:308)
>> > at
>> >
>> org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:303)
>> > at
>> >
>> org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:92)
>> > at
>> >
>> org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:308)
>> > at
>> >
>> utils.mail.EmailOrderSentByUser$$LocalBeanProxy.emailDriverWorksheet(utils/mail/EmailOrderSentByUser.java)
>> > at mdb.EmailMessageDrivenBean.onMessage(EmailMessageDrivenBean.java:190)
>> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > at
>> >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> > at
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> > at java.lang.reflect.Method.invoke(Method.java:483)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>> > at
>> >
>> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
>> > at
>> >
>> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
>> > at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
>> > at
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> > at java.lang.reflect.Method.invoke(Method.java:483)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>> > at
>> >
>> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
>> > at
>> org.apache.openejb.core.mdb.MdbContainer._invoke(MdbContainer.java:402)
>> > at org.apache.openejb.core.mdb.MdbContainer.invoke(MdbContainer.java:373)
>> > at
>> >
>> org.apache.openejb.core.mdb.EndpointHandler.deliverMessage(EndpointHandler.java:228)
>> > at
>> >
>> org.apache.openejb.core.mdb.EndpointHandler.invoke(EndpointHandler.java:169)
>> > at
>> >
>> mdb.EmailMessageDrivenBean$$LocalBeanProxy.onMessage(mdb/EmailMessageDrivenBean.java)
>> > at
>> >
>> org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:123)
>> > at
>> >
>> org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:64)
>> > at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:994)
>> > at
>> org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
>> > at
>> >
>> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:366)
>> > at
>> >
>> org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
>> > at
>> >
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>> > at
>> >
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>> > at java.lang.Thread.run(Thread.java:745)
>> > Caused by: javax.mail.MessagingException: Connection error
>> > (java.net.ConnectException: Connection timed out: connect)
>> > at
>> >
>> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:161)
>> > at
>> >
>> org.apache.geronimo.javamail.transport.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:165)
>> > at javax.mail.Service.connect(Service.java:274)
>> > at javax.mail.Service.connect(Service.java:91)
>> > at javax.mail.Service.connect(Service.java:76)
>> > at javax.mail.Transport.send(Transport.java:94)
>> > ... 55 more
>> > Caused by: java.net.ConnectException: Connection timed out: connect
>> > at java.net.DualStackPlainSocketImpl.connect0(Native Method)
>> > at
>> >
>> java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
>> > at
>> >
>> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
>> > at
>> >
>> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
>> > at
>> >
>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
>> > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
>> > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>> > at java.net.Socket.connect(Socket.java:589)
>> > at java.net.Socket.connect(Socket.java:538)
>> > at java.net.Socket.<init>(Socket.java:434)
>> > at java.net.Socket.<init>(Socket.java:286)
>> > at
>> >
>> org.apache.geronimo.javamail.util.MailConnection.getConnectedSocket(MailConnection.java:307)
>> > at
>> >
>> org.apache.geronimo.javamail.util.MailConnection.getConnection(MailConnection.java:250)
>> > at
>> >
>> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:140)
>> > ... 60 more
>> >
>> >
>> >
>> >
>> >
>> > On Fri, Aug 15, 2014 at 1:33 PM, Howard W. Smith, Jr. <
>> > [hidden email]> wrote:
>> >
>> >> I solved the error by adding geronimo-javamail_1.4_mail-1.8.3.jar to
>> >> tomee/lib. I do not like using this JAR, because of javamail sendmail
>> >> issues that I have experienced with TomEE 1.5.x and 1.6.x.
>> >>
>> >> Now, TomEE 1.7.0 requires geronimo-javamail_1.4_mail-1.8.3.jar to exist
>> in
>> >> tomee/lib to run/start properly?
>> >>
>> >> My preference is to use Sun/Oracle's javamail.jar instead
>> >> of geronimo-javamail_1.4_mail-1.8.3.jar. Should I add Sun/Oracle's
>> >> javamail.jar to my WAR, since I'm assuming that I cannot add both JARs
>> to
>> >> tomee/lib?
>> >>
>> >>
>> >>
>> >>
>> >> On Fri, Aug 15, 2014 at 12:57 PM, Howard W. Smith, Jr. <
>> >> [hidden email]> wrote:
>> >>
>> >>> I just downloaded TomEE 1.7.0 release, and I get the exception stack
>> >>> trace below, when I start tomEE 1.7.0 (and java 8 update 11) after
>> >>> deploying my webapp to tomee 1.7.0. Please advise.
>> >>>
>> >>>
>> >>> INFO: Enterprise application "openejb" loaded.
>> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
>> >>> createRecipe
>> >>> INFO: Creating TransactionManager(id=Default Transaction Manager)
>> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
>> >>> createRecipe
>> >>> INFO: Creating SecurityService(id=Tomcat Security Service)
>> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
>> >>> handleUnknownError
>> >>> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
>> >>> following stack trace and this message to [hidden email] :
>> >>>  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:62)
>> >>>  at
>> >>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> >>> at java.lang.reflect.Method.invoke(Method.java:483)
>> >>>  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:62)
>> >>>  at
>> >>>
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>> >>>  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:372)
>> >>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>> >>> at java.security.AccessController.doPrivileged(Native Method)
>> >>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> >>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> >>> ... 36 more
>> >>>
>> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.OpenEJB$Instance <init>
>> >>> SEVERE: OpenEJB has encountered a fatal error and cannot be started:
>> >>> Assembler failed to build the container system.
>> >>> org.apache.openejb.OpenEJBException:
>> >>> org.apache.xbean.recipe.ConstructionException: Error invoking
>> constructor:
>> >>> public org.apache.tomee.catalina.TomcatSecurityService(): Error
>> invoking
>> >>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>> >>>  at
>> >>>
>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>> >>> 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:62)
>> >>>  at
>> >>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> >>> at java.lang.reflect.Method.invoke(Method.java:483)
>> >>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>> >>> Caused by: 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)
>> >>> ... 17 more
>> >>> 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:62)
>> >>>  at
>> >>>
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>> >>>  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:372)
>> >>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>> >>> at java.security.AccessController.doPrivileged(Native Method)
>> >>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> >>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> >>> ... 36 more
>> >>>
>> >>> Aug 15, 2014 12:19:36 PM org.apache.tomee.catalina.ServerListener
>> install
>> >>> SEVERE: TomEE Listener can't start OpenEJB
>> >>> org.apache.openejb.OpenEJBException:
>> >>> org.apache.xbean.recipe.ConstructionException: Error invoking
>> constructor:
>> >>> public org.apache.tomee.catalina.TomcatSecurityService(): Error
>> invoking
>> >>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>> >>>  at
>> >>>
>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>> >>> 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:62)
>> >>>  at
>> >>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> >>> at java.lang.reflect.Method.invoke(Method.java:483)
>> >>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>> >>> Caused by: 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)
>> >>> ... 17 more
>> >>> 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:62)
>> >>>  at
>> >>>
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>> >>>  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:372)
>> >>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>> >>> at java.security.AccessController.doPrivileged(Native Method)
>> >>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> >>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> >>> ... 36 more
>> >>>
>> >>> Aug 15, 2014 12:19:37 PM org.apache.catalina.startup.Catalina load
>> >>>
>> >>>
>> >>
>>
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

smithh032772
In reply to this post by smithh032772
I added geronimo-osgi-registry-1.1.jar
<http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar>,
but

[EL Warning]: 2014-08-15 13:52:45.914--ServerSession(2077670077)--Problem
while registering MBean: java.lang.NullPointerException

still shows up in catalina log after tomee and my webapp is started,


Aug 15, 2014 2:01:40 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive
C:\apache-tomee-plus-1.7.0\webapps\mcmsweb.war has finished in 16,920 ms
Aug 15, 2014 2:01:40 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Aug 15, 2014 2:01:40 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Aug 15, 2014 2:01:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 17017 ms
Aug 15, 2014 2:01:41 PM org.atmosphere.cpr.AtmosphereFramework$4 run
INFO: Latest version of Atmosphere's JavaScript Client 2.2.2
Aug 15, 2014 2:01:50 PM org.apache.myfaces.el.unified.ResolverBuilderBase
sortELResolvers
INFO: Chain of EL resolvers for Faces sorted with:
org.apache.myfaces.el.unified.OpenWebBeansELResolverComparator@41b76e3f and
the result order is
[org.apache.myfaces.el.unified.resolver.implicitobject.ImplicitObjectResolver@8797b93,
org.apache.myfaces.el.unified.resolver.CompositeComponentELResolver@6a376b11,
org.apache.webbeans.el22.WebBeansELResolver@33c01d53,
org.apache.myfaces.el.FlashELResolver@497c4b82,
org.apache.myfaces.el.unified.resolver.ManagedBeanResolver@a1a04dd,
org.apache.myfaces.el.unified.resolver.ResourceResolver@5b24996c,
javax.el.ResourceBundleELResolver@683d2dde,
org.apache.myfaces.el.unified.resolver.ResourceBundleResolver@43b64b00,
javax.el.MapELResolver@19d09347, javax.el.ListELResolver@66c086e8,
javax.el.ArrayELResolver@67921433, javax.el.BeanELResolver@168dad8a]
[EL Info]: 2014-08-15 14:01:50.748--ServerSession(1699209850)--EclipseLink,
version: Eclipse Persistence Services - 2.3.2.v20111125-r10461
[EL Info]: 2014-08-15
14:01:51.35--ServerSession(1699209850)--file:/C:/apache-tomee-plus-1.7.0/webapps/mcmsweb/WEB-INF/classes/_mcmsPU
login successful
[EL Warning]: 2014-08-15 14:01:51.354--ServerSession(1699209850)--Problem
while registering MBean: java.lang.NullPointerException
Aug 15, 2014 2:02:03 PM pf.ApplicationScopeBean login



On Fri, Aug 15, 2014 at 1:57 PM, Howard W. Smith, Jr. <
[hidden email]> wrote:

> okay, see below:
>
> 1. added geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
> <http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar> to
> tomee/lib
> 2. removed geronimo-javamail_1.4_mail-1.8.3.jar from tomee/lib
> 3. added [Oracle] javax.mail.jar to tomee/lib
> 4. started tomee 1.7.0, no errors
> 5. logged into my app and saw the following exception
>
> [EL Warning]: 2014-08-15 13:52:45.914--ServerSession(2077670077)--Problem
> while registering MBean: java.lang.NullPointerException
>
> 6. javamail sendmail works as expected :)
>
> should I add geronimo-osgi-registry-1.1.jar
> <http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar> to
> resolve the exception in #5 above?
>
>
> On Fri, Aug 15, 2014 at 1:46 PM, Romain Manni-Bucau <[hidden email]
> > wrote:
>
>> 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
>>
>>
>> 2014-08-15 19:42 GMT+02:00 Howard W. Smith, Jr. <[hidden email]>:
>> > okay, when i use (tomee 1.7.0) geronimo-javamail_1.4_mail-1.8.3.jar, my
>> app
>> > still has javamail sendmail issues. see exception below. next, I'll try
>> to
>> > add Sun/Oracle's javamail to my WAR. I hope that resolves the stacktrace
>> > issue below and allows me to use tomee 1.7.0. otherwise, i will just
>> have
>> > to keep using tomee 1.6.0.2 and/or the next tomee release that does
>> 'not'
>> > require geronimo-javamail_1.4_mail-1.8.3.jar.
>> >
>> >
>> > javax.mail.SendFailedException: Send failure
>> > (javax.mail.MessagingException: Connection error
>> > (java.net.ConnectException: Connection timed out: connect))
>> > at javax.mail.Transport.send(Transport.java:163)
>> > at javax.mail.Transport.send(Transport.java:48)
>> > at utils.mail.JavaMail.sendMail(JavaMail.java:151)
>> > at pf.ApplicationScopeBean.sendMail(ApplicationScopeBean.java:601)
>> > at
>> >
>> pf.ApplicationScopeBean$$OwbNormalScopeProxy0.sendMail(pf/ApplicationScopeBean.java)
>> > at
>> >
>> utils.mail.EmailOrderSentByUser.emailDriverWorksheet(EmailOrderSentByUser.java:102)
>> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > at
>> >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> > at
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> > at java.lang.reflect.Method.invoke(Method.java:483)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>> > at
>> >
>> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
>> > at
>> >
>> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
>> > at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
>> > at
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> > at java.lang.reflect.Method.invoke(Method.java:483)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>> > at
>> >
>> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
>> > at
>> >
>> org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:256)
>> > at
>> >
>> org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:212)
>> > at
>> >
>> org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:308)
>> > at
>> >
>> org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:303)
>> > at
>> >
>> org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:92)
>> > at
>> >
>> org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:308)
>> > at
>> >
>> utils.mail.EmailOrderSentByUser$$LocalBeanProxy.emailDriverWorksheet(utils/mail/EmailOrderSentByUser.java)
>> > at mdb.EmailMessageDrivenBean.onMessage(EmailMessageDrivenBean.java:190)
>> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > at
>> >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> > at
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> > at java.lang.reflect.Method.invoke(Method.java:483)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>> > at
>> >
>> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
>> > at
>> >
>> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
>> > at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
>> > at
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> > at java.lang.reflect.Method.invoke(Method.java:483)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>> > at
>> >
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>> > at
>> >
>> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
>> > at
>> org.apache.openejb.core.mdb.MdbContainer._invoke(MdbContainer.java:402)
>> > at
>> org.apache.openejb.core.mdb.MdbContainer.invoke(MdbContainer.java:373)
>> > at
>> >
>> org.apache.openejb.core.mdb.EndpointHandler.deliverMessage(EndpointHandler.java:228)
>> > at
>> >
>> org.apache.openejb.core.mdb.EndpointHandler.invoke(EndpointHandler.java:169)
>> > at
>> >
>> mdb.EmailMessageDrivenBean$$LocalBeanProxy.onMessage(mdb/EmailMessageDrivenBean.java)
>> > at
>> >
>> org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:123)
>> > at
>> >
>> org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:64)
>> > at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:994)
>> > at
>> org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
>> > at
>> >
>> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:366)
>> > at
>> >
>> org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
>> > at
>> >
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>> > at
>> >
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>> > at java.lang.Thread.run(Thread.java:745)
>> > Caused by: javax.mail.MessagingException: Connection error
>> > (java.net.ConnectException: Connection timed out: connect)
>> > at
>> >
>> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:161)
>> > at
>> >
>> org.apache.geronimo.javamail.transport.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:165)
>> > at javax.mail.Service.connect(Service.java:274)
>> > at javax.mail.Service.connect(Service.java:91)
>> > at javax.mail.Service.connect(Service.java:76)
>> > at javax.mail.Transport.send(Transport.java:94)
>> > ... 55 more
>> > Caused by: java.net.ConnectException: Connection timed out: connect
>> > at java.net.DualStackPlainSocketImpl.connect0(Native Method)
>> > at
>> >
>> java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
>> > at
>> >
>> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
>> > at
>> >
>> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
>> > at
>> >
>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
>> > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
>> > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>> > at java.net.Socket.connect(Socket.java:589)
>> > at java.net.Socket.connect(Socket.java:538)
>> > at java.net.Socket.<init>(Socket.java:434)
>> > at java.net.Socket.<init>(Socket.java:286)
>> > at
>> >
>> org.apache.geronimo.javamail.util.MailConnection.getConnectedSocket(MailConnection.java:307)
>> > at
>> >
>> org.apache.geronimo.javamail.util.MailConnection.getConnection(MailConnection.java:250)
>> > at
>> >
>> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:140)
>> > ... 60 more
>> >
>> >
>> >
>> >
>> >
>> > On Fri, Aug 15, 2014 at 1:33 PM, Howard W. Smith, Jr. <
>> > [hidden email]> wrote:
>> >
>> >> I solved the error by adding geronimo-javamail_1.4_mail-1.8.3.jar to
>> >> tomee/lib. I do not like using this JAR, because of javamail sendmail
>> >> issues that I have experienced with TomEE 1.5.x and 1.6.x.
>> >>
>> >> Now, TomEE 1.7.0 requires geronimo-javamail_1.4_mail-1.8.3.jar to
>> exist in
>> >> tomee/lib to run/start properly?
>> >>
>> >> My preference is to use Sun/Oracle's javamail.jar instead
>> >> of geronimo-javamail_1.4_mail-1.8.3.jar. Should I add Sun/Oracle's
>> >> javamail.jar to my WAR, since I'm assuming that I cannot add both JARs
>> to
>> >> tomee/lib?
>> >>
>> >>
>> >>
>> >>
>> >> On Fri, Aug 15, 2014 at 12:57 PM, Howard W. Smith, Jr. <
>> >> [hidden email]> wrote:
>> >>
>> >>> I just downloaded TomEE 1.7.0 release, and I get the exception stack
>> >>> trace below, when I start tomEE 1.7.0 (and java 8 update 11) after
>> >>> deploying my webapp to tomee 1.7.0. Please advise.
>> >>>
>> >>>
>> >>> INFO: Enterprise application "openejb" loaded.
>> >>> Aug 15, 2014 12:19:36 PM
>> org.apache.openejb.assembler.classic.Assembler
>> >>> createRecipe
>> >>> INFO: Creating TransactionManager(id=Default Transaction Manager)
>> >>> Aug 15, 2014 12:19:36 PM
>> org.apache.openejb.assembler.classic.Assembler
>> >>> createRecipe
>> >>> INFO: Creating SecurityService(id=Tomcat Security Service)
>> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
>> >>> handleUnknownError
>> >>> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
>> >>> following stack trace and this message to [hidden email] :
>> >>>  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:62)
>> >>>  at
>> >>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> >>> at java.lang.reflect.Method.invoke(Method.java:483)
>> >>>  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:62)
>> >>>  at
>> >>>
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>> >>>  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:372)
>> >>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>> >>> at java.security.AccessController.doPrivileged(Native Method)
>> >>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> >>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> >>> ... 36 more
>> >>>
>> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.OpenEJB$Instance <init>
>> >>> SEVERE: OpenEJB has encountered a fatal error and cannot be started:
>> >>> Assembler failed to build the container system.
>> >>> org.apache.openejb.OpenEJBException:
>> >>> org.apache.xbean.recipe.ConstructionException: Error invoking
>> constructor:
>> >>> public org.apache.tomee.catalina.TomcatSecurityService(): Error
>> invoking
>> >>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>> >>>  at
>> >>>
>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>> >>> 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:62)
>> >>>  at
>> >>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> >>> at java.lang.reflect.Method.invoke(Method.java:483)
>> >>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>> >>> Caused by: 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)
>> >>> ... 17 more
>> >>> 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:62)
>> >>>  at
>> >>>
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>> >>>  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:372)
>> >>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>> >>> at java.security.AccessController.doPrivileged(Native Method)
>> >>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> >>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> >>> ... 36 more
>> >>>
>> >>> Aug 15, 2014 12:19:36 PM org.apache.tomee.catalina.ServerListener
>> install
>> >>> SEVERE: TomEE Listener can't start OpenEJB
>> >>> org.apache.openejb.OpenEJBException:
>> >>> org.apache.xbean.recipe.ConstructionException: Error invoking
>> constructor:
>> >>> public org.apache.tomee.catalina.TomcatSecurityService(): Error
>> invoking
>> >>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>> >>>  at
>> >>>
>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>> >>> 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:62)
>> >>>  at
>> >>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> >>> at java.lang.reflect.Method.invoke(Method.java:483)
>> >>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>> >>> Caused by: 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)
>> >>> ... 17 more
>> >>> 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:62)
>> >>>  at
>> >>>
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>> >>>  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:372)
>> >>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>> >>> at java.security.AccessController.doPrivileged(Native Method)
>> >>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> >>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> >>> ... 36 more
>> >>>
>> >>> Aug 15, 2014 12:19:37 PM org.apache.catalina.startup.Catalina load
>> >>>
>> >>>
>> >>
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

Bjorn Danielsson
In reply to this post by smithh032772
Hi Howard,

Adding the Sun/Oracle javamail to the WAR works for my app in 1.7.0.

I gave up trying to make Geronimo Javamail work a long time ago,
it was clearly broken and there was no one who could fix it.

--
Bjorn Danielsson
Cuspy Code AB


"Howard W. Smith, Jr." <[hidden email]> wrote:

> okay, when i use (tomee 1.7.0) geronimo-javamail_1.4_mail-1.8.3.jar, my app
> still has javamail sendmail issues. see exception below. next, I'll try to
> add Sun/Oracle's javamail to my WAR. I hope that resolves the stacktrace
> issue below and allows me to use tomee 1.7.0. otherwise, i will just have
> to keep using tomee 1.6.0.2 and/or the next tomee release that does 'not'
> require geronimo-javamail_1.4_mail-1.8.3.jar.
>
>
> javax.mail.SendFailedException: Send failure
> (javax.mail.MessagingException: Connection error
> (java.net.ConnectException: Connection timed out: connect))
> at javax.mail.Transport.send(Transport.java:163)
> at javax.mail.Transport.send(Transport.java:48)
> at utils.mail.JavaMail.sendMail(JavaMail.java:151)
> at pf.ApplicationScopeBean.sendMail(ApplicationScopeBean.java:601)
> at
> pf.ApplicationScopeBean$$OwbNormalScopeProxy0.sendMail(pf/ApplicationScopeBean.java)
> at
> utils.mail.EmailOrderSentByUser.emailDriverWorksheet(EmailOrderSentByUser.java:102)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> at
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
> at
> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
> at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> at
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
> at
> org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:256)
> at
> org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:212)
> at
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:308)
> at
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:303)
> at
> org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:92)
> at
> org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:308)
> at
> utils.mail.EmailOrderSentByUser$$LocalBeanProxy.emailDriverWorksheet(utils/mail/EmailOrderSentByUser.java)
> at mdb.EmailMessageDrivenBean.onMessage(EmailMessageDrivenBean.java:190)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> at
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
> at
> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
> at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> at
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
> at org.apache.openejb.core.mdb.MdbContainer._invoke(MdbContainer.java:402)
> at org.apache.openejb.core.mdb.MdbContainer.invoke(MdbContainer.java:373)
> at
> org.apache.openejb.core.mdb.EndpointHandler.deliverMessage(EndpointHandler.java:228)
> at
> org.apache.openejb.core.mdb.EndpointHandler.invoke(EndpointHandler.java:169)
> at
> mdb.EmailMessageDrivenBean$$LocalBeanProxy.onMessage(mdb/EmailMessageDrivenBean.java)
> at
> org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:123)
> at
> org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:64)
> at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:994)
> at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
> at
> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:366)
> at
> org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: javax.mail.MessagingException: Connection error
> (java.net.ConnectException: Connection timed out: connect)
> at
> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:161)
> at
> org.apache.geronimo.javamail.transport.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:165)
> at javax.mail.Service.connect(Service.java:274)
> at javax.mail.Service.connect(Service.java:91)
> at javax.mail.Service.connect(Service.java:76)
> at javax.mail.Transport.send(Transport.java:94)
> ... 55 more
> Caused by: java.net.ConnectException: Connection timed out: connect
> at java.net.DualStackPlainSocketImpl.connect0(Native Method)
> at
> java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
> at
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
> at
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:589)
> at java.net.Socket.connect(Socket.java:538)
> at java.net.Socket.<init>(Socket.java:434)
> at java.net.Socket.<init>(Socket.java:286)
> at
> org.apache.geronimo.javamail.util.MailConnection.getConnectedSocket(MailConnection.java:307)
> at
> org.apache.geronimo.javamail.util.MailConnection.getConnection(MailConnection.java:250)
> at
> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:140)
> ... 60 more
>
>
>
>
>
> On Fri, Aug 15, 2014 at 1:33 PM, Howard W. Smith, Jr. <
> [hidden email]> wrote:
>
>> I solved the error by adding geronimo-javamail_1.4_mail-1.8.3.jar to
>> tomee/lib. I do not like using this JAR, because of javamail sendmail
>> issues that I have experienced with TomEE 1.5.x and 1.6.x.
>>
>> Now, TomEE 1.7.0 requires geronimo-javamail_1.4_mail-1.8.3.jar to exist in
>> tomee/lib to run/start properly?
>>
>> My preference is to use Sun/Oracle's javamail.jar instead
>> of geronimo-javamail_1.4_mail-1.8.3.jar. Should I add Sun/Oracle's
>> javamail.jar to my WAR, since I'm assuming that I cannot add both JARs to
>> tomee/lib?
>>
>>
>>
>>
>> On Fri, Aug 15, 2014 at 12:57 PM, Howard W. Smith, Jr. <
>> [hidden email]> wrote:
>>
>>> I just downloaded TomEE 1.7.0 release, and I get the exception stack
>>> trace below, when I start tomEE 1.7.0 (and java 8 update 11) after
>>> deploying my webapp to tomee 1.7.0. Please advise.
>>>
>>>
>>> INFO: Enterprise application "openejb" loaded.
>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
>>> createRecipe
>>> INFO: Creating TransactionManager(id=Default Transaction Manager)
>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
>>> createRecipe
>>> INFO: Creating SecurityService(id=Tomcat Security Service)
>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
>>> handleUnknownError
>>> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
>>> following stack trace and this message to [hidden email] :
>>>  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:62)
>>>  at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>>  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:62)
>>>  at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>>  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:372)
>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>> ... 36 more
>>>
>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.OpenEJB$Instance <init>
>>> SEVERE: OpenEJB has encountered a fatal error and cannot be started:
>>> Assembler failed to build the container system.
>>> org.apache.openejb.OpenEJBException:
>>> org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
>>> public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
>>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>>>  at
>>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>>> 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:62)
>>>  at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>>> Caused by: 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)
>>> ... 17 more
>>> 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:62)
>>>  at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>>  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:372)
>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>> ... 36 more
>>>
>>> Aug 15, 2014 12:19:36 PM org.apache.tomee.catalina.ServerListener install
>>> SEVERE: TomEE Listener can't start OpenEJB
>>> org.apache.openejb.OpenEJBException:
>>> org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
>>> public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
>>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>>>  at
>>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>>> 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:62)
>>>  at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>>> Caused by: 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)
>>> ... 17 more
>>> 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:62)
>>>  at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>>  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:372)
>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>> ... 36 more
>>>
>>> Aug 15, 2014 12:19:37 PM org.apache.catalina.startup.Catalina load
>>>
>>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

smithh032772
In reply to this post by Romain Manni-Bucau
Okay, well, I deployed TomEE+ 1.7.0 to production server as per all
discussed here, and I don't see the following exception:

Problem while registering MBean: java.lang.NullPointerException

Not using geronimo-osgi-registry-1.1.jar on production server.

I'm good, now, thanks Romain.



On Fri, Aug 15, 2014 at 2:00 PM, Romain Manni-Bucau <[hidden email]>
wrote:

> I think it is not linked but without more info no idea to be honest.
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-08-15 19:57 GMT+02:00 Howard W. Smith, Jr. <[hidden email]>:
> > okay, see below:
> >
> > 1. added geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
> > <
> http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-locator/1.1/geronimo-osgi-locator-1.1.jar
> >
> > to
> > tomee/lib
> > 2. removed geronimo-javamail_1.4_mail-1.8.3.jar from tomee/lib
> > 3. added [Oracle] javax.mail.jar to tomee/lib
> > 4. started tomee 1.7.0, no errors
> > 5. logged into my app and saw the following exception
> >
> > [EL Warning]: 2014-08-15 13:52:45.914--ServerSession(2077670077)--Problem
> > while registering MBean: java.lang.NullPointerException
> >
> > 6. javamail sendmail works as expected :)
> >
> > should I add geronimo-osgi-registry-1.1.jar
> > <
> http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-osgi-registry/1.1/geronimo-osgi-registry-1.1.jar
> >
> > to
> > resolve the exception in #5 above?
> >
> >
> > On Fri, Aug 15, 2014 at 1:46 PM, Romain Manni-Bucau <
> [hidden email]>
> > wrote:
> >
> >> 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
> >>
> >>
> >> 2014-08-15 19:42 GMT+02:00 Howard W. Smith, Jr. <[hidden email]
> >:
> >> > okay, when i use (tomee 1.7.0) geronimo-javamail_1.4_mail-1.8.3.jar,
> my
> >> app
> >> > still has javamail sendmail issues. see exception below. next, I'll
> try
> >> to
> >> > add Sun/Oracle's javamail to my WAR. I hope that resolves the
> stacktrace
> >> > issue below and allows me to use tomee 1.7.0. otherwise, i will just
> have
> >> > to keep using tomee 1.6.0.2 and/or the next tomee release that does
> 'not'
> >> > require geronimo-javamail_1.4_mail-1.8.3.jar.
> >> >
> >> >
> >> > javax.mail.SendFailedException: Send failure
> >> > (javax.mail.MessagingException: Connection error
> >> > (java.net.ConnectException: Connection timed out: connect))
> >> > at javax.mail.Transport.send(Transport.java:163)
> >> > at javax.mail.Transport.send(Transport.java:48)
> >> > at utils.mail.JavaMail.sendMail(JavaMail.java:151)
> >> > at pf.ApplicationScopeBean.sendMail(ApplicationScopeBean.java:601)
> >> > at
> >> >
> >>
> pf.ApplicationScopeBean$$OwbNormalScopeProxy0.sendMail(pf/ApplicationScopeBean.java)
> >> > at
> >> >
> >>
> utils.mail.EmailOrderSentByUser.emailDriverWorksheet(EmailOrderSentByUser.java:102)
> >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> > at
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> >> > at
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >> > at java.lang.reflect.Method.invoke(Method.java:483)
> >> > at
> >> >
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> >> > at
> >> >
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> >> > at
> >> >
> >>
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
> >> > at
> >> >
> >>
> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
> >> > at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
> >> > at
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >> > at java.lang.reflect.Method.invoke(Method.java:483)
> >> > at
> >> >
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> >> > at
> >> >
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> >> > at
> >> >
> >>
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
> >> > at
> >> >
> >>
> org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:256)
> >> > at
> >> >
> >>
> org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:212)
> >> > at
> >> >
> >>
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:308)
> >> > at
> >> >
> >>
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:303)
> >> > at
> >> >
> >>
> org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:92)
> >> > at
> >> >
> >>
> org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:308)
> >> > at
> >> >
> >>
> utils.mail.EmailOrderSentByUser$$LocalBeanProxy.emailDriverWorksheet(utils/mail/EmailOrderSentByUser.java)
> >> > at
> mdb.EmailMessageDrivenBean.onMessage(EmailMessageDrivenBean.java:190)
> >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> > at
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> >> > at
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >> > at java.lang.reflect.Method.invoke(Method.java:483)
> >> > at
> >> >
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> >> > at
> >> >
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> >> > at
> >> >
> >>
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
> >> > at
> >> >
> >>
> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
> >> > at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
> >> > at
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >> > at java.lang.reflect.Method.invoke(Method.java:483)
> >> > at
> >> >
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> >> > at
> >> >
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> >> > at
> >> >
> >>
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
> >> > at
> >> org.apache.openejb.core.mdb.MdbContainer._invoke(MdbContainer.java:402)
> >> > at
> org.apache.openejb.core.mdb.MdbContainer.invoke(MdbContainer.java:373)
> >> > at
> >> >
> >>
> org.apache.openejb.core.mdb.EndpointHandler.deliverMessage(EndpointHandler.java:228)
> >> > at
> >> >
> >>
> org.apache.openejb.core.mdb.EndpointHandler.invoke(EndpointHandler.java:169)
> >> > at
> >> >
> >>
> mdb.EmailMessageDrivenBean$$LocalBeanProxy.onMessage(mdb/EmailMessageDrivenBean.java)
> >> > at
> >> >
> >>
> org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:123)
> >> > at
> >> >
> >>
> org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:64)
> >> > at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:994)
> >> > at
> >> org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
> >> > at
> >> >
> >>
> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:366)
> >> > at
> >> >
> >>
> org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
> >> > at
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> >> > at
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> >> > at java.lang.Thread.run(Thread.java:745)
> >> > Caused by: javax.mail.MessagingException: Connection error
> >> > (java.net.ConnectException: Connection timed out: connect)
> >> > at
> >> >
> >>
> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:161)
> >> > at
> >> >
> >>
> org.apache.geronimo.javamail.transport.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:165)
> >> > at javax.mail.Service.connect(Service.java:274)
> >> > at javax.mail.Service.connect(Service.java:91)
> >> > at javax.mail.Service.connect(Service.java:76)
> >> > at javax.mail.Transport.send(Transport.java:94)
> >> > ... 55 more
> >> > Caused by: java.net.ConnectException: Connection timed out: connect
> >> > at java.net.DualStackPlainSocketImpl.connect0(Native Method)
> >> > at
> >> >
> >>
> java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
> >> > at
> >> >
> >>
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
> >> > at
> >> >
> >>
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
> >> > at
> >> >
> >>
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
> >> > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
> >> > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> >> > at java.net.Socket.connect(Socket.java:589)
> >> > at java.net.Socket.connect(Socket.java:538)
> >> > at java.net.Socket.<init>(Socket.java:434)
> >> > at java.net.Socket.<init>(Socket.java:286)
> >> > at
> >> >
> >>
> org.apache.geronimo.javamail.util.MailConnection.getConnectedSocket(MailConnection.java:307)
> >> > at
> >> >
> >>
> org.apache.geronimo.javamail.util.MailConnection.getConnection(MailConnection.java:250)
> >> > at
> >> >
> >>
> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:140)
> >> > ... 60 more
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > On Fri, Aug 15, 2014 at 1:33 PM, Howard W. Smith, Jr. <
> >> > [hidden email]> wrote:
> >> >
> >> >> I solved the error by adding geronimo-javamail_1.4_mail-1.8.3.jar to
> >> >> tomee/lib. I do not like using this JAR, because of javamail sendmail
> >> >> issues that I have experienced with TomEE 1.5.x and 1.6.x.
> >> >>
> >> >> Now, TomEE 1.7.0 requires geronimo-javamail_1.4_mail-1.8.3.jar to
> exist
> >> in
> >> >> tomee/lib to run/start properly?
> >> >>
> >> >> My preference is to use Sun/Oracle's javamail.jar instead
> >> >> of geronimo-javamail_1.4_mail-1.8.3.jar. Should I add Sun/Oracle's
> >> >> javamail.jar to my WAR, since I'm assuming that I cannot add both
> JARs
> >> to
> >> >> tomee/lib?
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> On Fri, Aug 15, 2014 at 12:57 PM, Howard W. Smith, Jr. <
> >> >> [hidden email]> wrote:
> >> >>
> >> >>> I just downloaded TomEE 1.7.0 release, and I get the exception stack
> >> >>> trace below, when I start tomEE 1.7.0 (and java 8 update 11) after
> >> >>> deploying my webapp to tomee 1.7.0. Please advise.
> >> >>>
> >> >>>
> >> >>> INFO: Enterprise application "openejb" loaded.
> >> >>> Aug 15, 2014 12:19:36 PM
> org.apache.openejb.assembler.classic.Assembler
> >> >>> createRecipe
> >> >>> INFO: Creating TransactionManager(id=Default Transaction Manager)
> >> >>> Aug 15, 2014 12:19:36 PM
> org.apache.openejb.assembler.classic.Assembler
> >> >>> createRecipe
> >> >>> INFO: Creating SecurityService(id=Tomcat Security Service)
> >> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
> >> >>> handleUnknownError
> >> >>> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
> >> >>> following stack trace and this message to [hidden email]
> :
> >> >>>  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:62)
> >> >>>  at
> >> >>>
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >> >>> at java.lang.reflect.Method.invoke(Method.java:483)
> >> >>>  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:62)
> >> >>>  at
> >> >>>
> >>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
> >> >>>  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:372)
> >> >>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> >> >>> at java.security.AccessController.doPrivileged(Native Method)
> >> >>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> >> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >> >>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >> >>> ... 36 more
> >> >>>
> >> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.OpenEJB$Instance <init>
> >> >>> SEVERE: OpenEJB has encountered a fatal error and cannot be started:
> >> >>> Assembler failed to build the container system.
> >> >>> org.apache.openejb.OpenEJBException:
> >> >>> org.apache.xbean.recipe.ConstructionException: Error invoking
> >> constructor:
> >> >>> public org.apache.tomee.catalina.TomcatSecurityService(): Error
> >> invoking
> >> >>> constructor: public
> org.apache.tomee.catalina.TomcatSecurityService()
> >> >>>  at
> >> >>>
> >> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
> >> >>> 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:62)
> >> >>>  at
> >> >>>
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >> >>> at java.lang.reflect.Method.invoke(Method.java:483)
> >> >>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
> >> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
> >> >>> Caused by: 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)
> >> >>> ... 17 more
> >> >>> 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:62)
> >> >>>  at
> >> >>>
> >>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
> >> >>>  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:372)
> >> >>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> >> >>> at java.security.AccessController.doPrivileged(Native Method)
> >> >>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> >> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >> >>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >> >>> ... 36 more
> >> >>>
> >> >>> Aug 15, 2014 12:19:36 PM org.apache.tomee.catalina.ServerListener
> >> install
> >> >>> SEVERE: TomEE Listener can't start OpenEJB
> >> >>> org.apache.openejb.OpenEJBException:
> >> >>> org.apache.xbean.recipe.ConstructionException: Error invoking
> >> constructor:
> >> >>> public org.apache.tomee.catalina.TomcatSecurityService(): Error
> >> invoking
> >> >>> constructor: public
> org.apache.tomee.catalina.TomcatSecurityService()
> >> >>>  at
> >> >>>
> >> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
> >> >>> 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:62)
> >> >>>  at
> >> >>>
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >> >>> at java.lang.reflect.Method.invoke(Method.java:483)
> >> >>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
> >> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
> >> >>> Caused by: 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)
> >> >>> ... 17 more
> >> >>> 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:62)
> >> >>>  at
> >> >>>
> >>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
> >> >>>  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:372)
> >> >>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> >> >>> at java.security.AccessController.doPrivileged(Native Method)
> >> >>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> >> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >> >>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >> >>> ... 36 more
> >> >>>
> >> >>> Aug 15, 2014 12:19:37 PM org.apache.catalina.startup.Catalina load
> >> >>>
> >> >>>
> >> >>
> >>
>
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

smithh032772
In reply to this post by Bjorn Danielsson
Okay, thanks Bjorn for letting me know that about Sun/Oracle javamail in
the WAR.



On Fri, Aug 15, 2014 at 3:39 PM, Bjorn Danielsson <
[hidden email]> wrote:

> Hi Howard,
>
> Adding the Sun/Oracle javamail to the WAR works for my app in 1.7.0.
>
> I gave up trying to make Geronimo Javamail work a long time ago,
> it was clearly broken and there was no one who could fix it.
>
> --
> Bjorn Danielsson
> Cuspy Code AB
>
>
> "Howard W. Smith, Jr." <[hidden email]> wrote:
> > okay, when i use (tomee 1.7.0) geronimo-javamail_1.4_mail-1.8.3.jar, my
> app
> > still has javamail sendmail issues. see exception below. next, I'll try
> to
> > add Sun/Oracle's javamail to my WAR. I hope that resolves the stacktrace
> > issue below and allows me to use tomee 1.7.0. otherwise, i will just have
> > to keep using tomee 1.6.0.2 and/or the next tomee release that does 'not'
> > require geronimo-javamail_1.4_mail-1.8.3.jar.
> >
> >
> > javax.mail.SendFailedException: Send failure
> > (javax.mail.MessagingException: Connection error
> > (java.net.ConnectException: Connection timed out: connect))
> > at javax.mail.Transport.send(Transport.java:163)
> > at javax.mail.Transport.send(Transport.java:48)
> > at utils.mail.JavaMail.sendMail(JavaMail.java:151)
> > at pf.ApplicationScopeBean.sendMail(ApplicationScopeBean.java:601)
> > at
> >
> pf.ApplicationScopeBean$$OwbNormalScopeProxy0.sendMail(pf/ApplicationScopeBean.java)
> > at
> >
> utils.mail.EmailOrderSentByUser.emailDriverWorksheet(EmailOrderSentByUser.java:102)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:483)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> > at
> >
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
> > at
> >
> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
> > at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:483)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> > at
> >
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
> > at
> >
> org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:256)
> > at
> >
> org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:212)
> > at
> >
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:308)
> > at
> >
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:303)
> > at
> >
> org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:92)
> > at
> >
> org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:308)
> > at
> >
> utils.mail.EmailOrderSentByUser$$LocalBeanProxy.emailDriverWorksheet(utils/mail/EmailOrderSentByUser.java)
> > at mdb.EmailMessageDrivenBean.onMessage(EmailMessageDrivenBean.java:190)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:483)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> > at
> >
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
> > at
> >
> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
> > at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:483)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> > at
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> > at
> >
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
> > at
> org.apache.openejb.core.mdb.MdbContainer._invoke(MdbContainer.java:402)
> > at org.apache.openejb.core.mdb.MdbContainer.invoke(MdbContainer.java:373)
> > at
> >
> org.apache.openejb.core.mdb.EndpointHandler.deliverMessage(EndpointHandler.java:228)
> > at
> >
> org.apache.openejb.core.mdb.EndpointHandler.invoke(EndpointHandler.java:169)
> > at
> >
> mdb.EmailMessageDrivenBean$$LocalBeanProxy.onMessage(mdb/EmailMessageDrivenBean.java)
> > at
> >
> org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:123)
> > at
> >
> org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:64)
> > at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:994)
> > at
> org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
> > at
> >
> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:366)
> > at
> >
> org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
> > at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> > at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> > at java.lang.Thread.run(Thread.java:745)
> > Caused by: javax.mail.MessagingException: Connection error
> > (java.net.ConnectException: Connection timed out: connect)
> > at
> >
> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:161)
> > at
> >
> org.apache.geronimo.javamail.transport.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:165)
> > at javax.mail.Service.connect(Service.java:274)
> > at javax.mail.Service.connect(Service.java:91)
> > at javax.mail.Service.connect(Service.java:76)
> > at javax.mail.Transport.send(Transport.java:94)
> > ... 55 more
> > Caused by: java.net.ConnectException: Connection timed out: connect
> > at java.net.DualStackPlainSocketImpl.connect0(Native Method)
> > at
> >
> java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
> > at
> >
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
> > at
> >
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
> > at
> >
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
> > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
> > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> > at java.net.Socket.connect(Socket.java:589)
> > at java.net.Socket.connect(Socket.java:538)
> > at java.net.Socket.<init>(Socket.java:434)
> > at java.net.Socket.<init>(Socket.java:286)
> > at
> >
> org.apache.geronimo.javamail.util.MailConnection.getConnectedSocket(MailConnection.java:307)
> > at
> >
> org.apache.geronimo.javamail.util.MailConnection.getConnection(MailConnection.java:250)
> > at
> >
> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:140)
> > ... 60 more
> >
> >
> >
> >
> >
> > On Fri, Aug 15, 2014 at 1:33 PM, Howard W. Smith, Jr. <
> > [hidden email]> wrote:
> >
> >> I solved the error by adding geronimo-javamail_1.4_mail-1.8.3.jar to
> >> tomee/lib. I do not like using this JAR, because of javamail sendmail
> >> issues that I have experienced with TomEE 1.5.x and 1.6.x.
> >>
> >> Now, TomEE 1.7.0 requires geronimo-javamail_1.4_mail-1.8.3.jar to exist
> in
> >> tomee/lib to run/start properly?
> >>
> >> My preference is to use Sun/Oracle's javamail.jar instead
> >> of geronimo-javamail_1.4_mail-1.8.3.jar. Should I add Sun/Oracle's
> >> javamail.jar to my WAR, since I'm assuming that I cannot add both JARs
> to
> >> tomee/lib?
> >>
> >>
> >>
> >>
> >> On Fri, Aug 15, 2014 at 12:57 PM, Howard W. Smith, Jr. <
> >> [hidden email]> wrote:
> >>
> >>> I just downloaded TomEE 1.7.0 release, and I get the exception stack
> >>> trace below, when I start tomEE 1.7.0 (and java 8 update 11) after
> >>> deploying my webapp to tomee 1.7.0. Please advise.
> >>>
> >>>
> >>> INFO: Enterprise application "openejb" loaded.
> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
> >>> createRecipe
> >>> INFO: Creating TransactionManager(id=Default Transaction Manager)
> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
> >>> createRecipe
> >>> INFO: Creating SecurityService(id=Tomcat Security Service)
> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
> >>> handleUnknownError
> >>> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
> >>> following stack trace and this message to [hidden email] :
> >>>  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:62)
> >>>  at
> >>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>> at java.lang.reflect.Method.invoke(Method.java:483)
> >>>  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:62)
> >>>  at
> >>>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
> >>>  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:372)
> >>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> >>> at java.security.AccessController.doPrivileged(Native Method)
> >>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >>> ... 36 more
> >>>
> >>> Aug 15, 2014 12:19:36 PM org.apache.openejb.OpenEJB$Instance <init>
> >>> SEVERE: OpenEJB has encountered a fatal error and cannot be started:
> >>> Assembler failed to build the container system.
> >>> org.apache.openejb.OpenEJBException:
> >>> org.apache.xbean.recipe.ConstructionException: Error invoking
> constructor:
> >>> public org.apache.tomee.catalina.TomcatSecurityService(): Error
> invoking
> >>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
> >>>  at
> >>>
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
> >>> 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:62)
> >>>  at
> >>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>> at java.lang.reflect.Method.invoke(Method.java:483)
> >>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
> >>> Caused by: 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)
> >>> ... 17 more
> >>> 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:62)
> >>>  at
> >>>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
> >>>  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:372)
> >>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> >>> at java.security.AccessController.doPrivileged(Native Method)
> >>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >>> ... 36 more
> >>>
> >>> Aug 15, 2014 12:19:36 PM org.apache.tomee.catalina.ServerListener
> install
> >>> SEVERE: TomEE Listener can't start OpenEJB
> >>> org.apache.openejb.OpenEJBException:
> >>> org.apache.xbean.recipe.ConstructionException: Error invoking
> constructor:
> >>> public org.apache.tomee.catalina.TomcatSecurityService(): Error
> invoking
> >>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
> >>>  at
> >>>
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
> >>> 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:62)
> >>>  at
> >>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>> at java.lang.reflect.Method.invoke(Method.java:483)
> >>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
> >>> Caused by: 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)
> >>> ... 17 more
> >>> 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:62)
> >>>  at
> >>>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
> >>>  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:372)
> >>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> >>> at java.security.AccessController.doPrivileged(Native Method)
> >>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >>> ... 36 more
> >>>
> >>> Aug 15, 2014 12:19:37 PM org.apache.catalina.startup.Catalina load
> >>>
> >>>
> >>
>
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

Hendrik Dev
In reply to this post by Bjorn Danielsson
Regarding geronimo javamail:

I am on it. Currently i am developing a greenmail replacement to have
a reliable testframework (will donate if ready).
I am also reviewing the current 1.4 code to fix things for the
upcoming geronimo-javamail 1.5 (part of JEE7) release and write a lot
of new testcases.
Specs are also already in progress:
https://issues.apache.org/jira/browse/GERONIMO-6527

Hendrik


On Fri, Aug 15, 2014 at 9:39 PM, Bjorn Danielsson
<[hidden email]> wrote:

> Hi Howard,
>
> Adding the Sun/Oracle javamail to the WAR works for my app in 1.7.0.
>
> I gave up trying to make Geronimo Javamail work a long time ago,
> it was clearly broken and there was no one who could fix it.
>
> --
> Bjorn Danielsson
> Cuspy Code AB
>
>
> "Howard W. Smith, Jr." <[hidden email]> wrote:
>> okay, when i use (tomee 1.7.0) geronimo-javamail_1.4_mail-1.8.3.jar, my app
>> still has javamail sendmail issues. see exception below. next, I'll try to
>> add Sun/Oracle's javamail to my WAR. I hope that resolves the stacktrace
>> issue below and allows me to use tomee 1.7.0. otherwise, i will just have
>> to keep using tomee 1.6.0.2 and/or the next tomee release that does 'not'
>> require geronimo-javamail_1.4_mail-1.8.3.jar.
>>
>>
>> javax.mail.SendFailedException: Send failure
>> (javax.mail.MessagingException: Connection error
>> (java.net.ConnectException: Connection timed out: connect))
>> at javax.mail.Transport.send(Transport.java:163)
>> at javax.mail.Transport.send(Transport.java:48)
>> at utils.mail.JavaMail.sendMail(JavaMail.java:151)
>> at pf.ApplicationScopeBean.sendMail(ApplicationScopeBean.java:601)
>> at
>> pf.ApplicationScopeBean$$OwbNormalScopeProxy0.sendMail(pf/ApplicationScopeBean.java)
>> at
>> utils.mail.EmailOrderSentByUser.emailDriverWorksheet(EmailOrderSentByUser.java:102)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:483)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>> at
>> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
>> at
>> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
>> at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:483)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>> at
>> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
>> at
>> org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:256)
>> at
>> org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:212)
>> at
>> org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:308)
>> at
>> org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:303)
>> at
>> org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:92)
>> at
>> org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:308)
>> at
>> utils.mail.EmailOrderSentByUser$$LocalBeanProxy.emailDriverWorksheet(utils/mail/EmailOrderSentByUser.java)
>> at mdb.EmailMessageDrivenBean.onMessage(EmailMessageDrivenBean.java:190)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:483)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>> at
>> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
>> at
>> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
>> at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:483)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>> at
>> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
>> at org.apache.openejb.core.mdb.MdbContainer._invoke(MdbContainer.java:402)
>> at org.apache.openejb.core.mdb.MdbContainer.invoke(MdbContainer.java:373)
>> at
>> org.apache.openejb.core.mdb.EndpointHandler.deliverMessage(EndpointHandler.java:228)
>> at
>> org.apache.openejb.core.mdb.EndpointHandler.invoke(EndpointHandler.java:169)
>> at
>> mdb.EmailMessageDrivenBean$$LocalBeanProxy.onMessage(mdb/EmailMessageDrivenBean.java)
>> at
>> org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:123)
>> at
>> org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:64)
>> at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:994)
>> at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
>> at
>> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:366)
>> at
>> org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: javax.mail.MessagingException: Connection error
>> (java.net.ConnectException: Connection timed out: connect)
>> at
>> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:161)
>> at
>> org.apache.geronimo.javamail.transport.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:165)
>> at javax.mail.Service.connect(Service.java:274)
>> at javax.mail.Service.connect(Service.java:91)
>> at javax.mail.Service.connect(Service.java:76)
>> at javax.mail.Transport.send(Transport.java:94)
>> ... 55 more
>> Caused by: java.net.ConnectException: Connection timed out: connect
>> at java.net.DualStackPlainSocketImpl.connect0(Native Method)
>> at
>> java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
>> at
>> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
>> at
>> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
>> at
>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>> at java.net.Socket.connect(Socket.java:589)
>> at java.net.Socket.connect(Socket.java:538)
>> at java.net.Socket.<init>(Socket.java:434)
>> at java.net.Socket.<init>(Socket.java:286)
>> at
>> org.apache.geronimo.javamail.util.MailConnection.getConnectedSocket(MailConnection.java:307)
>> at
>> org.apache.geronimo.javamail.util.MailConnection.getConnection(MailConnection.java:250)
>> at
>> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:140)
>> ... 60 more
>>
>>
>>
>>
>>
>> On Fri, Aug 15, 2014 at 1:33 PM, Howard W. Smith, Jr. <
>> [hidden email]> wrote:
>>
>>> I solved the error by adding geronimo-javamail_1.4_mail-1.8.3.jar to
>>> tomee/lib. I do not like using this JAR, because of javamail sendmail
>>> issues that I have experienced with TomEE 1.5.x and 1.6.x.
>>>
>>> Now, TomEE 1.7.0 requires geronimo-javamail_1.4_mail-1.8.3.jar to exist in
>>> tomee/lib to run/start properly?
>>>
>>> My preference is to use Sun/Oracle's javamail.jar instead
>>> of geronimo-javamail_1.4_mail-1.8.3.jar. Should I add Sun/Oracle's
>>> javamail.jar to my WAR, since I'm assuming that I cannot add both JARs to
>>> tomee/lib?
>>>
>>>
>>>
>>>
>>> On Fri, Aug 15, 2014 at 12:57 PM, Howard W. Smith, Jr. <
>>> [hidden email]> wrote:
>>>
>>>> I just downloaded TomEE 1.7.0 release, and I get the exception stack
>>>> trace below, when I start tomEE 1.7.0 (and java 8 update 11) after
>>>> deploying my webapp to tomee 1.7.0. Please advise.
>>>>
>>>>
>>>> INFO: Enterprise application "openejb" loaded.
>>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
>>>> createRecipe
>>>> INFO: Creating TransactionManager(id=Default Transaction Manager)
>>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
>>>> createRecipe
>>>> INFO: Creating SecurityService(id=Tomcat Security Service)
>>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
>>>> handleUnknownError
>>>> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
>>>> following stack trace and this message to [hidden email] :
>>>>  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:62)
>>>>  at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>>>  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:62)
>>>>  at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>>>  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:372)
>>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>> ... 36 more
>>>>
>>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.OpenEJB$Instance <init>
>>>> SEVERE: OpenEJB has encountered a fatal error and cannot be started:
>>>> Assembler failed to build the container system.
>>>> org.apache.openejb.OpenEJBException:
>>>> org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
>>>> public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
>>>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>>>>  at
>>>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>>>> 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:62)
>>>>  at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>>>> Caused by: 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)
>>>> ... 17 more
>>>> 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:62)
>>>>  at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>>>  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:372)
>>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>> ... 36 more
>>>>
>>>> Aug 15, 2014 12:19:36 PM org.apache.tomee.catalina.ServerListener install
>>>> SEVERE: TomEE Listener can't start OpenEJB
>>>> org.apache.openejb.OpenEJBException:
>>>> org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
>>>> public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
>>>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>>>>  at
>>>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>>>> 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:62)
>>>>  at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>>>> Caused by: 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)
>>>> ... 17 more
>>>> 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:62)
>>>>  at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>>>  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:372)
>>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>> ... 36 more
>>>>
>>>> Aug 15, 2014 12:19:37 PM org.apache.catalina.startup.Catalina load
>>>>
>>>>
>>>



--
Hendrik Saly (salyh, hendrikdev22)
@hendrikdev22
PGP: 0x22D7F6EC
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

Romain Manni-Bucau
About this particular issue it affects geronimo jacc, geronimo validation
etc....not sure if we fix it or remove osgi integration from javamail and
add back the osgi link in tomee
Le 15 août 2014 22:12, "Hendrik Dev" <[hidden email]> a écrit :

> Regarding geronimo javamail:
>
> I am on it. Currently i am developing a greenmail replacement to have
> a reliable testframework (will donate if ready).
> I am also reviewing the current 1.4 code to fix things for the
> upcoming geronimo-javamail 1.5 (part of JEE7) release and write a lot
> of new testcases.
> Specs are also already in progress:
> https://issues.apache.org/jira/browse/GERONIMO-6527
>
> Hendrik
>
>
> On Fri, Aug 15, 2014 at 9:39 PM, Bjorn Danielsson
> <[hidden email]> wrote:
> > Hi Howard,
> >
> > Adding the Sun/Oracle javamail to the WAR works for my app in 1.7.0.
> >
> > I gave up trying to make Geronimo Javamail work a long time ago,
> > it was clearly broken and there was no one who could fix it.
> >
> > --
> > Bjorn Danielsson
> > Cuspy Code AB
> >
> >
> > "Howard W. Smith, Jr." <[hidden email]> wrote:
> >> okay, when i use (tomee 1.7.0) geronimo-javamail_1.4_mail-1.8.3.jar, my
> app
> >> still has javamail sendmail issues. see exception below. next, I'll try
> to
> >> add Sun/Oracle's javamail to my WAR. I hope that resolves the stacktrace
> >> issue below and allows me to use tomee 1.7.0. otherwise, i will just
> have
> >> to keep using tomee 1.6.0.2 and/or the next tomee release that does
> 'not'
> >> require geronimo-javamail_1.4_mail-1.8.3.jar.
> >>
> >>
> >> javax.mail.SendFailedException: Send failure
> >> (javax.mail.MessagingException: Connection error
> >> (java.net.ConnectException: Connection timed out: connect))
> >> at javax.mail.Transport.send(Transport.java:163)
> >> at javax.mail.Transport.send(Transport.java:48)
> >> at utils.mail.JavaMail.sendMail(JavaMail.java:151)
> >> at pf.ApplicationScopeBean.sendMail(ApplicationScopeBean.java:601)
> >> at
> >>
> pf.ApplicationScopeBean$$OwbNormalScopeProxy0.sendMail(pf/ApplicationScopeBean.java)
> >> at
> >>
> utils.mail.EmailOrderSentByUser.emailDriverWorksheet(EmailOrderSentByUser.java:102)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> >> at
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >> at java.lang.reflect.Method.invoke(Method.java:483)
> >> at
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> >> at
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> >> at
> >>
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
> >> at
> >>
> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
> >> at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
> >> at
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >> at java.lang.reflect.Method.invoke(Method.java:483)
> >> at
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> >> at
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> >> at
> >>
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
> >> at
> >>
> org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:256)
> >> at
> >>
> org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:212)
> >> at
> >>
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:308)
> >> at
> >>
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:303)
> >> at
> >>
> org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:92)
> >> at
> >>
> org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:308)
> >> at
> >>
> utils.mail.EmailOrderSentByUser$$LocalBeanProxy.emailDriverWorksheet(utils/mail/EmailOrderSentByUser.java)
> >> at mdb.EmailMessageDrivenBean.onMessage(EmailMessageDrivenBean.java:190)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> >> at
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >> at java.lang.reflect.Method.invoke(Method.java:483)
> >> at
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> >> at
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> >> at
> >>
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
> >> at
> >>
> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
> >> at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
> >> at
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >> at java.lang.reflect.Method.invoke(Method.java:483)
> >> at
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> >> at
> >>
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> >> at
> >>
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
> >> at
> org.apache.openejb.core.mdb.MdbContainer._invoke(MdbContainer.java:402)
> >> at
> org.apache.openejb.core.mdb.MdbContainer.invoke(MdbContainer.java:373)
> >> at
> >>
> org.apache.openejb.core.mdb.EndpointHandler.deliverMessage(EndpointHandler.java:228)
> >> at
> >>
> org.apache.openejb.core.mdb.EndpointHandler.invoke(EndpointHandler.java:169)
> >> at
> >>
> mdb.EmailMessageDrivenBean$$LocalBeanProxy.onMessage(mdb/EmailMessageDrivenBean.java)
> >> at
> >>
> org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:123)
> >> at
> >>
> org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:64)
> >> at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:994)
> >> at
> org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
> >> at
> >>
> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:366)
> >> at
> >>
> org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
> >> at
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> >> at
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> >> at java.lang.Thread.run(Thread.java:745)
> >> Caused by: javax.mail.MessagingException: Connection error
> >> (java.net.ConnectException: Connection timed out: connect)
> >> at
> >>
> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:161)
> >> at
> >>
> org.apache.geronimo.javamail.transport.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:165)
> >> at javax.mail.Service.connect(Service.java:274)
> >> at javax.mail.Service.connect(Service.java:91)
> >> at javax.mail.Service.connect(Service.java:76)
> >> at javax.mail.Transport.send(Transport.java:94)
> >> ... 55 more
> >> Caused by: java.net.ConnectException: Connection timed out: connect
> >> at java.net.DualStackPlainSocketImpl.connect0(Native Method)
> >> at
> >>
> java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
> >> at
> >>
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
> >> at
> >>
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
> >> at
> >>
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
> >> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
> >> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> >> at java.net.Socket.connect(Socket.java:589)
> >> at java.net.Socket.connect(Socket.java:538)
> >> at java.net.Socket.<init>(Socket.java:434)
> >> at java.net.Socket.<init>(Socket.java:286)
> >> at
> >>
> org.apache.geronimo.javamail.util.MailConnection.getConnectedSocket(MailConnection.java:307)
> >> at
> >>
> org.apache.geronimo.javamail.util.MailConnection.getConnection(MailConnection.java:250)
> >> at
> >>
> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:140)
> >> ... 60 more
> >>
> >>
> >>
> >>
> >>
> >> On Fri, Aug 15, 2014 at 1:33 PM, Howard W. Smith, Jr. <
> >> [hidden email]> wrote:
> >>
> >>> I solved the error by adding geronimo-javamail_1.4_mail-1.8.3.jar to
> >>> tomee/lib. I do not like using this JAR, because of javamail sendmail
> >>> issues that I have experienced with TomEE 1.5.x and 1.6.x.
> >>>
> >>> Now, TomEE 1.7.0 requires geronimo-javamail_1.4_mail-1.8.3.jar to
> exist in
> >>> tomee/lib to run/start properly?
> >>>
> >>> My preference is to use Sun/Oracle's javamail.jar instead
> >>> of geronimo-javamail_1.4_mail-1.8.3.jar. Should I add Sun/Oracle's
> >>> javamail.jar to my WAR, since I'm assuming that I cannot add both JARs
> to
> >>> tomee/lib?
> >>>
> >>>
> >>>
> >>>
> >>> On Fri, Aug 15, 2014 at 12:57 PM, Howard W. Smith, Jr. <
> >>> [hidden email]> wrote:
> >>>
> >>>> I just downloaded TomEE 1.7.0 release, and I get the exception stack
> >>>> trace below, when I start tomEE 1.7.0 (and java 8 update 11) after
> >>>> deploying my webapp to tomee 1.7.0. Please advise.
> >>>>
> >>>>
> >>>> INFO: Enterprise application "openejb" loaded.
> >>>> Aug 15, 2014 12:19:36 PM
> org.apache.openejb.assembler.classic.Assembler
> >>>> createRecipe
> >>>> INFO: Creating TransactionManager(id=Default Transaction Manager)
> >>>> Aug 15, 2014 12:19:36 PM
> org.apache.openejb.assembler.classic.Assembler
> >>>> createRecipe
> >>>> INFO: Creating SecurityService(id=Tomcat Security Service)
> >>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
> >>>> handleUnknownError
> >>>> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
> >>>> following stack trace and this message to [hidden email] :
> >>>>  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:62)
> >>>>  at
> >>>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>>> at java.lang.reflect.Method.invoke(Method.java:483)
> >>>>  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:62)
> >>>>  at
> >>>>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
> >>>>  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:372)
> >>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> >>>> at java.security.AccessController.doPrivileged(Native Method)
> >>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> >>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >>>> ... 36 more
> >>>>
> >>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.OpenEJB$Instance <init>
> >>>> SEVERE: OpenEJB has encountered a fatal error and cannot be started:
> >>>> Assembler failed to build the container system.
> >>>> org.apache.openejb.OpenEJBException:
> >>>> org.apache.xbean.recipe.ConstructionException: Error invoking
> constructor:
> >>>> public org.apache.tomee.catalina.TomcatSecurityService(): Error
> invoking
> >>>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
> >>>>  at
> >>>>
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
> >>>> 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:62)
> >>>>  at
> >>>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>>> at java.lang.reflect.Method.invoke(Method.java:483)
> >>>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
> >>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
> >>>> Caused by: 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)
> >>>> ... 17 more
> >>>> 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:62)
> >>>>  at
> >>>>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
> >>>>  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:372)
> >>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> >>>> at java.security.AccessController.doPrivileged(Native Method)
> >>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> >>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >>>> ... 36 more
> >>>>
> >>>> Aug 15, 2014 12:19:36 PM org.apache.tomee.catalina.ServerListener
> install
> >>>> SEVERE: TomEE Listener can't start OpenEJB
> >>>> org.apache.openejb.OpenEJBException:
> >>>> org.apache.xbean.recipe.ConstructionException: Error invoking
> constructor:
> >>>> public org.apache.tomee.catalina.TomcatSecurityService(): Error
> invoking
> >>>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
> >>>>  at
> >>>>
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
> >>>> 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:62)
> >>>>  at
> >>>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>>> at java.lang.reflect.Method.invoke(Method.java:483)
> >>>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
> >>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
> >>>> Caused by: 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)
> >>>> ... 17 more
> >>>> 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:62)
> >>>>  at
> >>>>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
> >>>>  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:372)
> >>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> >>>> at java.security.AccessController.doPrivileged(Native Method)
> >>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> >>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >>>> ... 36 more
> >>>>
> >>>> Aug 15, 2014 12:19:37 PM org.apache.catalina.startup.Catalina load
> >>>>
> >>>>
> >>>
>
>
>
> --
> Hendrik Saly (salyh, hendrikdev22)
> @hendrikdev22
> PGP: 0x22D7F6EC
>
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

hwaastad
Hi,
I'm facing the same problem.

is there any maven coordinate for this geronimo-osgi-registry jar?
I'm trying to get this going using tomee-maven-plugin.

br, hw
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

Romain Manni-Bucau
You have them in the link i posted
Le 16 août 2014 09:03, "hwaastad" <[hidden email]> a écrit :

> Hi,
> I'm facing the same problem.
>
> is there any maven coordinate for this geronimo-osgi-registry jar?
> I'm trying to get this going using tomee-maven-plugin.
>
> br, hw
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/TomEE-1-7-0-Release-xbean-error-caused-by-NoClassDefFoundError-org-apache-geronimo-osgi-locator-Provr-tp4671183p4671202.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

hwaastad
Sorry,
lost my glasses......;-)

thanks
Reply | Threaded
Open this post in threaded view
|

Re: TomEE 1.7.0 Release: xbean error caused by NoClassDefFoundError: org/apache/geronimo/osgi/locator/ProviderLocator

Bjorn Danielsson
In reply to this post by Hendrik Dev
Thanks Hendrik, that is great!

I'll check it out and test my stuff and report back.

--
Bjorn Danielsson
Cuspy Code AB


Hendrik Dev <[hidden email]> wrote:

> Regarding geronimo javamail:
>
> I am on it. Currently i am developing a greenmail replacement to have
> a reliable testframework (will donate if ready).
> I am also reviewing the current 1.4 code to fix things for the
> upcoming geronimo-javamail 1.5 (part of JEE7) release and write a lot
> of new testcases.
> Specs are also already in progress:
> https://issues.apache.org/jira/browse/GERONIMO-6527
>
> Hendrik
>
>
> On Fri, Aug 15, 2014 at 9:39 PM, Bjorn Danielsson
> <[hidden email]> wrote:
>> Hi Howard,
>>
>> Adding the Sun/Oracle javamail to the WAR works for my app in 1.7.0.
>>
>> I gave up trying to make Geronimo Javamail work a long time ago,
>> it was clearly broken and there was no one who could fix it.
>>
>> --
>> Bjorn Danielsson
>> Cuspy Code AB
>>
>>
>> "Howard W. Smith, Jr." <[hidden email]> wrote:
>>> okay, when i use (tomee 1.7.0) geronimo-javamail_1.4_mail-1.8.3.jar, my app
>>> still has javamail sendmail issues. see exception below. next, I'll try to
>>> add Sun/Oracle's javamail to my WAR. I hope that resolves the stacktrace
>>> issue below and allows me to use tomee 1.7.0. otherwise, i will just have
>>> to keep using tomee 1.6.0.2 and/or the next tomee release that does 'not'
>>> require geronimo-javamail_1.4_mail-1.8.3.jar.
>>>
>>>
>>> javax.mail.SendFailedException: Send failure
>>> (javax.mail.MessagingException: Connection error
>>> (java.net.ConnectException: Connection timed out: connect))
>>> at javax.mail.Transport.send(Transport.java:163)
>>> at javax.mail.Transport.send(Transport.java:48)
>>> at utils.mail.JavaMail.sendMail(JavaMail.java:151)
>>> at pf.ApplicationScopeBean.sendMail(ApplicationScopeBean.java:601)
>>> at
>>> pf.ApplicationScopeBean$$OwbNormalScopeProxy0.sendMail(pf/ApplicationScopeBean.java)
>>> at
>>> utils.mail.EmailOrderSentByUser.emailDriverWorksheet(EmailOrderSentByUser.java:102)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>> at
>>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>>> at
>>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>>> at
>>> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
>>> at
>>> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
>>> at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>> at
>>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>>> at
>>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>>> at
>>> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
>>> at
>>> org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:256)
>>> at
>>> org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:212)
>>> at
>>> org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:308)
>>> at
>>> org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:303)
>>> at
>>> org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:92)
>>> at
>>> org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:308)
>>> at
>>> utils.mail.EmailOrderSentByUser$$LocalBeanProxy.emailDriverWorksheet(utils/mail/EmailOrderSentByUser.java)
>>> at mdb.EmailMessageDrivenBean.onMessage(EmailMessageDrivenBean.java:190)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>> at
>>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>>> at
>>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>>> at
>>> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
>>> at
>>> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
>>> at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>> at
>>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
>>> at
>>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
>>> at
>>> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
>>> at org.apache.openejb.core.mdb.MdbContainer._invoke(MdbContainer.java:402)
>>> at org.apache.openejb.core.mdb.MdbContainer.invoke(MdbContainer.java:373)
>>> at
>>> org.apache.openejb.core.mdb.EndpointHandler.deliverMessage(EndpointHandler.java:228)
>>> at
>>> org.apache.openejb.core.mdb.EndpointHandler.invoke(EndpointHandler.java:169)
>>> at
>>> mdb.EmailMessageDrivenBean$$LocalBeanProxy.onMessage(mdb/EmailMessageDrivenBean.java)
>>> at
>>> org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:123)
>>> at
>>> org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:64)
>>> at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:994)
>>> at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
>>> at
>>> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:366)
>>> at
>>> org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>> at java.lang.Thread.run(Thread.java:745)
>>> Caused by: javax.mail.MessagingException: Connection error
>>> (java.net.ConnectException: Connection timed out: connect)
>>> at
>>> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:161)
>>> at
>>> org.apache.geronimo.javamail.transport.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:165)
>>> at javax.mail.Service.connect(Service.java:274)
>>> at javax.mail.Service.connect(Service.java:91)
>>> at javax.mail.Service.connect(Service.java:76)
>>> at javax.mail.Transport.send(Transport.java:94)
>>> ... 55 more
>>> Caused by: java.net.ConnectException: Connection timed out: connect
>>> at java.net.DualStackPlainSocketImpl.connect0(Native Method)
>>> at
>>> java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
>>> at
>>> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
>>> at
>>> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
>>> at
>>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>>> at java.net.Socket.connect(Socket.java:589)
>>> at java.net.Socket.connect(Socket.java:538)
>>> at java.net.Socket.<init>(Socket.java:434)
>>> at java.net.Socket.<init>(Socket.java:286)
>>> at
>>> org.apache.geronimo.javamail.util.MailConnection.getConnectedSocket(MailConnection.java:307)
>>> at
>>> org.apache.geronimo.javamail.util.MailConnection.getConnection(MailConnection.java:250)
>>> at
>>> org.apache.geronimo.javamail.transport.smtp.SMTPConnection.protocolConnect(SMTPConnection.java:140)
>>> ... 60 more
>>>
>>>
>>>
>>>
>>>
>>> On Fri, Aug 15, 2014 at 1:33 PM, Howard W. Smith, Jr. <
>>> [hidden email]> wrote:
>>>
>>>> I solved the error by adding geronimo-javamail_1.4_mail-1.8.3.jar to
>>>> tomee/lib. I do not like using this JAR, because of javamail sendmail
>>>> issues that I have experienced with TomEE 1.5.x and 1.6.x.
>>>>
>>>> Now, TomEE 1.7.0 requires geronimo-javamail_1.4_mail-1.8.3.jar to exist in
>>>> tomee/lib to run/start properly?
>>>>
>>>> My preference is to use Sun/Oracle's javamail.jar instead
>>>> of geronimo-javamail_1.4_mail-1.8.3.jar. Should I add Sun/Oracle's
>>>> javamail.jar to my WAR, since I'm assuming that I cannot add both JARs to
>>>> tomee/lib?
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Aug 15, 2014 at 12:57 PM, Howard W. Smith, Jr. <
>>>> [hidden email]> wrote:
>>>>
>>>>> I just downloaded TomEE 1.7.0 release, and I get the exception stack
>>>>> trace below, when I start tomEE 1.7.0 (and java 8 update 11) after
>>>>> deploying my webapp to tomee 1.7.0. Please advise.
>>>>>
>>>>>
>>>>> INFO: Enterprise application "openejb" loaded.
>>>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
>>>>> createRecipe
>>>>> INFO: Creating TransactionManager(id=Default Transaction Manager)
>>>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.assembler.classic.Assembler
>>>>> createRecipe
>>>>> INFO: Creating SecurityService(id=Tomcat Security Service)
>>>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.util.OpenEJBErrorHandler
>>>>> handleUnknownError
>>>>> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
>>>>> following stack trace and this message to [hidden email] :
>>>>>  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:62)
>>>>>  at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>>>>  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:62)
>>>>>  at
>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>>>>  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:372)
>>>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>>> ... 36 more
>>>>>
>>>>> Aug 15, 2014 12:19:36 PM org.apache.openejb.OpenEJB$Instance <init>
>>>>> SEVERE: OpenEJB has encountered a fatal error and cannot be started:
>>>>> Assembler failed to build the container system.
>>>>> org.apache.openejb.OpenEJBException:
>>>>> org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
>>>>> public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
>>>>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>>>>>  at
>>>>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>>>>> 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:62)
>>>>>  at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>>>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>>>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>>>>> Caused by: 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)
>>>>> ... 17 more
>>>>> 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:62)
>>>>>  at
>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>>>>  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:372)
>>>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>>> ... 36 more
>>>>>
>>>>> Aug 15, 2014 12:19:36 PM org.apache.tomee.catalina.ServerListener install
>>>>> SEVERE: TomEE Listener can't start OpenEJB
>>>>> org.apache.openejb.OpenEJBException:
>>>>> org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
>>>>> public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
>>>>> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>>>>>  at
>>>>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:433)
>>>>> 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:62)
>>>>>  at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> at java.lang.reflect.Method.invoke(Method.java:483)
>>>>>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
>>>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
>>>>> Caused by: 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)
>>>>> ... 17 more
>>>>> 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:62)
>>>>>  at
>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
>>>>>  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:372)
>>>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>>> ... 36 more
>>>>>
>>>>> Aug 15, 2014 12:19:37 PM org.apache.catalina.startup.Catalina load
>>>>>
>>>>>
>>>>