[Search] Search   [Register] Register /  [Login] Login 
레진 3.1.9와 axis2 와의 연동문제
Forum Index » Resin Server Q&A
Author Message
user



레진 3.1.9에 아파치 axis2 를 구현하기 위해 작업 중인데,
다음과 같은 에러가 났네요.
처음 500 에러가 난 뒤에 jaxws-rt.jar 나 jaxws-rt-2.1.7.jar 버전이 바뀌면 아래와 같은 에러가 바뀌는 경우가 종종 있습니다.

사이트 검색에서는 이와 같은 에러는 톰캣에는 발생하지 않는데,
레진일 경우에 발생하는 내용이 몇 군데 찾았습니다.
그나마 힌트에

Sun's XMLStreamReaderFactory 가 sun-istack-commons.jar 에 의존적이어서,
sun-istack-commons.jar 를 체크해보라는데, 어떤 버전으로 체크해야될지 모르겠네요.


500 Serlvet Exception

java.lang.IllegalArgumentException: property "javax.xml.stream.supportDTD"not supported

java.lang.ExceptionInInitializerErrorat com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:794)

at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSDLParser.java:251)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:118)
at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:254)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:217)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:165)
at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:93)
at javax.xml.ws.Service.<init>(Service.java:56)at com.nbp.nmp.shopn.product.type.ImageService.<init>(ImageService.java:46)

at com.nbp.nmp.shopn.product.ManageProductController.uploadImg(ManageProductController.java:145)
at com.nbp.nmp.shopn.product.ManageProduct_NaverShopn.createImage(ManageProduct_NaverShopn.java:182)
at com.smgic.worksapp.NaverShopnAPIServiceImpl.insertShopNProduct(NaverShopnAPIServiceImpl.java:47)
at ItemStatusBatchModServlet_shopn.doPost(ItemStatusBatchModServlet_shopn.java:60)at com.smgic.common.CommonServlet_new.service(CommonServlet_new.java:56)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)
at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:436)at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662)at java.lang.Thread.run(Thread.java:662)

Caused by:
java.lang.IllegalArgumentException: property "javax.xml.stream.supportDTD"not supportedat com.caucho.xml.stream.XMLInputFactoryImpl.setProperty(XMLInputFactoryImpl.java:265)
at com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory.getXMLInputFactory(XMLStreamReaderFactory.java:101)
at com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory.<clinit>(XMLStreamReaderFactory.java:67)


500 Serlvet Exception

java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.ws.api.streaming.XMLStreamReaderFactory

at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:850)at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSDLParser.java:294)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:151)at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:131)
at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:271)at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:234)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:182)
at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:106)
at javax.xml.ws.Service.<init>(Service.java:56)at com.nbp.nmp.shopn.product.type.ImageService.<init>(ImageService.java:46)
at com.nbp.nmp.shopn.product.ManageProductController.uploadImg(ManageProductController.java:145)
at com.nbp.nmp.shopn.product.ManageProduct_NaverShopn.createImage(ManageProduct_NaverShopn.java:182)
at com.smgic.worksapp.NaverShopnAPIServiceImpl.insertShopNProduct(NaverShopnAPIServiceImpl.java:47)
at ItemStatusBatchModServlet_shopn.doPost(ItemStatusBatchModServlet_shopn.java:60)at com.smgic.common.CommonServlet_new.service(CommonServlet_new.java:56)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)
at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:436)at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662)at java.lang.Thread.run(Thread.java:662)
Admin

[Avatar]


안녕하세요.
NoClassDefFoundError는 보통 Class가 중복되거나 우선 순위가 잘못 적용된 경우에 발생합니다.
기본적으로 jar 파일의 Loading 순서는 jvm-classapth, jre/lib, CLASSPATH, RESIN_HOME/lib, RESIN_HOME/ext-lib, WEB-INF/lib 순서입니다.
설정으로 변경될 수 있으니 참고 하시기 바랍니다.

감사합니다.
 
Forum Index » Resin Server Q&A
Go to: