There are plenty of ways to deploy packages in jboss, but putting them on
the startup classpath is not one of them.

A few of the choices are:

put the package in server/[conf]/lib (if it is a classes-only jar)
put the package in server/[conf]/deploy
change the deployment scanner config or add another one to scan the
location of the package or explictly deploy the package
(URLDeploymentScanner)
deploy the package through the jmx viewer using
MainDeployer.deploy(urlstring)

deploy the package using the ant jmx task

write your own custom deployment program that calls the maindeployer
through jmx.

use the ClassPathExtension mbean in some *-service.xml file that is already
being deployed (for classes-only jars or directories).

I'm sure there are more ways, but maybe one of these will work for you.

david jencks

On 2002.09.17 08:50:55 -0400 rahul ganjoo wrote:
> When I try to change run.bat to set JBOSS_CLASSPATH so that
> certain application specific classes are visible to JBoss throughout , it
> gives
> me
> ClassNotFound Exceptions for certain JBoss specific classes.
> I was trying this to avoid putting application specific jars in the
> deploy or
> lib folder.
> Is that not possible.Is putting all  jars that Jboss needs in deploy/lib
> the
> only
> way it works with JBoss??
> 
> TIA,
> Rahul Ganjoo.
> David Jencks wrote:
> 
> > On 2002.09.17 02:11:21 -0400 rahul ganjoo wrote:
> > > In this context i have a few basic questions...
> > > My deploy directory has many plain jars(just class files) and
> > > other jars having EJB components. I have observed that Jboss
> > > deploys these jars alphabetically and if a bean Jar needs a class
> file
> > > thats in a jar which has not been deployed yet(coz name starts with a
> > > letter
> > > that comes later in the alphabet)...it gives a problem..consequently
> > > i have to change the names of the jars so that jars with no
> dependencies
> > > are
> > > deployed first.Is there a way to force Jboss to deploy certain jars
> > > before
> > > others.
> >
> > There are some ways by using nested packages, but it is probably easier
> to
> > alphabetize or prefix numbers 10jar.jar 20jar.jar... to your names.
> >
> > >
> > > And whats the difference between putting a plain jar file in the
> deploy
> > > and putting the same in the lib folder of Jboss?is there any?
> >
> > You can hot-redeploy things in deploy, something loaded from lib is
> staying
> > until the server shuts down.
> >
> > david jencks
> > >
> > >
> > > "Kim, Yong" wrote:
> > >
> > > > Flase alarm.
> > > >
> > > > It works.
> > > >
> > > > -----Original Message-----
> > > > From: Kim, Yong [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, September 16, 2002 3:30 PM
> > > > To: '[EMAIL PROTECTED]'
> > > > Subject: RE: [JBoss-user] Adding jar files to \server\all\lib
> directory
> > > >
> > > > I have a utility jar file that I have been putting in the lib
> > > directory...
> > > > Now, I am trying to put all of my jars, ears, sars, etc. into the
> > > deploy
> > > > directory... however, I ran into a problem when deploying the sar
> file.
> > > > This sar file depends on the utility jar file which gets deployed
> after
> > > the
> > > > sar file...  So, I switched to PrefixDeploymentSorter mechanism and
> put
> > > the
> > > > digit "1" in front of the jar file wishing that it get's deployed
> > > before the
> > > > sar file... However, it's not working...  Does the
> > > PrefixDeploymentSorter
> > > > applies to any type Xar files?
> > > >
> > > > Mitchell
> > > >
> > > > -----Original Message-----
> > > > From: David Jencks [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, September 16, 2002 2:30 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: [JBoss-user] Adding jar files to \server\all\lib
> directory
> > > >
> > > > no.  If you need to redeploy something put it in deploy in the
> first
> > > place.
> > > >  Just about anything is deployable, including plain jars.
> > > >
> > > > david jencks
> > > >
> > > > On 2002.09.16 14:08:12 -0400 "Kim, Yong" wrote:
> > > > > I have a simple question.
> > > > >
> > > > > When I add/remove jar files into deploy directory, the hot deploy
> > > > > works...
> > > > > Is there any way I can do the same thing for the lib directory
> > > without
> > > > > restarting the JBoss instance?
> > > > >
> > > > > Thanks.
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This sf.net email is sponsored by:ThinkGeek
> > > > > Welcome to geek heaven.
> > > > > http://thinkgeek.com/sf
> > > > > _______________________________________________
> > > > > JBoss-user mailing list
> > > > > [EMAIL PROTECTED]
> > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > > > >
> > > > >
> > > >
> > > > -------------------------------------------------------
> > > > This sf.net email is sponsored by:ThinkGeek
> > > > Welcome to geek heaven.
> > > > http://thinkgeek.com/sf
> > > > _______________________________________________
> > > > JBoss-user mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > > >
> > > > -------------------------------------------------------
> > > > This sf.net email is sponsored by:ThinkGeek
> > > > Welcome to geek heaven.
> > > > http://thinkgeek.com/sf
> > > > _______________________________________________
> > > > JBoss-user mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > > >
> > > > -------------------------------------------------------
> > > > This sf.net email is sponsored by:ThinkGeek
> > > > Welcome to geek heaven.
> > > > http://thinkgeek.com/sf
> > > > _______________________________________________
> > > > JBoss-user mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > Sponsored by: AMD - Your access to the experts on Hammer Technology!
> > > Open Source & Linux Developers, register now for the AMD Developer
> > > Symposium. Code: EX8664 http://www.developwithamd.com/developerlab
> > > _______________________________________________
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > >
> >
> > -------------------------------------------------------
> > Sponsored by: AMD - Your access to the experts on Hammer Technology!
> > Open Source & Linux Developers, register now for the AMD Developer
> > Symposium. Code: EX8664 http://www.developwithamd.com/developerlab
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> -------------------------------------------------------
> Sponsored by: AMD - Your access to the experts on Hammer Technology! 
> Open Source & Linux Developers, register now for the AMD Developer 
> Symposium. Code: EX8664 http://www.developwithamd.com/developerlab
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


-------------------------------------------------------
Sponsored by: AMD - Your access to the experts on Hammer Technology! 
Open Source & Linux Developers, register now for the AMD Developer 
Symposium. Code: EX8664 http://www.developwithamd.com/developerlab
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to