Link to home
Start Free TrialLog in
Avatar of applekanna
applekanna

asked on

unable to get servlet working

I am trying to deploy an application in Tomcat 5.0

I have put the JSP pages in
   /webapps/ROOT/test/index.jsp
and the servlets in the package
   /webapps/ROOT/WEB-INF/classes/sample/Logintest.class
and the WEB.XML in
   /webapps/ROOT/WEB-INF/web.xml

but I get .
Am i missing something , i have the same thing running Tomcat 4.0.6 and have nor problem . I am using a linux m/c

The requested resource (/servlet/sample.Logintest) is not available.

Thank q
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

try it with a servlet mapping in web.xml:

  <servlet>
    <servlet-name>logintest</servlet-name>
    <servlet-class>sample.Logintest</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>logintest</servlet-name>
    <url-pattern>*.login</url-pattern>
  </servlet-mapping>

restart Tomcat, and go to:

http://localhost:8080/test.login
Avatar of jimmack
jimmack

Have you tried the URL without the /servlet/ ?
Avatar of applekanna

ASKER

yes we have it running on a tomcat 4.0.6 already , but unable to get it to deploy on a new machine and we installed tomcat 5.

Morning Tim.  You're very active lately ;-)
ASKER CERTIFIED SOLUTION
Avatar of jimmack
jimmack

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
PS:  Morning!!!! :-)
>>Messing round with Axis, CSS, SOAP, RPC and stuff.

Well there's a coincidence - so am i - but not with much enthusiasm ;-) Maybe we should offline about it? ;-)
:-) You can find my contact details with a bit of investigation into my profile ;-)  hee hee
Thx a lot guys, it worked like a charm.
;-)