473,699 Members | 2,480 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 3677

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

Similar topics

0
2460
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 problem internally. We implemented the connection pooling mechanism from the following link
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
5177
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 to solve it! I was wondering if there is a common mechanism for doing this sort of thing
2
3376
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
2686
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
2079
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 one primary monitor. i have some scenario for behavoiur of such application:
0
2603
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 in this matter. Thanks, Ntech
6
43131
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
2173
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
886
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
8703
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8623
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9050
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8935
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8893
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6540
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.