Re: validation xmls in a Struts2 application with no Internet connection

2013-12-16 Thread Lukasz Lenart
No problem! Thanks for conformation! 2013/12/16 Yasser Zamani : > I could not re-produce it with most recent version, 2.3.16. Both DTD > versions work correctly on an off-line Tomcat :) > > I think there is a mis-version-configuration between struts and xwork with > that non-maven old application.

Re: validation xmls in a Struts2 application with no Internet connection

2013-12-16 Thread Yasser Zamani
I could not re-produce it with most recent version, 2.3.16. Both DTD versions work correctly on an off-line Tomcat :) I think there is a mis-version-configuration between struts and xwork with that non-maven old application. Sorry for the inconvenience! Thanks! On 12/15/2013 03:53 PM, Lukasz

Re: validation xmls in a Struts2 application with no Internet connection

2013-12-15 Thread Lukasz Lenart
Hmm... so it must be some small bug, a typo somewhere. Can you register an issue with the stacktrace and explanation that it works with 1.0.2? Thanks -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/12/15 Yasser Zamani : > I reviewed Struts internally and discovered that in all places

Re: validation xmls in a Struts2 application with no Internet connection

2013-12-15 Thread Yasser Zamani
I reviewed Struts internally and discovered that in all places it uses "1.0.2" instead of "1.0.3". So, I guessed if I rewrite my DOCTYPE to: 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd";> it may work. I tried and yeah, it works! (However, it's some was confusing that

Re: validation xmls in a Struts2 application with no Internet connection

2013-12-15 Thread Lukasz Lenart
2013/12/14 Yasser Zamani : > Hi there, > > We have a Struts2 application with some validation XMLs with following > "DOCTYPE": > >1.0.3//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd";> > > > When we run this application on a server which has access to > "struts.apache.org",

validation xmls in a Struts2 application with no Internet connection

2013-12-14 Thread Yasser Zamani
Hi there, We have a Struts2 application with some validation XMLs with following "DOCTYPE": http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd";> When we run this application on a server which has access to "struts.apache.org", there is no problem. But when we run it on a server wh

Connection between Struts Application and DB.

2012-04-23 Thread Anjib Mulepati
Hi All, I have my DB and web application running in different machine. And whenever my DB machine restart my application fail since it can't connect to the DB. I have to restart my application every time my DB start. I am using Struts Plug-in to load connection information from web.xml

Re: Struts 2 PASSING CONNECTION TO IREPORT

2012-02-25 Thread Frans Thamura
ication. > While the documentation for the jasperReport plugin explains how to use a > datasource and a compiled template to generate a report, I wasn't able to > find out how to use a database connection as a datasource and how to pass > parameters to the report. I have the jrxml

Re: Struts 2 PASSING CONNECTION TO IREPORT

2012-02-25 Thread Dave Newton
The JR plugin expects the datasource to be the S2 action, not a connection. If you have an existing JR report you may want to consider just keeping it as-is and streaming back the result. Dave On Sat, Feb 25, 2012 at 12:20 AM, Thameem wrote: > I have created some reports with iReport

RE: [struts-user] Struts 2 PASSING CONNECTION TO IREPORT

2012-02-25 Thread Jason Pyeron
> -Original Message- > From: Thameem [mailto:thameem@gmail.com] > Sent: Saturday, February 25, 2012 0:21 > To: user@struts.apache.org > Subject: [struts-user] Struts 2 PASSING CONNECTION TO IREPORT > > I have created some reports with iReport BY connecting to s

Struts 2 PASSING CONNECTION TO IREPORT

2012-02-25 Thread Thameem
find out how to use a database connection as a datasource and how to pass parameters to the report. I have the jrxml and jasper files. I need to pass the connection to ireport. Can anyone give me a solution.? Thanking you advance. -- View this message in context: http://struts.1045723.n5.nabbl

Re: Connection Pooling with Struts

2010-12-08 Thread Anjib Mulepati
-0500 From: anji...@hotmail.com To: user@struts.apache.org Subject: Connection Pooling with Struts I have to do DB connection (Oracle 10g) in my application developed in Struts 1.3.8. Currently I am implementing JDBC. As far I understand this is not a good technique for real project. So I am hopi

RE: Connection Pooling with Struts

2010-12-08 Thread adam pinder
Anjib, i'd certainly take a look at hibernate, i've been using it for a while now and find it easy enough and functionally rich enough for most things. adam > Date: Tue, 7 Dec 2010 14:36:01 -0500 > From: anji...@hotmail.com > To: user@struts.apache.org > Subject: C

RE: Connection Pooling with Struts

2010-12-07 Thread Martin Gainty
ate: Tue, 7 Dec 2010 16:19:48 -0600 > Subject: Re: Connection Pooling with Struts > From: stanl...@gmail.com > To: user@struts.apache.org > > Dude, I can't sit quietly any longer! How you connect to a database has > NOTHING WHATSOEVER to do with the Struts/2 Framework. I woul

Re: Connection Pooling with Struts

2010-12-07 Thread Ty Connell
> Anjib > > > On 12/7/2010 5:19 PM, stanl...@gmail.com wrote: > >> Dude, I can't sit quietly any longer! How you connect to a database has >> NOTHING WHATSOEVER to do with the Struts/2 Framework. I would advise you >> to >> keep the two separated in your

Re: Connection Pooling with Struts

2010-12-07 Thread Dave Newton
On Tue, Dec 7, 2010 at 6:15 PM, Anjib wrote: > I am asking about ORM tool not Struts framework itself. > I think the point was more along the lines of "why are you asking here," since you're not asking about the Struts framework. Dave

Re: Connection Pooling with Struts

2010-12-07 Thread Anjib
k. I would advise you to keep the two separated in your mind. Much like you wouldn't look to a Database connection to serve a web page, neither should you look to Struts/2 as a Database connection. On Tue, Dec 7, 2010 at 3:36 PM, Anjib Mulepati wrote: So I can use this DBCP Componenet

Re: Connection Pooling with Struts

2010-12-07 Thread stanlick
Dude, I can't sit quietly any longer! How you connect to a database has NOTHING WHATSOEVER to do with the Struts/2 Framework. I would advise you to keep the two separated in your mind. Much like you wouldn't look to a Database connection to serve a web page, neither should you look t

Re: Connection Pooling with Struts

2010-12-07 Thread Anjib Mulepati
So I can use this DBCP Componenet instead of framework? Anjib E.g -. http://commons.apache.org/dbcp/ On Tue, Dec 7, 2010 at 4:27 PM, Dave Newton wrote: A connection pooling library? On Tue, Dec 7, 2010 at 4:25 PM, Anjib Mulepati wrote: Ok now I get confuse. I was thinking simple JDBC

Re: Connection Pooling with Struts

2010-12-07 Thread Ty Connell
E.g -. http://commons.apache.org/dbcp/ On Tue, Dec 7, 2010 at 4:27 PM, Dave Newton wrote: > A connection pooling library? > > On Tue, Dec 7, 2010 at 4:25 PM, Anjib Mulepati > wrote: > > > Ok now I get confuse. I was thinking simple JDBC can't (or complex to ) > &g

Re: Connection Pooling with Struts

2010-12-07 Thread Dave Newton
A connection pooling library? On Tue, Dec 7, 2010 at 4:25 PM, Anjib Mulepati wrote: > Ok now I get confuse. I was thinking simple JDBC can't (or complex to ) > handle connection pooling. So framework make work easy. If framework is not > used what are other alternatives to han

Re: Connection Pooling with Struts

2010-12-07 Thread Anjib Mulepati
Ok now I get confuse. I was thinking simple JDBC can't (or complex to ) handle connection pooling. So framework make work easy. If framework is not used what are other alternatives to handle connection pooling beside JDBC itself? Anjib On 12/7/2010 4:20 PM, Arthur Neves wrote: Nop,

Re: Connection Pooling with Struts

2010-12-07 Thread Dave Newton
Is the question about connection pooling, as the subject line indicates, or is the question about generic DB handling and JDBC v. ORMs? Dave On Tue, Dec 7, 2010 at 4:20 PM, Arthur Neves wrote: > Nop, > > You dont need using a framework... if you pick one just will make your life >

Re: Connection Pooling with Struts

2010-12-07 Thread Arthur Neves
exists several frameworks for this job like hibernate, myBatis, >> spring >> jdbc tempalate, ... . >> google for it and look which framework is the best for your project. >> >> Johannes >> >> >> anjibman wrote: >> >>> I have to do DB connec

Re: Connection Pooling with Struts

2010-12-07 Thread Anjib Mulepati
, spring jdbc tempalate, ... . google for it and look which framework is the best for your project. Johannes anjibman wrote: I have to do DB connection (Oracle 10g) in my application developed in Struts 1.3.8. Currently I am implementing JDBC. As far I understand this is not a good technique for

Re: Connection Pooling with Struts

2010-12-07 Thread Johannes Geppert
I have to do DB connection (Oracle 10g) in my application developed in > Struts 1.3.8. > > Currently I am implementing JDBC. As far I understand this is not a good > technique for real project. So I am hoping someone could suggest me how > to do DB handling efficiently

Connection Pooling with Struts

2010-12-07 Thread Anjib Mulepati
I have to do DB connection (Oracle 10g) in my application developed in Struts 1.3.8. Currently I am implementing JDBC. As far I understand this is not a good technique for real project. So I am hoping someone could suggest me how to do DB handling efficiently? Thanks Anjib

Re: Error: Cannot get a connection, pool error Timeout waiting for idle object

2010-03-15 Thread abhishek jain
Hi friends, Additional to the config file i also realized that the connection with my server never ends when viewed on browser, i mean the status bar always says that "Waiting for URL.", Pl. help on the Error: Cannot get a connection, pool error Timeout waiting for idle objec

Re: Error: Cannot get a connection, pool error Timeout waiting for idle object

2010-03-14 Thread abhishek jain
am gettting the following errors in my log file, > > Cannot get a connection, pool error Timeout waiting for idle object > > > What could be the reason to this error, it seems like this is because of db > which is mysql in my case, > > Pl. advice, what to do in to remove t

Error: Cannot get a connection, pool error Timeout waiting for idle object

2010-03-13 Thread abhishek jain
Hi friends. I am using strurts 1 with mysql and is using the datasource in struts-config.xml. I am gettting the following errors in my log file, Cannot get a connection, pool error Timeout waiting for idle object What could be the reason to this error, it seems like this is because of db which

Creating connection object in Handlers

2009-10-06 Thread shikai
Hi , Is it a best practice to create a connection object in handlers and sending that object to DB functions that are called from handlers? Previously I was creating connection object in every DB function and closing it while coming back. I got some connection issues and now I am creating

RE: how to initialize database connection pool in struts 2?

2009-04-07 Thread john lee
Could you tel me in detail/example?   tks in advance   john --- On Tue, 4/7/09, Sidharth Bhatia wrote: From: Sidharth Bhatia Subject: RE: how to initialize database connection pool in struts 2? To: "'Struts Users Mailing List'" , w...@wantii.com Date: Tuesday, April 7,

RE: how to initialize database connection pool in struts 2?

2009-04-07 Thread Sidharth Bhatia
You can also use struts 2 spring capability and have the connection given to you through dependency injection. Sid Bhatia "Try not. Do... or do not. There is no try" -- Yoda _ _ mailto:sidharth.bhat...@gmail.com -Original Message- From: Wes W

Re: how to initialize database connection pool in struts 2?

2009-04-07 Thread Wes Wannemacher
On Tuesday 07 April 2009 21:38:44 john lee wrote: > in structs 1, in APPLICATION/WEB-INF/web.xml, i have the following line > > > DBInit > neuco.db.DBInitServlet > 1 > > > to initialize/launch default databse connection pool, how

how to initialize database connection pool in struts 2?

2009-04-07 Thread john lee
  in structs 1, in APPLICATION/WEB-INF/web.xml, i have the following line         DBInit     neuco.db.DBInitServlet     1       to initialize/launch default databse connection pool, how can i do this in struts 2 ?     tks in advance   john

