Philippe

Can you show the log tomcat takes while it is starting up? 
I like to see how axis2.war is deployed including all axis2 modules *.mar found 
in axis2.war
If no errors are shown deploying axis2-1.6.1.war then I would need to ask a 
developer.
Maybe you check that tomcat is allowed to deploy automatically any 
application.ar file.

Also check
      <Host appBase="webapps" autoDeploy="true" name="localhost" 
unpackWARs="true" 
        xmlNamespaceAware="false" xmlValidation="false">
in server.xml

Because if everything is automatically each war and mar is unpacked and 
deployed the 
        at 
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:857)
        at 
org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:156)
the deployment should have been taken place long before and not when you intend 
to invoke a service.

WarBasedAxisConfigurator.<init> comes to play when axis2.war is deployed. not 
when you want to make use of a deployed service.

Josef



-----Ursprüngliche Nachricht-----
Von: phi...@free.fr [mailto:phi...@free.fr] 
Gesendet: Montag, 5. Dezember 2011 10:20
An: java-user@axis.apache.org
Betreff: java.lang.ArrayIndexOutOfBoundsException: -1

Hello,

I have just installed the 1.6.1 axis2.war file in the webapps directory of a 
tomcat6 server on Linux.

When I click the Services hyperlink on the Axis2 Home Page, the following 
message is displayed in my browser:

Internal server error


and the localhost log file contains the following message:

----------------------------------------

Dec 5, 2011 10:11:47 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /axis2 threw load() exception
java.lang.ArrayIndexOutOfBoundsException: -1
        at java.util.ArrayList.get(Unknown Source)
        at com.ctc.wstx.util.TextBuffer.clearSegments(TextBuffer.java:311)
        at com.ctc.wstx.util.TextBuffer.resetWithShared(TextBuffer.java:255)
        at 
com.ctc.wstx.sr.BasicStreamReader.readTextPrimary(BasicStreamReader.java:4658)
        at 
com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:3010)
        at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1062)
        at 
org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225)
        at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:682)
        at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:215)
        at 
org.apache.axiom.om.impl.llom.OMSerializableImpl.build(OMSerializableImpl.java:78)
        at 
org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:721)
        at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:595)
        at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:575)
        at 
org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
        at 
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:89)
        at 
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:857)
        at 
org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:156)
        at 
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584)
        at 
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454)
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
        at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
        at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)

-------------------------------------------------

Has anyone on this list ever encountered this problem before?

Many thanks.

Philippe

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to