being the only change). I'm hesitant to raise a bug for fear of being
flamed again!
Thanks,
Paul.
2008/9/3 Caldarale, Charles R [EMAIL PROTECTED]:
From: Paul Pepper [mailto:[EMAIL PROTECTED]
Subject: Problem with JNDI environment entry resources
Can anyone suggest what I might have missed
Martin,
Thanks for the suggestion, though I think there may have been some
misunderstanding. I'm attempting to access a simple java.lang.String,
not a DataSource. Environment/ elements are used to place String
resources in an application's environment, not Resource/ elements,
AFAIK.
Paul.
Tim,
The META-INF/context.xml should be placed within your application's
docBase. I suspect that is likely to be ~/public_html/myapp/META-INF,
where ~/public_html/ is the appBase for the localhost (as you've
described it) and ~/public_html/myapp is the docBase of your
application.
Paul.
I'll have to check the docs again. However, docBase is only legal when the
webapp is stored outside of the Host
appBase directory. Otherwise, you risk ending up with double deployment.
I don't see docBase described that way in the docs - at this moment
I'm referring to
2008/9/3 David Smith [EMAIL PROTECTED]:
There's an implicit association based on the context path. myWebApp.xml in
conf/Catalina/localhost is implicitly associated with the webapp myWebApp in
the webapps directory, whether it be as a .war or expanded folder.
Yes, I agree that the docs read
A discussion regarding the use of the Context/ element, within
server.xml and $CATALINA_BASE/conf/[enginename]/[hostname]/, grew from
a thread with subject Problem with JNDI environment entry resources:
http://marc.info/?l=tomcat-userm=122045686313688w=2
In that thread the question seemed to boil
className=org.apache.catalina.startup.UserConfig
directoryName=public_html
homeBase=/home
userClass=org.apache.catalina.startup.PasswdUserDatabase /
set up.
Thanks again - this list is very helpful!
-Tim
Paul Pepper wrote:
Tim,
The META-INF
Tomcat 6.0.18
java version 1.6.0_06 (sun-java6-jdk on Ubuntu 8.04 i386)
I'm attempting to create environment entry resources, of type
java.lang.String, within conf/server.xml and access them from web
applications using JNDI. I've created a bare-bones test web app,
jndistring, with the following