Nick Fedchik wrote:
I guess than the problem source is a file permissions.
My tomcat run as 'nobody' user in 'devel' group.
And first time I build J2 as 'nobody' user using 'sudo'.
Dont know how to solve the problem still using 'sudo'.
Then I build it as my real user ('nick' f.e.), successfully.
Next problem is a permissions.
Users 'nobody' and 'nick' are members of 'devel' group.
/opt/tomcat has the 'devel' Group ID.
I run 'mvn -P tomcat' as user 'nick', but I change group ID
of ~/jetspeed/myportal dir to 'devel'
As result, permissions of portal war is:
-rw-r--r-- 1 nick devel 15869714 2008-10-02 13:35 myportal.war
and same for deployed files
so I got a problems when portal app (tomcat as 'nobody:devel') write to
/opt/tomcat/webapps/myportal/logs
which is 'drwxr-xr-x 9 fnm devel'
Now I'll try to play with 'umask'.
Is it any other solutions?
(Of course I see one - same user id for tomcat and developers)
I recommend using a clean Tomcat installation that you have full control
over. I usually have a Tomcat for every portal project, e.g.
/home/niels/dev/myproject/portal -> the jetspeed portal
/home/niels/dev/myproject/tomcat -> dedicated tomcat installation
It is just a matter of downloading and unzipping tomcat 5.5 and you are
good to go. You can have as many tomcats as you like, as long as you
don't run them at the same time at the same port...
Don't forget to adapt you settings.xml for your new tomcat location.
HTH,
Niels
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]