You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by José Antonio Sánchez <ge...@gmail.com> on 2006/12/11 12:08:39 UTC

Muse nightly not recognizing custom wsdl

I had a Muse 2.0 service that I'm moving to muse 2.1 latest nightly.
To do so, I have regenerated the webcontent directory (deleting the
old directory) and I have regenerated everything from the wsdl2java
utility. It has generated a default muse.xml file that I have modified
only to include my custom class capability instead of the default
capability name (MyCapability) it was working in the 2.0 version. Part
of the muse.xml file is that:

<?xml version="1.0" encoding="UTF-8"?>
<muse xmlns="http://ws.apache.org/muse/descriptor"
    xmlns:wsrf-sgw="http://docs.oasis-open.org/wsrf/sgw-2"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ws.apache.org/muse/descriptor
muse-descriptor.xsd">
    <router>
        <java-router-class>org.apache.muse.core.routing.SimpleResourceRouter</java-router-class>
        <logging>
            <log-file>log/muse.log</log-file>
            <log-level>FINE</log-level>
        </logging>
        <persistence>
            <java-persistence-class>org.apache.muse.core.routing.RouterFilePersistence</java-persistence-class>
            <persistence-location>router-entries</persistence-location>
        </persistence>
    </router>
    <resource-type use-router-persistence="true">
        <context-path>TransFS</context-path>
        <wsdl>
            <wsdl-file>/wsdl/TransFS.wsdl</wsdl-file>
            <wsdl-port-type
xmlns:pfx="http://lsd.org/wsdm/TransFS">pfx:WsResourcePortType</wsdl-port-type>
        </wsdl>
        <java-id-factory-class>org.apache.muse.core.routing.CounterResourceIdFactory</java-id-factory-class>
        <java-resource-class>org.apache.muse.ws.resource.impl.SimpleWsResource</java-resource-class>
        <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
            <desc:capability-uri>http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination</desc:capability-uri>
            <desc:java-capability-class>org.apache.muse.ws.resource.lifetime.impl.SimpleImmediateTermination</desc:java-capability-class>
        </desc:capability>
        <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
            <desc:capability-uri>http://lsd.org/wsdm/TransFS</desc:capability-uri>
            <desc:java-capability-class>org.lsd.wsdm.TransFS.TransFSCapability</desc:java-capability-class>
        </desc:capability>
        <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
            <desc:capability-uri>http://docs.oasis-open.org/wsdm/muws/capabilities/Identity</desc:capability-uri>
            <desc:java-capability-class>org.apache.muse.ws.dm.muws.impl.SimpleIdentity</desc:java-capability-class>
        </desc:capability>
.......


It generates the default subscription manager resource, so I have left
it as it is.
Then I have generated a proxy project and a test invoking an operation
but I get a 500 error and the tomcat log shows this exception:

java.lang.RuntimeException: [ID = 'NoDataResource'] The resource
'wsdl/WS-Resource-1_2.wsdl' does not exist or is not in the classpath.
        at org.apache.muse.core.AbstractEnvironment.getDataResourceStream(AbstractEnvironment.java:192)
        at org.apache.muse.core.AbstractEnvironment.getDocument(AbstractEnvironment.java:270)
        at org.apache.muse.ws.wsdl.WsdlUtils.createWSDL(WsdlUtils.java:381)
        at org.apache.muse.ws.wsdl.WsdlUtils.getWsdlImports(WsdlUtils.java:896)
        at org.apache.muse.ws.wsdl.WsdlUtils.getWsdlImports(WsdlUtils.java:852)
        at org.apache.muse.ws.wsdl.WsdlUtils.createWSDL(WsdlUtils.java:405)
        at org.apache.muse.core.descriptor.SimpleResourceDescriptor.createCapabilityDefinitions(SimpleResourceDescriptor.java:75)
        at org.apache.muse.core.descriptor.SimpleResourceDescriptor.load(SimpleResourceDescriptor.java:397)
        at org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.createResourceDefinitions(SimpleDeploymentDescriptor.java:72)
        at org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.load(SimpleDeploymentDescriptor.java:171)
        at org.apache.muse.core.platform.AbstractIsolationLayer.initialize(AbstractIsolationLayer.java:144)
        at org.apache.muse.core.platform.axis2.AxisIsolationLayer.handleRequest(AxisIsolationLayer.java:72)
        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:585)
        at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:88)
        at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:319)
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:247)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)

So I think it's ignoring the muse.xml file and it searches for a
default WS-Resource-1_2.wsdl file instead of the custom TransFS.wsdl
file especified in the muse.xml file.

-- 
Saludos.
José Antonio Sánchez

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


Re: Muse nightly not recognizing custom wsdl

