You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Matt Raible <mr...@gmail.com> on 2006/10/03 01:51:43 UTC

NoClassDefFoundError: ognl/OgnlException

I'm getting the following error (again) after trying to upgrade to the
latest Struts 2.0.0 release.  I removed ~/.m2/repository/org/apache/struts
and ~/.m2/repository/opensympony/xwork (which worked last time) to no avail.
Any ideas?

Thanks,

Matt

Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 0.032 sec
<<< FAILURE!
testCancel(org.appfuse.webapp.action.UserActionTest)  Time elapsed:
0.001sec  <<< ERROR!
java.lang.NoClassDefFoundError: ognl/OgnlException
    at com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(
OgnlValueStackFactory.java:14)
    at
com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initialValue(
ActionContext.java:330)
    at java.lang.ThreadLocal$ThreadLocalMap.getAfterMiss(ThreadLocal.java
:374)
    at java.lang.ThreadLocal$ThreadLocalMap.get(ThreadLocal.java:347)
    at java.lang.ThreadLocal$ThreadLocalMap.access$000(ThreadLocal.java:225)
    at java.lang.ThreadLocal.get(ThreadLocal.java:127)
    at com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java
:152)
    at org.appfuse.webapp.action.BaseActionTestCase.setUp(
BaseActionTestCase.java:40)
    at org.appfuse.webapp.action.UserActionTest.setUp(UserActionTest.java
:13)

Re: NoClassDefFoundError: ognl/OgnlException

Posted by Don Brown <mr...@twdata.org>.
I don't know exactly what the Struts policy is on that, but I will do 
everything possible to make it easy to use, and it will be available in 
_a_ repository at least.

Don

Matt Raible wrote:
> Do you plan on promoting 2.0.1 as an "official" release on ibiblio?
> I'm assuming I can build/install to my own repo in the meantime.
>
> Matt
>
> On 10/3/06, Don Brown <mr...@twdata.org> wrote:
>> Yeah, this error is what I was afraid might happen if you use the latest
>> xwork code.  It looks like you are using the later xwork jar which
>> includes the value stack changes.
>>
>> Don
>>
>> Matt Raible wrote:
>> > Looks like I spoke too soon. My out-of-container tests pass now, but
>> > when I try to run the app in-container, I get the following error:
>> >
>> > java.lang.NoSuchMethodError:
>> > 
>> com.opensymphony.xwork2.ActionContext.getValueStack()Lcom/opensymphony/xwork2/util/OgnlValueStack; 
>>
>> >
>> >     at
>> > 
>> org.apache.struts2.dispatcher.StrutsRequestWrapper.getAttribute(StrutsRequestWrapper.java:74) 
>>
>> >
>> >     at
>> > 
>> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:113) 
>>
>> >
>> >
>> > I'm using the xwork-2.0-SNAPSHOT.jar (260 KB) from the Struts
>> > distribution.
>> >
>> > If I build/install xwork2 from SVN, I get the same error.
>> >
>> > Matt
>> >
>> > On 10/2/06, Matt Raible <mr...@gmail.com> wrote:
>> >>
>> >>
>> >> On 10/2/06, Don Brown <mr...@twdata.org> wrote:
>> >> >  Hmm...why would you be missing ognl?  There could be a problem
>> >> because
>> >> > we tag Struts 2.0.0, but didn't tag XWork 2.0, and there were 
>> certain
>> >> > changes lately in XWork that wouldn't work with Struts 2.0.0.
>> >> >
>> >> > We plan to roll Struts  2.0.1 next weekend.  In the meantime, try
>> >> running
>> >> > with the xwork that was shipped in the Struts 2.0.0 release by
>> >> manually
>> >> > copying the xwork jar into your local repository.
>> >>
>> >>
>> >> It looks like it's grabbing the XWork snapshot from opensymphony.
>> >>
>> >> Downloading:
>> >> 
>> http://maven.opensymphony.com/opensymphony/jars/xwork-2.0-SNAPSHOT.jar
>> >>  266K downloaded
>> >>
>> >> I tried using the one from the Struts 2.0.0 distribution[1] instead,
>> >> but I still get the same error.
>> >>
>> >> If I copy pom.xml from xwork's subversion repo to
>> >> ~/.m2/repository/opensymphony/xwork/2.0-SNAPSHOT/xwork-
>> >> 2.0-SNAPSHOT.pom, it fixes the problem.  So the issue appears to be
>> >> that OpenSymphony's Maven Repo is missing a POM.  Or maybe Struts'
>> >> pom.xml is pointing to the wrong repo.
>> >>
>> >> Matt
>> >>
>> >> [1]  
>> http://people.apache.org/builds/struts/2.0.0/struts-2.0.0-lib.zip
>> >>
>> >>
>> >>
>> >> > Don
>> >> >
>> >> >  Matt Raible wrote:
>> >> > > I'm getting the following error (again) after trying to upgrade
>> >> to the
>> >> > > latest Struts 2.0.0 release.  I removed
>> >> > > ~/.m2/repository/org/apache/struts
>> >> > > and ~/.m2/repository/opensympony/xwork (which worked last time)
>> >> to no
>> >> > > avail.
>> >> > > Any ideas?
>> >> > >
>> >> > > Thanks,
>> >> > >
>> >> > > Matt
>> >> > >
>> >> > > Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed:
>> >> 0.032 sec
>> >> > > <<< FAILURE!
>> >> > > testCancel(org.appfuse.webapp.action.UserActionTest )  Time 
>> elapsed:
>> >> > > 0.001sec  <<< ERROR!
>> >> > > java.lang.NoClassDefFoundError: ognl/OgnlException
>> >> > >    at
>> >> > > 
>> com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(
>> >> > > OgnlValueStackFactory.java :14)
>> >> > >    at
>> >> > >
>> >> 
>> com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initialValue( 
>>
>> >>
>> >> > >
>> >> > > ActionContext.java:330)
>> >> > >    at
>> >> java.lang.ThreadLocal$ThreadLocalMap.getAfterMiss(ThreadLocal.java
>> >> > > :374)
>> >> > >    at 
>> java.lang.ThreadLocal$ThreadLocalMap.get(ThreadLocal.java:347)
>> >> > >    at
>> >> > >
>> >> java.lang.ThreadLocal$ThreadLocalMap.access$000(ThreadLocal.java:225)
>> >> > >    at java.lang.ThreadLocal.get (ThreadLocal.java:127)
>> >> > >    at
>> >> com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java
>> >> > > :152)
>> >> > >    at org.appfuse.webapp.action.BaseActionTestCase.setUp(
>> >> > > BaseActionTestCase.java:40)
>> >> >  >    at
>> >> org.appfuse.webapp.action.UserActionTest.setUp(UserActionTest.java
>> >> > > :13)
>> >> > >
>> >> >
>> >> >
>> >> > 
>> ---------------------------------------------------------------------
>> >> > 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
>> >
>> >
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>


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


Re: NoClassDefFoundError: ognl/OgnlException

Posted by Matt Raible <mr...@gmail.com>.
Do you plan on promoting 2.0.1 as an "official" release on ibiblio?
I'm assuming I can build/install to my own repo in the meantime.

Matt

