pro_jsp thread: Trying to setup projsp as an application on my Windows 98 machine
Hi,
I find out 3 possibilities.
To set the docBase in W98, try to use full path in docBase attribute, like
docBase="d:\Tomcat\webapps\projsp" or docBase="d:\Web Application". Your
<Context> must be within the <ContextManager></ContextManager>.
Tomcat is using port 8080 by default instead of 80. But if you can access
the webapps\examples, just ignore this possibility.
The webapps\examples works fine because there is an index.html in
admin.war, which is the default page of Tomcat web server. For
http://localhost/projsp case, (not specify any webpage to load) you should
have a default page, namely index.html in your projsp 'root' directory.
You can set the default page in WEB-INF/web.xml with this parameters :
<web-app>
<welcome-file-list>
<welcome-file>welcome.html</welcome-file>
</welcome-file-list>
</web-app>
then, you don't have to specify the webpage to load. Remember to restart
your Tomcat after changes.
Hope it helps...
> Trying to setup projsp as an application on my Windows 98 machine as
> follows
> in my server.xml file:
>
> <Context path=3D"/projsp"
> docBase=3D"webapps/projsp"
> debug=3D"0"
> reloadable=3D"true" >
> </Context>
>
> When I type http://localhost/projsp I get Page Not Found error.
>
> Is there anything else I need to do for Apache/Tomcat to recognize this
> application? Both are running and I can get the JSP & Servlet examples
> that
> come with Apache/Tomcat to run just fine.
>
> Thanks!
>