Discussion:
[opencms-dev] Problem beim Tomcat7 start
Christoph Kukulies
2014-08-25 08:31:48 UTC
Permalink
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20140825/ad0e55f3/attachment.html>
Christoph Kukulies
2014-08-25 10:30:59 UTC
Permalink
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20140825/f8539097/attachment.html>
Arash Kaffamanesh
2014-08-25 12:59:53 UTC
Permalink
Hi Christoph,

where is your opencms_init.log placed? find it with:

find / -name opencms_init.log

and change the owner:

chown tomcat7.tomcat7 opencms_init.log

I guess, since you installed opencms as ROOT app, the init log was not
placed under /var/lib/tomcat7 and in general its not a good idea to install
opencms as ROOT app.


HTH,
Kind Regards,
Arash
Ich versuche gerade eine Site hochzuziehen unter Apache2/Tomcat7 (ubuntu
14.04)
und ich kriege keinen sauberen Start von tomcat7 hin. Wei? nicht, ob ich
damit besser in ein tomcat forum gehe oder
Sorry, inadvertently used German :)
I'm trying to surrect a site under Apache2/Tomcat7 (ubuntu 14.04) and
tomcat7 is not starting cleanly.
Aug 25, 2014 10:22:45 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: opencms_init.log (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
at java.io.FileOutputStream.<init>(FileOutputStream.java:142)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194)
at
org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164)
at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)
webapps/ROOT/WEB-INF/logs geh?rt tomcat7:tomcat7, mode 755.
Opencms is starting though.
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
_______________________________________________
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: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20140825/336c3722/attachment.html>
Christoph Kukulies
2014-08-25 13:52:26 UTC
Permalink
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20140825/152724eb/attachment.html>
Arash Kaffamanesh
2014-08-25 14:07:05 UTC
Permalink
Hi Christoph,

see on this page:
https://docs.google.com/a/cloudssky.com/document/d/1PUNVQXecxABjf5WNh1xb1CWY-FIBZgOTPO1neIi6EgI/edit?pli=1#heading=h.r4ba2ls3mq1o

in the appendix of the step by step OpenCms installation guide with Apache,
Tomcat 7, MySQL, SSL and much more, works on Ubuntu 12 and 14.

HTH,
Kind Regards,
Arash



On Mon, Aug 25, 2014 at 3:52 PM, Christoph Kukulies <
Hi Arash,
thanks for answering. Well, I'm running opencms as ROOT app for more than
12 (?) years now without problems and
this problem with opencms_init.log is new, possibly due to the strange way
Ubuntu sets up tomcat lately.
When you tell me a way to strip off the /opencms prefix without running it
as a ROOT app, I'll be the first one to
switch over.
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
Hi Christoph,
find / -name opencms_init.log
chown tomcat7.tomcat7 opencms_init.log
I guess, since you installed opencms as ROOT app, the init log was not
placed under /var/lib/tomcat7 and in general its not a good idea to install
opencms as ROOT app.
HTH,
Kind Regards,
Arash
2014-08-25 12:30 GMT+02:00 Christoph Kukulies <kuku at physik.rwth-aachen.de>
Ich versuche gerade eine Site hochzuziehen unter Apache2/Tomcat7 (ubuntu
14.04)
und ich kriege keinen sauberen Start von tomcat7 hin. Wei? nicht, ob ich
damit besser in ein tomcat forum gehe oder
Sorry, inadvertently used German :)
I'm trying to surrect a site under Apache2/Tomcat7 (ubuntu 14.04) and
tomcat7 is not starting cleanly.
Aug 25, 2014 10:22:45 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: opencms_init.log (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
at java.io.FileOutputStream.<init>(FileOutputStream.java:142)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194)
at
org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164)
at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)
webapps/ROOT/WEB-INF/logs geh?rt tomcat7:tomcat7, mode 755.
Opencms is starting though.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20140825/98157b1b/attachment.html>
Christoph Kukulies
2014-08-25 14:25:08 UTC
Permalink
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20140825/eba015e3/attachment.html>
Arash Kaffamanesh
2014-08-25 15:32:19 UTC
Permalink
Hi Christoph,

Thanks for the hint, the link was broken after an upgrade to OpenCms 9, its
now fixed.

Regarding your question, I'd recommend to use mod_jk with ajp connector as
described there, its much powerful and performant than mod_proxy etc..

Kind Regards,
Arash