On 10/3/06, Don Brown <mr...@twdata.org> wrote:
> Yeah, this error is what I was afraid might happen if you use the latest
> xwork code.  It looks like you are using the later xwork jar which
> includes the value stack changes.
>
> Don
>
> Matt Raible wrote:
> > Looks like I spoke too soon. My out-of-container tests pass now, but
> > when I try to run the app in-container, I get the following error:
> >
> > java.lang.NoSuchMethodError:
> > com.opensymphony.xwork2.ActionContext.getValueStack()Lcom/opensymphony/xwork2/util/OgnlValueStack;
> >
> >     at
> > org.apache.struts2.dispatcher.StrutsRequestWrapper.getAttribute(StrutsRequestWrapper.java:74)
> >
> >     at
> > org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:113)
> >
> >
> > I'm using the xwork-2.0-SNAPSHOT.jar (260 KB) from the Struts
> > distribution.
> >
> > If I build/install xwork2 from SVN, I get the same error.
> >
> > Matt
> >
> > On 10/2/06, Matt Raible <mr...@gmail.com> wrote:
> >>
> >>
> >> On 10/2/06, Don Brown <mr...@twdata.org> wrote:
> >> >  Hmm...why would you be missing ognl?  There could be a problem
> >> because
> >> > we tag Struts 2.0.0, but didn't tag XWork 2.0, and there were certain
> >> > changes lately in XWork that wouldn't work with Struts 2.0.0.
> >> >
> >> > We plan to roll Struts  2.0.1 next weekend.  In the meantime, try
> >> running
> >> > with the xwork that was shipped in the Struts 2.0.0 release by
> >> manually
> >> > copying the xwork jar into your local repository.
> >>
> >>
> >> It looks like it's grabbing the XWork snapshot from opensymphony.
> >>
> >> Downloading:
> >> http://maven.opensymphony.com/opensymphony/jars/xwork-2.0-SNAPSHOT.jar
> >>  266K downloaded
> >>
> >> I tried using the one from the Struts 2.0.0 distribution[1] instead,
> >> but I still get the same error.
> >>
> >> If I copy pom.xml from xwork's subversion repo to
> >> ~/.m2/repository/opensymphony/xwork/2.0-SNAPSHOT/xwork-
> >> 2.0-SNAPSHOT.pom, it fixes the problem.  So the issue appears to be
> >> that OpenSymphony's Maven Repo is missing a POM.  Or maybe Struts'
> >> pom.xml is pointing to the wrong repo.
> >>
> >> Matt
> >>
> >> [1]  http://people.apache.org/builds/struts/2.0.0/struts-2.0.0-lib.zip
> >>
> >>
> >>
> >> > Don
> >> >
> >> >  Matt Raible wrote:
> >> > > I'm getting the following error (again) after trying to upgrade
> >> to the
> >> > > latest Struts 2.0.0 release.  I removed
> >> > > ~/.m2/repository/org/apache/struts
> >> > > and ~/.m2/repository/opensympony/xwork (which worked last time)
> >> to no
> >> > > avail.
> >> > > Any ideas?
> >> > >
> >> > > Thanks,
> >> > >
> >> > > Matt
> >> > >
> >> > > Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed:
> >> 0.032 sec
> >> > > <<< FAILURE!
> >> > > testCancel(org.appfuse.webapp.action.UserActionTest )  Time elapsed:
> >> > > 0.001sec  <<< ERROR!
> >> > > java.lang.NoClassDefFoundError: ognl/OgnlException
> >> > >    at
> >> > > com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(
> >> > > OgnlValueStackFactory.java :14)
> >> > >    at
> >> > >
> >> com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initialValue(
> >>
> >> > >
> >> > > ActionContext.java:330)
> >> > >    at
> >> java.lang.ThreadLocal$ThreadLocalMap.getAfterMiss(ThreadLocal.java
> >> > > :374)
> >> > >    at java.lang.ThreadLocal$ThreadLocalMap.get(ThreadLocal.java:347)
> >> > >    at
> >> > >
> >> java.lang.ThreadLocal$ThreadLocalMap.access$000(ThreadLocal.java:225)
> >> > >    at java.lang.ThreadLocal.get (ThreadLocal.java:127)
> >> > >    at
> >> com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java
> >> > > :152)
> >> > >    at org.appfuse.webapp.action.BaseActionTestCase.setUp(
> >> > > BaseActionTestCase.java:40)
> >> >  >    at
> >> org.appfuse.webapp.action.UserActionTest.setUp(UserActionTest.java
> >> > > :13)
> >> > >
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > 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
> >
> >
>
>
> ---------------------------------------------------------------------
> 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: NoClassDefFoundError: ognl/OgnlException

Posted by Don Brown <mr...@twdata.org>.
Yeah, this error is what I was afraid might happen if you use the latest 
xwork code.  It looks like you are using the later xwork jar which 
includes the value stack changes.

Don

