You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Henrik Hofmann <He...@creon-it.com> on 2002/05/18 13:34:53 UTC

Truble with actions 2

I can't use action sets and don't know why.
 
 
  <map:actions>
      <map:action name="LogOff"
src="com.creon.webapp.Cocoon.Actions.LogOffWebUser"/>
       <map:action name="LogOn"
src="com.creon.webapp.Cocoon.Actions.LogOnAction"/>
       <map:action name="CheckLogon"
src="com.creon.webapp.Cocoon.Actions.CheckLogonAction"/>
       <map:action name="SessionCreator"
src="com.creon.webapp.Cocoon.Actions.SessionCreator"/>
  </map:actions>
  
  
   <map:action-sets>
    <map:action-set name="creon">
     <map:act type="LogOn" action="LogOn"/>
     <map:act type="LogOff" action="LogOff"/>
    </map:action-set>
   </map:action-sets>
 
 
This is how i want to use them
 
    <map:match pattern="search.html">
          
          <map:act set="creon">
            <map:act type="CheckLogon">
                <map:generate
src="f:/webserver/tomcat/webapps/cocoon/creon/search/search2.xml"
type="serverpages"/>
                <map:transform
src="f:/webserver/tomcat/webapps/cocoon/creon/search/SearchLayout.xml"/>
                <map:serialize type="html"/>
               </map:act>
            </map:act>
    </map:match>
 
 
But it always gives me this error message and i don't know what to do.
 
	
	
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:

Line 640, column 34:  Method
action_set_creon(org.apache.cocoon.sitemap.SitemapRedirector,
java.lang.String, java.util.List,
org.apache.cocoon.environment.Environment, java.util.Map,
java.lang.String, org.apache.avalon.framework.parameters.Parameters) not
found in class org.apache.cocoon.www.creon.sitemap_xmap.

Line 0, column 0: 

Note:
F:\Webserver\tomcat\work\localhost_8080%2Fcocoon\cocoon-files\org\apache
\cocoon\www\creon\sitemap_xmap.java uses or overrides a deprecated API.
Recompile with "-deprecation" for details.

1 error, 1 warning
 

    </map:match>

Powerfm.org : Online Radio Station Built in Cocoon.

Posted by Colm O'Riordan <co...@communicraft.com>.
Hi Guys,

Just to let you know we have just launched a site, built on Cocoon 1.8 ,
for an online radio station coming out of Dublin, Ireland.
Power FM - Web Station : http://www.powerfm.org
My thanks to contributors to this list who helped along the way with
useful pointers.
Still work ongoing on the site to improve performance and shake out a
few gremlins.
Currently full support for IE only, but we are working on NS 4 and
Mozilla 6 at present and would hope to have support for all the major
browsers in the coming weeks.
Your feedback, tips etc are welcome as always.

Thanks,

Colm O'Riordan.


--
Colm O'Riordan | Director
Communicraft
mobile: 353 86 2225078
web: www.communicraft.com
e: info@communicraft.com



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: problem vith sub_sitemap

Posted by Olivier GUCKERT <Ol...@inria.fr>.

Rodrigues Luc a écrit :
> 
> Hi,
> 
> Sorry for my poor english langage.
> 
> <?xml version="1.0"?>
>   <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
>    </map:pipelines>
> ---^-----Your error is here. type:
>    <map:pipelines>
> at place.
> 
> I hope that help you.

I thing my english langage is not better...
Thank you, i had seen this problem and it worrks fine : thanks to all


Olivier

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: problem vith sub_sitemap

Posted by Rodrigues Luc <ro...@wanadoo.fr>.
Hi,

Sorry for my poor english langage.

<?xml version="1.0"?>
  <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
   </map:pipelines>
---^-----Your error is here. type:
   <map:pipelines>
at place.

I hope that help you.

Olivier GUCKERT wrote:

