tomcat, axis and http://pyre.third-bit.com/bindsoap/soapexamples/soapexamples.html

hi friends,

i tried the example http://pyre.third-bit.com/bindsoap/soapexamples/soapexamples.html
after getting my axis working (see http://www.experts-exchange.com/Web/Q_21187468.html#12444167).
i follwed the steps exactly.
i can deploy the service thing with eclipse, no problem.
however, i cannot do http://127.0.0.1:8080/axis/servlet/AxisServlet afterwards anymore.
it says:

And now... Some Services
AXIS error
Sorry, something seems to have gone wrong... here are the details:

Fault - Could not find class for the service named: jtest.MyService
Hint: you may need to copy your class files/tree into the right location (which depends on the servlet system you are using).; nested exception is:
      java.lang.ClassNotFoundException: jtest.MyService
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode:
 faultString: Could not find class for the service named: jtest.MyService
Hint: you may need to copy your class files/tree into the right location (which depends on the servlet system you are using).; nested exception is:
      java.lang.ClassNotFoundException: jtest.MyService
 faultActor:
 faultNode:
 faultDetail:

(not as if it simply said, "i expected myservice.java in directory this and that")
i tried all directories (included the one mentioned in the example's text),
i tried to create a jtest directory including the myservice.jave and move
it around, no effect.

so, anyone got a good suggestion? :-)
LVL 5
drnickAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
TimYatesConnect With a Mentor Commented:
hehehe :-)

Hope it helped :-)
0
 
drnickAuthor Commented:
btw, deploying inserted

<service name="Version" provider="java:RPC">
  <parameter name="allowedMethods" value="getVersion"/>
  <parameter name="className" value="org.apache.axis.Version"/>
 </service>

into server-config.wsdd

(if i try undeploying, it throwed so many exceptions i lost interest in doing so)
0
 
drnickAuthor Commented:
0
 
TimYatesCommented:
MyService.class

(and classes required by MyService)

need to be in;

webapps/axis/WEB-INF/classes/jtest/MyService.class
0
 
drnickAuthor Commented:
thanks again.

these guys are funny:

"Download this last file and place it into TOMCAT_HOME\webapps\axis directory...

.. and, of course, not the .class but the .java file ... :-)

please look also at: http://www.experts-exchange.com/Web/Q_21187721.html
0
All Courses

From novice to tech pro — start learning today.