Posted by José Antonio Sánchez <ge...@gmail.com>.
Sorry, I've just found that SubscriptionManager.wsdl imports some
files (WS-Resource-1_2.wsdl among them) and they are not copied to the
wsdl folder by default.

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="WS-BaseNotification"
    targetNamespace="http://docs.oasis-open.org/wsn/bw-2"
    xmlns:tns="http://docs.oasis-open.org/wsn/bw-2"
    xmlns:wsa="http://www.w3.org/2005/08/addressing"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdl-soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
    xmlns:wsntw="http://docs.oasis-open.org/wsn/bw-2"
    xmlns:wsrf-rlw="http://docs.oasis-open.org/wsrf/rlw-2"
    xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"
    xmlns:wsrf-rpw="http://docs.oasis-open.org/wsrf/rpw-2"
    xmlns:wsrf-rw="http://docs.oasis-open.org/wsrf/rw-2"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:import location="WS-Resource-1_2.wsdl"
namespace="http://docs.oasis-open.org/wsrf/rw-2"/>
    <wsdl:import location="WS-ResourceLifetime-1_2.wsdl"
namespace="http://docs.oasis-open.org/wsrf/rlw-2"/>
    <wsdl:import location="WS-ResourceProperties-1_2.wsdl"
namespace="http://docs.oasis-open.org/wsrf/rpw-2"/>
    <wsdl:types>

On 12/11/06, José Antonio Sánchez <ge...@gmail.com> wrote:
> I had a Muse 2.0 service that I'm moving to muse 2.1 latest nightly.
> To do so, I have regenerated the webcontent directory (deleting the
> old directory) and I have regenerated everything from the wsdl2java
> utility. It has generated a default muse.xml file that I have modified
> only to include my custom class capability instead of the default
> capability name (MyCapability) it was working in the 2.0 version. Part
> of the muse.xml file is that:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <muse xmlns="http://ws.apache.org/muse/descriptor"
>     xmlns:wsrf-sgw="http://docs.oasis-open.org/wsrf/sgw-2"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://ws.apache.org/muse/descriptor
> muse-descriptor.xsd">
>     <router>
>         <java-router-class>org.apache.muse.core.routing.SimpleResourceRouter</java-router-class>
>         <logging>
>             <log-file>log/muse.log</log-file>
>             <log-level>FINE</log-level>
>         </logging>
>         <persistence>
>             <java-persistence-class>org.apache.muse.core.routing.RouterFilePersistence</java-persistence-class>
>             <persistence-location>router-entries</persistence-location>
>         </persistence>
>     </router>
>     <resource-type use-router-persistence="true">
>         <context-path>TransFS</context-path>
>         <wsdl>
>             <wsdl-file>/wsdl/TransFS.wsdl</wsdl-file>
>             <wsdl-port-type
> xmlns:pfx="http://lsd.org/wsdm/TransFS">pfx:WsResourcePortType</wsdl-port-type>
>         </wsdl>
>         <java-id-factory-class>org.apache.muse.core.routing.CounterResourceIdFactory</java-id-factory-class>
>         <java-resource-class>org.apache.muse.ws.resource.impl.SimpleWsResource</java-resource-class>
>         <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
>             <desc:capability-uri>http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination</desc:capability-uri>
>             <desc:java-capability-class>org.apache.muse.ws.resource.lifetime.impl.SimpleImmediateTermination</desc:java-capability-class>
>         </desc:capability>
>         <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
>             <desc:capability-uri>http://lsd.org/wsdm/TransFS</desc:capability-uri>
>             <desc:java-capability-class>org.lsd.wsdm.TransFS.TransFSCapability</desc:java-capability-class>
>         </desc:capability>
>         <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
>             <desc:capability-uri>http://docs.oasis-open.org/wsdm/muws/capabilities/Identity</desc:capability-uri>
>             <desc:java-capability-class>org.apache.muse.ws.dm.muws.impl.SimpleIdentity</desc:java-capability-class>
>         </desc:capability>
> .......
>
>
> It generates the default subscription manager resource, so I have left
> it as it is.
> Then I have generated a proxy project and a test invoking an operation
> but I get a 500 error and the tomcat log shows this exception:
>
> java.lang.RuntimeException: [ID = 'NoDataResource'] The resource
> 'wsdl/WS-Resource-1_2.wsdl' does not exist or is not in the classpath.
>         at org.apache.muse.core.AbstractEnvironment.getDataResourceStream(AbstractEnvironment.java:192)
>         at org.apache.muse.core.AbstractEnvironment.getDocument(AbstractEnvironment.java:270)
>         at org.apache.muse.ws.wsdl.WsdlUtils.createWSDL(WsdlUtils.java:381)
>         at org.apache.muse.ws.wsdl.WsdlUtils.getWsdlImports(WsdlUtils.java:896)
>         at org.apache.muse.ws.wsdl.WsdlUtils.getWsdlImports(WsdlUtils.java:852)
>         at org.apache.muse.ws.wsdl.WsdlUtils.createWSDL(WsdlUtils.java:405)
>         at org.apache.muse.core.descriptor.SimpleResourceDescriptor.createCapabilityDefinitions(SimpleResourceDescriptor.java:75)
>         at org.apache.muse.core.descriptor.SimpleResourceDescriptor.load(SimpleResourceDescriptor.java:397)
>         at org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.createResourceDefinitions(SimpleDeploymentDescriptor.java:72)
>         at org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.load(SimpleDeploymentDescriptor.java:171)
>         at org.apache.muse.core.platform.AbstractIsolationLayer.initialize(AbstractIsolationLayer.java:144)
>         at org.apache.muse.core.platform.axis2.AxisIsolationLayer.handleRequest(AxisIsolationLayer.java:72)
>         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:585)
>         at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:88)
>         at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:319)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:247)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
>         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)
>
> So I think it's ignoring the muse.xml file and it searches for a
> default WS-Resource-1_2.wsdl file instead of the custom TransFS.wsdl
> file especified in the muse.xml file.
>
> --
> Saludos.
> José Antonio Sánchez
>