> Hello
> 
> I have a problem with sub-sitemap.
> 
> I want to have a directory for my apps. This directory is : G:\site.
> So, i add a pipeline in sitemap.xmap, look like this :
> 
>   <map:pipeline>
>    <map:match pattern="transfo/**">
>      <map:mount uri-prefix="transfo"
>                 src="///./site/sitemap.xmap"
>                 reload-method="synchron"
>                 check-reload="yes"/>
>    </map:match>
>   </map:pipeline>
> 
> And i create a sub-sitemal in G:\site, look like this :
> 
> <?xml version="1.0"?>
> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
>  </map:pipelines>
>   <map:pipeline>   
>    <map:handle-errors>
>     <map:transform src="stylesheets/system/error2html.xsl"/>
>     <map:serialize status-code="500"/>
>    <map:handle-errors>
>    <map:match pattern="ctwig/basic01-01.xml"> 
>      <map:generate type="file" src="documents/basic01-01.xml"/> 
>      <map:transform type="xslt" src="stylesheets/basic01-01.xsl"/> 
>      <map:serialize/> 
>    </map:match>
>   </map:pipeline>
>  </map:pipelines>
> </map:sitemap>
> 
> And when i cold :
> http://localhost:8080/cocoon/transfo/ctwig/basic01-01.xml
> I have the folowing message :
> org.apache.cocoon.components.language.LanguageException: Error compiling
> sitemap_xmap: Line 73, column 25: ';' expected. Line
> 224, column 8: Invalid expression statement. Line 224, column 17: ';'
> expected. Line 329, column 12: ')' expected. Line 378, column 17:
> Identifier expected. Line 492, column 50: ')' expected. Line 497, column
> 38: ')' expected. Line 503, column 49: ')' expected. Line 0, column
> 0: 8 errors 
> 
> And i cann anderstand.
> 
> Cann somebody help me ?
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
> 


-- 
            Luc {;-)                    \\\\\////
         rodrigues.luc@wanadoo.fr       / ^   - \
                                       ( (o) (o) )
_________________________________oOOO_____(_)_____OOOo_____



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


problem vith sub_sitemap

Posted by Olivier GUCKERT <Ol...@inria.fr>.
Hello

I have a problem with sub-sitemap.

I want to have a directory for my apps. This directory is : G:\site.
So, i add a pipeline in sitemap.xmap, look like this :

  <map:pipeline>
   <map:match pattern="transfo/**">
     <map:mount uri-prefix="transfo"
                src="///./site/sitemap.xmap"
                reload-method="synchron"
                check-reload="yes"/>
   </map:match>
  </map:pipeline>

And i create a sub-sitemal in G:\site, look like this :

<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
 </map:pipelines>
  <map:pipeline>   
   <map:handle-errors>
    <map:transform src="stylesheets/system/error2html.xsl"/>
    <map:serialize status-code="500"/>
   <map:handle-errors>
   <map:match pattern="ctwig/basic01-01.xml"> 
     <map:generate type="file" src="documents/basic01-01.xml"/> 
     <map:transform type="xslt" src="stylesheets/basic01-01.xsl"/> 
     <map:serialize/> 
   </map:match>
  </map:pipeline>
 </map:pipelines>
</map:sitemap>

And when i cold :
http://localhost:8080/cocoon/transfo/ctwig/basic01-01.xml
I have the folowing message :
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap: Line 73, column 25: ';' expected. Line
224, column 8: Invalid expression statement. Line 224, column 17: ';'
expected. Line 329, column 12: ')' expected. Line 378, column 17:
Identifier expected. Line 492, column 50: ')' expected. Line 497, column
38: ')' expected. Line 503, column 49: ')' expected. Line 0, column
0: 8 errors 

And i cann anderstand.

Cann somebody help me ?

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Problem installing cocoon on debian

Posted by Jerzy Kut <je...@rzeszow.tiger.com.pl>.
Try to add to classpath xerces.jar and xml-apis.jar
Regards
Jerzy Kut

----- Original Message -----
From: "Daryl Moulder" <dm...@mail.csse.monash.edu.au>
To: <co...@xml.apache.org>
Sent: Monday, April 22, 2002 2:10 PM
Subject: Problem installing cocoon on debian


