11-11-2009 12:58 PM
11:50:07,685 INFO [STDOUT] 11:50:07,661 ERROR [[localhost].[/share].[jsp]] El Servlet.service() para servlet jsp lanzó una excepción
org.apache.jasper.JasperException: No se puede compilar la clase para JSP:
Ha tenido lugar un error en la línea: 13 en el archivo jsp: /site-index.jsp
The type Map is not generic; it cannot be parameterized with arguments <String, String>
10: if (context.getModel().getPage("user/" + userid + "/dashboard") == null)
11: {
12: // no site found! create initial dashboard for this user…
13: Map<String, String> tokens = new HashMap<String, String>();
14: tokens.put("userid", userid);
15: FrameworkHelper.getPresetsManager().constructPreset(context.getModel(), "user-dashboard", tokens);
16: }
Ha tenido lugar un error en la línea: 13 en el archivo jsp: /site-index.jsp
Syntax error, parameterized types are only available if source level is 5.0
10: if (context.getModel().getPage("user/" + userid + "/dashboard") == null)
11: {
12: // no site found! create initial dashboard for this user…
13: Map<String, String> tokens = new HashMap<String, String>();
14: tokens.put("userid", userid);
15: FrameworkHelper.getPresetsManager().constructPreset(context.getModel(), "user-dashboard", tokens);
16: }
Ha tenido lugar un error en la línea: 13 en el archivo jsp: /site-index.jsp
The type HashMap is not generic; it cannot be parameterized with arguments <String, String>
10: if (context.getModel().getPage("user/" + userid + "/dashboard") == null)
11: {
12: // no site found! create initial dashboard for this user…
13: Map<String, String> tokens = new HashMap<String, String>();
14: tokens.put("userid", userid);
15: FrameworkHelper.getPresetsManager().constructPreset(context.getModel(), "user-dashboard", tokens);
16: }
Ha tenido lugar un error en la línea: 13 en el archivo jsp: /site-index.jsp
Syntax error, parameterized types are only available if source level is 5.0
10: if (context.getModel().getPage("user/" + userid + "/dashboard") == null)
11: {
12: // no site found! create initial dashboard for this user…
13: Map<String, String> tokens = new HashMap<String, String>();
14: tokens.put("userid", userid);
15: FrameworkHelper.getPresetsManager().constructPreset(context.getModel(), "user-dashboard", tokens);
16: }
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:415)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
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:687)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.alfresco.web.framework.render.bean.JSPProcessor.doInclude(JSPProcessor.java:140)
at org.alfresco.web.framework.render.bean.JSPProcessor.executeBody(JSPProcessor.java:122)
at org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
at org.alfresco.web.framework.render.RenderHelper.processTemplate(RenderHelper.java:385)
at org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.calculateComponentDependencies(TemplateInstanceRenderer.java:78)
at org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:129)
at org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
at org.alfresco.web.framework.render.bean.PageRenderer.body(PageRenderer.java:81)
at org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
at org.alfresco.web.framework.render.RenderUtil.startPageRenderer(RenderUtil.java:144)
at org.alfresco.web.framework.render.RenderUtil.renderPage(RenderUtil.java:117)
at org.alfresco.web.framework.render.PresentationUtil.renderPage(PresentationUtil.java:86)
at org.alfresco.web.site.servlet.DispatcherServlet.dispatchPage(DispatcherServlet.java:512)
at org.alfresco.web.site.servlet.DispatcherServlet.dispatch(DispatcherServlet.java:389)
at org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
11:50:07,718 INFO [STDOUT] 11:50:07,706 ERROR [web.site.FrameworkHelper] A Page Rendering problem was handled
11:50:07,718 INFO [STDOUT] 11:50:07,718 ERROR [web.site.FrameworkHelper] Page Id: site-index
11:50:07,719 INFO [STDOUT] 11:50:07,718 ERROR [web.site.FrameworkHelper] Trace
org.alfresco.web.framework.exception.RendererExecutionException: Unable to execute 'body' JSP include: /site-index.jsp
at org.alfresco.web.framework.render.bean.JSPProcessor.executeBody(JSPProcessor.java:126)
at org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
at org.alfresco.web.framework.render.RenderHelper.processTemplate(RenderHelper.java:385)
at org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.calculateComponentDependencies(TemplateInstanceRenderer.java:78)
at org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:129)
at org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
at org.alfresco.web.framework.render.bean.PageRenderer.body(PageRenderer.java:81)
at org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
at org.alfresco.web.framework.render.RenderUtil.startPageRenderer(RenderUtil.java:144)
at org.alfresco.web.framework.render.RenderUtil.renderPage(RenderUtil.java:117)
at org.alfresco.web.framework.render.PresentationUtil.renderPage(PresentationUtil.java:86)
at org.alfresco.web.site.servlet.DispatcherServlet.dispatchPage(DispatcherServlet.java:512)
at org.alfresco.web.site.servlet.DispatcherServlet.dispatch(DispatcherServlet.java:389)
at org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.jasper.JasperException: No se puede compilar la clase para JSP:
Ha tenido lugar un error en la línea: 13 en el archivo jsp: /site-index.jsp
The type Map is not generic; it cannot be parameterized with arguments <String, String>
10: if (context.getModel().getPage("user/" + userid + "/dashboard") == null)
11: {
12: // no site found! create initial dashboard for this user…
13: Map<String, String> tokens = new HashMap<String, String>();
14: tokens.put("userid", userid);
15: FrameworkHelper.getPresetsManager().constructPreset(context.getModel(), "user-dashboard", tokens);
16: }
Ha tenido lugar un error en la línea: 13 en el archivo jsp: /site-index.jsp
Syntax error, parameterized types are only available if source level is 5.0
10: if (context.getModel().getPage("user/" + userid + "/dashboard") == null)
11: {
12: // no site found! create initial dashboard for this user…
13: Map<String, String> tokens = new HashMap<String, String>();
14: tokens.put("userid", userid);
15: FrameworkHelper.getPresetsManager().constructPreset(context.getModel(), "user-dashboard", tokens);
16: }
Ha tenido lugar un error en la línea: 13 en el archivo jsp: /site-index.jsp
The type HashMap is not generic; it cannot be parameterized with arguments <String, String>
10: if (context.getModel().getPage("user/" + userid + "/dashboard") == null)
11: {
12: // no site found! create initial dashboard for this user…
13: Map<String, String> tokens = new HashMap<String, String>();
14: tokens.put("userid", userid);
15: FrameworkHelper.getPresetsManager().constructPreset(context.getModel(), "user-dashboard", tokens);
16: }
Ha tenido lugar un error en la línea: 13 en el archivo jsp: /site-index.jsp
Syntax error, parameterized types are only available if source level is 5.0
10: if (context.getModel().getPage("user/" + userid + "/dashboard") == null)
11: {
12: // no site found! create initial dashboard for this user…
13: Map<String, String> tokens = new HashMap<String, String>();
14: tokens.put("userid", userid);
15: FrameworkHelper.getPresetsManager().constructPreset(context.getModel(), "user-dashboard", tokens);
16: }
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:415)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
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:687)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.alfresco.web.framework.render.bean.JSPProcessor.doInclude(JSPProcessor.java:140)
at org.alfresco.web.framework.render.bean.JSPProcessor.executeBody(JSPProcessor.java:122)
… 32 more
11-11-2009 03:50 PM
The workaround for this issue is to add the following XML configuration to
${jboss.home}/server/default/deploy/jboss-web.deployer/conf/web.xml
Add
<init-param>
<param-name>compilerSourceVM</param-name>
<param-value>1.5</param-value>
</init-param>
<init-param>
<param-name>compilerTargetVM</param-name>
<param-value>1.5</param-value>
</init-param>
inside <servlet> tag with <servlet-name>jsp</servlet-name> inside it.
(Note that there are many servlet tags in this web.xml, so be careful)
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.