-- 
Saludos.
José Antonio Sánchez

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


Re: Muse nightly not recognizing custom wsdl

Posted by José Antonio Sánchez <ge...@gmail.com>.
Sorry, I've just found that SubscriptionManager.wsdl imports some
files (WS-Resource-1_2.wsdl among them) and they are not copied to the
wsdl folder by default.

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="WS-BaseNotification"
    targetNamespace="http://docs.oasis-open.org/wsn/bw-2"
    xmlns:tns="http://docs.oasis-open.org/wsn/bw-2"
    xmlns:wsa="http://www.w3.org/2005/08/addressing"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdl-soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
    xmlns:wsntw="http://docs.oasis-open.org/wsn/bw-2"
    xmlns:wsrf-rlw="http://docs.oasis-open.org/wsrf/rlw-2"
    xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"
    xmlns:wsrf-rpw="http://docs.oasis-open.org/wsrf/rpw-2"
    xmlns:wsrf-rw="http://docs.oasis-open.org/wsrf/rw-2"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:import location="WS-Resource-1_2.wsdl"
namespace="http://docs.oasis-open.org/wsrf/rw-2"/>
    <wsdl:import location="WS-ResourceLifetime-1_2.wsdl"
namespace="http://docs.oasis-open.org/wsrf/rlw-2"/>
    <wsdl:import location="WS-ResourceProperties-1_2.wsdl"
namespace="http://docs.oasis-open.org/wsrf/rpw-2"/>
    <wsdl:types>

On 12/11/06, José Antonio Sánchez <ge...@gmail.com> wrote:
> I had a Muse 2.0 service that I'm moving to muse 2.1 latest nightly.
> To do so, I have regenerated the webcontent directory (deleting the
> old directory) and I have regenerated everything from the wsdl2java
> utility. It has generated a default muse.xml file that I have modified
> only to include my custom class capability instead of the default
> capability name (MyCapability) it was working in the 2.0 version. Part
> of the muse.xml file is that:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <muse xmlns="http://ws.apache.org/muse/descriptor"
>     xmlns:wsrf-sgw="http://docs.oasis-open.org/wsrf/sgw-2"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://ws.apache.org/muse/descriptor
> muse-descriptor.xsd">
>     <router>
>         <java-router-class>org.apache.muse.core.routing.SimpleResourceRouter</java-router-class>
>         <logging>
>             <log-file>log/muse.log</log-file>
>             <log-level>FINE</log-level>
>         </logging>
>         <persistence>
>             <java-persistence-class>org.apache.muse.core.routing.RouterFilePersistence</java-persistence-class>
>             <persistence-location>router-entries</persistence-location>
>         </persistence>
>     </router>
>     <resource-type use-router-persistence="true">
>         <context-path>TransFS</context-path>
>         <wsdl>
>             <wsdl-file>/wsdl/TransFS.wsdl</wsdl-file>
>             <wsdl-port-type
> xmlns:pfx="http://lsd.org/wsdm/TransFS">pfx:WsResourcePortType</wsdl-port-type>
>         </wsdl>
>         <java-id-factory-class>org.apache.muse.core.routing.CounterResourceIdFactory</java-id-factory-class>
>         <java-resource-class>org.apache.muse.ws.resource.impl.SimpleWsResource</java-resource-class>
>         <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
>             <desc:capability-uri>http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination</desc:capability-uri>
>             <desc:java-capability-class>org.apache.muse.ws.resource.lifetime.impl.SimpleImmediateTermination</desc:java-capability-class>
>         </desc:capability>
>         <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
>             <desc:capability-uri>http://lsd.org/wsdm/TransFS</desc:capability-uri>
>             <desc:java-capability-class>org.lsd.wsdm.TransFS.TransFSCapability</desc:java-capability-class>
>         </desc:capability>
>         <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
>             <desc:capability-uri>http://docs.oasis-open.org/wsdm/muws/capabilities/Identity</desc:capability-uri>
>             <desc:java-capability-class>org.apache.muse.ws.dm.muws.impl.SimpleIdentity</desc:java-capability-class>
>         </desc:capability>
> .......
>
>
> It generates the default subscription manager resource, so I have left
> it as it is.
> Then I have generated a proxy project and a test invoking an operation
> but I get a 500 error and the tomcat log shows this exception:
>
> java.lang.RuntimeException: [ID = 'NoDataResource'] The resource
> 'wsdl/WS-Resource-1_2.wsdl' does not exist or is not in the classpath.
>         at org.apache.muse.core.AbstractEnvironment.getDataResourceStream(AbstractEnvironment.java:192)
>         at org.apache.muse.core.AbstractEnvironment.getDocument(AbstractEnvironment.java:270)
>         at org.apache.muse.ws.wsdl.WsdlUtils.createWSDL(WsdlUtils.java:381)
>         at org.apache.muse.ws.wsdl.WsdlUtils.getWsdlImports(WsdlUtils.java:896)
>         at org.apache.muse.ws.wsdl.WsdlUtils.getWsdlImports(WsdlUtils.java:852)
>         at org.apache.muse.ws.wsdl.WsdlUtils.createWSDL(WsdlUtils.java:405)
>         at org.apache.muse.core.descriptor.SimpleResourceDescriptor.createCapabilityDefinitions(SimpleResourceDescriptor.java:75)
>         at org.apache.muse.core.descriptor.SimpleResourceDescriptor.load(SimpleResourceDescriptor.java:397)
>         at org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.createResourceDefinitions(SimpleDeploymentDescriptor.java:72)
>         at org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.load(SimpleDeploymentDescriptor.java:171)
>         at org.apache.muse.core.platform.AbstractIsolationLayer.initialize(AbstractIsolationLayer.java:144)
>         at org.apache.muse.core.platform.axis2.AxisIsolationLayer.handleRequest(AxisIsolationLayer.java:72)
>         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:585)
>         at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:88)
>         at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:319)
>         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:247)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
>         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)
>
> So I think it's ignoring the muse.xml file and it searches for a
> default WS-Resource-1_2.wsdl file instead of the custom TransFS.wsdl
> file especified in the muse.xml file.
>
> --
> Saludos.
> José Antonio Sánchez
>


