[opencms-dev] Re: fixed the encoding-conflict on mac os x, but have a new problem now
Ilja
imhehenkamp at hotmail.com
Fri Oct 10 22:47:01 CEST 2003
My logfile btw:
[10.10.2003 22:05:02] <opencms_init> [CmsBase] Setting OpenCms home
folder to /Library/Tomcat/webapps/opencms/WEB-INF/.
[10.10.2003 22:05:02] <opencms_init> . OpenCms encoding : MacRoman
[10.10.2003 22:05:02] <opencms_init> . System file.encoding : MacRoman
[10.10.2003 22:05:02] <opencms_init> . Encoding set to : MacRoman
[10.10.2003 22:05:02] <opencms_init> . Ethernet address used:
8d:66:42:70:89:8f
[10.10.2003 22:05:02] <opencms_init> . Java VM in use : Java
HotSpot(TM) Client VM 1.4.1_01-24 mixed mode "Apple Computer, Inc."
[10.10.2003 22:05:02] <opencms_init> . Operating sytem : Mac OS X
10.2.8 ppc
[10.10.2003 22:05:02] <opencms_init> . Resource broker used : mysql
[10.10.2003 22:05:02] <opencms_init> . Resource broker class:
com.opencms.file.mySql.CmsResourceBroker
[10.10.2003 22:05:02] <opencms_init> . Resource broker init : phase 1 ok
- starting
[10.10.2003 22:05:02] <opencms_init> . Resource broker init : phase 2 ok
- initializing database
[10.10.2003 22:05:02] <opencms_init> . Resource broker init : phase 3 ok
- creating db access module
[10.10.2003 22:05:02] <opencms_init> . Database access init : ok
[10.10.2003 22:05:02] <opencms_init> . Database offline pool:
jdbc:opencmspool:mysql
[10.10.2003 22:05:02] <opencms_init> . Database online pool :
jdbc:opencmspool:mysqlonline
[10.10.2003 22:05:02] <opencms_init> . Database backup pool :
jdbc:opencmspool:mysqlbackup
[10.10.2003 22:05:02] <opencms_init> . Digest configured : MD5
[10.10.2003 22:05:02] <opencms_init> . Digest file encoding : UTF-8
[10.10.2003 22:05:02] <opencms_init> . Using digest encoding: MD5 from
SUN version 1.2
[10.10.2003 22:05:02] <opencms_init> . Database fill default: yes
[10.10.2003 22:05:02] <opencms_critical> [CmsRbManager] Critical error
while loading resourcebroker
[10.10.2003 22:05:02] <opencms_critical> . Critical init error/3:
com.opencms.core.CmsException: Critical error while loading
resourcebroker
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