Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Mac Plugin Code Anomalies
Mac Plugin Code Anomalies [message #202929] Mon, 09 May 2005 09:59 Go to next message
Eclipse UserFriend
I've written a Weblogic plugin for Eclipse and thus far, everything has
worked out great. It runs, debugs deployed java code and such but now I'm
writing code to stop it without using the Console's stop button. In doing
so, I decided to use JNDI, JMX and Reflection. Reason being is that
Weblogic is manageable via MBeans and the MBeans are registered in JNDI.
The reflection comes in because I have to use a custom ClassLoader to load
the weblogic.jar dynamically at runtime. here is what is happening.

This code to stop the server gets an InitialContext. Later the code does
an MBean lookup via JNDI and then runs getName() and getState() from the
MBean. Both are valid methods. When ran as a Java Application in
Eclipse, the code runs fine on Linux, Mac and Windows but when ran inside
of an Eclipse plugin (My Weblogic Plugin), it only runs on Linux and
Windows. The error I get is a
javax.management.AttributeNotFoundException. This totally makes no sense
and I figured I'd post here just in case someone else did. I can post
code if you need but like I said, outside of an Eclipse plugin, the code
runs on all platforms tested including Mac but when in an Eclipse plugin,
the Mac doesn't work. Take care, Jeremy
Re: Mac Plugin Code Anomalies [message #203537 is a reply to message #202929] Sun, 15 May 2005 23:40 Go to previous message
Eclipse UserFriend
Anyone have any idea on this? I'm dead in the water and I cannot figure
this out. It runs fine outside of an Eclipse plugin so I begin to think
it's architecture related but why only on a Mac? Take care, jeremy
Previous Topic:Adding AntBuildListener
Next Topic:Application args - ${user.name}
Goto Forum:
  


Current Time: Fri Nov 07 00:34:07 EST 2025

Powered by FUDForum. Page generated in 0.25212 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top