USERNAME and PASSWD not accepted by TOMCAT

G

Gaurav

HI,

I am suing TOMCAT 4.1.31 ... but when i log into the admin page , it
asks for the username and the password , which i give as TOMCAT and the
password as TOMCAT ( these are the combintions with TOMCAT manual
refers ) ..
but the real problem starts here .. the page which i get says ..

"Access to the requested resource has been denied"

the description field says that :

"Access to the specified resource (Access to the requested resource has
been denied) has been forbidden. "

kindly help , as to what should i do , to login to the conrtol panel of
TOMCAT

regards
gaurav
 
A

Arnaud Berger

Hi,

By default ,users are specified in conf/tomcat-user.xml

Checkout this file .

Regards,

Arnaud
 
G

Gaurav

kwell... thnx Arnaud. it really helped me .. i added a new user as
admin in that file !! n voila it worked !! :)

neways, a new problem has creeped up.... if i want to make my own
directory which should contains servlet .. the TOMCAT is not doing so.
... i can only place my servlets in the examples\WEB-INF\classes
directly only, and then only the server access it.

i want to make my own directory , instead storing my servlets in the
Classes directory.. how should i do so ?

gaurav
 
A

Arnaud Berger

Hi,

Here is a tutorial for web applications.
The "war" part is optional, since you can either put a war file in the
/webapps directory, or
copy your whole directory in /webapps

Regards,

Arnaud
 
G

Gaurav

where is the TUTORIAL ? seems you missed to write the link part in the
message..

i am waiting

regards,

Gaurav
 
A

Arnaud Berger

Basically :

say your app is called myapp :

create a "myapp" directory in webapps
in this directory, create a "WEB-INF" directory
in the WEB-INF directory, create a "classes" directory, and put your classes
there
in the WEB-INF directory, create a "web.xml" file

look at the examples (including examples in tomcat) and the specs :
http://java.sun.com/products/servlet/docs.html
to know how to tune your deployment descriptor (i.e web.xml)

Regards,

Arnaud
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top