hi,
i was used to develop servlets, but they where under Websphere i'm trying to configure a servlet under tomcat, and even if i read the doc i encounter some difficulties.
what i did :
- made a .war file of my servlet into tomcat_dir/webapps
- launch tomcat
i can see that the .war has been unpacked into : tomcat_dir\webapps\Connect\WEB-INF\classes
i added a web.xml file in web-inf where i put a code like this :
now i test the servlet i run IE and i try to call it :
it returns me an error : 404 not found. what did i do wrong ? what did i miss ?
thanks
Best regards,
Elise, XML learning girl X-)
i was used to develop servlets, but they where under Websphere i'm trying to configure a servlet under tomcat, and even if i read the doc i encounter some difficulties.
what i did :
- made a .war file of my servlet into tomcat_dir/webapps
- launch tomcat
i can see that the .war has been unpacked into : tomcat_dir\webapps\Connect\WEB-INF\classes
i added a web.xml file in web-inf where i put a code like this :
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"[URL unfurl="true"]http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">[/URL]
<web-app>
<!-- General description of your web application -->
<servlet>
<servlet-name>Conn</servlet-name>
<description/>
<servlet-class>lionbridge.connect.Connect</servlet-class>
<!-- Load this servlet at server startup time -->
<load-on-startup>5</load-on-startup>
</servlet>
</web-app>
now i test the servlet i run IE and i try to call it :
it returns me an error : 404 not found. what did i do wrong ? what did i miss ?
thanks
Best regards,
Elise, XML learning girl X-)