Jump to content

lani1234

Members
  • Posts

    47
  • Joined

  • Last visited

Everything posted by lani1234

  1. User: lani1234 server: johnny URL: http://lani1234.heliohost.org I am sure my account was suspended because I haven't used it in a while. I would like to start using it again. Can it be un-suspended?
  2. In my project, in the Web Content folder, I have one folder with all my style sheets in it, and another folder with all my images in it. When you deploy my war file, I am getting a 404 file not found for me style sheets and images. I tried using the full URL: <link href="../CandCForHelio/css/styleLogin.css" rel="stylesheet" type="text/css" /> <img src="../CandCForHelio/images/usernameText.png" class="label" /> Can you please explain how to make this work on your server? This isn't shown in your little servlet tutorial. Is there any way to make it so that we can deploy our own .war files? It is very frustrating to have to wait over 24 hours just to find out that it still doesn't work and it's a painfully slow process for debugging.
  3. I have placed a new war file in my home directory: home/lani1234/CandC.war If you could please deploy it, I would appreciate it. Thank you
  4. I have placed a new war file in my home directory: home/lani1234/CandC.war If you could please deploy it, I would appreciate it. Thank you
  5. My application needs to be able to change from one jsp page to another jsp page. The following 2 lines of code work within an ajax function on my machine: window.location.href = "redirectPage.jsp" and window.location.href = "../TestingHelioWarWithDB/redirectPage.jsp" But when my war file is deployed on your server, I get a 404 error: HTTP Status 404 - /TestingHelioWarWithDB/redirectPage.jsp type Status report message /TestingHelioWarWithDB/redirectPage.jsp description The requested resource is not available. Apache Tomcat/7.0.32 Are there any error logs specific to this issue that you can see??
  6. I have placed one more new war file in my home directory: home/lani1234/TestingHelioWarWithDB.war I left one test out of the last war file by accident. If you could please deploy this one, I would appreciate it. Thank you
  7. I have success with the database connection now. I have one more test war file to upload and test. It is unclear to me if I need the full URL to a servlet inside an ajax call, but I would guess that I do. Once I know that my ajax is working correctly, I can rebuild the application that I was hoping to host in the first place. Thank you for helping to problem solve. I hope this thread will help others. They key was really in that complete URL to reach the servlet. I have never seen it done this way but I am glad to have figured out why the project would work on a few other servers but not on heliohost.
  8. I have placed a new war file in my home directory: home/lani1234/TestingHelioWarWithDB.war If you could please deploy it, I would appreciate it. Thank you
  9. I have placed a new war file in my home directory: home/lani1234/TestingHelioWarWithDB.war If you could please deploy it, I would appreciate it. Thank you
  10. The full URL to the servlet seems to have worked. That is "../nameOfProject/NameOfServlet" Now I am going to add a database connection back in, and a redirect to another resulting jsp from the servlet. For the redirect back to a jsp from the servlet, I think request.getRequestDispatcher("/result.jsp").forward(request, response); will work without the project name, but we will have to see. Uploaded new war file...
  11. I have placed a new war file in my home directory: home/lani1234/TestingHelioWarNoDB.war If you could please deploy it, I would appreciate it. Thank you
  12. Thank you. I have created a hello world project like the one in this tutorial, using the link URL that you have shown. That very well may be the problem. My URL to connect to the servlet didn't include the project name previously. I have removed the part where I try to connect to the database just to make sure this works without the database. If this works, I will add the database connection back in and try it again. Uploaded new war file...
  13. I am wondering if now it is a database connection issue. When I go directly to the URL of the servlet: http://lani1234.heliohost.org/TestingWarFileOnHelioNEW2/LoginServlet the application behaves how it is supposed to, which is to redirect to another jsp that just displays a message about the user trying to log in. But when I try to connect through the main jsp page (that is index.jsp --> Servlet --> Result.jsp), I am still not getting through correctly.
  14. Can you please let me know what errors you are seeing now? Although I changed the java version to 1.6, the war is still not working.
  15. I have placed another new war file in my home directory: home/lani1234/TestingWarFileOnHelioNEW2.war If you could please deploy it, hopefully this will solve the Java version problem.
  16. Thank you so much, this is much more helpful. I am going to try to tackle one problem at a time. Because of the unsupported major/minor version error, I was able to discover that while I did change my project build path to use java 1.6, my IDE didn't automatically change the compiler version, so it was still compiling with 1.7. I have fixed that now and dropped a new war into my home directory. For the issue where you're saying the servlet name disappears, I think that that is just because in my form with the submit button, I am using method=get as opposed to method=post. When you use method=get, you'll see the parameters in the URL. So let's start with debugging the java version first and see if that gets us somewhere. I really appreciate your help looking in to this.
  17. I am looking for anything that would explain why I am getting the error that says "The requested URL /LoginServlet was not found on this server." If it works on my machine and on another server, why doesn't it work on your server? Something is blocking the application from reaching the servlet. Another possibility is that access to the database is being blocked. So any error logs that say anything about the servlet path or about database access would be helpful. Thank you
  18. I have placed another new war file in my home directory in hopes that this will help me to get somewhere: home/lani1234/TestingWarFileOnHelioNEW.war If you can please deploy this one as soon as possible, I would appreciate it.
  19. This is very frustrating. How does one debug without seeing any error messages??
  20. Can you please help me to figure out why this isn't working on your server? Does anyone else running a java web application have this problem using JSP's and Servlets? I don't understand why it would work on other servers and not yours. Do you have error logs somewhere? This is the error that I get when you click the submit button from the main page: Not Found The requested URL /LoginServlet was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.8e-fips-rhel5 mod_mono/2.6.3 mod_jk/1.2.35 FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1 mod_wsgi/3.4 Python/2.7.4 Server at lani1234.heliohost.org Port 80
  21. I have placed a new war file which utilizes Java 1.6 in my home directory: home/lani1234/TestingWarFileOnHelio.war Can you please deploy it as soon as possible so we can see if this is the root of why it isn't working on your server? Thank you so much.
  22. I have Tomcat 7 on my computer. And I believe Java 7 as well (1.7). Would this effect the mapping?
  23. Any ideas why it isn't working? I am working on somewhat of a deadline. I would really appreciate any input you might have. It seems that it would have to do with the mappings. Do they have to be reconfigured some how to work when deployed on the heliohost server versus my local tomat?
  24. When you type in a username and password and hit submit, the form is submitted to a Servlet called LoginServlet to handle the "login". The servlet will then search for the username and password in a MySQL database, and send a message to another jsp page to display the results. The servlet should be reached whether the username and password are in the database or not but it is giving a 404 error /LoginServlet not found. I haven't gotten as far as checking if the database is being accessed because it's not getting to the servlet. More details: The error I am getting when I click submit looks like this: Not Found The requested URL /LoginServlet was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.8e-fips-rhel5 mod_mono/2.6.3 mod_jk/1.2.35 FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1 mod_wsgi/3.4 Python/2.7.4 Server at lani1234.heliohost.org Port 80
  25. I created the most minimal project to narrow down the problem of deploying my war on your server. It works on my machine, so I don't understand why deploying it on your server would make it stop working. The main jsp page is trying to access a Servlet and the Servlet is not being found. Any ideas why? Have other people been having this problem? I'm not sure what to change since I have it working on my computer.
×
×
  • Create New...