我正在 weblogic 10.3.6 上部署一个应用程序。我正在使用 struts 1.3.10,我在 weblogic 上共享了我的库,并且我在 weblogix.xml 文件中引用它。当我在本地使用库时应用程序运行良好,但是当我在 weblogic.xml 上调用共享库时出现以下错误:
<Jul 19, 2013 11:24:23 AM VET> <Error> <HTTP> <BEA-101017> <[ServletContext@5597787[app:islr module:islrWeb path:/islrWeb spec-version:null], request: Workmanager: default, Version: 1, Scheduled=true, Started=true, Started time: 2216 ms
[
GET /islrWeb/index.jsp HTTP/1.1
User-Agent: Java1.6.0_31
Accept: text/html, image/gif, image/jpeg, */*; q=.2
Connection: Keep-Alive
]] Root cause of ServletException.
java.lang.NoClassDefFoundError: org/apache/struts/taglib/TagUtils
at org.apache.struts.taglib.html.HtmlTag.doStartTag(HtmlTag.java:94)
at jsp_servlet.__index._jspService(__index.java:110)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: org.apache.struts.taglib.TagUtils
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
Truncated. see log file for complete stacktrace
>
<Jul 19, 2013 11:24:23 AM VET> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
java.lang.NullPointerException.
java.lang.NullPointerException
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:531)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:244)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:529)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
Truncated. see log file for complete stacktrace
>