On Tue, 11 Dec 2001, Arvind Gudipati wrote:

> Date: Tue, 11 Dec 2001 08:36:10 -0500
> From: Arvind Gudipati <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: errros in embedded tomcat!
>
> thanks for the reply craig!
>
> I tried to add the default servelt mapping using
>
>   context.addServletMapping("/", "default");
>
> but i get the following exception:
>
> ***
> Exception in thread "main" java.lang.IllegalArgumentException: Servlet
> mapping specifies an unknown servlet name default
>         at
> org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.j
> ava:1624)
>         at EmbeddedTomcat.main(EmbeddedTomcat.java:96)
> *****
>
>
> Also i made sure i have the catalina.home and cataline.base system
> properties set up properly!
>
> Im not sure what is going on here but i'd really appreciate someone to
> helping me here!
>

If everything were set correctly, you would not be getting the exception
message about "Error initializing resources" -- that is the key to the
problem.  The missing servlet mapping is only a symptom.

Because of the path being reported in the exception message, it appears
that you are definitely *not* getting catalina.home and catalina.base set
right.  You should be using an absolute path to the base directory in
which Tomcat is installed -- currently, it's trying to use a relative path
which means it *might* work, but only if your current directory when you
start Tomcat is the right place.

> Arvind
>

Craig


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to