• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

restart APACHE and TOMCAT Urgent!!!!

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
NO one has worked with this manager application???
SA
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
s...u need to restart tomcat every time u make changes to server.xml.Only then the changes will be reflected.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you read the HOW-TO?
If yes, then you'll realise that you need to define an user in 'tomcat-users.xml'
Rene
 
shivani anand
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the top of 'server.xml' there should be an entry like this:

Rene
 
shivani anand
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can download a new copy of Tomcat from http://jakarta.apache.org/site/binindex.html ;-)
Rene
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic