axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "New AxisU" <newax...@gmail.com>
Subject Parsing Error
Date Sun, 12 Aug 2007 19:50:55 GMT
Can anyone tell me which file is bad from looking at this?  I'm thinking
services.xml but I don't see anything wrong with it.  This output comes from
asking axis2 about the services that are deployed and it doesn't like one of
them and when you click on the link you get

Error: org.apache.axis2.deployment.DeploymentException:
com.ctc.wstx.exc.WstxParsingException: Unexpected close tag ; expected . at
[row,col {unknown-source}]: [13,9] at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup
(ArchiveReader.java:144) at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:78)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(
DeploymentFileData.java:137) at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:551)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(
WSInfoList.java:135) at
org.apache.axis2.deployment.RepositoryListener.update(
RepositoryListener.java:318) at
org.apache.axis2.deployment.RepositoryListener.checkServices(
RepositoryListener.java:220) at
org.apache.axis2.deployment.DeploymentEngine.loadServices(
DeploymentEngine.java:116) at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(
WarBasedAxisConfigurator.java:271) at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.java:78) at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(
AxisServlet.java:494) at org.apache.axis2.transport.http.AxisServlet.init(
AxisServlet.java:414) at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(
StandardContext.java:3956) at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4230) at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(
ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(
StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(
ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(
StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(
StandardService.java:448) at org.apache.catalina.core.StandardServer.start(
StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(
Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(
Method.java:597) at org.apache.catalina.startup.Bootstrap.start(
Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(
Bootstrap.java:433) Caused by: org.apache.axiom.om.OMException:
com.ctc.wstx.exc.WstxParsingException: Unexpected close tag ; expected . at
[row,col {unknown-source}]: [13,9] at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:239)
at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:318) at
org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:614) at
org.apache.axis2.deployment.DescriptionBuilder.buildOM(
DescriptionBuilder.java:97) at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(
ArchiveReader.java:70) at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup
(ArchiveReader.java:137) ... 37 more Caused by:
com.ctc.wstx.exc.WstxParsingException: Unexpected close tag ; expected . at
[row,col {unknown-source}]: [13,9] at
com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:605)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461) at
com.ctc.wstx.sr.BasicStreamReader.reportWrongEndElem(BasicStreamReader.java:3256)
at com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3198)
at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2830)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:153)
... 42 more

Here's services.xml
<service name="RandomQuoteService" scope="application">
       <parameter name="ServiceClass">gen.adb.RandomQuoteServiceSkeleton
</parameter>
    <messageReceivers>
        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
                         class="
gen.adb.RandomQuoteServiceMessageReceiverInOnly"/>
    </messageReceivers>

    <operation name="getQuote" mep="http://www.w3.org/2004/08/wsdl/in-out">
        <actionMapping>urn:getQuote</actionMapping>
        <outputActionMapping>
http://quote/RandomQuoteServicePortType/getQuoteResponse
</outputActionMapping>
    </operation>
</service>

I was trying to send a message without any parameters and I've basically
given up on that and I'm not trying to do getQuote(int n) instead
of getQuote()



Here's the wsdl:
<wsdl:definitions xmlns:axis2="http://quote/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:ns="http://quote/xsd"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    targetNamespace="http://quote/" xmlns="http://schemas.xmlsoap.org/wsdl/
">
<wsdl:types>
            <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
            attributeFormDefault="qualified"
            elementFormDefault="qualified"
            targetNamespace="http://quote/xsd">
<xs:element name="getQuote">
<xs:complexType>
<xs:sequence>
<xs:element name="n" nillable="true" type="xs:int" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="getQuoteResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="return" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="getQuoteMessage">
    <wsdl:part name="part1" element="ns:getQuote" />
</wsdl:message>
<wsdl:message name="getQuoteResponseMessage">
    <wsdl:part name="part1" element="ns:getQuoteResponse" />
</wsdl:message>
<wsdl:portType name="RandomQuoteServicePortType">
    <wsdl:operation name="getQuote"><wsdl:input
message="axis2:getQuoteMessage" />
    <wsdl:output message="axis2:getQuoteResponseMessage" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="RandomQuoteServiceSOAP11Binding"
type="axis2:RandomQuoteServicePortType">
    <soap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="getQuote"><soap:operation
soapAction="urn:getQuote" style="document" />
    <wsdl:input><soap:body use="literal" namespace="http://quote/" />
</wsdl:input>
    <wsdl:output><soap:body use="literal" namespace="http://quote/" />
</wsdl:output></wsdl:operation>
</wsdl:binding>
<wsdl:binding name="RandomQuoteServiceSOAP12Binding"
type="axis2:RandomQuoteServicePortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<wsdl:operation name="getQuote">
<soap12:operation soapAction="urn:getQuote" style="document" />
<wsdl:input><soap12:body use="literal" namespace="http://quote/" />
</wsdl:input><wsdl:output><soap12:body use="literal" namespace="
http://quote/" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding><wsdl:service name="RandomQuoteService">
<wsdl:port name="RandomQuoteServiceSOAP11port"
binding="axis2:RandomQuoteServiceSOAP11Binding">
<soap:address location="
http://localhost:8080/axis2/services/RandomQuoteService" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Mime
View raw message