-- 
Saludos.
José Antonio Sánchez

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


Re: Muse nightly not recognizing custom wsdl

Posted by Andrew Eberbach <ae...@us.ibm.com>.
Not at all. We really should keep track of all these things through JIRA. 
Thanks a lot for your help.

Thanks,
Andrew

Andrew Eberbach
Autonomic Computing
(919) 254-2645
T/L: 444-2645
aeberbac@us.ibm.com



"José Antonio Sánchez" <ge...@gmail.com> 
12/11/2006 04:58 PM
Please respond to
muse-dev@ws.apache.org


To
muse-dev@ws.apache.org
cc

Subject
Re: Muse nightly not recognizing custom wsdl






Hope you don't mind that I have created a jira issue for this. I was 
writing it while I have recived your reply.

On 12/11/06, Andrew Eberbach < aeberbac@us.ibm.com> wrote:

It seems that the SubscriptionManager wsdl that is getting generated still 
has some of the imports in it. We'll get this sorted out. It should have 
all of its imports resolved already. 

Thanks,
Andrew

Andrew Eberbach
Autonomic Computing
(919) 254-2645
T/L: 444-2645
aeberbac@us.ibm.com 


"José Antonio Sánchez" <ge...@gmail.com> 
12/11/2006 04:38 PM 

Please respond to
muse-dev@ws.apache.org



To
muse-user@ws.apache.org, muse-dev@ws.apache.org 
cc

Subject
Muse nightly not recognizing custom wsdl








I had a Muse 2.0 service that I'm moving to muse 2.1 latest nightly.
To do so, I have regenerated the webcontent directory (deleting the
old directory) and I have regenerated everything from the wsdl2java
utility. It has generated a default muse.xml file that I have modified
only to include my custom class capability instead of the default
capability name (MyCapability) it was working in the 2.0 version. Part
of the muse.xml file is that:

<?xml version="1.0" encoding="UTF-8"?>
<muse xmlns="http://ws.apache.org/muse/descriptor"
   xmlns:wsrf-sgw="http://docs.oasis-open.org/wsrf/sgw-2"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ws.apache.org/muse/descriptor
muse-descriptor.xsd">
   <router>
 
<java-router-class>org.apache.muse.core.routing.SimpleResourceRouter</java-router-class>
       <logging>
           <log-file>log/muse.log</log-file>
           <log-level>FINE</log-level>
       </logging>
       <persistence>
 
<java-persistence-class>org.apache.muse.core.routing.RouterFilePersistence</java-persistence-class>
           <persistence-location>router-entries</persistence-location>
       </persistence>
   </router>
   <resource-type use-router-persistence="true">
       <context-path>TransFS</context-path>
       <wsdl>
           <wsdl-file>/wsdl/TransFS.wsdl</wsdl-file>
           <wsdl-port-type
xmlns:pfx="http://lsd.org/wsdm/TransFS
">pfx:WsResourcePortType</wsdl-port-type>
       </wsdl>
 
<java-id-factory-class>org.apache.muse.core.routing.CounterResourceIdFactory</java-id-factory-class>
 
<java-resource-class>org.apache.muse.ws.resource.impl.SimpleWsResource</java-resource-class>
       <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
           <desc:capability-uri>
http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination 
</desc:capability-uri>
 
