You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Niall Pemberton <ni...@gmail.com> on 2007/07/02 17:10:11 UTC

[s2] OGNL Version 2.7

I seem to recall a couple of threads relating to S2 performance and
OGNL - so looks like it would be good for S2 to upgrade its
dependency. I guess this is probably already on the radar, but in case
its not:

http://www.theserverside.com/news/thread.tss?thread_id=45954

Niall

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [s2] OGNL Version 2.7

Posted by mraible <ma...@raibledesigns.com>.
Adding javassist-3.4.ga.jar to my claspath fixes this issue.

Thanks,

Matt


mraible wrote:
> 
> If I replace ognl-2.6.11.jar with ognl-2.7.jar, I get the following error
> when Struts starts up:
> 
> Exception starting filter struts2
> java.lang.NoClassDefFoundError: javassist/ClassPath
>         at ognl.OgnlRuntime.<clinit>(OgnlRuntime.java:140)
>         at
> com.opensymphony.xwork2.util.OgnlValueStack.reset(OgnlValueStack.java:42)
>         at
> com.opensymphony.xwork2.util.OgnlValueStack.<clinit>(OgnlValueStack.java:37)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:288)
>         at
> com.opensymphony.xwork2.inject.ContainerImpl$2.call(ContainerImpl.java:117)
>         at
> com.opensymphony.xwork2.inject.ContainerImpl$2.call(ContainerImpl.java:115)
>         at
> com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:542)
>         at
> com.opensymphony.xwork2.inject.ContainerImpl.injectStatics(ContainerImpl.java:114)
>         at
> com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:494)
>         at
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:145)
>         at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
>         at
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
>         at
> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
>         at
> org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
> 
> 
> DNewfield wrote:
>> 
>> mraible wrote:
>>> There doesn't seem to be much activity on this as of late. Is upgrading
>>> to
>>> OGNL 2.7 on the roadmap? I tried to upgrade 2.0.9 to use 2.7 and it
>>> didn't
>>> work.
>> 
>> What didn't work?  I dropped this in as a replacement a while back, and 
>> have not found any issues...
>> 
>> -Dale
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> For additional commands, e-mail: dev-help@struts.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-s2--OGNL-Version-2.7-tf4012809.html#a12282109
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [s2] OGNL Version 2.7

Posted by Dale Newfield <Da...@Newfield.org>.
mraible wrote:
> If I replace ognl-2.6.11.jar with ognl-2.7.jar, I get the following error
> when Struts starts up:
> 
> Exception starting filter struts2
> java.lang.NoClassDefFoundError: javassist/ClassPath

Ah.  Yes--there was a wrinkle:  I needed to add javassist-3.4.jar as 
well.  I use ant, not maven, so I cannot give you the pom.xml snippet to 
add this dependency, but I can tell you that a web search just now found 
it available at 
http://repository.jboss.org/maven2/javassist/javassist/3.4.GA/ .

While ognl.org *still* has no mention of this (or even 2.6.11, 
actually), a blog entry discussing the ognl release does mention this 
new dependency:
http://blog.opencomponentry.com/2007/01/14/new-ognl-release-on-the-horizon-its-faster/

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [s2] OGNL Version 2.7

Posted by mraible <ma...@raibledesigns.com>.
If I replace ognl-2.6.11.jar with ognl-2.7.jar, I get the following error
when Struts starts up:

Exception starting filter struts2
java.lang.NoClassDefFoundError: javassist/ClassPath
        at ognl.OgnlRuntime.<clinit>(OgnlRuntime.java:140)
        at
com.opensymphony.xwork2.util.OgnlValueStack.reset(OgnlValueStack.java:42)
        at
com.opensymphony.xwork2.util.OgnlValueStack.<clinit>(OgnlValueStack.java:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:288)
        at
com.opensymphony.xwork2.inject.ContainerImpl$2.call(ContainerImpl.java:117)
        at
com.opensymphony.xwork2.inject.ContainerImpl$2.call(ContainerImpl.java:115)
        at
com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:542)
        at
com.opensymphony.xwork2.inject.ContainerImpl.injectStatics(ContainerImpl.java:114)
        at
com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:494)
        at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:145)
        at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
        at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
        at
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
        at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)


DNewfield wrote:
> 
> mraible wrote:
>> There doesn't seem to be much activity on this as of late. Is upgrading
>> to
>> OGNL 2.7 on the roadmap? I tried to upgrade 2.0.9 to use 2.7 and it
>> didn't
>> work.
> 
> What didn't work?  I dropped this in as a replacement a while back, and 
> have not found any issues...
> 
> -Dale
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-s2--OGNL-Version-2.7-tf4012809.html#a12281828
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [s2] OGNL Version 2.7

