Problems starting Java Eclipse with TomCat7
Marie
Posted on
Jul 09 2014
Hello everybody,
I´m starting a server with TomCat7 and get the following (no problems apparently):
jul 08, 2014 5:15:09 PM org.apache.catalina.core.AprLifecycleListener init Información: La biblioteca nativa de Apache Tomcat basada en ARP que permite un rendimiento óptimo en entornos de desarrollo no ha sido hallada en java.library.path: C:\Program Files (x86)\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre7/bin/client;C:/Program Files (x86)/Java/jre7/bin;C:/Program Files (x86)/Java/jre7/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Users\Marie\Desktop\eclipse JEE;;. jul 08, 2014 5:15:09 PM org.apache.tomcat.util.digester.SetPropertiesRule begin Advertencia: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:FinalT1ClienteWeb_' did not find a matching property. jul 08, 2014 5:15:09 PM org.apache.coyote.AbstractProtocol init Información: Initializing ProtocolHandler ["http-bio-8080"] jul 08, 2014 5:15:09 PM org.apache.coyote.AbstractProtocol init Información: Initializing ProtocolHandler ["ajp-bio-8009"] jul 08, 2014 5:15:09 PM org.apache.catalina.startup.Catalina load Información: Initialization processed in 394 ms jul 08, 2014 5:15:09 PM org.apache.catalina.core.StandardService startInternal Información: Arrancando servicio Catalina jul 08, 2014 5:15:09 PM org.apache.catalina.core.StandardEngine startInternal Información: Starting Servlet Engine: Apache Tomcat/7.0.47 jul 08, 2014 5:15:09 PM org.apache.coyote.AbstractProtocol start Información: Starting ProtocolHandler ["http-bio-8080"] jul 08, 2014 5:15:09 PM org.apache.coyote.AbstractProtocol start Información: Starting ProtocolHandler ["ajp-bio-8009"] jul 08, 2014 5:15:09 PM org.apache.catalina.startup.Catalina start Información: Server startup in 456 ms
but then, when I tried to ejecute my application get an Exception and this error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory at org.apache.catalina.util.LifecycleBase.
Any idea???
Callum
Posted on
Jul 09 2014
Hi Marie,
I assume you're adding Raygun4Java to a project which is then causing this error? Can you confirm that the project without Raygun4Java does not throw this error - the library only uses java.util.logging.logger which should be present in the runtime. From taking a look at this: http://stackoverflow.com/questions/7955442/java-lang-noclassdeffounderror-org-apache-juli-logging-logfactory it appears your Tomcat installation may be using an incorrect version or missing tomcat-juli.jar - ensure it's available as per the selected answer and get back to us if the problem remains.