struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miguel" <mig...@almeida.at>
Subject Re: Adding a JNDI lookup yields unexpected Struts errors (Spring injection)
Date Wed, 08 Jun 2011 13:12:37 GMT
Really? That's odd.

could you please try the test project at : https://issues.apache.org/jira/browse/WW-3647

Thanks for the help!

Enviado a partir do meu HTC

----- Reply message -----
De: "Lukasz Lenart" <lukasz.lenart@googlemail.com>
Data: qua, Jun 8, 2011 13:42
Assunto: Adding a JNDI lookup yields unexpected Struts errors (Spring injection)
Para: "Struts Users Mailing List" <user@struts.apache.org>

It works for me ...

Hello Lukasz, today is 2011/06/08


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/


2011/6/8 Miguel <miguel@almeida.at>:
> Hi,
>
> I have created a test maven project to demonstrate the issue, based on
> struts archetype.
>
> To see the problem:
>
> 1) run the maven goal jetty:run
> 2) browse to http://localhost:8080
> 3) Write "issue" on the top form and submit
>
> Expected:
> - The action has an "if issue, return login". Login has a global
> redirectAction result to index. I'd expect the action to redirect do index,
> which in turn redirects to /jsp/index.jsp
>
> Actual:
> Error - Problem accessing /zzz/index!zzz.action.
>
> Happens when:
> 1) applicationContext.xml - <jee:jndi-lookup> is active. If you comment this
> line and the referring  <property name="wtf"... , the redirect is correct.
> Notice that zzz is the default for that jndi-lookup (and we haven't
> configured jndi, so the default is being used)
> 2) The login result is a redirectAction. If you change the line in
> struts.xml to, say, <result name="login"> /jsp/index.jsp</result>, the
> problem isn't visible.
>
> Can someone try to understand why this is happening. It might be a very
> basic problem, but I've been looking at this for hours and can't figure out
> what is wrong.
>
> Thank you in advance,
>
> Miguel Almeida
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message