The solution of weblogic webservice Exception.

来源:互联网 发布:六小龄童知乎 编辑:程序博客网 时间:2024/06/05 03:24
I have a project to work on weblogic 9.2 web service. when I create a standalone client side. it throw Exception.

java.lang.NoClassDefFoundError: com/bea/xml/XmlException
at com.bea.wlw.runtime.core.dispatcher.AppManager.ensureProjectCompiler(AppManager.java:465)
at com.bea.wlw.runtime.core.dispatcher.AppManager.ensureProjectCompiler(AppManager.java:442)
at com.bea.wlw.runtime.core.dispatcher.AppManager.ensureAppDeployment(AppManager.java:631)
at com.bea.wlw.runtime.core.dispatcher.AppManager.ensureAppDeployment(AppManager.java:547)
at com.bea.wlw.runtime.core.dispatcher.HttpServer.doGet(HttpServer.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6354)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

In the end, I found the solution that is I miss the jar files.
The dependencise List is:
weblogic.jar
webservices.jar
xbean.jar
weblogic-container-binding.jar
ant.jar

Then every thing ok. hahahahaha.......... I am so smart. Yeah...........