NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Tomcat 5.5 and JSP JAX-WS Client NoSuchMethodError Exception

 
Post new topic   Reply to topic    NetBeans Forums -> SOA Users
View previous topic :: View next topic  
Author Message
UnknownBinary



Joined: 20 Dec 2010
Posts: 9

PostPosted: Sun Dec 26, 2010 11:51 pm    Post subject: Tomcat 5.5 and JSP JAX-WS Client NoSuchMethodError Exception Reply with quote

This is a cross-post from the "Java EE Users" forum. I've built a JAX-WS SOAP web service that deploys successfully.

I'm following the NetBeans trail on developing a JAX-WS client in a JSP page:

http://netbeans.org/kb/docs/websvc/client.html

I've developed and deploy the SOAP service:

http://www.infiauto.com/LinGuessedSoapService/LinGuessedSoapService

I have a command-line client which functions fine. However, my JSP client, also deployed on the same server, always throws the same exception:

Quote:
HTTP Status 500 -

type Exception report

message

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

exception

org.apache.jasper.JasperException: Exception in JSP: /index.jsp:22

19: <%
20: try {
21: com.infiauto.services.LinGuessedSoapServiceService service = new com.infiauto.services.LinGuessedSoapServiceService();
22: com.infiauto.services.LinGuessedSoapService port = service.getLinGuessedSoapServicePort();
23: java.lang.String corpus
24: = "Now is the time for all good men to come to the aid of their party";
25: com.infiauto.services.LanguageLabel labelType


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:489)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

root cause

javax.servlet.ServletException: javax.xml.ws.WebFault.messageName()Ljava/lang/String;
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
org.apache.jsp.index_jsp._jspService(index_jsp.java:84)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:9Cool
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

root cause

java.lang.NoSuchMethodError: javax.xml.ws.WebFault.messageName()Ljava/lang/String;
com.sun.xml.ws.model.RuntimeModeler.processExceptions(RuntimeModeler.java:1162)
com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:898)
com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:666)
com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:420)
com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:254)
com.sun.xml.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:661)
com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:649)
com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:343)
com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:308)
javax.xml.ws.Service.getPort(Service.java:92)
com.infiauto.services.LinGuessedSoapServiceService.getLinGuessedSoapServicePort(LinGuessedSoapServiceService.java:72)
org.apache.jsp.index_jsp._jspService(index_jsp.java:61)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:9Cool
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.30 logs.
Apache Tomcat/5.5.30


How can I get it to work? This seems to be the infamous METRO/JRE 1.6 problem. My limitations are that my host is a shared environment but with a private Tomcat 5.5 server. I can't put anything the JRE endorsed directory.
Back to top
UnknownBinary



Joined: 20 Dec 2010
Posts: 9

PostPosted: Tue Dec 28, 2010 3:50 am    Post subject: Manual METRO 2.0 Install on Tomcat 5.5 Reply with quote

You can usually install METRO 2.0 on Tomcat 5.5 using Ant. Unfortunately, I don't have the use of Ant on my shared server. But here is the three-step process for doing a manual install of METRO 2.0.

[list=]Copy webservices-api.jar and jsr173_api.jar to ${catalina}/common/endorsed[/list]
[list=]Edit the ${catalina}/conf/catalina.properties file. Append to the shared.loader property: ${catalina}/common/endorsed/*.jar[/list]
[list=]Restart the Tomcat server.[/list]
Back to top
UnknownBinary



Joined: 20 Dec 2010
Posts: 9

PostPosted: Thu Mar 03, 2011 7:18 pm    Post subject: Write-Up Reply with quote

I've done an entire write-up and posted it on the web:

http://www.infiauto.com/articles/1102.html
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> SOA Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo