• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

emergency - need into tomcat admin app ASAP

 
Stephen Huey
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'?>
<tomcat-users>
<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"/>
</tomcat-users>
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!!!
Thanks,
Stephen
[ April 19, 2004: Message edited by: S. C. Huey ]
 
Stephen Huey
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic