Ivan Latysh | 1 Jun 16:50 2009
Picon

Re: Webapp structure

Robby Pelssers wrote:
> It's quite easy and if you read http://cocoon.apache.org/1370_1_1.html
> (getting started) you should be able to follow what's going on.
I went through it all.

> When you talk about war.. you mean creating a cocoon-archetype-webapp by
> running 
> mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org  and
> selecting option 3.
It does not create a war, but rather an exploded jetty server with integrated webapp.
And I do have it up and running, but again it demonstrates on how to use Maven to run sample webapp.

> Then you get following structure:
> 
> mywebapproject
>   -src
>     -main
>       -resources
>       -webapp
>         -WEB-INF
>           -applicationContext.xml
>           -log4j.xml
>           -web.xml
Again it is a project structure, not a war structure, when I translate resources from option 2+3 of a maven
build script 
into a war it does not work.

> If you had selected option 2 or 1, you would have gotten the structure
> like you mentioned. But the packaging of such a project is 'jar' like
> mentioned earlier in the thread.  So typically, that jar would go into
(Continue reading)

Ivan Latysh | 1 Jun 16:52 2009
Picon

Re: Webapp structure

Mansour Al Akeel wrote:
> Ivan:
> 
> Here's a sample web application. A web application in cocoon is a container for other blocks. 
> This application contains a hello block  hello-block-1.0-SNAPSHOT.jar 

Thank you, it clears a few things for me.

--

-- 
Ivan Latysh
IvanLatysh <at> gmail.com
Víctor Pergolesi | 1 Jun 17:48 2009
Picon

Re: Webapp structure

I don´t understand exactly the problem:

To generate a war you only need to execute: mvn package  from the folder that contains the web application.



Victor Pergolesi
Codimat S.A.
Área Sistemas
Web: www.codimat.com.ar
Tel.: (0291) 459-2480 | 459-2424
Fax: (0291) 459-2400 | 0-800-666-42266
Don Bosco 1495 - B8003CAA Bahía Blanca - Argentina
From: Ivan Latysh [mailto:ivanlatysh <at> gmail.com]
To: users <at> cocoon.apache.org
Sent: Mon, 01 Jun 2009 11:52:31 -0300
Subject: Re: Webapp structure

Mansour Al Akeel wrote:
> Ivan:
>
> Here's a sample web application. A web application in cocoon is a container for other blocks.
> This application contains a hello block hello-block-1.0-SNAPSHOT.jar

Thank you, it clears a few things for me.

--
Ivan Latysh
IvanLatysh <at> gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> cocoon.apache.org
For additional commands, e-mail: users-help <at> cocoon.apache.org



Este mensaje y sus adjuntos contienen información confidencial y son para uso exclusivo del destinatario. Si hubiese recibido este mensaje por error, o contuviera información que Ud. no desea recibir, por favor le agradecemos nos lo haga saber y lo elimine de su sistema. Cualquier inconveniente, enviarlo a librodequejas <at> codimat.com.ar.
Este correo ha sido chequeado por el servidor de Codimat S.A. www.codimat.com.ar
Víctor Pergolesi | 1 Jun 17:57 2009
Picon

Re: Cocoon 2.1 on Mac: compile error

I don´t know if it could be a help, but I have a problem with Novell (I saw a similar message: "No such file or directory"). I have not experience in Mac, but maybe the how to find  the resources. The problem is the path .....
Please see it at:
http//www.mail-archive.com/users <at> cocoon.apache.org/msg44341.html

I hope this help.


Victor Pergolesi
Codimat S.A.
Área Sistemas
Web: www.codimat.com.ar
Tel.: (0291) 459-2480 | 459-2424
Fax: (0291) 459-2400 | 0-800-666-42266
Don Bosco 1495 - B8003CAA Bahía Blanca - Argentina
From: Armstrong44444 [mailto:havocado <at> gmail.com]
To: users <at> cocoon.apache.org
Sent: Sat, 30 May 2009 19:16:15 -0300
Subject: Cocoon 2.1 on Mac: compile error


Hi guys

I'm trying to build Lenya 2.0.2 on Mac OS X 10.5.5, J2SE 5.0. Cocoon 2.1 is
included in the distribution. When I execute './build.sh' the build fails
with following error message:

/Users/xxx/src/lenya/externals/cocoon_2_1_x/src/java/org/apache/cocoon/components/flow/util/PipelineUtil.java:34:
cannot access
org.apache.cocoon.components.flow.javascript.JavaScriptFlowHelper
bad class file: null
unable to access file:
/Users/xxx/src/lenya/externals/cocoon_2_1_x/src/java/org/apache/cocoon/components/flow/javascript/JavaScriptFlowHelper.java
(No such file or directory)
Please remove or make sure it appears in the correct subdirectory of the
classpath.
import org.apache.cocoon.components.flow.javascript.JavaScriptFlowHelper;
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