> I have this error in the log file
>
> java.lang.NoClassDefFoundError:
>
> javax/xml/transform/TransformerConfigurationException
>         at
>
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.createLo
gicsheet(AbstractMarkupLanguage.java:169)
>         at
>
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.configur
e(AbstractMarkupLanguage.java:117)
>         at
>
org.apache.avalon.component.DefaultComponentFactory.newInstance(DefaultCompo
nentFactory.java:107)
>         at
>
org.apache.avalon.component.DefaultComponentHandler.get(DefaultComponentHand
ler.java:191)
>         at
>
org.apache.avalon.component.DefaultComponentSelector.select(DefaultComponent
Selector.java:176)
>         at
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:166)
>         at org.apache.cocoon.sitemap.Handler.run(Handler.java:190)
>         at java.lang.Thread.run(Thread.java:484)
>
>
> The log file also shows I have the following classes in my classpath:
> lasspath = /var/lib/tomcat/webapps/cocoon2/WEB-INF/classes
>
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/Tidy.jar:/var/lib/tomcat/webapp
s/cocoon2/WEB-INF/lib/avalonapi.jar
> :/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/batik-all.jar
> :/usr/share/java/bsf.jar:/usr/share/java/cocoon2.jar
>
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/fop-0.17.0.jar:/usr/share/java/
fop-0.20.3rc.jar
>
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/hsqldb.jar:/var/lib/tomcat/weba
pps/cocoon2/WEB-INF/lib/jakarta-regexp-1.2.jar
>
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/jstyle.jar:/var/lib/tomcat/weba
pps/cocoon2/WEB-INF/lib/junit.jar
> :/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/logkit.jar
>
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/maybeupload.jar:/var/lib/tomcat
/webapps/cocoon2/WEB-INF/lib/rhino.jar
>
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/velocity-1.0.1-rc1.jar:/usr/sha
re/java/xalan-2.3.1.jar
>
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/xt.jar:/usr/share/java/reposito
ry:/usr/lib/j2sdk1.3/lib/dt.jar
>
:/usr/lib/j2sdk1.3/lib:tools.jar:/usr/share/tomcat/lib/tomcat.jar:/usr/share
/java/xerces.jar:/usr/share/java/fop.jar:
>
> Is there any jar files that I am missing, or anything else I need to do to
> get stop this error?
>
> Thanks for any info etc,
>
> Daryl Moulder
>
> - When everything is not as square as it may seem.
>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Problem installing cocoon on debian

Posted by Daryl Moulder <dm...@mail.csse.monash.edu.au>.
I have this error in the log file

java.lang.NoClassDefFoundError:

javax/xml/transform/TransformerConfigurationException
        at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.createLogicsheet(AbstractMarkupLanguage.java:169)
        at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.configure(AbstractMarkupLanguage.java:117)
        at
org.apache.avalon.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:107)
        at
org.apache.avalon.component.DefaultComponentHandler.get(DefaultComponentHandler.java:191)
        at
org.apache.avalon.component.DefaultComponentSelector.select(DefaultComponentSelector.java:176)
        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:166)
        at org.apache.cocoon.sitemap.Handler.run(Handler.java:190)
        at java.lang.Thread.run(Thread.java:484)


The log file also shows I have the following classes in my classpath:
lasspath = /var/lib/tomcat/webapps/cocoon2/WEB-INF/classes
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/Tidy.jar:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/avalonapi.jar
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/batik-all.jar
:/usr/share/java/bsf.jar:/usr/share/java/cocoon2.jar
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/fop-0.17.0.jar:/usr/share/java/fop-0.20.3rc.jar
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/hsqldb.jar:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/jakarta-regexp-1.2.jar
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/jstyle.jar:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/junit.jar
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/logkit.jar
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/maybeupload.jar:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/rhino.jar
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/velocity-1.0.1-rc1.jar:/usr/share/java/xalan-2.3.1.jar
:/var/lib/tomcat/webapps/cocoon2/WEB-INF/lib/xt.jar:/usr/share/java/repository:/usr/lib/j2sdk1.3/lib/dt.jar
:/usr/lib/j2sdk1.3/lib:tools.jar:/usr/share/tomcat/lib/tomcat.jar:/usr/share/java/xerces.jar:/usr/share/java/fop.jar:

Is there any jar files that I am missing, or anything else I need to do to
get stop this error?

Thanks for any info etc,

Daryl Moulder

- When everything is not as square as it may seem.




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Using Cocoon Validators for Form / XML Validation

Posted by Colm O'Riordan <co...@communicraft.com>.
Hi All,

