I solved the issue myself. In case someone runs into the same problem here is how I did it:
For some reason JBOSS does not find two files which are in JBOSS/server/default/lib. One is jboss-j2ee.jar the other one is javax.servlet.jar. I put these in the JBOSS_CLASSPATH environment variable restarted JBOSS and now it is humming away and working smoothly without any compile errors.
Greets Robbi
Hi,
I am trying to complete Chapter 9.
When I try to generate the wsdl file I get the following:
<wsdl:definitions targetNamespace="http://127.0.0.1:8080/axis/services/MyStoreLoginService">
<wsdl:portType name="StoreAccessLocal">
</wsdl:portType>
-
<wsdl:binding name="MyStoreLoginServiceSoapBinding" type="impl:StoreAccessLocal">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
</wsdl:binding>
-
<wsdl:service name="StoreAccessLocalService">
-
<wsdl:port binding="impl:MyStoreLoginServiceSoapBinding" name="MyStoreLoginService">
<wsdlsoap:address location="http://127.0.0.1:8080/axis/services/MyStoreLoginService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Which is different from what the Tutorial says I should get. I also do not see the method listed on the http://127.0.0.1:8080/axis/servlet/AxisServlet page.
Additionally if I click on Call a local endpoint on the main Axis page I get the following error in my JBoss Console:
16:02:20,211 INFO [Server] JBoss (MX MicroKernel) [3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445)] Started in 26s:68ms
16:06:03,973 ERROR [JWSHandler] Exception:
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.compileError
faultSubcode:
faultString: Error while compiling: D:\Roche\jboss-3.2.3\server\default\deploy\webapps\axis.war\WEB-INF\jwsClasses\EchoHeaders.j
ava
faultActor:
faultNode:
faultDetail:
{}Errors: Error compiling D:\Roche\jboss-3.2.3\server\default\deploy\webapps\axis.war\WEB-INF\jwsClasses\EchoHeaders.java:
Line 0, column 0: could not parse error message: Note: sun.tools.javac.Main has been deprecated.
D:\Roche\jboss-3.2.3\server\default\deploy\webapps\axis.war\WEB-INF\jwsClasses\EchoHeaders.java:59: Class javax.servlet.http.HttpS
ervletRequest not found in import.
import javax.servlet.http.HttpServletRequest;
^
Line 0, column 0:
1 error, 1 warning
Error while compiling: D:\Roche\jboss-3.2.3\server\default\deploy\webapps\axis.war\WEB-INF\jwsClasses\EchoHeaders.java
at org.apache.axis.handlers.JWSHandler.setupService(JWSHandler.java:275)
at org.apache.axis.handlers.JWSHandler.invoke(JWSHandler.java:122)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:287)
at org.apache.axis.transport.http.AxisServlet.invokeEndpointFromGet(AxisServlet.java:544)
at org.apache.axis.transport.http.AxisServlet.processMethodRequest(AxisServlet.java:466)
at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:294)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
I am using Eclipse 3.0 JBoss 3.2.3 and Axis 1.1
Does anyone have an idea on what I am doing wrong? I have already tried to search google for a hint but all I found has not led to success yet.
Would be very grateful if someone could point me into the right direction.
Greets Robbi