[xwiki-users] [Mac OS X 10.5.7, PostgreSQL 8.3.7, Java 1.5.0_16, Tomcat 6.0.18] Xwiki WAR running in a Tomcat container started as a daemon
Hi, Following the instructions given at http://www.malisphoto.com/tips/tomcatonosx.html , I was able to get my Tomcat container started as daemon. I already put the Xwiki WAR file in the 'webapps' directory. Pointing the browser to http://localhost:8080/xwiki only gave me a blank page. Nothing on it. However manually starting Tomcat brings me back the correct behavior (the well known Xwiki starting page). In the daemon mode, the others contexts (like 'manager', 'examples') work. Only the Xwiki one did not. What am I doing wrong? Does anyone already have some experience with a Xwiki in a daemon started Tomcat container? Attached, you will find the 'jsvc' processes started and 'catalina.out'. Tell me if you need more information. Many thanks for you help, christian
Hi Christian,
Following the instructions given at http://www.malisphoto.com/tips/tomcatonosx.html, I was able to get my Tomcat container started as daemon. I already put the Xwiki WAR file in the 'webapps' directory. Pointing the browser to http://localhost:8080/xwiki only gave me a blank page. Nothing on it. However manually starting Tomcat brings me back the correct behavior (the well known Xwiki starting page).
In the daemon mode, the others contexts (like 'manager', 'examples') work. Only the Xwiki one did not. What am I doing wrong? Does anyone already have some experience with a Xwiki in a daemon started Tomcat container? Attached, you will find the 'jsvc' processes started and 'catalina.out'. Tell me if you need more information.
I can just confirm this behaviour and share with you a couple of messages that John Malis ([email protected]) sent to me last October 2008 on this issue. I've not been able to work on this issue since then. I do hope they could be useful for you! ***** 6/10/08 20:48 Hello Ricardo, I just use the admin id since I just use OS X for development. When you create and unpack the tomcat executables as admin, everything will have read/write access and admin ownership with read/write access. You can set up your own system id specifically for Tomcat. Look at the mysql instructions on how to do it. Just give ownership to that id to everything in the Tomcat directory and make sure the owner has read/write access to everything. (chown -R). Maybe give admin group or admin id to the Tomcat directory group permissions (chgrp -R). John ***** ***** 6/10/08 20:51 One more thing. I forgot that if you want to run tomcat under an id other than your own, I believe you will have to use jsvc to boot tomcat. Jon ***** Cheers, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
Hi Ricardo, Many thanks for your answer. I am not sure what I have to do. When John is talking about admin id, is he thinking about root? On my Mac Leopard, I am logged as normal user (lets say 'guest', without any administrative rights). I have another account to be able to perform administrative tasks. As http://www.malisphoto.com/tips/tomcatonosx.html is suggesting, I changed the owner of the Tomcat directory to 'guest:admin'. Is this the problem? Should I perform a 'chown -R root:admin Tomcat'. My 'Tomcat5.sh' file (used to start 'jsvc') partly looks as following: ... JAVA_HOME=/Library/Java/Home CATALINA_HOME=/Library/Tomcat/Home DAEMON_HOME=$CATALINA_HOME/bin TOMCAT_USER=christianr ... Should I change here the 'TOMCAT_USER' variable? I tried 'root' but this did not solve the problem. Best, christian On May 27, 2009, at 12:36 AM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Hi Christian,
Following the instructions given at http://www.malisphoto.com/tips/tomcatonosx.html, I was able to get my Tomcat container started as daemon. I already put the Xwiki WAR file in the 'webapps' directory. Pointing the browser to http://localhost:8080/xwiki only gave me a blank page. Nothing on it. However manually starting Tomcat brings me back the correct behavior (the well known Xwiki starting page).
In the daemon mode, the others contexts (like 'manager', 'examples') work. Only the Xwiki one did not. What am I doing wrong? Does anyone already have some experience with a Xwiki in a daemon started Tomcat container? Attached, you will find the 'jsvc' processes started and 'catalina.out'. Tell me if you need more information.
I can just confirm this behaviour and share with you a couple of messages that John Malis ([email protected]) sent to me last October 2008 on this issue. I've not been able to work on this issue since then. I do hope they could be useful for you!
***** 6/10/08 20:48
Hello Ricardo, I just use the admin id since I just use OS X for development. When you create and unpack the tomcat executables as admin, everything will have read/write access and admin ownership with read/write access. You can set up your own system id specifically for Tomcat. Look at the mysql instructions on how to do it. Just give ownership to that id to everything in the Tomcat directory and make sure the owner has read/write access to everything. (chown -R). Maybe give admin group or admin id to the Tomcat directory group permissions (chgrp -R).
John *****
***** 6/10/08 20:51
One more thing. I forgot that if you want to run tomcat under an id other than your own, I believe you will have to use jsvc to boot tomcat.
Jon *****
Cheers,
Ricardo
-- Ricardo Rodríguez Your EPEC Network ICT Team
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Christian, Christian Ribeaud wrote:
Hi Ricardo,
Many thanks for your answer. I am not sure what I have to do. When John is talking about admin id, is he thinking about root? On my Mac Leopard, I am logged as normal user (lets say 'guest', without any administrative rights). I have another account to be able to perform administrative tasks. As http://www.malisphoto.com/tips/tomcatonosx.html is suggesting, I changed the owner of the Tomcat directory to 'guest:admin'. Is this the problem? Should I perform a 'chown -R root:admin Tomcat'.
My 'Tomcat5.sh' file (used to start 'jsvc') partly looks as following: ... JAVA_HOME=/Library/Java/Home CATALINA_HOME=/Library/Tomcat/Home DAEMON_HOME=$CATALINA_HOME/bin TOMCAT_USER=christianr ...
Should I change here the 'TOMCAT_USER' variable? I tried 'root' but this did not solve the problem. Best,
christian
I am afraid that I can not help you. As I said in the previous message, I've had no time to follow the clues given in this two messages. What seems clear is that we are not facing a XWiki issue, but a Mac OS X/Tomcat interaction characteristic/oddity. In any case, I consider that it is pertinent to keep this discussion alive here, in the XWiki users list, as it relates with a given installation of XWiki (combining Mac OS X with Tomcat and a RDBMS). I have to catch up with this issue and I am afraid I won't be able to do that in the following couple of weeks. Please, could you consider to contact directly with John Malis ([email protected])? I am sure that he is ready to help! But he of course need somebody ready to spend so time on this side of the problem! Thank you so much, Ricardo -- Ricardo Rodríguez Your EPEC Network ICT Team
Hi Christian, Just a cross-reference from devs list that could be useful in this thread http://blogs.madplanet.com/groups/mpc-staff/wiki/c8aeb/Java_Startup_Scripts_... Christian Ribeaud wrote:
Hi Ricardo,
Many thanks for your answer. I am not sure what I have to do. When John is talking about admin id, is he thinking about root? On my Mac Leopard, I am logged as normal user (lets say 'guest', without any administrative rights). I have another account to be able to perform administrative tasks. As http://www.malisphoto.com/tips/tomcatonosx.html is suggesting, I changed the owner of the Tomcat directory to 'guest:admin'. Is this the problem? Should I perform a 'chown -R root:admin Tomcat'.
My 'Tomcat5.sh' file (used to start 'jsvc') partly looks as following: ... JAVA_HOME=/Library/Java/Home CATALINA_HOME=/Library/Tomcat/Home DAEMON_HOME=$CATALINA_HOME/bin TOMCAT_USER=christianr ...
Should I change here the 'TOMCAT_USER' variable? I tried 'root' but this did not solve the problem. Best,
christian Cheers,
-- Ricardo Rodríguez Your EPEC Network ICT Team
In Order to celebrate our migration to XWiki I converted the Wiki page mention below to XWiki which can be found now here: http://madplanet.com/xwiki/bin/view/Madplanet/Java+Startup+Scripts+on+Mac+OS... Eventually the other wiki is probably going away somewhere in the future so update your links. Cheers Andreas Schaefer CEO of Madplanet.com Inc. Email: [email protected] [email protected] Twitter; andy_mpc AIM: [email protected] On May 31, 2009, at 10:27 PM, [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
Hi Christian,
Just a cross-reference from devs list that could be useful in this thread
http://blogs.madplanet.com/groups/mpc-staff/wiki/c8aeb/Java_Startup_Scripts_...
Christian Ribeaud wrote:
Hi Ricardo,
Many thanks for your answer. I am not sure what I have to do. When John is talking about admin id, is he thinking about root? On my Mac Leopard, I am logged as normal user (lets say 'guest', without any administrative rights). I have another account to be able to perform administrative tasks. As http://www.malisphoto.com/tips/tomcatonosx.html is suggesting, I changed the owner of the Tomcat directory to 'guest:admin'. Is this the problem? Should I perform a 'chown -R root:admin Tomcat'.
My 'Tomcat5.sh' file (used to start 'jsvc') partly looks as following: ... JAVA_HOME=/Library/Java/Home CATALINA_HOME=/Library/Tomcat/Home DAEMON_HOME=$CATALINA_HOME/bin TOMCAT_USER=christianr ...
Should I change here the 'TOMCAT_USER' variable? I tried 'root' but this did not solve the problem. Best,
christian Cheers,
-- Ricardo Rodríguez Your EPEC Network ICT Team
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (3)
-
[Ricardo Rodriguez] Your EPEC Network ICT Team -
Andreas Schaefer -
Christian Ribeaud