Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > About xml loading in tomcat webapps.

Reply
Thread Tools

About xml loading in tomcat webapps.

 
 
ramakrishna
Guest
Posts: n/a
 
      01-18-2007
Hi all,
Iam using xml type of loading in tomcat webapps.

Iam using tomcat 5.0.28 webserver.Iam placing thread.xml file
in webapps directory with follwing code.

<Context path="/thread" docBase="applications/thread" debug="0"
reloadable="true">
<Manager saveOnRestart="false"
pathname="/weDoNotWantToPersist" />
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="thread_" suffix=".log" timestamp="true"/>

</Context>

Iam placing my directory in webapps/applications/thread
directory. Problem is tomcat not loading my thread application in
"applictions/thread" folder.

But when iam removing thread.xml and copy the "thread" folder in
"webapps" directory.It is loading the application.

Please tell the reason why it is not loading the when iam using
thread.xml in "webapps" directory.
i.e Does I need to set any tag in server.xml or any other file.

Thanks In Advance.

 
Reply With Quote
 
 
 
 
Manish Pandit
Guest
Posts: n/a
 
      01-18-2007

ramakrishna wrote:
> Hi all,
> Iam using xml type of loading in tomcat webapps.
>
> Iam using tomcat 5.0.28 webserver.Iam placing thread.xml file
> in webapps directory with follwing code.
>
> <Context path="/thread" docBase="applications/thread" debug="0"
> reloadable="true">
> <Manager saveOnRestart="false"
> pathname="/weDoNotWantToPersist" />
> <Logger className="org.apache.catalina.logger.FileLogger"
> prefix="thread_" suffix=".log" timestamp="true"/>
>
> </Context>
>
> Iam placing my directory in webapps/applications/thread
> directory. Problem is tomcat not loading my thread application in
> "applictions/thread" folder.
>
> But when iam removing thread.xml and copy the "thread" folder in
> "webapps" directory.It is loading the application.
>
> Please tell the reason why it is not loading the when iam using
> thread.xml in "webapps" directory.
> i.e Does I need to set any tag in server.xml or any other file.
>
> Thanks In Advance.


I believe you need to set the context in server.xml. Also, I am not
sure what you are trying to achieve by thread.xml. For tomcat to pick
up the application, you need to have a web.xml deployment descriptor.
So, in your case, it'd be $TOMCAT_HOME/webapps/threads/WEB-INF/web.xml.
If there is no WEB-INF or WEB-INF/web.xml, I do not think tomcat will
even consider your app to be deployable.

-cheers,
Manish

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xml.parsers.expat loading xml into a dict and whitespace kaens Python 6 05-23-2007 11:44 AM
Re: xml.parsers.expat loading xml into a dict and whitespace kaens Python 0 05-23-2007 06:15 AM
Tomcat 5 runs what Tomcat 4 doesn't after modifying WEB.XML vunet.us@gmail.com Java 5 04-18-2007 12:41 AM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
need tomcat's web.xml and server.xml adamR Java 4 07-16-2004 08:52 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57