473,582 Members | 3,083 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tomcat+MySQL. Intermitent DbcpException: Server configuration denies access to data source

Hi!

I'm not sure if this is the most adequate mySQL list for this post. If not,
please indicat me which one I should use...

I'm using Tomcat 4.1.24 with Apache 2 and MySQL 4.0.13. I have the mysql-
connector-java-2.0.14-bin.jar in commons/lib.
The application runs normally, and usually about once or twice a day I get
this exception org.apache.comm ons.dbcp.DbcpEx ception:
java.sql.SQLExc eption: Server configuration denies access to data source.
Once the exception occurs, it happens for every request and Tomcat needs
restarting.

Before getting this exception, I used to run out of connections, and
therefore I added to the server.xml

<parameter>
<name>logAbando ned</name>
<value>true</value>
</parameter>
<parameter>
<name>removeAba ndoned</name>
<value>true</value>
</parameter>

I guess it could be related...

I include the exception and my server.xml file.

Any help appreciated.
Monica


2003-08-07 15:55:02 StandardWrapper Valve[StructureServle t]: Servlet.service
() for servlet StructureServle t threw exception
org.apache.comm ons.dbcp.DbcpEx ception: java.sql.SQLExc eption: Server
configuration denies access to data source
at org.apache.comm ons.dbcp.Driver ConnectionFacto ry.createConnec tion
(DriverConnecti onFactory.java: 85)
at org.apache.comm ons.dbcp.Poolab leConnectionFac tory.makeObject
(PoolableConnec tionFactory.jav a:184)
at org.apache.comm ons.pool.impl.G enericObjectPoo l.borrowObject
(GenericObjectP ool.java)
at org.apache.comm ons.dbcp.Abando nedObjectPool.b orrowObject
(AbandonedObjec tPool.java:117)
at org.apache.comm ons.dbcp.Poolin gDataSource.get Connection
(PoolingDataSou rce.java:110)
at org.apache.comm ons.dbcp.BasicD ataSource.getCo nnection
(BasicDataSourc e.java:312)
at com.ah.auk.db.D BUtil.getDBConn ection(DBUtil.j ava:54)
at com.ah.auk.db.D B.checkDBCon(DB .java:34)
at com.ah.auk.db.H otelDBReader.ge tHotelsInGeoEnt ry
(HotelDBReader. java:64)
at com.ah.auk.dele gates.CountyHel per.getHotelsPe rCounty
(CountyHelper.j ava:100)
at com.ah.auk.box. CountyListBox.g etCounties(Coun tyListBox.java: 118)
at com.ah.auk.box. CountyListBox.c onfigure(County ListBox.java:63 )
at com.ah.auk.core .BoxManager.con figureBoxes(Box Manager.java:41 )
at com.ah.auk.stru cture.Structure Servlet.doGet
(StructureServl et.java:74)
at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java)
at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java)
at org.apache.cata lina.core.Appli cationFilterCha in.internalDoFi lter
(Unknown Source)
at org.apache.cata lina.core.Appli cationFilterCha in.doFilter(Unk nown
Source)
at com.ah.auk.cont ext.ContextFilt er.doFilter(Con textFilter.java :158)
at org.apache.cata lina.core.Appli cationFilterCha in.internalDoFi lter
(Unknown Source)
at org.apache.cata lina.core.Appli cationFilterCha in.doFilter(Unk nown
Source)
at org.apache.cata lina.core.Stand ardWrapperValve .invoke(Unknown
Source)
at
org.apache.cata lina.core.Stand ardPipeline$Sta ndardPipelineVa lveContext.invo k
eNext(Unknown Source)
at org.apache.cata lina.core.Stand ardPipeline.inv oke(Unknown Source)
at org.apache.cata lina.core.Conta inerBase.invoke (Unknown Source)
at org.apache.cata lina.core.Stand ardContextValve .invoke(Unknown
Source)
at
org.apache.cata lina.core.Stand ardPipeline$Sta ndardPipelineVa lveContext.invo k
eNext(Unknown Source)
at org.apache.cata lina.core.Stand ardPipeline.inv oke(Unknown Source)
at org.apache.cata lina.core.Conta inerBase.invoke (Unknown Source)
at org.apache.cata lina.core.Stand ardContext.invo ke(Unknown Source)
at org.apache.cata lina.core.Stand ardHostValve.in voke(Unknown Source)
at
org.apache.cata lina.core.Stand ardPipeline$Sta ndardPipelineVa lveContext.invo k
eNext(Unknown Source)
at org.apache.cata lina.valves.Err orDispatcherVal ve.invoke(Unkno wn
Source)
at
org.apache.cata lina.core.Stand ardPipeline$Sta ndardPipelineVa lveContext.invo k
eNext(Unknown Source)
at org.apache.cata lina.valves.Err orReportValve.i nvoke(Unknown
Source)
at
org.apache.cata lina.core.Stand ardPipeline$Sta ndardPipelineVa lveContext.invo k
eNext(Unknown Source)
at org.apache.cata lina.core.Stand ardPipeline.inv oke(Unknown Source)
at org.apache.cata lina.core.Conta inerBase.invoke (Unknown Source)
at org.apache.cata lina.core.Stand ardEngineValve. invoke(Unknown
Source)
at
org.apache.cata lina.core.Stand ardPipeline$Sta ndardPipelineVa lveContext.invo k
eNext(Unknown Source)
at org.apache.cata lina.core.Stand ardPipeline.inv oke(Unknown Source)
at org.apache.cata lina.core.Conta inerBase.invoke (Unknown Source)
at org.apache.coyo te.tomcat4.Coyo teAdapter.servi ce
(CoyoteAdapter. java:223)
at org.apache.jk.s erver.JkCoyoteH andler.invoke
(JkCoyoteHandle r.java:261)
at org.apache.jk.c ommon.HandlerRe quest.invoke
(HandlerRequest .java:360)
at org.apache.jk.c ommon.ChannelSo cket.invoke(Cha nnelSocket.java :604)
at org.apache.jk.c ommon.ChannelSo cket.processCon nection
(ChannelSocket. java:562)
at org.apache.jk.c ommon.SocketCon nection.runIt
(ChannelSocket. java:679)
at org.apache.tomc at.util.threads .ThreadPool$Con trolRunnable.ru n
(ThreadPool.jav a:619)
at java.lang.Threa d.run(Thread.ja va:534)
Caused by: java.sql.SQLExc eption: Server configuration denies access to
data source
at com.mysql.jdbc. MysqlIO.init(Un known Source)
at com.mysql.jdbc. Connection.conn ectionInit(Unkn own Source)
at com.mysql.jdbc. jdbc2.Connectio n.connectionIni t(Unknown Source)
at com.mysql.jdbc. Driver.connect( Unknown Source)
at org.apache.comm ons.dbcp.Driver ConnectionFacto ry.createConnec tion
(DriverConnecti onFactory.java: 83)
.... 49 more
SERVER.XML:
----------

