tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Propes, Barry L " <barry.l.pro...@citi.com>
Subject RE: DB connection error -Tomcat 6 config
Date Fri, 19 Mar 2010 17:59:40 GMT
Did so, and still getting errors.

If I reference the factory ( org.apache.tomcat.dbcp.dbcp.DataSourceConnectionFactory) - I
get -

org.apache.jasper.JasperException: javax.servlet.ServletException: javax.naming.NamingException:
Could not create resource factory instance [Root exception is java.lang.InstantiationException:
org.apache.tomcat.dbcp.dbcp.DataSourceConnectionFactory]
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)

javax.servlet.ServletException: javax.naming.NamingException: Could not create resource factory
instance [Root exception is java.lang.InstantiationException: org.apache.tomcat.dbcp.dbcp.DataSourceConnectionFactory]
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
	org.apache.jsp.chgctrl_005fdetails_jsp._jspService(chgctrl_005fdetails_jsp.java:949)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

javax.naming.NamingException: Could not create resource factory instance [Root exception is
java.lang.InstantiationException: org.apache.tomcat.dbcp.dbcp.DataSourceConnectionFactory]
	org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:102)
	javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)

java.lang.InstantiationException: org.apache.tomcat.dbcp.dbcp.DataSourceConnectionFactory
	java.lang.Class.newInstance0(Unknown Source)
	java.lang.Class.newInstance(Unknown Source)


Without the factory reference in the context.xml file, I get the reference to the Oracle driver
error and class not found, which is impossible, because the intial page I click to before
that references it and pulls back the data from using it.

org.apache.jasper.JasperException: javax.servlet.ServletException: org.apache.tomcat.dbcp.dbcp.SQLNestedException:
Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)

javax.servlet.ServletException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load
JDBC driver class 'oracle.jdbc.driver.OracleDriver'
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp


org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
	org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)
	org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
	org.apache.jsp.chgctrl_005fdetails_jsp._jspService(chgctrl_005fdetails_jsp.java:1


There is another copy of the tomcat-dbcp.jar in my JRE lib directory. I don't even recall
putting it, or the others in there.
Tomcat doesn't copy files there, too does it? 

That would seem odd.

I'll remove those.

Other than than, I'm still quite baffled at this.

-----Original Message-----
From: 2smart4u [mailto:rc46fi@googlemail.com] 
Sent: Friday, March 19, 2010 12:12 PM
To: Tomcat Users List
Subject: Re: DB connection error -Tomcat 6 config

just a quick thought:

have you tried installing Tomcat into a directory where it's name is
*not* containing any spaces?

cheers

gregor
--
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi

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


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


Mime
View raw message