I am having trouble with the SOAPMonitorApplet

NOTE: I followed this excellent help file:
http://www.sosnoski.com/presents/java-xml/axis/axis-monitor.html

Could this be a permissions problem or a classpath problem? Any ideas?

http://localhost:8080/axis/SOAPMonitor

load: class SOAPMonitorApplet.class not found. 
java.lang.ClassNotFoundException: SOAPMonitorApplet.class 
        at sun.applet.AppletClassLoader.findClass(Unknown Source) 
        at sun.plugin.security.PluginClassLoader.findClass(Unknown
Source) 
        at java.lang.ClassLoader.loadClass(Unknown Source) 
        at sun.applet.AppletClassLoader.loadClass(Unknown Source) 
        at java.lang.ClassLoader.loadClass(Unknown Source) 
        at sun.applet.AppletClassLoader.loadCode(Unknown Source) 
        at sun.applet.AppletPanel.createApplet(Unknown Source) 
        at sun.plugin.AppletViewer.createApplet(Unknown Source) 
        at sun.applet.AppletPanel.runLoader(Unknown Source) 
        at sun.applet.AppletPanel.run(Unknown Source) 
        at java.lang.Thread.run(Unknown Source) 

Caused by: java.io.IOException: open HTTP connection failed. 
        at sun.applet.AppletClassLoader.getBytes(Unknown Source) 
        at sun.applet.AppletClassLoader.access$100(Unknown Source) 
        at sun.applet.AppletClassLoader$1.run(Unknown Source) 
        at java.security.AccessController.doPrivileged(Native Method) 
        ... 11 more

I have tried placing the *.class files in: WEB-INF\classes and as a jar
in
WEB-INF\lib

I have deployed the SoapMonitor service

deploy.wsdd

<deployment xmlns="http://xml.apache.org/axis/wsdd/";
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
    
  <handler name="soapmonitor" 
      type="java:org.apache.axis.handlers.SOAPMonitorHandler">
    <parameter name="wsdlURL" 
      value="/axis/SOAPMonitorService-impl.wsdl"/>
    <parameter name="namespace" 
 
value="http://tempuri.org/wsdl/2001/12/SOAPMonitorService-impl.wsdl"/>
    <parameter name="serviceName" value="SOAPMonitorService"/>
    <parameter name="portName" value="Demo"/>
  </handler>

  <service name="SOAPMonitorService" provider="java:RPC">
    <parameter name="allowedMethods" value="publishMessage"/>
    <parameter name="className" 
      value="org.apache.axis.monitor.SOAPMonitorService"/>
    <parameter name="scope" value="Application"/>
  </service>
</deployment>

server-config.wsdd

<handler name="soapmonitor"
type="java:org.apache.axis.handlers.SOAPMonitorHandler">
  <parameter name="wsdlURL" value="/axis/SOAPMonitorService-impl.wsdl"/>
  <parameter name="serviceName" value="SOAPMonitorService"/>
  <parameter name="namespace"
value="http://tempuri.org/wsdl/2001/12/SOAPMonitorService-impl.wsdl"/>
  <parameter name="portName" value="Demo"/>
 </handler>
 <handler name="LocalResponder"
type="java:org.apache.axis.transport.local.LocalResponder"/>
 <handler name="URLMapper"
type="java:org.apache.axis.handlers.http.URLMapper"/>
 <handler name="RPCDispatcher"
type="java:org.apache.axis.providers.java.RPCProvider"/>
 <handler name="Authenticate"
type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
 <handler name="MsgDispatcher"
type="java:org.apache.axis.providers.java.MsgProvider"/>
 <service name="AdminService" provider="java:MSG">
  <parameter name="allowedMethods" value="AdminService"/>
  <parameter name="enableRemoteAdmin" value="false"/>
  <parameter name="className" value="org.apache.axis.utils.Admin"/>
  <namespace>http://xml.apache.org/axis/wsdd/</namespace>
 </service>
 <service name="Version" provider="java:RPC">
  <parameter name="allowedMethods" value="getVersion"/>
  <parameter name="className" value="org.apache.axis.Version"/>
 </service>
 <service name="SOAPMonitorService" provider="java:RPC">
  <parameter name="allowedMethods" value="publishMessage"/>
  <parameter name="scope" value="Application"/>
  <parameter name="className"
value="org.apache.axis.monitor.SOAPMonitorService"/>
 </service>

web.xml

<servlet>
  <servlet-name>SOAPMonitorService</servlet-name> 
  <display-name>SOAPMonitorService</display-name> 
 
<servlet-class>org.apache.axis.monitor.SOAPMonitorService</servlet-class
> 
 <init-param>
  <param-name>SOAPMonitorPort</param-name> 
  <param-value>5001</param-value> 
  </init-param>
  <load-on-startup>100</load-on-startup> 
  </servlet>
...
<servlet-mapping>
  <servlet-name>SOAPMonitorService</servlet-name> 
  <url-pattern>/SOAPMonitor</url-pattern> 
  </servlet-mapping>


Any ideas? Do I have to edit the web.xml and uncomming the tags? If so
how?

-----Original Message-----
From: Shobha Rani Jagathpal [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 08, 2003 9:03 PM
To: [EMAIL PROTECTED]
Subject: RE: Can the client capture the raw SOAP response?

You can use tcpmon to see the soap request/responses or enable
soapmonitor by editing web.xml and uncomming the tags.

Regards,
Shobha Rani J
 


> -----Original Message-----
> From: Mark Mueller [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, January 09, 2003 10:14 AM
> To: [EMAIL PROTECTED]
> Subject: Can the client capture the raw SOAP response?
> 
> 
> I'm trying to learn SOAP and Axis and have spent a day
> trying to get a simple client to work. The service
> takes a search string and the number of responses to
> return, and returns an array of MP3 URLs in the form
> of TMP3Result objects.  I kept getting this error:
> 
> An Axis Fault occurred: org.xml.sax.SAXException: No 
> deserializer defined for array type {urn:RegMp3Class}MP3Result
> 
> I finally realized that the local name is wrong -- it
> should be TMP3Result per the wsdl.  I was finally able
> to make it work by using registerTypeMapping() to map
> the bad name to the right class.
> 
> Now I want to verify that the service is sending the
> wrong name, but I can't figure out how to capture the
> raw SOAP response.  The return value of invoke() is
> always an Object.  How can the client capture the raw
> response?
> 
>    Mark
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now. 
http://mailplus.yahoo.com

Reply via email to