Bugs item #701880, was opened at 2003-03-12 01:22
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=701880&group_id=22866

Category: None
Group: v3.2
Status: Open
Resolution: None
Priority: 7
Submitted By: marco dubbeld (dubbeld)
Assigned to: Nobody/Anonymous (nobody)
Summary: ejb-external-ref bug in 3.2RC3

Initial Comment:
External refs to ejb's in other deployment packages
cause class cast exceptions within JBoss 3.2 RC3.
See attached complete example. When the three jars
under build.deploy are deployed, the JNDI view will
show valid links for jboss 3.0.4 but Invalid links
within 3.2.

Both setups within 3.2 and 3.0.4) were tested with
jdk1.4 on linux 2.4.19-16mdk


Marco



00:10:54,800 ERROR [JNDIView] Invalid LinkRef for:
ServiceFacadeForPluginServer
java.lang.ClassCastException
        at
org.jboss.naming.JNDIView.list(JNDIView.java:399)
        at
org.jboss.naming.JNDIView.list(JNDIView.java:445)
        at
org.jboss.naming.JNDIView.list(JNDIView.java:445)
        at
org.jboss.naming.JNDIView.list(JNDIView.java:124)
        at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
.....


----------------------------------------------------------------------

>Comment By: marco dubbeld (dubbeld)
Date: 2003-03-12 12:31

Message:
Logged In: YES 
user_id=73399

 Just checked the sources, and found in Container.java in 
setupEnvironment that the link only in case of external is stored as 
Reference, however should this not only be LinkRef ? 
JNDIView only expects LinkRef 's. 
 
>> 
                  if (ref.getJndiName() != null) 
                  { 
                     // Add default 
                     StringRefAddr addr = 
                           new StringRefAddr("default", ref.getJndiName()); 
                     reference.add(addr); 
                  } 
                  Util.bind(envCtx, ref.getName(), reference); 
>> 
 

----------------------------------------------------------------------

Comment By: marco dubbeld (dubbeld)
Date: 2003-03-12 01:26

Message:
Logged In: YES 
user_id=73399

Submit the simplest testcase possible that demonstrates the 
problem

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=701880&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to