sepan
Grünschnabel
Hallo,
ich habe ein Projekt, das aus 2 Teilen besteht:
- Business Logik in .jar (EJB3), Stateless Session Beans, Zugriff über Remote Interfaces funktioniert vom Client aus
- Webapplikation in .war auf dem gleichen JBoss Application Server, das über Remote Interfaces auf die Business Logik zugreift.
Die Webapplikation kann aber das Remote Interface nicht casten:
DIe Fehlermeldung:
Im JNDIView von JBoss zeigt er aber:
ich habe ein Projekt, das aus 2 Teilen besteht:
- Business Logik in .jar (EJB3), Stateless Session Beans, Zugriff über Remote Interfaces funktioniert vom Client aus
- Webapplikation in .war auf dem gleichen JBoss Application Server, das über Remote Interfaces auf die Business Logik zugreift.
Die Webapplikation kann aber das Remote Interface nicht casten:
Code:
Context ctx = new InitialContext();
AdderRemote adder = (AdderRemote)ctx.lookup("/AdderBean/remote");
DIe Fehlermeldung:
Code:
java.lang.ClassCastException: $Proxy71 cannot be cast to net.sepan.math.AdderRemote
Im JNDIView von JBoss zeigt er aber:
Code:
+- AdderBean (class: org.jnp.interfaces.NamingContext)
| +- remote (proxy: $Proxy71 implements interface net.sepan.math.AdderRemote,interface org.jboss.ejb3.JBossProxy)