Posted by Dale Newfield <Da...@Newfield.org>.
mraible wrote:
> There doesn't seem to be much activity on this as of late. Is upgrading to
> OGNL 2.7 on the roadmap? I tried to upgrade 2.0.9 to use 2.7 and it didn't
> work.

What didn't work?  I dropped this in as a replacement a while back, and 
have not found any issues...

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [s2] OGNL Version 2.7

Posted by mraible <ma...@raibledesigns.com>.
There doesn't seem to be much activity on this as of late. Is upgrading to
OGNL 2.7 on the roadmap? I tried to upgrade 2.0.9 to use 2.7 and it didn't
work.

Matt


Martin Gilday wrote:
> 
> It is in the central repo.
> http://repo1.maven.org/maven2/ognl/ognl/2.7/
> 
> 
> ----- Original message -----
> From: "Alexandru Popescu &#9728;" <th...@gmail.com>
> To: "Struts Developers List" <de...@struts.apache.org>
> Date: Mon, 2 Jul 2007 20:23:59 +0300
> Subject: Re: [s2] OGNL Version 2.7
> 
> On 7/2/07, Musachy Barroso <mu...@gmail.com> wrote:
>> I was asking about that on IRC the other day, where is the download for
>> 2.7?
>> I can't find it on the OGNL website. (maven repo?)
>>
> 
> I heard it is available in the maven repo, but under a different name:
> ognl/ognl (unfortunately I don't have the slightest idea on which
> repository).
> 
> On the WW forums somebody have already tried it with its app and it
> seemed to work well, but I don't have further details.
> 
> ./alex
> --
> .w( the_mindstorm )p.
> 
>> musachy
>>
>> On 7/2/07, Niall Pemberton <ni...@gmail.com> wrote:
>> >
>> > I seem to recall a couple of threads relating to S2 performance and
>> > OGNL - so looks like it would be good for S2 to upgrade its
>> > dependency. I guess this is probably already on the radar, but in case
>> > its not:
>> >
>> > http://www.theserverside.com/news/thread.tss?thread_id=45954
>> >
>> > Niall
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> > For additional commands, e-mail: dev-help@struts.apache.org
>> >
>> >
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-s2--OGNL-Version-2.7-tf4012809.html#a12280092
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [s2] OGNL Version 2.7

Posted by Martin Gilday <ma...@imap.cc>.
It is in the central repo.
http://repo1.maven.org/maven2/ognl/ognl/2.7/


----- Original message -----
From: "Alexandru Popescu &#9728;" <th...@gmail.com>
To: "Struts Developers List" <de...@struts.apache.org>
Date: Mon, 2 Jul 2007 20:23:59 +0300
Subject: Re: [s2] OGNL Version 2.7

On 7/2/07, Musachy Barroso <mu...@gmail.com> wrote:
> I was asking about that on IRC the other day, where is the download for 2.7?
> I can't find it on the OGNL website. (maven repo?)
>

I heard it is available in the maven repo, but under a different name:
ognl/ognl (unfortunately I don't have the slightest idea on which
repository).

On the WW forums somebody have already tried it with its app and it
seemed to work well, but I don't have further details.

./alex
--
.w( the_mindstorm )p.

> musachy
>
> On 7/2/07, Niall Pemberton <ni...@gmail.com> wrote:
> >
> > I seem to recall a couple of threads relating to S2 performance and
> > OGNL - so looks like it would be good for S2 to upgrade its
> > dependency. I guess this is probably already on the radar, but in case
> > its not:
> >
> > http://www.theserverside.com/news/thread.tss?thread_id=45954
> >
> > Niall
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > For additional commands, e-mail: dev-help@struts.apache.org
> >
> >
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [s2] OGNL Version 2.7

Posted by Alexandru Popescu ☀ <th...@gmail.com>.
On 7/2/07, Musachy Barroso <mu...@gmail.com> wrote:
> I was asking about that on IRC the other day, where is the download for 2.7?
> I can't find it on the OGNL website. (maven repo?)
>

I heard it is available in the maven repo, but under a different name:
ognl/ognl (unfortunately I don't have the slightest idea on which
repository).

On the WW forums somebody have already tried it with its app and it
seemed to work well, but I don't have further details.

./alex
--
.w( the_mindstorm )p.

