jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barbara Allori <ball...@akros.it>
Subject Re: runservertests
Date Mon, 10 Mar 2003 08:29:44 GMT

If I try removing the commons-logging.jar from WEB-INF/lib I get this 
exception:

javax.servlet.ServletException: Invoker service() exception at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:516) 
at 
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) 
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) 
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 
at


I'm in this situation:

in the build.xml I wrote:

<path id="project.class.test.path">
         <pathelement location="${lib.dir}/classes12.jar"/>
         <pathelement location="${aspectjrt.jar}"/>
         <pathelement location="${lib.dir}/xerces.jar"/>
         <pathelement 
location="${tomcat.home.40}/common/lib/commons-logging-api.jar"/>
         <pathelement location="${commons.httpclient.jar}"/>
         <pathelement location="${commons.logging.jar}"/>
         <pathelement location="${log4j.jar}"/>
         <pathelement location="${junit.jar}"/>
         <pathelement location="${cactus.framework.jar}"/>
         <pathelement location="${servlet.jar}"/>
         <pathelement location="${cactus.ant.jar}"/>
         <pathelement location="${classes.dir}"/>
         <pathelement location="${classes.test.dir}"/>
         <pathelement 
location="${tomcat.home.40}/common/lib/commons-collections.jar"/>
         <pathelement path="${java.class.path}"/>
</path>
......
<target name="test">
         <junit printsummary="yes" fork="yes" haltonfailure="yes">
         <classpath>
                 <path refid="project.class.test.path"/>
                 <pathelement location="${java.class.path}"/>
         </classpath>
         <formatter type="xml"/>
         <test name="test.SuiteMia" haltonfailure="no" todir="${report}" 
outfile="JUnit-Report"/>
         </junit>
</target>
...

In the batch file that I use for the build I set the path and the classpath 
in this way:

SET ANT_HOME=D:\ApacheGroup\jakarta-ant-1.5
SET CACTUS_HOME=D:\ApacheGroup\jakarta-cactus-13-1.4.1
SET JUNIT=D:\JUnit\junit3.8
SET JAVA_HOME=D:\jdk1.3.1
SET MYAPP=D:\JavaDev\GERIPWEB\web\webroot\WEB-INF
SET TOMCAT40 = D:\Applicativi\Apache Group\Tomcat 4.1

SET PATH=%PATH%;%ANT_HOME%\bin;%JAVA_HOME%\bin
SET CLASSPATH=%MYAPP%\classes
SET CLASSPATH=%CLASSPATH%;%MYAPP%
SET CLASSPATH=%CLASSPATH%;%CACTUS_HOME%\lib\catalina-ant.jar
SET CLASSPATH=%CLASSPATH%;%CACTUS_HOME%\lib\commons-logging-1.0.jar
SET CLASSPATH=%CLASSPATH%;%JUNIT%\junit.jar
SET CLASSPATH=%CLASSPATH%;%ANT_HOME%\lib\optional.jar
SET CLASSPATH=%CLASSPATH%;%ANT_HOME%\lib\ant.jar
SET CLASSPATH=%CLASSPATH%;%ANT_HOME%\lib\xalan-2.3.1.jar
SET CLASSPATH=%CLASSPATH%;%ANT_HOME%\lib\xercesImpl.jar
SET CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
SET CLASSPATH=%CLASSPATH%;

This is web.xml:

<web-app>
   <context-param>
         <param-name>property_file</param-name>
         <param-value>/WEB-INF/property.properties</param-value>
   </context-param>
   <servlet>
         <servlet-name>Login</servlet-name>
         <display-name>Login</display-name>
         <servlet-class>Login.serv_Login</servlet-class>
   </servlet>
   <servlet>
         <servlet-name>servsked</servlet-name>
         <servlet-class>skeduler.serv_Sked</servlet-class>
         <load-on-startup>1</load-on-startup>
   </servlet>
   <servlet-mapping>
         <servlet-name>Menu</servlet-name>
         <url-pattern>/Menu</url-pattern>
   </servlet-mapping>
   <servlet-mapping>
         <servlet-name>invoker</servlet-name>
         <url-pattern>/servlet/*</url-pattern>
   </servlet-mapping>
   <session-config>
         <session-timeout>100</session-timeout>
   </session-config>
</web-app>



My Tomcat 4.1 distribution contains Commons-Logging:
common/lib
         commons-logging-api.jar
server/lib
         commons-logging.jar

Is the problem bound to invoker? Have you some other ideas?
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message