Jump to content

vaninf

Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by vaninf

  1. When I access http://van51.ml/test/url.jsp, the source code of the JSP page is displayed. My user name is vaninf, my primary domain is van51.ml.
  2. When I access JSP pages on tommy, I get this message: Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Additionally, a 503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request.
  3. The servlets you deployed don't work well, because request.getServerName() and request.getServerPort() return wrong values. So I have to deploy the servlets by myself in folder public_html/WEB-INF/. If the servlet's name is *.do, the servlet won't get called because Apache http server won't pass *.do file request to Tomcat. Please configure Apache http server to pass *.do file request to Tomcat server.
  4. Could you please configure Apache http server to pass *.do file request to Tomcat server? Right now only *.jsp file request is passed to Tomcat server. Thank you.
  5. If I access JSP page url.jsp with this URL https://vaninf.heliohost.org/test/url.jsp the source code of the JSP page will be shown in the web browser. Krydos, could you please fix it?
  6. I put a php file phpinfo.php in folder public_html/test/, and entered http://vaninf.heliohost.org/test/phpinfo.php in web browser to access it. I got "500 Internal Server Error" page. Can any one help me resolve it?
  7. My JSP web application will allow users to upload image files, so my JSP scripts has to be able to create directories and files. I searched internet and find this site: https://stackoverflow.com/questions/35428172/tomcat-permission-denied-when-trying-to-write-a-file Can you run these two commands: chown tomcat:tomcat /home/vaninf/public_html chmod u+wrx /home/vaninf/public_html so that my JSP scripts can create folders and files in my home folder. Thanks.
  8. I have a JSP file mkdir.jsp in folder /home/vaninf/public_html/, it tries to create a directory and file, but I get "Permission denied" exception. How can I create a directory or file using JSP script? How can I get the permission to do it? Thanks.
  9. Thank you Krydos, My servlets are fully working now!
  10. Krydos, I have changed the servlet code and web.xml. Could you please restart the Tomcat server?
  11. I put some java servlet class files in folder /home/vaninf/public_html/WEB-INF/classes/and put web.xml in folder /home/vaninf/public_html/WEB-INF/, and Tomcat server has been restarted In web browser I entered http://vaninf.heliohost.org/index_.jsp trying to invoke one servlet,but I got "Web page was not found." message. Krydos, could you please find out why? Thanks.
  12. The deployed war files don't work as expected because request.getServerName(), request.getServerPort() and request.getContextPath() return wrong values. My web application won't work if I deploy it this way. The new servlet mapping defined in web.xml still doesn't work. Could you please find out why? The new servlet mapping defined in web.xml still doesn't work. Could you please find out why?
  13. To prove you and I are correct, I have changed the servlet mapping in web.xml, now the servlets are mapped to .jsp file names. I have uploaded web.xml again. To let the new web.xml take effect, Tomcat server should be restarted. Could you please restart Tomcat server? Thanks
  14. It has nothing to do with .war file, I didn't create .war file. I uploaded the servlet class files and web.xml into /home/vaninf/public_html/WEB-INF/ folder by myself, I accessed http://vaninf.heliohost.org/index.htm to invoke the servlet because index.htm is mapped to the servlet. The server shows "The requested URL /index.htm was not found on this server." I think this is caused by Apache http server, it must have been configured to pass only .jsp file requests to Tomcat server, so all other file requests are blocked by Apache http server, they can't reach Tomcat server. So the servlet mapping defined in web.xml are not used when we access http://vaninf.heliohost.org/index.htm, because index.htm is not .jsp file name. Am I right?
  15. Why doesn't the servlet mapping in web.xml work? My web.xml is in folder /home/vaninf/public_html/WEB-INF/ Is it caused by configuration of Tomcat?
  16. I have uploaded a WAR file - 3.war.It's put in folder /home/vaninfMy user name is vaninf.Please deploy it. Thanks.
  17. I just put file web.xml in folder /home/vaninf/public_html/WEB-INF/ Please restart Tomcat server. My user name is vaninf. Thanks.
  18. My servlet is deployed at http://vaninf.heliohost.org/2/url.jsp It returns 3 wrong parameters: request.getServerName() = 127.0.0.1 request.getServerPort() = 8080 request.getContextPath() = /vaninf_2 The expected correct data should be: request.getServerName() = vaninf.heliohost.org request.getServerPort() = 80 request.getContextPath() = /2 Can you support people tell me why, and how to fix it?
  19. I have uploaded a WAR file - 2.war. It's put in folder /home/vaninf My user name is vaninf. Please deploy it. Thanks.
  20. I have uploaded a WAR file - 1.war It's in folder /home/vaninf My user name is vaninf Please deploy it. Thanks.
×
×
  • Create New...