Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WSAD Classpath help

Status
Not open for further replies.

pkganapathi

Programmer
Jun 22, 2003
15
CA
Hi all,

I have a web project and a Java project created in WSAD. The web project is deployed in an EAR project also in WSAD. Now in one of the classes in the Java project I try to look up a file from the system. When I try to do the same within the java project through a main method it identifies the path and looks up the file,but doing the same from the web module it throws FileNot found exception. I have included the correspondin Java project in the classpah of the web project as well as the deployed EAR project. Can someone please tel me where I am going wrong in setting up the configuration.


-thanks,


Assistant Consultant
Tata Consultancy Services
 
Check server permissions. Look at the security logs and see if any id is getting rejected. Unfortunately, WSAD "helps" you do things that are sometimes different if you are outside of WSAD (until you figure out what is happening.)

Also check that the directory delimiters are generic if you are developing on windows and deploying to Linux/Unix.

Another option is to deploy you application to your desktop and run it outside of WSAD. It may provide you with the same error, in an easier to test environment.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top