 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Salvador Huertas Guest
|
Posted: Thu Mar 30, 2006 10:04 am Post subject: deployment Servlets. |
|
|
Hi friends,
I'm new writing Web applications. My application have two servlets and two
html files. In Tomcat ROOT I have a folder name "Analitica", and I put there
the files:
-web.xml,
-*.war
-*.html
I call the application in my browser:
http://10.30.1.1:8090/Analitica/AccesoManual.html
the html start ok, but the servelets aren't found.
my web.xml file is:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE web-app (View Source for full doctype...)>
- <web-app>
- <servlet>
<servlet-name>lecturaagrupamovimientos</servlet-name>
<servlet-class>analiticaservelet.LecturaAgrupaMovimientos</servlet-class>
</servlet>
- <servlet>
<servlet-name>lecturamovimientos</servlet-name>
<servlet-class>analiticaservelet.LecturaMovimientos</servlet-class>
</servlet>
- <servlet-mapping>
<servlet-name>lecturaagrupamovimientos</servlet-name>
<url-pattern>/lecturaagrupamovimientos</url-pattern>
</servlet-mapping>
- <servlet-mapping>
<servlet-name>lecturamovimientos</servlet-name>
<url-pattern>/lecturamovimientos</url-pattern>
</servlet-mapping>
</web-app>
Thanks in advance!!
Salvador Huertas. |
|
| Back to top |
|
 |
Paul Furbacher [TeamB] Guest
|
Posted: Thu Mar 30, 2006 8:03 pm Post subject: Re: deployment Servlets. |
|
|
Salvador Huertas wrote:
| Quote: | I'm new writing Web applications. My application have two servlets and two
html files. In Tomcat ROOT I have a folder name "Analitica", and I put there
the files:
-web.xml,
-*.war
-*.html
I call the application in my browser:
http://10.30.1.1:8090/Analitica/AccesoManual.html
the html start ok, but the servelets aren't found.
my web.xml file is: [...]
|
You should be deploying your Web app to its own folder
in Tomcat's "webapps" folder, such that ROOT and the
others (e.g., tomcat-docs) are "sibling" directories.
Placing your Web apps resources under ROOT, you just make
the HTML files available, as you've noticed.
Note that I'm referring to Tomcat 5.5 but I think it's
the same in the older versions.
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://info.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|