1 Reply Latest reply on Sep 17, 2008 5:26 AM by jaikiran pai

    EJB 3.0 ClassNotFoundExdeption between EAR when using Securi

    Sebastien Degardin Newbie

      Hi there,

      I have 2 EAR (only EJB) application (application1 using application 2's client ejb jar).

      The first EAR application is the service which has logic and web services, so it has security enabled. (Security Domain with LoginModule)
      So, the users have to authenticate to access any webServices.

      When the WebServices tries to send a Command Object to the second application I have the following Exception :

      Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: No ClassLoaders found for: com.company.dao.commands.account.AccountCreationCommand (no security manager: RMI class loader disabled)
       at org.jboss.aop.joinpoint.MethodInvocation.getArguments(MethodInvocation.java:276)
       at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:299)
       at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
       at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
       at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
       at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
       at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)


      And this is only since a use security on the first aplication.
      Any idea ?

      Thanks.