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...........
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...........
本文解决了在使用WebLogic9.2版本开发WebService客户端时遇到的NoClassDefFoundError异常问题。作者通过添加缺失的jar文件成功解决了该问题,包括weblogic.jar、webservices.jar等依赖。
1万+

被折叠的 条评论
为什么被折叠?



