ws-muse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "José Antonio Sánchez" <getace...@gmail.com>
Subject Notification producer problems.
Date Wed, 15 Nov 2006 15:49:04 GMT
I'm developing a custom WSDM service and I'm using it as a
Notification Producer so, in order to use it and just like the
tutorial describes, I have added the following to the muse.xml file:

<resource-type>
		<context-path>SubscriptionManager</context-path>
		<wsdl>
			<wsdl-file>wsdl/WS-BaseNotification-1_3.wsdl</wsdl-file>
			<wsdl-port-type>wsntw:SubscriptionManager</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>
		<capability>
			<capability-uri>http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata</capability-uri>
			<java-capability-class>org.apache.muse.ws.metadata.impl.SimpleMetadataExchange</java-capability-class>
		</capability>
		<capability>

			<capability-uri>http://docs.oasis-open.org/wsrf/rpw-2/Get</capability-uri>
			<java-capability-class>org.apache.muse.ws.resource.properties.get.impl.SimpleGetCapability</java-capability-class>
		</capability>
		<capability>
			<capability-uri>http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination</capability-uri>
			<java-capability-class>org.apache.muse.ws.resource.lifetime.impl.SimpleImmediateTermination</java-capability-class>
		</capability>

		<capability>
			<capability-uri>http://docs.oasis-open.org/wsrf/rlw-2/ScheduledResourceTermination</capability-uri>
			<java-capability-class>org.apache.muse.ws.resource.lifetime.impl.SimpleScheduledTermination</java-capability-class>
		</capability>
		<capability>
			<capability-uri>http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager</capability-uri>
			<java-capability-class>org.apache.muse.ws.notification.impl.SimpleSubscriptionManager</java-capability-class>

			<init-param>
				<param-name>trace-notifications</param-name>
				<param-value>true</param-value>
			</init-param>
		</capability>
	</resource-type>

Also, I have copied all of the WSRF, WSN, and WSDM xsd and wsdl files
to the wsdl directory (just to be sure). The problem is that, when I
try to invoke my service, I get an error 500 and the catalina.out log
shows this:

java.lang.RuntimeException: [ID = 'PortTypeNotFound'] The WSDL file
'/opt/apache-tomcat-5.5.15/webapps/TestService/WEB-INF/services/muse/wsdl/WS-BaseNotification-1_3.wsdl'
does not have a portType named SubscriptionManager.
        at org.apache.muse.core.descriptor.SimpleResourceDescriptor.getWsdlOperations(SimpleResourceDescriptor.java:371)
        at org.apache.muse.core.descriptor.SimpleResourceDescriptor.createCapabilityDefinitions(SimpleResourceDescriptor.java:80)
        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.setOperationContext(AxisIsolationLayer.java:138)
        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.engine.DependencyManager.configureBusinessLogicProvider(DependencyManager.java:70)
        at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:79)
        at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:504)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:324)
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:234)
        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)

Looking at the '/opt/apache-tomcat-5.5.15/webapps/TestService/WEB-INF/services/muse/wsdl/WS-BaseNotification-1_3.wsdl'
file (attached) I see clearly a SubscriptionManager port type so I
don't know what's wrong.


-- 
Saludos.
José Antonio Sánchez

Mime
View raw message