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 ]
Joined: Jul 15, 2003
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?