[jboss-dev] Use cases for manipulating AS classpath
Stan Silvert
ssilvert at redhat.com
Mon Feb 9 09:14:34 EST 2009
Stan Silvert wrote:
> Max Rydahl Andersen wrote:
>> Hi guys,
>>
>> Can you give me a usecase where it is useful to add jars to the AS
>> classpath (JBOSS_CLASSPATH/RUN_CLASSPATH in the run.sh scripts) and
>> not just add them into lib folder ?
> It's useful when you need to get around a problem like this:
> https://jira.jboss.org/jira/browse/JBAS-6444
>
> It will be fixed in a future release, but the simple workaround is to
> add a jar to the classpath.
And to clarify, the reason it is easier to do this from the classpath is
because I am using Cargo to start the server. I don't have control over
the lib folder. So my case is like your #1 below. I think it is valid.
>>
>> Asking since it is a constant "battle" in the tooling between users
>> who want full control and those who just want the server startup to
>> *always* work.
>> Before we go add a bunch of complex code to handle this I would like
>> to know of a use case that merits that users can set the classpath at
>> startup time instead
>> of just adding it into lib.
>>
>> The usecases I have come up with I'm not sure if they are valid:
>>
>> 1) allows me to put stuff on the global classpath of the server
>> without manipulating a possibly read-only lib directory
>> 2) Needed if you want to enhance the run.jar and other classes for
>> profiling/debugging purposes
>> 3) Allows you to try a patch on run.jar without changing the possible
>> read-only AS directory
>>
>> Anything else ?
>> Are those 3 usecases *valid* or is there better ways of doing that ?
>>
>> From a tooling users perspective I believe (though not yet confirmed)
>> that bullet 1 is the reason why they want it - thus I would like to
>> know if
>> doing point 1 is semantically equal to putting that jar in the lib
>> dir of the server or the config. Or are there some (user perceived)
>> difference ?
>>
>> /max
>> _______________________________________________
>> jboss-development mailing list
>> jboss-development at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-development
>
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development
More information about the jboss-development
mailing list