You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Sean Schofield <se...@gmail.com> on 2006/02/11 20:52:00 UTC

[continuum] Site deploy problem

If you force a build of site-deploy (MyFaces Site) maven complains
about a permissions issue.  Yet if you run mvn site-deploy (as
mrmaven) it works no problem.  Any ideas?

Sean

Re: [continuum] Site deploy problem

Posted by Sean Schofield <se...@gmail.com>.
On 2/11/06, Bernd Bohmann <be...@atanion.com> wrote:
> Oh, i see it.
>
> I will remove the parent ref to the master pom and copy the maillist and
> developer list in the site pom. This should work until we have a better
> solution.

How will this help?

> Regards
>
> Bernd

Sean

Re: [continuum] Site deploy problem

Posted by Sean Schofield <se...@gmail.com>.
I'm ok with this as a *temporary* fix but *why* does this fix work?

Sean

On 2/11/06, Bernd Bohmann <be...@atanion.com> wrote:
> I have started the continuum server with LANG=en_US.UTF-8.
> This is necessary for Weßendorf and Rossmüller
>
> You can see the site is published now.
>
> The ref to the master pom is removed until we have a better solution.
>
> But I don't would fight for a master pom :-)
>
> Regards
>
> Bernd
>
>
> Sean Schofield schrieb:
> >>It this ok for you?
> >
> >
> > I'd rather not do this.  That is one of the reasons we went to the
> > trouble of a master-pom.
> >
> > Sean
> >
>
> --
> Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
> Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
> phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333
>

Re: [continuum] Site deploy problem

Posted by Bernd Bohmann <be...@atanion.com>.
I have started the continuum server with LANG=en_US.UTF-8.
This is necessary for Weßendorf and Rossmüller

You can see the site is published now.

The ref to the master pom is removed until we have a better solution.

But I don't would fight for a master pom :-)

Regards

Bernd


Sean Schofield schrieb:
>>It this ok for you?
> 
> 
> I'd rather not do this.  That is one of the reasons we went to the
> trouble of a master-pom.
> 
> Sean
> 

-- 
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333

Re: [continuum] Site deploy problem

Posted by Sean Schofield <se...@gmail.com>.
> It this ok for you?

I'd rather not do this.  That is one of the reasons we went to the
trouble of a master-pom.

Sean

Re: [continuum] Site deploy problem

Posted by Bernd Bohmann <be...@atanion.com>.
It this ok for you?

