09-19-05 11:04 PM
annapurnamungara@yahoo.com wrote:
>Hi,
>
>I am trying to access EJB running on WAS 5.1 (Unix) from a web application
running on WAS 4.0 (Windows). I am doing a iiop call and receive the followi
ng error message:
>
>java.lang.ClassCastException: com.ibm.ws.naming.ipbase.UnresolvedContext
> at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnI
nitCtxFactory.java:212)
> at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:98)
> at com.ibm.ws.naming.util.WsnInitCtx.<init>(WsnInitCtx.java:79)
> at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtxFa
ctory.java:137)
> at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(Wsn
InitialContextFactory.java:80)
> at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674
)
> at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:255)
> at javax.naming.InitialContext.init(InitialContext.java:231)
> at javax.naming.InitialContext.<init>(InitialContext.java:207)
>
>
>FYI, It works when the context is hardcoded (env.put(Context.PROVIDER_URL,"
iiop://uxm04:9892"), but when the value is not hard coded and is mentioned i
n the configuration file/system property (set on server) I get this unresolv
ed context error.
>
>Does anybody have any idea on why I get this error and how I can successful
ly get my initialContext created.
>
>Thanks for your help.
>Anna
>
>
What's the code that fails?
Ken
[ Post a follow-up to this message ]
|