[opencms-dev] Ok, finally gone through the wizard, but guess what...

Ilja imhehenkamp at hotmail.com
Fri Oct 10 23:39:01 CEST 2003


Yes, good guess: another problem. After a couple of times re-running the
wizard, I've finally gone through it without any errors, HOWEVER:

when I try to load http://localhost:8080/opencms/opencms/index.jsp I get
the following error:

javax.servlet.ServletException: Resource loader error in file
'/index.jsp'

Root cause:
org.apache.jasper.JasperException: Unable to compile class for JSP
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:752)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:640)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:552)
	at com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:180)
	at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)
	at com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:268)
	at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:567)
	at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:235)
	at com.opencms.core.OpenCms.showResource(OpenCms.java:956)
	at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
	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:286)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:254)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:190)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:489)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
	at java.lang.Thread.run(Thread.java:554)

Does it have anything to do with the fact that I'm running Tomcat 5.0.7?

Nothing could be found in my logfile btw...

Regards,

Ilja

On Fri, 10 Oct 2003 22:14:42 +0200, "Ilja" <imhehenkamp at hotmail.com>
said:
> I fixed the problem below by setting defaultContentEncoding to MacRoman.
> Tried that before but got an error then... weird...
> 
> Anyway, now I have a new problem. When setting up opencms everything goes
> well until I'm importing the workplace. Then this error occurs:
> 
> com.opencms.core.CmsException: 33 Resourcebroker-init error. Detailed
> error: Critical error while loading resourcebroker. 
> root cause was com.opencms.core.CmsException: 4 Sql exception. Detailed
> error: [com.opencms.file.mySql.CmsDbAccess] Invalid argument value:
> Duplicate entry 'Guests' for key 2. 
> root cause was java.sql.SQLException: Invalid argument value: Duplicate
> entry 'Guests' for key 2
>         com.opencms.file.CmsRbManager.init(CmsRbManager.java:100)
>         com.opencms.core.OpenCms.(OpenCms.java:255)
>         com.opencms.core.OpenCmsHttpServlet.init(OpenCmsHttpServlet.java:242)
>         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
>         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
>         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)
>         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:489)
>         org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
>         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
>         java.lang.Thread.run(Thread.java:554)
> 
> When I just ignore it and proceed with the setup, the same error occurs
> when opening http://localhost:8080/opencms/opencms/index.jsp...
> 
> Anyone who knows what's wrong?
> 
> Best regards,
> 
> Ilja
> 
> On Fri, 10 Oct 2003 20:49:51 +0200, "Ilja" <imhehenkamp at hotmail.com>
> said:
> > Tried installing the latest opencms version on my mac osx machine, tomcat
> > 5.08 and getting the following error:
> > 
> > "Error: the encoding of your Java VM is different from the OpenCms
> > encoding!"
> > 
> > So I tried setting the JAVA_OPTS in catalina.sh (not really sure if the
> > syntax is valid)
> > 
> > JAVA_OPTS='-Dlog4j.debug=true'
> > JAVA_OPTS=${JAVA_OPTS}:'-Dfile.encoding=ISO-8859-1'
> > 
> > and am now getting the following error:
> > 
> > java.lang.NullPointerException
> >         com.opencms.boot.CmsSetup.getExtProperty(CmsSetup.java:163)
> >         com.opencms.boot.CmsSetup.getDefaultContentEncoding(CmsSetup.java:1061)
> >         org.apache.jsp.ocsetup.content_005fencoding_jsp._jspService(content_005fencoding_jsp.java:65)
> >         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:320)
> >         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
> >         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> > 
> > It's the same error I get when I tried setting defaultContentEncoding to
> > MacRoman in opencms.properties
> > 
> > Anyone know how I can solve this or what I'm doing wrong?
> > 
> > Ilja



More information about the opencms-dev mailing list