Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JBoss/WildFly and the fly likes problem with classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "problem with classpath" Watch "problem with classpath" New topic

problem with classpath

Maciej Bajolek

Joined: May 26, 2003
Posts: 2
Hi *,
I need a help
(Question 1)
I have application which has some ejb modules. My EAR file looks like:
I need to have file: in ejb-module.jar classpath (there is configuration of a module).
When I use WLS or OC4J, I add "Class-Path: config" entry to ejb-module.jar file and in my Config service I access file using getResourceAsStream("/") method.
Unfortunatelly in JBoss 3.2.1 I get following worning messages:
18:22:26,102 WARN [MainDeployer] The manifest entry in file:/C:/jboss/server/default/tmp/deploy/ser
ver/default/deploy/wms.ear/51.wms.ear-contents/mdb-ejb.jar references URL file:/C:/jboss/server/defa
ult/tmp/deploy/server/default/deploy/wms.ear/51.wms.ear-contents/config which could not be opened, entry ignored
Is there any other solution for it?
(Question 2)
As I mentioned before I use JBoss 3.2.1. How can I deploy my application using EXPLODED directory format. When I unpack EAR and all modules, change application.xml module entries pointing to directory (module) instead of jars/wars
I read that all I need is to unpack EAE ant its modules into JBoss's deploy directory ant everything will be ok.
It does not work!
Am I doing something wrong?
How can deploy application using Exploded directory format?
best regards
I agree. Here's the link:
subject: problem with classpath
It's not a secret anymore!