Menu

#10 JMX Browser Web App in WebLogic

open
5
2003-09-19
2003-08-26
Ethan Wolf
No

I deployed the webapp to weblogic 8.1.
The lookup of the MBeanServer failed to find an
MBeanServer (in
org.ejtools.jmx.browser.model.connector.LocalConnection
Service.createMBeanServer()).

To remedy the problem in my deployment, I modified the
method to use the following code to lookup the
MBeanServer in weblogic:

InitialContext ctx = new InitialContext();
MBeanHome home = (MBeanHome) ctx.lookup
(MBeanHome.ADMIN_JNDI_NAME);
server = home.getMBeanServer();

(This worked, but I make no guarantees that it is the
right approach, I'm just doing what I found on the
internet.)

In addition, there is a strange bug in the generated html
for text with links when I run on weblogic. On
the "MBean Detail" page, the "name" column in the table
appears on the screen as something akin to:
<a href="javascript:alert('');">mBeanInstanceInfo</a>
(instead of being a label "mBeanInstanceInfo" with a link).

The html source produced for this entry looks like:
<td valign="top" align="left"><a href="javascript:alert
('');">mBeanInstanceInfo</a>

----
Thanks for the nice work.

Discussion

  • Laurent Etiemble

    • assigned_to: nobody --> letiemble
     
  • Nobody/Anonymous

    Logged In: NO

    works well on weblogic 6.1 too, but with same strange
    generated html

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.