Jump to content

Recommended Posts

Posted

I don't really know; I'm not an expert at tomcat. If you'll give me a command or tell me what to do, I could do that for you.

Posted

I don't think it is necessary to restart the tomcat for deployment.

When you deploy in local system, you may restart tomcat .

But in hosting, if you restart all users will affect.

 

Upload your files and check whether it is working or not.

 

If it doesn't work , reply with detailed information. I will try to help you.

Posted
I don't think it is necessary to restart the tomcat for deployment.

When you deploy in local system, you may restart tomcat .

But in hosting, if you restart all users will affect.

 

Upload your files and check whether it is working or not.

 

If it doesn't work , reply with detailed information. I will try to help you.

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

Posted
Maybe this is of help?

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

Posted

Try asking on stackoverflow or something. I'm not an expert at java; so I really don't know what to do. Like I said above, if you'll tell me what to do, I'll be more than happy to do it. I'm just not sure what to do.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...