I was hoping to throw some code together to accept the values submitted
by a form and check that it is valid XML.
Is there a way of accessing the parsers in Cocoon 1.8 from within an XSP
file, and get them to return error messages to XSP code ?
I want to send the blocks of  XML data, once validated to a db rater
than to the file system.

Help much apprectiated,

Thanks,
Colm.


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: cocoon with mysql

Posted by Cédric Damioli <ce...@anyware-tech.com>.
as with other databases...
put a <datasource> tag in cocoon.xconf with your jdbc driver and url to 
your database : a mysql url is often (depends on the driver???) 
jdbc:mysql://host:3306/database

you also have to put the jar with the jdbc driver in the web/WEB-INF/lib 
and enjoy mysql-power!!!

Olivier GUCKERT wrote:

>Hello
>
>I have cocoon installed on my machine and an acces to a mysql database.
>
>Can somebody tell me how to make work together ?
>
>
>Thanks
>
>Olivier
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org>
>



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


cocoon with mysql

Posted by Olivier GUCKERT <Ol...@inria.fr>.
Hello

I have cocoon installed on my machine and an acces to a mysql database.

Can somebody tell me how to make work together ?


Thanks

Olivier

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Truble with actions 2

Posted by Matthew Langham <ml...@s-und-n.de>.
Hi Henrik,

I am not sure what exactly you are trying to do but you can use the
action-set in the pipeline as so;

            <map:act set="creon">
                <map:generate
src="f:/webserver/tomcat/webapps/cocoon/creon/search/search2.xml"
type="serverpages"/>
                <map:transform
src="f:/webserver/tomcat/webapps/cocoon/creon/search/SearchLayout.xml"/>
                <map:serialize type="html"/>
            </map:act>

And then use the "cocoon-action" in your form with a value of "LogOn" etc.
to trigger the actual Action that is called.

Hope this helps

Matthew

--
Open Source Group               sunShine - Lighting up e:Business
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  mlangham@s-und-n.de - http://www.s-und-n.de
           Weblogging at: http://www.need-a-cake.com
=================================================================


-----Original Message-----
From: Henrik Hofmann [mailto:Henrik.Hofmann@creon-it.com]
Sent: Saturday, May 18, 2002 1:35 PM
To: cocoon-users@xml.apache.org
Subject: Truble with actions 2


I can't use action sets and don't know why.


  <map:actions>
      <map:action name="LogOff"
src="com.creon.webapp.Cocoon.Actions.LogOffWebUser"/>
       <map:action name="LogOn"
src="com.creon.webapp.Cocoon.Actions.LogOnAction"/>
       <map:action name="CheckLogon"
src="com.creon.webapp.Cocoon.Actions.CheckLogonAction"/>
       <map:action name="SessionCreator"
src="com.creon.webapp.Cocoon.Actions.SessionCreator"/>
  </map:actions>


   <map:action-sets>
    <map:action-set name="creon">
     <map:act type="LogOn" action="LogOn"/>
     <map:act type="LogOff" action="LogOff"/>
    </map:action-set>
   </map:action-sets>


This is how i want to use them

    <map:match pattern="search.html">

          <map:act set="creon">
            <map:act type="CheckLogon">
                <map:generate
src="f:/webserver/tomcat/webapps/cocoon/creon/search/search2.xml"
type="serverpages"/>
                <map:transform
src="f:/webserver/tomcat/webapps/cocoon/creon/search/SearchLayout.xml"/>
                <map:serialize type="html"/>
               </map:act>
            </map:act>
    </map:match>


But it always gives me this error message and i don't know what to do.


org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 640, column 34:  Method
action_set_creon(org.apache.cocoon.sitemap.SitemapRedirector,
java.lang.String, java.util.List, org.apache.cocoon.environment.Environment,
java.util.Map, java.lang.String,
org.apache.avalon.framework.parameters.Parameters) not found in class
org.apache.cocoon.www.creon.sitemap_xmap.
Line 0, column 0:
Note:
F:\Webserver\tomcat\work\localhost_8080%2Fcocoon\cocoon-files\org\apache\coc
oon\www\creon\sitemap_xmap.java uses or overrides a deprecated API.
Recompile with "-deprecation" for details.
1 error, 1 warning





    </map:match>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>