Foros de discusión

Unable to compile class for JSP only in specific computers.

Hanzel Legarda, modificado hace 11 años.

Unable to compile class for JSP only in specific computers.

New Member Mensajes: 4 Fecha de incorporación: 2/11/12 Mensajes recientes
I'm having troubles with a Liferay 5.2 extension environment, the problem is that is working in some computers and not in others.
The code and the deployment process is the same, we're using the same java, Ant and Tomcat versions.

In the failing computers is throwing these exceptions:


23:32:24,363 ERROR [IncludeTag:78] Current URL /web/guest;jsessionid=BFE790BBC107B870740C0268238CEA16 generates exception: Unable to compile class for JSP: 

An error occurred at line: 33 in the jsp file: /html/portlet/ext/courseschedule2/view.jsp
GroupConstants.COMM_CATEGORY_AWR cannot be resolved
30: <%
31: 
32:         if (tabs1.equals("available-AWR")) {
33:             groupCat = GroupConstants.COMM_CATEGORY_AWR;
34:             catTitle = GroupConstants.COMM_CATEGORY_AWR_LABEL;
35:         } else if(tabs1.equals("available-HOT")) {
36:             groupCat = GroupConstants.COMM_CATEGORY_HOT;

Stacktrace:
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
    at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:66)
    at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:2736)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

23:32:27,263 ERROR [IncludeTag:78] Current URL /web/guest;jsessionid=853515070BC187028375B6213F30D246 generates exception: org.apache.jasper.JasperException: Unable to load class for JSP
23:32:27,268 ERROR [IncludeTag:164] java.lang.ClassNotFoundException: org.apache.jsp.html.portlet.ext.courseschedule2.view_jsp
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
    at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
    at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:628)
    at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:149)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
    at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:66)
    at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:2736)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)


Any ideas?

Edit:
A little more information. If i move a working Tomcat server from a computer where is working, to another one where the deployed system is failing, the server with the precompiled code still fails.
Jigar N Gajjar, modificado hace 11 años.

RE: Unable to compile class for JSP only in specific computers.

Junior Member Mensajes: 71 Fecha de incorporación: 25/12/09 Mensajes recientes
Hi Hanzel Legarda

please check where you have defined
GroupConstants.COMM_CATEGORY_AWR

Is this in your custom code, if yes then in another computer have you also taken reference for dependent code?

Thanks
Hanzel Legarda, modificado hace 11 años.

RE: Unable to compile class for JSP only in specific computers.

New Member Mensajes: 4 Fecha de incorporación: 2/11/12 Mensajes recientes
Hi thanks for your time, still no luck, i've found this thread http://www.liferay.com/community/forums/-/message_boards/view_message/12261850, and is exactly what is happening to me.
thumbnail
Vitaliy Koshelenko, modificado hace 11 años.

RE: Unable to compile class for JSP only in specific computers.

Expert Mensajes: 319 Fecha de incorporación: 25/03/11 Mensajes recientes
Maybe you have changed the GroupConstants class and not re-compiled it ?
Hanzel Legarda, modificado hace 11 años.

RE: Unable to compile class for JSP only in specific computers.

New Member Mensajes: 4 Fecha de incorporación: 2/11/12 Mensajes recientes
I've changed it but i'm sure it's compiled, actually if i move the server directory with the precompiled code it still doesn't work.