> musachy
>
> On 7/2/07, Niall Pemberton <ni...@gmail.com> wrote:
> >
> > I seem to recall a couple of threads relating to S2 performance and
> > OGNL - so looks like it would be good for S2 to upgrade its
> > dependency. I guess this is probably already on the radar, but in case
> > its not:
> >
> > http://www.theserverside.com/news/thread.tss?thread_id=45954
> >
> > Niall
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > For additional commands, e-mail: dev-help@struts.apache.org
> >
> >
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [s2] OGNL Version 2.7

Posted by Musachy Barroso <mu...@gmail.com>.
I was asking about that on IRC the other day, where is the download for 2.7?
I can't find it on the OGNL website. (maven repo?)

musachy

On 7/2/07, Niall Pemberton <ni...@gmail.com> wrote:
>
> I seem to recall a couple of threads relating to S2 performance and
> OGNL - so looks like it would be good for S2 to upgrade its
> dependency. I guess this is probably already on the radar, but in case
> its not:
>
> http://www.theserverside.com/news/thread.tss?thread_id=45954
>
> Niall
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Re: [s2] OGNL Version 2.7

Posted by Martin Gilday <ma...@imap.cc>.
I have tried a straight replacement in WebWork 2.2.5 and everything
works fine.  Some changes need to be made to XWork for the speed
enchancements to work.  I have posted about it on the Opensymphont
forums. 
http://forums.opensymphony.com/thread.jspa?threadID=94470&tstart=0 
Hopefully the same should be possible with Struts2.


----- Original message -----
From: "Niall Pemberton" <ni...@gmail.com>
To: "Struts Developers List" <de...@struts.apache.org>
Date: Mon, 2 Jul 2007 16:10:11 +0100
Subject: [s2] OGNL Version 2.7

I seem to recall a couple of threads relating to S2 performance and
OGNL - so looks like it would be good for S2 to upgrade its
dependency. I guess this is probably already on the radar, but in case
its not:

http://www.theserverside.com/news/thread.tss?thread_id=45954

Niall

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [s2] OGNL Version 2.7

Posted by mraible <ma...@raibledesigns.com>.
I was trying it against 2.0.9. If I was using Maven and I added the new OGNL
dependency to my pom.xml, there likely wouldn't have been any issues.
However, since I'm using Ant (w/o dependency resolution), I had to replace
the single OGNL JAR with both ognl-2.7.jar and javassist-3.4.ga.jar.

Matt


James Holmes-2 wrote:
> 
> What version of Struts 2 are you trying this against?
> 
> 
> On Wed Aug 22 15:58 , mraible <ma...@raibledesigns.com> sent:
> 
>>
>>If I replace ognl-2.6.11.jar with ognl-2.7.jar, I get the following error
>>when Struts starts up:
>>
>>Exception starting filter struts2
>>java.lang.NoClassDefFoundError: javassist/ClassPath
>>        at ognl.OgnlRuntime.(OgnlRuntime.java:140)
>>        at
>>com.opensymphony.xwork2.util.OgnlValueStack.reset(OgnlValueStack.java:42)
>>        at
>>com.opensymphony.xwork2.util.OgnlValueStack.(OgnlValueStack.java:37)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at
>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:585)
>>        at
>>com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:288)
>>        at
>>com.opensymphony.xwork2.inject.ContainerImpl$2.call(ContainerImpl.java:117)
>>        at
>>com.opensymphony.xwork2.inject.ContainerImpl$2.call(ContainerImpl.java:115)
>>        at
>>com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:542)
>>        at
>>com.opensymphony.xwork2.inject.ContainerImpl.injectStatics(ContainerImpl.java:114)
>>        at
>>com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:494)
>>        at
>>com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:145)
>>        at
>>com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
>>        at
>>org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
>>        at
>>org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
>>        at
>>org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
>>
>>
>>DNewfield wrote:
>>> 
>>> mraible wrote:
>>>> There doesn't seem to be much activity on this as of late. Is upgrading
>>>> to
>>>> OGNL 2.7 on the roadmap? I tried to upgrade 2.0.9 to use 2.7 and it
>>>> didn't
>>>> work.
>>> 
>>> What didn't work?  I dropped this in as a replacement a while back, and 
>>> have not found any issues...
>>> 
>>> -Dale
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: dev-help@struts.apache.org
>>> 
>>> 
>>> 
>>
>>-- 
>>View this message in context:
> http://www.nabble.com/-s2--OGNL-Version-2.7-tf4012809.html#a12281828
>>Sent from the Struts - Dev mailing list archive at Nabble.com.
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>>For additional commands, e-mail: dev-help@struts.apache.org
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-s2--OGNL-Version-2.7-tf4012809.html#a12282110
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org