Log4j:2.6.1,Weblogic:10.3.6 JDK:1.7.x
我在weblogic域lib文件夹中使用log4j jars 2.6.1时遇到错误:
<Jun 25, 2016 7:36:49 AM EDT> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.NoClassDefFoundError: org/osgi/framework/BundleActivator
java.lang.NoClassDefFoundError: org/osgi/framework/BundleActivator
答案 0 :(得分:0)
将下面的插件添加到pom.xml解决了我的问题。基本上,如果你想把你的jar放在jar本身的weblogic包中。
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>