Matt Raible wrote:
> Looks like I spoke too soon. My out-of-container tests pass now, but
> when I try to run the app in-container, I get the following error:
>
> java.lang.NoSuchMethodError:
> com.opensymphony.xwork2.ActionContext.getValueStack()Lcom/opensymphony/xwork2/util/OgnlValueStack; 
>
>     at 
> org.apache.struts2.dispatcher.StrutsRequestWrapper.getAttribute(StrutsRequestWrapper.java:74) 
>
>     at 
> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:113) 
>
>
> I'm using the xwork-2.0-SNAPSHOT.jar (260 KB) from the Struts 
> distribution.
>
> If I build/install xwork2 from SVN, I get the same error.
>
> Matt
>
> On 10/2/06, Matt Raible <mr...@gmail.com> wrote:
>>
>>
>> On 10/2/06, Don Brown <mr...@twdata.org> wrote:
>> >  Hmm...why would you be missing ognl?  There could be a problem 
>> because
>> > we tag Struts 2.0.0, but didn't tag XWork 2.0, and there were certain
>> > changes lately in XWork that wouldn't work with Struts 2.0.0.
>> >
>> > We plan to roll Struts  2.0.1 next weekend.  In the meantime, try 
>> running
>> > with the xwork that was shipped in the Struts 2.0.0 release by 
>> manually
>> > copying the xwork jar into your local repository.
>>
>>
>> It looks like it's grabbing the XWork snapshot from opensymphony.
>>
>> Downloading: 
>> http://maven.opensymphony.com/opensymphony/jars/xwork-2.0-SNAPSHOT.jar
>>  266K downloaded
>>
>> I tried using the one from the Struts 2.0.0 distribution[1] instead, 
>> but I still get the same error.
>>
>> If I copy pom.xml from xwork's subversion repo to 
>> ~/.m2/repository/opensymphony/xwork/2.0-SNAPSHOT/xwork- 
>> 2.0-SNAPSHOT.pom, it fixes the problem.  So the issue appears to be 
>> that OpenSymphony's Maven Repo is missing a POM.  Or maybe Struts' 
>> pom.xml is pointing to the wrong repo.
>>
>> Matt
>>
>> [1]  http://people.apache.org/builds/struts/2.0.0/struts-2.0.0-lib.zip
>>
>>
>>
>> > Don
>> >
>> >  Matt Raible wrote:
>> > > I'm getting the following error (again) after trying to upgrade 
>> to the
>> > > latest Struts 2.0.0 release.  I removed
>> > > ~/.m2/repository/org/apache/struts
>> > > and ~/.m2/repository/opensympony/xwork (which worked last time) 
>> to no
>> > > avail.
>> > > Any ideas?
>> > >
>> > > Thanks,
>> > >
>> > > Matt
>> > >
>> > > Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 
>> 0.032 sec
>> > > <<< FAILURE!
>> > > testCancel(org.appfuse.webapp.action.UserActionTest )  Time elapsed:
>> > > 0.001sec  <<< ERROR!
>> > > java.lang.NoClassDefFoundError: ognl/OgnlException
>> > >    at
>> > > com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(
>> > > OgnlValueStackFactory.java :14)
>> > >    at
>> > > 
>> com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initialValue( 
>>
>> > >
>> > > ActionContext.java:330)
>> > >    at 
>> java.lang.ThreadLocal$ThreadLocalMap.getAfterMiss(ThreadLocal.java
>> > > :374)
>> > >    at java.lang.ThreadLocal$ThreadLocalMap.get(ThreadLocal.java:347)
>> > >    at
>> > > 
>> java.lang.ThreadLocal$ThreadLocalMap.access$000(ThreadLocal.java:225)
>> > >    at java.lang.ThreadLocal.get (ThreadLocal.java:127)
>> > >    at 
>> com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java
>> > > :152)
>> > >    at org.appfuse.webapp.action.BaseActionTestCase.setUp(
>> > > BaseActionTestCase.java:40)
>> >  >    at 
>> org.appfuse.webapp.action.UserActionTest.setUp(UserActionTest.java
>> > > :13)
>> > >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > 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
>
>


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


Re: NoClassDefFoundError: ognl/OgnlException

Posted by Matt Raible <mr...@gmail.com>.
Looks like I spoke too soon. My out-of-container tests pass now, but
when I try to run the app in-container, I get the following error:

java.lang.NoSuchMethodError:
com.opensymphony.xwork2.ActionContext.getValueStack()Lcom/opensymphony/xwork2/util/OgnlValueStack;
	at org.apache.struts2.dispatcher.StrutsRequestWrapper.getAttribute(StrutsRequestWrapper.java:74)
	at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:113)

