我在Weblogic中部署,但是我收到了这个错误:
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/application/descriptor/MungerLogger
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:823)
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:413)
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:779)
[java] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:792)
[java] at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:142)
[java] at weblogic.servlet.jsp.jspc20.initDescriptors(jspc20.java:537)
[java] at weblogic.servlet.jsp.jspc20.runBody(jspc20.java:273)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
[java] at weblogic.jspc.main(jspc.java:22)
[java] Caused by: java.lang.ClassNotFoundException: weblogic.application.descriptor.MungerLogger
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[java] ... 10 more
使用免费的 Oracle WebLogic Server 12c(12.1.3)进行部署 我不知道从哪里可以从
获得这门课程答案 0 :(得分:0)
First you need to download the jar which contains MungerLogger. In pom.xml add dependency: com.common jarName x.x
Then you need to tell Weblogic to load the jar which contains the MungerLogger. Add this script into weblogic.xml or weblogic-application.xml:
the package contain MungerLogger such as com.common. the package contain MungerLogger such as com.common.
Use this on top of weblogic.xml: http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">