[opencms-dev] fixed the encoding-conflict on mac os x, but have a new problem now

Ilja imhehenkamp at hotmail.com
Fri Oct 10 22:44:02 CEST 2003


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