JUnit picks up InitialContext from appserv-rt.jar - how to fix this?

Hi,

I have code in my EJB app that needs to access classes from appserv-rt.jar. I also have JUnit test cases for standalone testing of EJB business layer.

When I try to run those test cases JUnit picks up InitialContext from appserv-rt.jar and tries to connect to a non-existent JNDI service using default settings before it even runs the test.

Has anyone seen this happen? Is there a way to fix it?

Any help on the subject would be greatly appreciated.

Thanks,

Mark

[509 byte] By [markcitizena] at [2007-11-26 15:24:02]
# 1

Hi I am new to EJB. this not relevent to this topic i know but i am sorry for posting it here. i m getting the same error.plz could any point where i can find the appserv-rt.jar file plz i was trying to find for 2 hrs i am not able to find it.i am in urget any help would help me in great

thanks in advance

prakash

Prakia at 2007-7-8 21:39:24 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Hi,

'Hi I am new to EJB. this not relevent to this topic i know but i am sorry for posting it here. i m getting the same error.plz could any point where i can find the appserv-rt.jar file plz i was trying to find for 2 hrs i am not able to find it.i am in urget any help would help me in great'

Did you do a search in your application server lib?

Unless it is deleted, look in

C:\Sun\SDK\lib\appserv-rt.jar

If you want to add it to your class path, you have to add both:

javaee.jar

and

appserv-rt.jar

Hope that helps

eve

evepokuaa at 2007-7-8 21:39:24 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...