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 <[EMAIL PROTECTED]> wrote:


On 10/2/06, Don Brown <[EMAIL PROTECTED]> 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:  [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to