Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Hanzel Legarda
Unable to compile class for JSP only in specific computers.
November 5, 2012 2:12 PM
Answer

Hanzel Legarda

Rank: New Member

Posts: 4

Join Date: November 2, 2012

Recent Posts

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:

 1
 223:32:24,363 ERROR [IncludeTag:78] Current URL /web/guest;jsessionid=BFE790BBC107B870740C0268238CEA16 generates exception: Unable to compile class for JSP:
 3
 4An error occurred at line: 33 in the jsp file: /html/portlet/ext/courseschedule2/view.jsp
 5GroupConstants.COMM_CATEGORY_AWR cannot be resolved
 630: <%
 731:
 832:         if (tabs1.equals("available-AWR")) {
 933:             groupCat = GroupConstants.COMM_CATEGORY_AWR;
1034:             catTitle = GroupConstants.COMM_CATEGORY_AWR_LABEL;
1135:         } else if(tabs1.equals("available-HOT")) {
1236:             groupCat = GroupConstants.COMM_CATEGORY_HOT;
13
14Stacktrace:
15    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
16    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
17    at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
18    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
19    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
20    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
21    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
22    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
23    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
24    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
25    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
26    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
27    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
28    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
29    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
30    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
31    at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:66)
32    at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:2736)
33    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
34    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
35
3623:32:27,263 ERROR [IncludeTag:78] Current URL /web/guest;jsessionid=853515070BC187028375B6213F30D246 generates exception: org.apache.jasper.JasperException: Unable to load class for JSP
3723:32:27,268 ERROR [IncludeTag:164] java.lang.ClassNotFoundException: org.apache.jsp.html.portlet.ext.courseschedule2.view_jsp
38    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
39    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
40    at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
41    at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
42    at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:628)
43    at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:149)
44    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
45    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
46    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
47    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
48    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
49    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
50    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
51    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
52    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
53    at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:66)
54    at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:2736)
55    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
56    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
57    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
RE: Unable to compile class for JSP only in specific computers.
November 4, 2012 1:50 AM
Answer

Jigar N Gajjar

Rank: Junior Member

Posts: 62

Join Date: December 24, 2009

Recent Posts

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
Vitaliy Koshelenko
RE: Unable to compile class for JSP only in specific computers.
November 5, 2012 2:19 PM
Answer

Vitaliy Koshelenko

Rank: Expert

Posts: 287

Join Date: March 25, 2011

Recent Posts

Maybe you have changed the GroupConstants class and not re-compiled it ?
Hanzel Legarda
RE: Unable to compile class for JSP only in specific computers.
November 6, 2012 10:21 AM
Answer

Hanzel Legarda

Rank: New Member

Posts: 4

Join Date: November 2, 2012

Recent Posts

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.
Hanzel Legarda
RE: Unable to compile class for JSP only in specific computers.
November 6, 2012 10:23 AM
Answer

Hanzel Legarda

Rank: New Member

Posts: 4

Join Date: November 2, 2012

Recent Posts

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.