geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Fuhrer ...@fuhrer.com>
Subject Re: M5 - problem with war deploy
Date Fri, 21 Oct 2005 20:03:04 GMT
I got the same exceptions in an environment with different class 
loaders, where MX4J wasn't visible from every class loader. In the end I 
solved this by creating my own class loader and setting it as the 
current thread's context class loader before any JMX call.

Kevan Miller wrote:
> Sun's 1.5 JRE includes their JMX implementation. Now why we're seeing 
> it in this call stack, I don't know. I occasionally run server and 
> deployer on 1.5 (server and deployer must be running same JRE) for 
> profiling purposes. I haven't seen this problem, but don't see any 
> point in investigating...
> --kevan
>
> On 10/21/05, *Geir Magnusson Jr.* <geirm@apache.org 
> <mailto:geirm@apache.org>> wrote:
>
>     Why are we seeing Sun code here?  We don't ship with Sun's JMX - we
>     use MX4J...
>
>     geir
>
>     On Oct 20, 2005, at 8:58 PM, Aaron Mulder wrote:
>
>     > Unfortunately, there's no Geronimo code in that stack trace, so
>     it's
>     > hard to tell what might be causing it.  Can you cause it again and
>     > look in the server log (geronimo/var/log/geronimo.log) and see if
>     > there are any additional stack traces that include some
>     > org.apache.geronimo classes?  (Not that it's not worth trying in JDK
>     > 1.4.2 just to make sure.)
>     >
>     > Thanks,
>     >     Aaron
>     >
>     > On 10/20/05, Enrico Donelli < enrico.donelli@gmail.com
>     <mailto:enrico.donelli@gmail.com>> wrote:
>     >
>     >> Hi all,
>     >> I'm making my first attempt with geronimo (M5, jdk1.5, win xp).
>     >>
>     >> I have some problems in deployng a war: the web application is
>     >> deployed, but I get this error during the deployment process:
>     >>
>     >>
>     >> java.lang.IllegalArgumentException: Can't add listener to MBean
>     >> server
>     >> delegate: java.lang.SecurityException : Operation
>     >> not allowed
>     >>        at
>     >> com.sun.jmx.remote.internal.ArrayNotificationBuffer.createListeners
>     >> (ArrayNotificationBuffer.java:565)
>     >>        at
>     >> com.sun.jmx.remote.internal.ArrayNotificationBuffer .<init>
>     >> (ArrayNotificationBuffer.java:185)
>     >>        at
>     >>
>     com.sun.jmx.remote.internal.ArrayNotificationBuffer.getNotificationBu
>     >> ffer(ArrayNotificationBuffer.java:99)
>     >>        at javax.management.remote.rmi.RMIServerImpl.getNotifBuffer
>     >> (RMIServerImpl.java:486)
>     >>        at
>     >> javax.management.remote.rmi.RMIConnectionImpl.getServerNotifFwd
>     >> (RMIConnectionImpl.java :148)
>     >>        at
>     >> javax.management.remote.rmi.RMIConnectionImpl.fetchNotifications
>     >> (RMIConnectionImpl.java:1213)
>     >>        at sun.reflect.GeneratedMethodAccessor142.invoke(Unknown
>     >> Source)
>     >>        at sun.reflect.DelegatingMethodAccessorImpl.invoke
>     >> (DelegatingMethodAccessorImpl.java:25)
>     >>        at java.lang.reflect.Method.invoke(Method.java:585)
>     >>        at sun.rmi.server.UnicastServerRef.dispatch
>     >> (UnicastServerRef.java:294)
>     >>        at sun.rmi.transport.Transport$1.run(Transport.java:153)
>     >>        at java.security.AccessController.doPrivileged (Native
>     Method)
>     >>        at
>     sun.rmi.transport.Transport.serviceCall(Transport.java:149)
>     >>        at sun.rmi.transport.tcp.TCPTransport.handleMessages
>     >> (TCPTransport.java:460)
>     >>        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
>     >> (TCPTransport.java:701)
>     >>        at java.lang.Thread.run(Thread.java:595)
>     >>        at
>     >> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer
>     >> (StreamRemoteCall.java:247)
>     >>        at sun.rmi.transport.StreamRemoteCall.executeCall
>     >> (StreamRemoteCall.java:223)
>     >>
>     >>
>     >>
>     >> Have you got any idea?
>     >>
>     >> Thanks in advance!
>     >> Enrico
>     >>
>     >>
>     >
>     >
>
>     --
>     Geir Magnusson Jr                                  +1-203-665-6437
>     geirm@apache.org <mailto:geirm@apache.org>
>
>
>

-- 
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com


Mime
View raw message