Package your enterprise application as an ear file, with the jars in the required directory structure, and it's all taken care of.
Do NOT put everything in the app server's lib directory.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
How are you going to use those classes if you don't have them?
And to have them they have to be in the ear.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
I feared as much. That is NOT the way to go about it.
NEVER do that, classes specified there are ONLY for use by JBoss itself, NOT intended for use by applications running inside JBoss.
Those should have their own jars inside their ear files.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
How can I modify the classpath for an individual application? There are reasons for not including all files in the EAR file itself, so how can it be done?
being rational minded enough to create a new thread with your question instead of re-opening one that hasn't been open in over a year would be a nice start.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
Thanks for the warm welcome!
Above thread covers my issue perfectly, so why should I open a new thread?
if it covers your issue perfectly, there's no need to reopen it, since either the answer is in there, or either no-one answered (maybe for a reason)
if it does not cover your issue perfectly, it's always better to start a new thread.
so, my advice, if it covers it perfectly, read the answers already given.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
I feared as much. That is NOT the way to go about it.
NEVER do that, classes specified there are ONLY for use by JBoss itself, NOT intended for use by applications running inside JBoss.
Those should have their own jars inside their ear files.
kind of is answered
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
It is not.
I want *my* application to read some files from the classpath which are, for a reason, NOT in the EAR file.
That's why I don't want to access the JBOSS classpath but have a new entry in my applications classpath.
*sigh*
YOUR question may not have been answered, the original one was. looks like it didn't perfectly covered what you wanted huh?
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
your answer for this would be:
about three years over due.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433