This is the exception I get if I dont have the home in the classpath and
specify className attribute
org.apache.wsif.WSIFException: Failed to lookup EJB home using JNDI name
'ejb/test/TestHome'; nested exception is:
java.lang.ClassCastException: org.omg.stub.java.rmi._Remote_Stub
java.lang.ClassCastException: org.omg.stub.java.rmi._Remote_Stub
at org.apache.wsif.providers.ejb.WSIFPort_EJB.getEjbHome(Unknown Source)
at org.apache.wsif.providers.ejb.WSIFPort_EJB.getEjbObject(Unknown Source)
at org.apache.wsif.providers.ejb.WSIFOperation_EJB.<init>(Unknown Source)
at
org.apache.wsif.providers.ejb.WSIFPort_EJB.getDynamicWSIFOperation(Unknown
Source)
at org.apache.wsif.providers.ejb.WSIFPort_EJB.createOperation(Unknown
Source)
at org.apache.wsif.providers.ejb.WSIFPort_EJB.createOperation(Unknown
Source)
at
In our scenrio, the caller will not have home in the classpath. How can we
make it work? I looked into the WSIFPort_EJB class, I see that
InitialContext.lookup method is called and the return value is cast to
EJBHome. Do we need to have stubs of remote and home interfaces in the
classpath also, to make the WSIF EJB call to work or they loaded on demand
across the network?
Thanks in advance.
Regards,
Anil Ambati
SDWB Development
919-254-6152
[EMAIL PROTECTED]
"You have no responsibility to live up to what other people think you ought
to accomplish." -Richard Feynman (1918-1988)
"Money is as bad as it is necessary" - Anonymous
"Owen D
Burroughs" To: [EMAIL PROTECTED]
<[EMAIL PROTECTED] cc:
> Subject: Re: WSIF EJB Provider
Question
09/17/2003 08:40
AM
Please respond to
wsif-user
By putting the home interface class in the classpath and specifying the
className attribute, it allows WSIF to perform a narrow on the EJB home
object when retrieved from JNDI. Using PortableRemoteObject.narrow is
specified in the EJB spec. If you don't specify the information, the narrow
will not occur. Whilst in many situations this might not be a problem, it
is not recommended.
Regards,
Owen
|---------+---------------------------->
| | Anil |
| | Ambati/Raleigh/IB|
| | [EMAIL PROTECTED] |
| | |
| | 17/09/2003 05:14 |
| | Please respond to|
| | wsif-user |
| | |
|---------+---------------------------->
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Subject: WSIF EJB Provider Question
|
|
|
|
|
>--------------------------------------------------------------------------------------------------------------------------------------------------|
Hi:
What is the significance of not specifying className attribute of
<ejb:address> element? Do the caller making the WSIF call need to have home
interface class in its classpath?
Thanks in advance.
Regards,
Anil Ambati
SDWB Development
919-254-6152
[EMAIL PROTECTED]
"You have no responsibility to live up to what other people think you ought
to accomplish." -Richard Feynman (1918-1988)
"Money is as bad as it is necessary" - Anonymous