I finally managed to workout what was wrong. I was using JDK 1.6 and it was the culprit. Installing JDK 1.5 solved the problem.
What a bummer.... Thanks to all for help On Mon, Apr 28, 2008 at 11:58 PM, Vinh Nguyen (vinguye2) <[EMAIL PROTECTED]> wrote: > If you ran wsdl2java on your sample-wsn-producer.wsdl and deployed the > generated muse.xml as-is, that's probably why you're getting errors. > For example, the Tomcat logs would show this during > initialization/testing: > > java.lang.RuntimeException: [ID = 'IncorrectCapabilityRoot'] > org.apache.ws.muse.test.wsrf.MyCapability does not implement > org.apache.muse.core.Capability, which is a required interface for all > capability classes. > at > org.apache.muse.core.descriptor.CapabilityDefinition.setImplementationCl > ass(CapabilityDefinition.java:110) > at > org.apache.muse.core.descriptor.SimpleCapabilityDescriptor.load(SimpleCa > pabilityDescriptor.java:104) > at > org.apache.muse.core.descriptor.SimpleResourceDescriptor.createCapabilit > yDefinitions(SimpleResourceDescriptor.java:99) > at > org.apache.muse.core.descriptor.SimpleResourceDescriptor.load(SimpleReso > urceDescriptor.java:401) > at > org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.createResourc > eDefinitions(SimpleDeploymentDescriptor.java:78) > at > org.apache.muse.core.descriptor.SimpleDeploymentDescriptor.load(SimpleDe > ploymentDescriptor.java:177) > at > org.apache.muse.core.platform.AbstractIsolationLayer.initialize(Abstract > IsolationLayer.java:152) > at > org.apache.muse.core.platform.mini.MiniServlet.createIsolationLayer(Mini > Servlet.java:55) > at > org.apache.muse.core.platform.mini.MiniServlet.doPost(MiniServlet.java:6 > 9) > 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(Applica > tionFilterChain.java:252) > ... > > You need to manually review and update the generated muse.xml first: > > 1) In the WsResource definition, change the <wsdl-file> value to > "wsdl/sample-wsn-producer.wsdl". > 2) Change the capability reference from MyCapability to > MyCapabilityImpl. > 3) In the SubscriptionManager definition, change the <wsdl-file> value > to "wsdl/WS-BaseNotification-1_3.wsdl". > > Redeploy and test, and everything should be fine now. > -Vinh > > > -----Original Message----- > From: Vinh Nguyen (vinguye2) > Sent: Monday, April 28, 2008 1:43 PM > To: [email protected] > Subject: RE: trouble with WsnTestClient after new wsn-producer.war file > > Can you paste your muse.xml and services.xml configurations? I suspect > the problems are here. > > > > -----Original Message----- > From: Irfan Emrah Kanat [mailto:[EMAIL PROTECTED] > Sent: Monday, April 28, 2008 1:18 PM > To: [email protected] > Subject: Re: trouble with WsnTestClient after new wsn-producer.war file > > Thanks, but my problem is a bit different. > > I can deploy the samples in ubuntu, no problem. > > But when I try to build the sample wsn producer from the wsdl file via > wsdl2java provided with muse 2.2.0 in ubuntu I have some problems. I can > build the same file in windows without any problems though... So I guess > it is a linux specific problem. I am writing a tutorial for next years > Web Services Class I am providing the last section which I have the > problems so that you can see what steps I have taken so far... It is not > completed yet... > >
