<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY style="COLOR: #000000; FONT-FAMILY: Arial" bgColor=#ffffff>
<DIV><FONT size=2>Hi,</FONT></DIV>
<DIV><FONT size=2>I am using JSP template and I have problem with this fragment 
of my code:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Vector users = cmsObject.getUsers();<BR>String author = 
"";<BR>for (int i=0; i < users.size(); i++) {<BR> CmsUser user = 
(CmsUser) users.elementAt(i);<BR> if (user.getName().equals(authorId)) 
{<BR>  author = author + user.getFirstname() + " " + 
user.getLastname();<BR> }<BR>}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>After publishing I've got this:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>javax.servlet.ServletException: Resource loader error in file 
'/system/modules/org.opencms.default/jsptemplates/JSPtemplate.jsp'</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Root cause:<BR>org.apache.jasper.JasperException: 
com.opencms.core.CmsException: [com.opencms.file.mySql.CmsResourceBroker] 
Guest<BR> at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)<BR> at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)<BR> at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)<BR> at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)<BR> at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)<BR> at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)<BR> at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)<BR> at 
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:180)<BR> at 
com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)<BR> at 
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:268)<BR> at 
com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:567)<BR> at 
com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:235)<BR> at 
com.opencms.core.OpenCms.showResource(OpenCms.java:956)<BR> at 
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)<BR> at 
com.opencms.core.OpenCmsHttpServlet.doPost(OpenCmsHttpServlet.java:331)<BR> at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)<BR> at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)<BR> at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)<BR> at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)<BR> at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)<BR> at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)<BR> at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)<BR> at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<BR> at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<BR> at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)<BR> at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)<BR> at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<BR> at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)<BR> at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)<BR> at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)<BR> at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)<BR> at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)<BR> at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)<BR> at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)<BR> at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)<BR> at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<BR> at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)<BR> at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)<BR> at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)<BR> at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)<BR> at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)<BR> at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)<BR> at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)<BR> at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)<BR> at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)<BR> at 
java.lang.Thread.run(Thread.java:536)<BR></FONT></DIV>
<DIV><FONT size=2>Does anyone has a good idea what's wrong?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Best regards, Ivan</DIV></FONT></BODY></HTML>