Jump to content

Search the Community

Showing results for tags 'servlet'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General Discussion
    • Website Management and Coding
    • Technology and the Internet
    • Philosophy, Politics, and Science
    • Art and Entertainment
    • Other Discussion
  • HelioHost
    • Questions
    • Customer Service
    • How You Can Help
  • HelioNet
    • News
    • Contact HelioNet

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 17 results

  1. this is code of dbconnection.java file which is inside my javaee webapplicataion my web application is hosted on heliohost package Database; import java.sql.Connection; import java.sql.DriverManager; public class DbConnection { public static Connection getconnection() { Connection con=null; try { Class.forName("com.mysql.jdbc.Driver");//load the driver //Create the connection //Connection is an interface //Drivermanager is a class and getConnetcion()is a static metod of DriverManager class whose return type is Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/yo52674_wp678"+"?verifyServerCertificate=false&useSSL=false&autoReconnect=true&useUnicode=true&characterEncoding=utf8","yo52674_R","<removed>"); } catch(Exception e){ System.out.println(e); } return con; //return the connection } } my web application is trying to connect heliohost mysql database but it can only connect and perform queries when my heliohost phpmyadmin page is open after when i close php my admin it gives me error e Exception Report Message An exception occurred processing JSP page [/userregact.jsp] at line [17] Description The server encountered an unexpected condition that prevented it from fulfilling the request. Exception org.apache.jasper.JasperException: An exception occurred processing JSP page [/userregact.jsp] at line [17] 14: //String feedback = request.getParameter("feedback"); 15: Connection getconnection = DbConnection.getconnection(); 16: //String sql=; 17: PreparedStatement st = getconnection.prepareStatement("insert into user values(?,?,?,?)"); 18: 19: st.setString(1,username); 20: st.setString(2,password); Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:584) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:481) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) Root Cause java.lang.NullPointerException org.apache.jsp.userregact_jsp._jspService(userregact_jsp.java:147) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) Note The full stack trace of the root cause is available in the server logs. Apache Tomcat/8.5.24 this is code of dbconnection.java file
  2. Good morning, I recently asked for Java to be reinstated to my account (it was removed due to a Tomcat service problem, I believe). Then, once I got back to cPanel > Java, I uploaded two WAR files to be deployed. I can see the files in the file manager, but the Java section does not see them. The only option I have is the Upload WAR button. I can't deploy any of my WAR files. --- I know war deployment can take a while, but I don't think it should be that long for the platform to initially see the files. Thanks in advance for your help.
  3. Username: -vivek.ks I want to know that is java hosting in heliohost supports the hibernate framework hai its classes. ? and the simple java Bean classes. ??
  4. hii I need help to deploy my war file onto my account Please help me asap. Thank you My Details: Username : rajbits Server : johnny War file Name : ShopperSquare.war Thank you again
  5. my username is scip2gov and i store my war file in side my home/username and my war file name is ElectoDemo.war please deploy it so i can run my website.
  6. Plz Deploy my Servlet id : thakurs File name : MyHelioServlet Thx......
  7. Please deploy the Java WAR file... Username: thakurs Filename: demo.war is it compulsory to request each time i upload a war file...... Thank you...
  8. Please deploy the Java WAR file... Username: wilgil Filename: Zaxxon.war Thank-you, William Gilreath.
  9. Hello: Please deploy the following Java servlets... Username: wilgil Files: Zaxxon.war HelloWorldServlet.war Thank-you, William Gilreath.
  10. Hi Admin, Would you kindly deploy my servlet? war file name: WhichSLCelebrityAreYou.war username: dananjay Thank you! ​
  11. Hello: Please enable Java JSP/servlets on my account. Question do I need to request each WAR file to be enabled? Or is that automagically done with JSP/servlets being enabled? Thank-you, my best! William
  12. 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.
  13. Username: gicochia File: Stock.war
  14. Hello! I want to have my .war file deplyed, how can I do it? I've read that I have to upload it to home/username/ and ask here to make it deploy. I've just upload it with the name app.war inside home/username/. Could you please deploy it for me? What happen if I want to update the file? Replacing it with the actual one will be enough for that? My username is tsandler. Thank you very much!
  15. I use Johnny server with activated Java support. I created a Java web app. I call a servlet by a link in the index.jsp This is my web: http://danghh92.heliohost.org/ I run my app at localhost. There was no problem. Then, I unzipped the war file. I uploaded all unzipped files to public_html folder. The problem is: I can get the index page. But when I click on the link to call servlet, the 404 error appear. I have tested this app on another hosting. There was no problem. How can I solve this problem?
  16. Hi, I want to deploy a jsp/servlet application, I´ve already have jsp working on my account but don´t know how to deploy my application I developed using netbeans. Generally I just copy the .war file generated and tomcat deploys the application, but I don´t know how to do that here, or can anyone help me in deploying my application from netbeans to the server? thanks
  17. Hello, I have an account on Jhonny with java enabled. JSP is working fine but Servlets just won't work. I tried the most basic class I could find: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorld extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); out.println("<HTML>"); out.println("<HEAD><TITLE>Hello World</TITLE></HEAD>"); out.println("<BODY>"); out.println("<H1>Hello World</H1>"); out.println("Today is: " + (new java.util.Date().toString()) ); out.println("</BODY></HTML>"); } // doGet } // HelloWorld And compiled it. I uploaded it to /public_html/WebContent/WEB-INF/classes and added the needed info to web.xml. I could not reach the servlet HelloWorld. I uploaded it to /public_html/WEB-INF/classes and added the needed info to web.xml. I still could not reach the servlet HelloWorld. I tried any combination I could think of in order to get this servlet to work, but nothing did the trick. If anyone knows or has been able to activate the servlets, here are my three questions: Where did you put the compiled servlet class? Where did you put the "web.xml" (I know, in the WEB-INF, but there are two)? How did you do the servlet mapping in the "web.xml" (using the .class in the path or not)? What URL did you use to reach the servlet (with starting from the <name>.heliohost.org/)? I tried any combination I could think of but nothing did the trick. Thank
  • Create New...