right, use org.apache.tomee.loader.OpenEJBListener instead of ServerListener then
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> 2015-03-06 9:28 GMT+01:00 Martin Strohal <[email protected]>: > Hi Romain, > > thanks for your quick answer! > If I use the original tomcat-juli.jar I get the following stacktrace on > TomEE startup: > > Mar 06, 2015 9:22:36 AM org.apache.openejb.server.SimpleServiceManager > start > INFO: Ready! > java.lang.NoClassDefFoundError: org/apache/tomee/TomEELogConfigurer > at > org.apache.tomee.catalina.ServerListener.install(ServerListener.java:170) > at > > org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:55) > at > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) > at > > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) > at > > org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110) > at org.apache.catalina.startup.Catalina.load(Catalina.java:638) > at org.apache.catalina.startup.Catalina.load(Catalina.java:663) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at > > org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:264) > at java.lang.Thread.run(Thread.java:722) > Caused by: java.lang.ClassNotFoundException: > org.apache.tomee.TomEELogConfigurer > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:423) > at java.lang.ClassLoader.loadClass(ClassLoader.java:356) > ... 20 more > JVM exited unexpectedly. > > Don't know what's the cause of this... > > Thanks for your help! > > Martin > > > Am 06.03.2015 um 08:57 schrieb Romain Manni-Bucau: > > Hi > > > > Just ignore it > > Le 6 mars 2015 08:43, "Martin Strohal" <[email protected]> a > écrit : > > > >> Hi, > >> > >> in our company we have our own deployment tools. Tomcat is packaged for > >> this. > >> I have packaged TomEE 1.5.2 some years ago as extension to our Tomcat > >> package (added the libs and the ServerListener to server.xml). > >> > >> With the current version 1.7.1 I have a problem. There is a file with > >> the same name but different content: bin/tomcat-juli.jar. Our extension > >> mechanism can add new libs to the classpath and can add new lines to the > >> server.xml. But it can't replace files in the bin directory. Are there > >> any possibilities to keep the original tomcat-juli.jar and add the TomEE > >> specific files somewhere else? > >> > >> Thanks, > >> Martin > >> > >
