Well, I think I know the problem with my setup (or is it a problem with Muse design ;-) ).

 

Muse webapp uses MuseAxisServlet in web.xml, which has the invocation code to do the discovery. However, I had started with a Vanilla Axis servlet, adding jar files from Muse on need basis ( I wanted to better understand the dependencies than using the whole thing as a black box – actually, I did try using it as a blackbox but that was not letting me go any further than running the packaged test cases).

 

After changing the Axis’s web.xml (so that it uses MuseAxisServlet in place of AxisServlet), I am able to get the resources discovered. Well, I am getting other exceptions, but that is a different problem.

 

/Pankaj.

 


From: Kumar, Pankaj
Sent: Tuesday, January 04, 2005 11:11 PM
To: [EMAIL PROTECTED]
Subject: Getting "Resource not found" fault with Disk example with Tomcat

 

Hi,

 

I have setup the Muse Disk example to run when Axis is deployed as a WebApp to Tomcat.

 

I am able to see the Disk service deployed from the browser. I am also able to retrieve the WSDL document through the browser.

 

However, I get a “Resource [disk:1234] not found” fault (don’t remember the exact string, but this should be close).

 

I did some debugging and found that the WsrfWsAddressingHandler is not able to get the WSResource corresponding to the resource id. In the SOAP Header and hence generates the fault. Looking at the code, I found that static method ResourceManagerFactory.discoverResources() is responsible for discovering the resources (it reads an xml file). But this method never gets called (I put a println). I also verified this by going through the call hierarchy of this method. The only place where this method is being called is a subclass of AxisServlet used for unit testing program (this might explain why it might work for the unit test).

 

Do I need to do something special for running the example under Tomcat?

 

Thanks in advance.

 

/Pankaj.

Reply via email to