haohiep Posted August 8, 2012 Share Posted August 8, 2012 My web project can't run in heliohost at hmusic.helihost.org although I works fine in my localhost. I don't know what causes the problem and whether tomcat runs. Can you help me to know how to check/config tomcat (I can't find tomcat in cpanel) and even how to run my web project. Thanks in advance. username: haohiepdomain: hmusic.heliohost.org Link to comment Share on other sites More sharing options...
Ice IT Support Posted August 8, 2012 Share Posted August 8, 2012 Did you request for java to be enabled on your account? EDIT: Nevermind, I see you did already. When visiting your site I am getting a 404. Could you post more information on your project please? Link to comment Share on other sites More sharing options...
haohiep Posted August 8, 2012 Author Share Posted August 8, 2012 My project uses Spring framework. In the root public_html folder, there is a file request.jsp which contains a code line: <% response.sendRedirect("/index.htm"); %> this code line will send a request to a servlet name indexController (pattern according to spring framework). In this servlet will process some tasks and respone a view name "index.jsp". I tried to test a second project I have uploaded new folder name "test" with a simple servlet (not Spring framework). I placed a static file "index.jsp" (not using with servlet) --> it works fine. But I tried to use a request to servlet name "main"--> Not found ==> So I think the problem is in servlet. hmusic.heliohost.org/test/index.jsp --> workhmusic.heliohost.org/test/main --> not found(main is servlet's name) ---------------------------------------------------------------------------------------------------------------------------------------------------------EDIT: hmusic.heliohost.org/test/main is a directory that does not exist, but hmusic.heliohost.org/test/main.jsp does.--------------------------------------------------------------------------------------------------------------------------------------------------------- Everything works normally in my localhost. In this case, hmusic.heliohost.org/test/main is a request to sevlet (JSP servlet can understand that). So. if I am wrong, let's show me how to access to this serlvet name "main" Link to comment Share on other sites More sharing options...
Ice IT Support Posted August 8, 2012 Share Posted August 8, 2012 I am not an expert on Java, but does it work when you access the servlet with the name "main.jsp"? Link to comment Share on other sites More sharing options...
haohiep Posted August 9, 2012 Author Share Posted August 9, 2012 in this case, there is a static file main.jsp --> It will work with errors, but I need servlet "main" do some tasks before it redirects to view "main.jsp" Link to comment Share on other sites More sharing options...
Recommended Posts