You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Johannes Lichtenberger <Jo...@uni-konstanz.de> on 2009/12/05 23:18:10 UTC
run jetty / error / custom webapp
Hi,
I have shared a project in a subversion repository, but when I checkout
the project on another place and try to start jetty (mvn jetty:run) I
get the following error:
[INFO] Can't copy custom webapp files (directory:
'/home/johannes/workspace/mysite/rcl-config) to the web application in
preparation.
The permissions are ok (755), so I'm really not sure what this means
(seems to have something to do with the rcl-config directory) :-/
greetings,
Johannes
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: run jetty / error / custom webapp
Posted by Johannes Lichtenberger <Jo...@uni-konstanz.de>.
I think the essential snippet from the POM file is:
<plugin>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-maven-plugin</artifactId>
<version>1.0.0-M3</version>
<configuration>
<webappProfile>ssf</webappProfile>
<customWebappDirectory>rcl-config</customWebappDirectory>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>prepare</goal>
</goals>
</execution>
</executions>
</plugin>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: run jetty / error / custom webapp
Posted by Reinhard Pötz <re...@apache.org>.
Johannes Lichtenberger wrote:
> On Sat, 2009-12-05 at 23:50 +0100, Reinhard Pötz wrote:
>> Johannes Lichtenberger wrote:
>>> Hi,
>>>
>>> I have shared a project in a subversion repository, but when I checkout
>>> the project on another place and try to start jetty (mvn jetty:run) I
>>> get the following error:
>>>
>>> [INFO] Can't copy custom webapp files (directory:
>>> '/home/johannes/workspace/mysite/rcl-config) to the web application in
>>> preparation.
>>>
>>> The permissions are ok (755), so I'm really not sure what this means
>>> (seems to have something to do with the rcl-config directory) :-/
>> It's a file operation problem. The statement where the exception is
>> thrown, uses the Apache Commons IO FileUtils:
>>
>> ------------------------------------------------------------------------
>> void org.apache.commons.io.FileUtils.copyDirectory(File srcDir, File
>> destDir) throws IOException
>>
>> Copies a whole directory to a new location preserving the file dates.
>>
>> This method copies the specified directory and all its child directories
>> and files to the specified destination. The destination is the new
>> location and name of the directory.
>>
>> The destination directory is created if it does not exist. If the
>> destination directory did exist, then this method merges the source with
>> the destination, with the source taking precedence.
>>
>> Parameters:
>> srcDir an existing directory to copy, must not be null
>> destDir the new directory, must not be null
>> Throws:
>> NullPointerException - if source or destination is null
>> IOException - if source or destination is invalid
>> IOException - if an IO error occurs during copying
>> ------------------------------------------------------------------------
>>
>> Maybe this gives you an idea what could be wrong with your setup.
>
> Damn it, I knew it could only be some issues with permissions, but
> strange enough that svn --checkout and Subclipse "produced" some strange
> permissions. I think I had forgotten the "-R" switch to change all
> permissions or have done it only at the rc-config directory. Well, chmod
> -R 755 mysite did the "trick". Thanks.
You're welcome.
BTW, I changed the code in SVN so that the real exception isn't
swallowed anymore by passing it to the MojoException.
--
Reinhard Pötz Managing Director, {Indoqa} GmbH
http://www.indoqa.com/en/people/reinhard.poetz/
Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member reinhard@apache.org
________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: run jetty / error / custom webapp
Posted by Johannes Lichtenberger <Jo...@uni-konstanz.de>.
On Sat, 2009-12-05 at 23:50 +0100, Reinhard Pötz wrote:
> Johannes Lichtenberger wrote:
> > Hi,
> >
> > I have shared a project in a subversion repository, but when I checkout
> > the project on another place and try to start jetty (mvn jetty:run) I
> > get the following error:
> >
> > [INFO] Can't copy custom webapp files (directory:
> > '/home/johannes/workspace/mysite/rcl-config) to the web application in
> > preparation.
> >
> > The permissions are ok (755), so I'm really not sure what this means
> > (seems to have something to do with the rcl-config directory) :-/
>
> It's a file operation problem. The statement where the exception is
> thrown, uses the Apache Commons IO FileUtils:
>
> ------------------------------------------------------------------------
> void org.apache.commons.io.FileUtils.copyDirectory(File srcDir, File
> destDir) throws IOException
>
> Copies a whole directory to a new location preserving the file dates.
>
> This method copies the specified directory and all its child directories
> and files to the specified destination. The destination is the new
> location and name of the directory.
>
> The destination directory is created if it does not exist. If the
> destination directory did exist, then this method merges the source with
> the destination, with the source taking precedence.
>
> Parameters:
> srcDir an existing directory to copy, must not be null
> destDir the new directory, must not be null
> Throws:
> NullPointerException - if source or destination is null
> IOException - if source or destination is invalid
> IOException - if an IO error occurs during copying
> ------------------------------------------------------------------------
>
> Maybe this gives you an idea what could be wrong with your setup.
Damn it, I knew it could only be some issues with permissions, but
strange enough that svn --checkout and Subclipse "produced" some strange
permissions. I think I had forgotten the "-R" switch to change all
permissions or have done it only at the rc-config directory. Well, chmod
-R 755 mysite did the "trick". Thanks.
greetings,
Johannes
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: run jetty / error / custom webapp
Posted by Reinhard Pötz <re...@apache.org>.
Johannes Lichtenberger wrote:
> Hi,
>
> I have shared a project in a subversion repository, but when I checkout
> the project on another place and try to start jetty (mvn jetty:run) I
> get the following error:
>
> [INFO] Can't copy custom webapp files (directory:
> '/home/johannes/workspace/mysite/rcl-config) to the web application in
> preparation.
>
> The permissions are ok (755), so I'm really not sure what this means
> (seems to have something to do with the rcl-config directory) :-/
It's a file operation problem. The statement where the exception is
thrown, uses the Apache Commons IO FileUtils:
------------------------------------------------------------------------
void org.apache.commons.io.FileUtils.copyDirectory(File srcDir, File
destDir) throws IOException
Copies a whole directory to a new location preserving the file dates.
This method copies the specified directory and all its child directories
and files to the specified destination. The destination is the new
location and name of the directory.
The destination directory is created if it does not exist. If the
destination directory did exist, then this method merges the source with
the destination, with the source taking precedence.
Parameters:
srcDir an existing directory to copy, must not be null
destDir the new directory, must not be null
Throws:
NullPointerException - if source or destination is null
IOException - if source or destination is invalid
IOException - if an IO error occurs during copying
------------------------------------------------------------------------
Maybe this gives you an idea what could be wrong with your setup.
--
Reinhard Pötz Managing Director, {Indoqa} GmbH
http://www.indoqa.com/en/people/reinhard.poetz/
Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member reinhard@apache.org
________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org