Jump to content

softlab

Members
  • Posts

    253
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by softlab

  1. 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
  2. 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
  3. 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.
  4. 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:
  5. I have no access to Tomcat logs, whatever log file could I have?
  6. 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?
  7. Home page is showing correctly, wher I click on "infocar" then happens what described in the topic.
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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?
  13. 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?
  14. 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
  15. Hi. Yesterday ot seemed to be ok, but today I can't login again. Same error.
  16. 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
  17. Is there an idea on when java on my account will work and johnny will be up?
  18. 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
  19. 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.
  20. 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...