tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomas Rodriguez" <>
Subject error with tomcat HTTP Status 404 The requested resource() is not available
Date Mon, 23 Mar 2009 07:07:28 GMT
Ok thanks a lot Charles, jus I followed your advise, I created all 
/lib, web-inf/classes) under my folder d:/examplestomcat, and I created too 
the file tomas.xml at the directory 
 with the <Context docBase="d:/examplestomcat">, I executed the IE and the 
via URL I wrote, but at the end I can see 
anything, just show me an error.

the error is:

HTTP Status 404 - /tomas/


type Status report

message /tomas/

description The requested resource (/tomas/) is not available.


Apache Tomcat/6.0.18

I reboot the tomcat services, but I can't get any good result, well I don't 
know what should I do with the web.xml. I just copied the orginal web.xml 
from tomcat directory to d:/examplestomcat/web.xml, I didn't change anything 
in this file.
and I copied as well the mysql/J connect from tomcat/lib to my 
I sorry for bother you, but I need to finish with this configuration.
thanks so much
have a great day

From: "Caldarale, Charles R" <>
Sent: Saturday, March 21, 2009 5:49 PM
To: "Tomcat Users List" <>
Subject: RE: mysql + tomcat work already but I need to reconfigurate the 
tomcat for load the examples in other location of the hard driver

>> From: Tomas Rodriguez []
>> Subject: Re: mysql + tomcat work already but I need to
>> reconfigurate the tomcat for load the examples in other
>> location of the hard driver
>> please tell me how can I create the server.xml and
>> build.xml
> You're on your own for the build.xml; setting that up depends entirely on 
> the organization of your source files.
>> I will need to create a file named
>> conf/Catalina/[host]/[appName].xml containing a
>> <Context> element with a docBase attribute whose
>> value is the absolute location of the webapp.
> Correct.  Unless you are supporting multiple web sites, the existing 
> <Host> will do; you don't have to create another one, so you shouldn't 
> have to add anything to server.xml.  You appear to have decided to place 
> your own examples in the D:\examplestomcat directory, so that's what your 
> docBase attribute will point to.  The only missing piece of information is 
> the URL name used to access your webapp; for brevity, we'll use the name 
> tomas, but you're of course free to use anything you want.
> 1) no changes are needed to server.xml
> 2) create the file C:\tomcat6.0\conf\Catalina\localhost\tomas.xml
> 3) the contents of the above file are just:
> <Context docBase="D:/examplestomcat" />
> 4) under D:\examplestomcat, you should have:
> WEB-INF\web.xml - contains your servlet mappings
> WEB-INF\lib - contains jar files (if any) for your webapp
> WEB-INF\classes - contains individual class files (if any) for your webapp
> index.html - the home page of your webapp.
> You would access the above via the URL, 
> assuming your browser is on the same machine that Tomcat is running on and 
> you're using the default server.xml.
> You can, of course, vary #4 considerably to meet your needs, as long as 
> you stick with the structure required by the servlet spec.
> - Chuck
> MATERIAL and is thus for use only by the intended recipient. If you 
> received this in error, please contact the sender and delete the e-mail 
> and its attachments from all computers.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message