<Server port="8005" shutdown="SHUTD OWN" debug="0">
<Listener className="org. apache.catalina .mbeans.ServerL ifecycleListene r"
debug="0"/>
<Listener
className="org. apache.catalina .mbeans.GlobalR esourcesLifecyc leListener"
debug="0"/>

<GlobalNamingRe sources/>

<Service name="Tomcat-Standalone">

<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector className="org. apache.coyote.t omcat4.CoyoteCo nnector"
port="8009" minProcessors=" 5" maxProcessors=" 75"
enableLookups=" true" redirectPort="8 443"
acceptCount="10 " debug="0" connectionTimeo ut="0"
useURIValidatio nHack="false"

protocolHandler ClassName="org. apache.jk.serve r.JkCoyoteHandl er"/>

<Engine name="Standalon e" defaultHost="lo calhost" debug="0">

<Logger className="org. apache.catalina .logger.FileLog ger"
prefix="catalin a_log." suffix=".txt"
timestamp="true "/>

<Host name="localhost " debug="0" appBase="webapp s"
unpackWARs="tru e" autoDeploy="fal se">
<Logger className="org. apache.catalina .logger.FileLog ger"
directory="logs " prefix="localho st_log." suffix=".txt"
timestamp="true "/>
<Context path="" docBase="/home/user/auk" debug="0"
reloadable="fal se" crossContext="f alse">
<Resource name="jdbc/allukmasterDB"
auth="Container "
type="javax.sql .DataSource"/>

