[Bug 1012794] Re: DataSource JNDI lookup with javax.naming.Name failed

James Page james.page at ubuntu.com
Thu Jul 12 21:34:05 UTC 2012


** Description changed:

- I realize that Tomcat was just upgraded to 7.0.26, but there are a few
- fixes in Tomcat 7.0.27, specifically issue 52830
- (https://issues.apache.org/bugzilla/show_bug.cgi?id=52830) which causes
- a big problem for people, like me, who are trying to use the Tomcat
- connection pool with Hibernate 4.x, which fails without this fix.
+ [Impact]
+ Users of tomcat7 are unable to deploy applications which use Name instead of String to complete JNDI lookups. This includes applications which make use of the most recent version of the popular hibernate ORM framework.
+ 
+ [Test Case]
+ sudo apt-get install tomcat7 libhsqldb-java
+ sudo ln -s /usr/share/hsqldb.jar /usr/share/tomcat7/lib/hsqldb.jar
+ sudo wget "https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1012794/+attachment/3214186/+files/ubuntu-test.war" -O /var/lib/tomcat7/webapps/ubuntu-test.war
+ sudo service tomcat7 restart
+ 
+ goto : http://localhost:8080/ubuntu-test
+ >> Big stack trace.....
+ 
+ [Regression Potential]
+ Minimal - the change is isolated to JNDI lookups by Name and is in later versions of tomcat7.
+ 
+ >> Original Bug Report <<
+ I realize that Tomcat was just upgraded to 7.0.26, but there are a few fixes in Tomcat 7.0.27, specifically issue 52830 (https://issues.apache.org/bugzilla/show_bug.cgi?id=52830) which causes a big problem for people, like me, who are trying to use the Tomcat connection pool with Hibernate 4.x, which fails without this fix.
  
  Currently I updated my deployment by hand, but I would much rather have
  a proper package.  I can't find a PPA, and my skill set is nil in terms
  of the ability to create my own PPA for this.  Many thanks!

** Attachment added: "ubuntu-test.war"
   https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1012794/+attachment/3221552/+files/ubuntu-test.war

** Attachment removed: "Sample WAR file to demonstrate the issue/validate the fix"
   https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1012794/+attachment/3214186/+files/ubuntu-test.war

** Description changed:

  [Impact]
  Users of tomcat7 are unable to deploy applications which use Name instead of String to complete JNDI lookups. This includes applications which make use of the most recent version of the popular hibernate ORM framework.
  
  [Test Case]
  sudo apt-get install tomcat7 libhsqldb-java
  sudo ln -s /usr/share/hsqldb.jar /usr/share/tomcat7/lib/hsqldb.jar
- sudo wget "https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1012794/+attachment/3214186/+files/ubuntu-test.war" -O /var/lib/tomcat7/webapps/ubuntu-test.war
+ sudo wget "https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1012794/+attachment/3221552/+files/ubuntu-test.war" -O /var/lib/tomcat7/webapps/ubuntu-test.war
  sudo service tomcat7 restart
  
  goto : http://localhost:8080/ubuntu-test
  >> Big stack trace.....
  
  [Regression Potential]
  Minimal - the change is isolated to JNDI lookups by Name and is in later versions of tomcat7.
  
  >> Original Bug Report <<
  I realize that Tomcat was just upgraded to 7.0.26, but there are a few fixes in Tomcat 7.0.27, specifically issue 52830 (https://issues.apache.org/bugzilla/show_bug.cgi?id=52830) which causes a big problem for people, like me, who are trying to use the Tomcat connection pool with Hibernate 4.x, which fails without this fix.
  
  Currently I updated my deployment by hand, but I would much rather have
  a proper package.  I can't find a PPA, and my skill set is nil in terms
  of the ability to create my own PPA for this.  Many thanks!

** Description changed:

  [Impact]
  Users of tomcat7 are unable to deploy applications which use Name instead of String to complete JNDI lookups. This includes applications which make use of the most recent version of the popular hibernate ORM framework.
  
  [Test Case]
  sudo apt-get install tomcat7 libhsqldb-java
  sudo ln -s /usr/share/hsqldb.jar /usr/share/tomcat7/lib/hsqldb.jar
  sudo wget "https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1012794/+attachment/3221552/+files/ubuntu-test.war" -O /var/lib/tomcat7/webapps/ubuntu-test.war
  sudo service tomcat7 restart
  
  goto : http://localhost:8080/ubuntu-test
- >> Big stack trace.....
+ >> Big stack trace including "javax.naming.NamingException: This context must be accessed through a java: URL"
  
  [Regression Potential]
  Minimal - the change is isolated to JNDI lookups by Name and is in later versions of tomcat7.
  
  >> Original Bug Report <<
  I realize that Tomcat was just upgraded to 7.0.26, but there are a few fixes in Tomcat 7.0.27, specifically issue 52830 (https://issues.apache.org/bugzilla/show_bug.cgi?id=52830) which causes a big problem for people, like me, who are trying to use the Tomcat connection pool with Hibernate 4.x, which fails without this fix.
  
  Currently I updated my deployment by hand, but I would much rather have
  a proper package.  I can't find a PPA, and my skill set is nil in terms
  of the ability to create my own PPA for this.  Many thanks!

** Description changed:

  [Impact]
  Users of tomcat7 are unable to deploy applications which use Name instead of String to complete JNDI lookups. This includes applications which make use of the most recent version of the popular hibernate ORM framework.
  
  [Test Case]
  sudo apt-get install tomcat7 libhsqldb-java
  sudo ln -s /usr/share/hsqldb.jar /usr/share/tomcat7/lib/hsqldb.jar
  sudo wget "https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1012794/+attachment/3221552/+files/ubuntu-test.war" -O /var/lib/tomcat7/webapps/ubuntu-test.war
  sudo service tomcat7 restart
  
  goto : http://localhost:8080/ubuntu-test
  >> Big stack trace including "javax.naming.NamingException: This context must be accessed through a java: URL"
  
+ when fixed:
+ 
+ "Message Test
+ 
+     Hello, world!
+     It's Alive!!!"
+ 
+ 
  [Regression Potential]
  Minimal - the change is isolated to JNDI lookups by Name and is in later versions of tomcat7.
  
  >> Original Bug Report <<
  I realize that Tomcat was just upgraded to 7.0.26, but there are a few fixes in Tomcat 7.0.27, specifically issue 52830 (https://issues.apache.org/bugzilla/show_bug.cgi?id=52830) which causes a big problem for people, like me, who are trying to use the Tomcat connection pool with Hibernate 4.x, which fails without this fix.
  
  Currently I updated my deployment by hand, but I would much rather have
  a proper package.  I can't find a PPA, and my skill set is nil in terms
  of the ability to create my own PPA for this.  Many thanks!

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

Title:
  [SRU] DataSource JNDI lookup with javax.naming.Name failed

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



More information about the Ubuntu-server-bugs mailing list