You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by jantje <ja...@skynet.be> on 2008/07/07 19:11:36 UTC
Cocoon installation howto?
Hi there, I have used older versions of cocoon for over years.. Now I want to
go to cocoon 2.2.
But now I have to use Maven, and on the cocoon website there is not a lot of
information about maven and cocoon.
Therefore I have downloaded this: cocoon-2.2.0.tar.gz
When I open the file, there is no information about installing cocoon? I
have tryed "java -jar cocoon-core-2.2.0.jar" Nothing works..
Following the tutorials on the cocoon website, with maven I have made
blocks.. running cocoon.. But this is very basic.. And I want to add cocoon
to a live cd, so maven using the internet to download files does not satisfy
me :-(
Maybe there is documentation I am missing, but can't find it. Anyhow, does
someone know how to install cocoon-2.2.0.tar.gz???
Thanks..
--
View this message in context: http://www.nabble.com/Cocoon-installation-howto--tp18321699p18321699.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon installation howto?
Posted by Boris Goldowsky <bg...@cast.org>.
On Tue, 2008-07-08 at 10:23 +0100, Barbara Slupik wrote:
> 3. Build myBlock jar file and update maven repository. I assume that
> version number is 1.0, version number is defined in myBlock pom file
>
> cd /.../cocoon-2.2.0/myBlock
> mvn package
>
> mvn install:install-file -DgroupId=my.domain -DartifactId=myBlock -
> Dversion=1.0 -Dpackaging=jar -Dfile=target/myBlock-1.0.jar
Are these two commands the equivalent of
cd /.../cocoon-2.2.0/myBlock
mvn install
I've just used "install", wondering if I am missing something.
Bng
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon installation howto?
Posted by Ken Starks <ke...@lampsacos.demon.co.uk>.
Barbara Slupik wrote:
> I build cocoon-2.2 application like this:
>
> 1. Create block myBlock
>
> cd /.../cocoon-2.2.0
> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
> -DarchetypeArtifactId=cocoon-22-archetype-block
> -DarchetypeVersion=1.0.0 -DgroupId=my.domain -DartifactId=myBlock
>
>
> 2. Test myBlock in maven/jetty
>
> cd /.../cocoon-2.2.0/myBlock
> mvn jetty:run
>
> http://localhost:8888/myBlock/
>
>
> 3. Build myBlock jar file and update maven repository. I assume that
> version number is 1.0, version number is defined in myBlock pom file
>
> cd /.../cocoon-2.2.0/myBlock
> mvn package
>
> mvn install:install-file -DgroupId=my.domain -DartifactId=myBlock
> -Dversion=1.0 -Dpackaging=jar -Dfile=target/myBlock-1.0.jar
>
>
> 4. Create cocoon web application cocoon-webapp
>
> cd /.../cocoon-2.2.0
> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
> -DarchetypeArtifactId=cocoon-22-archetype-webapp
> -DarchetypeVersion=1.0.0 -DgroupId=my.domain -DartifactId=cocoon-webapp
>
>
> 5. Add myBlock (all your blocks) to cocoon-webapp pom file
>
> <dependency>
> <groupId>my.domain</groupId>
> <artifactId>myBlock</artifactId>
> <version>1.0</version>
> </dependency>
>
>
> 6. Test cocoon-webapp in maven/jetty
>
> cd /.../cocoon-2.2.0/cocoon-webapp
> mvn jetty:run
>
> http://localhost:8888/myBlock/
>
>
> 7. Package cocoon-webapp. This will create cocoon-webapp-1.0.war file
>
> cd /.../cocoon-2.2.0/cocoon-webapp
> mvn package
>
>
> 8. Put cocoon-webapp-1.0.war file in your tomcat/webapps and start the
> application with url similar to this
>
> http://localhost:8080/cocoon-webapp-1.0/myBlock/
>
>
> I hope that the above is correct, I might have forgotten something.
> Actually I created build.sh command file in every block and in
> cocoon-webapp and put all necessary mvn packaging repository update
> commands there.
>
> Barbara
>
>
>
> On 8 Jul, 2008, at 8:55 am, Ken Starks wrote:
>
>> Barbara Slupik wrote:
>>> I am using cocoon with maven and jetty in my development
>>> environment. I develop and test individual blocks. Then I build my
>>> block jar files and my cocoon application. Once everything works in
>>> maven/jetty development environment I build application war file and
>>> put it in my test environment which runs with tomcat.
>>> Test/production environment does not need maven or jetty and does
>>> not need to download anything, everything is already included in jar
>>> files.
>>>
>>> Barbara
>>>
>> I am in a similar position to jantje. I am very much not a java
>> person, but
>> I do like cocoon a lot as a database/xml/xslt framework. I am a
>> 'development team' of one person at my site!
>>
>> Suppose I have a small application that runs under jetty (on port
>> 8888).
>> i.e.
>> in a shell in my application directory, myApp: mvn jetty:run
>> in my browser: http://localhost/myApp/
>>
>> Now I want to run it under Tomcat, but I don't know what to do.
>> 1. You say 'put it in my test environment.'
>> What exactly is 'my test environment'? Is it simply a directory
>> called 'test', which
>> is at (typically for windows)
>> C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\test
>> or if not, what is it, and where?
>>
>> P.S. I have tried that, and it didn't work, but I have no idea whether
>> it should have worked or not.
>> In my browser, i went to 'http://localhost/myApp/'
>> (Tomcat is at the default http port, port 80, on my box, and my old
>> system works fine: http://localhost/cocoon/one/
>> http://localh
>>
>> 2. You say 'everything is already included in jar files'
>> What did I do to make that happen?
>> Where should these jar files be stored, so I can look into that
>> directory?
>> How can I check they work?
>> Or do I already know that, working under jetty they are available
>> system-wide.
>> If not, is there a check command such as
>> 'java -jar cocoon_2.2.jar --version' or similar
>>
>>> On 7 Jul, 2008, at 6:11 pm, jantje wrote:
>>>
>>>>
>>>> Hi there, I have used older versions of cocoon for over years.. Now
>>>> I want to
>>>> go to cocoon 2.2.
>> <snip> many similar questions I have
>>
>>>>
>>>> Thanks..
>>>> --
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
Thanks Barbara for a really thorough reply.
I shall try out your instructions this evening or tomorrow.
Today, before getting your reply, I have been working through the
introductory
tutorial (again) from the website.
For some reason the 'mvn package' command fails to find the jar files
installed in my
local maven repository at ..m2/repository/com/mycompany/...
It wants to go onto the internet for them.
__I__ can find them! so the 'mvn install' command in the previous stage
worked fine, I think!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon installation howto?
Posted by Ken Starks <ke...@lampsacos.demon.co.uk>.
Horray! I got it working all the way to working in Tomcat.
Thank you very much indeed for your advice.
I did have to tweak it slightly (as described below) but I expect to
sort that out.
It seems quite hard to test things that depend on the state of your local
maven repository, if they do, because that can change 'behind your back'
as it were.
Once I get things going, I'll start again afresh with an empty
repository, just to
make certain the instructions will work 'out of the box'.
Barbara Slupik wrote:
> 5. Add myBlock (all your blocks) to cocoon-webapp pom file
>
>
<snip>
>
> 6. Test cocoon-webapp in maven/jetty
>
> cd /.../cocoon-2.2.0/cocoon-webapp
> mvn jetty:run
>
The above (mvn jetty:run) did not work first time.
Quite possibly it was a typo in a pom file, but anyway it did work when
I did 'mvn compile' and 'mvn:package' first; maven
downloaded more stuff before running the commands.
> http://localhost:8888/myBlock/
>
>
> 7. Package cocoon-webapp. This will create cocoon-webapp-1.0.war file
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon installation howto?
Posted by Barbara Slupik <ba...@ntlworld.com>.
I build cocoon-2.2 application like this:
1. Create block myBlock
cd /.../cocoon-2.2.0
mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -
DarchetypeArtifactId=cocoon-22-archetype-block -
DarchetypeVersion=1.0.0 -DgroupId=my.domain -DartifactId=myBlock
2. Test myBlock in maven/jetty
cd /.../cocoon-2.2.0/myBlock
mvn jetty:run
http://localhost:8888/myBlock/
3. Build myBlock jar file and update maven repository. I assume that
version number is 1.0, version number is defined in myBlock pom file
cd /.../cocoon-2.2.0/myBlock
mvn package
mvn install:install-file -DgroupId=my.domain -DartifactId=myBlock -
Dversion=1.0 -Dpackaging=jar -Dfile=target/myBlock-1.0.jar
4. Create cocoon web application cocoon-webapp
cd /.../cocoon-2.2.0
mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -
DarchetypeArtifactId=cocoon-22-archetype-webapp -
DarchetypeVersion=1.0.0 -DgroupId=my.domain -DartifactId=cocoon-webapp
5. Add myBlock (all your blocks) to cocoon-webapp pom file
<dependency>
<groupId>my.domain</groupId>
<artifactId>myBlock</artifactId>
<version>1.0</version>
</dependency>
6. Test cocoon-webapp in maven/jetty
cd /.../cocoon-2.2.0/cocoon-webapp
mvn jetty:run
http://localhost:8888/myBlock/
7. Package cocoon-webapp. This will create cocoon-webapp-1.0.war file
cd /.../cocoon-2.2.0/cocoon-webapp
mvn package
8. Put cocoon-webapp-1.0.war file in your tomcat/webapps and start
the application with url similar to this
http://localhost:8080/cocoon-webapp-1.0/myBlock/
I hope that the above is correct, I might have forgotten something.
Actually I created build.sh command file in every block and in cocoon-
webapp and put all necessary mvn packaging repository update commands
there.
Barbara
On 8 Jul, 2008, at 8:55 am, Ken Starks wrote:
> Barbara Slupik wrote:
>> I am using cocoon with maven and jetty in my development
>> environment. I develop and test individual blocks. Then I build my
>> block jar files and my cocoon application. Once everything works
>> in maven/jetty development environment I build application war
>> file and put it in my test environment which runs with tomcat.
>> Test/production environment does not need maven or jetty and does
>> not need to download anything, everything is already included in
>> jar files.
>>
>> Barbara
>>
> I am in a similar position to jantje. I am very much not a java
> person, but
> I do like cocoon a lot as a database/xml/xslt framework. I am a
> 'development team' of one person at my site!
>
> Suppose I have a small application that runs under jetty (on port
> 8888).
> i.e.
> in a shell in my application directory, myApp: mvn jetty:run
> in my browser: http://localhost/myApp/
>
> Now I want to run it under Tomcat, but I don't know what to do.
> 1. You say 'put it in my test environment.'
> What exactly is 'my test environment'? Is it simply a directory
> called 'test', which
> is at (typically for windows)
> C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\test
> or if not, what is it, and where?
>
> P.S. I have tried that, and it didn't work, but I have no idea whether
> it should have worked or not.
> In my browser, i went to 'http://localhost/myApp/'
> (Tomcat is at the default http port, port 80, on my box, and
> my old
> system works fine: http://localhost/cocoon/one/
> http://localh
>
> 2. You say 'everything is already included in jar files'
> What did I do to make that happen?
> Where should these jar files be stored, so I can look into that
> directory?
> How can I check they work?
> Or do I already know that, working under jetty they are
> available system-wide.
> If not, is there a check command such as
> 'java -jar cocoon_2.2.jar --version' or similar
>
>> On 7 Jul, 2008, at 6:11 pm, jantje wrote:
>>
>>>
>>> Hi there, I have used older versions of cocoon for over years..
>>> Now I want to
>>> go to cocoon 2.2.
> <snip> many similar questions I have
>
>>>
>>> Thanks..
>>> --
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon installation howto?
Posted by Ken Starks <ke...@lampsacos.demon.co.uk>.
Barbara Slupik wrote:
> I am using cocoon with maven and jetty in my development environment.
> I develop and test individual blocks. Then I build my block jar files
> and my cocoon application. Once everything works in maven/jetty
> development environment I build application war file and put it in my
> test environment which runs with tomcat. Test/production environment
> does not need maven or jetty and does not need to download anything,
> everything is already included in jar files.
>
> Barbara
>
I am in a similar position to jantje. I am very much not a java person, but
I do like cocoon a lot as a database/xml/xslt framework. I am a
'development team' of one person at my site!
Suppose I have a small application that runs under jetty (on port 8888).
i.e.
in a shell in my application directory, myApp: mvn jetty:run
in my browser: http://localhost/myApp/
Now I want to run it under Tomcat, but I don't know what to do.
1. You say 'put it in my test environment.'
What exactly is 'my test environment'? Is it simply a directory
called 'test', which
is at (typically for windows)
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\test
or if not, what is it, and where?
P.S. I have tried that, and it didn't work, but I have no idea whether
it should have worked or not.
In my browser, i went to 'http://localhost/myApp/'
(Tomcat is at the default http port, port 80, on my box, and my old
system works fine: http://localhost/cocoon/one/
http://localh
2. You say 'everything is already included in jar files'
What did I do to make that happen?
Where should these jar files be stored, so I can look into that
directory?
How can I check they work?
Or do I already know that, working under jetty they are available
system-wide.
If not, is there a check command such as
'java -jar cocoon_2.2.jar --version' or similar
> On 7 Jul, 2008, at 6:11 pm, jantje wrote:
>
>>
>> Hi there, I have used older versions of cocoon for over years.. Now I
>> want to
>> go to cocoon 2.2.
<snip> many similar questions I have
>>
>> Thanks..
>> --
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon installation howto?
Posted by Barbara Slupik <ba...@ntlworld.com>.
Perhaps you need to add this into your pom file:
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-ajax-impl</artifactId>
<version>1.0.0</version>
</dependency>
Barbara
On 12 Jul, 2008, at 9:11 am, jantje wrote:
>
>
> Thanks, So now I have downloaded dojo-0.4.3-ajax.zip
>
> But how can My block get access to Ajax? You say I could make a
> block of it:
> You might need the cocoon-ajax block to get access to it.
>
> How should I do this?
>
> Thanks for your reply!
>
>
>
>
>
>
>
>
> William Moore wrote:
>>
>> Hi
>>
>> It's inside the zip file here:
>>
>> https://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-ajax/
>> cocoon-ajax-impl/src/main/resources/org/apache/cocoon/dojo/resources/
>>
>> You might need the cocoon-ajax block to get access to it.
>>
>> Best regards
>>
>> William
>>
>> On 8 Jul, 2008, at 7:15 pm, jantje wrote:
>>
>>>
>>> Thanks! I use Ajax, like in the cocoon2.2 examples.. These examples
>>> need a
>>> dojo.js file. I don't know what this file does, but Ajax needs it in
>>> this
>>> example.. So I get this error:
>>>
>>> Caused by:
>>> org.apache.avalon.framework.configuration.ConfigurationException:
>>> Couldn't absolutize ajax:/resource/external/dojo/dojo.js. Make sure
>>> that the
>>> configuration of your servlet-service contains a connection to
>>> 'ajax:/resource/external/dojo/dojo.js'.
>>>
>>> Do you know where I can find this file in the repository?
>>>
>>> Thanks,
>>> jantje..
>>>
>>>
>>>
>>>
>>>
>>>
>>> William Moore wrote:
>>>>
>>>> Hi jantje
>>>>
>>>> The source is in this folder on the cocoon svn:
>>>>
>>>> https://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-
>>>> samples-style/cocoon-samples-style-default/src/main/resources/
>>>> COB-INF/common/style/xsl/html/
>>>>
>>>> Which puts it in the cocoon-samples-style block. I think you could
>>>> either put the block into your application or copy the file into
>>>> our
>>>> block and use it directly.
>>>>
>>>> Best regards
>>>>
>>>> William
>>>>
>>>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon installation howto?
Posted by jantje <ja...@skynet.be>.
Thanks, So now I have downloaded dojo-0.4.3-ajax.zip
But how can My block get access to Ajax? You say I could make a block of it:
You might need the cocoon-ajax block to get access to it.
How should I do this?
Thanks for your reply!
William Moore wrote:
>
> Hi
>
> It's inside the zip file here:
>
> https://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/dojo/resources/
>
> You might need the cocoon-ajax block to get access to it.
>
> Best regards
>
> William
>
> On 8 Jul, 2008, at 7:15 pm, jantje wrote:
>
>>
>> Thanks! I use Ajax, like in the cocoon2.2 examples.. These examples
>> need a
>> dojo.js file. I don't know what this file does, but Ajax needs it in
>> this
>> example.. So I get this error:
>>
>> Caused by:
>> org.apache.avalon.framework.configuration.ConfigurationException:
>> Couldn't absolutize ajax:/resource/external/dojo/dojo.js. Make sure
>> that the
>> configuration of your servlet-service contains a connection to
>> 'ajax:/resource/external/dojo/dojo.js'.
>>
>> Do you know where I can find this file in the repository?
>>
>> Thanks,
>> jantje..
>>
>>
>>
>>
>>
>>
>> William Moore wrote:
>>>
>>> Hi jantje
>>>
>>> The source is in this folder on the cocoon svn:
>>>
>>> https://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/common/style/xsl/html/
>>>
>>> Which puts it in the cocoon-samples-style block. I think you could
>>> either put the block into your application or copy the file into our
>>> block and use it directly.
>>>
>>> Best regards
>>>
>>> William
>>>
>>> On 8 Jul, 2008, at 1:21 pm, jantje wrote:
>>>
>>>>
>>>> Thanks, this works! I have added batik and fop ajax to pom.xml
>>>>
>>>> It is really great, nearly everything works! Except, I have (from a
>>>> svn
>>>> repository installation from cocoon2.2) copied some source from the
>>>> cocoon
>>>> 2.2 examples. This was a working application, but the next line in
>>>> my
>>>> sitemap fails. Beceause this has something to do with cocoon
>>>> examples:
>>>>
>>>> <map:match pattern="">
>>>> <map:generate src="welcome.xml" />
>>>> <map:serialize type="servletService" mime-type="text/html">
>>>> <map:parameter name="service"
>>>> value="servlet:style-default:/service/common/simple-samples2html" />
>>>> </map:serialize>
>>>> </map:match>
>>>>
>>>> It is this wat fails:
>>>> servlet:style-default:/service/common/simple-samples2html
>>>> I don't know what is it, and I can't find this sourcefile or the
>>>> source of
>>>> this sevice in the cocoon2.2 examples..
>>>>
>>>> I like this styling (simple-samples2html), so how can I use this in
>>>> my maven
>>>> block?
>>>>
>>>> Thanks for your help,
>>>> jantje from belgium..
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Barbara Slupik-3 wrote:
>>>>>
>>>>> I don't use SVGSerializer, but I see that it is in Batik block now.
>>>>>
>>>>> Go to cocoon website, Blocks 2.2/Batik/Project Documentation/
>>>>> Project
>>>>> Reports/JavaDocs to see java docs.
>>>>>
>>>>> I think that you have to add Batik into your pom file.
>>>>>
>>>>> <dependency>
>>>>> <groupId>org.apache.cocoon</groupId>
>>>>> <artifactId>cocoon-batik-impl</artifactId>
>>>>> <version>1.0.0</version>
>>>>> </dependency>
>>>>>
>>>>> Group/version info can be found in Blocks 2.2/Batik/Project
>>>>> Documentation/Project Information/Project Summary
>>>>>
>>>>> Barbara
>>>>>
>>>>> On 8 Jul, 2008, at 8:47 am, jantje wrote:
>>>>>
>>>>>>
>>>>>> So I do exactly like you say, Barbara:
>>>>>>
>>>>>> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
>>>>>> -DarchetypeArtifactId=cocoon-22-archetype-block -
>>>>>> DarchetypeVersion=1.0.0
>>>>>> -DgroupId=my.domain -DartifactId=myBlock
>>>>>> cd myBlock
>>>>>> mvn jetty:run
>>>>>> konqueror http://localhost:8888/myBlock/
>>>>>>
>>>>>> I get this error:
>>>>>>
>>>>>> Caused by:
>>>>>> org.springframework.beans.factory.BeanDefinitionStoreException:
>>>>>> Unable to read Avalon configuration from 'sitemap.xmap'.; nested
>>>>>> exception
>>>>>> is
>>>>>> org.apache.avalon.framework.configuration.ConfigurationException:
>>>>>> Unable
>>>>>> to create class for component with role
>>>>>> org.apache.cocoon.serialization.Serializer/svg2png with class:
>>>>>> org.apache.cocoon.serialization.SVGSerializer
>>>>>>
>>>>>> And this is my sitemap (I have adde the definition for the
>>>>>> serializer, on
>>>>>> your advise.. Normally I don't do this..):
>>>>>>
>>>>>> http://users.skynet.be/sb015553/sitemap.xmap
>>>>>>
>>>>>> Thanks, this is not easy :-)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Barbara Slupik-3 wrote:
>>>>>>>
>>>>>>> I create my blocks with:
>>>>>>>
>>>>>>> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -
>>>>>>> DarchetypeArtifactId=cocoon-22-archetype-block -
>>>>>>> DarchetypeVersion=1.0.0 -DgroupId=my.domain -DartifactId=myBlock
>>>>>>>
>>>>>>> This creates all folders and files necessary to run it in jetty,
>>>>>>> including pom.
>>>>>>>
>>>>>>> Put your files and sitemap in COB-INF. Go to myBlock folder in
>>>>>>> your
>>>>>>> terminal and run
>>>>>>>
>>>>>>> mvn jetty:run
>>>>>>>
>>>>>>> Then test your block with url similar to this:
>>>>>>>
>>>>>>> http://localhost:8888/myBlock/
>>>>>>>
>>>>>>> I suppose that you did all this and now you have some errors? Do
>>>>>>> you
>>>>>>> have svg2png serializer defined in your sitemap?
>>>>>>>
>>>>>>> Barbara
>>>>>>>
>>>>>>>
>>>>>>> On 7 Jul, 2008, at 7:53 pm, jantje wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Ok, so I do this:
>>>>>>>> mvn archetype:generate -DarchetypeCatalog=http://
>>>>>>>> cocoon.apache.org
>>>>>>>> mvn jetty:run
>>>>>>>>
>>>>>>>> Then I copy some little cocoon application (sitemap, and three
>>>>>>>> or
>>>>>>>> fore
>>>>>>>> files) to:
>>>>>>>> myBlock1/src/main/resources/COB-INF/
>>>>>>>>
>>>>>>>> And then? How do I know what I should write in pom? f.i. when I
>>>>>>>> use:
>>>>>>>> <map:serialize type="svg2png" />
>>>>>>>>
>>>>>>>> Thanks..
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Barbara Slupik-3 wrote:
>>>>>>>>>
>>>>>>>>> I am using cocoon with maven and jetty in my development
>>>>>>>>> environment.
>>>>>>>>> I develop and test individual blocks. Then I build my block jar
>>>>>>>>> files
>>>>>>>>> and my cocoon application. Once everything works in maven/jetty
>>>>>>>>> development environment I build application war file and put it
>>>>>>>>> in my
>>>>>>>>> test environment which runs with tomcat. Test/production
>>>>>>>>> environment
>>>>>>>>> does not need maven or jetty and does not need to download
>>>>>>>>> anything,
>>>>>>>>> everything is already included in jar files.
>>>>>>>>>
>>>>>>>>> Barbara
>>>>>>>>>
>>>>>>>>> On 7 Jul, 2008, at 6:11 pm, jantje wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hi there, I have used older versions of cocoon for over
>>>>>>>>>> years..
>>>>>>>>>> Now
>>>>>>>>>> I want to
>>>>>>>>>> go to cocoon 2.2.
>>>>>>>>>>
>>>>>>>>>> But now I have to use Maven, and on the cocoon website there
>>>>>>>>>> is
>>>>>>>>>> not
>>>>>>>>>> a lot of
>>>>>>>>>> information about maven and cocoon.
>>>>>>>>>>
>>>>>>>>>> Therefore I have downloaded this: cocoon-2.2.0.tar.gz
>>>>>>>>>>
>>>>>>>>>> When I open the file, there is no information about installing
>>>>>>>>>> cocoon? I
>>>>>>>>>> have tryed "java -jar cocoon-core-2.2.0.jar" Nothing works..
>>>>>>>>>>
>>>>>>>>>> Following the tutorials on the cocoon website, with maven I
>>>>>>>>>> have
>>>>>>>>>> made
>>>>>>>>>> blocks.. running cocoon.. But this is very basic.. And I
>>>>>>>>>> want to
>>>>>>>>>> add cocoon
>>>>>>>>>> to a live cd, so maven using the internet to download files
>>>>>>>>>> does
>>>>>>>>>> not satisfy
>>>>>>>>>> me :-(
>>>>>>>>>>
>>>>>>>>>> Maybe there is documentation I am missing, but can't find it.
>>>>>>>>>> Anyhow, does
>>>>>>>>>> someone know how to install cocoon-2.2.0.tar.gz???
>>>>>>>>>>
>>>>>>>>>> Thanks..
>>>>>>>>>> --
>>>>>>>>>> View this message in context: http://www.nabble.com/Cocoon-
>>>>>>>>>> installation-howto--tp18321699p18321699.html
>>>>>>>>>> Sent from the Cocoon - Users mailing list archive at
>>>>>>>>>> Nabble.com.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------
>>>>>>>>>> --
>>>>>>>>>> -
>>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>>>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -------------------------------------------------------------------
>>>>>>>>> --
>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> View this message in context: http://www.nabble.com/Cocoon-
>>>>>>>> installation-howto--tp18321699p18323968.html
>>>>>>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>>>>>>
>>>>>>>>
>>>>>>>> --------------------------------------------------------------------
>>>>>>>> -
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context: http://www.nabble.com/Cocoon-
>>>>>> installation-howto--tp18321699p18333754.html
>>>>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Cocoon-installation-howto--tp18321699p18337884.html
>>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Cocoon-installation-howto--tp18321699p18345624.html
>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
--
View this message in context: http://www.nabble.com/Cocoon-installation-howto--tp18321699p18417196.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon installation howto?
Posted by William Moore <wm...@ntlworld.com>.
Hi
It's inside the zip file here:
https://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/dojo/resources/
You might need the cocoon-ajax block to get access to it.
Best regards
William
On 8 Jul, 2008, at 7:15 pm, jantje wrote:
>
> Thanks! I use Ajax, like in the cocoon2.2 examples.. These examples
> need a
> dojo.js file. I don't know what this file does, but Ajax needs it in
> this
> example.. So I get this error:
>
> Caused by:
> org.apache.avalon.framework.configuration.ConfigurationException:
> Couldn't absolutize ajax:/resource/external/dojo/dojo.js. Make sure
> that the
> configuration of your servlet-service contains a connection to
> 'ajax:/resource/external/dojo/dojo.js'.
>
> Do you know where I can find this file in the repository?
>
> Thanks,
> jantje..
>
>
>
>
>
>
> William Moore wrote:
>>
>> Hi jantje
>>
>> The source is in this folder on the cocoon svn:
>>
>> https://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/common/style/xsl/html/
>>
>> Which puts it in the cocoon-samples-style block. I think you could
>> either put the block into your application or copy the file into our
>> block and use it directly.
>>
>> Best regards
>>
>> William
>>
>> On 8 Jul, 2008, at 1:21 pm, jantje wrote:
>>
>>>
>>> Thanks, this works! I have added batik and fop ajax to pom.xml
>>>
>>> It is really great, nearly everything works! Except, I have (from a
>>> svn
>>> repository installation from cocoon2.2) copied some source from the
>>> cocoon
>>> 2.2 examples. This was a working application, but the next line in
>>> my
>>> sitemap fails. Beceause this has something to do with cocoon
>>> examples:
>>>
>>> <map:match pattern="">
>>> <map:generate src="welcome.xml" />
>>> <map:serialize type="servletService" mime-type="text/html">
>>> <map:parameter name="service"
>>> value="servlet:style-default:/service/common/simple-samples2html" />
>>> </map:serialize>
>>> </map:match>
>>>
>>> It is this wat fails:
>>> servlet:style-default:/service/common/simple-samples2html
>>> I don't know what is it, and I can't find this sourcefile or the
>>> source of
>>> this sevice in the cocoon2.2 examples..
>>>
>>> I like this styling (simple-samples2html), so how can I use this in
>>> my maven
>>> block?
>>>
>>> Thanks for your help,
>>> jantje from belgium..
>>>
>>>
>>>
>>>
>>>
>>>
>>> Barbara Slupik-3 wrote:
>>>>
>>>> I don't use SVGSerializer, but I see that it is in Batik block now.
>>>>
>>>> Go to cocoon website, Blocks 2.2/Batik/Project Documentation/
>>>> Project
>>>> Reports/JavaDocs to see java docs.
>>>>
>>>> I think that you have to add Batik into your pom file.
>>>>
>>>> <dependency>
>>>> <groupId>org.apache.cocoon</groupId>
>>>> <artifactId>cocoon-batik-impl</artifactId>
>>>> <version>1.0.0</version>
>>>> </dependency>
>>>>
>>>> Group/version info can be found in Blocks 2.2/Batik/Project
>>>> Documentation/Project Information/Project Summary
>>>>
>>>> Barbara
>>>>
>>>> On 8 Jul, 2008, at 8:47 am, jantje wrote:
>>>>
>>>>>
>>>>> So I do exactly like you say, Barbara:
>>>>>
>>>>> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
>>>>> -DarchetypeArtifactId=cocoon-22-archetype-block -
>>>>> DarchetypeVersion=1.0.0
>>>>> -DgroupId=my.domain -DartifactId=myBlock
>>>>> cd myBlock
>>>>> mvn jetty:run
>>>>> konqueror http://localhost:8888/myBlock/
>>>>>
>>>>> I get this error:
>>>>>
>>>>> Caused by:
>>>>> org.springframework.beans.factory.BeanDefinitionStoreException:
>>>>> Unable to read Avalon configuration from 'sitemap.xmap'.; nested
>>>>> exception
>>>>> is
>>>>> org.apache.avalon.framework.configuration.ConfigurationException:
>>>>> Unable
>>>>> to create class for component with role
>>>>> org.apache.cocoon.serialization.Serializer/svg2png with class:
>>>>> org.apache.cocoon.serialization.SVGSerializer
>>>>>
>>>>> And this is my sitemap (I have adde the definition for the
>>>>> serializer, on
>>>>> your advise.. Normally I don't do this..):
>>>>>
>>>>> http://users.skynet.be/sb015553/sitemap.xmap
>>>>>
>>>>> Thanks, this is not easy :-)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Barbara Slupik-3 wrote:
>>>>>>
>>>>>> I create my blocks with:
>>>>>>
>>>>>> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -
>>>>>> DarchetypeArtifactId=cocoon-22-archetype-block -
>>>>>> DarchetypeVersion=1.0.0 -DgroupId=my.domain -DartifactId=myBlock
>>>>>>
>>>>>> This creates all folders and files necessary to run it in jetty,
>>>>>> including pom.
>>>>>>
>>>>>> Put your files and sitemap in COB-INF. Go to myBlock folder in
>>>>>> your
>>>>>> terminal and run
>>>>>>
>>>>>> mvn jetty:run
>>>>>>
>>>>>> Then test your block with url similar to this:
>>>>>>
>>>>>> http://localhost:8888/myBlock/
>>>>>>
>>>>>> I suppose that you did all this and now you have some errors? Do
>>>>>> you
>>>>>> have svg2png serializer defined in your sitemap?
>>>>>>
>>>>>> Barbara
>>>>>>
>>>>>>
>>>>>> On 7 Jul, 2008, at 7:53 pm, jantje wrote:
>>>>>>
>>>>>>>
>>>>>>> Ok, so I do this:
>>>>>>> mvn archetype:generate -DarchetypeCatalog=http://
>>>>>>> cocoon.apache.org
>>>>>>> mvn jetty:run
>>>>>>>
>>>>>>> Then I copy some little cocoon application (sitemap, and three
>>>>>>> or
>>>>>>> fore
>>>>>>> files) to:
>>>>>>> myBlock1/src/main/resources/COB-INF/
>>>>>>>
>>>>>>> And then? How do I know what I should write in pom? f.i. when I
>>>>>>> use:
>>>>>>> <map:serialize type="svg2png" />
>>>>>>>
>>>>>>> Thanks..
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Barbara Slupik-3 wrote:
>>>>>>>>
>>>>>>>> I am using cocoon with maven and jetty in my development
>>>>>>>> environment.
>>>>>>>> I develop and test individual blocks. Then I build my block jar
>>>>>>>> files
>>>>>>>> and my cocoon application. Once everything works in maven/jetty
>>>>>>>> development environment I build application war file and put it
>>>>>>>> in my
>>>>>>>> test environment which runs with tomcat. Test/production
>>>>>>>> environment
>>>>>>>> does not need maven or jetty and does not need to download
>>>>>>>> anything,
>>>>>>>> everything is already included in jar files.
>>>>>>>>
>>>>>>>> Barbara
>>>>>>>>
>>>>>>>> On 7 Jul, 2008, at 6:11 pm, jantje wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hi there, I have used older versions of cocoon for over
>>>>>>>>> years..
>>>>>>>>> Now
>>>>>>>>> I want to
>>>>>>>>> go to cocoon 2.2.
>>>>>>>>>
>>>>>>>>> But now I have to use Maven, and on the cocoon website there
>>>>>>>>> is
>>>>>>>>> not
>>>>>>>>> a lot of
>>>>>>>>> information about maven and cocoon.
>>>>>>>>>
>>>>>>>>> Therefore I have downloaded this: cocoon-2.2.0.tar.gz
>>>>>>>>>
>>>>>>>>> When I open the file, there is no information about installing
>>>>>>>>> cocoon? I
>>>>>>>>> have tryed "java -jar cocoon-core-2.2.0.jar" Nothing works..
>>>>>>>>>
>>>>>>>>> Following the tutorials on the cocoon website, with maven I
>>>>>>>>> have
>>>>>>>>> made
>>>>>>>>> blocks.. running cocoon.. But this is very basic.. And I
>>>>>>>>> want to
>>>>>>>>> add cocoon
>>>>>>>>> to a live cd, so maven using the internet to download files
>>>>>>>>> does
>>>>>>>>> not satisfy
>>>>>>>>> me :-(
>>>>>>>>>
>>>>>>>>> Maybe there is documentation I am missing, but can't find it.
>>>>>>>>> Anyhow, does
>>>>>>>>> someone know how to install cocoon-2.2.0.tar.gz???
>>>>>>>>>
>>>>>>>>> Thanks..
>>>>>>>>> --
>>>>>>>>> View this message in context: http://www.nabble.com/Cocoon-
>>>>>>>>> installation-howto--tp18321699p18321699.html
>>>>>>>>> Sent from the Cocoon - Users mailing list archive at
>>>>>>>>> Nabble.com.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------
>>>>>>>>> --
>>>>>>>>> -
>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -------------------------------------------------------------------
>>>>>>>> --
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> View this message in context: http://www.nabble.com/Cocoon-
>>>>>>> installation-howto--tp18321699p18323968.html
>>>>>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>> --------------------------------------------------------------------
>>>>>>> -
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context: http://www.nabble.com/Cocoon-
>>>>> installation-howto--tp18321699p18333754.html
>>>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Cocoon-installation-howto--tp18321699p18337884.html
>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Cocoon-installation-howto--tp18321699p18345624.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon installation howto?
Posted by jantje <ja...@skynet.be>.
Thanks! I use Ajax, like in the cocoon2.2 examples.. These examples need a
dojo.js file. I don't know what this file does, but Ajax needs it in this
example.. So I get this error:
Caused by: org.apache.avalon.framework.configuration.ConfigurationException:
Couldn't absolutize ajax:/resource/external/dojo/dojo.js. Make sure that the
configuration of your servlet-service contains a connection to
'ajax:/resource/external/dojo/dojo.js'.
Do you know where I can find this file in the repository?
Thanks,
jantje..
William Moore wrote:
>
> Hi jantje
>
> The source is in this folder on the cocoon svn:
>
> https://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/common/style/xsl/html/
>
> Which puts it in the cocoon-samples-style block. I think you could
> either put the block into your application or copy the file into our
> block and use it directly.
>
> Best regards
>
> William
>
> On 8 Jul, 2008, at 1:21 pm, jantje wrote:
>
>>
>> Thanks, this works! I have added batik and fop ajax to pom.xml
>>
>> It is really great, nearly everything works! Except, I have (from a
>> svn
>> repository installation from cocoon2.2) copied some source from the
>> cocoon
>> 2.2 examples. This was a working application, but the next line in my
>> sitemap fails. Beceause this has something to do with cocoon examples:
>>
>> <map:match pattern="">
>> <map:generate src="welcome.xml" />
>> <map:serialize type="servletService" mime-type="text/html">
>> <map:parameter name="service"
>> value="servlet:style-default:/service/common/simple-samples2html" />
>> </map:serialize>
>> </map:match>
>>
>> It is this wat fails:
>> servlet:style-default:/service/common/simple-samples2html
>> I don't know what is it, and I can't find this sourcefile or the
>> source of
>> this sevice in the cocoon2.2 examples..
>>
>> I like this styling (simple-samples2html), so how can I use this in
>> my maven
>> block?
>>
>> Thanks for your help,
>> jantje from belgium..
>>
>>
>>
>>
>>
>>
>> Barbara Slupik-3 wrote:
>>>
>>> I don't use SVGSerializer, but I see that it is in Batik block now.
>>>
>>> Go to cocoon website, Blocks 2.2/Batik/Project Documentation/Project
>>> Reports/JavaDocs to see java docs.
>>>
>>> I think that you have to add Batik into your pom file.
>>>
>>> <dependency>
>>> <groupId>org.apache.cocoon</groupId>
>>> <artifactId>cocoon-batik-impl</artifactId>
>>> <version>1.0.0</version>
>>> </dependency>
>>>
>>> Group/version info can be found in Blocks 2.2/Batik/Project
>>> Documentation/Project Information/Project Summary
>>>
>>> Barbara
>>>
>>> On 8 Jul, 2008, at 8:47 am, jantje wrote:
>>>
>>>>
>>>> So I do exactly like you say, Barbara:
>>>>
>>>> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
>>>> -DarchetypeArtifactId=cocoon-22-archetype-block -
>>>> DarchetypeVersion=1.0.0
>>>> -DgroupId=my.domain -DartifactId=myBlock
>>>> cd myBlock
>>>> mvn jetty:run
>>>> konqueror http://localhost:8888/myBlock/
>>>>
>>>> I get this error:
>>>>
>>>> Caused by:
>>>> org.springframework.beans.factory.BeanDefinitionStoreException:
>>>> Unable to read Avalon configuration from 'sitemap.xmap'.; nested
>>>> exception
>>>> is
>>>> org.apache.avalon.framework.configuration.ConfigurationException:
>>>> Unable
>>>> to create class for component with role
>>>> org.apache.cocoon.serialization.Serializer/svg2png with class:
>>>> org.apache.cocoon.serialization.SVGSerializer
>>>>
>>>> And this is my sitemap (I have adde the definition for the
>>>> serializer, on
>>>> your advise.. Normally I don't do this..):
>>>>
>>>> http://users.skynet.be/sb015553/sitemap.xmap
>>>>
>>>> Thanks, this is not easy :-)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Barbara Slupik-3 wrote:
>>>>>
>>>>> I create my blocks with:
>>>>>
>>>>> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -
>>>>> DarchetypeArtifactId=cocoon-22-archetype-block -
>>>>> DarchetypeVersion=1.0.0 -DgroupId=my.domain -DartifactId=myBlock
>>>>>
>>>>> This creates all folders and files necessary to run it in jetty,
>>>>> including pom.
>>>>>
>>>>> Put your files and sitemap in COB-INF. Go to myBlock folder in your
>>>>> terminal and run
>>>>>
>>>>> mvn jetty:run
>>>>>
>>>>> Then test your block with url similar to this:
>>>>>
>>>>> http://localhost:8888/myBlock/
>>>>>
>>>>> I suppose that you did all this and now you have some errors? Do
>>>>> you
>>>>> have svg2png serializer defined in your sitemap?
>>>>>
>>>>> Barbara
>>>>>
>>>>>
>>>>> On 7 Jul, 2008, at 7:53 pm, jantje wrote:
>>>>>
>>>>>>
>>>>>> Ok, so I do this:
>>>>>> mvn archetype:generate -DarchetypeCatalog=http://
>>>>>> cocoon.apache.org
>>>>>> mvn jetty:run
>>>>>>
>>>>>> Then I copy some little cocoon application (sitemap, and three or
>>>>>> fore
>>>>>> files) to:
>>>>>> myBlock1/src/main/resources/COB-INF/
>>>>>>
>>>>>> And then? How do I know what I should write in pom? f.i. when I
>>>>>> use:
>>>>>> <map:serialize type="svg2png" />
>>>>>>
>>>>>> Thanks..
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Barbara Slupik-3 wrote:
>>>>>>>
>>>>>>> I am using cocoon with maven and jetty in my development
>>>>>>> environment.
>>>>>>> I develop and test individual blocks. Then I build my block jar
>>>>>>> files
>>>>>>> and my cocoon application. Once everything works in maven/jetty
>>>>>>> development environment I build application war file and put it
>>>>>>> in my
>>>>>>> test environment which runs with tomcat. Test/production
>>>>>>> environment
>>>>>>> does not need maven or jetty and does not need to download
>>>>>>> anything,
>>>>>>> everything is already included in jar files.
>>>>>>>
>>>>>>> Barbara
>>>>>>>
>>>>>>> On 7 Jul, 2008, at 6:11 pm, jantje wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Hi there, I have used older versions of cocoon for over years..
>>>>>>>> Now
>>>>>>>> I want to
>>>>>>>> go to cocoon 2.2.
>>>>>>>>
>>>>>>>> But now I have to use Maven, and on the cocoon website there is
>>>>>>>> not
>>>>>>>> a lot of
>>>>>>>> information about maven and cocoon.
>>>>>>>>
>>>>>>>> Therefore I have downloaded this: cocoon-2.2.0.tar.gz
>>>>>>>>
>>>>>>>> When I open the file, there is no information about installing
>>>>>>>> cocoon? I
>>>>>>>> have tryed "java -jar cocoon-core-2.2.0.jar" Nothing works..
>>>>>>>>
>>>>>>>> Following the tutorials on the cocoon website, with maven I have
>>>>>>>> made
>>>>>>>> blocks.. running cocoon.. But this is very basic.. And I want to
>>>>>>>> add cocoon
>>>>>>>> to a live cd, so maven using the internet to download files does
>>>>>>>> not satisfy
>>>>>>>> me :-(
>>>>>>>>
>>>>>>>> Maybe there is documentation I am missing, but can't find it.
>>>>>>>> Anyhow, does
>>>>>>>> someone know how to install cocoon-2.2.0.tar.gz???
>>>>>>>>
>>>>>>>> Thanks..
>>>>>>>> --
>>>>>>>> View this message in context: http://www.nabble.com/Cocoon-
>>>>>>>> installation-howto--tp18321699p18321699.html
>>>>>>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------
>>>>>>>> --
>>>>>>>> -
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -------------------------------------------------------------------
>>>>>>> --
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context: http://www.nabble.com/Cocoon-
>>>>>> installation-howto--tp18321699p18323968.html
>>>>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> --------------------------------------------------------------------
>>>>>> -
>>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context: http://www.nabble.com/Cocoon-
>>>> installation-howto--tp18321699p18333754.html
>>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Cocoon-installation-howto--tp18321699p18337884.html
>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
--
View this message in context: http://www.nabble.com/Cocoon-installation-howto--tp18321699p18345624.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon installation howto?
Posted by William Moore <wm...@ntlworld.com>.
Hi jantje
The source is in this folder on the cocoon svn:
https://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/common/style/xsl/html/
Which puts it in the cocoon-samples-style block. I think you could
either put the block into your application or copy the file into our
block and use it directly.
Best regards
William
On 8 Jul, 2008, at 1:21 pm, jantje wrote:
>
> Thanks, this works! I have added batik and fop ajax to pom.xml
>
> It is really great, nearly everything works! Except, I have (from a
> svn
> repository installation from cocoon2.2) copied some source from the
> cocoon
> 2.2 examples. This was a working application, but the next line in my
> sitemap fails. Beceause this has something to do with cocoon examples:
>
> <map:match pattern="">
> <map:generate src="welcome.xml" />
> <map:serialize type="servletService" mime-type="text/html">
> <map:parameter name="service"
> value="servlet:style-default:/service/common/simple-samples2html" />
> </map:serialize>
> </map:match>
>
> It is this wat fails:
> servlet:style-default:/service/common/simple-samples2html
> I don't know what is it, and I can't find this sourcefile or the
> source of
> this sevice in the cocoon2.2 examples..
>
> I like this styling (simple-samples2html), so how can I use this in
> my maven
> block?
>
> Thanks for your help,
> jantje from belgium..
>
>
>
>
>
>
> Barbara Slupik-3 wrote:
>>
>> I don't use SVGSerializer, but I see that it is in Batik block now.
>>
>> Go to cocoon website, Blocks 2.2/Batik/Project Documentation/Project
>> Reports/JavaDocs to see java docs.
>>
>> I think that you have to add Batik into your pom file.
>>
>> <dependency>
>> <groupId>org.apache.cocoon</groupId>
>> <artifactId>cocoon-batik-impl</artifactId>
>> <version>1.0.0</version>
>> </dependency>
>>
>> Group/version info can be found in Blocks 2.2/Batik/Project
>> Documentation/Project Information/Project Summary
>>
>> Barbara
>>
>> On 8 Jul, 2008, at 8:47 am, jantje wrote:
>>
>>>
>>> So I do exactly like you say, Barbara:
>>>
>>> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
>>> -DarchetypeArtifactId=cocoon-22-archetype-block -
>>> DarchetypeVersion=1.0.0
>>> -DgroupId=my.domain -DartifactId=myBlock
>>> cd myBlock
>>> mvn jetty:run
>>> konqueror http://localhost:8888/myBlock/
>>>
>>> I get this error:
>>>
>>> Caused by:
>>> org.springframework.beans.factory.BeanDefinitionStoreException:
>>> Unable to read Avalon configuration from 'sitemap.xmap'.; nested
>>> exception
>>> is
>>> org.apache.avalon.framework.configuration.ConfigurationException:
>>> Unable
>>> to create class for component with role
>>> org.apache.cocoon.serialization.Serializer/svg2png with class:
>>> org.apache.cocoon.serialization.SVGSerializer
>>>
>>> And this is my sitemap (I have adde the definition for the
>>> serializer, on
>>> your advise.. Normally I don't do this..):
>>>
>>> http://users.skynet.be/sb015553/sitemap.xmap
>>>
>>> Thanks, this is not easy :-)
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Barbara Slupik-3 wrote:
>>>>
>>>> I create my blocks with:
>>>>
>>>> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -
>>>> DarchetypeArtifactId=cocoon-22-archetype-block -
>>>> DarchetypeVersion=1.0.0 -DgroupId=my.domain -DartifactId=myBlock
>>>>
>>>> This creates all folders and files necessary to run it in jetty,
>>>> including pom.
>>>>
>>>> Put your files and sitemap in COB-INF. Go to myBlock folder in your
>>>> terminal and run
>>>>
>>>> mvn jetty:run
>>>>
>>>> Then test your block with url similar to this:
>>>>
>>>> http://localhost:8888/myBlock/
>>>>
>>>> I suppose that you did all this and now you have some errors? Do
>>>> you
>>>> have svg2png serializer defined in your sitemap?
>>>>
>>>> Barbara
>>>>
>>>>
>>>> On 7 Jul, 2008, at 7:53 pm, jantje wrote:
>>>>
>>>>>
>>>>> Ok, so I do this:
>>>>> mvn archetype:generate -DarchetypeCatalog=http://
>>>>> cocoon.apache.org
>>>>> mvn jetty:run
>>>>>
>>>>> Then I copy some little cocoon application (sitemap, and three or
>>>>> fore
>>>>> files) to:
>>>>> myBlock1/src/main/resources/COB-INF/
>>>>>
>>>>> And then? How do I know what I should write in pom? f.i. when I
>>>>> use:
>>>>> <map:serialize type="svg2png" />
>>>>>
>>>>> Thanks..
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Barbara Slupik-3 wrote:
>>>>>>
>>>>>> I am using cocoon with maven and jetty in my development
>>>>>> environment.
>>>>>> I develop and test individual blocks. Then I build my block jar
>>>>>> files
>>>>>> and my cocoon application. Once everything works in maven/jetty
>>>>>> development environment I build application war file and put it
>>>>>> in my
>>>>>> test environment which runs with tomcat. Test/production
>>>>>> environment
>>>>>> does not need maven or jetty and does not need to download
>>>>>> anything,
>>>>>> everything is already included in jar files.
>>>>>>
>>>>>> Barbara
>>>>>>
>>>>>> On 7 Jul, 2008, at 6:11 pm, jantje wrote:
>>>>>>
>>>>>>>
>>>>>>> Hi there, I have used older versions of cocoon for over years..
>>>>>>> Now
>>>>>>> I want to
>>>>>>> go to cocoon 2.2.
>>>>>>>
>>>>>>> But now I have to use Maven, and on the cocoon website there is
>>>>>>> not
>>>>>>> a lot of
>>>>>>> information about maven and cocoon.
>>>>>>>
>>>>>>> Therefore I have downloaded this: cocoon-2.2.0.tar.gz
>>>>>>>
>>>>>>> When I open the file, there is no information about installing
>>>>>>> cocoon? I
>>>>>>> have tryed "java -jar cocoon-core-2.2.0.jar" Nothing works..
>>>>>>>
>>>>>>> Following the tutorials on the cocoon website, with maven I have
>>>>>>> made
>>>>>>> blocks.. running cocoon.. But this is very basic.. And I want to
>>>>>>> add cocoon
>>>>>>> to a live cd, so maven using the internet to download files does
>>>>>>> not satisfy
>>>>>>> me :-(
>>>>>>>
>>>>>>> Maybe there is documentation I am missing, but can't find it.
>>>>>>> Anyhow, does
>>>>>>> someone know how to install cocoon-2.2.0.tar.gz???
>>>>>>>
>>>>>>> Thanks..
>>>>>>> --
>>>>>>> View this message in context: http://www.nabble.com/Cocoon-
>>>>>>> installation-howto--tp18321699p18321699.html
>>>>>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------
>>>>>>> --
>>>>>>> -
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>>>
>>>>>>
>>>>>>
>>>>>> -------------------------------------------------------------------
>>>>>> --
>>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context: http://www.nabble.com/Cocoon-
>>>>> installation-howto--tp18321699p18323968.html
>>>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> --------------------------------------------------------------------
>>>>> -
>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>
>>>>
>>>
>>> --
>>> View this message in context: http://www.nabble.com/Cocoon-
>>> installation-howto--tp18321699p18333754.html
>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Cocoon-installation-howto--tp18321699p18337884.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon installation howto?
Posted by jantje <ja...@skynet.be>.
Thanks, this works! I have added batik and fop ajax to pom.xml
It is really great, nearly everything works! Except, I have (from a svn
repository installation from cocoon2.2) copied some source from the cocoon
2.2 examples. This was a working application, but the next line in my
sitemap fails. Beceause this has something to do with cocoon examples:
<map:match pattern="">
<map:generate src="welcome.xml" />
<map:serialize type="servletService" mime-type="text/html">
<map:parameter name="service"
value="servlet:style-default:/service/common/simple-samples2html" />
</map:serialize>
</map:match>
It is this wat fails:
servlet:style-default:/service/common/simple-samples2html
I don't know what is it, and I can't find this sourcefile or the source of
this sevice in the cocoon2.2 examples..
I like this styling (simple-samples2html), so how can I use this in my maven
block?
Thanks for your help,
jantje from belgium..
Barbara Slupik-3 wrote:
>
> I don't use SVGSerializer, but I see that it is in Batik block now.
>
> Go to cocoon website, Blocks 2.2/Batik/Project Documentation/Project
> Reports/JavaDocs to see java docs.
>
> I think that you have to add Batik into your pom file.
>
> <dependency>
> <groupId>org.apache.cocoon</groupId>
> <artifactId>cocoon-batik-impl</artifactId>
> <version>1.0.0</version>
> </dependency>
>
> Group/version info can be found in Blocks 2.2/Batik/Project
> Documentation/Project Information/Project Summary
>
> Barbara
>
> On 8 Jul, 2008, at 8:47 am, jantje wrote:
>
>>
>> So I do exactly like you say, Barbara:
>>
>> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
>> -DarchetypeArtifactId=cocoon-22-archetype-block -
>> DarchetypeVersion=1.0.0
>> -DgroupId=my.domain -DartifactId=myBlock
>> cd myBlock
>> mvn jetty:run
>> konqueror http://localhost:8888/myBlock/
>>
>> I get this error:
>>
>> Caused by:
>> org.springframework.beans.factory.BeanDefinitionStoreException:
>> Unable to read Avalon configuration from 'sitemap.xmap'.; nested
>> exception
>> is
>> org.apache.avalon.framework.configuration.ConfigurationException:
>> Unable
>> to create class for component with role
>> org.apache.cocoon.serialization.Serializer/svg2png with class:
>> org.apache.cocoon.serialization.SVGSerializer
>>
>> And this is my sitemap (I have adde the definition for the
>> serializer, on
>> your advise.. Normally I don't do this..):
>>
>> http://users.skynet.be/sb015553/sitemap.xmap
>>
>> Thanks, this is not easy :-)
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Barbara Slupik-3 wrote:
>>>
>>> I create my blocks with:
>>>
>>> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -
>>> DarchetypeArtifactId=cocoon-22-archetype-block -
>>> DarchetypeVersion=1.0.0 -DgroupId=my.domain -DartifactId=myBlock
>>>
>>> This creates all folders and files necessary to run it in jetty,
>>> including pom.
>>>
>>> Put your files and sitemap in COB-INF. Go to myBlock folder in your
>>> terminal and run
>>>
>>> mvn jetty:run
>>>
>>> Then test your block with url similar to this:
>>>
>>> http://localhost:8888/myBlock/
>>>
>>> I suppose that you did all this and now you have some errors? Do you
>>> have svg2png serializer defined in your sitemap?
>>>
>>> Barbara
>>>
>>>
>>> On 7 Jul, 2008, at 7:53 pm, jantje wrote:
>>>
>>>>
>>>> Ok, so I do this:
>>>> mvn archetype:generate -DarchetypeCatalog=http://
>>>> cocoon.apache.org
>>>> mvn jetty:run
>>>>
>>>> Then I copy some little cocoon application (sitemap, and three or
>>>> fore
>>>> files) to:
>>>> myBlock1/src/main/resources/COB-INF/
>>>>
>>>> And then? How do I know what I should write in pom? f.i. when I use:
>>>> <map:serialize type="svg2png" />
>>>>
>>>> Thanks..
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Barbara Slupik-3 wrote:
>>>>>
>>>>> I am using cocoon with maven and jetty in my development
>>>>> environment.
>>>>> I develop and test individual blocks. Then I build my block jar
>>>>> files
>>>>> and my cocoon application. Once everything works in maven/jetty
>>>>> development environment I build application war file and put it
>>>>> in my
>>>>> test environment which runs with tomcat. Test/production
>>>>> environment
>>>>> does not need maven or jetty and does not need to download
>>>>> anything,
>>>>> everything is already included in jar files.
>>>>>
>>>>> Barbara
>>>>>
>>>>> On 7 Jul, 2008, at 6:11 pm, jantje wrote:
>>>>>
>>>>>>
>>>>>> Hi there, I have used older versions of cocoon for over years..
>>>>>> Now
>>>>>> I want to
>>>>>> go to cocoon 2.2.
>>>>>>
>>>>>> But now I have to use Maven, and on the cocoon website there is
>>>>>> not
>>>>>> a lot of
>>>>>> information about maven and cocoon.
>>>>>>
>>>>>> Therefore I have downloaded this: cocoon-2.2.0.tar.gz
>>>>>>
>>>>>> When I open the file, there is no information about installing
>>>>>> cocoon? I
>>>>>> have tryed "java -jar cocoon-core-2.2.0.jar" Nothing works..
>>>>>>
>>>>>> Following the tutorials on the cocoon website, with maven I have
>>>>>> made
>>>>>> blocks.. running cocoon.. But this is very basic.. And I want to
>>>>>> add cocoon
>>>>>> to a live cd, so maven using the internet to download files does
>>>>>> not satisfy
>>>>>> me :-(
>>>>>>
>>>>>> Maybe there is documentation I am missing, but can't find it.
>>>>>> Anyhow, does
>>>>>> someone know how to install cocoon-2.2.0.tar.gz???
>>>>>>
>>>>>> Thanks..
>>>>>> --
>>>>>> View this message in context: http://www.nabble.com/Cocoon-
>>>>>> installation-howto--tp18321699p18321699.html
>>>>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------
>>>>>> --
>>>>>> -
>>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>>
>>>>>
>>>>>
>>>>> -------------------------------------------------------------------
>>>>> --
>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context: http://www.nabble.com/Cocoon-
>>>> installation-howto--tp18321699p18323968.html
>>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> --------------------------------------------------------------------
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>
>>>
>>
>> --
>> View this message in context: http://www.nabble.com/Cocoon-
>> installation-howto--tp18321699p18333754.html
>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>
--
View this message in context: http://www.nabble.com/Cocoon-installation-howto--tp18321699p18337884.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon installation howto?
Posted by Barbara Slupik <ba...@ntlworld.com>.
I don't use SVGSerializer, but I see that it is in Batik block now.
Go to cocoon website, Blocks 2.2/Batik/Project Documentation/Project
Reports/JavaDocs to see java docs.
I think that you have to add Batik into your pom file.
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-batik-impl</artifactId>
<version>1.0.0</version>
</dependency>
Group/version info can be found in Blocks 2.2/Batik/Project
Documentation/Project Information/Project Summary
Barbara
On 8 Jul, 2008, at 8:47 am, jantje wrote:
>
> So I do exactly like you say, Barbara:
>
> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
> -DarchetypeArtifactId=cocoon-22-archetype-block -
> DarchetypeVersion=1.0.0
> -DgroupId=my.domain -DartifactId=myBlock
> cd myBlock
> mvn jetty:run
> konqueror http://localhost:8888/myBlock/
>
> I get this error:
>
> Caused by:
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Unable to read Avalon configuration from 'sitemap.xmap'.; nested
> exception
> is
> org.apache.avalon.framework.configuration.ConfigurationException:
> Unable
> to create class for component with role
> org.apache.cocoon.serialization.Serializer/svg2png with class:
> org.apache.cocoon.serialization.SVGSerializer
>
> And this is my sitemap (I have adde the definition for the
> serializer, on
> your advise.. Normally I don't do this..):
>
> http://users.skynet.be/sb015553/sitemap.xmap
>
> Thanks, this is not easy :-)
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Barbara Slupik-3 wrote:
>>
>> I create my blocks with:
>>
>> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -
>> DarchetypeArtifactId=cocoon-22-archetype-block -
>> DarchetypeVersion=1.0.0 -DgroupId=my.domain -DartifactId=myBlock
>>
>> This creates all folders and files necessary to run it in jetty,
>> including pom.
>>
>> Put your files and sitemap in COB-INF. Go to myBlock folder in your
>> terminal and run
>>
>> mvn jetty:run
>>
>> Then test your block with url similar to this:
>>
>> http://localhost:8888/myBlock/
>>
>> I suppose that you did all this and now you have some errors? Do you
>> have svg2png serializer defined in your sitemap?
>>
>> Barbara
>>
>>
>> On 7 Jul, 2008, at 7:53 pm, jantje wrote:
>>
>>>
>>> Ok, so I do this:
>>> mvn archetype:generate -DarchetypeCatalog=http://
>>> cocoon.apache.org
>>> mvn jetty:run
>>>
>>> Then I copy some little cocoon application (sitemap, and three or
>>> fore
>>> files) to:
>>> myBlock1/src/main/resources/COB-INF/
>>>
>>> And then? How do I know what I should write in pom? f.i. when I use:
>>> <map:serialize type="svg2png" />
>>>
>>> Thanks..
>>>
>>>
>>>
>>>
>>>
>>> Barbara Slupik-3 wrote:
>>>>
>>>> I am using cocoon with maven and jetty in my development
>>>> environment.
>>>> I develop and test individual blocks. Then I build my block jar
>>>> files
>>>> and my cocoon application. Once everything works in maven/jetty
>>>> development environment I build application war file and put it
>>>> in my
>>>> test environment which runs with tomcat. Test/production
>>>> environment
>>>> does not need maven or jetty and does not need to download
>>>> anything,
>>>> everything is already included in jar files.
>>>>
>>>> Barbara
>>>>
>>>> On 7 Jul, 2008, at 6:11 pm, jantje wrote:
>>>>
>>>>>
>>>>> Hi there, I have used older versions of cocoon for over years..
>>>>> Now
>>>>> I want to
>>>>> go to cocoon 2.2.
>>>>>
>>>>> But now I have to use Maven, and on the cocoon website there is
>>>>> not
>>>>> a lot of
>>>>> information about maven and cocoon.
>>>>>
>>>>> Therefore I have downloaded this: cocoon-2.2.0.tar.gz
>>>>>
>>>>> When I open the file, there is no information about installing
>>>>> cocoon? I
>>>>> have tryed "java -jar cocoon-core-2.2.0.jar" Nothing works..
>>>>>
>>>>> Following the tutorials on the cocoon website, with maven I have
>>>>> made
>>>>> blocks.. running cocoon.. But this is very basic.. And I want to
>>>>> add cocoon
>>>>> to a live cd, so maven using the internet to download files does
>>>>> not satisfy
>>>>> me :-(
>>>>>
>>>>> Maybe there is documentation I am missing, but can't find it.
>>>>> Anyhow, does
>>>>> someone know how to install cocoon-2.2.0.tar.gz???
>>>>>
>>>>> Thanks..
>>>>> --
>>>>> View this message in context: http://www.nabble.com/Cocoon-
>>>>> installation-howto--tp18321699p18321699.html
>>>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------
>>>>> --
>>>>> -
>>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------
>>>> --
>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>
>>>>
>>>
>>> --
>>> View this message in context: http://www.nabble.com/Cocoon-
>>> installation-howto--tp18321699p18323968.html
>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Cocoon-
> installation-howto--tp18321699p18333754.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
Re: Cocoon installation howto?
Posted by jantje <ja...@skynet.be>.
So I do exactly like you say, Barbara:
mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
-DarchetypeArtifactId=cocoon-22-archetype-block -DarchetypeVersion=1.0.0
-DgroupId=my.domain -DartifactId=myBlock
cd myBlock
mvn jetty:run
konqueror http://localhost:8888/myBlock/
I get this error:
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException:
Unable to read Avalon configuration from 'sitemap.xmap'.; nested exception
is org.apache.avalon.framework.configuration.ConfigurationException: Unable
to create class for component with role
org.apache.cocoon.serialization.Serializer/svg2png with class:
org.apache.cocoon.serialization.SVGSerializer
And this is my sitemap (I have adde the definition for the serializer, on
your advise.. Normally I don't do this..):
http://users.skynet.be/sb015553/sitemap.xmap
Thanks, this is not easy :-)
Barbara Slupik-3 wrote:
>
> I create my blocks with:
>
> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -
> DarchetypeArtifactId=cocoon-22-archetype-block -
> DarchetypeVersion=1.0.0 -DgroupId=my.domain -DartifactId=myBlock
>
> This creates all folders and files necessary to run it in jetty,
> including pom.
>
> Put your files and sitemap in COB-INF. Go to myBlock folder in your
> terminal and run
>
> mvn jetty:run
>
> Then test your block with url similar to this:
>
> http://localhost:8888/myBlock/
>
> I suppose that you did all this and now you have some errors? Do you
> have svg2png serializer defined in your sitemap?
>
> Barbara
>
>
> On 7 Jul, 2008, at 7:53 pm, jantje wrote:
>
>>
>> Ok, so I do this:
>> mvn archetype:generate -DarchetypeCatalog=http://
>> cocoon.apache.org
>> mvn jetty:run
>>
>> Then I copy some little cocoon application (sitemap, and three or fore
>> files) to:
>> myBlock1/src/main/resources/COB-INF/
>>
>> And then? How do I know what I should write in pom? f.i. when I use:
>> <map:serialize type="svg2png" />
>>
>> Thanks..
>>
>>
>>
>>
>>
>> Barbara Slupik-3 wrote:
>>>
>>> I am using cocoon with maven and jetty in my development environment.
>>> I develop and test individual blocks. Then I build my block jar files
>>> and my cocoon application. Once everything works in maven/jetty
>>> development environment I build application war file and put it in my
>>> test environment which runs with tomcat. Test/production environment
>>> does not need maven or jetty and does not need to download anything,
>>> everything is already included in jar files.
>>>
>>> Barbara
>>>
>>> On 7 Jul, 2008, at 6:11 pm, jantje wrote:
>>>
>>>>
>>>> Hi there, I have used older versions of cocoon for over years.. Now
>>>> I want to
>>>> go to cocoon 2.2.
>>>>
>>>> But now I have to use Maven, and on the cocoon website there is not
>>>> a lot of
>>>> information about maven and cocoon.
>>>>
>>>> Therefore I have downloaded this: cocoon-2.2.0.tar.gz
>>>>
>>>> When I open the file, there is no information about installing
>>>> cocoon? I
>>>> have tryed "java -jar cocoon-core-2.2.0.jar" Nothing works..
>>>>
>>>> Following the tutorials on the cocoon website, with maven I have
>>>> made
>>>> blocks.. running cocoon.. But this is very basic.. And I want to
>>>> add cocoon
>>>> to a live cd, so maven using the internet to download files does
>>>> not satisfy
>>>> me :-(
>>>>
>>>> Maybe there is documentation I am missing, but can't find it.
>>>> Anyhow, does
>>>> someone know how to install cocoon-2.2.0.tar.gz???
>>>>
>>>> Thanks..
>>>> --
>>>> View this message in context: http://www.nabble.com/Cocoon-
>>>> installation-howto--tp18321699p18321699.html
>>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> --------------------------------------------------------------------
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>
>>>
>>
>> --
>> View this message in context: http://www.nabble.com/Cocoon-
>> installation-howto--tp18321699p18323968.html
>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
--
View this message in context: http://www.nabble.com/Cocoon-installation-howto--tp18321699p18333754.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon installation howto?
Posted by Barbara Slupik <ba...@ntlworld.com>.
I create my blocks with:
mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -
DarchetypeArtifactId=cocoon-22-archetype-block -
DarchetypeVersion=1.0.0 -DgroupId=my.domain -DartifactId=myBlock
This creates all folders and files necessary to run it in jetty,
including pom.
Put your files and sitemap in COB-INF. Go to myBlock folder in your
terminal and run
mvn jetty:run
Then test your block with url similar to this:
http://localhost:8888/myBlock/
I suppose that you did all this and now you have some errors? Do you
have svg2png serializer defined in your sitemap?
Barbara
On 7 Jul, 2008, at 7:53 pm, jantje wrote:
>
> Ok, so I do this:
> mvn archetype:generate -DarchetypeCatalog=http://
> cocoon.apache.org
> mvn jetty:run
>
> Then I copy some little cocoon application (sitemap, and three or fore
> files) to:
> myBlock1/src/main/resources/COB-INF/
>
> And then? How do I know what I should write in pom? f.i. when I use:
> <map:serialize type="svg2png" />
>
> Thanks..
>
>
>
>
>
> Barbara Slupik-3 wrote:
>>
>> I am using cocoon with maven and jetty in my development environment.
>> I develop and test individual blocks. Then I build my block jar files
>> and my cocoon application. Once everything works in maven/jetty
>> development environment I build application war file and put it in my
>> test environment which runs with tomcat. Test/production environment
>> does not need maven or jetty and does not need to download anything,
>> everything is already included in jar files.
>>
>> Barbara
>>
>> On 7 Jul, 2008, at 6:11 pm, jantje wrote:
>>
>>>
>>> Hi there, I have used older versions of cocoon for over years.. Now
>>> I want to
>>> go to cocoon 2.2.
>>>
>>> But now I have to use Maven, and on the cocoon website there is not
>>> a lot of
>>> information about maven and cocoon.
>>>
>>> Therefore I have downloaded this: cocoon-2.2.0.tar.gz
>>>
>>> When I open the file, there is no information about installing
>>> cocoon? I
>>> have tryed "java -jar cocoon-core-2.2.0.jar" Nothing works..
>>>
>>> Following the tutorials on the cocoon website, with maven I have
>>> made
>>> blocks.. running cocoon.. But this is very basic.. And I want to
>>> add cocoon
>>> to a live cd, so maven using the internet to download files does
>>> not satisfy
>>> me :-(
>>>
>>> Maybe there is documentation I am missing, but can't find it.
>>> Anyhow, does
>>> someone know how to install cocoon-2.2.0.tar.gz???
>>>
>>> Thanks..
>>> --
>>> View this message in context: http://www.nabble.com/Cocoon-
>>> installation-howto--tp18321699p18321699.html
>>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Cocoon-
> installation-howto--tp18321699p18323968.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon installation howto?
Posted by jantje <ja...@skynet.be>.
Ok, so I do this:
mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org
mvn jetty:run
Then I copy some little cocoon application (sitemap, and three or fore
files) to:
myBlock1/src/main/resources/COB-INF/
And then? How do I know what I should write in pom? f.i. when I use:
<map:serialize type="svg2png" />
Thanks..
Barbara Slupik-3 wrote:
>
> I am using cocoon with maven and jetty in my development environment.
> I develop and test individual blocks. Then I build my block jar files
> and my cocoon application. Once everything works in maven/jetty
> development environment I build application war file and put it in my
> test environment which runs with tomcat. Test/production environment
> does not need maven or jetty and does not need to download anything,
> everything is already included in jar files.
>
> Barbara
>
> On 7 Jul, 2008, at 6:11 pm, jantje wrote:
>
>>
>> Hi there, I have used older versions of cocoon for over years.. Now
>> I want to
>> go to cocoon 2.2.
>>
>> But now I have to use Maven, and on the cocoon website there is not
>> a lot of
>> information about maven and cocoon.
>>
>> Therefore I have downloaded this: cocoon-2.2.0.tar.gz
>>
>> When I open the file, there is no information about installing
>> cocoon? I
>> have tryed "java -jar cocoon-core-2.2.0.jar" Nothing works..
>>
>> Following the tutorials on the cocoon website, with maven I have made
>> blocks.. running cocoon.. But this is very basic.. And I want to
>> add cocoon
>> to a live cd, so maven using the internet to download files does
>> not satisfy
>> me :-(
>>
>> Maybe there is documentation I am missing, but can't find it.
>> Anyhow, does
>> someone know how to install cocoon-2.2.0.tar.gz???
>>
>> Thanks..
>> --
>> View this message in context: http://www.nabble.com/Cocoon-
>> installation-howto--tp18321699p18321699.html
>> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
--
View this message in context: http://www.nabble.com/Cocoon-installation-howto--tp18321699p18323968.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon installation howto?
Posted by Barbara Slupik <ba...@ntlworld.com>.
I am using cocoon with maven and jetty in my development environment.
I develop and test individual blocks. Then I build my block jar files
and my cocoon application. Once everything works in maven/jetty
development environment I build application war file and put it in my
test environment which runs with tomcat. Test/production environment
does not need maven or jetty and does not need to download anything,
everything is already included in jar files.
Barbara
On 7 Jul, 2008, at 6:11 pm, jantje wrote:
>
> Hi there, I have used older versions of cocoon for over years.. Now
> I want to
> go to cocoon 2.2.
>
> But now I have to use Maven, and on the cocoon website there is not
> a lot of
> information about maven and cocoon.
>
> Therefore I have downloaded this: cocoon-2.2.0.tar.gz
>
> When I open the file, there is no information about installing
> cocoon? I
> have tryed "java -jar cocoon-core-2.2.0.jar" Nothing works..
>
> Following the tutorials on the cocoon website, with maven I have made
> blocks.. running cocoon.. But this is very basic.. And I want to
> add cocoon
> to a live cd, so maven using the internet to download files does
> not satisfy
> me :-(
>
> Maybe there is documentation I am missing, but can't find it.
> Anyhow, does
> someone know how to install cocoon-2.2.0.tar.gz???
>
> Thanks..
> --
> View this message in context: http://www.nabble.com/Cocoon-
> installation-howto--tp18321699p18321699.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org