I am using WSAD5 and when I lookup context, the error occurs like
"com.ibm.websphere.naming.WsnInitialContextFactory " not found. Can anyone
tell me what jar files I should add in my classpath?
I tried naming.jar and ns.jar, but WSAD still goes wrong. The new error
message is:
java.lang.NoClassDefFoundError: com/ibm/CORBA/iiop/ObjectURL
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at
com.ibm.websphere.naming.WsnInitialContextFactory.init_implClassCtor(WsnInit
ialContextFactory.java:168)
at
com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnIniti
alContextFactory.java:108)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at com.allmedia.domain.util.dao.DAOFactory.getDAO(DAOFactory.java:40)
at com.allmedia.domain.facade.CategoryFacade.<init>(CategoryFacade.java:33)
at
com.allmedia.domain.facade.CategoryFacade.getInstance(CategoryFacade.java:45
)
at
com.allmedia.domain.facade.CategoryFacadeTest.setUp(CategoryFacadeTest.java:
44)
at junit.framework.TestCase.runBare(TestCase.java:138)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:131)
at junit.framework.TestSuite.runTest(TestSuite.java:173)
at junit.framework.TestSuite.run(TestSuite.java:168)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
nner.java:329)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.
java:218)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner
.java:151)
Thanks.
> Hi,
>
> I am using WSAD5 and when I lookup context, the error occurs like
> "com.ibm.websphere.naming.WsnInitialContextFactory " not found. Can anyone
> tell me what jar files I should add in my classpath?
>
> I tried naming.jar and ns.jar, but WSAD still goes wrong. The new error
> message is:
> java.lang.NoClassDefFoundError: com/ibm/CORBA/iiop/ObjectURL
Put this in your classpath:
WAS_HOME\lib\naming.jar
WAS_HOME\lib\namingservice.jar
WAS_HOME\lib\j2ee.jar
WAS_HOME\properties
It should be possible to use with namingclient.jar, and then it could
require ecutils.jar... can't remember. One day IBM will write a
documentation about this (same question for 3 years on usenet)...
Damien
I'm trying to run an application with the Sun JDK that talks to an
WSAS-5 EJB. I've gotten similar errors:
- WsnInitialCcontextFactory not found
Resolved by adding namingclient.jar
- no class definition for com/ibm/CORBA/iiop/ObjectURL
I've added all the jars listed above to my ClassPath, but I still get
no class definition for ObjectURL.
Do I need set some system variables (-Dxx=yy java options), or add
still more jars to the client class path.
> Damien Bonvillain <ka...@cinemasie.com> wrote in message >
>> Put this in your classpath:
>> WAS_HOME\lib\naming.jar
>> WAS_HOME\lib\namingservice.jar
>> WAS_HOME\lib\j2ee.jar
>> WAS_HOME\properties
>>
>> It should be possible to use with namingclient.jar, and then it could
>> require ecutils.jar... can't remember. One day IBM will write a
>> documentation about this (same question for 3 years on usenet)...
>
> I'm trying to run an application with the Sun JDK that talks to an
> WSAS-5 EJB. [...]
>
> - no class definition for com/ibm/CORBA/iiop/ObjectURL
> I've added all the jars listed above to my ClassPath, but I still get
> no class definition for ObjectURL.
For this one, you need to use an IBM JRE and not SUN. Perhaps it's
possible to poke around the IBM libs in the jre/lib/ext jars to see if
there is something that fulfills your problem... IMHO it's too much a
pain to do this search... Write Once, Run Anywere...
Damien
Do you know where it is?