Hi all, 
as title, I can access remote EJB through standalone client, but failed for web 
client. All in jboss-4.0.0.

Exception thrown is ClassCastException when casting to EJBHome.
Source failed on PortableRemoteObject.narrow(...)

Below is my config. any hints? thanks much
jboss-service.xml
   <mbean code="org.jboss.naming.ExternalContext" 
name="jboss.jndi:service=ExternalContext,jndiName=time/arr/UstCourseInfoService">
  |     <attribute name="JndiName">time/arr/UstCourseInfoService</attribute>
  |     <attribute name="Properties">jnp.properties</attribute>
  |     <attribute name="InitialContext">javax.naming.InitialContext</attribute>
  |    </mbean>

jnp.properties
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://myremotehost:1099/time/arr/UstCourseInfoService
java.naming.factory.url.pkgs=org.jnp.interfaces

jboss-web.xml

    <ejb-ref>
        <ejb-ref-name>time/arr/UstCourseInfoService</ejb-ref-name>      
<jndi-name>jnp://myremotehost:1099/application/time/arr/UstCourseInfoService</jndi-name>
    </ejb-ref>   


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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to