You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by li...@tjgroup.se on 2001/03/05 16:28:01 UTC

web.xml configuration

Hi,
Can someone please tell me whats wrong with this web.xml file?


<servlet>


<servlet-name>nData</servlet-name>


<servlet-class>se.tj.activity.servlets.NServlet</servlet-class>


</servlet>


<servlet-mapping>


<servlet-name>nData</servlet-name>


<url-pattern>/se/tj/activity/servlets/nData</url-pattern>


</servlet-mapping>


The servlet is in the
\webapps\Activety\WEB-INF\classes\se\tj\activity\servlets directory and the
servlet class is in a package called se.tj.activity.servlets.


Thanks!


/Lisa


Re: web.xml configuration

Posted by pr...@realtime.co.uk.
liselotte.ramvik@tjgroup.se wrote:
> 
> Hi,
> Can someone please tell me whats wrong with this web.xml file?
> 
> <servlet>
> 
> <servlet-name>nData</servlet-name>
> 
> <servlet-class>se.tj.activity.servlets.NServlet</servlet-class>
> 
> </servlet>
> 
> <servlet-mapping>
> 
> <servlet-name>nData</servlet-name>
> 
> <url-pattern>/se/tj/activity/servlets/nData</url-pattern>
> 
> </servlet-mapping>
> 
> The servlet is in the
> \webapps\Activety\WEB-INF\classes\se\tj\activity\servlets directory and the
> servlet class is in a package called se.tj.activity.servlets.
> 
> Thanks!
> 
> /Lisa
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org

Hi,

Sorry, if I am wrong! Try it If u can

I think you dont need to give the entire package path in the
<url-mapping>.
Just say /ndata - no need to give the exact name of the servlet or class
file name.

But, the problem could be in your <Context> specification in server.xml.
You didn't write about it.

cheers,
Upadhyayula

Basic Authentication

Posted by Cory Hubert <cl...@invertica.com>.
	Can someone point me to the right direction.  I am trying to setup Basic
Authentication.  I realized that it wasn't as simple as creating an
.htaccess file.   The documentation on this seems pretty skimp.  Can anyone
outline the process or point me to a good resource.


Re: web.xml configuration

Posted by Rob Tanner <rt...@cheshire.onlinemac.com>.
My working assumption (and web.xml seems to be happy with it) is that 
the canonical name of a servlet and it's class are the same thing. 
Thus, for servlet-name think class name.  For servlet-class, you want 
the full class path.  And so, if your servlet-name is 'nData', your 
servlet-class should be 'se.tj.activity.servlets.NServlet.nData'.

The distinction in the terminology of web.xml is sometimes a little 
confusing, but think in terms of a program on your system.  The program 
name is foo, but the full pathname is /usr/local/bin/foo, or whatever. 
And that's pretty much what you need to do in web.xml.

-- Rob

--On Monday, March 05, 2001 04:28:01 PM +0100 
liselotte.ramvik@tjgroup.se wrote:

> Hi,
> Can someone please tell me whats wrong with this web.xml file?
>
>
> <servlet>
>
>
> <servlet-name>nData</servlet-name>
>
>
> <servlet-class>se.tj.activity.servlets.NServlet</servlet-class>
>
>
> </servlet>
>
>
> <servlet-mapping>
>
>
> <servlet-name>nData</servlet-name>
>
>
> <url-pattern>/se/tj/activity/servlets/nData</url-pattern>
>
>
> </servlet-mapping>
>
>
> The servlet is in the
> \webapps\Activety\WEB-INF\classes\se\tj\activity\servlets directory
> and the servlet class is in a package called se.tj.activity.servlets.
>
>
> Thanks!
>
>
> /Lisa
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
>




       _ _ _ _           _    _ _ _ _ _
      /\_\_\_\_\        /\_\ /\_\_\_\_\_\
     /\/_/_/_/_/       /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
    /\/_/__\/_/ __    /\/_/    /\/_/          PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_/    /\/_/
  /\/_/ \/_/  /\/_/_/\/_/    /\/_/         (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/     \/_/              appears profound)

  Rob Tanner
  McMinnville, Oregon
  rtanner@cheshire.onlinemac.com


Re: web.xml configuration

Posted by "Brett W. McCoy" <bm...@chapelperilous.net>.
On Mon, 5 Mar 2001 liselotte.ramvik@tjgroup.se wrote:

> Can someone please tell me whats wrong with this web.xml file?

It would help if you could tell what errors you are getting or what is not
working.  Is this the complete file? If so, it is missing some things.

> <servlet>
>
>
> <servlet-name>nData</servlet-name>
>
>
> <servlet-class>se.tj.activity.servlets.NServlet</servlet-class>
>
>
> </servlet>
>
>
> <servlet-mapping>
>
>
> <servlet-name>nData</servlet-name>
>
>
> <url-pattern>/se/tj/activity/servlets/nData</url-pattern>
>
>
> </servlet-mapping>
>
>
> The servlet is in the
> \webapps\Activety\WEB-INF\classes\se\tj\activity\servlets directory and the
> servlet class is in a package called se.tj.activity.servlets.

And what is it doing or not doing?

-- Brett
				http://www.chapelperilous.net/~bmccoy/
------------------------------------------------------------------------
After any salary raise, you will have less money at the end of the
month than you did before.