I tried switching to J2SE 1.4.2, no luck. Any idea as to what might be the
problem?

Regards, Armstrong44444
--
View this message in context: http://www.nabble.com/Cocoon-2.1-on-Mac%3A-compile-error-tp23797887p23797887.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> cocoon.apache.org
For additional commands, e-mail: users-help <at> cocoon.apache.org



Este mensaje y sus adjuntos contienen información confidencial y son para uso exclusivo del destinatario. Si hubiese recibido este mensaje por error, o contuviera información que Ud. no desea recibir, por favor le agradecemos nos lo haga saber y lo elimine de su sistema. Cualquier inconveniente, enviarlo a librodequejas <at> codimat.com.ar.
Este correo ha sido chequeado por el servidor de Codimat S.A. www.codimat.com.ar
Ivan Latysh | 1 Jun 20:07 2009
Picon

Re: Webapp structure

Víctor Pergolesi wrote:

> I don´t understand exactly the problem:
> 
> To generate a war you only need to execute: mvn package  from the folder 
> that contains the web application.

That exactly what I were looking for.

P.S. Thank you for your help!

--

-- 
Ivan Latysh
IvanLatysh <at> gmail.com
Víctor Pergolesi | 1 Jun 20:14 2009
Picon

Re: Webapp structure

Sometimes there is a tip that could help others.

These is the value of the list


Victor Pergolesi
Codimat S.A.
Área Sistemas
Web: www.codimat.com.ar
Tel.: (0291) 459-2480 | 459-2424
Fax: (0291) 459-2400 | 0-800-666-42266
Don Bosco 1495 - B8003CAA Bahía Blanca - Argentina
From: Ivan Latysh [mailto:ivanlatysh <at> gmail.com]
To: users <at> cocoon.apache.org
Sent: Mon, 01 Jun 2009 15:07:32 -0300
Subject: Re: Webapp structure

Víctor Pergolesi wrote:

> I don´t understand exactly the problem:
>
> To generate a war you only need to execute: mvn package from the folder
> that contains the web application.

That exactly what I were looking for.

P.S. Thank you for your help!

--
Ivan Latysh
IvanLatysh <at> gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> cocoon.apache.org
For additional commands, e-mail: users-help <at> cocoon.apache.org



Este mensaje y sus adjuntos contienen información confidencial y son para uso exclusivo del destinatario. Si hubiese recibido este mensaje por error, o contuviera información que Ud. no desea recibir, por favor le agradecemos nos lo haga saber y lo elimine de su sistema. Cualquier inconveniente, enviarlo a librodequejas <at> codimat.com.ar.
Este correo ha sido chequeado por el servidor de Codimat S.A. www.codimat.com.ar
Mansour Al Akeel | 1 Jun 20:45 2009
Picon

Re: Regexp matcher with digits

Can someone kindly answer this question and give an example about how to
use regex and retrieve the matches. I am stuck with a project that's
writen in Cocoon and I need this to continue.

On Sun May 31,2009 01:54 am, Mansour Al Akeel wrote:
> Ok, let's clarify this and put it in different words. I am able to match
> on the digits part but not able to obtain this digits
> 
> <map:match  type="regexp" pattern="\.*/\d$"> 
>     ......
>     .....
>     <map:parameter name="href" value="{1}"/>
>     <map:parameter name="depth" value="{2}"/>
> 
> The variable {1} is matching and I can obtain as expected, but {2} is
> not.
> 
> 
> Can someone please share the knowledge and direct me to resolve this ? 
> 
> 
> 
Binkley, Peter | 1 Jun 21:11 2009
Picon
Picon

RE: Regexp matcher with digits

Did you try "(\.*)/(\d)$"? 

Peter

