Carlos Maté | 1 Feb 2008 12:33
Picon

Javaflow and flowscript together

Hi,
I'd like to use some flows written in javascript  and others written in java.
I wanna use javaflow and flowscript together but I Only one <map:flow> is allowed in a sitemap And i need to specify both languages.
¿What can I do?
Thangks.
Edward S | 1 Feb 2008 18:37
Picon

Re: deleting blocks 2.1.9?

the web.xml that I was using had some ContentListner ...which shouldnt have been there in the first place. No idea, how that got there.
 
Removing that out did the trick and it worked without any blocks. thanks for all your help.
Carlos Martínez | 1 Feb 2008 09:41
Picon
Picon
Favicon

Cforms fd:assert validation

Hello,

I'm developing a forms aplication with assert validation. The expresion 
of the atributte test in the assert it's made by the database. In the 
cocoon documentation explain a little about this expresion: "This 
expression should have a boolean result, it should evaluate to either 
true or false".

The problem begins when i have a expression with constants value like 
"field1 > '10/12/2007' ". I know that it is a fail of date format but i 
have the same problem with a simple expression like "field2 >5".

I don't know how the expression of the assert should be.

Thanks, Carlos.
Steven D. Majewski | 1 Feb 2008 20:43
Favicon

More continuation scope questions ... [was: <map:flow> scope?]


On Jan 29, 2008, at 2:33 PM, Steven D. Majewski wrote:

>
> Are the <map:flow><map:script>  values inherited by sub sitemaps
> like the component configurations, or are they local to a sitemap ?
>
> Can I put all of the <map:script> declarations in my top level
> sitemap and use <map:call> in the sub sitemaps ?
>

I didn't get any answers on this question, but initial testing (as
well as a close parsing of some of the docs)  seems to indicate
that the declarations are local to a sitemap.

Additionally:

I was getting invalid continuation errors on testing some flowscript
after I added a link for the continuation to a sendPageAndWait() page.

In the parent sitemap, I have a match for '**/*.kont' , which calls
the continuation.

I changed that to match on '*.kont' , as well as previously adding
the same to the child sitemap. ( Initially just adding it, before
changing the parent match didn't fix the problem -- the parent sitemap
catching it seems to be what makes it invalid! )

Now it works, however that change has broken some previously working
stuff that seems to require keeping some relative path info in the
continuation uri's. ( Perhaps I can fix that by using an HTML <BASE>
instead, but I think there was a problem with propagating that value
to other generated content. )

So it appears that the continuation uri must resolve back to the same
sitemap that originated the initial flowscript call. ( Or: is the
problem only going upstream ? Will it work parent-to-child, but not
child-to-parent ? )

( Parent and child sitemaps all have the same scripts listed in the  
<map:flow> block. )

Can anyone confirm that this is correct ?
Or is there some other source for the problems I'm seeing.

[ Any other tips on understanding the flowscript processing model  
will be appreciated. ]

-- Steve Majewski / UVA Alderman Library
Antonio Gallardo | 1 Feb 2008 21:45
Favicon

Re: Cforms fd:assert validation

Hi Carlos,

Please try:

"field2 &gt; 5"

Best Regards,

Antonio Gallardo

Carlos Martínez escribió:
> Hello,
>
> I'm developing a forms aplication with assert validation. The 
> expresion of the atributte test in the assert it's made by the 
> database. In the cocoon documentation explain a little about this 
> expresion: "This expression should have a boolean result, it should 
> evaluate to either true or false".
>
> The problem begins when i have a expression with constants value like 
> "field1 > '10/12/2007' ". I know that it is a fail of date format but 
> i have the same problem with a simple expression like "field2 >5".
>
> I don't know how the expression of the assert should be.
>
> Thanks, Carlos.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe <at> cocoon.apache.org
> For additional commands, e-mail: users-help <at> cocoon.apache.org
solprovider | 2 Feb 2008 05:28
Picon
Favicon

Attempting to Install Cocoon-2.2

I want to try Cocoon-2.2.  The only install instructions I found are at:
http://cocoon.apache.org/2.2/1159_1_1.html

Installed Maven; works after some fixing the batch files  The install
line from "Creating a block" in the above page errors (with -e):

