Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Tomcat and the fly likes emergency - need into tomcat admin app ASAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "emergency - need into tomcat admin app ASAP" Watch "emergency - need into tomcat admin app ASAP" New topic

emergency - need into tomcat admin app ASAP

Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
We reloaded the drives on our web server yesterday, but Tomcat 4 keeps
choking, and we think it's because not enough memory is allocated, and
we're trying to get into the admin web application, but it keeps saying
our password isn't correct. Even though I set a password during the
install, there was nothing in the tomcat-users.xml file, so I've now made
it this, but we still can't get in:
<?xml version='1.0' encoding='utf-8'?>
<role rolename="admin"/>
<role rolename="manager"/>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="admin" password="secret" roles="manager,admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
I've been restarting Tomcat after saving it after each modification.
My boss is literally breathing down my neck, so please write back ASAP if
you have a clue, b/c Google isn't helping me out all that much!!!
[ April 19, 2004: Message edited by: S. C. Huey ]
Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
I got in by removing security constraints in the admin web app's web.xml, but I'm trying to figure out how to adjust the memory allocated to Tomcat/Java, but I now realize this isn't the place.
I see something in catalina.bat about a JAVA_OPTS environment variable. Do I need to set this in Windows? When I run java -X on the command line, I see something about a -Xms option for setting the heap size. Do I just type -Xms <some number> in the Windows environment variable or what?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
You can set a value for JAVA_OPTS right there in the batch file.
See the tooldocs in your Java SDK installation for the usage of command line parameters like -Xms.
I agree. Here's the link:
subject: emergency - need into tomcat admin app ASAP
jQuery in Action, 3rd edition