https://blogs.oracle.com/WebLogicServer/entry/managing_weblogic_servers_with
http://jishudaima.iteye.com/blog/957490
https://blogs.oracle.com/jamesbayer/entry/workaround_for_using_jconsole
这几篇文档都说的不错,可惜只适用于自己的配置,底下一大堆人问:为什么按照你的配置了,我 jconsole还是不好用。
综合我的使用以及同事以前告诉我的:
配置如下,经过测试可以在10.3上用,9.X没测试过,不做任何保证。
1、从weblogic目录下面下载wlclient.jar和wljmxclient.jar放在jre的ext目录下
2、通过jconsole输入URL连接,注意必须是RMI的,IIOP报错,输入用户名和密码,这列用户名和密码一般填写Weblogic控制台的就可以,
这么配置后,就可以了。
IIOP的,反正我才疏学浅,找不到好办法,只能用这个办法,通过上面文章说的java -jar wljarbuilder.jar 生成wlfullclient.jar
下载下来,放在ext下面,删除之前的两个Jar,但是有一个Jar包文件得留着:jndi.properties
里面内容:
java.naming.factory.url.pkgs=weblogic.corba.j2ee.naming.url:weblogic.corba.client.naming
当然你启动jconsole时候,-J-Djava.naming.factory.url.pkgs=weblogic.corba.j2ee.naming.url:weblogic.corba.client.naming 也可以
这样可以通过IIOP连接上了。
总之Weblogic很变态,我用的不多,不是很了解,这次也是临时看的,他连接报错明明可能是Jar包程序出现什么问题,他一概说是用户权限不够,这很迷惑人啊。
那位大牛能够帮忙解释一下:
<2012-3-8 下午01时05分10秒 CST> <Warning> <RMI> <BEA-080003> <RuntimeException thrown by rmi server: weblogic.corba.cos.naming.RootNamingContextImpl.resolve([Lorg.omg.CosNaming.NameComponent;)
org.omg.CORBA.NO_PERMISSION: User <anonymous> does not have permission on weblogic.management.mbeanservers to perform lookup operation. vmcid: 0x0 minor code: 0 completed: No.
org.omg.CORBA.NO_PERMISSION: User <anonymous> does not have permission on weblogic.management.mbeanservers to perform lookup operation. vmcid: 0x0 minor code: 0 completed: No
at weblogic.corba.cos.naming.NamingContextImpl.throwNamingException(NamingContextImpl.java:512)
at weblogic.corba.cos.naming.NamingContextImpl.resolve(NamingContextImpl.java:169)
at weblogic.corba.cos.naming._NamingContextAnyImplBase._invoke(_NamingContextAnyImplBase.java:306)
at weblogic.corba.idl.CorbaServerRef.invoke(CorbaServerRef.java:249)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
Truncated. see log file for complete stacktrace
Caused By: javax.naming.NoPermissionException: User <anonymous> does not have permission on weblogic.management.mbeanservers to perform lookup operation.
at weblogic.jndi.internal.ServerNamingNode.checkPermission(ServerNamingNode.java:443)
at weblogic.jndi.internal.ServerNamingNode.checkLookup(ServerNamingNode.java:423)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:180)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
Truncated. see log file for complete stacktrace
>
org.omg.CORBA.NO_PERMISSION: User <anonymous> does not have permission on weblogic.management.mbeanservers to perform lookup operation. vmcid: 0x0 minor code: 0 completed: No.
org.omg.CORBA.NO_PERMISSION: User <anonymous> does not have permission on weblogic.management.mbeanservers to perform lookup operation. vmcid: 0x0 minor code: 0 completed: No
at weblogic.corba.cos.naming.NamingContextImpl.throwNamingException(NamingContextImpl.java:512)
at weblogic.corba.cos.naming.NamingContextImpl.resolve(NamingContextImpl.java:169)
at weblogic.corba.cos.naming._NamingContextAnyImplBase._invoke(_NamingContextAnyImplBase.java:306)
at weblogic.corba.idl.CorbaServerRef.invoke(CorbaServerRef.java:249)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
Truncated. see log file for complete stacktrace
Caused By: javax.naming.NoPermissionException: User <anonymous> does not have permission on weblogic.management.mbeanservers to perform lookup operation.
at weblogic.jndi.internal.ServerNamingNode.checkPermission(ServerNamingNode.java:443)
at weblogic.jndi.internal.ServerNamingNode.checkLookup(ServerNamingNode.java:423)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:180)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
Truncated. see log file for complete stacktrace
>
只要连接不对,都报这个错,我就纳闷了。。。。。
网上找到了这篇文章:
http://blog.csdn.net/xychidy520_java/article/details/6579166
回去我测试一下。