I'm using the xwork-2.0-SNAPSHOT.jar (260 KB) from the Struts distribution.

If I build/install xwork2 from SVN, I get the same error.

Matt

On 10/2/06, Matt Raible <mr...@gmail.com> wrote:
>
>
> On 10/2/06, Don Brown <mr...@twdata.org> wrote:
> >  Hmm...why would you be missing ognl?  There could be a problem because
> > we tag Struts 2.0.0, but didn't tag XWork 2.0, and there were certain
> > changes lately in XWork that wouldn't work with Struts 2.0.0.
> >
> > We plan to roll Struts  2.0.1 next weekend.  In the meantime, try running
> > with the xwork that was shipped in the Struts 2.0.0 release by manually
> > copying the xwork jar into your local repository.
>
>
> It looks like it's grabbing the XWork snapshot from opensymphony.
>
> Downloading: http://maven.opensymphony.com/opensymphony/jars/xwork-2.0-SNAPSHOT.jar
>  266K downloaded
>
> I tried using the one from the Struts 2.0.0 distribution[1] instead, but I still get the same error.
>
> If I copy pom.xml from xwork's subversion repo to ~/.m2/repository/opensymphony/xwork/2.0-SNAPSHOT/xwork- 2.0-SNAPSHOT.pom, it fixes the problem.  So the issue appears to be that OpenSymphony's Maven Repo is missing a POM.  Or maybe Struts' pom.xml is pointing to the wrong repo.
>
> Matt
>
> [1]  http://people.apache.org/builds/struts/2.0.0/struts-2.0.0-lib.zip
>
>
>
> > Don
> >
> >  Matt Raible wrote:
> > > I'm getting the following error (again) after trying to upgrade to the
> > > latest Struts 2.0.0 release.  I removed
> > > ~/.m2/repository/org/apache/struts
> > > and ~/.m2/repository/opensympony/xwork (which worked last time) to no
> > > avail.
> > > Any ideas?
> > >
> > > Thanks,
> > >
> > > Matt
> > >
> > > Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 0.032 sec
> > > <<< FAILURE!
> > > testCancel(org.appfuse.webapp.action.UserActionTest )  Time elapsed:
> > > 0.001sec  <<< ERROR!
> > > java.lang.NoClassDefFoundError: ognl/OgnlException
> > >    at
> > > com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(
> > > OgnlValueStackFactory.java :14)
> > >    at
> > > com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initialValue(
> > >
> > > ActionContext.java:330)
> > >    at java.lang.ThreadLocal$ThreadLocalMap.getAfterMiss(ThreadLocal.java
> > > :374)
> > >    at java.lang.ThreadLocal$ThreadLocalMap.get(ThreadLocal.java:347)
> > >    at
> > > java.lang.ThreadLocal$ThreadLocalMap.access$000(ThreadLocal.java:225)
> > >    at java.lang.ThreadLocal.get (ThreadLocal.java:127)
> > >    at com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java
> > > :152)
> > >    at org.appfuse.webapp.action.BaseActionTestCase.setUp(
> > > BaseActionTestCase.java:40)
> >  >    at org.appfuse.webapp.action.UserActionTest.setUp(UserActionTest.java
> > > :13)
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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: NoClassDefFoundError: ognl/OgnlException

Posted by Matt Raible <mr...@gmail.com>.
On 10/2/06, Don Brown <mr...@twdata.org> wrote:
>
> Hmm...why would you be missing ognl?  There could be a problem because
> we tag Struts 2.0.0, but didn't tag XWork 2.0, and there were certain
> changes lately in XWork that wouldn't work with Struts 2.0.0.
>
> We plan to roll Struts 2.0.1 next weekend.  In the meantime, try running
> with the xwork that was shipped in the Struts 2.0.0 release by manually
> copying the xwork jar into your local repository.


It looks like it's grabbing the XWork snapshot from opensymphony.

Downloading:
http://maven.opensymphony.com/opensymphony/jars/xwork-2.0-SNAPSHOT.jar
266K downloaded

I tried using the one from the Struts 2.0.0 distribution[1] instead, but I
still get the same error.