Bernd Bohmann schrieb:
> Oh, i see it.
> 
> I will remove the parent ref to the master pom and copy the maillist and 
> developer list in the site pom. This should work until we have a better 
> solution.
> 
> Regards
> 
> Bernd
> 
> Sean Schofield schrieb:
> 
>> Bernd,
>>
>> I don't think this does it.  It just creates a second
>> myfaces.apache.org dir inside the first one.  So you're publishing but
>> nobody will see it.
>>
>> I suspect the problem is that the *first* time you deploy it does a
>> copy.  Second time it tries to do a zip and untar.  That's the only
>> way I can see why it worked the first time (and it definitely worked
>> the first time.)
>>
>> /www is owned by root so maven is denied when copying the tarball to
>> it.  I'm including Wendy on the 'cc.'  She takes care of this for
>> Struts so maybe she has some ideas.  Maybe we could use symlinks
>> somehow?  (I'm using them for the subprojects already.)
>>
>> Sean
>>
>>
>> On 2/11/06, Bernd Bohmann <be...@atanion.com> wrote:
>>
>>> fixed
>>>
>>> Sean Schofield schrieb:
>>>
>>>> FYI I am now getting the same bad result using both approaches.  I
>>>> updated the local pom from svn and now i have the problem there as
>>>> well.
>>>>
>>>> Sean
>>>>
>>>> On 2/11/06, Sean Schofield <se...@gmail.com> wrote:
>>>
>>>
>>
> 

-- 
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333

Re: [continuum] Site deploy problem

Posted by Bernd Bohmann <be...@atanion.com>.
Oh, i see it.

I will remove the parent ref to the master pom and copy the maillist and 
developer list in the site pom. This should work until we have a better 
solution.

Regards

Bernd

Sean Schofield schrieb:
> Bernd,
> 
> I don't think this does it.  It just creates a second
> myfaces.apache.org dir inside the first one.  So you're publishing but
> nobody will see it.
> 
> I suspect the problem is that the *first* time you deploy it does a
> copy.  Second time it tries to do a zip and untar.  That's the only
> way I can see why it worked the first time (and it definitely worked
> the first time.)
> 
> /www is owned by root so maven is denied when copying the tarball to
> it.  I'm including Wendy on the 'cc.'  She takes care of this for
> Struts so maybe she has some ideas.  Maybe we could use symlinks
> somehow?  (I'm using them for the subprojects already.)
> 
> Sean
> 
> 
> On 2/11/06, Bernd Bohmann <be...@atanion.com> wrote:
> 
>>fixed
>>
>>Sean Schofield schrieb:
>>
>>>FYI I am now getting the same bad result using both approaches.  I
>>>updated the local pom from svn and now i have the problem there as
>>>well.
>>>
>>>Sean
>>>
>>>On 2/11/06, Sean Schofield <se...@gmail.com> wrote:
>>
> 

-- 
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333

Re: [continuum] Site deploy problem

Posted by Wendy Smoak <ws...@gmail.com>.
On 2/11/06, Sean Schofield <se...@gmail.com> wrote:

> /www is owned by root so maven is denied when copying the tarball to
> it.  I'm including Wendy on the 'cc.'  She takes care of this for
> Struts so maybe she has some ideas.

The Struts site is still done with m1, maven site:sshdeploy works
fine. :)  (Though it does keep breaking our download page by changing
the permissions... )

--
Wendy

Re: [continuum] Site deploy problem

Posted by Sean Schofield <se...@gmail.com>.
Bernd,

I don't think this does it.  It just creates a second
myfaces.apache.org dir inside the first one.  So you're publishing but
nobody will see it.

I suspect the problem is that the *first* time you deploy it does a
copy.  Second time it tries to do a zip and untar.  That's the only
way I can see why it worked the first time (and it definitely worked
the first time.)

/www is owned by root so maven is denied when copying the tarball to
it.  I'm including Wendy on the 'cc.'  She takes care of this for
Struts so maybe she has some ideas.  Maybe we could use symlinks
somehow?  (I'm using them for the subprojects already.)

Sean


On 2/11/06, Bernd Bohmann <be...@atanion.com> wrote:
> fixed
>
> Sean Schofield schrieb:
> > FYI I am now getting the same bad result using both approaches.  I
> > updated the local pom from svn and now i have the problem there as
> > well.
> >
> > Sean
> >
> > On 2/11/06, Sean Schofield <se...@gmail.com> wrote:
>

Re: [continuum] Site deploy problem

Posted by Sean Schofield <se...@gmail.com>.
Thanks for the fix Arvid.  Just applied it.

Sean

On 2/11/06, Arvid Hülsebus <ar...@atanion.com> wrote:
> Adding the following to style.css
>
> #banner img {
>   behavior: url(css/png-fix.htc);
> }
>
> and placing the other attachements like this:
>
> site/src/site/resources/css/
>   png-fix.htc
> site/src/site/resources/images/
>   transparent.gif
>
> solves the problem for the top level HTML files...  perhaps the banner
> generation from the Maven template can be overwritten resulting in a
> more robust solution.  Here I have problems with loading the behaviour
> via the CSS file from other directories.
>
> Regards,
> Arvid
>
>
> <public:component lightWeight="true">
> <public:attach event="onpropertychange" onEvent="propertyChanged()" />
> <script>
> /*
>  * Based on
>  * http://www.mongus.net/pngInfo/
>  * and
>  * http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html
>  *
>  */
>
>         var gNeedFix = needFix();
>
>         var transparentImage = "transparent.gif";
>
>         pngFix();
>
>         function propertyChanged() {
>                 if (event.propertyName == "src") {
>                         pngFix();
>           }
>         }
>
>         function pngFix() {
>                 if (!gNeedFix) {
>                         return;
>                 }
>
>                 var src = element.src;
>
>                 if (src.indexOf(transparentImage) != -1) {
>                         return;
>                 }
>
>                 if (src.indexOf(".png") == -1) {
>                         return;
>                 }
>
>     var w = element.width;
>     var h = element.height;
>                 element.src = src.substring(0, src.lastIndexOf('/') + 1)  + transparentImage;
>     element.width = w;
>     element.height = h;
>                 element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
>         }
>
>         function needFix() {
>                 var pos = navigator.userAgent.indexOf("MSIE ");
>                 if (pos == -1) {
>                         return false;
>                 }
>                 var version = navigator.userAgent.substring(pos + 5);
>                 return (((version.indexOf("5.5") == 0) || (version.indexOf("6") == 0)) && (navigator.platform == ("Win32")));
>         }
>
> </script>
> </public:component>
>
>
>
>

Re: [continuum] Site deploy problem

Posted by Arvid Hülsebus <ar...@atanion.com>.
Adding the following to style.css

#banner img {
  behavior: url(css/png-fix.htc);
}

and placing the other attachements like this:

site/src/site/resources/css/
  png-fix.htc
site/src/site/resources/images/
  transparent.gif

solves the problem for the top level HTML files...  perhaps the banner
generation from the Maven template can be overwritten resulting in a
more robust solution.  Here I have problems with loading the behaviour
via the CSS file from other directories.

Regards,
Arvid

Re: [continuum] Site deploy problem

