Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can’t load html from Tomcat

Status
Not open for further replies.

RollyS

Programmer
Jan 28, 2001
42
PH
Hello. I’ve been studying this book about Tomcat. It asks me to change the appBase attribute of the <Host> tag in server.xml from webapps (the default) to a different folder so that my development is detached from Tomcat. So now the <Host> tag looks like this:

...
<Host name="localhost" debug="0" appBase="c:/_home/deploy/apps"
unpackWARs="true" autoDeploy="false">
...

Besides the change in server.xml, the book also asks me to create a separate context XML descriptor file and put it in CATALINA_HOME/conf/Catalina/localhost. The descriptor file looks like this:

<Context path=”/unleashed” docBase=”unleashed” debug=”0”>
<Logger className=”org.apache.catalina.logger.FileLogger”
prefix=”localhost_unleashed_” suffix=”.log”
timestamp=”true”/>
</Context>

Besides that, admin.xml and manager.xml of CATALINA_HOME\conf\Catalina\localhost were also changed respectively:

<Context path=”/admin” docBase=”c:/_home/apps/tomcat5/server/webapps/admin”
debug=”0” privileged=”true”>
<Logger className=”org.apache.catalina.logger.FileLogger”
prefix=”localhost_admin_log.” suffix=”.txt”
timestamp=”true”/>
</Context>


<Context path=”/manager” docBase=”c:/_home/apps/tomcat5/server/webapps/manager”
debug=”0” privileged=”true”>
<ResourceLink name=”users” global=”UserDatabase”
type=”org.apache.catalina.UserDatabase”/>
</Context>

Everything seems to be going OK – I’ve been able to test my JSPs. But the problem came up when it’s time to test html: I couldn’t open a simple html file. Even the Tomcat’s homepage wouldn’t be loaded.

I tried a little experiment. I changed back the appBase attribute to webapps once again and I now I can see the Tomcat’s homepage but of course I cannot run my JSPs on the book.

Can somebody tell me what to do? Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top