<ResourcePara ms name="jdbc/allukmasterDB">
<parameter>
<name>factory </name>
<value>org.apac he.commons.dbcp .BasicDataSourc eFactory</value>
</parameter>
<parameter>
<name>maxActive </name>
<value>500</value>
</parameter>
<parameter>
<name>maxIdle </name>
<value>30</value>
</parameter>
<parameter>
<name>maxWait </name>
<value>10000</value>
</parameter>
<parameter>
<name>usernam e</name>
<value>****** </value>
</parameter>
<parameter>
<name>passwor d</name>
<value>****** *</value>
</parameter>
<parameter>
<name>driverCla ssName</name>
<value>org.gjt. mm.mysql.Driver </value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mys ql://localhost:3306/auk?autoReconne ct=true</value>
</parameter>
<parameter>
<name>logAbando ned</name>
<value>true</value>
</parameter>
<parameter>
<name>removeAba ndoned</name>
<value>true</value>
</parameter>
</ResourceParams>
</Context>

</Host>
</Engine>
</Service>
</Server>


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/my***********...ie.nctu.edu.tw

Jul 19 '05 #1
0 3666

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2454
by: Shireesha | last post by:
Hi all, I am new to this group and wish clear some doubts regarding tomcat server and database connection pooling (Java language). Our group has developed a application using Tomcat 4.x. We need to restart the tomcat everyday and we are unable to know whether it is because of the connection pooling or from the tomcat server is having the...
4
754
by: Subhodini Fernandes | last post by:
A very basic question about Tomcat 3.3.1 configuration - We have an application setup on Tomcat. Daily the service needs to be taken down for backup purpose for 1 hour and we need Tomcat to display a page which says that the system is unavailable as it is being backed up. Can someone please tell me how to achieve this ? Thanks, Subho.
2
5175
by: Steve | last post by:
Hi, I'm trying to design a web server where users can login, initiate long running processes on uploaded files, monitor the progress via a web page and download some results when the process has finished. My first attempt was to do the file processing in the servlet, but the browser timed out eventually! I appreciate this is not the way...
2
3368
by: shanmukhi | last post by:
Hi, I am using tomcat i got a problem with tomcat 5.0.25 as i specified jdk path during installation of tomcat as C:/j2sdk1.4.2_12/jre i tried by specifying path as C:/java/j2sdk1.4.2_12/jre
6
2682
by: shaileshkumar | last post by:
iam able to startup & shutdown tomcat server from the bin directory. But when i have copied the same files on to the desktop,iam unable to do so. my operating system is xp. (i have copied startup.bat,shutdown.bat -MSDOS files). What additional path settings i have to do?. please help.
2
2070
by: gamiravi.d | last post by:
Hi, I have one c++ application to get number of monitors from system. I am calling .exe of c++ application using java api through tomcat server in browser on window vista. right now I have two monitors attached in the system.one primary and other secondary. but when i call c++ application using java api through tomcat server, it lists only...
0
2599
by: ntech | last post by:
hello, i have a problem. i am using the tomcat server for java. my problem is that: i want to use the same tomcat server with client authentication having two certificate authorities. i have been able to use with only one certificate authority. now , i want to use two certificate authorities for two contexts of tomcat. so, can anyone help me...
6
43105
by: Raghunandan24 | last post by:
Hi, Can you tell me how to check if tomcat server is running. Is there a command i can use. Thanks, Raghu
4
2163
by: shivapadma | last post by:
1.I installed apache tomcat. 2.I have the following java servlet import java.io.*; import javax.sevlet.*; import javax.servlet.http.*; public class ser extends HttpServlet {
0
880
by: Marco Bizzarri | last post by:
On Wed, Sep 3, 2008 at 11:06 AM, jorma kala <jjkk73@gmail.comwrote: localhost is not resolved to 127.0.0.1 on your machine. Try changing it to http://127.0.0.1:8080 Regards Marco
0
7886
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7809
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8159
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8312
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7920
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8183
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6569
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5366
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1413
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.