I have succesfully installed jboss-3.0.4_tomcat-4.1.12 & apache_2.0.43.
I create(from Java Server Programming J2EE edition - WROX) a simple servlet & XML file as following:
greeting\index.html
greeting\src\GreetingServlet.java
greeting\WEB-INF\web.xml
greeting\WEB-INF\classes\GreetingServlet.class
here is web.xml:
<web-app>
<servlet-name>GreetingServlet</servlet-name>
<servlet-class>GreetingServlet</servlet-class>
<servlet-mapping>
<servlet-name>
servlet/GreetingServlet
</servlet-name>
<url-pattern>
/GreetingServlet
</url-pattern>
</servlet-mapping>
</web-app>
I succesfully compile it: ...\greeting>jar -cf greeting.war *
When I copy the war file to C:\jboss-3.0.4_tomcat-4.1.12\server\default\deploy I see at the console that everything is OK.
My index.html file points to:
I can see the HTML file at http://localhost:8080/greeting/index.html
I try almost anything at server.xml file and finally change "<Context" as following:
but when I click submit I read:
The requested resource (/greeting/servlet/GreetingServlet) IS NOT AVAILABLE.
Your help will be deeply appreciated.
In web.xml, try changing your settings
<servlet-mapping>
<servlet-name>GreetingServlet</servlet-name>
<url-pattern>/GreetingServlet><url-pattern>
</servlet-mapping>
index.html should have
<FORM ACTION="GreetingServlet" METHOD=POST> etc.
Good luck