Re: NameNotFoundException: Unable to resolve'weblogic.management.mbeanservers.

This is a discussion on Re: NameNotFoundException: Unable to resolve'weblogic.management.mbeanservers. within the Weblogic forums in Application Servers & Tools category; Are you connecting to the admin server or a managed server? The domain runtime mbeanserver does not exist on managed servers? If the admin server, then check the server log to make sure there were no startup errors. Ettore Decio wrote: > Dear all, > > I report this error during the creation of a MBeanServerConnection to theDomainRuntime. > The stack trace is > javax.naming.NameNotFoundException: Unable to resolve 'weblogic.management.mbeanservers.domainruntime'. Resolved 'weblogic.management.mbeanservers';remainin > g name 'domainruntime' > at weblogic.jndi.internal.BasicNamingNode.newNameNotF oundException(BasicNamingNode.java:1139) > at weblogic.jndi.internal.BasicNamingNode.lookupHere( BasicNamingNode.java:252) > at weblogic.jndi.internal.ServerNamingNode.lookupHere (ServerNamingNode.java:171) > at weblogic.jndi.internal.BasicNamingNode.lookup(Basi cNamingNode.java:206) > at weblogic.jndi.internal.BasicNamingNode.lookup(Basi cNamingNode.java:214) > at weblogic.jndi.internal.BasicNamingNode.lookup(Basi cNamingNode.java:214) > ...

Go Back   Application Development Forum > Application Servers & Tools > Weblogic

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-09-2008, 08:43 PM
PeterB
Guest
 
Default Re: NameNotFoundException: Unable to resolve'weblogic.management.mbeanservers.

Are you connecting to the admin server or a managed server? The domain
runtime mbeanserver does not exist on managed servers?

If the admin server, then check the server log to make sure there were
no startup errors.

Ettore Decio wrote:
> Dear all,
>
> I report this error during the creation of a MBeanServerConnection to theDomainRuntime.
> The stack trace is
> javax.naming.NameNotFoundException: Unable to resolve 'weblogic.management.mbeanservers.domainruntime'. Resolved 'weblogic.management.mbeanservers';remainin
> g name 'domainruntime'
> at weblogic.jndi.internal.BasicNamingNode.newNameNotF oundException(BasicNamingNode.java:1139)
> at weblogic.jndi.internal.BasicNamingNode.lookupHere( BasicNamingNode.java:252)
> at weblogic.jndi.internal.ServerNamingNode.lookupHere (ServerNamingNode.java:171)
> at weblogic.jndi.internal.BasicNamingNode.lookup(Basi cNamingNode.java:206)
> at weblogic.jndi.internal.BasicNamingNode.lookup(Basi cNamingNode.java:214)
> at weblogic.jndi.internal.BasicNamingNode.lookup(Basi cNamingNode.java:214)
> at weblogic.jndi.internal.BasicNamingNode.lookup(Basi cNamingNode.java:214)
> at weblogic.jndi.internal.WLEventContextImpl.lookup(W LEventContextImpl.java:269)
> at weblogic.jndi.internal.WLContextImpl.lookup(WLCont extImpl.java:362)
> at javax.naming.InitialContext.lookup(InitialContext. java:351)
> at weblogic.management.remote.common.ClientProviderBa se.makeConnection(ClientProviderBase.java:126)
> at weblogic.management.remote.common.ClientProviderBa se.newJMXConnector(ClientProviderBase.java:79)
> at javax.management.remote.JMXConnectorFactory.newJMX Connector(JMXConnectorFactory.java:326)
> at javax.management.remote.JMXConnectorFactory.connec t(JMXConnectorFactory.java:247)
>
> The code to acquire the connection is:
>
> String protocol = "t3";
> Integer portInteger = Integer.valueOf(portString);
> int port = portInteger.intValue();
> String jndiroot = "/jndi/";
> String mserver = "weblogic.management.mbeanservers.domainruntim e";
>
> Hashtable h = new Hashtable();
> h.put(Context.SECURITY_PRINCIPAL, username);
> h.put(Context.SECURITY_CREDENTIALS, password);
> h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAG ES,
> "weblogic.management.remote");
> JMXServiceURL adminUrl = new JMXServiceURL(protocol, hostname, port,
> jndiroot + mserver);
> return JMXConnectorFactory.connect(adminUrl, h).getMBeanServerConnection();
>
> The custom application which init the connection is configured as 'Startup Class' in WL console, then when i launch the admin server I catch the error..
> What's wrong with it?
>
> Thanks

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:36 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.