This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
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
posted
0
NO one has worked with this manager application??? SA
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
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
posted
0
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
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
posted
0
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
In the top of 'server.xml' there should be an entry like this:
Rene
shivani anand
Ranch Hand
Joined: Dec 28, 2000
Posts: 155
posted
0
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" /> -->
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
posted
0
when I type following http://localhost:8080/manager/ it gives me requested resource is not avaialble plus my manager folder is empty.
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