You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Alvin Antony <Al...@internet.lmu.de> on 2003/02/11 11:19:05 UTC

Exception on loading ActionServlet with Jrun4 on linux & struts1.1b3&torque3.0 ,hilfe...............

hello friends,

I totally fed up with this error. that was when I try to deploy an
struts&torque web application on jrun4 running on linux, everything
explodes

here is the trace of the exception....
       12/02 11:12:38 info Deployer Service is undeploying watched URL
file:/usr/local/jrun/servers/default/alumni/
       12/02 11:12:38 info Removing web application service from
servlet engine service: alumni
       12/02 11:12:38 info Deploying web application
"file:/usr/local/jrun/servers/default/alumni/" from:   
file:/usr/local/jrun/servers/default/alumni/
12/02 11:12:38 user JSPServlet: init
12/02 11:12:40 error Could not pre-load servlet: action
java.lang.NoClassDefFoundError: org/apache/log4j/Layout
        at
org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:140)
        at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:255)
        at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
        at
org.apache.struts.action.ActionServlet.<clinit>(ActionServlet.java:375)

        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:306)
        at java.lang.Class.newInstance(Class.java:259)
        at
jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1192)
        at
jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
        at
jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
        at
jrun.deployment.DeployerService.initModules(DeployerService.java:711)
        at
jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
        at
jrun.deployment.DeployerService.deploy(DeployerService.java:430)
        at
jrun.deployment.DeployerService.redeploy(DeployerService.java:1407)
        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:324)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at
jrunx.kernel.agents.JRunAdminService.invoke(JRunAdminService.java:127)
        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:324)
        at jrunx.rmi.RMIBroker.invokeService(RMIBroker.java:281)
        at jrunx.rmi.RMIBroker.invoke(RMIBroker.java:137)
        at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown
Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
        at sun.rmi.transport.Transport$1.run(Transport.java:148)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
        at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
        at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
        at java.lang.Thread.run(Thread.java:536)

12/02 11:12:40 error Could not pre-load servlet: TorqueInit
java.lang.NoClassDefFoundError: org.apache.struts.action.ActionServlet
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at
java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
        at java.lang.Class.getConstructor0(Class.java:1762)
        at java.lang.Class.newInstance0(Class.java:276)
        at java.lang.Class.newInstance(Class.java:259)
        at
jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1192)
        at
jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
        at
jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
        at
jrun.deployment.DeployerService.initModules(DeployerService.java:711)
        at
jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
        at
jrun.deployment.DeployerService.deploy(DeployerService.java:430)
        at
jrun.deployment.DeployerService.redeploy(DeployerService.java:1407)
        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:324)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at
jrunx.kernel.agents.JRunAdminService.invoke(JRunAdminService.java:127)
        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:324)
        at jrunx.rmi.RMIBroker.invokeService(RMIBroker.java:281)
        at jrunx.rmi.RMIBroker.invoke(RMIBroker.java:137)
        at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown
Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
        at sun.rmi.transport.Transport$1.run(Transport.java:148)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
        at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
        at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
        at java.lang.Thread.run(Thread.java:536)


What is  really hurting me is, the same code and  lib works on my
windows2000 works station on jbuilder7 and (jrun4 or tomact4.03)

it also works on jrun4 on linux with out the torqueInit servlet and the
libs for torque.

I can imagine the problem is with the log4j classes, but it works on
tomcat and jrun4 on windows! 





can some one help me ?


thanks a lot,
Alvin


Alvin K. Antony
Ludwig-Maximilians-Universität München
Internet und Virtuelle Hochschule
Softwareentwicklung
Oettingenstraße 67
80538 München
Germany
-------------------------------------------
Phone: +49 (0)89 2102-5979
Fax: +49 (0)89 2102-5980
Mobile: +49 (0)175 9401175
E-Mail: aantony@lmu.de

Web: http://www.lmu.de/internet/