Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2007

Tip: Looking for answers? Try searching our database.

jdbc/mypool webserver 7

Thread view: 
gert - 04 Oct 2007 06:16 GMT
This is how my sun-web.xml looks like

{code}<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD
Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/
appserver/dtds/sun-web-app_2_5-0.dtd">
<sun-web-app error-url="">
 <context-root>/warTest</context-root>
 <resource-ref>
   <res-ref-name>jdbc/mypool</res-ref-name>
   <jndi-name>jdbc/mysql</jndi-name>
 </resource-ref>
</sun-web-app>{code}

and this is how my code looks like

http://appwsgi.googlecode.com/svn/trunk/sun/classes/Query.java

Now how do i actually make a mysql pool on a webserver 7 :)
gert - 04 Oct 2007 06:22 GMT
> This is how my sun-web.xml looks like
>
[quoted text clipped - 15 lines]
>
> Now how do i actually make a mysql pool on a webserver 7 :)

wait a minute i found something, i get back to you if it doesn't
work :)

http://blogs.sun.com/jyrivirkki/entry/using_mysql_with_web_server
gert - 04 Oct 2007 07:46 GMT
> > This is how my sun-web.xml looks like
>
[quoted text clipped - 20 lines]
>
> http://blogs.sun.com/jyrivirkki/entry/using_mysql_with_web_server

what does this mean ?

PWC4216: Name mysql is not bound in this Context
gert - 04 Oct 2007 09:17 GMT
> > > This is how my sun-web.xml looks like
>
[quoted text clipped - 24 lines]
>
> PWC4216: Name pool is not bound in this Context

This are all my conf and servlet files

http://appwsgi.googlecode.com/svn/trunk/sun/sun-web.xml
http://appwsgi.googlecode.com/svn/trunk/sun/web.xml
http://appwsgi.googlecode.com/svn/trunk/server.xml (part of it)
http://appwsgi.googlecode.com/svn/trunk/sun/classes/Query.java
gert - 05 Oct 2007 04:35 GMT
http://forum.java.sun.com/thread.jspa?messageID=9906501&#9906501

Actually I think I am finally getting the picture here what is going
on.

The driver issue was caused by a second driver located inside my web/
lib folder of the web application it self that couldn't be removed
without stopping the service manually. After removing and starting the
service again I got a pool of mysql connections.

But my pool runs out of connections resulting in a "RSR0009: Resource
not available for pool [jdbc/mysql]. Wait-time expired" error

So my servlet code has some issues I think ?

http://appwsgi.googlecode.com/svn/trunk/sun/classes/Query.java

Ps Maybe I also need to put some extra properties that will do some
sort of garbage collection on my connections :) ?
gert - 05 Oct 2007 06:55 GMT
> http://forum.java.sun.com/thread.jspa?messageID=9906501 
>
[quoted text clipped - 15 lines]
> Ps Maybe I also need to put some extra properties that will do some
> sort of garbage collection on my connections :) ?

works now i think :)

http://forum.java.sun.com/thread.jspa?threadID=5222730


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.