On 6/27/2013 11:29 AM, Narahari 'n' Savitha wrote:
The link explains my issue on hand. It was easier to put it there so I
could explain better instead of being inline. Kindly excuse.
https://docs.google.com/document/d/1xHcHGof8ERugFUimHUuiYTtmvZSqxChAm1NHuxMTS5k/edit?usp=sharing
Sigh,
[begin rant]
I know you think it's easier to write your message in google docs and
then paste a link, but for everyone else it's not.
If you wish to edit a mail message beforehand, how about using an
editor, and then cutting and pasting once you've edited the text
appropriately?
[almost end rant]
In your document, you failed to mention Tomcat version, JRE version, or
OS version. I'm going to assume that from the following path
/opt/narahari/paas/webapps
that you're running on some sort of Linux / UNIX / MacOS (ie, not Windows).
I'm going to further assume that you're running a version of Tomcat
downloaded from tomcat.apache.org (probably a bad assumption), and that
you're running some variant of Tomcat 7 (probably a less bad assumption).
In the future, these details should be included in the mail message, and
not in some document linked in the mail message. The document may go
away in the future, so that archived mail messages will then become
useless to anyone else.
[end rant]
For those people who didn't read the linked document:
Here's what you tried:
<Context docBase="/opt/adp/paas/webapps/ptl"
antiResourceLocking="false" />
<Context docBase="/opt/adp/paas/webapps/ptl#cts"
antiResourceLocking="false" />
And your complaint is:
sh$>/opt/narahari/paas/adp-tomcat/work/Catalina/localhost/ptl_cts
/WEB-INF> ll
total 8
drwxr-x--- 4 virtual wheel 4096 2013-06-27 14:01 classes
drwxr-x--- 2 virtual wheel 4096 2013-06-27 14:01 lib
None of the other stuff is getting unpacked.
1. Why are you looking in the WORK folder?
2. Why are you using such a convoluted way of deploying your apps?
3. Are you running your Tomcat as root? (don't do this)
From the fine Tomcat documentation
http://tomcat.apache.org/tomcat-7.0-doc/config/host.html
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html
there are two things to note.
1. docBase is only valid if it points to a location outside of the
Host's appBase
Failure to do so will result in partial deployments, double deployments,
and all sorts of unpleasantness. I haven't actually tried breaking the
rules, so I don't know exactly what happens.
2. WAR files outside of appBase are not exploded
This was changed in Tomcat 7 (see the following -
http://tomcat.apache.org/migration-7.html#Deployment)
In short, the docBase must point to either the WAR file or an exploded
directory.
Again, if a docBase is used, it must point to a location outside of the
Host's appBase. If it points to a directory, the web application must be
exploded. Otherwise, it must point to a WAR file, and the application
will be run from that WAR file.
This has been discussed before on the mailing list as well.
. . . just my (wrong side of bed mood) two cents
/mde/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org