If I copy pom.xml from xwork's subversion repo to
~/.m2/repository/opensymphony/xwork/2.0-SNAPSHOT/xwork-2.0-SNAPSHOT.pom, it
fixes the problem.  So the issue appears to be that OpenSymphony's Maven
Repo is missing a POM.  Or maybe Struts' pom.xml is pointing to the wrong
repo.

Matt

[1] http://people.apache.org/builds/struts/2.0.0/struts-2.0.0-lib.zip


Don
>
> Matt Raible wrote:
> > I'm getting the following error (again) after trying to upgrade to the
> > latest Struts 2.0.0 release.  I removed
> > ~/.m2/repository/org/apache/struts
> > and ~/.m2/repository/opensympony/xwork (which worked last time) to no
> > avail.
> > Any ideas?
> >
> > Thanks,
> >
> > Matt
> >
> > Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 0.032sec
> > <<< FAILURE!
> > testCancel(org.appfuse.webapp.action.UserActionTest)  Time elapsed:
> > 0.001sec  <<< ERROR!
> > java.lang.NoClassDefFoundError: ognl/OgnlException
> >    at
> > com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(
> > OgnlValueStackFactory.java:14)
> >    at
> >
> com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initialValue
> (
> >
> > ActionContext.java:330)
> >    at java.lang.ThreadLocal$ThreadLocalMap.getAfterMiss(ThreadLocal.java
> > :374)
> >    at java.lang.ThreadLocal$ThreadLocalMap.get(ThreadLocal.java:347)
> >    at
> > java.lang.ThreadLocal$ThreadLocalMap.access$000(ThreadLocal.java:225)
> >    at java.lang.ThreadLocal.get(ThreadLocal.java:127)
> >    at com.opensymphony.xwork2.ActionContext.getContext(
> ActionContext.java
> > :152)
> >    at org.appfuse.webapp.action.BaseActionTestCase.setUp(
> > BaseActionTestCase.java:40)
> >    at org.appfuse.webapp.action.UserActionTest.setUp(UserActionTest.java
> > :13)
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Re: NoClassDefFoundError: ognl/OgnlException

Posted by Don Brown <mr...@twdata.org>.
Hmm...why would you be missing ognl?  There could be a problem because 
we tag Struts 2.0.0, but didn't tag XWork 2.0, and there were certain 
changes lately in XWork that wouldn't work with Struts 2.0.0. 

We plan to roll Struts 2.0.1 next weekend.  In the meantime, try running 
with the xwork that was shipped in the Struts 2.0.0 release by manually 
copying the xwork jar into your local repository.

Don

Matt Raible wrote:
> I'm getting the following error (again) after trying to upgrade to the
> latest Struts 2.0.0 release.  I removed 
> ~/.m2/repository/org/apache/struts
> and ~/.m2/repository/opensympony/xwork (which worked last time) to no 
> avail.
> Any ideas?
>
> Thanks,
>
> Matt
>
> Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 0.032 sec
> <<< FAILURE!
> testCancel(org.appfuse.webapp.action.UserActionTest)  Time elapsed:
> 0.001sec  <<< ERROR!
> java.lang.NoClassDefFoundError: ognl/OgnlException
>    at 
> com.opensymphony.xwork2.util.OgnlValueStackFactory.createValueStack(
> OgnlValueStackFactory.java:14)
>    at
> com.opensymphony.xwork2.ActionContext$ActionContextThreadLocal.initialValue( 
>
> ActionContext.java:330)
>    at java.lang.ThreadLocal$ThreadLocalMap.getAfterMiss(ThreadLocal.java
> :374)
>    at java.lang.ThreadLocal$ThreadLocalMap.get(ThreadLocal.java:347)
>    at 
> java.lang.ThreadLocal$ThreadLocalMap.access$000(ThreadLocal.java:225)
>    at java.lang.ThreadLocal.get(ThreadLocal.java:127)
>    at com.opensymphony.xwork2.ActionContext.getContext(ActionContext.java
> :152)
>    at org.appfuse.webapp.action.BaseActionTestCase.setUp(
> BaseActionTestCase.java:40)
>    at org.appfuse.webapp.action.UserActionTest.setUp(UserActionTest.java
> :13)
>


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