[jboss-user] [EJB/JBoss] - Re: Remote client calls problem after migration to JBoss AS
Yes, the new jbossall-client.jar with the references only. I have a high inhibition threshold to post in this forum, so I check things like Class-Path several times ;-) I found the problem: I've included my ejb-jar into my small test client to make available the EJB interfaces. Eclipse adds the ejb-jar dependencies to the Class-Path: the JBoss server libs. Seems to me, that server classes have overwritten the client classes. Everything works fine, if I include the remote interfaces and client jars, only. Stupid fault, sorry! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231473#4231473 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231473 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Remote client calls problem after migration to JBoss AS 5
Hello everyone, i try to migrate my JBoss 4.2.2 Application (and an Eclipse based remote client) to JBoss 5.0.0. I am getting some exceptions during remote calls of SLSBs and SFSBs on my client. The context creation and lookup has been performed correctly. As I see in the server log, the SFSB has been created. Calling method sendTextMessage of a SLSB causes: java.lang.NullPointerException | at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:444) | at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:56) | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91) | ... | at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:61) | at $Proxy3.invoke(Unknown Source) | at org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase.invoke(ProxyInvocationHandlerBase.java:261) | at org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase.invoke(SessionSpecProxyInvocationHandlerBase.java:101) | at $Proxy2.sendTextMessage(Unknown Source) | at client.Client.main(Client.java:31) Calling method retrieve of SFSB causes: java.lang.ClassCastException: org.jboss.aop.joinpoint.MethodInvocation cannot be cast to org.jboss.ejb3.stateful.StatefulRemoteInvocation | at org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:552) | at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:56) | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91) | ... | at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:61) | at $Proxy3.invoke(Unknown Source) | at org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase.invoke(ProxyInvocationHandlerBase.java:261) | at org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase.invoke(SessionSpecProxyInvocationHandlerBase.java:101) | at $Proxy2.retrieve(Unknown Source) | at client.Client.main(Client.java:36) Could that be a Class-Path problem? jbossall-client.jar and all it's dependencies are available... Client and server are running on JDK 1.5.0. Any ideas? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231444#4231444 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231444 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - list's of composite-element's of Hibernate with Java Persist
Using Hibernate 3 i could define composite-elements like @Embeddable with Java Persistence. But Hibernate also allows collections of those composite-element's. | | ... | | | | | | ... | | | ... | | | | ... | | | | | | ... | | | ... | | That way i could use an entity like Address in multiple tables linked with several other entities without unnecessary inheritance like CompanyAddress extends Address and FreelancerAddress extends Address or even a kind of polymorphism like Company extends Addressable and Freelancer extends Addressable... Is it possible to design such a mapping with EJB 3 annotations? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996964#3996964 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996964 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Looking up a @Stateful Bean fails cause of AOP Intercept
Solved it myself using JDK 1.5 instead of JDK 1.6 for client and JBoss. Are there known problems with JBoss and Java 6? My remote clients run on the Eclipse Rich Client Platform and i think, i cant hope that no one of my users will upgrade to Java 6... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996465#3996465 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996465 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Looking up a @Stateful Bean fails cause of AOP Interceptor (
Got a ClassLoader-Problem with EJB 3's Stateful Session Bean's i don't unterstand. Have got included all required Client-JAR's (incl. jboss-aop-jdk50-client.jar). Stateless Session Bean's are working fine, but if i look up for a Stateful i am getting a problem with a ClassLoader, can't find org.jboss.aop.advice.Interceptor. | javax.naming.NamingException: Could not dereference object [Root exception is java.lang.reflect.UndeclaredThrowableException] | at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1150) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) | at javax.naming.InitialContext.lookup(InitialContext.java:392) | at test.Client.main(Client.java:48) | Caused by: java.lang.reflect.UndeclaredThrowableException | at $Proxy1.createProxy(Unknown Source) | at org.jboss.ejb3.JndiProxyFactory.getObjectInstance(JndiProxyFactory.java:52) | at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) | at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125) | at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142) | ... 4 more | Caused by: java.lang.ClassNotFoundException: [Lorg.jboss.aop.advice.Interceptor; | at java.net.URLClassLoader$1.run(URLClassLoader.java:200) | at java.security.AccessController.doPrivileged(Native Method) | at java.net.URLClassLoader.findClass(URLClassLoader.java:188) | at java.lang.ClassLoader.loadClass(ClassLoader.java:306) | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50) | at | ... | Don't know if this is a client or server side problem, because the class is definitly in the client's classpath (if i drop jboss-aop-jdk50-client.jar the Stateless stop working cause of the Interceptor class). Any ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996455#3996455 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996455 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user