Posted by Sean Schofield <se...@gmail.com>.
Yes we should use the filter.  Sorry I forgot (I use firefox.)  Do you
want to do the honors?

Sean

On 2/11/06, Arvid Hülsebus <ar...@atanion.com> wrote:
> But there is a workaround via an IE specific filter:
> progid:DXImageTransform.Microsoft.AlphaImageLoader
>
> Regards,
> Arvid
>

Re: [continuum] Site deploy problem

Posted by Arvid Hülsebus <ar...@atanion.com>.
But there is a workaround via an IE specific filter:
progid:DXImageTransform.Microsoft.AlphaImageLoader

Regards,
Arvid

Re: [continuum] Site deploy problem

Posted by Bernd Bohmann <be...@atanion.com>.
fixed

Sean Schofield schrieb:
> FYI I am now getting the same bad result using both approaches.  I
> updated the local pom from svn and now i have the problem there as
> well.
> 
> Sean
> 
> On 2/11/06, Sean Schofield <se...@gmail.com> wrote:

Re: [continuum] Site deploy problem

Posted by Sean Schofield <se...@gmail.com>.
FYI I am now getting the same bad result using both approaches.  I
updated the local pom from svn and now i have the problem there as
well.

Sean

On 2/11/06, Sean Schofield <se...@gmail.com> wrote:
> According to the error log[1], maven is trying to copy a zip file
> (cotaining the site) to /www.  That dir is owned by root so that
> explains the problem there.  The weird thing is why does it works when
> i run it using maven from the command line?  In that case I get ...
>
> Using private key: /export/home/mrmaven/.m2/identity
> scpexe://minotaur.apache.org/www/myfaces.apache.org/myfaces.apache.org
> - Session: Opened
> Uploading: ./wagon35227.zip to
> scpexe://minotaur.apache.org/www/myfaces.apache.org/myfaces.apache.org
>
> ###########################################################################################################################################################################################################################################################################################################################################################################################################################
> Transfer finished. 1683029 bytes copied in 6.238 seconds
> scpexe://minotaur.apache.org/www/myfaces.apache.org/myfaces.apache.org
> - Session: Disconnecting
> scpexe://minotaur.apache.org/www/myfaces.apache.org/myfaces.apache.org
> - Session: Disconnected
> [INFO] ----------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 14 seconds
> [INFO] Finished at: Sat Feb 11 19:42:31 GMT+00:00 2006
> [INFO] Final Memory: 9M/330M
> [INFO] -------------------------------------------------------------------------
>
> Well I have had enough maven for today.  I will look into it more tomorrow.
>
> Sean
>
> [1] http://myfaces.zones.apache.org:8080/continuum/servlet/continuum/target/ProjectBuild.vm?view=ProjectBuild&buildId=443&id=92
>
> On 2/11/06, Sean Schofield <se...@gmail.com> wrote:
> > If you force a build of site-deploy (MyFaces Site) maven complains
> > about a permissions issue.  Yet if you run mvn site-deploy (as
> > mrmaven) it works no problem.  Any ideas?
> >
> > Sean
> >
>

Re: [continuum] Site deploy problem

Posted by Sean Schofield <se...@gmail.com>.
According to the error log[1], maven is trying to copy a zip file
(cotaining the site) to /www.  That dir is owned by root so that
explains the problem there.  The weird thing is why does it works when
i run it using maven from the command line?  In that case I get ...

Using private key: /export/home/mrmaven/.m2/identity
scpexe://minotaur.apache.org/www/myfaces.apache.org/myfaces.apache.org
- Session: Opened
Uploading: ./wagon35227.zip to
scpexe://minotaur.apache.org/www/myfaces.apache.org/myfaces.apache.org

###########################################################################################################################################################################################################################################################################################################################################################################################################################
Transfer finished. 1683029 bytes copied in 6.238 seconds
scpexe://minotaur.apache.org/www/myfaces.apache.org/myfaces.apache.org
- Session: Disconnecting
scpexe://minotaur.apache.org/www/myfaces.apache.org/myfaces.apache.org
- Session: Disconnected
[INFO] ----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 14 seconds
[INFO] Finished at: Sat Feb 11 19:42:31 GMT+00:00 2006
[INFO] Final Memory: 9M/330M
[INFO] -------------------------------------------------------------------------

Well I have had enough maven for today.  I will look into it more tomorrow.

Sean

[1] http://myfaces.zones.apache.org:8080/continuum/servlet/continuum/target/ProjectBuild.vm?view=ProjectBuild&buildId=443&id=92

On 2/11/06, Sean Schofield <se...@gmail.com> wrote:
> If you force a build of site-deploy (MyFaces Site) maven complains
> about a permissions issue.  Yet if you run mvn site-deploy (as
> mrmaven) it works no problem.  Any ideas?
>
> Sean
>