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]



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]



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 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?

snip


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 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 ...licenses\n\t\t\tlicense... @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 ...licenses\n\t\t\tlicense... @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 

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: 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. :-[


snip


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 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 Reinhard Pötz

Ken Starks wrote:

Lehtonen, Mika wrote:

Hello all,

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


snip


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 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. :-[


snip


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 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 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. :-[


snip


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]