August 2, 2009

Servlets: ERROR [MainDeployer] could not start deployment

 

Topic:  Servlets 2.4

Application Server: JBoss 4.0.2

Exception:

13:09:51,265 ERROR [MainDeployer] could not start deployment: file:/C:/StechProj
ect/jboss-4.0.2/server/default/deploy/DeployedAppName.ear
org.jboss.deployment.DeploymentException: URL file:/C:/StechProject/jboss-4.0.2/
server/default/tmp/deploy/tmp5794225230259092371DeployedAppName.ear-contents/DeployedAppName-exp.war
/ deployment failed
        at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatD
eployer.java:356)
        at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.
java:91)
        at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)

        at org.jboss.web.WebModule.startModule(WebModule.java:68)
        at org.jboss.web.WebModule.startService(WebModule.java:46)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
upport.java:272)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
eanSupport.java:222)
        at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:249)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:897)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:418)
        at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:141)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.

Resolution:

One possible resolution to this deployment issue on JBoss is an XML element error in the Web Deployment Descriptor – the web.xml

Go back to the web.xml and check the modification you did in the web.xml and check if you missed something small such as the '/' in the closing element or mis-typed the element name, etc.

A look in the JBoss log file, located in the JBoss/Server/Default/log/server.log file tells the exact, problematic element in the web.xml

No comments:

Post a Comment