Re: JasperReports Plugin:How to specify JDBC connection?

2009-01-27 Thread Dave Newton
Mel Rosenberg wrote: I have been working on using Jasper with Struts2 2.0.11. Looking at the documentation it seems that the dataSource param is looking for a list. The question is what is in the list. Is it a list of connection parameters to the database, ie.. url, login name, password

RE: JasperReports Plugin:How to specify JDBC connection?

2009-01-27 Thread dusty
am is looking for a list. > The > question is what is in the list. Is it a list of connection parameters to > the database, ie.. url, login name, password... or is it a list of > results? > > Can anyone point me in the right direction? I have searched the web and > cant f

RE: JasperReports Plugin:How to specify JDBC connection?

2009-01-27 Thread Mel Rosenberg
I have been working on using Jasper with Struts2 2.0.11. Looking at the documentation it seems that the dataSource param is looking for a list. The question is what is in the list. Is it a list of connection parameters to the database, ie.. url, login name, password... or is it a list of

RE: JasperReports Plugin:How to specify JDBC connection?

2009-01-13 Thread ravindra
st object in your prepare method. ( mypojoList -Original Message- From: Rajeshwari Godbole [mailto:rgodb...@gmail.com] Sent: Tuesday, January 13, 2009 2:12 PM To: user@struts.apache.org Subject: JasperReports Plugin:How to specify JDBC connection? Hello, *Problem*: I created a .jrxml rep

JasperReports Plugin:How to specify JDBC connection?

2009-01-13 Thread Rajeshwari Godbole
work. After I got the JasperReportResult.java, I got errors while compiling that required the classes com.opensymphony.xwork2.util.logging.Logger and LoggerFactory so I got xwork-2.1.0.jar that has the logging classes (was using xwork-2.0.5 earlier). Now I'm getting an error on line 288 that says Con

Re: [OT] Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-12 Thread Milan Milanovic
t 2.0.mumble, maybe iReport 3+ is > better). > > Dave > > > --- On Fri, 12/12/08, Milan Milanovic wrote: > >> From: Milan Milanovic >> Subject: Re: [S2] Struts + JasperReports (iReport) - setting connection >> To: user@struts.apache.org >> Date: Frida

[OT] Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-12 Thread Dave Newton
for some of the initial layout but ended up resorting to editing the XML file (this was iReport 2.0.mumble, maybe iReport 3+ is better). Dave --- On Fri, 12/12/08, Milan Milanovic wrote: > From: Milan Milanovic > Subject: Re: [S2] Struts + JasperReports (iReport) - setting connection > To

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-12 Thread Milan Milanovic
novic >> Subject: Re: [S2] Struts + JasperReports (iReport) - setting connection >> To: user@struts.apache.org >> Date: Friday, December 12, 2008, 1:41 PM >> Dear Dave, >> >> have you maybe managed to find time to see how we can >> define datasource in

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-12 Thread Dave Newton
Nope. --- On Fri, 12/12/08, Milan Milanovic wrote: > From: Milan Milanovic > Subject: Re: [S2] Struts + JasperReports (iReport) - setting connection > To: user@struts.apache.org > Date: Friday, December 12, 2008, 1:41 PM > Dear Dave, > > have you maybe managed to find t

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-12 Thread Milan Milanovic
bscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> > > -- View this message in context: http://www.nabble.com/-S2--Struts-%2B-JasperReports-%28iReport%29---setting-connection-tp20937308p20981232.html Sent from

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-11 Thread Milan Milanovic
be, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-S2--Struts-%2B-JasperReports-%28iReport%29---setting-connection-tp20937308p20956829.html Sent from the Struts - User mailing list arch

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-11 Thread Dave Newton
--- On Thu, 12/11/08, Milan Milanovic wrote: > O.K. Thank you. When Jasper report is designed I need to > set datasource for it and for every type of data source > I need to fill those elements (data source class, method > which return data source elements, etc.). There is no > such things explai

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-11 Thread Milan Milanovic
. -- Thx, M. newton.dave wrote: > > --- On Thu, 12/11/08, Milan Milanovic wrote: >> No one knows how to set-up Jasper report connection for this >> kind integration with Struts 2 ? > > You've gotta have a little more patience. I'll see how my report is > co

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-11 Thread Dave Newton
--- On Thu, 12/11/08, Milan Milanovic wrote: > No one knows how to set-up Jasper report connection for this > kind integration with Struts 2 ? You've gotta have a little more patience. I'll see how my report is configured, but I don't recall anything about a factory in

Re: [S2] Struts + JasperReports (iReport) - setting connection

2008-12-11 Thread Milan Milanovic
No one knows how to set-up Jasper report connection for this kind integration with Struts 2 ? -- M. Milan Milanovic wrote: > > Hi, > > I'm following this tutorial for integrating JasperReports in Struts app: > http://struts.apache.org/2.0.14/docs/jasperreports-

[S2] Struts + JasperReports (iReport) - setting connection

2008-12-10 Thread Milan Milanovic
Hi, I'm following this tutorial for integrating JasperReports in Struts app: http://struts.apache.org/2.0.14/docs/jasperreports-tutorial.html http://struts.apache.org/2.0.14/docs/jasperreports-tutorial.html . But I'm wondering how I should set up my connection on my report (e.g.,

Re: connection to db with pooling in Struts

2008-11-30 Thread Nils-Helge Garli Hegvik
That won't use the pool. Take a look at some of the code snippets at [1] Nils-H [1] - http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html On Mon, Dec 1, 2008 at 8:09 AM, Adam Ruggles <[EMAIL PROTECTED]> wrote: > > You can use this little snippet to

Re: connection to db with pooling in Struts

2008-11-30 Thread Adam Ruggles
You can use this little snippet to get a connection: public Connection getConnection(String url, String driverClassName, String username, String password) throws SQLException { try { Class.forName(driverClassName); } catch

connection to db with pooling in Struts

2008-11-28 Thread gbattine
Hello guys, I'm newbie about Struts and I'm trying to understand a complex task (for me), that is obtaining a connection from connection pool (I use dbcp for this) and a datasource (that one of tomcat) and use this connection in dao layer. I'm trying to get this working, bu

Re: Struts 2 & Database Connection Pooling

2008-08-20 Thread Gabriel Belingueres
AFAIK, there is no pattern. You can configure a datasource through Spring, or you could get it from JNDI once when your app starts (by writing a ServletContextListener) 2008/8/20, Roger <[EMAIL PROTECTED]>: > I need to implement a database connection pool and was considering using t

Struts 2 & Database Connection Pooling

2008-08-20 Thread Roger
I need to implement a database connection pool and was considering using the JNDI facilities provided by the servlet container (in my case, Apache Tomcat). Is there a Struts "pattern" for accessing JNDI resources in (a) a container neutral manner and (b) without tying my action clas

Re: ApplicationAware not triggering setApplication? Or, how best to reference a Connection pool?

2008-06-11 Thread Dave Belfer-Shevett
Lukasz Lenart wrote: My understanding is that the webwork API for ApplicationAware means that the interceptor will have it's setApplication(Map applicationData); triggered when the interceptor is run, thereby giving me access to the applicationcontext. ApplicationAware should be used with Actio

Re: ApplicationAware not triggering setApplication? Or, how best to reference a Connection pool?

2008-06-11 Thread Jeromy Evans
Dave Belfer-Shevett wrote: Hi folks - i'm trying to write an interceptor in struts2 that has access to the ApplicationMap in the application context. My understanding is that the webwork API for ApplicationAware means that the interceptor will have it's setApplication(Map applicationData); tr

Re: ApplicationAware not triggering setApplication? Or, how best to reference a Connection pool?

2008-06-11 Thread Lukasz Lenart
> My understanding is that the webwork API for ApplicationAware means that the > interceptor will have it's setApplication(Map applicationData); triggered > when the interceptor is run, thereby giving me access to the > applicationcontext. ApplicationAware should be used with Actions not with inte

ApplicationAware not triggering setApplication? Or, how best to reference a Connection pool?

2008-06-11 Thread Dave Belfer-Shevett
(The goal here is to store a c3p0 connection pool object in the application context, so that I can get a connection from it on every hit - I assume this is the proper way to do this?) T

Re: [Struts2] Exception starting filter (Connection Timed Out)

2008-05-11 Thread Pierre Thibaudeau
Thanks for the suggestion, but I use Spring very heavily! ;) (Everything's bean-ified, and dependency injected...) 2008/5/5 KonTiki <[EMAIL PROTECTED]>: > > The Spring context listener is needed only if you do use Spring. > If you do not, then this might be causing the error as Tomcat was unable

Re: [Struts2] Exception starting filter (Connection Timed Out)

2008-05-05 Thread KonTiki
The Spring context listener is needed only if you do use Spring. If you do not, then this might be causing the error as Tomcat was unable to find the Spring classes. Try removing this: org.springframework.web.context.ContextLoaderListener org.springframework.web.c

Re: [Struts2] Exception starting filter (Connection Timed Out)

2008-04-30 Thread Mead Lai
d) > 2008/04/29 00:59:30 | at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > 2008/04/29 00:59:30 | at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > 2008/04/29 00:59:30 | at java.lang.reflect.Method.i

[Struts2] Exception starting filter (Connection Timed Out)

2008-04-28 Thread Pierre Thibaudeau
at java.lang.Thread.run(Thread.java:619) 2008/04/29 00:59:30 | Caused by: Connection timed out - [unknown location] 2008/04/29 00:59:30 | at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123) 2008/04/29 00:59:30 | at com.opensymphony.x

Re: Noob question(s). Interceptor breaking forms, and Connection handling?

2008-04-07 Thread Dave Newton
he interceptors for that action. You either need to create a *complete* stack with your interceptor included or specify *all* the interceptors your action requires. > Question 2... > I tried doing this, and saw the connection start up, but the Action > class kept having the connection

Noob question(s). Interceptor breaking forms, and Connection handling?

2008-04-07 Thread Dave Belfer-Shevett
ptor line in my struts.xml file, the Logon form validator fails. Line 29 shows 'null' in Logon.java. If i leave it commented out, it works fine. Question 2... In Logon.java, I'm using the execute() method to set up my JDBC connection (as pulled from my JBoss container datasourc

Re: Struts2 connection pooling using MySQL

2008-02-21 Thread Dave Newton
--- RajiR <[EMAIL PROTECTED]> wrote: > As struts2 comes along with spring integration with > struts2-spring-plugin-2.0.11.jar,after starting the tomcat server its > unable to load that jar and getting an exception as: Looks more like you don't have Spring itself on your classpath: > Caused by: ja

Re: Struts2 connection pooling using MySQL

2008-02-21 Thread RajiR
was no consistent mechanism for configuring >> data sources that worked across servlet containers. That changed a long >> time ago and Struts first deprecated, and then removed, its support for >> the data-source configuration element. >> >> The preferred way to

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Frans Thamura
dont forget to share the code. Thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread RajiR
mechanism for configuring > data sources that worked across servlet containers. That changed a long > time ago and Struts first deprecated, and then removed, its support for > the data-source configuration element. > > The preferred way to set up a data source (using a connection pool or

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Frans Thamura
> eg. > http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html is this connectio data source is the best implementation we are using hibernate c3p0, any suggestion F - To unsubscribe, e-mail: [EMAIL PROTECT

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Laurie Harper
-source configuration element. The preferred way to set up a data source (using a connection pool or not) is through JNDI using your servlet container configuration. The article Jeromy linked to mentions JNDI and links to more detailed documentation for various servlet containers and application

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Jeromy Evans
http://dev.mysql.com/tech-resources/articles/connection_pooling_with_connectorj.html, we can preform connection pooling only after configuring it in our configuration files.If it is in the case of struts1, struts-config.xml file has a tag called and there we can configure.But,what about struts2 ho

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread RajiR
Hi, In this link : http://dev.mysql.com/tech-resources/articles/connection_pooling_with_connectorj.html, we can preform connection pooling only after configuring it in our configuration files.If it is in the case of struts1, struts-config.xml file has a tag called and there we can configure.But

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Frans Thamura
hi there i got a too many connection when try use spring-hibernate with struts2 and this is not struts2 problem i think the connection pool is not struts2 responsibility as the controller and if we use spring, this will become injection work with the database tech like ORM ot JDBC F

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Jeromy Evans
RajiR wrote: Can't we implement connection pooling in struts2 alone?If so ,may I know the reason please...!!! Thanks. Struts 2 itself doesn't provide a connection pooling implementation and probably shouldn't. MySql provide a pooled DataSource that you can use immediate

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread RajiR
Can't we implement connection pooling in struts2 alone?If so ,may I know the reason please...!!! Thanks. nuwan chandrasoma-2 wrote: > > Hi, > > Why do not you give a try with Spring. as struts2 has built in support > for spring, you can use springs connection

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Nuwan Chandrasoma
Hi, Why do not you give a try with Spring. as struts2 has built in support for spring, you can use springs connection pooling very easily. Thanks, Nuwan. RajiR wrote: Hi All, Since struts1 has connection pooling mechanism using tag,what is the procedure of connection pooling mechanism

Struts2 connection pooling using MySQL

2008-02-20 Thread RajiR
Hi All, Since struts1 has connection pooling mechanism using tag,what is the procedure of connection pooling mechanism in struts2? Can we do tht using tag?I have seen from some of the search results for oracle db using class:oracle.jdbc.pool.OracleConnectionCacheImpl. But I need

Re: OOT: Too Many Connection

2008-02-08 Thread Jeromy Evans
Hi Frans, You need to isolate what there's too many connections to. Is it the database, the http server or some other resource? My wild "stab in the dark" is that you're using the Session In View pattern with hibernate and a connection pool setup through spring. T

OOT: Too Many Connection

2008-02-08 Thread Frans Thamura
hi there, i am developing system using struts2, hibernate, and spring and show off the error too many connection , and the error show off after there is 300 user log to the systme can help anyone F - To unsubscribe, e-mail

Re: Struts 2 + Spring 2 + JPA + Oracle + Connection Caching/Pooling

2007-12-18 Thread Filipe David Manana
n 12/18/07, kenk <[EMAIL PROTECTED]> wrote: > > > Filipe, > > Funny, I was looking for the same information. Here's the Spring > configuration I'm moving forward

Re: Struts 2 + Spring 2 + JPA + Oracle + Connection Caching/Pooling

2007-12-18 Thread kenk
Filipe, Funny, I was looking for the same information. Here's the Spring configuration I'm moving forward with to use the Oracle connecti

Re: Struts 2 + Spring 2 + JPA + Oracle + Connection Caching/Pooling

2007-12-11 Thread Alberto A. Flores
Database Connection Pooling is typically handled (already) by the container. You can get your datasource from this connection pooling using JNDI. Spring has a way of doing this nicely using the JndiObjectFactoryBean. Each container has a different way to configure this JNDI configuration, so

Re: Struts 2 + Spring 2 + JPA + Oracle + Connection Caching/Pooling

2007-12-11 Thread Musachy Barroso
uts 2 that is Oracle database driven. > Integrating Struts 2 + Spring 2 + JPA (as described in > http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html), how do I > configure Oracle database Connection Caching (pooling)? > > Oracle's JDBC driver provided in the Oracle I

Struts 2 + Spring 2 + JPA + Oracle + Connection Caching/Pooling

2007-12-11 Thread Filipe David Manana
Hi all, I want to create a web app with Struts 2 that is Oracle database driven. Integrating Struts 2 + Spring 2 + JPA (as described in http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html), how do I configure Oracle database Connection Caching (pooling)? Oracle's JDBC d

Re: HELP! Could not open connection with host: jakarta.apache.org and port: 80??

2007-08-31 Thread Laurie Harper
This is usually a result of using the wrong DOCTYPE in one of your XML configuration files (in this case, one of /WEB-INF/validator-rules.xml, /WEB-INF/validator-rules-extra.xml, /WEB-INF/validation.xml). Make sure the declared DOCTYPE is appropriate to the version of Struts you're using. Ther

HELP! Could not open connection with host: jakarta.apache.org and port: 80??

2007-08-30 Thread Ed snooper
Hello kind person, I have a struts application that was working fine, but when I tried to move it to another server it started throwing the below error messages. Why is it trying to pull the DTD remotely? How can I fix? Thanks for any and all help Ed struts-config_1_2.dtd

Re: Connection Pooling How To ?

2007-05-23 Thread Christopher Schultz
tions. > > So this was the load client specified ... i had set the max limit of > my pool to 100 ... that may be the problem . i will go and increase it > now... If you need to serve 200 requests per second, ten you need to evaluate what percentage of requests result in DB connection

Re: Connection Pooling How To ?

2007-05-22 Thread jasdeep
i had set the max limit of my pool to 100 ... that may be the problem . i wud go and increase it now... Thanx Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jasdeep, > > jasdeep wrote: >> 2. Configuring Jboss'

Re: Connection Pooling How To ?

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jasdeep, jasdeep wrote: > 2. Configuring Jboss's Internal Container Level Connection pooling simply > creating the datasources This is the right way to do things. > The application works OK with Second method but When it is being h

Connection Pooling How To ?

2007-05-22 Thread jasdeep
Hi All , i am developing a struts based web-application with JBoss 4.0.5 as Application Server and Oracle 10g Express edition . I am configuring my application for connection pooling . I have tried following methods : 1. Oracle Connection Pooling following thius link http

Re: [OT] Connection Pooling

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Balazs, Balazs Michnay wrote: > 2) open your server.xml and put the following lines between > tags (this is what I > missed...) > (Modify it properly...) Although this is possible, most will recommend against it (including me). This will create a

Re: [OT] Connection Pooling

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Balazs, Balazs Michnay wrote: > Thanks for helping. > Sure, here are all my settings. I think you have more configuration than you need. Here is exactly what I have for a similar setup (MySQL 5.x, Connector/J 5.x, Tomcat 5.5.x): I checked, and

Re: [OT] Connection Pooling

2007-05-22 Thread Balazs Michnay
Many thanks for your help, I managed to set connection pooling up (however, I don't know whether it uses conn. pooling or not...) To help others, here are all the configurations that need to be done: (This works with Tomcat 5.5, MySQL 5.0, Win XP SP2) 1) Place your database driver in

RE: Connection Pooling in Struts

2007-05-22 Thread Raghupathy, Gurumoorthy
Hi, Struts way (not good) Connection pooling is not available in latest version of struts 1 and struts 2. So if you upgrade your application to latest struts then you will be in trouble. Server (JNDI) very good All application servers provide

Connection Pooling in Struts

2007-05-22 Thread Saravanan Vijayappan
Hi To set up connection pooling in struts which is the recommended way whether and please explain the benifts 1) Configure through struts-config 2) Configure through Server (like in tomcat data-source configuration) Thanks & Regards, Saravanan Vijayappan, +91 944883

Re: [OT] Connection Pooling

2007-05-22 Thread Nuwan Chandrasoma
OTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, May 22, 2007 7:34 AM Subject: Re: [OT] Connection Pooling I forgot that I also have a resource-ref entry in my web.xml file... just in case it counts... DB Connection jdbc/akr_db javax.sql.DataSource

Re: [OT] Connection Pooling

2007-05-22 Thread Balazs Michnay
I forgot that I also have a resource-ref entry in my web.xml file... just in case it counts... DB Connection jdbc/akr_db javax.sql.DataSource Container But still nothing :( Thanks, BM - Original Message From: Nuwan Chandrasoma <[EMAIL PROTEC

Re: [OT] Connection Pooling

2007-05-22 Thread Balazs Michnay
--- Original Message From: Nuwan Chandrasoma <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Tuesday, May 22, 2007 2:33:34 PM Subject: Re: [OT] Connection Pooling hi, i just had a look, i think your url is wrong. where is the DB name? eg:- you have it like jdbc:mysql://localhost:

  1   2   3   4   >