AbandonedObjectPool is used error

2009-10-20 Thread VijayKS

Hi Any one help me out this problem .
 I am using jstl tags to access database. I am getting the following error 

AbandonedObjectPool is used
(org.apache.commons.dbcp.abandonedobjectp...@16eb6bc)
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 300
-- 
View this message in context: 
http://www.nabble.com/AbandonedObjectPool-is-used-error-tp25973799p25973799.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Datasource configuration issue

2009-10-13 Thread VijayKS

Hi, I am using Tomcat 5.0.

I have one application test.
In test i created META-INF folder and put context.xml file.Here is the
content
context
resource name=jdbc/PDBDataSource scope=Shareable
type=javax.sql.DataSource
resourceparams name=jdbc/PDBDataSource
parameter 
 namefactory/name 
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
nameurl/name
valuejdbc:sqlserver://localhost;DatabaseName=test;SelectMethod=cursor;/value
/parameter
parameter
namedriverClassName/name
valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
/parameter
parameter
nameusername/name 
valuesa/value
/parameter
parameter
namepassword/name
valuesa/value
/parameter
parameter
/resourceparams
/resource 
/context

in WEB-INF\web.xml file i have the entires
web-app  
resource-ref
res-ref-namejdbc/PDBDataSource
/res-ref-name
 res-type
javax.sql.DataSource
  /res-type
  res-auth
Container
  /res-auth
/resource-ref
/web-app

in my jsp code i have the code 
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
DataSource ds = (DataSource) envCtx.lookup(jdbc/PDBDataSource);
Connection conn = ds.getConnection();
conn.close();

I am getting the follwoing error when accessing my page

javax.servlet.ServletException: Cannot create JDBC driver of class '' for
connect URL 'null'

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



Help me to resolve this :confused:
-- 
View this message in context: 
http://www.nabble.com/Datasource-configuration-issue-tp25868686p25868686.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re Directing tomcat console out put to log files

2009-10-09 Thread VijayKS

Hi I m using Tomcat 4.1. 
I try to redirect System.out to  log files, but unable to do it.
Help me to resolve this issue
-- 
View this message in context: 
http://www.nabble.com/Re-Directing-tomcat-console-out-put-to-log-files-tp25818644p25818644.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Re Directing tomcat console out put to log files

2009-10-09 Thread VijayKS



VijayKS wrote:
 
 Hi I m using Tomcat 4.1. 
 I try to redirect System.out to  log files, but unable to do it.
 Help me to resolve this issue
 


I installed the exe version of tomcat 4.1 .
There is no catalina.log files present.
localhost_log.2009-10-09.txt This is the file name is in 
C:\tomcat4.1\logs\ folder.
But the System.out. messages not written in this file and it is written in
console window
-- 
View this message in context: 
http://www.nabble.com/Re-Directing-tomcat-console-out-put-to-log-files-tp25818644p25821140.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org