<desc:java-capability-class>org.apache.muse.ws.resource.lifetime.impl.SimpleImmediateTermination</desc:java-capability-class>
       </desc:capability>
       <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
           <desc:capability-uri>http://lsd.org/wsdm/TransFS
</desc:capability-uri>
 
<desc:java-capability-class>org.lsd.wsdm.TransFS.TransFSCapability</desc:java-capability-class>
       </desc:capability>
       <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
           <desc:capability-uri>
http://docs.oasis-open.org/wsdm/muws/capabilities/Identity 
</desc:capability-uri>
 
<desc:java-capability-class>org.apache.muse.ws.dm.muws.impl.SimpleIdentity</desc:java-capability-class>
       </desc:capability>
.......


It generates the default subscription manager resource, so I have left
it as it is.
Then I have generated a proxy project and a test invoking an operation
but I get a 500 error and the tomcat log shows this exception:

java.lang.RuntimeException: [ID = 'NoDataResource'] The resource
'wsdl/WS-Resource-1_2.wsdl' does not exist or is not in the classpath.
       at 
org.apache.muse.core.AbstractEnvironment.getDataResourceStream(AbstractEnvironment.java:192)
       at 
org.apache.muse.core.AbstractEnvironment.getDocument(AbstractEnvironment.java:270)
       at org.apache.muse.ws.wsdl.WsdlUtils.createWSDL(WsdlUtils.java:381)
       at 
org.apache.muse.ws.wsdl.WsdlUtils.getWsdlImports(WsdlUtils.java:896)
       at 
org.apache.muse.ws.wsdl.WsdlUtils.getWsdlImports(WsdlUtils.java:852)
       at org.apache.muse.ws.wsdl.WsdlUtils.createWSDL(WsdlUtils.java:405)
       at 
org.apache.muse.core.descriptor.SimpleResourceDescriptor.createCapabilityDefinitions(SimpleResourceDescriptor.java:75)
       at 
org.apache.muse.core.descriptor.SimpleResourceDescriptor.load(SimpleResourceDescriptor.java:397)
       at 
org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.createResourceDefinitions(SimpleDeploymentDescriptor.java:72)
       at 
org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.load(SimpleDeploymentDescriptor.java:171)
       at 
org.apache.muse.core.platform.AbstractIsolationLayer.initialize(AbstractIsolationLayer.java:144)
       at 
org.apache.muse.core.platform.axis2.AxisIsolationLayer.handleRequest(AxisIsolationLayer.java:72)
       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:585)
       at 
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:88)
       at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
       at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
       at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:319)
       at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:247)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
       at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
       at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
       at java.lang.Thread.run(Thread.java:595)

So I think it's ignoring the muse.xml file and it searches for a
default WS-Resource-1_2.wsdl file instead of the custom TransFS.wsdl
file especified in the muse.xml file.

-- 
Saludos.
José Antonio Sánchez

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org





-- 
Saludos.
José Antonio Sánchez 

Re: Muse nightly not recognizing custom wsdl

Posted by José Antonio Sánchez <ge...@gmail.com>.
Hope you don't mind that I have created a jira issue for this. I was writing
it while I have recived your reply.

