axis tomcat 下调用ws ,can't declare any more prefixes in this context解决


    用axis客户端调用webservice,共出现两个问题:


 第一,接口调通,但返回总是null,查阅资料,是jfreechart中的gnujaxp.jar 引起的,取出问题解决;


第二,can't declare any more prefixes in this context


创建Service service = new Service()时总是报如上错误,参照网上websphere解决方法,xalan.jar,xml-apis.jar引入不变,xercesImpl.jar我未引入,在tomcat目录下 \tomcat\j2sdk1.4.2_04\jre\lib 中新建jaxp.properties,内容 为:

javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl

重启tomcat,问题解决

你可能感兴趣的:(tomcat,webservice,jfreechart,service,null,websphere)