There's a difference between webapp names and servlet names.  You want
to change the webapp's name.  To do that, just change the name of the
webapp in the webapps folder ie pub_db -> publications or pub_db.war ->
publications.war.  You may have to make a similar name change to the
context.xml file in conf/Catalina/localhost and then restart tomcat.

--David

wille wrote:

>Hello,
>
>having a bit of a problem here.
>
>
>We have deployed a web application on our server by putting it in the
>webapps directory, this makes it appear at a URL like
>http://mjau.com/pub_db. Now we want to change the URL for this webapp to
>something else, (in this case http://mjau.com/publications). 
>
>Currently we've tried messing around with URL-mapping
>in /tomcat5/conf/web.xml and /tomcat5/webapps/WEB-INF/web.xml.
>
>
>We've tried to use the servlet-mapping directive in our web data
>xml-files, but it seems that the servlet is implicitly defined when
>putting the webapp in the webapps directory, because we have no servlet
>section in our web data xml-files. But things work anyway.
>
>But when we try to define our own servlet section, it won't work.
>
>We are running Tomcat 5.0.30, Java 5.0, on a Debian Etch server.
>
>
>
>
>This is what we've tried to do in the /tomcat5/conf/web.xml:
>
>       <servlet>
>            <servlet-name>pubdb</servlet-name>
>                    <servlet-class>
>                        pubdb
>                      </servlet-class>
>              </servlet>-->
>
>  <!--<servlet-mapping>
>  <servlet-name>invoker</servlet-name>
>  <url-pattern>/publications/*</url-pattern>
></servlet-mapping>-->
>
></web-app>
>
>
>
>
>
>Anyone have a clue what we're doing wrong?
>
>
>---------------------------------------------------------------------
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to