| Author |
how do i set the classpath in jboss
|
maha laxmi
Ranch Hand
Joined: Sep 23, 2005
Posts: 68
|
|
say i dropped x.jar or x. properties in jboss/server/default/lib directory; in run.bat how do i set the classpath so that jboss will recognize x.jar in lib directory;
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
You wouldn't change anything in run.bat. The classpath there is the classpath JBoss itself needs to run. Jars deployed in the lib directory tend to be resources needed by applications deployed in the same directory - a common example would be a JDBC driver. If you are refereing to resources needed only by your application, then these would be deployed as part of your application (i.e. in the EAR file).
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
Dave Salter
Ranch Hand
Joined: Jul 20, 2005
Posts: 292
|
|
|
If you want to put properties files into JBoss for reading from your application, its a good idea to place them in the server/default/data directory. That way its a lot easier to keep a separation between the JBoss installation and your data should you ever upgrade versions of JBoss.
|
 |
maha laxmi
Ranch Hand
Joined: Sep 23, 2005
Posts: 68
|
|
|
it will recognize only common jars as u said classes12.jar etc.. but it will not recognize if u deploy some third party jar(say quartz.jar,p6spy.jar etc) in jboss/server/default/lib directory;
|
 |
Nainar Mohamed
Greenhorn
Joined: Dec 15, 2007
Posts: 9
|
|
Hi , I am facing the same problem. I believe you would got the resolution for this long time back. Can you please share that with me. Regards, Nainar
|
 |
 |
|
|
subject: how do i set the classpath in jboss
|
|
|