[jboss-user] [EJB/JBoss] - Using J2SE App. as the Server for an EJB3-based App.

timba07 do-not-reply at jboss.com
Mon Nov 19 09:38:19 EST 2007


Hi fellows,

I hope I've picked the right forum for my question!

I have seen lots of examples about using an EJB3-based Application as a Server (e.g. Service) for another java-based Client-Application. But I can't find any example about using a J2SE Application as a Server for an EJB based Application. 

Let me explain: I'm currently trying to build a SEAM/EJB3 based Web-App which needs to interact with a Service located in a J2SE Application. My first attemp is to connect these 2 Application by using the RMI. However this does not se(a)em to work. On the client-side I always get the shortened ClassNotFound-Exception listed below. I don't think that this is a real RMI/Security issue. 

My question is: did I do the right thing by trying to integrate RMI in a SEAM/EJB3-Application or is there another Approach which I should use but I currently don't know?

Any suggestions are welcome!

Best regards,
Stefan


  | 15:28:47,468 ERROR [STDERR] java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
  |         java.lang.ClassNotFoundException: de.cohones.lasor.mcs.IManagement (no security manager: RMI class loader disabled)
  | 15:28:47,468 ERROR [STDERR]     at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
  | 15:28:47,468 ERROR [STDERR]     at de.cohones.lasor.uis.session.Login.login(Login.java:96)
  | .
  | .
  | .
  | 15:28:47,484 ERROR [STDERR]     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 15:28:47,484 ERROR [STDERR]     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 15:28:47,484 ERROR [STDERR]     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 15:28:47,484 ERROR [STDERR]     at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | 15:28:47,484 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:619)
  | 15:28:47,484 ERROR [STDERR] Caused by: java.lang.ClassNotFoundException: de.cohones.lasor.mcs.IManagement (no security manager: RMI class loader disabl
  | ed)
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106034#4106034

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106034



More information about the jboss-user mailing list