I know this thread is similar to others in the forum, but none of them give me the clue to solve this issue:
I have a JAVA application developed using JSP and servlets. This app works properly when deployed to my local Tomcat 7 instance, but a 404 (not found) is returned every time I try to access the servlets.
.class files are properly stored under the public_html/WEB_INF/classes folder, and JSPs as well as JAVA tags and the rewriting module are working as expected.
In other threads I have seen that I have to store the servlets under "public_html/servlets" folder, but the question is: what do I have to save?: .class files, web.xml,...
This is the web.xml content regarding servlet mappings:
I appreciate any help before considering another server options.
I have a JAVA application developed using JSP and servlets. This app works properly when deployed to my local Tomcat 7 instance, but a 404 (not found) is returned every time I try to access the servlets.
.class files are properly stored under the public_html/WEB_INF/classes folder, and JSPs as well as JAVA tags and the rewriting module are working as expected.
In other threads I have seen that I have to store the servlets under "public_html/servlets" folder, but the question is: what do I have to save?: .class files, web.xml,...
This is the web.xml content regarding servlet mappings:
Code:
<servlet>
<servlet-name>Login</servlet-name>
<servlet-class>com.hmz.web.xhr.Login</servlet-class>
</servlet>
<servlet>
<servlet-name>LoginFacebook</servlet-name>
<servlet-class>com.hmz.web.xhr.LoginFacebook</servlet-class>
</servlet>
<servlet>
<servlet-name>LoginGoogle</servlet-name>
<servlet-class>com.hmz.web.xhr.LoginGoogle</servlet-class>
</servlet>
<servlet>
<servlet-name>RecoverPassword</servlet-name>
<servlet-class>com.hmz.web.xhr.RecoverPassword</servlet-class>
</servlet>
<servlet>
<servlet-name>Register</servlet-name>
<servlet-class>com.hmz.web.xhr.Register</servlet-class>
</servlet>
<servlet>
<servlet-name>UpdatePassword</servlet-name>
<servlet-class>com.hmz.web.xhr.UpdatePassword</servlet-class>
</servlet>
<servlet>
<servlet-name>UpdateProfile</servlet-name>
<servlet-class>com.hmz.web.xhr.UpdateProfile</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Login</servlet-name>
<url-pattern>/xhr/login</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>LoginFacebook</servlet-name>
<url-pattern>/xhr/login-facebook</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>LoginGoogle</servlet-name>
<url-pattern>/xhr/login-google</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>RecoverPassword</servlet-name>
<url-pattern>/xhr/recover-password</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Register</servlet-name>
<url-pattern>/xhr/register</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>UpdatePassword</servlet-name>
<url-pattern>/xhr/update-password</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>UpdateProfile</servlet-name>
<url-pattern>/xhr/update-profile</url-pattern>
</servlet-mapping>
Last edited by a moderator: