1) Setting up a Context
server.xml
<Context path="/tcp"
docBase="C:/SomePath/to/tcpRoot"
crossContext="false"
debug="0"
reloadable="true">
</Context>
C:/SomePath/to/tcpFolderRoot then has the following directory structure
C:/SomePath/to/tcpRoot/Web-inf - web.xml goes here if you need one
C:/SomePath/to/tcpRoot/Web-inf/classes - java classes including servlets go
here in their proper package directory structure
C:/SomePath/to/tcpRoot/Web-inf/lib - jar files
C:/SomePath/to/tcpRoot/Meta-inf - Manifest.mf goes here if you need one
C:/SomePath/to/tcpRoot/<anySubDirectoriesYouWantForStaticContent>
JSP's can be stored in the tcpRoot directory or in <anySub...>'s and would
just be referenced as http://localhost:8080/tcp/SomeJSP.jsp or
http://localhost:8080/tcp/<anySub...>/SomeJSP.jsp
Servlets would be http://localhost:8080/tcp/servlet/package.SomeServlet
2) /admin password
>From what I've seen, by default there isn't a password set. I would imagine
this is because they want *you* to come up with your own unique username and
password instead of having some generic username/password that people might
forget to change causing security problems.
What you need to do is add a user and password for the "admin" role to
tomcat-users.xml
>From: "Java Softech Pvt Ltd" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Context Help
>Date: Tue, 30 Jan 2001 16:08:45 +0530
>
>Can anyone help me on how to create a context like /tcp or /exams in the
>server.xml file. And also please let me know the password and username to
>enter into the /admin pages.
>
>
>Rajshekhar.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]