re: Broken Pipes
I'm currently running Apache 2.0.43 on a Solaris 8.0 Unix System with Tomcat 4.1.12 and everything had been working fine until recently when we started getting an increase in the number of broken pipe messages in Tomcat. Our dept is programming in Java and we seem to be able to run small apps fine but apps that have large objects are throwing these 'broken pipes' messages right when you log in to the app. The app still comes up but we've noticed that if this behavior goes on long enough, the server will crash. Is there any performance tweak in Tomcat's Server.xml or Web.xml file which can accommodate these large objects or can you redirect? Thx, Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757
re: Easy questions
Hi-I'm using Tomcat 4.1.12 and I have have it running great, thanks. I have my connection pooling set up and working to an Oracle DB. However, are we still using the 'RemoveAbondoned' parameters to close DBCP connections? I have the parameter set for 20 connections and the other day, I had a message regarding exhausting DBCP connections. When I recycled Tomcat, it cleared up but I'm kind of worried that my db connections are not closing. Any suggestions? Thanks, Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757
RE: Easy questions
Hi--I've got the programmers doing that with the closures but can I use it as a backup perhaps in case one of them does a doh? Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 11:45 AM To: Tomcat Users List Subject: RE: Easy questions Hi, Don't rely on removeAbandoned, close your connections yourself (typically in the finally clause of a try/catch construct). Yoav Shapira Millennium Research Informatics -Original Message- From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 1:38 PM To: [EMAIL PROTECTED] Subject: re: Easy questions Importance: High Hi-I'm using Tomcat 4.1.12 and I have have it running great, thanks. I have my connection pooling set up and working to an Oracle DB. However, are we still using the 'RemoveAbondoned' parameters to close DBCP connections? I have the parameter set for 20 connections and the other day, I had a message regarding exhausting DBCP connections. When I recycled Tomcat, it cleared up but I'm kind of worried that my db connections are not closing. Any suggestions? Thanks, Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
RE: re: Tomcat unexpectedly shuts down
Is anybody working this? Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: Bliesner, Christopher P Sent: Tuesday, June 29, 2004 10:37 AM To: Tomcat Users List Subject: FW: re: Tomcat unexpectedly shuts down Importance: High Hello-I am working with version 4.1.12 and today, Tomcat shut down unexpectedly with the following error: 2004-06-29 09:32:07 StandardWrapperValve[invoker]: Servlet.service() for servlet invoker threw exception java.lang.NullPointerException at ewovqa.VqaNcDB.searchVqaNc(VqaNcDB.java:33) at ewovqa.VqaNcSrv.doGet(VqaNcSrv.java:83) at ewovqa.VqaNcSrv.doPost(VqaNcSrv.java:116) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet. java:458) at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:2 16) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:239 6) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:40 5) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:50 8) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:533) at java.lang.Thread.run(Thread.java:484) Is this a BUG or ? Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: re: Tomcat unexpectedly shuts down
Hello-I am working with version 4.1.12 and today, Tomcat shut down unexpectedly with the following error: 2004-06-29 09:32:07 StandardWrapperValve[invoker]: Servlet.service() for servlet invoker threw exception java.lang.NullPointerException at ewovqa.VqaNcDB.searchVqaNc(VqaNcDB.java:33) at ewovqa.VqaNcSrv.doGet(VqaNcSrv.java:83) at ewovqa.VqaNcSrv.doPost(VqaNcSrv.java:116) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet. java:458) at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:2 16) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:239 6) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:40 5) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:50 8) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:533) at java.lang.Thread.run(Thread.java:484) Is this a BUG or ? Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757
RE: DBCP pooling error
Still having trouble with getting the DBCP working with Oracle. I have seemingly followed the link below but I am still getting that NULL error below. Any ideas? Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 2:52 PM To: Bliesner, Christopher P Subject: RE: DBCP pooling error Try this: Web.xml resource-ref res-ref-namejdbc/paso2d/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Check this link out: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples -howto.html -Original Message- From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:46 PM To: [EMAIL PROTECTED] Subject: RE: DBCP pooling error Well...good news is were getting a new error: Name paso2d is not bound in this Context Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:52 PM To: Bliesner, Christopher P Subject: RE: DBCP pooling error Try this: DataSource ds = (DataSource) initContext.lookup(java:comp/env/jdbc/paso2d); -Original Message- From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 11:45 AM To: [EMAIL PROTECTED] Subject: RE: DBCP pooling error Shouldn't need the Factory Tyrex stuff for the 4.12 version but didn't work anyway...but here is what the logs are saying in Catalina.out: Cannot load JDBC driver class 'null' java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource .java:523) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja va:312) at org.apache.jsp.JDBCTest_jsp._jspService(JDBCTest_jsp.java:57) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:204) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:471) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(St Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757
RE: DBCP pooling error
Hi Hans, yes seems like I've got all the I's dotted and the t's crossed...but still can't get the damn thing to load...I've got all the Jars in the tomcat/common/lib and in the classpath and the following are my 3 files. Let me know if you see anything I may have missed: Server.xml: !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=epdata02.elps.bna.boeing.com debug=0 Context path=/examples docBase=examples debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/paso2d auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/paso2d parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameurl/name valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value /parameter parameter nameusername/name valuetracks_adm/value /parameter parameter namepassword/name valueeporaadm/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value3/value Web.xml: resource-ref res-ref-namejdbc/paso2d/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Java code: # cat JDBCTest.jsp html head %@ page errorPage=errorpg.jsp import=java.sql.*, javax.sql.*, oracle.jdbc.*, java.io.*, javax.naming.InitialContext, javax.servlet.*, javax.servlet.http.*, java.util.*, javax.naming.Context % /head body h1JDBC JNDI Resource Test/h1 % Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource) envContext.lookup(jdbc/paso2d); Connection conn = ds.getConnection(); Statement stmt = conn.createStatement(); ResultSet rset = stmt.executeQuery(select * from employee_info;); % table width='600' border='1' tr th align='left'bems_id/th th align='left'last_name/th /tr % while (rset.next()) { % trtd %= rset.getString(1) %/td td %= rset.getString(2) %/td /tr % } conn.close(); initContext.close(); % /table /body /html Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 1:14 PM To: Tomcat Users List Subject: RE: DBCP pooling error Hi, there are 4 parts to this, a pool definition in your server.xml a resource ref in your web.xml a snippet of java code to get the datasource. a bunch of drivers (probably something like classes12.jar) Did you specify the first three of them and included the last one? grtz Hans At 11:23 AM 6/17/2004 -0500, you wrote: Still having trouble with getting the DBCP working with Oracle. I have seemingly followed the link below but I am still getting that NULL error below. Any ideas? Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 2:52 PM To: Bliesner, Christopher P Subject: RE: DBCP pooling error Try this: Web.xml resource-ref res-ref-namejdbc/paso2d/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Check this link out: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-example s -howto.html -Original Message- From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:46 PM To: [EMAIL PROTECTED] Subject: RE: DBCP pooling error Well...good news is were getting a new error: Name paso2d is not bound in this Context Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:52 PM To: Bliesner, Christopher P Subject: RE: DBCP pooling error Try this: DataSource ds = (DataSource) initContext.lookup(java:comp/env/jdbc/paso2d); -Original Message- From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 11:45 AM To: [EMAIL PROTECTED] Subject: RE: DBCP pooling error Shouldn't
RE: DBCP pooling error
I'll check those things...how is the location in the Server.xml? Is it in the right place? Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 1:39 PM To: Tomcat Users List Subject: RE: DBCP pooling error Hmm, the only thing might be that you can leave out tracks_adm from valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value And if you do the lookup though: Context ctx = new InitialContext(); Object datasource = ctx.lookup(java:/comp/env/jdbc/paso2d); ? Greetz Hans ps and part of your server.xml was missing, but i assume you didn't paste all of it (the closing tags etc) At 02:22 PM 6/17/2004 -0500, you wrote: Hi Hans, yes seems like I've got all the I's dotted and the t's crossed...but still can't get the damn thing to load...I've got all the Jars in the tomcat/common/lib and in the classpath and the following are my 3 files. Let me know if you see anything I may have missed: Server.xml: !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=epdata02.elps.bna.boeing.com debug=0 Context path=/examples docBase=examples debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/paso2d auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/paso2d parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameurl/name valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:paso2d/value /parameter parameter nameusername/name valuetracks_adm/value /parameter parameter namepassword/name valueeporaadm/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value3/value Web.xml: resource-ref res-ref-namejdbc/paso2d/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Java code: # cat JDBCTest.jsp %@ page errorPage=errorpg.jsp import=java.sql.*, javax.sql.*, oracle.jdbc.*, java.io.*, javax.naming.InitialContext, javax.servlet.*, javax.servlet.http.*, java.util.*, javax.naming.Context % JDBC JNDI Resource Test % Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource) envContext.lookup(jdbc/paso2d); Connection conn = ds.getConnection(); Statement stmt = conn.createStatement(); ResultSet rset = stmt.executeQuery(select * from employee_info;); % bems_id last_name % while (rset.next()) { % %= rset.getString(1) % %= rset.getString(2) % % } conn.close(); initContext.close(); % Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 1:14 PM To: Tomcat Users List Subject: RE: DBCP pooling error Hi, there are 4 parts to this, a pool definition in your server.xml a resource ref in your web.xml a snippet of java code to get the datasource. a bunch of drivers (probably something like classes12.jar) Did you specify the first three of them and included the last one? grtz Hans At 11:23 AM 6/17/2004 -0500, you wrote: Still having trouble with getting the DBCP working with Oracle. I have seemingly followed the link below but I am still getting that NULL error below. Any ideas? Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 2:52 PM To: Bliesner, Christopher P Subject: RE: DBCP pooling error Try this: Web.xml resource-ref res-ref-namejdbc/paso2d/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Check this link out: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-example s -howto.html -Original Message- From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:46 PM To: [EMAIL PROTECTED] Subject: RE: DBCP pooling error Well...good news is were getting a new error: Name paso2d is not bound in this Context Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From
RE: DBCP pooling error
- From: David Short [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 2:52 PM To: Bliesner, Christopher P Subject: RE: DBCP pooling error Try this: Web.xml resource-ref res-ref-namejdbc/paso2d/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Check this link out: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-example s -howto.html -Original Message- From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:46 PM To: [EMAIL PROTECTED] Subject: RE: DBCP pooling error Well...good news is were getting a new error: Name paso2d is not bound in this Context Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:52 PM To: Bliesner, Christopher P Subject: RE: DBCP pooling error Try this: DataSource ds = (DataSource) initContext.lookup(java:comp/env/jdbc/paso2d); -Original Message- From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 11:45 AM To: [EMAIL PROTECTED] Subject: RE: DBCP pooling error Shouldn't need the Factory Tyrex stuff for the 4.12 version but didn't work anyway...but here is what the logs are saying in Catalina.out: Cannot load JDBC driver class 'null' java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSourc e .java:523) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j a va:312) at org.apache.jsp.JDBCTest_jsp._jspService(JDBCTest_jsp.java:57) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j a va:204) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic a tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil t erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal v e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal v e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato r Base.java:471) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(St Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DBCP pooling error
:52 PM To: Bliesner, Christopher P Subject: RE: DBCP pooling error Try this: Web.xml resource-ref res-ref-namejdbc/paso2d/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Check this link out: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-example s -howto.html -Original Message- From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:46 PM To: [EMAIL PROTECTED] Subject: RE: DBCP pooling error Well...good news is were getting a new error: Name paso2d is not bound in this Context Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:52 PM To: Bliesner, Christopher P Subject: RE: DBCP pooling error Try this: DataSource ds = (DataSource) initContext.lookup(java:comp/env/jdbc/paso2d); -Original Message- From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 11:45 AM To: [EMAIL PROTECTED] Subject: RE: DBCP pooling error Shouldn't need the Factory Tyrex stuff for the 4.12 version but didn't work anyway...but here is what the logs are saying in Catalina.out: Cannot load JDBC driver class 'null' java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSourc e .java:523) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j a va:312) at org.apache.jsp.JDBCTest_jsp._jspService(JDBCTest_jsp.java:57) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j a va:204) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic a tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil t erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal v e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal v e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato r Base.java:471) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(St Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DBCP pooling error
, June 16, 2004 2:52 PM To: Bliesner, Christopher P Subject: RE: DBCP pooling error Try this: Web.xml resource-ref res-ref-namejdbc/paso2d/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Check this link out: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-example s -howto.html -Original Message- From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:46 PM To: [EMAIL PROTECTED] Subject: RE: DBCP pooling error Well...good news is were getting a new error: Name paso2d is not bound in this Context Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:52 PM To: Bliesner, Christopher P Subject: RE: DBCP pooling error Try this: DataSource ds = (DataSource) initContext.lookup(java:comp/env/jdbc/paso2d); -Original Message- From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 11:45 AM To: [EMAIL PROTECTED] Subject: RE: DBCP pooling error Shouldn't need the Factory Tyrex stuff for the 4.12 version but didn't work anyway...but here is what the logs are saying in Catalina.out: Cannot load JDBC driver class 'null' java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSourc e .java:523) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j a va:312) at org.apache.jsp.JDBCTest_jsp._jspService(JDBCTest_jsp.java:57) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j a va:204) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic a tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil t erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal v e.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal v e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato r Base.java:471) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(St Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
re: DBCP pooling error
I'm running Tomcat 4.12 and trying to setup the DBCP. I followed everything outlined on the Jakarta/Tomcat site for setting up a DBCP for Oracle 8.1.7 but I'm still receiving the following message: Cannot load JDBC driver class 'null' Any help would be appreciated, thanks! Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757
RE: DBCP pooling error
Hi David--I have the classes12.jar file there already but never heard of the nls_charset12.jar. What does that help with and where can I get a copy of that. Thx. Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: David Short [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 9:42 AM To: 'Tomcat Users List' Subject: RE: DBCP pooling error I believe you need to move the Oracle classes12.jar and nls_charset12.jar files into your Tomcat\common\lib directory. -Original Message- From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 8:34 AM To: Tomcat Users List Subject: re: DBCP pooling error Importance: High I'm running Tomcat 4.12 and trying to setup the DBCP. I followed everything outlined on the Jakarta/Tomcat site for setting up a DBCP for Oracle 8.1.7 but I'm still receiving the following message: Cannot load JDBC driver class 'null' Any help would be appreciated, thanks! Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
re: Tomcat question
Hello, I have setup Tomcat 4.12 in conjunction with Apache 2.0.43 on a Solaris UNIX box. My question is specific to Tomcat. I know that I can modify the server.xml to include individual logfiles under the webapps directory, both Local logs and (I believe) Catalina logfiles. However, these logfiles are all inclusive of everything that goes on in Tomcat. Is there a way where I could set up individual logs for my developers that are their own personal logfiles. Does Tomcat allow for that? Thanks. Chris Bliesner Lead Oracle DBA El Paso Boeing IDS e-mail: [EMAIL PROTECTED] 915-834-1757 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat question
thanks. Unfortunately, if I setup each developer a different log, they still get the whole logfile from Tomcat. I believe that I would have to setup several virtual hosts in Apache and then setup Tomcat versions for each one. However, I'm going to have one of the developer's try to route their servlet to a separate output.log file in their code. I'll let you know if it works. -Original Message- From: Josh Rehman [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 2:59 PM To: Tomcat Users List Subject: Re: Tomcat question Bliesner, Christopher P wrote: Hello, I have setup Tomcat 4.12 in conjunction with Apache 2.0.43 on a Solaris UNIX box. My question is specific to Tomcat. I know that I can modify the server.xml to include individual logfiles under the webapps directory, both Local logs and (I believe) Catalina logfiles. However, these logfiles are all inclusive of everything that goes on in Tomcat. Is there a way where I could set up individual logs for my developers that are their own personal logfiles. Does Tomcat allow for that? Thanks. You can certianly set a log file per Context. If you can live with a Context per developer, then your problem is solved. It is odd that your specific logs are getting extraneous (global tomcat) bits - normally that stuff is consumed by the top level logger and doesn't pass down to the overriding loggers. -- Josh Rehman citysearch.com 213.739.3559 - 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]
RE: Tomcat question
Thanks for your help :) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 2:55 PM To: Tomcat Users List Subject: RE: Tomcat question Howdy, I have setup Tomcat 4.12 in conjunction with Apache 2.0.43 on a Solaris UNIX box. My question is specific to Tomcat. I know that I can modify the server.xml to include individual logfiles under the webapps directory, both Local logs and (I believe) Catalina logfiles. However, these logfiles are all inclusive of everything that goes on in Tomcat. Is there a way where I could set up individual logs for my developers that are their own personal logfiles. Does Tomcat allow for that? Thanks. You can nest a Logger element inside a Host, Engine, or Context. If you configure your server such that each developer has his own Host, Context(s), or Engine, then each can have their own Logger. Alternatively, and many people do this for convenience, each developer can have his/her own Tomcat instance. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]