[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2012-10-26 Thread Mark Thornton
This problem has resurfaced in tomcat7 with identical symptoms. The
simplest fix is to use the new tomcat connection pool.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in Ubuntu.
https://bugs.launchpad.net/bugs/283852

Title:
  tomcat6 does not include tomcat-dbcp.jar

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tomcat6/+bug/283852/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2009-01-28 Thread Launchpad Bug Tracker
This bug was fixed in the package tomcat6 - 6.0.18-0ubuntu3.1

---
tomcat6 (6.0.18-0ubuntu3.1) intrepid-proposed; urgency=low

  * patches/use-commons-dbcp.patch: Change default DBCP factory class
to org.apache.commons.dbcp.BasicDataSourceFactory (LP: #283852)
  * tomcat6.dirs, tomcat6.postinst, default_root/index.html: Create
Catalina/localhost in /etc/tomcat6 and make it writeable by the tomcat6
group, so that autodeploy and admin webapps work as expected (LP: #294277)

 -- Thierry CarrezFri, 05 Dec 2008
09:58:55 +0100

** Changed in: tomcat6 (Ubuntu Intrepid)
   Status: Fix Committed => Fix Released

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2009-01-20 Thread Martin Pitt
** Tags added: verification-done

** Tags removed: verification-needed

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2009-01-20 Thread Thierry Carrez
Ran test case with current tomcat6-6.0.18-0ubuntu3: FAIL
Ran test case with proposed tomcat6-6.0.18-0ubuntu3.1: SUCCESS
Upgrade/removal/purge tests: SUCCESS

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2009-01-20 Thread Martin Pitt
Accepted into intrepid-proposed, please test and give feedback here.
Please see https://wiki.ubuntu.com/Testing/EnableProposed for
documentation how to enable and use -proposed. Thank you in advance!

** Changed in: tomcat6 (Ubuntu Intrepid)
   Status: Confirmed => Fix Committed

** Tags added: verification-needed

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2009-01-19 Thread Thierry Carrez
In fact it is uploaded, it's just sitting in the Unapproved queue at the moment.
https://edge.launchpad.net/ubuntu/intrepid/+queue?queue_state=1&queue_text=tomcat6

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2009-01-17 Thread Thierry Carrez
It is still stuck on sponsoring. I'll try to push this next week to
someone that can upload it.

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2009-01-13 Thread Craig
Any news on this going to Intrepid?

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2008-12-16 Thread Thierry Carrez
Debdiff for sponsoring posted on
https://bugs.launchpad.net/ubuntu/+source/tomcat6/+bug/294277/comments/10

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2008-12-15 Thread Martin Pitt
SRU Ack, please upload.

** Changed in: tomcat6 (Ubuntu Intrepid)
   Status: New => Confirmed

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2008-12-10 Thread Thierry Carrez
Intrepid SRU Report

Bug impact: Tomcat 6 currently points to a default DBCP factory class
that isn't provided in the package
(org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory). That makes all web
applications that don't specify a DBCP factory class fail. We provide
org.apache.commons.dbcp.BasicDataSourceFactory to that effect, so Tomcat
6 should use that class by default.

Versions affected: Intrepid (tomcat6 didn't exist before)
Fix in development branch: Was fixed in 6.0.18-0ubuntu4 (see comment 10)

Minimal patch: see comment 12 above. The patch does the same thing the
Tomcat 5.5 package always did, and fixes the shipped documentation
accordingly. If accepted, this will be released as a combined SRU with
bug 294277.

TEST CASE
$ Get the two attached files (test-dbcp.tar and test-dbcp.xml)
$ sudo apt-get install tomcat6-examples
$ sudo /etc/init.d/tomcat6 stop
$ cd /var/lib/tomcat6/webapps && sudo tar xvf ~/test-dbcp.tar
$ sudo cp ~/test-dbcp.xml /etc/tomcat6/Catalina/localhost
$ sudo /etc/init.d/tomcat6 start
let a few seconds pass, then access http://localhost:8080/test-dbcp

With an unpatched Tomcat 6 you get an exception page, with root cause:
javax.servlet.ServletException: javax.naming.NamingException: Could not create 
resource factory instance [Root exception is 
java.security.AccessControlException: access denied 
(java.lang.RuntimePermission accessClassInPackage.org.apache.tomcat.dbcp.dbcp)]
This shows you're trying to access the (not provided) 
org.apache.tomcat.dbcp.dbcp package

With a patched Tomcat6 you get the JSP ("Sample Application JSP Page")
displayed correctly.

Regression potential:
People that downloaded tomcat-dbcp.jar (which contains the missing 
org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory) from the ASF website as a 
workaround to this bug might, after this update, use 
org.apache.commons.dbcp.BasicDataSourceFactory instead. This shouldn't trigger 
any issue since the two factories should act the same.

** Attachment added: "test-dbcp.tar"
   http://launchpadlibrarian.net/20344691/test-dbcp.tar

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2008-12-10 Thread Thierry Carrez
The second file needed for the test case.

** Attachment added: "test-dbcp.xml"
   http://launchpadlibrarian.net/20344697/test-dbcp.xml

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2008-12-05 Thread Max
I'm afraid that I can't.  I'm not a Java webapp developer and the
application that I found the bug with is commercial.

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2008-12-05 Thread Thierry Carrez
Minimal patch for Intrepid SRU

** Attachment added: "283852-intrepid-SRU.diff"
   http://launchpadlibrarian.net/20228493/283852-intrepid-SRU.diff

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2008-12-05 Thread Thierry Carrez
Max, Richard & others, I need your help: in order to issue an official
update for Intrepid, we need an easy test case to demonstrate the bug in
the current version and show that the proposed update fixes it.

Could you provide a minimal example webapp that could be used by
verifiers ? Thanks in advance for your help.

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2008-11-27 Thread Launchpad Bug Tracker
This bug was fixed in the package tomcat6 - 6.0.18-0ubuntu4

---
tomcat6 (6.0.18-0ubuntu4) jaunty; urgency=low

  * tomcat6.init, tomcat6.postinst, tomcat6.dirs, tomcat6.default,
README.debian: Use /tmp/tomcat6-temp instead of /var/lib/tomcat6/temp as
the JVM temporary directory and clean it at each restart (LP: #287452)
  * policy/04webapps.policy: add rules to allow usage of java.io.tmpdir
  * tomcat6.init, rules: Do not use TearDown, as this results in
LifecycleListener callbacks in webapps being bypassed (LP: #299436)
  * rules: Compile at Java 1.5 level to allow usage of Java 5 JREs
(LP: #286427)
  * control, rules, libservlet2.5-java-doc.install,
libservlet2.5-java-doc.links: New libservlet2.5-java-doc package ships
missing Servlet/JSP API documentation (LP: #279645)
  * patches/use-commons-dbcp.patch: Change default DBCP factory class
to org.apache.commons.dbcp.BasicDataSourceFactory (LP: #283852)
  * tomcat6.dirs, tomcat6.postinst, default_root/index.html: Create
Catalina/localhost in /etc/tomcat6 and make it writeable by the tomcat6
group, so that autodeploy and admin webapps work as expected (LP: #294277)
  * patches/disable-apr-loading.patch: Disable APR library loading until we
properly provide it.
  * patches/disable-ajp-connector: Do not load AJP13 connector by default
(LP: #300697)
  * rules: minor fixes to prevent build being called twice.

 -- Thierry Carrez <[EMAIL PROTECTED]>   Thu, 27 Nov 2008
12:47:42 +

** Changed in: tomcat6 (Ubuntu)
   Status: In Progress => Fix Released

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2008-11-27 Thread Thierry Carrez
Fix included in proposed new version @
https://bugs.launchpad.net/ubuntu/+source/tomcat6/+bug/294277/comments/4

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2008-11-27 Thread Max
Yes, that version does fix the problem for me.  After installing it from
your ppa, I was able to remove tomcat-dbcp.jar from my system.  Thanks
for all your hard work!

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2008-11-25 Thread Thierry Carrez
tomcat6 6.0.18-0ubuntu3.1~ppa1 published at
https://launchpad.net/~tcarrez/+archive

Could those interested confirm if this version fixes the issue for them
(i.e they don't need to copy tomcat-dbcp.jar anymore) ? I need some
validation before pushing this to the archives.

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2008-11-25 Thread Thierry Carrez
Richard: good catch ! Tomcat 5.5 indeed changed the default from
upstream, we should at least do the same for Tomcat 6. This might solve
most of the cases where a tomcat-dbcp.jar copy was needed.

I'll need you guys to validate the fix : I'll soon provide a tomcat6
build for intrepid in my PPA so that you can test if this is sufficient
to fix the issue in your case.

** Changed in: tomcat6 (Ubuntu)
 Assignee: (unassigned) => Thierry Carrez (tcarrez)
   Status: Confirmed => In Progress

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2008-11-24 Thread Richard Andreu
In Tomcat 5.5 the default database connection pool factory class is
'org.apache.commons.dbcp.BasicDataSourceFactory', included in commons-
dbcp.jar. So, the applications that didn't specify the dbcp factory
class (the great majority, I guess) worked with no problems using tomcat
5.5 without tomcat-dbcp.jar in the 'commons/lib' folder. The problem is
that starting from Tomcat 6, the default database connection pool
factory class is 'org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory'
included in tomcat-dbcp.jar, so all the applications that expects to
work with Tomcat's default  database connection pool factory will fail
if tomcat-dbcp.jar is not in the classpath.

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 283852] Re: tomcat6 does not include tomcat-dbcp.jar

2008-11-05 Thread Vincent
Hi,

I confirm this bug.

I had to add the missing jar tomcat-dbcp.jar manually copied from another 
tomcat 6.
After adding it was successfully loading datasource settings.
And my webapp is fully working.

To solve the problem waiting for a fix, just get the tomcat-dbcp.jar
from another tomcat 6 and copy it under /usr/share/tomcat6/lib.

-- 
tomcat6 does not include tomcat-dbcp.jar
https://bugs.launchpad.net/bugs/283852
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs