What's interesting is that when I upgrade the jboss.xml file to use the xsd for
jboss_5.0.xsd deployment seems to be all good:
<jboss
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
version="3.0">
However at runtime I get a ClassCastException doing a JNDI lookup on the Home
interface.
Below is the call
EJBHome home = (EJBHome)PortableRemoteObject.narrow(
context.lookup(sJNDIName),narrowTo);
The sJNDIName has the correct name in it however when I inspect the value of
'context.lookup(sJNDIName)' it has the value:
jboss.j2ee:ear=treetop.ear,jar=TreeTop_Controllers.jar,name=ManageSubassetController,service=EJB3:a2a2-yd8fkv-eorsjc28-1-eoruc8m5-17
instead of the ejb/HelloWorldHome value.
this causes a ClassCastException in the narrowing part of the code in the
PortableRemoteObject's narrow method.
And all I changed was the ejb-jar.xml and jboss.xml to the latest xsd versions
and changed the CONTAINER value to be lowercase.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952852#3952852
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952852
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user