On 12/11/06, Andrew Eberbach <ae...@us.ibm.com> wrote:
>
>
> It seems that the SubscriptionManager wsdl that is getting generated still
> has some of the imports in it. We'll get this sorted out. It should have all
> of its imports resolved already.
>
> Thanks,
> Andrew
>
> Andrew Eberbach
> Autonomic Computing
> (919) 254-2645
> T/L: 444-2645
> aeberbac@us.ibm.com
>
>
>  *"José Antonio Sánchez" <ge...@gmail.com>*
>
> 12/11/2006 04:38 PM  Please respond to
> muse-dev@ws.apache.org
>
>   To
> muse-user@ws.apache.org, muse-dev@ws.apache.org  cc
>
>  Subject
> Muse nightly not recognizing custom wsdl
>
>
>
>
>
>
> I had a Muse 2.0 service that I'm moving to muse 2.1 latest nightly.
> To do so, I have regenerated the webcontent directory (deleting the
> old directory) and I have regenerated everything from the wsdl2java
> utility. It has generated a default muse.xml file that I have modified
> only to include my custom class capability instead of the default
> capability name (MyCapability) it was working in the 2.0 version. Part
> of the muse.xml file is that:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <muse xmlns="http://ws.apache.org/muse/descriptor"
>    xmlns:wsrf-sgw="http://docs.oasis-open.org/wsrf/sgw-2"
>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://ws.apache.org/muse/descriptor
> muse-descriptor.xsd">
>    <router>
>        <java-router-class>
> org.apache.muse.core.routing.SimpleResourceRouter</java-router-class>
>        <logging>
>            <log-file>log/muse.log</log-file>
>            <log-level>FINE</log-level>
>        </logging>
>        <persistence>
>            <java-persistence-class>
> org.apache.muse.core.routing.RouterFilePersistence
> </java-persistence-class>
>            <persistence-location>router-entries</persistence-location>
>        </persistence>
>    </router>
>    <resource-type use-router-persistence="true">
>        <context-path>TransFS</context-path>
>        <wsdl>
>            <wsdl-file>/wsdl/TransFS.wsdl</wsdl-file>
>            <wsdl-port-type
> xmlns:pfx="http://lsd.org/wsdm/TransFS
> ">pfx:WsResourcePortType</wsdl-port-type>
>        </wsdl>
>        <java-id-factory-class>
> org.apache.muse.core.routing.CounterResourceIdFactory
> </java-id-factory-class>
>        <java-resource-class>
> org.apache.muse.ws.resource.impl.SimpleWsResource</java-resource-class>
>        <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
>            <desc:capability-uri>
> http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination
> </desc:capability-uri>
>            <desc:java-capability-class>
> org.apache.muse.ws.resource.lifetime.impl.SimpleImmediateTermination
> </desc:java-capability-class>
>        </desc:capability>
>        <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
>            <desc:capability-uri>http://lsd.org/wsdm/TransFS
> </desc:capability-uri>
>            <desc:java-capability-class>
> org.lsd.wsdm.TransFS.TransFSCapability</desc:java-capability-class>
>        </desc:capability>
>        <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
>            <desc:capability-uri>
> http://docs.oasis-open.org/wsdm/muws/capabilities/Identity
> </desc:capability-uri>
>            <desc:java-capability-class>
> org.apache.muse.ws.dm.muws.impl.SimpleIdentity
> </desc:java-capability-class>
>        </desc:capability>
> .......
>
>
> It generates the default subscription manager resource, so I have left
> it as it is.
> Then I have generated a proxy project and a test invoking an operation
> but I get a 500 error and the tomcat log shows this exception:
>
> java.lang.RuntimeException: [ID = 'NoDataResource'] The resource
> 'wsdl/WS-Resource-1_2.wsdl' does not exist or is not in the classpath.
>        at org.apache.muse.core.AbstractEnvironment.getDataResourceStream(
> AbstractEnvironment.java:192)
>        at org.apache.muse.core.AbstractEnvironment.getDocument(
> AbstractEnvironment.java:270)
>        at org.apache.muse.ws.wsdl.WsdlUtils.createWSDL(WsdlUtils.java:381)
>        at org.apache.muse.ws.wsdl.WsdlUtils.getWsdlImports(WsdlUtils.java
> :896)
>        at org.apache.muse.ws.wsdl.WsdlUtils.getWsdlImports(WsdlUtils.java
> :852)
>        at org.apache.muse.ws.wsdl.WsdlUtils.createWSDL(WsdlUtils.java:405)
>        at
> org.apache.muse.core.descriptor.SimpleResourceDescriptor.createCapabilityDefinitions
> (SimpleResourceDescriptor.java:75)
>        at org.apache.muse.core.descriptor.SimpleResourceDescriptor.load(
> SimpleResourceDescriptor.java:397)
>        at
> org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.createResourceDefinitions
> (SimpleDeploymentDescriptor.java:72)
>        at org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.load(
> SimpleDeploymentDescriptor.java:171)
>        at org.apache.muse.core.platform.AbstractIsolationLayer.initialize(
> AbstractIsolationLayer.java:144)
>        at
> org.apache.muse.core.platform.axis2.AxisIsolationLayer.handleRequest(
> AxisIsolationLayer.java:72)
>        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:585)
>        at
> org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(
> RawXMLINOutMessageReceiver.java:88)
>        at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(
> AbstractInOutSyncMessageReceiver.java:39)
>        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
>        at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> HTTPTransportUtils.java:319)
>        at org.apache.axis2.transport.http.AxisServlet.doPost(
> AxisServlet.java:247)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:252)
>        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
>        at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:213)
>        at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:178)
>        at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:126)
>        at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:105)
>        at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
>        at org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:148)
>        at org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java:869)
>        at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:667)
>        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
>        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
>        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
>        at java.lang.Thread.run(Thread.java:595)
>
> So I think it's ignoring the muse.xml file and it searches for a
> default WS-Resource-1_2.wsdl file instead of the custom TransFS.wsdl
> file especified in the muse.xml file.
>
> --
> Saludos.
> José Antonio Sánchez
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-dev-help@ws.apache.org
>
>
>


-- 
Saludos.
José Antonio Sánchez

Re: Muse nightly not recognizing custom wsdl

Posted by Andrew Eberbach <ae...@us.ibm.com>.
It seems that the SubscriptionManager wsdl that is getting generated still 
has some of the imports in it. We'll get this sorted out. It should have 
all of its imports resolved already.

Thanks,
Andrew

Andrew Eberbach
Autonomic Computing
(919) 254-2645
T/L: 444-2645
aeberbac@us.ibm.com



"José Antonio Sánchez" <ge...@gmail.com> 
12/11/2006 04:38 PM
Please respond to
muse-dev@ws.apache.org


To
muse-user@ws.apache.org, muse-dev@ws.apache.org
cc

Subject
Muse nightly not recognizing custom wsdl