[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'org.apache.cocoon': you must specify a valid lifecycle phas
e, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginV
ersion:goal
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Invalid task
'org.apache.cocoon': you must specify a valid lifecycle phase, or a
goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

> mvn --version
Maven version: 2.0.8
Java version: 1.6.0_03
OS name: "windows 98" version: "4.10" arch: "x86" Family: "win9x"

Do the instructions work for other people?  Did I miss something?

solprovider
Tobia Conforto | 2 Feb 2008 00:36
Picon
Favicon

Re: Cforms fd:assert validation

Carlos Martínez wrote:
> I don't know how the expression of the assert should be.

I believe this is the language used in fd:assert, at least in Cocoon  
2.1:

	http://cocoondev.org/xreporter/docs/core/exprlang.html

Don't ask me why...

Tobia
Grzegorz Kossakowski | 2 Feb 2008 10:18
Picon
Favicon

Re: Attempting to Install Cocoon-2.2

solprovider <at> apache.org pisze:
> I want to try Cocoon-2.2.  The only install instructions I found are at:
> http://cocoon.apache.org/2.2/1159_1_1.html
> 
> Installed Maven; works after some fixing the batch files  The install
> line from "Creating a block" in the above page errors (with -e):
> 
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Invalid task 'org.apache.cocoon': you must specify a valid lifecycle phas
> e, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginV
> ersion:goal
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Invalid task
> 'org.apache.cocoon': you must specify a valid lifecycle phase, or a
> goal in the format plugin:goal or
> pluginGroupId:pluginArtifactId:pluginVersion:goal
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> 
>> mvn --version
> Maven version: 2.0.8
> Java version: 1.6.0_03
> OS name: "windows 98" version: "4.10" arch: "x86" Family: "win9x"
> 
> Do the instructions work for other people?  Did I miss something?

I believe it's a typo in the command you ran. Could you paste it or try this one:
mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
-DarchetypeArtifactId=cocoon-22-archetype-block -DarchetypeVersion=1.0.0-RC2 -DgroupId=com.mycompany
-DartifactId=myBlock1

(everything without line breaks!)

--

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/
solprovider | 2 Feb 2008 22:38
Picon
Favicon

Re: Attempting to Install Cocoon-2.2

On Sat, Feb 2, 2008 at 4:18 AM, Grzegorz Kossakowski
<gkossakowski <at> apache.org> wrote:
> solprovider <at> apache.org pisze:
> > I want to try Cocoon-2.2.  The only install instructions I found are at:
>  > http://cocoon.apache.org/2.2/1159_1_1.html
>  >
>  > Installed Maven; works after some fixing the batch files  The install
>  > line from "Creating a block" in the above page errors (with -e):
>  >
>  > [INFO] Searching repository for plugin with prefix: 'archetype'.
>  > [INFO] ------------------------------------------------------------------------
>  > [ERROR] BUILD FAILURE
>  > [INFO] ------------------------------------------------------------------------
>  > [INFO] Invalid task 'org.apache.cocoon': you must specify a valid lifecycle phas
>  > e, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginV
>  > ersion:goal
>  > [INFO] ------------------------------------------------------------------------
>  > [INFO] Trace
>  > org.apache.maven.BuildFailureException: Invalid task
>  > 'org.apache.cocoon': you must specify a valid lifecycle phase, or a
>  > goal in the format plugin:goal or
>  > pluginGroupId:pluginArtifactId:pluginVersion:goal
>  >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515)
>  >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
>  >         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
>  >         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>  >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>  >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>  >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  >         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>  >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>  >         at java.lang.reflect.Method.invoke(Unknown Source)
>  >         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>  >         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>  >         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>  >         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>  >
>  >> mvn --version
>  > Maven version: 2.0.8
>  > Java version: 1.6.0_03
>  > OS name: "windows 98" version: "4.10" arch: "x86" Family: "win9x"
>  >
>  > Do the instructions work for other people?  Did I miss something?
>
>  I believe it's a typo in the command you ran. Could you paste it or try this one:
>  mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
>  -DarchetypeArtifactId=cocoon-22-archetype-block -DarchetypeVersion=1.0.0-RC2 -DgroupId=com.mycompany
>  -DartifactId=myBlock1
>
>  (everything without line breaks!)
>  Grzegorz Kossakowski

Three sources(two from web page and your post) -> same results.
Should I assume Maven is broken?

solprovider
Grzegorz Kossakowski | 2 Feb 2008 22:49
Favicon
Gravatar

Re: Attempting to Install Cocoon-2.2

solprovider <at> apache.org pisze:
> Three sources(two from web page and your post) -> same results.
> Should I assume Maven is broken?

Yep, your installation of Maven must be broken. You mentioned that you needed to fix some batch
files which is something new to me. I successfully installed Maven on both Windows and Linux
_without_ any additional hacking. I guess your modifications to batch files broke Maven.

Can you explain in detail what you modifications you applied?

--

-- 
Grzegorz

Gmane