Hi,

We have provided a help document to create a notification producer and 
consumer resources using Eclipse TPTP BTM WSDM Tooling. Please try out the 
help document and let us know if you are still facing the same problem. 
Help document is available on this link.

http://wiki.eclipse.org/Create_notification_producer_and_consumer_using_tooling


To overcome the problem about the Notification producer resource 
initialization, you have to create following class to implement Muse 
Producer capability.

public class SimpleNotificationProducerImpl extends 
SimpleNotificationProducer implements NotificationProducer
{ 
        public void setTopicExpression(Element topicExpression)
        {
                // This should be empty 
        } 
}

and then you have to specify this class in muse.xml for Notification 
Producer Capability.

thanks 

With best regards,

Saurabh Dravid,
Staff Software Engineer - Autonomic Computing,
India Software Lab, IBM Software Group
Embassy Golf Links, 'B' Block, 4th Floor, Bangalore
Phone: +91-80-51055494, e-mail: [EMAIL PROTECTED]
About India Software Lab 





"Gul Onural" <[EMAIL PROTECTED]> 
09/07/2007 21:58
Please respond to
[email protected]


To
<[email protected]>
cc

Subject
RE: DestinationUnreachable







I have checked the following, and here are my findings :

1.) The wsn-consumer.war is deployed. The server the application is
loaded is 47.128.22.193 with port 8080 open.
2.) muse.xml has the "consumer" resource listed.
3.) There is a router-entry for the "consumer" resource. What I am
seeing is a directory under the router-entries called "consumer". And
under this directory there is an xml file called
resource-instance-1.xml. The content of this file is  :
<?xml version="1.0" encoding="UTF-8"?>
<wsa:ReferenceParameters
xmlns:wsa="http://www.w3.org/2005/08/addressing"/>

Is this what I should expect ?

4.) I have noticed an excaption in the producer (shown below), after the
resource has been initialized.
I am not sure if this exception would cause "DestinationUnreachable"
exception on the consumer side.

Any thoughts ? By the way does anybody has an end-to-end working example
of the 
article
http://www.ibm.com/developerworks/autonomic/library/ac-musewsn2.html ?


Gul

Jul 9, 2007 11:42:21 AM org.apache.ws.muse.test.wsrf.MyCapabilityImpl$1
run
INFO: Waiting 10 seconds before sending message...
java.lang.RuntimeException: [ID = 'NoSetter'] The capability class class
org.apa
che.muse.ws.notification.impl.SimpleNotificationProducer does not have a
setter
method for property
'{http://docs.oasis-open.org/wsn/b-2}TopicExpression', so it
 cannot perform WSRP 'set' operations (delete, insert, update) on it.
        at
org.apache.muse.ws.resource.impl.AbstractWsResourceCapability.updateP
roperty(AbstractWsResourceCapability.java:386)
        at
org.apache.muse.ws.resource.impl.AbstractWsResourceCapability.insertP
roperty(AbstractWsResourceCapability.java:319)
        at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCol
lection.insertResourceProperty(SimpleResourcePropertyCollection.java:703
)
        at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCol
lection.insertResourceProperty(SimpleResourcePropertyCollection.java:669
)
        at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCol
lection.addStaticValues(SimpleResourcePropertyCollection.java:262)
        at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCol
lection.applyMetadata(SimpleResourcePropertyCollection.java:304)
        at
org.apache.muse.ws.resource.impl.SimpleWsResource.initialize(SimpleWs
Resource.java:219)
        at
org.apache.muse.core.routing.RouterFilePersistence.reloadResource(Rou
terFilePersistence.java:143)
        at
org.apache.muse.core.AbstractFilePersistence.reloadResources(Abstract
FilePersistence.java:414)
        at
org.apache.muse.core.AbstractFilePersistence.reload(AbstractFilePersi
stence.java:355)
        at
org.apache.muse.core.routing.SimpleResourceRouter.initialize(SimpleRe
sourceRouter.java:260)
        at
org.apache.muse.core.platform.AbstractIsolationLayer.initialize(Abstr
actIsolationLayer.java:180)
        at
org.apache.muse.core.platform.mini.MiniServlet.createIsolationLayer(M
iniServlet.java:55)
        at
org.apache.muse.core.platform.mini.MiniServlet.doPost(MiniServlet.jav
a:69)
        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(Appl
icationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:667)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Jul 9, 2007 11:42:31 AM org.apache.ws.muse.test.wsrf.MyCapabilityImpl$1
run
INFO: Sending message to consumers...

 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to