You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by SYED HUSSAIN <hu...@hotmail.com> on 2003/12/05 05:11:49 UTC

required solution for error

hi guys,
     I had some problems running a struts application using jrun4I
I would be happy if anyone finds the problem while starting the
server after deploying the application I am getting the following
error
12/05 09:37:27 info Deploying web application 
"file:/D:/bugtool/software/server/
" from: file:/D:/bugtool/software/server/
12/05 09:37:28 user JSPServlet: init
12/05 09:37:37 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(LogFactory
Impl.java:255)
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
        at 
org.apache.struts.action.ActionServlet.<clinit>(ActionServlet.java:37
5)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)

        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:296)
        at java.lang.Class.newInstance(Class.java:249)
        at 
jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.
java:1192)
        at 
jrun.servlet.WebApplicationService.preloadServlets(WebApplicationServ
ice.java:762)
        at 
jrun.servlet.WebApplicationService.postStart(WebApplicationService.ja
va:257)
        at 
jrun.deployment.DeployerService.initModules(DeployerService.java:711)

        at 
jrun.deployment.DeployerService.createWatchedDeployment(DeployerServi
ce.java:242)
        at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
        at 
jrun.deployment.DeployerService.handleEvent(DeployerService.java:381)

        at 
jrunx.kernel.JRunServiceDeployer.fireEvent(JRunServiceDeployer.java:7
10)
        at 
jrunx.kernel.JRunServiceDeployer.deployServices(JRunServiceDeployer.j
ava:111)
        at 
jrunx.kernel.DeploymentService.loadServices(DeploymentService.java:46
)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
28)
        at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
        at jrunx.kernel.JRun.startServer(JRun.java:557)
        at jrunx.kernel.JRun.<init>(JRun.java:475)
        at jrunx.kernel.JRun$1.run(JRun.java:328)
        at java.security.AccessController.doPrivileged(Native Method)
        at jrunx.kernel.JRun.start(JRun.java:325)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at jrunx.kernel.JRun.invoke(JRun.java:179)
        at jrunx.kernel.JRun.main(JRun.java:167)

****  I  have copied  all the jar files to the lib folder of my application
                                                                          
---thank you

_________________________________________________________________
Big guns are booming! Bollywood is a war zone! 
http://server1.msn.co.in/features/decmovies03/index.asp Catch all the filmi 
action this December.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org