Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 3138 invoked from network); 15 May 2007 17:29:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 May 2007 17:29:28 -0000 Received: (qmail 47137 invoked by uid 500); 15 May 2007 17:29:25 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 47097 invoked by uid 500); 15 May 2007 17:29:25 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 47084 invoked by uid 99); 15 May 2007 17:29:25 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 May 2007 10:29:25 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [18.103.8.101] (HELO lysine.broad.mit.edu) (18.103.8.101) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 May 2007 10:29:18 -0700 Received: from localhost (glycine.broad.mit.edu [18.103.8.221]) by lysine.broad.mit.edu (Postfix) with ESMTP id 0569A530503; Tue, 15 May 2007 13:28:57 -0400 (EDT) X-Virus-Scanned: amavisd-new at broad.mit.edu Received: from lysine.broad.mit.edu ([18.103.8.101]) by localhost (glycine.broad.mit.edu [18.103.8.221]) (amavisd-new, port 10024) with LMTP id 60YblvBAz+UR; Tue, 15 May 2007 13:28:55 -0400 (EDT) Received: from [18.103.20.50] (gp81d-1b2.broad.mit.edu [18.103.20.50]) by lysine.broad.mit.edu (Postfix) with ESMTP id DB6AB530509; Tue, 15 May 2007 13:28:54 -0400 (EDT) Message-ID: <4649EDC8.9000201@broad.mit.edu> Date: Tue, 15 May 2007 13:28:40 -0400 From: jnedzel Organization: Broad Institute User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: axis-user@ws.apache.org CC: Ted Liefeld , Jussi Paananen Subject: Log4J and tomcat 5? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I'm having problems with Axis2, Tomcat 5.5.23, and Log4J. I'm creating a REST service using Axis2, creating an AAR file, and dropping that in the services directory. The REST service uses Hibernate (which uses Log4J). I have put log4j.properties in the root level of my AAR file, and log4j-1.2.11.jar in the lib directory of my AAR file. NOTE: this exact same AAR file works fine when deployed to Tomcat 6. Any ideas? When I call my REST service, I get a ClassDefNotFoundError: INFO: Server startup in 7246 ms entered gene method May 15, 2007 1:26:27 PM org.apache.axis2.rpc.receivers.RPCMessageReceiver invokeBusinessLogic SEVERE: Exception occurred while trying to invoke service method gene java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:95) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497) at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:156) at org.apache.axis2.transport.http.util.RESTUtil.processGetRequest(RESTUtil.java:143) at org.apache.axis2.transport.http.AxisRESTServlet.doGet(AxisRESTServlet.java:45) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java :665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.ExceptionInInitializerError at org.genecruiser.service.GeneService.gene(Unknown Source) ... 26 more Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: N o suitable Log constructor [Ljava.lang.Class;@fb6354 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lan g.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No s uitable Log constructor [Ljava.lang.Class;@fb6354 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.N oClassDefFoundError: org/apache/log4j/Category)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.genecruiser.util.HibernateUtil.(Unknown Source) ... 27 more Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@fb6354 f or org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 31 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) at java.lang.Class.getConstructor0(Class.java:2671) at java.lang.Class.getConstructor(Class.java:1629) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410) ... 32 more May 15, 2007 1:26:27 PM org.apache.axis2.transport.http.AxisRESTServlet doGet SEVERE: org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method gene Thanks, Jared --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org