创建一个Web服务,使用jax-ws 2.2,tomcat-6.0,jdk 1.6返回netbeans 7.3中的自定义对象列表 - 从客户端调用此服务时会出现此异常 -
java.lang.NoSuchMethodError: javax.xml.ws.WebFault.messageName()Ljava/lang/String;
com.sun.xml.ws.model.RuntimeModeler.processExceptions(RuntimeModeler.java:1213)
com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:943)
com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:711)
com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:472)
com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:314)
com.sun.xml.ws.db.DatabindingImpl.<init>(DatabindingImpl.java:99)
com.sun.xml.ws.db.DatabindingProviderImpl.create(DatabindingProviderImpl.java:74)
com.sun.xml.ws.db.DatabindingProviderImpl.create(DatabindingProviderImpl.java:58)
com.sun.xml.ws.db.DatabindingFactoryImpl.createRuntime(DatabindingFactoryImpl.java:130)
com.sun.xml.ws.client.WSServiceDelegate.buildRuntimeModel(WSServiceDelegate.java:782)
com.sun.xml.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:789)
com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:765)
com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:386)
com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:363)
com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:345)
javax.xml.ws.Service.getPort(Service.java:92)
service.StockDao_Service.getStockDaoPort(StockDao_Service.java:56)
org.apache.jsp.newjsp_jsp._jspService(newjsp_jsp.java:72)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
在对net发现一些研究后,我必须在tomcat / lib中创建endorsed文件夹,并在%CATALINA_HOME%/ lib / endorsed文件夹中复制web服务jar。在win-7上将全局变量CATALINA_HOME设置为tomcat根目录并在catalina home.prperties中设置此路径后,我仍然收到此错误。我正在研究Hadoop所以我已经在tomcat-6.0 / lib和tomcat-6.0 / lib / endorsed文件夹中复制了所有hadoop和jax-ws jar。