I had a Muse 2.0 service that I'm moving to muse 2.1 latest nightly.
To do so, I have regenerated the webcontent directory (deleting the
old directory) and I have regenerated everything from the wsdl2java
utility. It has generated a default muse.xml file that I have modified
only to include my custom class capability instead of the default
capability name (MyCapability) it was working in the 2.0 version. Part
of the muse.xml file is that:

<?xml version="1.0" encoding="UTF-8"?>
<muse xmlns="http://ws.apache.org/muse/descriptor"
    xmlns:wsrf-sgw="http://docs.oasis-open.org/wsrf/sgw-2"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ws.apache.org/muse/descriptor
muse-descriptor.xsd">
    <router>
 
<java-router-class>org.apache.muse.core.routing.SimpleResourceRouter</java-router-class>
        <logging>
            <log-file>log/muse.log</log-file>
            <log-level>FINE</log-level>
        </logging>
        <persistence>
 
<java-persistence-class>org.apache.muse.core.routing.RouterFilePersistence</java-persistence-class>
            <persistence-location>router-entries</persistence-location>
        </persistence>
    </router>
    <resource-type use-router-persistence="true">
        <context-path>TransFS</context-path>
        <wsdl>
            <wsdl-file>/wsdl/TransFS.wsdl</wsdl-file>
            <wsdl-port-type
xmlns:pfx="http://lsd.org/wsdm/TransFS
">pfx:WsResourcePortType</wsdl-port-type>
        </wsdl>
 
<java-id-factory-class>org.apache.muse.core.routing.CounterResourceIdFactory</java-id-factory-class>
 
<java-resource-class>org.apache.muse.ws.resource.impl.SimpleWsResource</java-resource-class>
        <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor
">
 
<desc:capability-uri>http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination</desc:capability-uri>
 
<desc:java-capability-class>org.apache.muse.ws.resource.lifetime.impl.SimpleImmediateTermination</desc:java-capability-class>
        </desc:capability>
        <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor
">
 <desc:capability-uri>http://lsd.org/wsdm/TransFS</desc:capability-uri>
 
<desc:java-capability-class>org.lsd.wsdm.TransFS.TransFSCapability</desc:java-capability-class>
        </desc:capability>
        <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor
">
 
<desc:capability-uri>http://docs.oasis-open.org/wsdm/muws/capabilities/Identity</desc:capability-uri>
 
<desc:java-capability-class>org.apache.muse.ws.dm.muws.impl.SimpleIdentity</desc:java-capability-class>
        </desc:capability>
.......


It generates the default subscription manager resource, so I have left
it as it is.
Then I have generated a proxy project and a test invoking an operation
but I get a 500 error and the tomcat log shows this exception:

java.lang.RuntimeException: [ID = 'NoDataResource'] The resource
'wsdl/WS-Resource-1_2.wsdl' does not exist or is not in the classpath.
        at 
org.apache.muse.core.AbstractEnvironment.getDataResourceStream(AbstractEnvironment.java:192)
        at 
org.apache.muse.core.AbstractEnvironment.getDocument(AbstractEnvironment.java:270)
        at 
org.apache.muse.ws.wsdl.WsdlUtils.createWSDL(WsdlUtils.java:381)
        at 
org.apache.muse.ws.wsdl.WsdlUtils.getWsdlImports(WsdlUtils.java:896)
        at 
org.apache.muse.ws.wsdl.WsdlUtils.getWsdlImports(WsdlUtils.java:852)
        at 
org.apache.muse.ws.wsdl.WsdlUtils.createWSDL(WsdlUtils.java:405)
        at 
org.apache.muse.core.descriptor.SimpleResourceDescriptor.createCapabilityDefinitions(SimpleResourceDescriptor.java:75)
        at 
org.apache.muse.core.descriptor.SimpleResourceDescriptor.load(SimpleResourceDescriptor.java:397)
        at 
org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.createResourceDefinitions(SimpleDeploymentDescriptor.java:72)
        at 
org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.load(SimpleDeploymentDescriptor.java:171)
        at 
org.apache.muse.core.platform.AbstractIsolationLayer.initialize(AbstractIsolationLayer.java:144)
        at 
org.apache.muse.core.platform.axis2.AxisIsolationLayer.handleRequest(AxisIsolationLayer.java:72)
        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:585)
        at 
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:88)
        at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
        at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:319)
        at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:247)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)

So I think it's ignoring the muse.xml file and it searches for a
default WS-Resource-1_2.wsdl file instead of the custom TransFS.wsdl
file especified in the muse.xml file.

-- 
Saludos.
José Antonio Sánchez

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org



RE: Muse nightly not recognizing custom wsdl

Posted by le...@bt.com.
This could be because the named wsdl file isn't included in your war file, I believe that the WSN and SubscriptionManager requires several support wsdl and xsd files to be deployed within the war file, in your wsdl directory.

My known list of files to add to the war file:

WS-Addressing-2005_08.xsd
WS-BaseFaults-1_2.xsd
WS-BaseNotification-1_3.wsdl
WS-BaseNotification-1_3.xsd
WS-Resource-1_2.wsdl
WS-Resource-1_2.xsd
WS-ResourceLifetime-1_2.wsdl
WS-ResourceLifetime-1_2.xsd
WS-ResourceProperties-1_2.wsdl
WS-ResourceProperties-1_2.xsd
WS-Topics-1_3.xsd
XML-Namespace-1998.xsd

These are all files imported by the WSN, and by files that it again imports.

/Lenni

-----Original Message-----
From: José Antonio Sánchez [mailto:getaceres@gmail.com] 
Sent: 11 December 2006 11:09
To: muse-user@ws.apache.org; muse-dev@ws.apache.org
Subject: Muse nightly not recognizing custom wsdl

I had a Muse 2.0 service that I'm moving to muse 2.1 latest nightly.
To do so, I have regenerated the webcontent directory (deleting the
old directory) and I have regenerated everything from the wsdl2java
utility. It has generated a default muse.xml file that I have modified
only to include my custom class capability instead of the default
capability name (MyCapability) it was working in the 2.0 version. Part
of the muse.xml file is that:

<?xml version="1.0" encoding="UTF-8"?>
<muse xmlns="http://ws.apache.org/muse/descriptor"
    xmlns:wsrf-sgw="http://docs.oasis-open.org/wsrf/sgw-2"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ws.apache.org/muse/descriptor
muse-descriptor.xsd">
    <router>
        <java-router-class>org.apache.muse.core.routing.SimpleResourceRouter</java-router-class>
        <logging>
            <log-file>log/muse.log</log-file>
            <log-level>FINE</log-level>
        </logging>
        <persistence>
            <java-persistence-class>org.apache.muse.core.routing.RouterFilePersistence</java-persistence-class>
            <persistence-location>router-entries</persistence-location>
        </persistence>
    </router>
    <resource-type use-router-persistence="true">
        <context-path>TransFS</context-path>
        <wsdl>
            <wsdl-file>/wsdl/TransFS.wsdl</wsdl-file>
            <wsdl-port-type
xmlns:pfx="http://lsd.org/wsdm/TransFS">pfx:WsResourcePortType</wsdl-port-type>
        </wsdl>
        <java-id-factory-class>org.apache.muse.core.routing.CounterResourceIdFactory</java-id-factory-class>
        <java-resource-class>org.apache.muse.ws.resource.impl.SimpleWsResource</java-resource-class>
        <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
            <desc:capability-uri>http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination</desc:capability-uri>
            <desc:java-capability-class>org.apache.muse.ws.resource.lifetime.impl.SimpleImmediateTermination</desc:java-capability-class>
        </desc:capability>
        <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
            <desc:capability-uri>http://lsd.org/wsdm/TransFS</desc:capability-uri>
            <desc:java-capability-class>org.lsd.wsdm.TransFS.TransFSCapability</desc:java-capability-class>
        </desc:capability>
        <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
            <desc:capability-uri>http://docs.oasis-open.org/wsdm/muws/capabilities/Identity</desc:capability-uri>
            <desc:java-capability-class>org.apache.muse.ws.dm.muws.impl.SimpleIdentity</desc:java-capability-class>
        </desc:capability>
.......


It generates the default subscription manager resource, so I have left
it as it is.
Then I have generated a proxy project and a test invoking an operation
but I get a 500 error and the tomcat log shows this exception:

java.lang.RuntimeException: [ID = 'NoDataResource'] The resource
'wsdl/WS-Resource-1_2.wsdl' does not exist or is not in the classpath.
        at org.apache.muse.core.AbstractEnvironment.getDataResourceStream(AbstractEnvironment.java:192)
        at org.apache.muse.core.AbstractEnvironment.getDocument(AbstractEnvironment.java:270)
        at org.apache.muse.ws.wsdl.WsdlUtils.createWSDL(WsdlUtils.java:381)
        at org.apache.muse.ws.wsdl.WsdlUtils.getWsdlImports(WsdlUtils.java:896)
        at org.apache.muse.ws.wsdl.WsdlUtils.getWsdlImports(WsdlUtils.java:852)
        at org.apache.muse.ws.wsdl.WsdlUtils.createWSDL(WsdlUtils.java:405)
        at org.apache.muse.core.descriptor.SimpleResourceDescriptor.createCapabilityDefinitions(SimpleResourceDescriptor.java:75)
        at org.apache.muse.core.descriptor.SimpleResourceDescriptor.load(SimpleResourceDescriptor.java:397)
        at org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.createResourceDefinitions(SimpleDeploymentDescriptor.java:72)
        at org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.load(SimpleDeploymentDescriptor.java:171)
        at org.apache.muse.core.platform.AbstractIsolationLayer.initialize(AbstractIsolationLayer.java:144)
        at org.apache.muse.core.platform.axis2.AxisIsolationLayer.handleRequest(AxisIsolationLayer.java:72)
        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:585)
        at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:88)
        at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:319)
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:247)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)

So I think it's ignoring the muse.xml file and it searches for a
default WS-Resource-1_2.wsdl file instead of the custom TransFS.wsdl
file especified in the muse.xml file.

-- 
Saludos.
José Antonio Sánchez

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org