You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by laredotornado <la...@gmail.com> on 2010/02/01 22:20:35 UTC

Any way to place a JAR so that I am guaranteed its classes get loaded first?

Hi,

I'm using an older version of Maven (1.1).  I'm having a problem whereby an
old Xalan class is somehow getting loaded into my classpath and I wish to
use the classes available through Xalan 2.7.1.  I have tried placing this
dependency 

        <dependencies>
                <dependency>
                        <groupId>xalan</groupId>
                        <artifactId>xalan</artifactId>
                        <version>2.7.0</version>
                </dependency>


at the top of my dependency list, however, I'm still getting the same
"NoSuchMethodError" (due to an older class version).  Is there anywhere I
can place my xalan jar such that I'm guaranteed its classes will get loaded
first into the classpath?

Thanks, - Dave

-- 
View this message in context: http://old.nabble.com/Any-way-to-place-a-JAR-so-that-I-am-guaranteed-its-classes-get-loaded-first--tp27411560p27411560.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Any way to place a JAR so that I am guaranteed its classes get loaded first?

Posted by laredotornado <la...@gmail.com>.
Actually I found it.  Placing the updated JAR there solved the problem.  Much
thanks once again!

- Dave

ps - I am anxious for our company to move to the newest version of Maven. 
Sadly this issue is out of my control right now. 



laredotornado wrote:
> 
> Thanks for this suggestion.  How do I locate the JRE's endorsed folder?
> 
> 
> Wayne Fay wrote:
>> 
>>> "NoSuchMethodError" (due to an older class version).  Is there anywhere
>>> I
>>> can place my xalan jar such that I'm guaranteed its classes will get
>>> loaded
>>> first into the classpath?
>> 
>> Maybe you could put it in the endorsed folder of your JRE. Other than
>> that, I'm unsure of any way to "guarantee" it, especially not with M1.
>> 
>> PS- When are you migrating to M2?
>> 
>> Wayne
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Any-way-to-place-a-JAR-so-that-I-am-guaranteed-its-classes-get-loaded-first--tp27411560p27412782.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Any way to place a JAR so that I am guaranteed its classes get loaded first?

Posted by laredotornado <la...@gmail.com>.
Thanks for this suggestion.  How do I locate the JRE's endorsed folder?


Wayne Fay wrote:
> 
>> "NoSuchMethodError" (due to an older class version).  Is there anywhere I
>> can place my xalan jar such that I'm guaranteed its classes will get
>> loaded
>> first into the classpath?
> 
> Maybe you could put it in the endorsed folder of your JRE. Other than
> that, I'm unsure of any way to "guarantee" it, especially not with M1.
> 
> PS- When are you migrating to M2?
> 
> Wayne
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Any-way-to-place-a-JAR-so-that-I-am-guaranteed-its-classes-get-loaded-first--tp27411560p27412370.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Any way to place a JAR so that I am guaranteed its classes get loaded first?

Posted by Wayne Fay <wa...@gmail.com>.
> "NoSuchMethodError" (due to an older class version).  Is there anywhere I
> can place my xalan jar such that I'm guaranteed its classes will get loaded
> first into the classpath?

Maybe you could put it in the endorsed folder of your JRE. Other than
that, I'm unsure of any way to "guarantee" it, especially not with M1.

PS- When are you migrating to M2?

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org