probably you're right! thanks.
I now don't use @In annotation and it works. I am new to seam and trying to realize when to use @In and @Out ? Since I am not a pragmatic programmer yet, I sometimes program blindly. Could you please tell me the idea of @In and @Out in brief? (if you have enough time to type a few words) AFAIK, seam is not ejb3. So I feel a little bit inconfident while programming in seam.
thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093433#4093433
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093433
We have an EAR deployed on AS 4.2.1
In the webapp (war-archive), we need to access an SLSB (EJB3).
MyBeanLocal bean = (MyBeanLocal) context.lookup("java:comp/env/ejb");
But this context is not existing! How comes?
We can access the Bean-proxy using JNDI-path "myapp/MyBean/local", but this object is not type-compatible with the local interface (MyBeanLocal).
Any hint why "java:comp/env/ejb" is not existing, and how to obtain the type-compatile object?
Marc
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093431#4093431
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093431
Different classloaders - I think that must be it. I guess it is different classloaders, the Tomcat one loading the webapp and another JBoss one loading the JAR.
And thanks for the warning - I think I will skip the custom type and just put a Map in the cache with nothing else than Strings and Integers and such.
Anyway, I wonder how to solve this classloading issue. Since the class is used by the webapp, it is in a JAR in WEB-INF/lib. But if it is only there, the cache cannot find it when it tries to deserialize the object. So were should I put the class? Is this possible at all?
Thanks!
Torsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093429#4093429
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093429
The xerces jars are present in the lib/endorsed folder of JBoss. These will be picked up by JBoss when its booting. The current version of xerces that is being shipped with JBoss is XercesJ-2.7.1.
Does it work when you add a xercesImpl.jar (appropriate version) in your application's WEB-INF/lib folder? At this point, i am just guessing the possible reasons for the ClasscastException and am not yet sure what is causing this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093425#4093425
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093425