[opencms-dev] Unable to compile class for JSP

matangi easyart at free.fr
Sat Feb 17 16:24:38 CET 2007


I tried to use the language demo from the wiki

http://opencms-wiki.org/Switch_between_languages

which is an example of code to switch between languages. But I got an
exeption.

Anyone has a workaround or can tell me please how to fix this. Suse 10,
Tomcat 5.02, Java 1.5

Thank you very much

matangi

***************************************************************************************************************

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 13 in the jsp file:
/WEB-INF/jsp/offline/sites/default/demopages/languagedemo/sprache.jsp
Generated servlet error:
/usr/share/tomcat5/work/Catalina/localhost/cms/org/apache/jsp/WEB_002dINF/jsp/offline/sites/default_/demopages/languagedemo/sprache_jsp.java:69:
generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
       Map<String, String> linksByLocale = new HashMap<String, String>();
          ^


An error occurred at line: 13 in the jsp file:
/WEB-INF/jsp/offline/sites/default/demopages/languagedemo/sprache.jsp
Generated servlet error:
/usr/share/tomcat5/work/Catalina/localhost/cms/org/apache/jsp/WEB_002dINF/jsp/offline/sites/default_/demopages/languagedemo/sprache_jsp.java:76:
for-each loops are not supported in -source 1.3
(try -source 1.5 to enable for-each loops)
           for (CmsResource sibling : siblings) {
                                    ^
2 errors



	at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
	at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:437)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
	at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:696)
	at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:585)
	at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
	at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194)
	at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:170)
	at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:433)
	at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423)
	at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:174)
	at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:467)
	at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:412)
	at
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:730)
	at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1349)
	at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:151)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)

-- 
View this message in context: http://www.nabble.com/Unable-to-compile-class-for-JSP-tf3245100.html#a9020803
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list