Jump to content

softlab

Members
  • Posts

    270
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by softlab

  1. 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
  2. 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
  3. softlab

    tomcat

    Hi, I'm softlab on johnny. Is there a way to restart my tomcat instance when I deploy a new copy of my java application? Thanks
  4. softlab

    Java problem

    That's right. If I run my project in NetBeans with Tomcat 7, all is Ok and I can see every page I request. When I upload the content of the "build/web" folder of NetBeans to heliohost, I can see only the first page, which does not import any java class; but if I try to request the first page that has a java import, the it fails as said in the first post. Can you help me?
  5. softlab

    Java problem

    Thanks for answering. Yes, the function is public; in my environment (I'm using NetBeans 7.0 with JDK 1.6) all is Ok and functioning. The first version of the import was without ";" at the end, but the result was the same (but in my environment Ok as before). Any other suggestions?
  6. softlab

    Java problem

    Hi. I'm softlab on Johnny. I have a problem with Java. I have a jsp page in my public_html folder (index.jsp) that links to other jsp pages within a subfolder; these jsp pages import a class within a package, and the package jar is in the WEB-INF/classes folder within public_html. When I try to load the jsp page within the subfolder, i get this 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; This is the import: <%@page import="it.swlab.util.FunzioniSessione;"%> and the line where is got the error is a simple instantiation of the class: FunzioniSessione f = new FunzioniSessione(); What's the problem? Thank you
  7. Hi. Yesterday ot seemed to be ok, but today I can't login again. Same error.
  8. I'm softlab and I'm on Johnny. Wher I try to login to cPanel the system tells me the page can't be shown. Same problem if I try to access my homepage. Thanks
  9. Is there an idea on when java on my account will work and johnny will be up?
  10. I'm softlab and I'm on Johnny. Since the post for the listing problems on Johnny has been closed, when I try to access my site (softlab.heliohost.org) I get this: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. What's up? Thanks
  11. Thanks for the immediate answer. Yes, I get the same error for both pages. More, if I try to reach the address http://www.heliohost.org/scripts/status.php?username=softlab to see the status of my account in the creation queue, I see a page saying Either we could not find that account in the database, or it has already become active. If you're seeing an "Account Queued" page, please wait an additional 24 hours. If you aren't seeing anything, please refresh your browser's cache. Hope helps. Thanks for the immediate answer. Yes, I get the same error for both pages. More, if I try to reach the address http://www.heliohost.org/scripts/status.php?username=softlab to see the status of my account in the creation queue, I see a page saying Either we could not find that account in the database, or it has already become active. If you're seeing an "Account Queued" page, please wait an additional 24 hours. If you aren't seeing anything, please refresh your browser's cache. Hope helps. I forgot. I'm on Johnny.
  12. I registered my account yesterday; if I try to sign in and give my userid and password, then press 'Login' button, the system tells me that it is impossible to show the web page. what's wrong? Thanks
×
×
  • Create New...