You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Naresh Bhatia <nb...@sapient.com> on 2002/10/01 05:27:40 UTC

Error deploying application axis: Could not load axis

Hi,

I am trying to load the Axis webapp (1.0 RC2) in Weblogic 6.1, but I get the
following error:

    Error deploying application axis: Could not load axis

The Weblogic server log is shown below. The workaround for me was to delete
the webapps\axis\WEB-INF\lib directory. Apparently the error occurs when the
webapp tries to extract class files from the lib directory. Question: Why
are these jars kept under the webapp directory? For me, the app works fine
as long as the jars are somewhere in the server classpath.

Thanks.
Naresh

#### Loading "axis" from directory: "c:\myproject\public_html\axis"> 
#### <[WebAppServletContext(3531117,axis,/axis)] extracting classfiles to
c:\myproject\public_html\axis\WEB-INF\_tmp_war_myprojectServer_myprojectServ
er_axis:> 
#### <Exception thrown while loading axis:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1> 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1525)
	at
weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java
:469)
	at
weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:2
34)
	at
weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServl
etContext.java:3407)
	at
weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletConte
xt.java:3376)
	at
weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.jav
a:862)
	at
weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.j
ava:815)
	at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
	at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
	at weblogic.j2ee.Application.addComponent(Application.java:163)
	at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
	at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:329)
	at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
Target.java:279)
	at
weblogic.management.mbeans.custom.DeploymentTarget.updateWebDeployments(Depl
oymentTarget.java:269)
	at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
entTarget.java:191)
	at java.lang.reflect.Method.invoke(Native Method)
	at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
	at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
	at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:359)
	at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
	at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
	at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
	at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
	at $Proxy29.updateDeployments(Unknown Source)
	at
weblogic.management.configuration.WebServerMBean_CachingStub.updateDeploymen
ts(WebServerMBean_CachingStub.java:1165)
	at
weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
icationManager.java:376)
	at
weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
r.java:160)
	at java.lang.reflect.Method.invoke(Native Method)
	at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
	at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
	at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:359)
	at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
	at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
	at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
	at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
	at $Proxy35.start(Unknown Source)
	at
weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
ApplicationManagerMBean_CachingStub.java:480)
	at
weblogic.management.Admin.startApplicationManager(Admin.java:1180)
	at weblogic.management.Admin.finish(Admin.java:590)
	at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
	at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
	at weblogic.Server.main(Server.java:35)
#### <Error deploying application axis: Could not load axis> 


Naresh Bhatia
Sapient
One Memorial Drive, Cambridge, MA 02142
Tel: 617-761-1771  Fax: 617-621-1300
Email: nbhatia@sapient.com