softlab Posted September 10, 2011 Posted September 10, 2011 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
Guest xaav Posted September 11, 2011 Posted September 11, 2011 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.
PenTester Posted September 11, 2011 Posted September 11, 2011 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.
softlab Posted September 14, 2011 Author Posted September 14, 2011 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
softlab Posted September 15, 2011 Author Posted September 15, 2011 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
Guest xaav Posted September 16, 2011 Posted September 16, 2011 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now