On Mon, Aug 25, 2014 at 4:25 PM, Christoph Kukulies <
Post by Arash Kaffamanesh
Hi Christoph,
https://docs.google.com/a/cloudssky.com/document/d/1PUNVQXecxABjf5WNh1xb1CWY-FIBZgOTPO1neIi6EgI/edit?pli=1#heading=h.r4ba2ls3mq1o
in the appendix of the step by step OpenCms installation guide with
Apache, Tomcat 7, MySQL, SSL and much more, works on Ubuntu 12 and 14.
HTH,
Kind Regards,
Arash
Thanks a lot, Arash.
Unfortunately the link to the adressed vhosts file (000-default) in the
document is broken.
<http://cloudssky.com/en/downloads/000-default>
I'm not using ajp workers on port 8009, instead I have an extra connector
for every VirtualHost site (have four or five
of those). Would that work also?
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20140825/09e7b71a/attachment.html>
Christoph Kukulies
2014-08-26 08:23:10 UTC
Permalink
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20140826/6e92727c/attachment.html>
Arash Kaffamanesh
2014-08-26 18:26:27 UTC
Permalink
Hi Christoph,

Just copy the default vhost to to a new domain-name.conf file and adapt the
ServerName, extend the site node in opencms-system.xml to match your
"domain-name", restart tomcat and reload apache and you should be fine.

By the way the new site management tool in OpenCms 9 was built for that
(thanks to R?diger for the hard work :-)).
With this you can create new sites in production environments without
having to restart tomcat!

http://de.slideshare.net/AlkaconOpenCms/opencms-days-2013-site-management-tool

HTH,
Kind Regards,
Arash


On Tue, Aug 26, 2014 at 10:23 AM, Christoph Kukulies <
Hi Arash, list,
just one question: how do I create connectors for multiple
virtualhosts/sites when using that
way of installation (opencms as opencms app and APJ-worker) ?
Hi Christoph,
Thanks for the hint, the link was broken after an upgrade to OpenCms 9,
its now fixed.
Regarding your question, I'd recommend to use mod_jk with ajp connector
as described there, its much powerful and performant than mod_proxy etc..
Kind Regards,
Arash
On Mon, Aug 25, 2014 at 4:25 PM, Christoph Kukulies <
Post by Arash Kaffamanesh
Hi Christoph,
https://docs.google.com/a/cloudssky.com/document/d/1PUNVQXecxABjf5WNh1xb1CWY-FIBZgOTPO1neIi6EgI/edit?pli=1#heading=h.r4ba2ls3mq1o
in the appendix of the step by step OpenCms installation guide with
Apache, Tomcat 7, MySQL, SSL and much more, works on Ubuntu 12 and 14.
HTH,
Kind Regards,
Arash
Thanks a lot, Arash.
Unfortunately the link to the adressed vhosts file (000-default) in the
document is broken.
<http://cloudssky.com/en/downloads/000-default>
I'm not using ajp workers on port 8009, instead I have an extra connector
for every VirtualHost site (have four or five
of those). Would that work also?
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
_______________________________________________
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: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20140826/a7318959/attachment.html>
Christoph Kukulies
2014-08-26 13:32:19 UTC
Permalink
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20140826/53e830f0/attachment.html>
Arash Kaffamanesh
2014-08-26 17:36:56 UTC
Permalink
Hi Christoph,

no, do exactly what is provided there:

the context tag is commented:

<!-- Context -->

and is extended with the sessionCookiePath="/":

<Context sessionCookiePath="/">
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>

<!-- Uncomment this to disable session persistence across Tomcat
restarts -->
<!--
<Manager pathname="" />
-->

<!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) -->
<!--
<Valve
className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->

</Context>

and has a closing tag </Context>.

Best,
Arash



On Tue, Aug 26, 2014 at 3:32 PM, Christoph Kukulies <
Hi Arsh,
$ vi /var/lib/tomcat7/conf/context.xml
<!-- Context -->
<Context sessionCookiePath="/">
There is already a Context section. How would that fit into the existing
one?
And wouldn't that have to be
<Context sessionCookiePath="/"
* /> *
*? *
Hi Christoph,
Thanks for the hint, the link was broken after an upgrade to OpenCms 9,
its now fixed.
Regarding your question, I'd recommend to use mod_jk with ajp connector
as described there, its much powerful and performant than mod_proxy etc..
Kind Regards,
Arash
On Mon, Aug 25, 2014 at 4:25 PM, Christoph Kukulies <
Post by Arash Kaffamanesh
Hi Christoph,
https://docs.google.com/a/cloudssky.com/document/d/1PUNVQXecxABjf5WNh1xb1CWY-FIBZgOTPO1neIi6EgI/edit?pli=1#heading=h.r4ba2ls3mq1o
in the appendix of the step by step OpenCms installation guide with
Apache, Tomcat 7, MySQL, SSL and much more, works on Ubuntu 12 and 14.
HTH,
Kind Regards,
Arash
Thanks a lot, Arash.
Unfortunately the link to the adressed vhosts file (000-default) in the
document is broken.
<http://cloudssky.com/en/downloads/000-default>
I'm not using ajp workers on port 8009, instead I have an extra connector
for every VirtualHost site (have four or five
of those). Would that work also?
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
_______________________________________________
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: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20140826/eab614e1/attachment.html>
Loading...