Running on Tomcat 5 [Was: Re: [opencms-dev] Ok, finally gonethrough the wizard, but guesswhat...]

Rene Hinojosa r_hinojosa at cityofsouthfield.com
Tue Oct 14 19:04:01 CEST 2003


Greetings,

Have you tried dumping the opencms database and removing the opencms  
dir in /$TOMCAT_HOME/webapps then restarting tomcat to unpack the  
opencms.war then running ocsetup? Basically this is a clean install.

Rene
On Tuesday, October 14, 2003, at 12:12 PM, Ilja wrote:

> Come on people, I'm struggling for more than a week now and haven't got
> one inch further. No-one who can help me?
>
> Ilja
>
> On Mon, 13 Oct 2003 18:08:08 +0200, "Ilja" <imhehenkamp at hotmail.com>
> said:
>> When setting up opencms I always get this error, no matter if I drop  
>> the
>>  database first or not (manually or through the wizard, doesn't  
>> matter)
>>
>>  14:             at
>>  com.opencms.boot.CmsSetupThread.run(CmsSetupThread.java:83)
>>  13:             at  
>> com.opencms.boot.CmsMain.startSetup(CmsMain.java:120)
>>  12:             at com.opencms.boot.CmsMain.begin(CmsMain.java:155)
>>  11:             at java.lang.Class.newInstance(Class.java:259)
>>  10:             at java.lang.Class.newInstance0(Class.java:306)
>>  9:              at
>>  java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>>  8:              at
>>   
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCo 
>> nstructorAccessorImpl.java:27)
>>  7:              at
>>  sun.reflect.GeneratedConstructorAccessor44.newInstance(Unknown  
>> Source)
>>  6:              at  
>> com.opencms.core.CmsShell.<init>(CmsShell.java:114)
>>  5:              at com.opencms.core.OpenCms.<init>(OpenCms.java:259)
>>  4:      root cause was java.sql.SQLException: Invalid argument value:
>>  Duplicate entry '/' for key 2
>>  3:      root cause was com.opencms.core.CmsException: 4 Sql  
>> exception.
>>  Detailed error: [com.opencms.file.mySql.CmsDbAccess] Invalid argument
>>  value: Duplicate entry '/' for key 2.
>>  2:      root cause was com.opencms.core.CmsException: 33
>>  Resourcebroker-init error. Detailed error: Critical error while  
>> loading
>>  resourcebroker.
>>  1:      com.opencms.core.CmsException: 33 Resourcebroker-init error.
>>  Detailed error: Database init failed.
>>
>>  Sometimes when I re-run the wizard, nothing happens when importing  
>> the
>>  workspace, but then I get errors that the database isn't properly
>>  initialized when accessing index.jsp...
>>
>>  Any updates on the Tomcat 5 related problems and why I couldn't login
>>  (404 error)... I appreciate to have some feedback on this, I'm
>>  struggling
>>  to get opencms working for almost a week now...
>>
>>  Regards,
>>
>>  Ilja
>>
>>  On Mon, 13 Oct 2003 13:53:04 +0200, "Ilja" <imhehenkamp at hotmail.com>
>>  said:
>>> I tried installing opencms on Tomcat 4.1.27, the wizard went fine,  
>>> but
>>> when opening the index.jsp I get the following error:
>>>
>>> javax.servlet.ServletException: OpenCms initialization error!
>>>
>>> Could not connect to the database. Is the database up and running?
>>>
>>> Root cause:
>>> com.opencms.core.CmsException: 34 Registry error. Detailed error:
>>> couldn't init registry.
>>> root cause was com.opencms.core.CmsException: 21 XML parsing error.
>>> Detailed error: Cannot parse XML file "null".
>>> org.xml.sax.SAXParseException: Premature end of file..
>>>        at com.opencms.file.CmsRegistry.(CmsRegistry.java:184)
>>>        at
>>>         
>>> com.opencms.file.genericSql.CmsResourceBroker.init(CmsResourceBroker. 
>>> java:4203)
>>>        at com.opencms.file.CmsRbManager.init(CmsRbManager.java:88)
>>>        at com.opencms.core.OpenCms.(OpenCms.java:255)
>>>        at
>>>         
>>> com.opencms.core.OpenCmsHttpServlet.init(OpenCmsHttpServlet.java:242)
>>>        at
>>>         
>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. 
>>> java:935)
>>>
>>> My registry.xml is totally blank, so that might be the problem?
>>>
>>> Ilja
>>>
>>> On Sun, 12 Oct 2003 15:38:51 +0200, "Ilja" <imhehenkamp at hotmail.com>
>>> said:
>>>> Just FYI, if I go to:  
>>>> http://localhost:8080/opencms/opencms/system/login
>>>> I get the page, but with two things not working:
>>>>
>>>> 1) the image isn't displayed (not critical ofcourse)
>>>> 2) I get this message:
>>>>
>>>> "The version of workplace-templates and workplace-classes are  
>>>> different.
>>>> Please update one.
>>>>
>>>> Workplace: undefined
>>>> Classes: 5.0.0 Kaitain"
>>>>
>>>> Secondly when I try to login using Admin/admin, I get a 404 error  
>>>> (my
>>>> browser is pointed to:
>>>> http://localhost:8080/opencms/export/system/login/index_1.html)
>>>>
>>>> I posted the first error (from index.jsp) on the tomcat mailinglist  
>>>> btw.
>>>> I guess the jsp-syntax isn't compatible with the new Tomcat version?
>>>> Since the login-page does work....
>>>>
>>>> Regards,
>>>>
>>>> Ilja
>>>>
>>>> On Sat, 11 Oct 2003 22:08:30 -0600, "M Butcher"
>>>> <mbutcher at grcomputing.net> said:
>>>>> On Sat, 2003-10-11 at 19:00, Ilja wrote:
>>>>>
>>>>>> Can't find anything related in catalina.out.... So my only  
>>>>>> solution
>>>>>> should be to downgrade to Tomcat 4.2x? Is it alot of work to make  
>>>>>> it
>>>>>> Tomcat 5.0 compatible?
>>>>>>
>>>>>
>>>>> I have no idea. Anybody else on the list tried this?
>>>>>
>>>>> -- 
>>>>> M Butcher <mbutcher at grcomputing.net>
>>>>> _______________________________________________
>>>>> This mail is send to you from the opencms-dev mailing list
>>>>> To change your list options, or to unsubscribe from the list,  
>>>>> please
>>>>> visit
>>>>> http://mail.opencms.org/mailman/listinfo/opencms-dev
>> _______________________________________________
>> This mail is send to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please
>> visit
>> http://mail.opencms.org/mailman/listinfo/opencms-dev
>>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please  
> visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>




More information about the opencms-dev mailing list