Jump to content

softlab

Members
  • Posts

    268
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by softlab

  1. On my computer all works well; i thought it could be a problem related to -XX:MaxPermSize on Tomcat startup. Which value should I use to have the same configuration on my computer? Thanks
  2. Hi. I get this exception on johnny wher I try to load my index.jsp page. What could be the problem? Thank you exception org.apache.jasper.JasperException: PermGen space org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:473) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) root cause javax.servlet.ServletException: PermGen space org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965) org.apache.jsp.index_jsp._jspService(index_jsp.java:110) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) root cause java.lang.OutOfMemoryError: PermGen space
  3. Hi. I'm softlab on johnny and I get this exception wher I try to load my index.jsp page. What could be the problem? Thank you exception org.apache.jasper.JasperException: PermGen space org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:473) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) root cause javax.servlet.ServletException: PermGen space org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965) org.apache.jsp.index_jsp._jspService(index_jsp.java:110) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) root cause java.lang.OutOfMemoryError: PermGen space
  4. Hi. The first time I posted my problem was in May; then I reposted it various times, because I got no reasonable answer. Till now, no replies. When I give a service to the public, be it free or not, I think I have to satisfy any help request for errors, doubts and so on. Here I did not have any of these things; my problem remains my problem, no one gave me a solution for it. Do you think it is reasonable? For complete information, I append the problem to this post, hoping that someone could (and would) help me. --------------------------------------------------------------------- Pointing my java application (http://studiofp.heliohost.org/infoPar/index.jsp) and clicking the link "Accesso" I get the result below: Not Found The requested URL /infoPar/ServletUtenti was not found on this server. The servlet is in the web.xml file as below ServletUtenti it.fp.servlets.ServletUtenti ServletUtenti /ServletUtenti and is present in the WEB-inf\classes folder, in a package named "it.fp.servlets" under the named folder. In addition, I deployed the same application on a desktop under Tomcat 6.0.35 and it works perfectly. Which could be the problem?
  5. Hi. I would like to put my servlets into a package, say com.servlets, in WEB-INF\classes folder under public_html folder. What should I write in my jsp and web.xml file to have the jsp invoking a servlet from the package? Besides, should all of my site go under public_html folder? Thanks in advance
  6. Collecting my posts into one doesn't help me to solve my problem. I would have expected more collaboration. Thanks anyway.
  7. Hi. I'm on Johnny. I would like to know which should be the structure under public_html folder. I put my servlets into a package (it.fp.servlets); under WEB-INF\classes I have the folder it\fp\servlets, and there are the servlets. My index.jsp page tries to locate a Servlet under that folder, but the error is Not Found The requested URL /ServletUtenti was not found on this server. Where am I wrong? Thanks
  8. Hi. I'm on Johnny and can't find anyone that helps me. I would like to know which should be the structure under public_html folder. I put my servlets into a package (it.fp.servlets); under WEB-INF\classes I have the folder it\fp\servlets, and there are the servlets. My index.jsp page tries to locate a Servlet under that folder, but the error is Not Found The requested URL /ServletUtenti was not found on this server. Where am I wrong? Thanks
  9. Hi. I'm on Johnny and can't find anyone that helps me. I would like to know which should be the structure under public_html folder. I put my servlets into a package (it.fp.servlets); under WEB-INF\classes I have the folder it\fp\servlets, and there are the servlets. My index.jsp page tries to locate a Servlet under that folder, but the error is Not Found The requested URL /ServletUtenti was not found on this server. Where am I wrong? Thanks
  10. Hi. Pointing my java application (http://studiofp.heliohost.org/infoPar/index.jsp) and clicking the link "Accesso" I get the result below: Not Found The requested URL /infoPar/ServletUtenti was not found on this server. The servlet is in the web.xml file as below ServletUtenti it.fp.servlets.ServletUtenti ServletUtenti /ServletUtenti and is present in the WEB-inf\classes folder, in a package named "it.fp.servlets" under the named folder. In addition, I tried to deploy the same application under Tomcat 6.0.35 and it works perfectly. Which could be the problem? Thanks
  11. Hi. Pointing my java application (http://studiofp.heliohost.org/infoPar/index.jsp) and clicking the link "Accesso" I get the result below: Not Found The requested URL /infoPar/ServletUtenti was not found on this server. The servlet is in the web.xml file as below ServletUtenti it.fp.servlets.ServletUtenti ServletUtenti /ServletUtenti and is present in the WEB-inf\classes folder, in a package named "it.fp.servlets" under the named folder. In addition, I tried to deploy the same application under Tomcat 6.0.35 and it works perfectly. Which could be the problem? Thanks
  12. Hi. Yesterday in the morning I requested java enabled for my site studiofp on johnny. Till now, I' getting this error: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. What's the problem? Thanks
  13. Path and filename seem to be correct; on my desktop all is Ok. By the way, as I said, also when I try to execute ServletsTestPage (the sample servlet you put in the WEB-INF\classes folder), the response is: Not Found The requested URL /ServletsTestPage was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
  14. Hi. I did Java Request already. If I execute the sample JSP, all is Ok. When I try to execute ServletsTestPage, the response is: Not Found The requested URL /ServletsTestPage was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I also uploaded my war file, which contains some servlets into a package with the corresponding web.xml entries; if I try to invoke any of them, same response What should i do? My HelioHost context is studiofp. Thank you.
  15. You mean with a Tomcat server running? No, I tried it only in a NetBeans environment (Tomcat inside NetBeans). I'll try and let you know.
  16. Just to be precise: in my last post I wanted to ask a question, but I missed the question mark. So I repost it correctly. Is my context structure correct (all JSPs and java classes and packages under public_html, JSPs with other subfolders, JARs in WEB-INF\lib subfolder, java classes in WEB-INF\classes subfolder, with other subfolders for java packages)? Thanks
  17. Yes, I tried. The most significant suggestions were to be sure my JARs were in the classpath (I hope WEB-INF\lib is in the classpath) and to put a ";" after the last "import" statement (tried, with no success); one wanted to see Tomcat logs, but I have no access to them (I tried to ask your forum if I could have control on my context, such as stopping, starting and restarting it, but you said it is not possible). Is my context structure correct (all JSPs and java classes and packages under public_html, JSPs with other subfolders, JARs in WEB-INF\lib subfolder, java classes in WEB-INF\classes subfolder, with other subfolders for java packages). Thanks
  18. I considered this, but in my environment (NetBeans 7.0.1, Tomcat 7.0.14, Java 1.6.0_27) all is ok. Also sounds strange to me that a different version of Tomcat could cause all these problems.
  19. Here's what happens: - connect to http://softlab.heliohost.org/index.jsp - click on "Infocar" on the right bar. Below is what I get; I want just to point out that "it.jTools.util.FunzioniSessione" is a classs residing in the package "it.jTools.util" (file jTools.jar), present in my "public_html\WEB-INF\lib" folder. HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 6 in the generated java file Only a type can be imported. it.jTools.util.FunzioniSessione resolves to a package An error occurred at line: 7 in the jsp file: /index.jsp FunzioniSessione cannot be resolved to a type 4:
  20. I have no access to Tomcat logs, whatever log file could I have?
  21. I just saw that link in the past; I tried adding ";" after the last import statement, but no changes. I use NetBeans, and running my web-app under NetBeans doesn't get any error. My JSP pages, apart from the first index.jsp (which is directly under my "public_html" folder), are in subfolders of my "public_html" folder; JARs are in my WEB-INF\lib subfolder. Any other suggestions?
  22. Home page is showing correctly, wher I click on "infocar" then happens what described in the topic.
  23. Hi. I'm softlab on johnny and I have a problem. I FTPed my java classes and jars in my "public_html" folder. When I connect to the index.jsp page (directly present under the "public_html" folder), all is ok. When from the index.jsp page I try to load another JSP, which is in a subfolder of the "public_html" folder and imports classes from the jars (present in the "WEB-INF\lib" folder) or any java class in the "WEB-INF\classes" folder, referencing in the import the package they belong (), on the instantiation of the class (FunzioniSessione f = new FunzioniSessione() I get the following error: An error occurred at line: 6 in the generated java file Only a type can be imported. it.swlab.util.FunzioniSessione resolves to a package. What is the problem? Java classes and JSP files are under my "public_html" folder, with the structure they have under tomcat (JSPs directly under the "public_html" folder or in its subfolders, java classes in the "WEB-INF\classes" folder and in its subfolders, organized in packages, JARs in the with "WEB-INF\lib" folder). Thanks in advance softlab
  24. softlab

    tomcat

    Thanks for answering. I don't think this can help, in my WEB-INF\lib I have only two jars (hsqldb and a jar of mine); don't have access to common\lib neither conf\lib directories, so I don't know if there is catalina-ant.jar in it. I use NetBeans to develop my web app, then FTP the content of the build\web directory into my public_html folder on Heliohost. On my desktop with NetBeans all works well, but after "FTPing" the classes and JSPs I get the error described before. Any ideas? Thank you
  25. softlab

    tomcat

    Hi. That's the problem. When I try to load a jsp page which imports a class contained in a package (class FunzioniSessione in package it.swlab.util) I get the following error: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 6 in the generated java file Only a type can be imported. it.swlab.util.FunzioniSessione resolves to a package An error occurred at line: 7 in the jsp file: /index.jsp FunzioniSessione cannot be resolved to a type 4: <% 5: synchronized(this) 6: { 7: FunzioniSessione funzioniSessione = new FunzioniSessione(); 8: String percorso = config.getServletContext().getRealPath("/"); 9: funzioniSessione.inizializza(session,request,response,percorso,"infocar"); 10: boolean connesso = session.getAttribute("utenteConnesso") != null; An error occurred at line: 7 in the jsp file: /index.jsp FunzioniSessione cannot be resolved to a type 4: <% 5: synchronized(this) 6: { 7: FunzioniSessione funzioniSessione = new FunzioniSessione(); 8: String percorso = config.getServletContext().getRealPath("/"); 9: funzioniSessione.inizializza(session,request,response,percorso,"infocar"); 10: boolean connesso = session.getAttribute("utenteConnesso") != null; Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:328) org.apache.jasper.compiler.Compiler.compile(Compiler.java:307) org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:309) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.33 logs. Can anyone help me? Thank you
×
×
  • Create New...