File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes restart APACHE and TOMCAT Urgent!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "restart APACHE and TOMCAT Urgent!!!!" Watch "restart APACHE and TOMCAT Urgent!!!!" New topic
Author

restart APACHE and TOMCAT Urgent!!!!

shivani anand
Ranch Hand

Joined: Dec 28, 2000
Posts: 155
This is urgent ques. Do I need to to restart Tocat and Apache whenever I make changes to my application. I've made change in server.xml
<DefaultContextreloadable="true">
Has anyone worked with manager App?
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
If yes help me how to set it.
thanks
SA
shivani anand
Ranch Hand

Joined: Dec 28, 2000
Posts: 155
NO one has worked with this manager application???
SA
sm j
Greenhorn

Joined: Oct 07, 2002
Posts: 5
s...u need to restart tomcat every time u make changes to server.xml.Only then the changes will be reflected.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Have you read the HOW-TO?
If yes, then you'll realise that you need to define an user in 'tomcat-users.xml'
Rene


Regards, Rene Larsen
Dropbox Invite
shivani anand
Ranch Hand

Joined: Dec 28, 2000
Posts: 155
thanks Rene,
I 've read how to but to make following changes
<Context path="/manager" debug="0" privileged="true"
docBase="/usr/local/kinetic/tomcat4/server/webapps/manager">
</Context>

to serevr.xml
I dont't see any kinetic folder or the path specified in docBase what should I do for that.
thanks
Shivani
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

The 'docBase' is the URL to where the manager folder is in YOUR system.
If Tomcat 4.1.x it there will be a xml-file in '<tomcat_path>/webapps' called 'manager.xml' and then you don't need to specify any '<Context...' in 'server.xml'.
If Tomcat 3.x -> 4.0.x there will be a folder in '<tomcat_path>/webapps' called 'manager' and then the URL should be to this folder.
Rene
shivani anand
Ranch Hand

Joined: Dec 28, 2000
Posts: 155
Rene,
Thanks for your reply. I've got TOMCAT.4.03.
as you said docbase should be URL of manager folder. Mine manager folder is not in webapps/manager but it is in
<TOMCAT-FOLDER>/xyz/abc/manager
and in my server.xml it is
<context path="/manager" docBase="manager"
is this okay.
thanks,
SA
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

You should eater just move the 'manager' folder into 'webapps', leave 'servlet.xml' as it is, or change 'docBase="manager"' to e.g. 'docBase="<TOMCAT-FOLDER>/xyz/abc/manager"'
and restart tomcat. - I hope ;-)
Rene
shivani anand
Ranch Hand

Joined: Dec 28, 2000
Posts: 155
Rene,
once again thanks.
One more ques. regarding setting manager role
there are 3 ways to set user and role...
1.Memory realm
2.JDBC realm
3.JNDI realm
which one should I use. How should I check which of the one is being used right now by TOMCAT.
thanks,
SA
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

In the top of 'server.xml' there should be an entry like this:

Rene
shivani anand
Ranch Hand

Joined: Dec 28, 2000
Posts: 155
No I cannot see code you wrote rather I can se something as following in server.xml
<!-- Because this Realm is here, an instance will be shared globally -->
<Realm className="org.apache.catalina.realm.MemoryRealm" />
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority?user=abc;password=abc"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

What happen when you call the manager app?
You should get a popup login where you should be able to enter the data of the user you have defined in 'tomcat-users.xml'.
PS. you should try tomcat 4.1.12 it has a very nice manager app.
Rene
shivani anand
Ranch Hand

Joined: Dec 28, 2000
Posts: 155
when I type following http://localhost:8080/manager/
it gives me requested resource is not avaialble plus my manager folder is empty.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

You can't call the manager app the way you do..
Try call it like this (read the HOW TO): http://localhost:8080/manager/list
Rene
shivani anand
Ranch Hand

Joined: Dec 28, 2000
Posts: 155
Is there any way to explicitly download manager application because I don't think it is present in my TOMCAT as there is no manager folder in tomcatfolder/webappas plus there is one manager folder in different location which is empty.
thanks,
SA
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

You can download a new copy of Tomcat from http://jakarta.apache.org/site/binindex.html ;-)
Rene
 
 
subject: restart APACHE and TOMCAT Urgent!!!!