You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Trevor Miller <ub...@gmail.com> on 2006/04/24 11:46:04 UTC
Help with embedded server
Hi,
On a standard binary tomcat distribution I can deploy JSP's without
putting in any entries into the web.xml but when deployed on the
embedded server I get 404's until I add:
<servlet>
<servlet-name>org.apache.jsp.index_jsp</servlet-name>
<servlet-class>org.apache.jsp.index_jsp</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>org.apache.jsp.index_jsp</servlet-name>
<url-pattern>/index.jsp</url-pattern>
</servlet-mapping>
Then it works.
Is there a way to configure the embedded server to work like the
binary distro so that I don't have to add entries to my web xml file
for every JSP?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Help with embedded server
Posted by Marc Farrow <ma...@gmail.com>.
This is just a guess, but I think you might want/need to add a servlet
mapping for all JSPs somewhere. I do not have this problem. It must be a
configuration problem.
On 4/24/06, Trevor Miller <ub...@gmail.com> wrote:
>
> Hi,
>
> On a standard binary tomcat distribution I can deploy JSP's without
> putting in any entries into the web.xml but when deployed on the
> embedded server I get 404's until I add:
>
> <servlet>
> <servlet-name>org.apache.jsp.index_jsp</servlet-name>
> <servlet-class>org.apache.jsp.index_jsp</servlet-class>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>org.apache.jsp.index_jsp</servlet-name>
> <url-pattern>/index.jsp</url-pattern>
> </servlet-mapping>
>
> Then it works.
>
> Is there a way to configure the embedded server to work like the
> binary distro so that I don't have to add entries to my web xml file
> for every JSP?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
Marc Farrow
Re: HTML Pages in Tomcat????
Posted by Marc Farrow <ma...@gmail.com>.
best thing is to place them either in the imagescan app folder or a
subfolder of it such as imagescan/html then reference them with url via
http://localhost:8080/imagescan/page1.htm#anchorname or
http://localhost:8080/imagescane/html/page1.html#anchorname
On 5/2/04, Michael McQuade <m....@sympatico.ca> wrote:
>
> Hi folks, real dumb question here..... I have an application running on
> Tomcat... All my HTML Pages are built on the fly by the Java
> Programs....
> EXCEPT, on each screen I have a HELP button, that is an Anchor....
> Basically opens up a new browser with the Help information on
> it.... These
> are Static Pages, built once..... Ummmmm, where do I put those Html
> pages in the Tomcat heirarchy....
>
> The directory structure looks like this...
>
> jakarta-tomcat-5/jakarta-tomcat-5.0.28/webapps/imagescan <---
> Imagescan is the name of my Application
>
> under the Imagescan folder I have:
>
> ....../imagescan/images/
> ....../imagescan/web-inf/classes/
>
> Sorry if this is a dumb question....
>
> Thank-You
>
> Mike
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
Marc Farrow
Re: HTML Pages in Tomcat????
Posted by Mark Thomas <ma...@apache.org>.
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.
This is known as thread hijacking and is that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.
The correct procedure is to create a new message with a new subject.
This will start a new thread.
Mark
tomcat-user-owner
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat Security....
Posted by Mark Thomas <ma...@apache.org>.
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.
This is known as thread hijacking and is that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.
The correct procedure is to create a new message with a new subject.
This will start a new thread.
Mark
tomcat-user-owner
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org