Link to home
Start Free TrialLog in
Avatar of drnick
drnick

asked on

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 https://www.experts-exchange.com/questions/21187468/AXIS-and-Tomcat.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? :-)
Avatar of drnick
drnick

ASKER

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)
Avatar of TimYates
MyService.class

(and classes required by MyService)

need to be in;

webapps/axis/WEB-INF/classes/jtest/MyService.class
Avatar of drnick

ASKER

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: https://www.experts-exchange.com/questions/21187721/tomcat-axis-eclipse-and-log4.html
ASKER CERTIFIED SOLUTION
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial