2
잘 실행되는 것처럼 보이는 웹 서비스를 작성했습니다. Netbeans 인터페이스를 사용하여 호출 할 수 있습니다. 또한 Netbeans 컴파일러 (6.7.1)에서 실행하는 동안 문제가되지 않는 다른 응용 프로그램을 작성했습니다. 내가 톰캣에서 호스팅 서버에 배포 때 - 웹 서비스에 액세스 할 때 마자 다음과 같은 오류 페이지가 발생됩니다 :웹 서비스 호출
>Description: An unhandled exception occurred during the execution of the web application. >Please review the following stack trace for more information regarding the error.
>
>Exception Details: java.lang.NoClassDefFoundError
> javax/xml/rpc/ServiceException
>
>Possible Source of Error:
> Class Name: java.lang.Class
> File Name: Class.java
> Method Name: getDeclaredConstructors0
> Line Number: -2
>
>Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
>
>Stack Trace:
>
>java.lang.Class.getDeclaredConstructors0(Class.java:-2)
>java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
>java.lang.Class.getConstructor0(Class.java:2699)
>java.lang.Class.newInstance0(Class.java:326)
>java.lang.Class.newInstance(Class.java:308)
>java.beans.Beans.instantiate(Beans.java:204)
>java.beans.Beans.instantiate(Beans.java:48)
>com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:203)
>com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:274)
>com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78)
>com.sun.rave.web.ui.appbase.faces.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:96)
>com.sun.rave.web.ui.appbase.FacesBean.getBean(FacesBean.java:231)
javax.xml.rpc.ServiceException 클래스가 들어있는 jar 파일이 없습니다. 응용 프로그램의 lib 폴더에 모든 필요한 jar를 추가했는지 확인하십시오. –
특히, 사용중인 WS 라이브러리 (아마도 Axis 또는 CXF)가 누락되었을 수 있습니다. – Viruzzo