Re: JavaFlow in Cocoon 2.2

2008-08-13 Thread Hugh Sparks
Well I thought this [JavaFlow] was an ordinary part of cocoon 2.2 . 
when having a look at the c2.2 trunk I can see it there. 


The words "definitiive" and "documentation" can only be used as
humor in connection with cocoon, but this is the best like I know
of for what works in cocoon 2.2:

http://cocoon.apache.org/2.2/blocks/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cocoon 2.2 classic webapp

2008-08-13 Thread Hugh Sparks

Hugh Sparks wrote:

Many thanks to Reinhard Pötz!

To make this work with the current trunk, a few simple changes are needed:
[...]

Reinhard Pötz replies:
If you're right, this has to be fixed before the next release of Cocoon 2.2.


I'll repeat the experiment again:

First, I checked out the classic webapp from the svn and verified that it works 
perfectly.

Next, I edited the pom so it looks like this:

( My maven repository is freshly charged from cocoon trunk 685741)


org.apache.cocoon
cocoon-core-modules
6-SNAPSHOT




org.apache.cocoon
cocoon-core
 

org.apache.cocoon
cocoon-template-impl



 ... jetty 6.1.7stuff...

The result from "mvn jetty:run" was:

   java.lang.RuntimeException: Failed to obtain blockContexts Map.
   The most probable cause is that BlockDeploymentServletContextListener
   has not been executed.

   at 
org.apache.cocoon.spring.BlockPathPropertyPlaceholderConfigurer.processProperties
   (BlockPathPropertyPlaceholderConfigurer.java:50)

   at 
org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory
   (PropertyResourceConfigurer.java:75)
   ...

This lead me to try adding the BlockDeploymentServletContextListener to web.xml.
When I did that,  jetty:run produced:

   org.springframework.beans.factory.BeanCreationException:
   Error creating bean with name 
'org.apache.cocoon.jnet.URLHandlerFactoryCollector'
   defined in URL [jar:file:/m2/repository/org/apache/cocoon/cocoon-jnet/
   1.1.0-SNAPSHOT/cocoon-jnet-1.1.0-SNAPSHOT.jar!
   /META-INF/cocoon/spring/cocoon-jnet-collector.xml]:
   Initialization of bean failed; nested exception is java.lang
   java.lang.NoClassDefFoundError: org/aspectj/lang/ProceedingJoinPoint
   ...

At this point, I was dazed and confused, so I tried to figure out what brings in 
"aspectj..."
After a little trial and error, I found that adding 
cocoon-servlet-service-components
to the POM makes it all work.

I liked the pom and web.xml a lot better the Reinhard wrote them, so perhaps 
these
things can be undone?

Thanks,

-Hugh Sparks


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JavaFlow in Cocoon 2.2

2008-08-13 Thread [EMAIL PROTECTED]
Hi,

 

I am currently trying to get JavaFlow up and running in Cocoon 2.2
unfortunately it seems to be impossible for me to get that block.

All I get is:

[ERROR] BUILD ERROR

[INFO]


[INFO] Failed to resolve artifact.

 

Missing:

--

1) org.apache.cocoon:cocoon-javaflow-impl:jar:1.0.0

 

  Try downloading the file manually from the project website.

 

  Then, install it using the command:

  mvn install:install-file -DgroupId=org.apache.cocoon
-DartifactId=cocoon-javaflow-impl -Dversion=1.0.0 -Dpackaging=jar
-Dfile=/path/to/file

 

  Alternatively, if you host your own repository you can deploy the file
there:

 

  mvn deploy:deploy-file -DgroupId=org.apache.cocoon
-DartifactId=cocoon-javaflow-impl -Dversion=1.0.0 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

 

  Path to dependency:

1) com.mycompany:myBlock1:jar:1.0.0

2) org.apache.cocoon:cocoon-javaflow-impl:jar:1.0.0

 

--

 

Well I thought this was an ordinary part of cocoon 2.2 … when having a look
at the c2.2 trunk I can see it there. 

What maven-magic spell gets me JavaFlow, or do I have to kill some nasty
bug-deamons to get that upgrade first?

I have to admit that I am extremely familiar with C2.1 but feel like
starting from the scratch with c2.2 … so any help is appreciated.

 

Chris

 

 

[ C h r i s t o f e r  D u t z ]

C-Ware IT-Service
Inhaber
Dipl. Inf. Christofer Dutz
Karlstraße. 104, 64285 Darmstadt

fon:  0 61 51 / 27315 - 61
fax:  0 61 51 / 27315 - 64
mobil:  0171 / 7 444 2 33
email:    [EMAIL PROTECTED]
  http://www.c-ware.de

FA Darmstadt: 07 813 60581

 



Re: Cocoon 2.2 classic webapp

2008-08-13 Thread Reinhard Pötz

Hugh Sparks wrote:

Many thanks to Reinhard Pötz!

To make this work with the current trunk, a few simple changes are needed:

pom.xml: Add a dependency for cocoon-servlet-service-components

   
   org.apache.cocoon
   cocoon-core-modules
   6-SNAPSHOT
   

   
   org.apache.cocoon
   cocoon-core
   

   
   org.apache.cocoon
   cocoon-template-impl
   

   
   org.apache.cocoon
   cocoon-servlet-service-components
   

web.xml: Add a listener for BlockDeploymentServletContextListener

   
   Declare a context listener that installs all 
blocks.
   
org.apache.cocoon.blockdeployment.BlockDeploymentServletContextListener 


   

I don't understand why these components should be required if they
aren't used, but this gets the webapp going without errors.


If you're right, this has to be fixed before the next release of Cocoon 2.2.

Thanks for testing!

--
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  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cocoon 2.2 classic webapp

2008-08-13 Thread Hugh Sparks

Many thanks to Reinhard Pötz!

To make this work with the current trunk, a few simple changes are needed:

pom.xml: Add a dependency for cocoon-servlet-service-components

   
   org.apache.cocoon
   cocoon-core-modules
   6-SNAPSHOT
   

   
   org.apache.cocoon
   cocoon-core
   

   
   org.apache.cocoon
   cocoon-template-impl
   

   
   org.apache.cocoon
   cocoon-servlet-service-components
   

web.xml: Add a listener for BlockDeploymentServletContextListener

   
   Declare a context listener that installs all 
blocks.
   
org.apache.cocoon.blockdeployment.BlockDeploymentServletContextListener
   

I don't understand why these components should be required if they
aren't used, but this gets the webapp going without errors.

-Hugh Sparks, [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cocoon 2.2 and Netbeans IDE

2008-08-13 Thread Lehtonen, Mika

Ok,
this was due to fact that I didn't restart Netbeans after update, silly me..
I still couldn't get it totally working but it seems promising. Anyone 
doing Cocoon application development with Netbeans? Does it work?


cheers,
mika

P.S. Once again, I apologize mailing too easily when I have these minor 
problems.


Lehtonen, Mika kirjoitti:

Hi,

is it possible to create Cocoon applications straight using Netbeans 
IDE 6.1 and Maven plugin? I tried to do so, but I got some errors. 
Mainly it's about missing classworlds (this is only a part of the 
stacktrace):


reg. mika

[ERROR]Root error message:Missing:
[ERROR]--
[ERROR]1) classworlds:classworlds:jar:1.1
[ERROR]  Try downloading the file manually from the project website.
[ERROR]  Then, install it using the command:
[ERROR]  mvn install:install-file -DgroupId=classworlds 
-DartifactId=classworlds -Dversion=1.1 -Dpackaging=jar 
-Dfile=/path/to/file
[ERROR]  Alternatively, if you host your own repository you can deploy 
the file there:
[ERROR]  mvn deploy:deploy-file -DgroupId=classworlds 
-DartifactId=classworlds -Dversion=1.1 -Dpackaging=jar 
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

[ERROR]  Path to dependency:
[ERROR]  1) 
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-3

[ERROR]  2) org.apache.maven:maven-core:jar:2.0.8
[ERROR]  3) classworlds:classworlds:jar:1.1
[ERROR]2) org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2
[ERROR]  Try downloading the file manually from the project website.
[ERROR]  Then, install it using the command:
[ERROR]  mvn install:install-file -DgroupId=org.apache.maven.wagon 
-DartifactId=wagon-provider-api -Dversion=1.0-beta-2 -Dpackaging=jar 
-Dfile=/path/to/file
[ERROR]  Alternatively, if you host your own repository you can deploy 
the file there:
[ERROR]  mvn deploy:deploy-file -DgroupId=org.apache.maven.wagon 
-DartifactId=wagon-provider-api -Dversion=1.0-beta-2 -Dpackaging=jar 
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

[ERROR]  Path to dependency:
[ERROR]  1) 
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-3

[ERROR]  2) org.apache.maven:maven-core:jar:2.0.8
[ERROR]  3) org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2
[ERROR]--
[ERROR]2 required artifacts are missing.
[ERROR]for artifact:
[ERROR]  
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-3

[ERROR]from the specified remote repositories:
[ERROR]  apache.snapshots 
(http://people.apache.org/repo/m2-snapshot-repository),

[ERROR]  central (http://repo1.maven.org/maven2)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cocoon 2.2 classic webapp

2008-08-13 Thread Ken Starks

Ken Starks wrote:

Ken Starks wrote:

Reinhard Pötz wrote:


I've just committed a sample module for a 'Classic Cocoon 2.2 webapp'
to the Cocoon whiteboard. Classic mode means that Cocoon 2.2 is used 
without the Servlet-Service Framework or custom blocks. Both are 
great features but they are not needed in every case, e.g. if you 
want a simple migration for Cocoon 2.1 to 2.2 you might not want to 
introduce blocks and servlet services from the beginning.


I wrote a blog entry[1] that provides some information how you can 
run the module.


If this is useful for others too, it could be moved to the trunk and 
also become the base for a new Maven archetype.


Have fun!


[1] http://www.indoqa.com/en/people/reinhard.poetz/blog/624


Thanks, Reinhard, this is very welcome.

I've been a bit busy on other projects apart from cocoon for a while, 
but

trying this one out moves rapidly up the TODO: list.

Bye for now,
Ken.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Thanks again Reinhard. I managed to get this one to work first attempt.

It also worked when I copied the war file over to the Tomcat webapps 
directory.


url:
http://localhost/cocoon22-classic-webapp-1.0-SNAPSHOT/welcome

(This is for my Tomcat, which is serving on port 80. others should 
insert their local

servlet-container's port number)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cocoon 2.2 and Netbeans IDE

2008-08-13 Thread Lehtonen, Mika

Hi,

is it possible to create Cocoon applications straight using Netbeans IDE 
6.1 and Maven plugin? I tried to do so, but I got some errors. Mainly 
it's about missing classworlds (this is only a part of the stacktrace):


reg. mika

[ERROR]Root error message:Missing:
[ERROR]--
[ERROR]1) classworlds:classworlds:jar:1.1
[ERROR]  Try downloading the file manually from the project website.
[ERROR]  Then, install it using the command:
[ERROR]  mvn install:install-file -DgroupId=classworlds 
-DartifactId=classworlds -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file
[ERROR]  Alternatively, if you host your own repository you can deploy 
the file there:
[ERROR]  mvn deploy:deploy-file -DgroupId=classworlds 
-DartifactId=classworlds -Dversion=1.1 -Dpackaging=jar 
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

[ERROR]  Path to dependency:
[ERROR]  1) 
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-3

[ERROR]  2) org.apache.maven:maven-core:jar:2.0.8
[ERROR]  3) classworlds:classworlds:jar:1.1
[ERROR]2) org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2
[ERROR]  Try downloading the file manually from the project website.
[ERROR]  Then, install it using the command:
[ERROR]  mvn install:install-file -DgroupId=org.apache.maven.wagon 
-DartifactId=wagon-provider-api -Dversion=1.0-beta-2 -Dpackaging=jar 
-Dfile=/path/to/file
[ERROR]  Alternatively, if you host your own repository you can deploy 
the file there:
[ERROR]  mvn deploy:deploy-file -DgroupId=org.apache.maven.wagon 
-DartifactId=wagon-provider-api -Dversion=1.0-beta-2 -Dpackaging=jar 
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

[ERROR]  Path to dependency:
[ERROR]  1) 
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-3

[ERROR]  2) org.apache.maven:maven-core:jar:2.0.8
[ERROR]  3) org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2
[ERROR]--
[ERROR]2 required artifacts are missing.
[ERROR]for artifact:
[ERROR]  
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-3

