facebook

Security Manager [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #208062 Reply

    vzapponi
    Member

    After correct deploy of a CMP bean on JBoss, I tried to access it with an application client.

    I have a security exception:

    javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.proxy.ClientContainer (no security manager: RMI class loader disabled)]
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652)

    – System Setup ——————————-
    Operating System and version: 2kPro
    Eclipse version: 3.0.M8
    Eclipse build id: 200403261517
    Fresh Eclipse install (y/n): y
    If not, was it upgraded to its current version using the update manager?
    Other installed external plugins: none
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 8
    MyEclipse version: 3.7.2
    Eclipse JDK version: 1.4.2_3
    Application Server JDK version: 1.4.2_3
    Are there any exceptions in the Eclipse log file? No
    —————————

    Thanks
    Vittorio

    #208087 Reply

    Riyad Kalla
    Member

    Navigate to your Window > Preferneces > MyEclipse > App Server > JBoss 3 > JDK panel, and add this under Optional JVM Arguments:

    
    -Djava.security.manager -Djava.security.policy="server.policy"
    

    and add the policy file in your Eclipse directory. I got this from here: http://renaud.waldura.com/software/java/com.waldura.eclipse.jndibrowser/doc/COMPATIBILITY.html

    but you could also check here:
    http://www.google.com/search?hl=en&lr=&ie=UTF-8&safe=off&q=%2BJBoss+javax.naming.CommunicationException&btnG=Search

    #208090 Reply

    vzapponi
    Member

    😀
    10x a lot
    All it’s ok
    Vittorio

    #208095 Reply

    Riyad Kalla
    Member

    Glad to hear it worked! I’ll add that to the FAQ.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Security Manager [Closed]

You must be logged in to post in the forum log in