aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Classloader problem in Websphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Classloader problem in Websphere" Watch "Classloader problem in Websphere" New topic
Author

Classloader problem in Websphere

bob bobby
Greenhorn

Joined: Oct 07, 2008
Posts: 1
Hello All,

Please excuse me if this question is trivial - I am new to java web development.

okay - I have a war file that is being deployed onto websphere v6.

I have had to package this all up into an ear file. This is a spring/hibernate application.

The structure of my applicaiton is

EAR
META-INF
- application.xml
- was.policy

WAR FILE

Now - my war file looks for an external properties file which has our application startup properties. It is located in D:/data/config/myprops.properties

When deploying the ear file to WAS - I have made sure that D:/data/config is on the server classpath - however - when I start my application - I get a FileNotFoundException - even htough the file is there. Does anyone have any ideas? I beleive this could be a classpath issue - if so - how do I go about fixing this??? Is there some config I am missing?

Cheers all.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30758
    
156

Originally posted by bob bobby:
my war file looks for an external properties file

Can you shows the code (or XML property) that refers to this file?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Classloader problem in Websphere