This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Classloader problem in Websphere  RSS feed

 
bob bobby
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 37242
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!