[ERROR]from the specified remote repositories:
[ERROR]  apache.snapshots 
(http://people.apache.org/repo/m2-snapshot-repository),

[ERROR]  central (http://repo1.maven.org/maven2)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cocoon 2.2 classic webapp

2008-08-13 Thread Ken Starks

Ken Starks wrote:

Reinhard Pötz wrote:


I've just committed a sample module for a 'Classic Cocoon 2.2 webapp'
to the Cocoon whiteboard. Classic mode means that Cocoon 2.2 is used 
without the Servlet-Service Framework or custom blocks. Both are 
great features but they are not needed in every case, e.g. if you 
want a simple migration for Cocoon 2.1 to 2.2 you might not want to 
introduce blocks and servlet services from the beginning.


I wrote a blog entry[1] that provides some information how you can 
run the module.


If this is useful for others too, it could be moved to the trunk and 
also become the base for a new Maven archetype.


Have fun!


[1] http://www.indoqa.com/en/people/reinhard.poetz/blog/624


Thanks, Reinhard, this is very welcome.

I've been a bit busy on other projects apart from cocoon for a while, but
trying this one out moves rapidly up the TODO: list.

Bye for now,
Ken.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Thanks again Reinhard. I managed to get this one to work first attempt.

( For the information of others:
I used mvn install jetty:run
and went to  http://localhost:/welcome

I got the welcome page, src was:

http://www.w3.org/TR/html4/loose.dtd";>

 



   
Classic Cocoon 2.2 Webapp : Welcome
 

 

   
   
http://apache.org/cocoon/templates/jx/1.0";>Classic Cocoon 2.2 Webapp : Welcome

   If you are seeing this page, this minimal Cocoon 2.2 based web application 
is running correctly.
   

   

   

   

   

   

Wed Aug 13 19:38:14 BST 2008 Apache Cocoon 
 2.2.0

   
 



)







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cocoon Authentication

2008-08-13 Thread Jeroen Reijn

Hi Pranab,

you need to unsubscribe from the list. You can find more information how 
to do that here:


http://cocoon.apache.org/mail-lists.html

Regards,

Jeroen

[EMAIL PROTECTED] wrote:

Can someone plz remove me from this email list.

Warm Regards,

Pranab Das

Senior Software Engineer
BirlaSoft

H - 9, Sector - 63, Noida 201306, India

+91 120 662 9367 Phone
+91 981 050 9123 Cell

[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2008 10:57 PM

To: users@cocoon.apache.org
Subject: RE: Cocoon Authentication
Importance: High


Hello Team,

I tried to un-subscribe from this email list, but got mail could not be
delivered could someone un-subscribe from this email list, so that I
could use or subscribe with my new email ID.

Please help me.

Thanks in advance.

Warm Regards,

Pranab Das

Senior Software Engineer
BirlaSoft

H - 9, Sector - 63, Noida 201306, India

+91 120 662 9367 Phone
+91 981 050 9123 Cell

[EMAIL PROTECTED]
-Original Message-
From: Magnus Haraldsen Amundsen
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2008 8:23 PM

To: users@cocoon.apache.org
Subject: RE: Cocoon Authentication

The stacktrace can be found at: http://pastebin.com/m37c106d

- Magnus

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alessandro Vincelli
Sent: 12. august 2008 14:45
To: users@cocoon.apache.org
Subject: re: Cocoon Authentication

Magnus,
I'm using a very similar code, but I haven't your problem.
Try to post the stacktrace.
Bye
Alessandro 


- Original Message -
Da : "Magnus Haraldsen Amundsen"
<[EMAIL PROTECTED]>
A : 
Oggetto : Cocoon Authentication
Data : Tue, 12 Aug 2008 13:29:05 +0200


Hi,

We use the Coocoon authentication block in our web app
through the following dependency in our pom.xml:


  org.apache.cocoon
  cocoon-auth-impl
  1.0.0


In our Spring configuration we have declated a simple
security handler and a standard application:

 
class="com.computas.sublima.app.controller.admin.LoginCont

roller"
  scope="singleton">


 
class="org.apache.cocoon.auth.impl.StandardApplication"

  scope="singleton">
  


This is used in the sitemap in the following way:


  




  
  


The Java code to handle the login is as follows (snippet):
http://pastebin.com/m77ef2312

When ie. the username does not exist, the code throws an
AuthenticationException and the stacktrace is presented to
the user. We want the user to be directed back to the
login page with the exception message as an text
explaining what went wrong. How do we do this?

- Magnus




IMPORTANT NOTICE:
This message may contain confidential information. 
If you have received this e-mail in error, do not use,

copy or  distribute it. Do not open any attachments.
Delete it immediately from your system and notify the
sender promptly by e-mail that you  have done so. Thank
you.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 


__ Information from ESET NOD32 Antivirus, version of virus
signature database 3348 (20080812) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
 


__ Information from ESET NOD32 Antivirus, version of virus
signature database 3348 (20080812) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
IMPORTANT NOTICE:
This message may contain confidential information. 
If you have received this e-mail in error, do not use, copy or 
distribute it. Do not open any attachments. Delete it immediately from
your system and notify the sender promptly by e-mail that you 
have done so. Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




*
"This message and any attachments are solely for the intended recipient
and may contain Birlasoft confidential or privileged information. If you
are not the intended recipient,any disclosure,copying, use, or
distribution of the information included in this message and any
attachments is 
prohibited. If you have received this communication in error, please

notify us by reply e-mail at ([EMAIL PROTECTED]) and
permanently delete this message and any attachments. Thank you."


*

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


*

RE: Cocoon Authentication

2008-08-13 Thread pranab.das

Can someone plz remove me from this email list.

Warm Regards,

Pranab Das

Senior Software Engineer
BirlaSoft

H - 9, Sector - 63, Noida 201306, India

+91 120 662 9367 Phone
+91 981 050 9123 Cell

[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2008 10:57 PM
To: users@cocoon.apache.org
Subject: RE: Cocoon Authentication
Importance: High


Hello Team,

I tried to un-subscribe from this email list, but got mail could not be
delivered could someone un-subscribe from this email list, so that I
could use or subscribe with my new email ID.

Please help me.

Thanks in advance.

Warm Regards,

Pranab Das

Senior Software Engineer
BirlaSoft

H - 9, Sector - 63, Noida 201306, India

+91 120 662 9367 Phone
+91 981 050 9123 Cell

[EMAIL PROTECTED]
-Original Message-
From: Magnus Haraldsen Amundsen
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2008 8:23 PM
To: users@cocoon.apache.org
Subject: RE: Cocoon Authentication

The stacktrace can be found at: http://pastebin.com/m37c106d

- Magnus

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alessandro Vincelli
Sent: 12. august 2008 14:45
To: users@cocoon.apache.org
Subject: re: Cocoon Authentication

Magnus,
I'm using a very similar code, but I haven't your problem.
Try to post the stacktrace.
Bye
Alessandro 

- Original Message -
Da : "Magnus Haraldsen Amundsen"
<[EMAIL PROTECTED]>
A : 
Oggetto : Cocoon Authentication
Data : Tue, 12 Aug 2008 13:29:05 +0200

> Hi,
> 
> We use the Coocoon authentication block in our web app
> through the following dependency in our pom.xml:
> 
> 
>   org.apache.cocoon
>   cocoon-auth-impl
>   1.0.0
> 
> 
> In our Spring configuration we have declated a simple
> security handler and a standard application:
> 
>  name="org.apache.cocoon.auth.SecurityHandler/Sublima"
>  
> class="com.computas.sublima.app.controller.admin.LoginCont
> roller"
>   scope="singleton">
> 
> 
>   
> class="org.apache.cocoon.auth.impl.StandardApplication"
>   scope="singleton">
>ref="org.apache.cocoon.auth.SecurityHandler/Sublima"/>
> 
> 
> This is used in the sitemap in the following way:
> 
> 
>   
> 
>  value="{request-param:username}"/>
>  value="{request-param:password}"/>
> 
>   
>   
> 
> 
> The Java code to handle the login is as follows (snippet):
> http://pastebin.com/m77ef2312
> 
> When ie. the username does not exist, the code throws an
> AuthenticationException and the stacktrace is presented to
> the user. We want the user to be directed back to the
> login page with the exception message as an text
> explaining what went wrong. How do we do this?
> 
> - Magnus
> 
> 
> 
> 
> IMPORTANT NOTICE:
> This message may contain confidential information. 
> If you have received this e-mail in error, do not use,
> copy or  distribute it. Do not open any attachments.
> Delete it immediately from your system and notify the
> sender promptly by e-mail that you  have done so. Thank
> you.
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 

__ Information from ESET NOD32 Antivirus, version of virus
signature database 3348 (20080812) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
 

__ Information from ESET NOD32 Antivirus, version of virus
signature database 3348 (20080812) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
IMPORTANT NOTICE:
This message may contain confidential information. 
If you have received this e-mail in error, do not use, copy or 
distribute it. Do not open any attachments. Delete it immediately from
your system and notify the sender promptly by e-mail that you 
have done so. Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




*
"This message and any attachments are solely for the intended recipient
and may contain Birlasoft confidential or privileged information. If you
are not the intended recipient,any disclosure,copying, use, or
distribution of the information included in this message and any
attachments is 
prohibited. If you have received this communication in error, please
notify us by reply e-mail at ([EMAIL PROTECTED]) and
permanently delete this message and any attachments. Thank you."


*

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi

Cocoon 2.2 FOP

2008-08-13 Thread Lehtonen, Mika

Hi again,

taking second steps on Cocoon 2.2 and I started to wonder whether the 
version number of  the FOP block follows the official FOP versioning. I 
have been using some 0.9x FOP in Cocoon 2.1.11, because the old 0.20.5 
was too far from the standard. So I have now my XSL-FO files ported to 
work with that 0.9x. Do they work with Cocoon 2.2 and its FOP block?


- mika -

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First steps with Cocoon 2.2

2008-08-13 Thread Ken Starks

Reinhard Pötz wrote:

Ken Starks wrote:

Lehtonen, Mika wrote:

Hello all,

maybe you should have beginners list as for questions/problems like 
mine. :-[





A beginners' list doesn't seem a good idea to me, for two reasons:
 1. The experts might not take it as seriously, and their 
contributions are vital.

 2. The current list doesn't have enough traffic to justify splitting.

If you think the list _does_ already have too much traffic, I would 
suggest cutting

out the auto-generated messages from Daisy.


What "auto-generated messages" by Daisy are you referring to? The 
Daisy notifications are sent to [EMAIL PROTECTED], or do I miss 
something?



Ah! ( and sorry ! )

I must be subscribed to the docs list. It will be my newsreader filters 
that sends them to the same folder

on my machine as cocoon users. obviously I forgot I did that.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First steps with Cocoon 2.2

2008-08-13 Thread Lehtonen, Mika

Yep,
you nailed it! I had two typos ('/http//cocoon.apache.org'). I so ashamed...
- mika -

Ken Starks kirjoitti:

Lehtonen, Mika wrote:

Hi again,

I repeated the instructions with another block name and this time it 
works. There were over 40 archetypes to choose in my first attept and 
now there were only three, like in the example. Could you explain 
that. Like I said, this is all new for me. Anyway, now I can move on.


- mika -


Getting over forty archetypes may be the result of a typo. I suspect you
got apache archetypes rather than cocoon archetypes, the
command is very similar.

Been there, done that !

Bye for now,
Ken.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First steps with Cocoon 2.2

2008-08-13 Thread Lehtonen, Mika

No no,
don't take it too seriously. I was mainly joking. The minor part that 
wasn't so much a joke concerns the fact that there seems to be 
occasionaly big differences between the qualifications of mail list 
users. Some seem to be quite experts as some like me, are just starting 
to learn. Never mind the beginners list idea. Amount of traffic is 
tolerable.


Thanks,
mika

Ken Starks kirjoitti:

Lehtonen, Mika wrote:

Hello all,

maybe you should have beginners list as for questions/problems like 
mine. :-[





A beginners' list doesn't seem a good idea to me, for two reasons:
 1. The experts might not take it as seriously, and their 
contributions are vital.

 2. The current list doesn't have enough traffic to justify splitting.

If you think the list _does_ already have too much traffic, I would 
suggest cutting

out the auto-generated messages from Daisy.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First steps with Cocoon 2.2

2008-08-13 Thread Reinhard Pötz

Ken Starks wrote:

Lehtonen, Mika wrote:

Hello all,

maybe you should have beginners list as for questions/problems like 
mine. :-[





A beginners' list doesn't seem a good idea to me, for two reasons:
 1. The experts might not take it as seriously, and their contributions 
are vital.

 2. The current list doesn't have enough traffic to justify splitting.

If you think the list _does_ already have too much traffic, I would 
suggest cutting

out the auto-generated messages from Daisy.


What "auto-generated messages" by Daisy are you referring to? The Daisy 
notifications are sent to [EMAIL PROTECTED], or do I miss something?


--
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  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First steps with Cocoon 2.2

2008-08-13 Thread Ken Starks

Lehtonen, Mika wrote:

Hi again,

I repeated the instructions with another block name and this time it 
works. There were over 40 archetypes to choose in my first attept and 
now there were only three, like in the example. Could you explain 
that. Like I said, this is all new for me. Anyway, now I can move on.


- mika -


Getting over forty archetypes may be the result of a typo. I suspect you
got apache archetypes rather than cocoon archetypes, the
command is very similar.

Been there, done that !

Bye for now,
Ken.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First steps with Cocoon 2.2

2008-08-13 Thread Ken Starks

Lehtonen, Mika wrote:

Hello all,

maybe you should have beginners list as for questions/problems like 
mine. :-[





A beginners' list doesn't seem a good idea to me, for two reasons:
 1. The experts might not take it as seriously, and their contributions 
are vital.

 2. The current list doesn't have enough traffic to justify splitting.

If you think the list _does_ already have too much traffic, I would 
suggest cutting

out the auto-generated messages from Daisy.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First steps with Cocoon 2.2

2008-08-13 Thread Lehtonen, Mika

Hi again,

I repeated the instructions with another block name and this time it 
works. There were over 40 archetypes to choose in my first attept and 
now there were only three, like in the example. Could you explain that. 
Like I said, this is all new for me. Anyway, now I can move on.


- mika -

Lehtonen, Mika kirjoitti:

Ok,
here it is. BTW, I am running my tests in a headless Linux server. 
Does it make any difference?


- mika -

Jeroen Reijn kirjoitti:

Hi Mika,

I guess what's more important is, what is the stacktrace that you got 
while trying to do $mvn jetty:run?


Regards,

Jeroen

Lehtonen, Mika wrote:

Hello all,

maybe you should have beginners list as for questions/problems like 
mine. :-[


I finally put myself together and started to get familiar with 
Cocoon 2.2. I am totally 'out and cold' what comes to the Maven and 
many other concepts with 2.2. So I started with "Your first Cocoon 
application with Maven 2". Everything went as expected until I tried 
to run 'mvn jetty:run'. At first, it downloaded a lot of different 
stuff, but then there was some error. How can I capture the stacktrace?

I also tried 'mvn cocoon:prepare', but I got this:

[EMAIL PROTECTED] munBlokki]# mvn cocoon:prepare
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cocoon'.
[INFO] 
 


[ERROR] BUILD ERROR
[INFO] 
 

[INFO] The plugin 'org.apache.maven.plugins:maven-cocoon-plugin' 
does not exist or no valid version could be found
[INFO] 
 


[INFO] For more information, run Maven with the -e switch
[INFO] 
 


[INFO] Total time: 1 second
[INFO] Finished at: Wed Aug 13 10:03:02 EEST 2008
[INFO] Final Memory: 8M/62M
[INFO] 
 



What's wrong with my configuration? Maven is 2.0.9. Should I edit 
the pom.xml somehow?


- mika -

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cocoon 2.2 classic webapp

2008-08-13 Thread Ken Starks

Reinhard Pötz wrote:


I've just committed a sample module for a 'Classic Cocoon 2.2 webapp'
to the Cocoon whiteboard. Classic mode means that Cocoon 2.2 is used 
without the Servlet-Service Framework or custom blocks. Both are great 
features but they are not needed in every case, e.g. if you want a 
simple migration for Cocoon 2.1 to 2.2 you might not want to introduce 
blocks and servlet services from the beginning.


I wrote a blog entry[1] that provides some information how you can run 
the module.


If this is useful for others too, it could be moved to the trunk and 
also become the base for a new Maven archetype.


Have fun!


[1] http://www.indoqa.com/en/people/reinhard.poetz/blog/624


Thanks, Reinhard, this is very welcome.

I've been a bit busy on other projects apart from cocoon for a while, but
trying this one out moves rapidly up the TODO: list.

Bye for now,
Ken.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First steps with Cocoon 2.2

2008-08-13 Thread Lehtonen, Mika

Ok,
here it is. BTW, I am running my tests in a headless Linux server. Does 
it make any difference?


- mika -

Jeroen Reijn kirjoitti:

Hi Mika,

I guess what's more important is, what is the stacktrace that you got 
while trying to do $mvn jetty:run?


Regards,

Jeroen

Lehtonen, Mika wrote:

Hello all,

maybe you should have beginners list as for questions/problems like 
mine. :-[


I finally put myself together and started to get familiar with Cocoon 
2.2. I am totally 'out and cold' what comes to the Maven and many 
other concepts with 2.2. So I started with "Your first Cocoon 
application with Maven 2". Everything went as expected until I tried 
to run 'mvn jetty:run'. At first, it downloaded a lot of different 
stuff, but then there was some error. How can I capture the stacktrace?

I also tried 'mvn cocoon:prepare', but I got this:

[EMAIL PROTECTED] munBlokki]# mvn cocoon:prepare
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cocoon'.
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] The plugin 'org.apache.maven.plugins:maven-cocoon-plugin' does 
not exist or no valid version could be found
[INFO] 


[INFO] For more information, run Maven with the -e switch
[INFO] 


[INFO] Total time: 1 second
[INFO] Finished at: Wed Aug 13 10:03:02 EEST 2008
[INFO] Final Memory: 8M/62M
[INFO] 



What's wrong with my configuration? Maven is 2.0.9. Should I edit the 
pom.xml somehow?


- mika -

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO] 
[INFO] Building AppFuse Spring MVC Application
[INFO]task-segment: [jetty:run]
[INFO] 
[INFO] Preparing jetty:run
[WARNING] Attempting to build MavenProject instance for Artifact 
(org.appfuse:maven-warpath-plugin:2.0-20070918.092511-35) of type: 
maven-plugin; constructing POM artifact instead.
[INFO] [warpath:add-classes {execution: default}]
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] Preparing hibernate3:hbm2ddl
[WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive 
invocation.
[INFO] [warpath:add-classes {execution: default}]
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is invalid. It 
will be ignored for artifact resolution. Reason: Parse error reading POM. 
Reason: TEXT must be immediately followed by END_TAG and not START_TAG 
(position: START_TAG seen ...\n\t\t\t... @12:13)  for 
project org.hibernate:jtidy at 
/root/.m2/repository/org/hibernate/jtidy/r8-20060801/jtidy-r8-20060801.pom
[WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is invalid. It 
will be ignored for artifact resolution. Reason: Parse error reading POM. 
Reason: TEXT must be immediately followed by END_TAG and not START_TAG 
(position: START_TAG seen ...\n\t\t\t... @12:13)  for 
project org.hibernate:jtidy at 
/root/.m2/repository/org/hibernate/jtidy/r8-20060801/jtidy-r8-20060801.pom
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: 
/usr/share/cocoon22-test/munBlokki/src/main/resources/hibernate.cfg.xml
[INFO] Configuration XML file loaded: 
/usr/share/cocoon22-test/munBlokki/src/main/resources/hibernate.cfg.xml
[INFO] Configuration Properties file loaded: 
/usr/share/cocoon22-test/munBlokki/target/classes/jdbc.properties
[munBlokki] ERROR [main] SchemaExport.execute(202) | schema export unsuccessful
com.mysql.jdbc.CommunicationsException: Communications link failure due to 
underlying exception: 

** BEGIN NESTED EXCEPTION ** 

java.net.Connec

Re: First steps with Cocoon 2.2

2008-08-13 Thread Ken Starks

Lehtonen, Mika wrote:

Hello all,

maybe you should have beginners list as for questions/problems like 
mine. :-[


I finally put myself together and started to get familiar with Cocoon 
2.2. I am totally 'out and cold' what comes to the Maven and many 
other concepts with 2.2. So I started with "Your first Cocoon 
application with Maven 2". Everything went as expected until I tried 
to run 'mvn jetty:run'. At first, it downloaded a lot of different 
stuff, but then there was some error. How can I capture the stacktrace?




run the command again, but redirect the output to a text file:

mvn jetty:run > somefile.txt




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First steps with Cocoon 2.2

2008-08-13 Thread Reinhard Pötz

Lehtonen, Mika wrote:

Hello all,

maybe you should have beginners list as for questions/problems like 
mine. :-[


I finally put myself together and started to get familiar with Cocoon 
2.2. I am totally 'out and cold' what comes to the Maven and many other 
concepts with 2.2. So I started with "Your first Cocoon application with 
Maven 2". Everything went as expected until I tried to run 'mvn 
jetty:run'. At first, it downloaded a lot of different stuff, but then 
there was some error. How can I capture the stacktrace?

I also tried 'mvn cocoon:prepare', but I got this:

[EMAIL PROTECTED] munBlokki]# mvn cocoon:prepare
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cocoon'.
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] The plugin 'org.apache.maven.plugins:maven-cocoon-plugin' does 
not exist or no valid version could be found
[INFO] 


[INFO] For more information, run Maven with the -e switch
[INFO] 


[INFO] Total time: 1 second
[INFO] Finished at: Wed Aug 13 10:03:02 EEST 2008
[INFO] Final Memory: 8M/62M
[INFO] 



What's wrong with my configuration? Maven is 2.0.9. Should I edit the 
pom.xml somehow?


Are you sure that you invoked mvn cocoon:prepare from the right 
directory? (You have to be in the directory of our custom block.)


--
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  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: First steps with Cocoon 2.2

2008-08-13 Thread Jeroen Reijn

Hi Mika,

I guess what's more important is, what is the stacktrace that you got 
while trying to do $mvn jetty:run?


Regards,

Jeroen

Lehtonen, Mika wrote:

Hello all,

maybe you should have beginners list as for questions/problems like 
mine. :-[


I finally put myself together and started to get familiar with Cocoon 
2.2. I am totally 'out and cold' what comes to the Maven and many other 
concepts with 2.2. So I started with "Your first Cocoon application with 
Maven 2". Everything went as expected until I tried to run 'mvn 
jetty:run'. At first, it downloaded a lot of different stuff, but then 
there was some error. How can I capture the stacktrace?

I also tried 'mvn cocoon:prepare', but I got this:

[EMAIL PROTECTED] munBlokki]# mvn cocoon:prepare
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cocoon'.
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] The plugin 'org.apache.maven.plugins:maven-cocoon-plugin' does 
not exist or no valid version could be found
[INFO] 


[INFO] For more information, run Maven with the -e switch
[INFO] 


[INFO] Total time: 1 second
[INFO] Finished at: Wed Aug 13 10:03:02 EEST 2008
[INFO] Final Memory: 8M/62M
[INFO] 



What's wrong with my configuration? Maven is 2.0.9. Should I edit the 
pom.xml somehow?


- mika -

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



First steps with Cocoon 2.2

2008-08-13 Thread Lehtonen, Mika

Hello all,

maybe you should have beginners list as for questions/problems like 
mine. :-[


I finally put myself together and started to get familiar with Cocoon 
2.2. I am totally 'out and cold' what comes to the Maven and many other 
concepts with 2.2. So I started with "Your first Cocoon application with 
Maven 2". Everything went as expected until I tried to run 'mvn 
jetty:run'. At first, it downloaded a lot of different stuff, but then 
there was some error. How can I capture the stacktrace?

I also tried 'mvn cocoon:prepare', but I got this:

[EMAIL PROTECTED] munBlokki]# mvn cocoon:prepare
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cocoon'.
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] The plugin 'org.apache.maven.plugins:maven-cocoon-plugin' does 
not exist or no valid version could be found
[INFO] 


[INFO] For more information, run Maven with the -e switch
[INFO] 


[INFO] Total time: 1 second
[INFO] Finished at: Wed Aug 13 10:03:02 EEST 2008
[INFO] Final Memory: 8M/62M
[INFO] 



What's wrong with my configuration? Maven is 2.0.9. Should I edit the 
pom.xml somehow?


- mika -

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]