users@glassfish.java.net

Consuming a Web Service using a JSP and servlet

From: <glassfish_at_javadesktop.org>
Date: Tue, 02 Oct 2007 06:44:40 PDT

I have created a Web Service "TestWSService" in Netbeans IDE 5.5 application "TestWebApplication". I developed a JSP to provide input to the Web Service, and a servlet "TestServlet" that will pass the input to the web service through a request and outputs the result.
I am getting the following error:




HTTP Status 500 -
--------------------------------------------------------------------------------
 
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet TestServlet threw exception

root cause

java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.

root cause

com.sun.enterprise.InjectionException: Exception attempting to inject Env-Prop: test.org.TestServlet/service_at_Field-Injectable Resource. Class name = test.org.TestServlet Field name=service_at_javax.jws.WebServiceRef@@@ into class test.org.TestServlet

root cause

javax.naming.NamingException [Root exception is java.lang.reflect.InvocationTargetException]

root cause

java.lang.reflect.InvocationTargetException

root cause

javax.xml.ws.WebServiceException: java.io.FileNotFoundException: http://localhost:8080/TestWebApplication/TestWSService?wsdl

root cause

java.io.FileNotFoundException: http://localhost:8080/TestWebApplication/TestWSService?wsdl

note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server Platform Edition 9.0_01 logs.

Any hints???
[Message sent by forum member 'zname' (zname)]

http://forums.java.net/jive/thread.jspa?messageID=238009