marcdauncey
Programmer
Hi everyone, I have what is probably a basic problem with deploying a sample war file on IBM WAS 4.0.
I can't get the servlet mapping right and I wondered if someone could point out where I am going wrong.
The app is called DominoExample and is running correctly according to the WAS administrator. I have set the context root to be "/DominoExample" and I am trying to call a servlet called "DominoExampleServer" in the package "com.csl.domino.example". My understanding is that " should invoke the servlet, but instead I am getting a 404 error, file not found.
The text from my web.xml file follows below:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "<web-app id="WebApp">
<display-name>DominoExample</display-name>
<servlet id="Servlet_1">
<servlet-name>DominoExampleServer</servlet-name>
<display-name>DominoExampleServer</display-name>
<servlet-class>DominoExampleServer</servlet-class>
</servlet>
<servlet id="Servlet_2">
<servlet-name>discussiontree</servlet-name>
<display-name>discussiontree</display-name>
<jsp-file>/discussiontree.jsp</jsp-file>
</servlet>
<servlet-mapping id="ServletMapping_1">
<servlet-name>DominoExampleServer</servlet-name>
<url-pattern>/DominoExampleServer</url-pattern>
</servlet-mapping>
<servlet-mapping id="ServletMapping_2">
<servlet-name>discussiontree</servlet-name>
<url-pattern>/discussiontree.jsp</url-pattern>
</servlet-mapping>
<welcome-file-list id="WelcomeFileList_1">
<welcome-file>discussiontree.jsp</welcome-file>
</welcome-file-list>
</web-app>
Many thanks
Marc
I can't get the servlet mapping right and I wondered if someone could point out where I am going wrong.
The app is called DominoExample and is running correctly according to the WAS administrator. I have set the context root to be "/DominoExample" and I am trying to call a servlet called "DominoExampleServer" in the package "com.csl.domino.example". My understanding is that " should invoke the servlet, but instead I am getting a 404 error, file not found.
The text from my web.xml file follows below:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "<web-app id="WebApp">
<display-name>DominoExample</display-name>
<servlet id="Servlet_1">
<servlet-name>DominoExampleServer</servlet-name>
<display-name>DominoExampleServer</display-name>
<servlet-class>DominoExampleServer</servlet-class>
</servlet>
<servlet id="Servlet_2">
<servlet-name>discussiontree</servlet-name>
<display-name>discussiontree</display-name>
<jsp-file>/discussiontree.jsp</jsp-file>
</servlet>
<servlet-mapping id="ServletMapping_1">
<servlet-name>DominoExampleServer</servlet-name>
<url-pattern>/DominoExampleServer</url-pattern>
</servlet-mapping>
<servlet-mapping id="ServletMapping_2">
<servlet-name>discussiontree</servlet-name>
<url-pattern>/discussiontree.jsp</url-pattern>
</servlet-mapping>
<welcome-file-list id="WelcomeFileList_1">
<welcome-file>discussiontree.jsp</welcome-file>
</welcome-file-list>
</web-app>
Many thanks
Marc