You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nicolas Duroc <ni...@free.fr> on 2006/07/28 16:47:22 UTC
Jar conflicts
Hi,
In my webapps cocoon I use binding forms for editing XML files and XSL
Transformations. In one of my XSL stylesheet, I use javascript (into
<xalan:component><xalan:script
lang="javascript">...</xalan:script></xalan:component>), but in order to use
this XSL, cocoon needs js.jar. So, I put it in the WEB-INF/lib directory, and
the XSL transformations work fine !... but the binding forms (which worked
fine too before I use js.jar) don't work anymore. I get an exception :
"java.lang.NoSuchMethodError: org.mozilla.javascript.Context.setDebugger
(Lorg/mozilla/javascript/debug/Debugger;Ljava/lang/Object;)V"
I tried many of available js.jar, but without "real" success. For few of them,
the binding forms work again but, not the XSL Transformation... I tried too
differents xalan.jar, but result is the same. I can't make work XSL
Transformations and binding forms together...
If any one has an idea, I'll really appreciate.
Thanks in advance,
Regards,
Nicolas Duroc
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Jar conflicts
Posted by Hugues Leblanc <hl...@lequipe.presse.fr>.
Salut
-----Original Message-----
From: Nicolas Duroc <ni...@free.fr>
To: users@cocoon.apache.org
Date: Fri, 28 Jul 2006 14:47:22 +0000 (UTC)
Subject: Jar conflicts
> Hi,
>
> In my webapps cocoon I use binding forms for editing XML files and XSL
> Transformations. In one of my XSL stylesheet, I use javascript (into
> <xalan:component><xalan:script
> lang="javascript">...</xalan:script></xalan:component>), but in order
> to use
> this XSL, cocoon needs js.jar. So, I put it in the WEB-INF/lib
> directory, and
> the XSL transformations work fine !... but the binding forms (which
> worked
> fine too before I use js.jar) don't work anymore. I get an exception :
> "java.lang.NoSuchMethodError:
> org.mozilla.javascript.Context.setDebugger
> (Lorg/mozilla/javascript/debug/Debugger;Ljava/lang/Object;)V"
> I tried many of available js.jar, but without "real" success. For few
> of them,
> the binding forms work again but, not the XSL Transformation... I tried
> too
> differents xalan.jar, but result is the same. I can't make work XSL
> Transformations and binding forms together...
>
> If any one has an idea, I'll really appreciate.
>
> Thanks in advance,
>
> Regards,
>
> Nicolas Duroc
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Jar conflicts
Posted by Antonio Gallardo <ag...@agssa.net>.
Hi Nicolas,
Newer versions of rhino js.jar includes continuations. It is possible to
use this versions in cocoon 2.1. For cocoon 2.2 we dropped the forked
rhino version and use the official rhino jar again. Maybe a solution is
try to use the newer version in cocoon and test if it is supported for
xalan too.
Best Regards,
Antonio Gallardo.
Nicolas Duroc escribió:
> Hi,
>
> In cocoon, the rhino*.jar is the same of js.jar but include continuations
> management. I tried without the js.jar, but an exception appears, about a
> NullPointerException, exception I don't get with the js.jar. Some classes
> must be different and interfear between them. I think the solution should be
> to try each class, but there is so many, and it would take a long time,
> that's why I asked on the mailing list, if anyone had got the same
> problem...
>
> Regards,
>
> Nicolas Duroc
>
> ----- Original Message -----
> From: "Antonio Gallardo" <ag...@agssa.net>
> To: <us...@cocoon.apache.org>
> Sent: Sunday, July 30, 2006 4:41 AM
> Subject: Re: Jar conflicts
>
>
>
>> Hi Nicolas,
>>
>> Maybe I am telling you the obvious, but anyway: js.jar is supposed to be
>> the same as rhino*jar. The rhino*.jar is already included in cocoon,
>> hence you should try running <xalan:script> without including the js.jar.
>>
>> Best Regards,
>>
>> Antonio Gallardo.
>>
>> Nicolas Duroc escribió:
>>
>>> Hi,
>>>
>>> In my webapps cocoon I use binding forms for editing XML files and XSL
>>> Transformations. In one of my XSL stylesheet, I use javascript (into
>>> <xalan:component><xalan:script
>>> lang="javascript">...</xalan:script></xalan:component>), but in order to
>>>
> use
>
>>> this XSL, cocoon needs js.jar. So, I put it in the WEB-INF/lib
>>>
> directory, and
>
>>> the XSL transformations work fine !... but the binding forms (which
>>>
> worked
>
>>> fine too before I use js.jar) don't work anymore. I get an exception :
>>> "java.lang.NoSuchMethodError: org.mozilla.javascript.Context.setDebugger
>>> (Lorg/mozilla/javascript/debug/Debugger;Ljava/lang/Object;)V"
>>> I tried many of available js.jar, but without "real" success. For few of
>>>
> them,
>
>>> the binding forms work again but, not the XSL Transformation... I tried
>>>
> too
>
>>> differents xalan.jar, but result is the same. I can't make work XSL
>>> Transformations and binding forms together...
>>>
>>> If any one has an idea, I'll really appreciate.
>>>
>>> Thanks in advance,
>>>
>>> Regards,
>>>
>>> Nicolas Duroc
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Jar conflicts
Posted by Nicolas Duroc <ni...@gmail.com>.
Hi,
In cocoon, the rhino*.jar is the same of js.jar but include continuations
management. I tried without the js.jar, but an exception appears, about a
NullPointerException, exception I don't get with the js.jar. Some classes
must be different and interfear between them. I think the solution should be
to try each class, but there is so many, and it would take a long time,
that's why I asked on the mailing list, if anyone had got the same
problem...
Regards,
Nicolas Duroc
----- Original Message -----
From: "Antonio Gallardo" <ag...@agssa.net>
To: <us...@cocoon.apache.org>
Sent: Sunday, July 30, 2006 4:41 AM
Subject: Re: Jar conflicts
> Hi Nicolas,
>
> Maybe I am telling you the obvious, but anyway: js.jar is supposed to be
> the same as rhino*jar. The rhino*.jar is already included in cocoon,
> hence you should try running <xalan:script> without including the js.jar.
>
> Best Regards,
>
> Antonio Gallardo.
>
> Nicolas Duroc escribió:
> > Hi,
> >
> > In my webapps cocoon I use binding forms for editing XML files and XSL
> > Transformations. In one of my XSL stylesheet, I use javascript (into
> > <xalan:component><xalan:script
> > lang="javascript">...</xalan:script></xalan:component>), but in order to
use
> > this XSL, cocoon needs js.jar. So, I put it in the WEB-INF/lib
directory, and
> > the XSL transformations work fine !... but the binding forms (which
worked
> > fine too before I use js.jar) don't work anymore. I get an exception :
> > "java.lang.NoSuchMethodError: org.mozilla.javascript.Context.setDebugger
> > (Lorg/mozilla/javascript/debug/Debugger;Ljava/lang/Object;)V"
> > I tried many of available js.jar, but without "real" success. For few of
them,
> > the binding forms work again but, not the XSL Transformation... I tried
too
> > differents xalan.jar, but result is the same. I can't make work XSL
> > Transformations and binding forms together...
> >
> > If any one has an idea, I'll really appreciate.
> >
> > Thanks in advance,
> >
> > Regards,
> >
> > Nicolas Duroc
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Jar conflicts
Posted by Antonio Gallardo <ag...@agssa.net>.
Hi Nicolas,
Maybe I am telling you the obvious, but anyway: js.jar is supposed to be
the same as rhino*jar. The rhino*.jar is already included in cocoon,
hence you should try running <xalan:script> without including the js.jar.
Best Regards,
Antonio Gallardo.
Nicolas Duroc escribió:
> Hi,
>
> In my webapps cocoon I use binding forms for editing XML files and XSL
> Transformations. In one of my XSL stylesheet, I use javascript (into
> <xalan:component><xalan:script
> lang="javascript">...</xalan:script></xalan:component>), but in order to use
> this XSL, cocoon needs js.jar. So, I put it in the WEB-INF/lib directory, and
> the XSL transformations work fine !... but the binding forms (which worked
> fine too before I use js.jar) don't work anymore. I get an exception :
> "java.lang.NoSuchMethodError: org.mozilla.javascript.Context.setDebugger
> (Lorg/mozilla/javascript/debug/Debugger;Ljava/lang/Object;)V"
> I tried many of available js.jar, but without "real" success. For few of them,
> the binding forms work again but, not the XSL Transformation... I tried too
> differents xalan.jar, but result is the same. I can't make work XSL
> Transformations and binding forms together...
>
> If any one has an idea, I'll really appreciate.
>
> Thanks in advance,
>
> Regards,
>
> Nicolas Duroc
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org