[opencms-dev] Setup hangs an Mac OS X when setting docBase in Tomcat / Illegal access error

Christian Steinert christian at christian-steinert.de
Fri Aug 16 16:51:36 CEST 2013


Dear Klaus

Opencms does not depend on being accessed through  http://server/opencms/setup. If you change your web.xml and/or put it into a different web application folder than "opencms" then the URL will change.

If you have problems with the automatic unpacking of the JAR file then you can just unpack the JAR file yourself (after all, a JAR is nothing other than a ZIP file). Then copy the contents of the zip into your web application folder, for example webapps/ROOT and restart tomcat. If you have more than one copy of opencms running on the server then make sure that each of them uses a different database!

And if you have permission problems then make sure that all files and folders related to opencms are owned by the same user account which is used to run tomcat.

All the best
Christian

> Hello,
>
> i'm trying to setup the latest version of OpenCms on my Macbook. Here's all relevant information:
>
> OS Version: 10.8.4
> Java (java -version): java version "1.7.0_25"
> Tomcat: 7.0.42
> MySQL: 5.5.30
>
> Tomcat and MySQL were installed with brew. The second screen ("component tests") gives all green check marks. I created a db user for opencms and password and creating database/tables runs just well.
>
> Here's the relevant part from my server.xml
>
>       <Host name="localhost"  appBase="/Users/kkruse/opencms_8"
>             unpackWARs="true" autoDeploy="true">
>
>         <Context docBase="opencms" path="" reloadable="true">
>         </Context>
>
> The idea was, to simply skip one directory level and serve everything from the root. This seemed to work: Tomcat unpacked the .war and served http://localhost:8080/setup
>
> Here comes the first curiosity: Tomcat creates one directory named "opencms" and one named "ROOT" in the appBase which has nearly the same size as the "opencms" folder
>
> Installation then runs for a while and stopped then. The last lines of catalina.out were like this:
>
> Aug 15, 2013 10:24:59 AM org.apache.catalina.loader.WebappClassLoader findResourceInternal
> INFO: Illegal access: this web application instance has been stopped already.  Could not load org/opencms/setup/messages.properties.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
>
>
> So, my question: Does OpenCms rely strictly on being accessed over http://server/opencms/setup ?
>
>
> Thanks for any answers and best regards,
> Klaus Kruse
>
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130816/b51aa7b8/attachment.htm>


More information about the opencms-dev mailing list