run: Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/security/acl/UserInfo at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.InitialContext.<init>(InitialContext.java:197) at JMSQueueSender.main(JMSQueueSender.java:28) Caused by: java.lang.ClassNotFoundException: weblogic.security.acl.UserInfo at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 6 more Java Result: 1
weblogic 10g以后,不能再像以前那样直接引用weblogic.jar.需要用到Weblogic提供的JarBuilder Tool 重新打包生成.
[email protected]:lib$ pwd /home/y/oracle/middleware/wlserver_10.3/server/lib [email protected]:lib$ java -jar wljarbuilder.jar
[email protected]:lib$ ll wlfullclient.jar -rw-rw-r-- 1 y y 55004433 9月 17 20:59 wlfullclient.jar [email protected]:lib$
重新引入wlfullclient.jar问题解决
时间: 2024-10-05 05:32:01