一:
在resin配置中,配置的启动项目的×××.conf中 添加 提示的两个报错信息中需要的 。
添加resin 的xml 应用
<system-property javax.xml.stream.XMLInputFactory="com.sun.xml.internal.stream.XMLInputFactoryImpl" />
<system-property javax.xml.bind.JAXBContext="com.sun.xml.internal.bind.v2.ContextFactory" />
二:
Could not initialize Service
WebService客户端调用,在客户端调用时出现问题:java.lang.NoSuchMethodException: com.xxx.xxx.getPortClassMap()
xfire-all-1.2.6.jar包中/META-INF/services/javax.xml.ws.spi.Provider的文件里
由
org.codehaus.xfire.jaxws.Provider
改为
com.sun.xml.internal.ws.spi.ProviderImpl
客户端就不会调用xfire的jar。
即可启动resin项目