How should Xalan-J extensions be referenced?

View: New views
5 Messages — Rating Filter:   Alert me  

How should Xalan-J extensions be referenced?

by mountainbiker-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I would like to add some Xalan-J Java extensions.  What would be the
best way to include these JARs and/or classes?  Should it be included
in the startup.sh or is there a better/preferred way?


--

I'm using an evaluation license of nemo since 231 days.
You should really try it!
http://www.malcom-mac.com/nemo



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: How should Xalan-J extensions be referenced?

by Wolfgang Meier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I would like to add some Xalan-J Java extensions.  What would be the
> best way to include these JARs and/or classes?  Should it be included
> in the startup.sh or is there a better/preferred way?

Just drop your jars into lib/user and they will be made available by
eXist's own classloader.

Wolfgang

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Danke: How should Xalan-J extensions be referenced?

by mountainbiker-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Danke Wolfgang


--

I'm using an evaluation license of nemo since 231 days.
You should really try it!
http://www.malcom-mac.com/nemo



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: How should Xalan-J extensions be referenced?

by Dannes Wessels :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

On Thu, May 8, 2008 at 12:03 AM, Wolfgang <wolfgang@...> wrote:
> I would like to add some Xalan-J Java extensions.  What would be the
> best way to include these JARs and/or classes?  Should it be included
> in the startup.sh or is there a better/preferred way?

Just drop your jars into lib/user and they will be made available by
eXist's own classloader.

Hmmmmm, not sure, *if* it does not work, please try lib/endorsed ; The JVM classloaders are strange thinghies, the endorsed classes are special in a way (made available to the JVM in an early stage)

regards

Dannes

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: How should Xalan-J extensions be referenced?

by mountainbiker-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Dannes,

I think I started there, but the lib/user work as needed:  I put the
JAR in there, restarted eXist, and Xalan found it without issue.
lib/endorsed would be my first "try and see" location for the Xalan
script language extensions (e.g., Rhino).

These helped me see things too:

Java class path:

<xsl:value-of
select="java:java.lang.System.getProperty('java.class.path')" />


Java ext directory:

<xsl:value-of
select="java:java.lang.System.getProperty('java.ext.dirs')" />


eXist rocks!  I must buy it a beer in Prague sometime :)

In article
<9ef91c360805072324w2a45dfc0r7351eb3298a42567@...>
"DannesWessels" <dizzzz@...> wrote:
>  --===============1373589260==
>  Content-Type: multipart/alternative;
>   boundary="----=_Part_14126_7856475.1210227868556"

>  ------=_Part_14126_7856475.1210227868556
>  Content-Type: text/plain;
> charset=ISO-8859-1Content-Transfer-Encoding: 7bit
> Content-Disposition: inline

>  Hi.

>  On Thu, May 8, 2008 at 12:03 AM, Wolfgang <wolfgang@...>
>  wrote:
>>   > I would like to add some Xalan-J Java extensions.  What would be
>> the > best way to include these JARs and/or classes?  Should it be
>> included > in the startup.sh or is there a better/preferred way?

>>   Just drop your jars into lib/user and they will be made available
>> by eXist's own classloader.

>  Hmmmmm, not sure, *if* it does not work, please try lib/endorsed ;
> The JVM classloaders are strange thinghies, the endorsed classes are
> special in away (made available to the JVM in an early stage)

>  regards

>  Dannes

>  ------=_Part_14126_7856475.1210227868556
>  Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
>  Content-Disposition: inline

>  Hi.<br><br><div class="gmail_quote">On Thu, May 8, 2008 at 12:03 AM,
> Wolfgang <wolfgang@...> wrote:<br><blockquote
> class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204);
> margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div
> class="Ih2E3d">> I would like to add some Xalan-J Java extensions.
>  What would be the<br> > best way to include these JARs
> and/or classes?  Should it be included<br>> in the startup.sh
> or is there a better/preferred way?<br>
>  <br>
>  </div>Just drop your jars into lib/user and they will be made
> available by<br> eXist's own
> classloader.</blockquote><div><br>Hmmmmm, not sure, *if* it does not
> work, please try lib/endorsed ; The JVM classloaders are strange
> thinghies, the endorsed classes are special in a way (made available
> to the JVM in an early
>  stage)<br><br>regards<br><br>Dannes<br></div></div>

>  ------=_Part_14126_7856475.1210227868556--

>  --===============1373589260==
>  Content-Type: text/plain; charset="us-ascii"
>  MIME-Version: 1.0
>  Content-Transfer-Encoding: 7bit
>  Content-Disposition: inline


> ----------------------------------------------------------------------
>  --- This SF.net email is sponsored by the 2008 JavaOne(SM)
> Conference Don't miss this year's exciting event. There's still time
> to save $100. Use priority code J8TL2D2.

> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com
>  /javaone--===============1373589260==
>  Content-Type: text/plain; charset="us-ascii"
>  MIME-Version: 1.0
>  Content-Transfer-Encoding: 7bit
>  Content-Disposition: inline

>  _______________________________________________
>  Exist-open mailing list
>  Exist-open@...
>  https://lists.sourceforge.net/lists/listinfo/exist-open

>  --===============1373589260==--




--

I'm using an evaluation license of nemo since 231 days.
You should really try it!
http://www.malcom-mac.com/nemo



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open