Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

first servlet configuration with apache/tomcat

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
FR
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 :

Code:
<?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?>
<!DOCTYPE web-app PUBLIC &quot;-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN&quot;
    &quot;[URL unfurl="true"]http://java.sun.com/j2ee/dtds/web-app_2_2.dtd&quot;>[/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-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top