> -----Original Message-----
> From: Mansour Al Akeel [mailto:mansour.alakeel <at> gmail.com] 
> Sent: Monday, June 01, 2009 12:45 PM
> To: users <at> cocoon.apache.org
> Subject: Re: Regexp matcher with digits
> 
> Can someone kindly answer this question and give an example 
> about how to use regex and retrieve the matches. I am stuck 
> with a project that's writen in Cocoon and I need this to continue.
> 
> 
> On Sun May 31,2009 01:54 am, Mansour Al Akeel wrote:
> > Ok, let's clarify this and put it in different words. I am able to 
> > match on the digits part but not able to obtain this digits
> > 
> > <map:match  type="regexp" pattern="\.*/\d$"> 
> >     ......
> >     .....
> >     <map:parameter name="href" value="{1}"/>
> >     <map:parameter name="depth" value="{2}"/>
> > 
> > The variable {1} is matching and I can obtain as expected, 
> but {2} is 
> > not.
> > 
> > 
> > Can someone please share the knowledge and direct me to 
> resolve this ? 
> > 
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe <at> cocoon.apache.org
> For additional commands, e-mail: users-help <at> cocoon.apache.org
> 
> 
Ivan Latysh | 1 Jun 21:20 2009
Picon

Re: Webapp structure

Víctor Pergolesi wrote:
> Sometimes there is a tip that could help others.

That is true 100%.

Does anybody know why maven files are packaged into a block ?
Does Cocoon use maven internally ?

--

-- 
Ivan Latysh
IvanLatysh <at> gmail.com
Víctor Pergolesi | 1 Jun 21:30 2009
Picon

Re: Regexp matcher with digits

I proved some cases that could help you. I hope you undestand me.

1 - All the content of the pattern is read as an unique regular expresion. So the only part to reference I know is {0}.

2 - BUT there are different situacion if you use:
case A: pattern="\.*(\d*$)"   - Here {0} are all the numbers of the final
case B: pattern="month(\d*$)" - Here {0} is month +  the numbers of the final.

I do not know exactly what you want to capture, but I undestand that could help you.

3 - You could capture the case B and then for example via an xsl retrieve the part you need.

Below are the examples:


<map:match type="regexp" pattern="month(\d*$)">
   <map:generate src="documento.xml"/>
      <map:transform src="documento.xsl">
   <map:parameter name="valor" value="{0}"/>
   </map:transform>
   <map:serialize />
</map:match>
           
           
<map:match type="regexp" pattern="\.*(\d*$)">
   <map:generate src="documento.xml"/>
   <map:transform src="documento.xsl">
      <map:parameter name="valor" value="{0}"/>
   </map:transform>
   <map:serialize />
</map:match>


File documento.xml
<?xml version="1.0" encoding="UTF-8"?>
<elemento></elemento>

File documento.xsl
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:param name="valor"/>
   
    <xsl:template match="/">
        <html>
        <head>
            <title>Expresión regular</title>
        </head>
        <body>
            Captura de expresión regular:<br></br>
            - aplication of a function to the value:&#160;<xsl:value-of select="substring-after($valor,'month')"/><br></br>
            - the value {0}:&#160; <xsl:value-of select="$valor"/>
        </body>
        </html>
    </xsl:template>   
           
</xsl:stylesheet>

I hope this help

I will prove if {1} have a value in some case.


Victor Pergolesi
Codimat S.A.
Área Sistemas
Web: www.codimat.com.ar
Tel.: (0291) 459-2480 | 459-2424
Fax: (0291) 459-2400 | 0-800-666-42266
Don Bosco 1495 - B8003CAA Bahía Blanca - Argentina
From: Mansour Al Akeel [mailto:mansour.alakeel <at> gmail.com]
To: users <at> cocoon.apache.org
Sent: Mon, 01 Jun 2009 15:45:26 -0300
Subject: Re: Regexp matcher with digits

Can someone kindly answer this question and give an example about how to
use regex and retrieve the matches. I am stuck with a project that's
writen in Cocoon and I need this to continue.


On Sun May 31,2009 01:54 am, Mansour Al Akeel wrote:
> Ok, let's clarify this and put it in different words. I am able to match
> on the digits part but not able to obtain this digits
>
> <map:match type="regexp" pattern="\.*/\d$">
> ......
> .....
> <map:parameter name="href" value="{1}"/>
> <map:parameter name="depth" value="{2}"/>
>
> The variable {1} is matching and I can obtain as expected, but {2} is
> not.
>
>
> Can someone please share the knowledge and direct me to resolve this ?
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> cocoon.apache.org
For additional commands, e-mail: users-help <at> cocoon.apache.org

BODY {font:10pt Tahoma,Verdana,sans-serif;}

Este mensaje y sus adjuntos contienen información confidencial y son para uso exclusivo del destinatario. Si hubiese recibido este mensaje por error, o contuviera información que Ud. no desea recibir, por favor le agradecemos nos lo haga saber y lo elimine de su sistema. Cualquier inconveniente, enviarlo a librodequejas <at> codimat.com.ar.
Este correo ha sido chequeado por el servidor de Codimat S.A. www.codimat.com.ar

Gmane