tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33360] - Cannot use JNDI datasources in ROOT context
Date Wed, 02 Feb 2005 15:59:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33360>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33360


remm@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From remm@apache.org  2005-02-02 16:59 -------
The right path to be used in server.xml is "", not "/". What you did would just
create another webapp which would never be accessed, while your webapp would be
deployed by the auto deployer, without your parameters. We used to have an
example in server.xml for this special case (<Context path="" docBase="ROOT"
debug="0"/>), but it's removed as we recommend not using server.xml for
declaring contexts.

Try to avoid using Context elements in server.xml except for webapps which are
outside of the Host appBase.

Instead, as you mention, use $CATALINA_HOME/conf/Catalina/localhost/ROOT.xml or
whatever_your_war_is.war/META-INF/context.xml, but don't use either docBase or
path (which would be ignored anyway) on your Context element.

Note: The AJP connector is not needed, if you don't use it. (makes sense, I suppose)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message