FWIW, I've been debugging this test case and I have traced the issue down into
the Spring source code.
More to come. Stay tuned.
jb
/
On Jun 8, 2011, at 11:38 AM, Miguel wrote:
> To ease inspection of the problem, I created a unit test in the JIRA
> issue (https://issues.apache.org/jira/br
To ease inspection of the problem, I created a unit test in the JIRA
issue (https://issues.apache.org/jira/browse/WW-3647 ):
run JNDIProblemTestCase in
https://issues.apache.org/jira/secure/attachment/12481828/redirectActionErrorWithJunitTest.zip
On Wed, 2011-06-08 at 16:08 +0100, Miguel wrote
Hey Lukasz,
On Wed, 2011-06-08 at 15:40 +0200, Lukasz Lenart wrote:
> and the result
>
> Hello test, today is 2011/06/08
> ***zzz***
>
To display the problem you have to write "issue" in the name, not
"test".
Take a look at the HelloWorldAction - the redirectAction is with login,
whose result
647
>
> Thanks for the help!
>
> Enviado a partir do meu HTC
>
> - Reply message -
> De: "Lukasz Lenart"
> Data: qua, Jun 8, 2011 13:42
> Assunto: Adding a JNDI lookup yields unexpected Struts errors (Spring
> injection)
> Para: "Struts Users M
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"
Data: qua, Jun 8, 2011 13:42
Assunto: Adding a JNDI lookup yields un
on 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 - is active. If you comment this
> line and the referr
ion mapped for action name
YYY/tutorial/randomiseRedirect.
Why is it adding my jndi property to the URL?
On Tue, 2011-06-07 at 18:07 +0100, Miguel wrote:
> Dear all,
>
> I am having a strange problem and was hoping anyone knows why this is
> happening.
>
> My web app was work
Dear all,
I am having a strange problem and was hoping anyone knows why this is
happening.
My web app was working correctly and running in development in jetty
running with maven. I'm using Spring's to inject dependencies.
The problem arises when I add a JNDI entry. To do so I:
1)
Jazz, here's a lightweight package that so far has met all of my needs:
http://butterfly.jenkov.com/ ...
I'll be sure to take a look.
Thanks for the response.
Jazz
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.o
Jazz, here's a lightweight package that so far has met all of my needs:
http://butterfly.jenkov.com/ ...
Cheers, Bill*
*
On Thu, Jan 7, 2010 at 4:30 PM, Jasvinder S. Bahra <
bbdl21...@blueyonder.co.uk> wrote:
> I'll echo the Spring suggestion. It simplifies Action-level programming by
>> quite a
I'll echo the Spring suggestion. It simplifies Action-level programming
by
quite a bit.
On the flip side, it requires some extra XML configuration, but IMO it's a
good tradeoff.
Spring seems to be quite popular here. I'm somewhat reluctant because
Spring provides a lot more than just Databa
Good luck, and let us know how it goes.
(*Chris*)
On Thu, Jan 7, 2010 at 3:44 PM, Jasvinder S. Bahra <
bbdl21...@blueyonder.co.uk> wrote:
> We use Spring (and Spring-LDAP) for that layer. It works great, manages
>> all
>> our DAO's and their resources, and then injects them into the Actions as
che Tomcat). As long as
the DAO aquires the database connection through a JNDI datasource, the
Servlet Container will take care of the thread and connection management
issues.
The preferred method is use a DI facility (like Guice or Spring) and
instantiate a new DAO each time and inject th
We use Spring (and Spring-LDAP) for that layer. It works great, manages
all
our DAO's and their resources, and then injects them into the Actions as
needed.
Chris,
At the moment, i'm trying to reaquaint myself with the ins and out of Struts
(I haven't touched it for several years), so I dont
I'll echo the Spring suggestion. It simplifies Action-level programming by
quite a bit.
On the flip side, it requires some extra XML configuration, but IMO it's a
good tradeoff.
-Brian
On Thu, Jan 7, 2010 at 12:18 PM, Chris Pratt wrote:
> We use Spring (and Spring-LDAP) for that layer. It wo
>
> Instantiating the DAO in the execute() method of each of my action's
> however, seems a little inefficient. Does Struts provide any way to
> instantiate the object once and then make it available for the lifetime of
> the container (in a way that my Actions can access it)?
>
So want your DAO'
We use Spring (and Spring-LDAP) for that layer. It works great, manages all
our DAO's and their resources, and then injects them into the Actions as
needed.
(*Chris*)
On Thu, Jan 7, 2010 at 10:06 AM, Jasvinder S. Bahra <
bbdl21...@blueyonder.co.uk> wrote:
> Does anyone know of any techniques t
Does anyone know of any techniques that would allow a Database Access Object
(DAO) to be used from the various actions that make up a Struts application?
I have a DAO which, when instantiated, acquires a data source from the
servlet container (in this case, Apache Tomcat). Thereafter, I can ex
Hi there,
I am trying to use Guice to take care of the injection of Local Stateless
Session Beans (I use Jboss 4).
My problem is that all solutions I've found using guice involve hard coding
the application ear name. (JBoss sets JNDI of EJBs depending on the ear file
name).
I've re
' book, now available on-line from Sun.
>
> Is there a reason to use ThreadLocal context here?
>
> Sorry I couldn't be more helpful.
>
> - Ray Clough
>
>
>
>> ----- Original Message -
>> From: "Mary Poppins" <[EMAIL PROTECTED]>
AIL PROTECTED]>
> To: user@struts.apache.org
> Subject: Struts and JNDI
> Date: Mon, 3 Sep 2007 05:57:30 -0700 (PDT)
>
>
>
> I have a struts application, deployed using tomcat 5, that uses database
> pooling. I have a helper class called DAOhelper that encapsulate
{
logger.error("Error closing Properties File: "
+ e.getMessage());
}
}
}
}
--
View this message in context:
http://www.nabble.com/Struts-and-JNDI-tf4372040.html#a12461293
Sent from the Struts - User mailing li
>>What you are trying looks like it should work. If you try to look it up in
>>the usual JNDI way,
>>InitialContext initContext = new InitContext();
>>DataSource ds = (DataSource) initContext.lookup
("java:comp/env/jdbc/postgres");
>>does it actu
On 8/5/06, vasiliy.kiryanov <[EMAIL PROTECTED]> wrote:
Good afternoon.
[http://shale.apache.org/features-jndi-integration.html] link says to me
that I can aquire a java.sql.Connection from this data source ..
but it constantly return null.
from the myfaces BackBean this datasource re
Good afternoon.
[http://shale.apache.org/features-jndi-integration.html] link says to me
that I can aquire a java.sql.Connection from this data source ..
but it constantly return null.
from the myfaces BackBean this datasource resolves good.
Does anybody have any ideas?
I have next entry in
p if
anyone has any idea about this: Portlet Connecting to JNDI
Please respond tosource
Hello Everyone,
I am new to portlet development & facing a problem for quite some time now.
I am using Websphere portal server 5.0.2.3. I have developed a portlet which
uses a JNDI data source. I have made the JNDI source in Websphere
application server & have also tested the connec
Hi.
My favorite Configuration is Struts, HiveMind and Hibernate together in
a servlet Container (Tomcat 5.0). I have configures a datasource in the
Tomcat container and have access to the datasource via hibernate (JNDI
Lookup). Is there a solution to do this in a testcase without running
lt;[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: JNDI with tiles controller
Date: Mon, 20 Dec 2004 19:28:04 -0600
Jim,
JNDI is the best-practice approach to dealing with acquisition of
data-sources. It's not always practical to use (for example, if you
don&
Jim,
JNDI is the best-practice approach to dealing with acquisition of
data-sources. It's not always practical to use (for example, if you
don't have control over the server config) but it sure is slick.
Not knowing what is in the tile that produces the error, it's
difficult t
My first question is a design one. Is JDNI the best way to access a
database from a Tiles controller? If so, this is the JDNI class problem I
have.
This is the tomcat/conf/catalina/localhost/myapp.xml file,
username
SYSDBA
password
password
driverClassName
Then deploy a your_webapp_name_here.xml file along with your app that contains
the context settings.
Chris McCormack
-Original Message-
From: Jonathan Wright [mailto:[EMAIL PROTECTED]
Sent: 11 November 2004 23:22
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: JNDI
Craig
Jonathan Wright
- Original Message -
From: "Craig McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 12, 2004 11:57 AM
Subject: Re: JNDI
> On Fri, 12 Nov 2004 11:46:22 +1300, Jonathan Wright
> <[EMAIL
On Fri, 12 Nov 2004 11:46:22 +1300, Jonathan Wright
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Just a quick question about JNDI in a Struts setting. I want to reduce the
> dependencies between objects in my app. Some objects that are not servlet
> aware need access to the ServletCo
Hi,
Just a quick question about JNDI in a Struts setting. I want to reduce the
dependencies between objects in my app. Some objects that are not servlet
aware need access to the ServletContext and DataSources. However rather than
complicating matters and increasing the number of arguments I need
So I think Clinton answerd your question there, so done!?
.V
josh wrote:
vic,
I have moved everything to the Ibatis forum. You are right, the
discussion has very little struts specific information unless someone
else is interested in the discussion about plugins or how to properly
manage the db co
vic,
I have moved everything to the Ibatis forum. You are right, the
discussion has very little struts specific information unless someone
else is interested in the discussion about plugins or how to properly
manage the db connection (of which I could use some guidance)
I posted my reply to your
josh wrote:
I just get a reference to the datasource and close it in
the destroy method of the plugin.
Let me ask why do you get a reference to datasource in SqlMaps?
You can do ANYTHING with just:
List rows =_sqlMap.queryForList("mapNam", parms);
(also... the iBatis forum is VERY go
vic,
thanks for the reply. let me clarify my problem. When I create a
connection to the db using connection pooling (as illustrated in my
first email) I could do something like the following...
Connection conn = ds.getConnection();
... use this connection to access the database ...
conn.close
josh wrote:
I am trying to figure out how to use sqlmaps and struts. Before sqlMaps
I would create a connection to the database using a plugin. In my
init() I did something like this
this.ds = (DataSource) context.lookup("java:comp/env/" + lookupString);
This gave me a datasource object that I co
I am trying to figure out how to use sqlmaps and struts. Before sqlMaps
I would create a connection to the database using a plugin. In my
init() I did something like this
this.ds = (DataSource) context.lookup("java:comp/env/" + lookupString);
This gave me a datasource object that I could use fo
41 matches
Mail list logo