Hello, I'm sure this question has been asked alot but here goes ... I can't seem to find the answer.
When I go here http://www.mysite.xyz:8080/shoppingCart/Cart
Everything is great.
When I go here http://www.mysite.xyz/shoppingCart/Cart
404 Error not found
The thing is http://www.mysite.xyz/shoppingCart/
comes up great it is just not seeing my servlet defined in my web.xml ...
This is my jboss-web.xml for shoppingCart ...
<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <context>/com-html-jsp/shoppingCart/*</context> <!-- I've also tried /com-html-jsp/shoppingCart</context> --> <virtual-host>www.mysite.xyz</virtual-host> </jboss-web>
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <servlet> <servlet-name>Cart</servlet-name> <servlet-class>STOREBEANS.Cart</servlet-class> </servlet> <servlet-mapping> <servlet-name>Cart</servlet-name> <url-pattern>/Cart</url-pattern> </servlet-mapping> </web-app>
Okee Dokee, I just put this ...
<Location "/shoppingCart/*">
JkUriSet worker ajp13:localhost:8009
Order Deny,Allow
#Deny from all
Allow from all
In my virtual host tag ... DOH!
thanks ...