咸宁网站建设哪家专业,php网站后台密码怎么修改,公司企业查询信息平台,网站设计专业公司最近在研究EJB3#xff0c;在使用EJB3的Web service的时候遇到了不少棘手的问题#xff0c;现在总结常见问题与大家分享#xff0c;希望您能少浪费些时间去漫天地搜解决方案#xff0c;具体见下#xff1a; 1.服务器端错误信息#xff1a;jboss5 java.lang.NoClassDefFou…最近在研究EJB3在使用EJB3的Web service的时候遇到了不少棘手的问题现在总结常见问题与大家分享希望您能少浪费些时间去漫天地搜解决方案具体见下 1.服务器端错误信息jboss5 java.lang.NoClassDefFoundError: org/apache/xerces/xs/XSModel 症状(JBoss5.1内有此现象)在控制台启动则可以正常部署在eclipse内则报错。 解决方法很可能是在添加服务器的时候选择了eclipse的JBoss插件位置JBoss-JBoss V5.0改为JBoss Tool插件内的JBossAS Tool插件位置JBoss Community-JBoss AS V5.1 2.(JBoss5.1内有此现象)客户端调用报错当使用JBossWS调用Webservice时报错如下两个异常交替出现javax.xml.ws.WebServiceException: No Content-type in the header和javax.xml.ws.WebServiceException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage 当使用Axis是报错如下org.xml.sax.SAXParseException: Premature end of file. 原因及解决办法把JBoss4.2内的JBOSS_HOME/client目录下的一下文件复制到JBoss5.1内的JBOSS_HOME/lib/endorsed目录下重启服务就可以了。jboss-jaxrpc.jarjboss-jaxws.jarjboss-jaxws-ext.jarjboss-saaj.jar 另一种做法是下载JBoss5.1的jdk1.6版本。 参考如下I read the release notes for Jboss as 4.2.3.GA and it describes what to do if running webservies using jdk1.6. Here is what helped me: (taken from the release notes and followed exactly as printed) * JBossAS 4.2.3.GA can be compiled with both Java5 Java6. The Java5 compiled binary is our primary/recommended binary distribution. It has undergone rigorous testing and can run under both a Java 5 and a Java 6 runtime. When running under Java 6 you need to manually copy the following libraries from the JBOSS_HOME/client directory to the JBOSS_HOME/lib/endorsed directory, so that the JAX-WS 2.0 apis supported by JBossWS are used: o jboss-jaxrpc.jar o jboss-jaxws.jar o jboss-jaxws-ext.jar o jboss-saaj.jar 转载于:https://www.cnblogs.com/zhmore/archive/2010/10/15/1852434.html