Re: Adding a JNDI lookup yields unexpected Struts errors (Spring injection)

2011-06-16 Thread Jeffrey Black
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

Re: Adding a JNDI lookup yields unexpected Struts errors (Spring injection)

2011-06-08 Thread Miguel
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

Re: Adding a JNDI lookup yields unexpected Struts errors (Spring injection)

2011-06-08 Thread Miguel
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

Re: Adding a JNDI lookup yields unexpected Struts errors (Spring injection)

2011-06-08 Thread Lukasz Lenart
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

Re: Adding a JNDI lookup yields unexpected Struts errors (Spring injection)

2011-06-08 Thread Miguel
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

Re: Adding a JNDI lookup yields unexpected Struts errors (Spring injection)

2011-06-08 Thread Lukasz Lenart
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

Re: Adding a JNDI lookup yields unexpected Struts errors

2011-06-07 Thread Miguel
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

Adding a JNDI lookup yields unexpected Struts errors

2011-06-07 Thread Miguel
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)

Re: Struts, Tomcat, JNDI, JDBC without use of an ORM Library such as Hibernate

2010-01-10 Thread Jasvinder S. Bahra
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

Re: Struts, Tomcat, JNDI, JDBC without use of an ORM Library such as Hibernate

2010-01-08 Thread Bill Bohnenberger
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

Re: Struts, Tomcat, JNDI, JDBC without use of an ORM Library such as Hibernate

2010-01-07 Thread Jasvinder S. Bahra
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

Re: Struts, Tomcat, JNDI, JDBC without use of an ORM Library such as Hibernate

2010-01-07 Thread Chris Pratt
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

Re: Struts, Tomcat, JNDI, JDBC without use of an ORM Library such as Hibernate

2010-01-07 Thread Jasvinder S. Bahra
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

Re: Struts, Tomcat, JNDI, JDBC without use of an ORM Library such as Hibernate

2010-01-07 Thread Jasvinder S. Bahra
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

Re: Struts, Tomcat, JNDI, JDBC without use of an ORM Library such as Hibernate

2010-01-07 Thread Brian Thompson
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

Re: Struts, Tomcat, JNDI, JDBC without use of an ORM Library such as Hibernate

2010-01-07 Thread Greg Lindholm
> > 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'

Re: Struts, Tomcat, JNDI, JDBC without use of an ORM Library such as Hibernate

2010-01-07 Thread Chris Pratt
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

Struts, Tomcat, JNDI, JDBC without use of an ORM Library such as Hibernate

2010-01-07 Thread Jasvinder S. Bahra
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

Struts2 + Guice JNDI names as a parameter

2009-01-27 Thread Ignacio de Córdoba
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

Re: Struts and JNDI

2007-09-04 Thread Mary Poppins
' 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]>

Re: Struts and JNDI

2007-09-03 Thread Ray Clough
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

Struts and JNDI

2007-09-03 Thread Mary Poppins
{ 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

Re: shale: jndi lookup error

2006-08-06 Thread vasiliy.kiryanov
>>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

Re: shale: jndi lookup error

2006-08-05 Thread Craig McClanahan
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

shale: jndi lookup error

2006-08-05 Thread vasiliy.kiryanov
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

Re: Plz help if anyone has any idea about this: Portlet Connecting to JNDI source

2005-12-28 Thread Ext . Ilitia2
p if anyone has any idea about this: Portlet Connecting to JNDI Please respond tosource

Plz help if anyone has any idea about this: Portlet Connecting to JNDI source

2005-12-28 Thread Meenakshi Singh
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

[perhaps OT] Testing Struts App with JNDI Datasouce

2005-03-09 Thread Manfred Wolff
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

Re: JNDI with tiles controller

2004-12-21 Thread Jim Douglas
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&

Re: JNDI with tiles controller

2004-12-20 Thread Eddie Bush
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

JNDI with tiles controller

2004-12-20 Thread Jim Douglas
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

RE: JNDI

2004-11-12 Thread McCormack, Chris
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

Re: JNDI

2004-11-11 Thread Jonathan Wright
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

Re: JNDI

2004-11-11 Thread Craig McClanahan
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

JNDI

2004-11-11 Thread Jonathan Wright
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

Re: OT: Re: ibatis and jndi pooling

2004-07-28 Thread Vic Cekvenich
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

Re: OT: Re: ibatis and jndi pooling

2004-07-28 Thread josh
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

OT: Re: ibatis and jndi pooling

2004-07-27 Thread Vic Cekvenich
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

Re: ibatis and jndi pooling

2004-07-27 Thread josh
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

Re: ibatis and jndi pooling

2004-07-27 Thread Vic Cekvenich
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

ibatis and jndi pooling

2004-07-27 Thread josh
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