20162514578912==10.4.32.5==7001==weblogic==weblogic123==serverruntime
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/rmi/extensions/DisconnectListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:274)
at javax.management.remote.JMXConnectorFactory.getProvider(JMXConnectorFactory.java:517)
at javax.management.remote.JMXConnectorFactory.getProvider(JMXConnectorFactory.java:427)
at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:328)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)
at com.whm.test.weblogic.WeblogicProbeJava.initConnection(WeblogicProbeJava.java:63)
at com.whm.test.weblogic.WeblogicProbeJava.main(WeblogicProbeJava.java:418)
Caused by: java.lang.ClassNotFoundException: weblogic.rmi.extensions.DisconnectListener
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 20 more
加入包:wlclient.jar,wljmxclient.jar 解决
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:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
at javax.naming.InitialContext.init(InitialContext.java:242)
at javax.naming.InitialContext.(InitialContext.java:216)
at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:169)
at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:81)
at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:369)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)
at com.whm.test.weblogic.WeblogicProbeJava.initConnection(WeblogicProbeJava.java:63)
at com.whm.test.weblogic.WeblogicProbeJava.main(WeblogicProbeJava.java:418)
Caused by: java.lang.ClassNotFoundException: weblogic.security.acl.UserInfo
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 11 more
weblogic 10g以后,不能再像以前那样直接引用weblogic.jar.需要用到Weblogic提供的JarBuilder Tool 重新打包生成.
y@y:lib$ pwd
/home/y/oracle/middleware/wlserver_10.3/server/lib
y@y:lib$ java -jar wljarbuilder.jar
y@y:lib$ ll wlfullclient.jar
-rw-rw-r-- 1 y y 55004433 9月 17 20:59 wlfullclient.jar
y@y:lib$
重新引入wlfullclient.jar问题解决