You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/12/31 19:21:50 UTC

DO NOT REPLY [Bug 25844] New: - JNDI Datasource not available to other contexts

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25844>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25844

JNDI Datasource not available to other contexts

           Summary: JNDI Datasource not available to other contexts
           Product: Tomcat 5
           Version: 5.0.16
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Webapps:Administration
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: mtownsen@alumni.calpoly.edu


Using the Administration tool for Tomcat, after adding a JDNI datasource, the 
datasource is not available to other webapps.

I put the JDBC driver into the $TOMCAT_HOME/common/lib directory.  I added the 
datasource under DataSources.  Deploying my webapp and trying to get to the 
datasource gives me an error that it can't find the database driver.  If I 
change the $TOMCAT_HOME/conf/Catalina/localhost/<context>.xml file <Resource> 
tag to <ResourceLink>, I no longer get the above error, but am unable to get a 
connection object from jndi with no errors.

I deployed the same webapp with no changes to JRun4 and did not have any 
problems, so I know the problem isn't with my webapp.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org