Deepal,

I am using tomcat 5.5.20.
It works for me when I drop my war file to /webapps and server.xml setting is:

<Host name="localhost" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

This unpacks the war file and everything works fine.

However, when I drop my war file to /webapps and change the above setting to
<Host name="localhost" appBase="webapps"
       unpackWARs="false" autoDeploy="false"
       xmlValidation="false" xmlNamespaceAware="false">

I get the axis startup error described below.

I suspect you were unpacking the war on your test run.
Would you try with unpackWARs="false" and make sure you only have the .war file 
in your /webapps and not the unpacked
archvie.

I have been reading up on this issue and found a thread on tomcat user list 
that said this about running apps without
unpacking the war:
****************************************************************************
One thing to watch out for when running an app directly from a .war
file is that if the application is trying to do any File IO where it
tries to load resources existing within the WAR structure, it won't
work if the .war is not expanded into a directory.  I've noticed
various frameworks that ignore this and continue to use File IO.
These apps *will* break.  See if you are getting any stack traces in
Tomcat's log files.
The webapp itself has to be written so that it can work inside a WAR.
Most commonly, that means using ServletContext.getResource() or
ServletContext.getResourceAsStream() instead of file i/o in order to read
webapp resources.
****************************************************************************

If this is true, I suspect axis uses file i/o to load modules, hence the error 
below.

Is this something axis can support if doesnt already?


Thanks,
Sathija.





> I test with tomcat 5.0 and it worked for me, so what is the Tomcat
> version are you using ?
>
> Thanks
> Deepal
>
> Sathija Pavuluri wrote:
>
>>Hi,
>>
>>When I startup tomcat on my development box with my webapp containing axis 
>>repo, everything works fine.
>>My app's WEB-INF contains services/Test.aar
>>                          modules/addressing.mar
>>                          conf/axis2.xml
>>When I war the same application and deploy on a test box, tomcat log shows 
>>this error during startup of axis servlet.
>>Happens both on Linux and Windows environments.
>>
>>Looks like there are some class loading issues when the webapp is deployed as 
>>a war file.
>>
>>Are there any known issues here? I am using Axis2 1.1.1.
>>
>>Below is the snippet from tomcat's log that shows axis startup error.
>>
>>Thanks,
>>Sathija.
>>
>>********************************************************************
>>
>>SEVERE: Servlet /test-app threw load() exception
>>org.apache.axis2.AxisFault: The system is attempting to engage a module
>>that is not available: addressing
>>        at
>>org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration.java:394)
>>        at
>>org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEngine.java:663)
>>        at
>>org.apache.axis2.deployment.WarBasedAxisConfigurator.engageGlobalModules(WarBasedAxisConfigurator.java:269)
>>        at
>>org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:69)
>>        at
>>org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:385)
>>        at
>>org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:335)
>>        at
>>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
>>        at
>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>>        at
>>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
>>        at
>>org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>
> --
> Thanks,
> Deepal
> ................................................................
> "The highest tower is built one brick at a time"
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to