Debugging Modular Database Actions...

2004-02-18 Thread Derek Hohls
I am struggling to get a simple database "add" performed
when using the  Modular Database Action (and, no, I do
not want to do this in flow or some other way ;-).  The log
files do not show any errors - the database connection works
OK for retrieving data (and I have checked the field names 
and types and so on...).

Any ideas on what to test or look for to get this working?

Thanks
Derek

*

The sitemap entry looks like:

 
   

   
  
 

  
 


   
   

 
 

 

 


The db-metadata.xml file is located in the 'root' directory ("myapp"
folder):



abc


  

  
  
 
  



  




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


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



woody and xsp / esql tags for default values

2004-02-18 Thread Anthony Hervé
Hello,

Please find hereafter a quick description of my environment :

- xReporter v121
- Cocoon v213
- Phoenix v404
- Tomcat v4124
- Java v14 SDK (IBM)
- Postgresql v732
I am using Woody to build forms and I would like to retrieve information 
from my database to populate default field values.
In the documentation, the form_definition file is an xml document 
containing links to other xml files in which simple default values can 
be retrieved. In the example below, the values displayed in the 
selection list are retrieved from the a-choices xml document.

  
 Select something that's 4 characters long:
 
 
   
 
 
   
Is it possible to create the form_definition file as a xsp document to 
be able to include in it esql tags ?
Where could I find an example of such a case ?

Thanks.

Best regards. 

--
Anthony Hervé
Expertise Freelance
[EMAIL PROTECTED]
Tél 0145225169
Fax 0142940959


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


IFRAME behaviour

2004-02-18 Thread beyaNet Consultancy
Hi,
I have a page structure that works on the following principal:



menu items go here





In the iframe a document is loaded which makes image calls like so:

 which should match a map in my sitemap defined as:

			



			


For hours I could not get any images to load until I referenced the image calls as . My question is, as every document loaded in a cocoon environment has to pass through the sitemap before it does anything, why doesn't  work?

many thanks in advance

[Hands-Up] Cocoon in IBM Websphere?

2004-02-18 Thread Matthew Langham
Hi,

just a quick "hands-up" - is anyone currently running Cocoon in IBM 
Websphere? If so which version of Cocoon and IBM Websphere are you 
using? Are there any Websphere specific problems with Cocoon atm?

We don't have a Websphere installation but we have a customer asking :)

Thanks

Matthew

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


Re: [Hands-Up] Cocoon in IBM Websphere?

2004-02-18 Thread Alexandre Victoor
Hi,
We are using cocoon 2.0.4 and cocoon 2.1.3 on websphere 5.0 . Right now, we 
have troubles running cocoon on the newest version of websphere (I heard 
WAS 5.1 but I am not sure ).
Hope it helps

Alex

At 11:14 18/02/2004 +0100, you wrote:
Hi,

just a quick "hands-up" - is anyone currently running Cocoon in IBM 
Websphere? If so which version of Cocoon and IBM Websphere are you using? 
Are there any Websphere specific problems with Cocoon atm?

We don't have a Websphere installation but we have a customer asking :)

Thanks

Matthew

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


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


Antwort: [Hands-Up] Cocoon in IBM Websphere?

2004-02-18 Thread manfred . weigel


Hi Matthew!

We are using WAS 4.03 and WAS 5.0 (5.1)
Cocoon Versions: 2.0.4, 2.1 and 2.1.3

We had a lot of troubles (especially with redirects).
The WebSphere Software is very different inside versions depending on the
OS where your WAS is running.
e.g. WAS on zOS (Host) is in real not compareable to the corresponding AIX
or Linux Version.

WAS is shipped with different XALAN Versions (some XALANS inside WAS would
return as the vendor Lotus Corp or IBM Foundation)
Be aware of using these XSL prcessors! (very slow)

WAS is shipped with its own rhino implementation --> Flow wont work on WAS
with default settings.

It also depends on your installation and configuration of WAS.
e.g
running more then one cocoon apps in one instanceis really hard work
because of classloader problems. on the other hand configuring
a new was instance for each Cocoon app need a lot of memory.

Give me a call if you have some detailed questions!

regards from vienna

Manfred








[EMAIL PROTECTED] am 18.02.2004 11:14:32

Bitte antworten an [EMAIL PROTECTED]@inet

An:  [EMAIL PROTECTED]
Kopie:
Thema:   [Hands-Up] Cocoon in IBM Websphere?

Hi,

just a quick "hands-up" - is anyone currently running Cocoon in IBM
Websphere? If so which version of Cocoon and IBM Websphere are you
using? Are there any Websphere specific problems with Cocoon atm?

We don't have a Websphere installation but we have a customer asking :)

Thanks

Matthew


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









This message and any attachment ("the Message") are confidential. If you
have received the Message in error, please notify the sender immediately
and delete the Message from your system , any use of the Message is
forbidden.
Correspondence via e-mail is primarily for information purposes. RZB
neither makes nor accepts legally binding statements unless otherwise
agreed to the contrary.



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



Re: IFRAME behaviour

2004-02-18 Thread Antonio Gallardo
Hi:

I think you can see at the protal engine instead of using IFRAMES.

Best Regards,

Antonio Gallardo

beyaNet Consultancy dijo:
> Hi,
> I have a page structure that works on the following principal:
>
> 
>   
>   menu items go here
>
>   
>   
> 
>
> In the iframe a document is loaded which makes image calls like so:
>
>  which should match a map in my sitemap
> defined as:
>
>   
>
>   
>
>   
>   
>
> For hours I could not get any images to load until I referenced the
> image calls as . My question is,
> as every document loaded in a cocoon environment has to pass through
> the sitemap before it does anything, why doesn't  src="frame/myname.jpg" /> work?
>
> many thanks in advance


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



woody, flow and database confusion

2004-02-18 Thread Bert Van Kets
I have been trying for several days to get grips on the "super trio" Woody,
Flow and OJB/JDO. I don't have any succes yet, but that is mainly to the
complexity of getting OJB/JDO to run. Could someone please shed a light on
this to get me going again?

I have created a bean to store all form data. The Woody form and the
FlowScipt have been created too. I have used the obj/woody sample as a
template to get things running. That's the easy part (relatively speaking).
I'm using mySQL as a databasource and have a datasource configured in
cocoon.xconf. This datasource is used in XSP pages using ESQL without any
problem, so that works for sure.
My biggest confusion is where I need to configure the link from the bean
datastore to the database. Where do I configure OJB and JDO?
I have OJB.properties, package.jdo, repository.dtd and repository.xml in the
WEB-INF/classes directory. I see a total overlap in the configuration in the
package.jdo and repository.xml file. Why is that? Is either of them not
needed?

I have created a DAO class file too. This is a direct copy of the
Employee_DAO class file from the samples. I only replaced the package and
replaced the bean methods with the ones from my bean. All this compiles
without any problem. The bean and the DAO class are packaged in a jar file
and put in the WEB-INF lib directory. I assume this is where I will
eventually create queries using OJB code to fill the bean with data. Am I
correct?

Thanks a lot for any help,
Bert



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



Re: woody, flow and database confusion

2004-02-18 Thread Derek Hohls
Bert

It sounds like you have managed quite a bit of learning here;
I have been thinking about going this route in the future but
have not yet convinced myself that all this complexity is worth
some (possible?) benefit.  Is there any possibility you could
start writing up an "idiots guide" on the wiki - you may not think
you know much but you do know a lot more than many others!

Thanks
Derek

>>> [EMAIL PROTECTED] 2004/02/18 01:15:29 PM >>>
I have been trying for several days to get grips on the "super trio"
Woody,
Flow and OJB/JDO. I don't have any succes yet, but that is mainly to
the
complexity of getting OJB/JDO to run. Could someone please shed a light
on
this to get me going again?

I have created a bean to store all form data. The Woody form and the
FlowScipt have been created too. I have used the obj/woody sample as a
template to get things running. That's the easy part (relatively
speaking).
I'm using mySQL as a databasource and have a datasource configured in
cocoon.xconf. This datasource is used in XSP pages using ESQL without
any
problem, so that works for sure.
My biggest confusion is where I need to configure the link from the
bean
datastore to the database. Where do I configure OJB and JDO?
I have OJB.properties, package.jdo, repository.dtd and repository.xml
in the
WEB-INF/classes directory. I see a total overlap in the configuration
in the
package.jdo and repository.xml file. Why is that? Is either of them
not
needed?

I have created a DAO class file too. This is a direct copy of the
Employee_DAO class file from the samples. I only replaced the package
and
replaced the bean methods with the ones from my bean. All this
compiles
without any problem. The bean and the DAO class are packaged in a jar
file
and put in the WEB-INF lib directory. I assume this is where I will
eventually create queries using OJB code to fill the bean with data. Am
I
correct?

Thanks a lot for any help,
Bert



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


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


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



Woody in combination with dynamic queries

2004-02-18 Thread robby . pelssers
Hi all,

I have build several xsp:pages which contain forms holding textboxes and
dropdownboxes. The dropdownboxes are filled with values from a query.  

I will explain my problem with a real life example.  The form offers a way
to search/filter for, let's say, trouble tickets.  A trouble ticket is of a
certain type (incident, change or problem). It also has a severitycode (low,
middle, heavy) and it has a description for example.   

Suppose I have a form with two dropdownboxes (ddb) and one textbox (tb)

*ddbType has following options : (SELECT DISTINCT TYPE FROM TROUBLES)
 -- any type
 incident
 change
 problem
*ddbSeverityCode has following options:  (SELECT DISTINCT SEVERITYCODE FROM
TROUBLES)
-- any severity code
low
middle
heavy
*tbDescription (is empty)

Now i want depending of the userinput to run following query :

 String MyDynamicQuery = "SELECT TROUBLEID FROM TROUBLES  "
 
  + " WHERE "
  
 TYPE = ?
  
  
 SEVERITYCODE = ?
  
  
 DESCRIPTION LIKE %?%

 


Is it possible to use woody and to use some binding mechanism to set the
parametrized WHERE statements in a clever way?  Anyone working on something
similar?
 

Robby Pelssers


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



JXPathMetaModule configuration and sample use for function, package

2004-02-18 Thread Roman Hrivik

Hi

Does anyone uses JXPathMetaModule with function or package parameter ?

I have this in my cocoon.xconf :



   




I tried to use this module in sitemap like this






but nothing was working
it seems that this module is always looking in 'request-attr' module
what is wrong ?
can anybody point me to right direction ?


there is my logs:
DEBUG   (2004-02-18) 12:30.20:515   [core.modules.input.utils]
(Unknown-URI) Unknown-thread/JXPathMetaModule: adding Package
my.own.package to functions
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/JXPathMetaModule: modeConf is null
this.inputConf is
[EMAIL PROTECTED]
mConf is null this.input is
[EMAIL PROTECTED]
this.defaultInput is request-attr inputName is null parameter is 
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/AbstractMetaModule: MetaModule performing op
GET_VALUE on statically assigned module 'request-attr', using config
null
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/AbstractMetaModule: using request-attr as
[EMAIL PROTECTED]
for 0 () and
[EMAIL PROTECTED]
gives null
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/JXPathMetaModule: returning an null as null
















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



How to use i18n inside of a user defined action?

2004-02-18 Thread ToyToy
Hi,

I'm using i18n inside a xsl to translate the options of a html selector
(combo-box). The individual options are generated by a user-defined cocoon action
(in java) as i18n keys. The same action also processes the client response.
Unfortunatly the parameter with the user selected item now contains the
translated text, so I can't compare it with my i18n keys.

Is there a way to call the cocoon i18n transformator from inside of cocoon
action method? Or do you know any other solution for my problem?

thanks
ToyToy

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++


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



Re: woody, flow and database confusion

2004-02-18 Thread Bert Van Kets
I was planning on doing this for sure, but I must get it running first with
the bare minimum. The ojb/woody sample suffers from over-sampling. Different
technologies are merged into one sample block which is very confusing if you
dont' have a clue yet on how to use it. More over the OJB/JDO technology
requirs you to do things in three different places. Not easy at all.

- Original Message - 
From: "Derek Hohls" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 18, 2004 12:23 PM
Subject: Re: woody, flow and database confusion


> Bert
>
> It sounds like you have managed quite a bit of learning here;
> I have been thinking about going this route in the future but
> have not yet convinced myself that all this complexity is worth
> some (possible?) benefit.  Is there any possibility you could
> start writing up an "idiots guide" on the wiki - you may not think
> you know much but you do know a lot more than many others!
>
> Thanks
> Derek
>
> >>> [EMAIL PROTECTED] 2004/02/18 01:15:29 PM >>>
> I have been trying for several days to get grips on the "super trio"
> Woody,
> Flow and OJB/JDO. I don't have any succes yet, but that is mainly to
> the
> complexity of getting OJB/JDO to run. Could someone please shed a light
> on
> this to get me going again?
>
> I have created a bean to store all form data. The Woody form and the
> FlowScipt have been created too. I have used the obj/woody sample as a
> template to get things running. That's the easy part (relatively
> speaking).
> I'm using mySQL as a databasource and have a datasource configured in
> cocoon.xconf. This datasource is used in XSP pages using ESQL without
> any
> problem, so that works for sure.
> My biggest confusion is where I need to configure the link from the
> bean
> datastore to the database. Where do I configure OJB and JDO?
> I have OJB.properties, package.jdo, repository.dtd and repository.xml
> in the
> WEB-INF/classes directory. I see a total overlap in the configuration
> in the
> package.jdo and repository.xml file. Why is that? Is either of them
> not
> needed?
>
> I have created a DAO class file too. This is a direct copy of the
> Employee_DAO class file from the samples. I only replaced the package
> and
> replaced the bean methods with the ones from my bean. All this
> compiles
> without any problem. The bean and the DAO class are packaged in a jar
> file
> and put in the WEB-INF lib directory. I assume this is where I will
> eventually create queries using OJB code to fill the bean with data. Am
> I
> correct?
>
> Thanks a lot for any help,
> Bert
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> MailScanner thanks transtec Computers for their support.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



ASTIdentifier Error

2004-02-18 Thread Peter Velychko
Hello Cocoon Users,

Could anyone point me out what haapens in my application?
I use the following environment:
- cocoon 2.1.3
- tomcat 4.1.18
- jdk 1.4.2

My view pages are generated without any problem but in tomcat console
I have the following messages for each request.

ASTIdentifier : TypeError: [EMAIL PROTECTED]:
NOT_FOUND is not a function.
(file:/F:/projects/tomcat_4/bin/../webapps/appname/flow/flow.js; line 167)
TypeError: [EMAIL PROTECTED]: NOT_FOUND is not a function.
 (file:/F:/projects/monastyr/tools/tomcat_4/bin/../webapps/monastyr/flow/flow.js
; line 167)
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:
581)
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:
541)
at org.mozilla.javascript.NativeGlobal.typeError1(NativeGlobal.java:551)

at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1234)
at org.apache.cocoon.generation.JXTemplateGenerator$JSIntrospector$JSMet
hod.invoke(JXTemplateGenerator.java:471)
at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:56)
at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java
:106)
at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:8
8)
at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:1
20)
...

Thank you in advance.

-- 
Best regards,
Peter Velychko 
[EMAIL PROTECTED]


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



Link Hosting: Professional online services hosting, supports Tomcat 5 and Cocoon 2

2004-02-18 Thread Michel RESNIC






EWAY Telecom
www.eway.fr
 
Thank's a lot!









Link Livesites: Cocoon 2.1

2004-02-18 Thread Peter Velychko
Hi,

I'd like to suggest you the link the site powered with cocoon 2.1.3.
title:   Olympic Plaza
description: The site of the first megamall in Kiev and Ukraine
URL: http://www.olympic-plaza.com.ua/


Best regards,
Peter Velychko 
[EMAIL PROTECTED]


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



Re: IFRAME behavior

2004-02-18 Thread DAYD3
Hi,

What's happening is that your pattern is not doing what it looks like. 
While the src attribute is the same as the pattern ("frame/*.jpg"), it 
won't match because your src attribute actually expands out to 
blah/blah/frame/myname.jpg.  In order to get it to match, you'll need to 
change your pattern to "**frame/*.jpg".  That will match any URL within 
your context that has 'frame' in the path and is asking for a jpg file. 
Your adjusted sitemap should be:





  


Note the {1} has also been changed to {2}.

BTW, this really has nothing to do with the IFRAME itself.

HTH!

Thanks!
David Day




beyaNet Consultancy <[EMAIL PROTECTED]>




02/18/2004 04:24 AM
Please respond to users

 
T
To: [EMAIL PROTECTED]
cc: 

bcc: 
Subject:IFRAME behaviour


Hi,
I have a page structure that works on the following principal:


 
 menu items go here

 
 


In the iframe a document is loaded which makes image calls like so:

 which should match a map in my sitemap 
defined as:

 
  
 
  
   
 

For hours I could not get any images to load until I referenced the 
image calls as . My question is, 
as every document loaded in a cocoon environment has to pass through 
the sitemap before it does anything, why doesn't  work?

many thanks in advance



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



problem using cocoon

2004-02-18 Thread reza x
hi all
I am using cocoon framework.i have put sitemap.xmap and cocoon.xconf in correct place.but when I call for example http://localhost:8080/web/page.html and cocoonServlet goes to be initialized, i get some errors and exception that are given below:
 
Loading catalog: /path/to/local/catalogserver.properties not found, using command line or default propertiesOpening database: D:\Documents and Settings\Administrator\jbproject\test_cocoon\web\WEB-INF\db\cocoondbHSQLDB server 1.7.1 is runningUse SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptlyjava.lang.NullPointerExceptionjava.lang.NullPointerException at com.hp.hpl.deli.Workspace.getResource(Workspace.java:474) at com.hp.hpl.deli.Workspace.getInputSource(Workspace.java:439) at com.hp.hpl.deli.Workspace$1$CreateWorkspace.(Workspace.java:181) at com.hp.hpl.deli.Workspace.configure(Workspace.java:367) at org.apache.cocoon.components.deli.DeliImpl.initialize(DeliImpl.java:148) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at
 org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:323) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:554) at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:530) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:327) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1372) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:507) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668) at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:534)
 
please guide me what may be the reason of this error.
thanks alot for your attention.
Best Regards.
 
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

Re: IFRAME behavior

2004-02-18 Thread beyaNet Consultancy
David,
thanks very much for that advice.
cheers

Andrew
On 18 Feb 2004, at 14:09, [EMAIL PROTECTED] wrote:
Hi,

What's happening is that your pattern is not doing what it looks like.
While the src attribute is the same as the pattern ("frame/*.jpg"), it
won't match because your src attribute actually expands out to
blah/blah/frame/myname.jpg.  In order to get it to match, you'll need 
to
change your pattern to "**frame/*.jpg".  That will match any URL within
your context that has 'frame' in the path and is asking for a jpg file.
Your adjusted sitemap should be:







Note the {1} has also been changed to {2}.

BTW, this really has nothing to do with the IFRAME itself.

HTH!

Thanks!
David Day


beyaNet Consultancy <[EMAIL PROTECTED]>



02/18/2004 04:24 AM
Please respond to users
T
To: [EMAIL PROTECTED]
cc:
bcc:
Subject:IFRAME behaviour
Hi,
I have a page structure that works on the following principal:

 
 menu items go here
 
 

In the iframe a document is loaded which makes image calls like so:

 which should match a map in my sitemap
defined as:
 
  
 
  
 
 
For hours I could not get any images to load until I referenced the
image calls as . My question is,
as every document loaded in a cocoon environment has to pass through
the sitemap before it does anything, why doesn't  work?
many thanks in advance



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


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


Re: problem using cocoon

2004-02-18 Thread Jorg Heymans
disable the deli block , rebuild, try again :)

you can disable a block by
a) copy blocks.properties to local.blocks.properties
b) comment out the blocks you don't need in local.blocks.properties
Jorg

reza x wrote:

hi all
I am using cocoon framework.i have put sitemap.xmap and cocoon.xconf in 
correct place.but when I call for example 
http://localhost:8080/web/page.html and cocoonServlet goes to be 
initialized, i get some errors and exception that are given below:
 
Loading catalog: /path/to/local/catalog
server.properties not found, using command line or default properties
Opening database: D:\Documents and 
Settings\Administrator\jbproject\test_cocoon\web\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
java.lang.NullPointerException
java.lang.NullPointerException
 at com.hp.hpl.deli.Workspace.getResource(Workspace.java:474)
 at com.hp.hpl.deli.Workspace.getInputSource(Workspace.java:439)
 at com.hp.hpl.deli.Workspace$1$CreateWorkspace.(Workspace.java:181)
 at com.hp.hpl.deli.Workspace.configure(Workspace.java:367)
 at org.apache.cocoon.components.deli.DeliImpl.initialize(DeliImpl.java:148)
 at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
 at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:323)
 at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:141)
 at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:554)
 at 
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:530)
 at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
 at org.apache.cocoon.Cocoon.initialize(Cocoon.java:327)
 at 
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1372)
 at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:507)
 at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
  at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
 at org.apache.catalina.core.StandardHostV 
alve.invoke(StandardHostValve.java:180)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(St 
andardPipeline.java:643)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
 at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
 at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
 at java.lang.Thread.run(Thread.java:534)
 
please guide me what may be the reason of this error.
thanks alot for your attention.
Best Regards.
 


Do you Yahoo!?
Yahoo! Mail SpamGuard 
 
- Read only the mail you want.


-
To unsubscribe, e-mail: 

how to get the ojb-woody example work

2004-02-18 Thread Johnson
Hi!

ether jdo1.0 nor jdo1.01 can work,cocoon throw the same error below

"file:/jakarta-tomcat-5.0.18/webapps/cocoon/samples/ojb/woody/employee.js",
line 15: uncaught JavaScript exception: at employeeform_jdo
(file:/jakarta-tomcat-5.0.18/webapps/cocoon/samples/ojb/woody/employee.js,
Line 15): javax.jdo.JDOUserException: Given object is not a valid OID.
FailedObject:org.apache.cocoon.ojb.samples.bean.Employee{1}
NestedThrowables: javax.jdo.JDOFatalUserException: No metadata has been
registered for class org.apache.cocoon.ojb.samples.bean.Employee.

I see some point that is jdo and ojb version problem.
pls tell me how to solve it!

Best Regards

Johnson Hsu



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



RE: Link Livesites: Cocoon 2.1

2004-02-18 Thread Brent L Johnson
Is it just me or is everyone else getting a 403 Forbidden error
when attempting to view this site?

- Brent

> -Original Message-
> From: Peter Velychko [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 18, 2004 8:09 AM
> To: [EMAIL PROTECTED]
> Subject: Link Livesites: Cocoon 2.1
> 
> 
> Hi,
> 
> I'd like to suggest you the link the site powered with cocoon 2.1.3.
> title:   Olympic Plaza
> description: The site of the first megamall in Kiev and Ukraine
> URL: http://www.olympic-plaza.com.ua/
> 
> 
> Best regards,
> Peter Velychko 
> [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 


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



RE: JXPathMetaModule configuration and sample use for function, package

2004-02-18 Thread Carmona Perez, David
Why don't you consult the jxpath web page? http://jakarta.apache.org/commons/jxpath/ 
I have used under Cocoon 2.0.4 custom functions without problems, but don't remember 
the details.


David

-Mensaje original-
De: Roman Hrivik [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 18 de febrero de 2004 12:41
Para: [EMAIL PROTECTED]
Asunto: JXPathMetaModule configuration and sample use for function, package


Hi

Does anyone uses JXPathMetaModule with function or package parameter ?

I have this in my cocoon.xconf :



   




I tried to use this module in sitemap like this






but nothing was working
it seems that this module is always looking in 'request-attr' module
what is wrong ?
can anybody point me to right direction ?


there is my logs:
DEBUG   (2004-02-18) 12:30.20:515   [core.modules.input.utils]
(Unknown-URI) Unknown-thread/JXPathMetaModule: adding Package
my.own.package to functions
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/JXPathMetaModule: modeConf is null
this.inputConf is
[EMAIL PROTECTED]
mConf is null this.input is
[EMAIL PROTECTED]
this.defaultInput is request-attr inputName is null parameter is
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/AbstractMetaModule: MetaModule performing op
GET_VALUE on statically assigned module 'request-attr', using config
null
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/AbstractMetaModule: using request-attr as
[EMAIL PROTECTED]
for 0 () and
[EMAIL PROTECTED]
gives null
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/JXPathMetaModule: returning an null as null
















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

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



Re: Link Livesites: Cocoon 2.1

2004-02-18 Thread rufio
on Wed, 18 Feb 2004 15:08:50 +0200 Peter Velychko <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I'd like to suggest you the link the site powered with cocoon 2.1.3.
> title:   Olympic Plaza
> description: The site of the first megamall in Kiev and Ukraine
> URL: http://www.olympic-plaza.com.ua/

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to
complete your request.
...

Regards, Rufio
-- 
010 > XMMS now playing PGP: 0x97EB7818
001 > Scianka  S/N: 0x052D
111 >---

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



java.lang.IllegalArgumentException: The prefix 'xml' is reserved

2004-02-18 Thread Dan Alford
Hi,
  I am trying to upgrade from cocoon 2.0.x to 2.1.4.I am building  
cocoon 2.1.4 on windows 2000 with jdk 1.4.2_02.

I can successfully build, but when I try to deploy to tomcat I get the 
following error on startup. I have tried this with tomcat 4.1.29 and 
Tomcat 5.0.9.

HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Wed Feb 18 08:44:11 CST 2004 Listening for connections ...
java.lang.IllegalArgumentException: The prefix 'xml' is reserved (XML 
1.0 Specif
ication) and cannot be declared.
   at 
org.exolab.castor.xml.Namespaces.addNamespace(Namespaces.java:130)
   at 
org.exolab.castor.xml.UnmarshalHandler.startPrefixMapping(UnmarshalHa
ndler.java:1953)
   at 
org.apache.xerces.parsers.AbstractSAXParser.startNamespaceMapping(Unk
nown Source)
   at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
ce)
   at 
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Sourc
e)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(Unknown Source)
   at 
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR
ootElementHook(Unknown Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at 
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:583)
   at 
org.exolab.castor.mapping.Mapping.loadMappingInternal(Mapping.java:51
5)
   at org.exolab.castor.mapping.Mapping.loadMapping(Mapping.java:441)
   at 
org.apache.cocoon.portal.pluto.om.PortletDefinitionRegistryImpl.initi
alize(PortletDefinitionRegistryImpl.java:165)
   at 
org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:282)
   at 
org.apache.cocoon.portal.pluto.PortletContainerEnvironmentImpl.init(P
ortletContainerEnvironmentImpl.java:137)
   at 
org.apache.cocoon.portal.pluto.PortletContainerEnvironmentImpl.initia
lize(PortletContainerEnvironmentImpl.java:116)
   at 
org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:282)
   at 
org.apache.cocoon.portal.impl.PortletPortalManager.initContainer(Port
letPortalManager.java:206)
   at 
org.apache.cocoon.portal.impl.PortletPortalManager.initialize(Portlet
PortalManager.java:173)
   at 
org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:282)
   at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInst
ance(DefaultComponentFactory.java:313)
   at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.init
ialize(ThreadSafeComponentHandler.java:143)
   at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initi
alize(ExcaliburComponentManager.java:558)
   at 
org.apache.cocoon.components.CocoonComponentManager.initialize(Cocoon
ComponentManager.java:547)
   at 
org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:282)
   at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
   at 
org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:282)
   at 
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.ja
va:1371)
   at 
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:514)
   at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1044)
   at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:88
7)
   at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3787)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4
075)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:868)
   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:85
2)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:614)

   at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:319)
   at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:835)
   at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:729)
   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:479
)
   at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:399)
   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
   at 
org.apache.catalin

Re: Debugging Modular Database Actions...

2004-02-18 Thread Christian Haul
Derek Hohls wrote:
I am struggling to get a simple database "add" performed
when using the  Modular Database Action (and, no, I do
not want to do this in flow or some other way ;-).  The log
files do not show any errors - the database connection works
OK for retrieving data (and I have checked the field names 
and types and so on...).

Any ideas on what to test or look for to get this working?
The actions quite verbosely log to the sitemap.log
If nothing appears, maybe the path to the metadata is not correct.
Anyway, it has to be something during the startup of the action.
Look for source resolver errors.
	Chris.

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


Re: java.lang.IllegalArgumentException: The prefix 'xml' is reserved

2004-02-18 Thread Dan Alford
Doh @ me.

I found an older castor jar lurking in my jre/lib/ext directory. I 
removed it and solved the problem.

Dan

Dan Alford wrote:

Hi,
  I am trying to upgrade from cocoon 2.0.x to 2.1.4.I am building  
cocoon 2.1.4 on windows 2000 with jdk 1.4.2_02.

I can successfully build, but when I try to deploy to tomcat I get the 
following error on startup. I have tried this with tomcat 4.1.29 and 
Tomcat 5.0.9.

HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Wed Feb 18 08:44:11 CST 2004 Listening for connections ...
java.lang.IllegalArgumentException: The prefix 'xml' is reserved (XML 
1.0 Specif
ication) and cannot be declared.
   at 
org.exolab.castor.xml.Namespaces.addNamespace(Namespaces.java:130)
   at 
org.exolab.castor.xml.UnmarshalHandler.startPrefixMapping(UnmarshalHa
ndler.java:1953)
   at 
org.apache.xerces.parsers.AbstractSAXParser.startNamespaceMapping(Unk
nown Source)
   at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
ce)
   at 
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Sourc
e)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(Unknown Source)
   at 
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR
ootElementHook(Unknown Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source)
   at 
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:583)
   at 
org.exolab.castor.mapping.Mapping.loadMappingInternal(Mapping.java:51
5)
   at org.exolab.castor.mapping.Mapping.loadMapping(Mapping.java:441)
   at 
org.apache.cocoon.portal.pluto.om.PortletDefinitionRegistryImpl.initi
alize(PortletDefinitionRegistryImpl.java:165)
   at 
org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:282)
   at 
org.apache.cocoon.portal.pluto.PortletContainerEnvironmentImpl.init(P
ortletContainerEnvironmentImpl.java:137)
   at 
org.apache.cocoon.portal.pluto.PortletContainerEnvironmentImpl.initia
lize(PortletContainerEnvironmentImpl.java:116)
   at 
org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:282)
   at 
org.apache.cocoon.portal.impl.PortletPortalManager.initContainer(Port
letPortalManager.java:206)
   at 
org.apache.cocoon.portal.impl.PortletPortalManager.initialize(Portlet
PortalManager.java:173)
   at 
org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:282)
   at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInst
ance(DefaultComponentFactory.java:313)
   at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.init
ialize(ThreadSafeComponentHandler.java:143)
   at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initi
alize(ExcaliburComponentManager.java:558)
   at 
org.apache.cocoon.components.CocoonComponentManager.initialize(Cocoon
ComponentManager.java:547)
   at 
org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:282)
   at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340)
   at 
org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:282)
   at 
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.ja
va:1371)
   at 
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:514)
   at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1044)
   at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:88
7)
   at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3787)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4
075)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:868)
   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:85
2)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:614)

   at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:319)
   at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:835)
   at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:729)
   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:479
)
   at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.

Re: JXPathMetaModule configuration and sample use for function, package

2004-02-18 Thread Christian Haul
Roman Hrivik wrote:

Hi

Does anyone uses JXPathMetaModule with function or package parameter ?

I have this in my cocoon.xconf :


   



I tried to use this module in sitemap like this





but nothing was working
it seems that this module is always looking in 'request-attr' module
what is wrong ?
can anybody point me to right direction ?
Pls see javadocs for module. A meta module works on the output of
another module which you haven't specified in your declaration. Thus the 
default, "request-attr" is used.
You cannot nest modules in your sitemap. See InputModuleAction javadocs
for a possible solution.

	Chris.



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


RE: JXPathMetaModule configuration and sample use for function, package

2004-02-18 Thread Roman Hrivik

JXPathMetaModule is a input module of cocoon
It is something wrong there.
I run on 2.1.3 and JXPathMetaModule.java in last version v 1.4
2003/05/21

And the samples from wiki don’t work at all.

Roman



-Original Message-
From: Carmona Perez, David [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 18, 2004 3:52 PM
To: [EMAIL PROTECTED]
Subject: RE: JXPathMetaModule configuration and sample use for function,
package

Why don't you consult the jxpath web page?
http://jakarta.apache.org/commons/jxpath/ 
I have used under Cocoon 2.0.4 custom functions without problems, but
don't remember the details.


David

-Mensaje original-
De: Roman Hrivik [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 18 de febrero de 2004 12:41
Para: [EMAIL PROTECTED]
Asunto: JXPathMetaModule configuration and sample use for function,
package


Hi

Does anyone uses JXPathMetaModule with function or package parameter ?

I have this in my cocoon.xconf :



   




I tried to use this module in sitemap like this






but nothing was working
it seems that this module is always looking in 'request-attr' module
what is wrong ?
can anybody point me to right direction ?


there is my logs:
DEBUG   (2004-02-18) 12:30.20:515   [core.modules.input.utils]
(Unknown-URI) Unknown-thread/JXPathMetaModule: adding Package
my.own.package to functions
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/JXPathMetaModule: modeConf is null
this.inputConf is
[EMAIL PROTECTED]
mConf is null this.input is
[EMAIL PROTECTED]
this.defaultInput is request-attr inputName is null parameter is
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/AbstractMetaModule: MetaModule performing op
GET_VALUE on statically assigned module 'request-attr', using config
null
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/AbstractMetaModule: using request-attr as
[EMAIL PROTECTED]
for 0 () and
[EMAIL PROTECTED]
gives null
DEBUG   (2004-02-18) 12:30.37:828   [core.modules.input.utils]
(/core/app/console/organisationList.ccn)
HttpRequestHandler-22831804/JXPathMetaModule: returning an null as null
















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

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




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



RE: XML Europe 2004

2004-02-18 Thread Arje Cahn
I went there last year and, although it was interesting, it's pretty pricey for what 
they're offering.
Anyway, Ivo, if you're in the neighbourhood, come drink a beer at Gambrinus :)

Arje

> -Original Message-
> From: Ivo Limmen [mailto:[EMAIL PROTECTED]
> Posted At: Tuesday, February 17, 2004 9:44 AM
> Posted To: Cocoon User List
> Conversation: XML Europe 2004
> Subject: Re: XML Europe 2004
> 
> 
> Hi,
> 
> I have been there a few years ago. I was not really 
> interesting. A few 
> companies that are trying to sell some XML based products. It 
> is small a 
> scale conference.
> 
> If you have a better experience, let me know.
> 
> Arje Cahn wrote:
> 
> > Hi, 
> > 
> > Is anyone on the userslist attending the XML Europe 2004? 
> > 
> > Kind regards,
> > 
> > Arjé Cahn
> > 
> > Hippo Webworks
> > Grasweg 35
> > 1031 HW Amsterdam
> > The Netherlands
> > Tel  +31 (0)20 6345173 
> > Fax +31 (0)20 6345179
> > -
> > [EMAIL PROTECTED] / www.hippo.nl
> > --
> > 
> > 
> > 
> >  
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -- 
> Ivo Limmen
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



RE: JXPathMetaModule configuration and sample use for function, package

2004-02-18 Thread Roman Hrivik

OK I put chain module to cocoon.xconf










in chain module is always string attribute "dn" ()

  
  
  
  


so how can I access to length of the string in dn attribute ?
the example str:length(dn) do not work

Roman






-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 18, 2004 4:02 PM
To: [EMAIL PROTECTED]
Subject: Re: JXPathMetaModule configuration and sample use for function,
package

Roman Hrivik wrote:

> Hi
> 
> Does anyone uses JXPathMetaModule with function or package parameter ?
> 
> I have this in my cocoon.xconf :
>   
> class="org.apache.cocoon.components.modules.input.JXPathMetaModule" 
>logger="core.modules.input.utils" name="utils">
> 
> 
>
> 
> 
> 
> 
> I tried to use this module in sitemap like this
> 
value="{utils:ldaputil.DNHelper.getFirstEntry({chain:dn})}"> ter>
> 
> 
> 
> 
> 
> but nothing was working
> it seems that this module is always looking in 'request-attr' module
> what is wrong ?
> can anybody point me to right direction ?

Pls see javadocs for module. A meta module works on the output of
another module which you haven't specified in your declaration. Thus the

default, "request-attr" is used.
You cannot nest modules in your sitemap. See InputModuleAction javadocs
for a possible solution.

Chris.



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




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



Re: Link Livesites: Cocoon 2.1

2004-02-18 Thread Peter Velychko

My sincere apologies for incorrect work of our server.
It is occured sometimes because of technical causes and it will be
eliminated to tommorow morning (at Kyiv time).

r> on Wed, 18 Feb 2004 15:08:50 +0200 Peter Velychko <[EMAIL PROTECTED]> wrote:

>> Hi,
>> 
>> I'd like to suggest you the link the site powered with cocoon 2.1.3.
>> title:   Olympic Plaza
>> description: The site of the first megamall in Kiev and Ukraine
>> URL: http://www.olympic-plaza.com.ua/

r> Internal Server Error

r> The server encountered an internal error or misconfiguration and was unable to
r> complete your request.
r> ...

r> Regards, Rufio


Best regards,
Peter Velychko
[EMAIL PROTECTED]


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



Re: JXPathMetaModule configuration and sample use for function, package

2004-02-18 Thread Christian Haul
Roman Hrivik wrote:

OK I put chain module to cocoon.xconf


 
class="org.apache.cocoon.components.modules.input.JXPathMetaModule" 
 logger="core.modules.input.utils" name="jxpath">
		


		



in chain module is always string attribute "dn" ()

  
  
  
  


so how can I access to length of the string in dn attribute ?
the example str:length(dn) do not work
The output of the wrapped module is the new context object in JXPath 
speak. So it should be {jxpath:str.length(.)} (?)
Please see JXPath homepage for correct syntax.

	Chris.

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


Re: reusing a result set with esql

2004-02-18 Thread Adrian Petru Dimulescu
> I would like to reuse a result set in an XSP page when doing an esql
> query (I want to be able to reiterate throgh the returned  rows). Is
> there a way to do that ?
Hello again, let me reformulate this question, I guess it's not very 
explicit (hope it's not that plainly stupid):

I have a simple esql sequence in an XSP file:


  kercash-warehouse
  
SELECT part_id, part_nom FROM partenaire


... do something


Sorry, no results!
An error occurred
  


I wish I were able, after a first iteration through the result set with 
, to re-iterate the same resultset without having to 
reexecute the query. Is that possible anybody tried it ?

Thanks for your ideas!
Adrian.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: woody and xsp / esql tags for default values

2004-02-18 Thread Bruno Dumon
On Wed, 2004-02-18 at 10:17, Anthony Hervé wrote:
> Hello,
> 
> Please find hereafter a quick description of my environment :
> 
> - xReporter v121
> - Cocoon v213
> - Phoenix v404
> - Tomcat v4124
> - Java v14 SDK (IBM)
> - Postgresql v732
> 
> I am using Woody to build forms and I would like to retrieve information 
> from my database to populate default field values.
> In the documentation, the form_definition file is an xml document 
> containing links to other xml files in which simple default values can 
> be retrieved. In the example below, the values displayed in the 
> selection list are retrieved from the a-choices xml document.
> 
>
>   Select something that's 4 characters long:
>   
>   
> 
>   
>   
> 
> 
> Is it possible to create the form_definition file as a xsp document to 
> be able to include in it esql tags ?

yes, but I would not recommend it (unless the structure of your form
itself is dynamic). If you want to generate a selection list based on
database data using ESQL, just call a pipeline (i.e. use cocoon:/ in the
src attribute) that starts with an XSP.

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


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



CLI with Modifiable Source

2004-02-18 Thread Boris Althaus



Hello everyone,
 
i tried out the offline-generation capabilities of 
Cocoon.
To generate the project to local disk is no problem 
at all. But how I can invoke the generation with 
a  
Modifiable Source 
for a 
ftp-transfer?
 
Boris


Re: woody and xsp / esql tags for default values

2004-02-18 Thread Anthony Hervé




Hello Bruno, 

I do not really understand what you mean. What do you mean by 
just call a pipeline (i.e. use cocoon:/ in the
src attribute) that starts with an XSP.
I just want to display by default a value from my database for a field
in my form (example phone number), how can I do ? 
Thanks for your answer.

Anthony

Bruno Dumon wrote:

  On Wed, 2004-02-18 at 10:17, Anthony Hervé wrote:
  
  
Hello,

Please find hereafter a quick description of my environment :

- xReporter v121
- Cocoon v213
- Phoenix v404
- Tomcat v4124
- Java v14 SDK (IBM)
- Postgresql v732

I am using Woody to build forms and I would like to retrieve information 
from my database to populate default field values.
In the documentation, the form_definition file is an xml document 
containing links to other xml files in which simple default values can 
be retrieved. In the example below, the values displayed in the 
selection list are retrieved from the a-choices xml document.

   
  Select something that's 4 characters long:
  
  

  
  


Is it possible to create the form_definition file as a xsp document to 
be able to include in it esql tags ?

  
  
yes, but I would not recommend it (unless the structure of your form
itself is dynamic). If you want to generate a selection list based on
database data using ESQL, just call a pipeline (i.e. use cocoon:/ in the
src attribute) that starts with an XSP.

  







RE: reusing a result set with esql

2004-02-18 Thread robby . pelssers
You could try it as follows :

define two classes at bottom of :

  

public class MyPart {
private String id;
private String name;

public MyPart(String id) {
this.id = id;
}

public String getId() {
return this.id;
}

public void setName(String name) {
this.name = name;
}

public String getName() {
return this.name;
}
}

public class MyReusableResultset {
private LinkedList myresults;

public MyReusableResultset() {
this.myresults = new LinkedList();
}
 
public void addMyPart(MyPart mypart) {
this.myresults.add(mypart);
}

public Iterator getMyResultsIterator() {
return this.myresults.iterator();   
}

}   

  

Then 

use following code ::


  MyReusableResultset myrs = new MyReusableResultset();


  ??
  ??
  ??
  ??
  
SELECT part_id, part_nom FROM partenaire
auto
50
20


  
MyPart newpart = new MyPart();
newpart.setName();
myrs.addMyPart(newpart);




   Sorry, no results!

  


Now you can reuse it elsewhere :

like for instance to create table :

  
PartNo
Name
  
  
for (Iterator i = myrs.getMyResultsIterator(); i.hasNext();) { 

  
((MyPart)i.next()).getId() 
  
  
((MyPart)i.next()).getName()   
  

}
  

  

-Original Message-
From: Adrian Petru Dimulescu [mailto:[EMAIL PROTECTED]
Sent: 18mm2004 16:45
To: [EMAIL PROTECTED]
Subject: Re: reusing a result set with esql


 > I would like to reuse a result set in an XSP page when doing an esql
 > query (I want to be able to reiterate throgh the returned  rows). Is
 > there a way to do that ?

Hello again, let me reformulate this question, I guess it's not very 
explicit (hope it's not that plainly stupid):

I have a simple esql sequence in an XSP file:


   kercash-warehouse

   
 SELECT part_id, part_nom FROM partenaire
 
 
... do something
 
 

 Sorry, no results!
 An error occurred
   



I wish I were able, after a first iteration through the result set with 
, to re-iterate the same resultset without having to 
reexecute the query. Is that possible anybody tried it ?

Thanks for your ideas!
Adrian.

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

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



Re: woody, flow and database confusion

2004-02-18 Thread Bert Van Kets
I managed to get the ojb sample working in my own webapp. In other words, I
managed to get the sample to read and write to the mySQL database. I still
haven't managed to get a minimal jdo/ojb application working of my own
doing.

Right now I'm getting an error saying
org.apache.avalon.framework.CascadingRuntimeException: The undefined value
has no properties.
A stack trace can be found below.

The line in my flowscript that throws the error is "dao.retrieve(linksBean,
factory);"

I have been checking everything and for the world can't find what's wrong. I
am just trying to display a few strings in a form. Can anybody please give
some hints?

I'm using Cocoon 2.1.4 with tomcat 4.1.24

Original Exception: ConversionError: The undefined value has no properties.
(file:/D:/java/Tomcat13/webapps/bvar/links/linkFlow.js; line 15)
 at
org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:581)
 at
org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:541)
 at org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:716)
 at
org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(Conti
nuationInterpreter.java:677)
 at
org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(Conti
nuationInterpreter.java:190)
 at
org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(Conti
nuationInterpreter.java:138)
 at
org.mozilla.javascript.continuations.InterpretedFunctionImpl.call(Interprete
dFunctionImpl.java:121)
 at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244)
 at
org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.c
allFunction(FOM_JavaScriptInterpreter.java:719)
 at
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(C
allFunctionNode.java:160)
 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
 at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:165)
 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:162)
 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:136)
 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:371)
 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:312)
 at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:133)
 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
 at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:165)
 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:162)
 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:136)
 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:371)
 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:312)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:656)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1112)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineV

Re: CLI with Modifiable Source

2004-02-18 Thread Simon Mieth
On Wed, 18 Feb 2004 17:57:05 +0100
"Boris Althaus" <[EMAIL PROTECTED]> wrote:

> Hello everyone,
> 
> i tried out the offline-generation capabilities of Cocoon.
> To generate the project to local disk is no problem at
> all. But how I can invoke the generation with a 
> Modifiable Source for a ftp-transfer?
> 
> Boris

Hi,

i think you should ude the ant-task. Ant can publish with
ftp.

Best regards,

Simon

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



Re: woody, flow and database confusion

2004-02-18 Thread Christopher Oliver
Bert Van Kets wrote:

I managed to get the ojb sample working in my own webapp. In other words, I
managed to get the sample to read and write to the mySQL database. I still
haven't managed to get a minimal jdo/ojb application working of my own
doing.
Right now I'm getting an error saying
org.apache.avalon.framework.CascadingRuntimeException: The undefined value
has no properties.
A stack trace can be found below.
The line in my flowscript that throws the error is "dao.retrieve(linksBean,
factory);"
 

This error means that the variable "dao" has an undefined value (You get 
this error when you try to apply the dot operator to undefined. 
Similarly if you try to dereference the null value in JS you get "Cannot 
convert null to an object" - these two errors are the JS equivalents of 
Java's NullPointerException). What does your script look like? How is 
'dao' initialized?

Chris

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


RE: [Portal] JSR-168 examples

2004-02-18 Thread DURDINA Michal
> -Original Message-
> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 17, 2004 9:00 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [Portal] JSR-168 examples
> 
> 
> > -Original Message-
> > From: DURDINA Michal [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, February 16, 2004 7:50 PM
> > To: [EMAIL PROTECTED]
> > Subject: [Portal] JSR-168 examples
> > 
> > Hello,
> > I am having troubles with getting JSR-168 portlet samples 
> > running in the portal demo. They still display "The coplet 
> > Portlet-1 is currently not available." in the portlet window 
> > and write exception in the log:
> > 2004-02-16 19:39:29 WARN(2004-02-16) 19:39.29:974   
> > [portal  ] (/cocoon/samples/portal/portal) 
> > Thread-17/AbstractCopletAdapter: Unable to get content of 
> > coplet: Portlet-1
> > org.xml.sax.SAXException: Portlet couldn't be loaded: 
> > testsuite.TestPortlet1
> > 
> > These instructions are given in the portal demo in order to 
> > run JSR-168 portlet samples:
> > >The Cocoon portal supports portlets conforming to the 
> > JSR-168. The JSR-168 contains a sample that uses the 
> > testsuite from the Jakarta-Pluto project.
> > >These samples only work if you follow these installation 
> > instructions:
> > >  o Get the jakarta pluto project and install it into Tomcat 
> > (Test Pluto now). 
> > >  o Install Cocoon as a web application in Tomcat and remove 
> > the Pluto webapp. 
> > >  o Start Tomcat and run the Cocoon portal demo. You should 
> > now see two portlets.
> > 
> > So I obtained last sources from jakarta-pluto project, 
> > started maven (rc1) fullDeployment, which installed pluto 
> > container into my Tomcat (4.1.27). New directories pluto and 
> > testsuite were created under %TOMCAT%\webapps. Pluto samples 
> > work when accessing http://localhost/pluto/portal. 
> > 
> > Now I am using the new release cocoon-2.1.4 running on WinXP 
> > platform and I configured Tomcat to deploy cocoon samples in 
> > %TOMCAT%\webapps\cocoon21.xml:
> >  > docBase="D:\cocoon-2.1.4\build\webapp\" reloadable="true" 
> debug="1"/>
> > 
> > ... and they are not working.
> > 
> > I tried to delete pluto (according to 2nd point of 
> > instructions) from %TOMCAT%webapps, but they are still not working.
> > 
> > Tell me please, what am I doing wrong and why the removal of 
> > pluto webapplication is needed.
> > 
> First, deleting the pluto webapp is not really needed, but it's
> the webapp itself is not needed as you use Cocoon as the portal
> engine.
> 
> Now, the problem is that you didn't deploy Cocoon as a war but added
> a context definition and "mounted" an external directory. 
> Unfortunately,
> this doesn't work in Pluto, you have to deploy Cocoon into the 
> Tomcat webapps directory.
> 
> Carsten
> 

Ok, I moved build/webapp to %TOMCAT_HOME%\webapps and renamed it to cocoon21. I 
started Tomcat and when typed username and password into portal demo, following 
messaged appeared 2 times in Tomcat log:

2004-02-18 18:35:32 ERROR   (2004-02-18) 18:35.32:967   [portal  ] 
(/cocoon21/samples/portal/auth) Thread-16/LogServiceImpl: org.apache.pluto.invoker : 
PortletInvokerImpl.action() - Unable to find RequestDispatcher.

After click on the JSR-168 tab pane, empty boxes appeared (instead of "The coplet 
TestPortlet-1 is currently not available" as before) and same message appeared in the 
Tomcat log + 
2004-02-18 18:35:52 WARN(2004-02-18) 18:35.52:669   [portal  ] 
(/cocoon21/samples/portal/portal) Thread-16/AbstractCopletAdapter: Unable to get 
content of coplet: TestPortlet-1

I tried to set cocoon webapp to be crossContext by placing cocoon21.xml in the 
%TOMCAT_HOME%\webapps

but this makes things even worse and I am getting back to original exception as when 
cocoon weapp was mounted from outside %TOMCAT%\webapps.

Is anyone else from cocoon users experiencing this problem? 

Thanks for help.

Michal

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



Re: CLI with Modifiable Source

2004-02-18 Thread Boris Althaus



Thanks, i think that is a good idea!

  - Original Message - 
  From: 
  Simon 
  Mieth 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, February 18, 2004 6:48 
  PM
  Subject: Re: CLI with Modifiable 
  Source
  On Wed, 18 Feb 2004 17:57:05 +0100"Boris Althaus" <[EMAIL PROTECTED]> 
  wrote:> Hello everyone,> > i tried out the 
  offline-generation capabilities of Cocoon.> To generate the project to 
  local disk is no problem at> all. But how I can invoke the generation 
  with a > Modifiable Source for a ftp-transfer?> > 
  BorisHi,i think you should ude the ant-task. Ant can publish 
  withftp.Best 
  regards,Simon-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED]


Re: woody, flow and database confusion

2004-02-18 Thread Johnson
It's familir to the sample in cocoon,ojb using woody,
trying to tracing,

Johnson



- Original Message - 
From: "Bert Van Kets" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 1:40 AM
Subject: Re: woody, flow and database confusion


> I managed to get the ojb sample working in my own webapp. In other words,
I
> managed to get the sample to read and write to the mySQL database. I still
> haven't managed to get a minimal jdo/ojb application working of my own
> doing.
>
> Right now I'm getting an error saying
> org.apache.avalon.framework.CascadingRuntimeException: The undefined value
> has no properties.
> A stack trace can be found below.
>
> The line in my flowscript that throws the error is
"dao.retrieve(linksBean,
> factory);"
>
> I have been checking everything and for the world can't find what's wrong.
I
> am just trying to display a few strings in a form. Can anybody please give
> some hints?
>
> I'm using Cocoon 2.1.4 with tomcat 4.1.24
>
> Original Exception: ConversionError: The undefined value has no
properties.
> (file:/D:/java/Tomcat13/webapps/bvar/links/linkFlow.js; line 15)
>  at
> org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:581)
>  at
> org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:541)
>  at org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:716)
>  at
>
org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(Conti
> nuationInterpreter.java:677)
>  at
>
org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(Conti
> nuationInterpreter.java:190)
>  at
>
org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(Conti
> nuationInterpreter.java:138)
>  at
>
org.mozilla.javascript.continuations.InterpretedFunctionImpl.call(Interprete
> dFunctionImpl.java:121)
>  at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244)
>  at
>
org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.c
> allFunction(FOM_JavaScriptInterpreter.java:719)
>  at
>
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(C
> allFunctionNode.java:160)
>  at
>
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
> keNodes(AbstractParentProcessingNode.java:84)
>  at
>
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
> e(PreparableMatchNode.java:165)
>  at
>
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
> keNodes(AbstractParentProcessingNode.java:107)
>  at
>
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
> ineNode.java:162)
>  at
>
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
> keNodes(AbstractParentProcessingNode.java:107)
>  at
>
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
> linesNode.java:136)
>  at
>
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
> or.java:371)
>  at
>
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
> or.java:312)
>  at
>
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
> e.java:133)
>  at
>
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
> keNodes(AbstractParentProcessingNode.java:84)
>  at
>
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
> e(PreparableMatchNode.java:165)
>  at
>
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
> keNodes(AbstractParentProcessingNode.java:107)
>  at
>
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
> ineNode.java:162)
>  at
>
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
> keNodes(AbstractParentProcessingNode.java:107)
>  at
>
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
> linesNode.java:136)
>  at
>
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
> or.java:371)
>  at
>
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
> or.java:312)
>  at org.apache.cocoon.Cocoon.process(Cocoon.java:656)
>  at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1112)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
>  at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
>  at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:256)
>  at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
>

Re: woody, flow and database confusion

2004-02-18 Thread Bert Van Kets
Thanks for the help Chris,

Here's copy of the script:

-
cocoon.load("resource://org/apache/cocoon/woody/flow/javascript/woody2.js");

function linksForm_JDO(form) {
  // Get OJB factory
  var factory =
cocoon.getComponent(Packages.org.apache.cocoon.ojb.jdo.components.JdoPMF.ROL
E);
  // Create a empty Bean
  var linksBean = new Packages.be.bvar.admin.links.LinksBean();
  var dao = new Packages.be.bvar.admin.links.LinksDAO();
  // Fill some initial data to the bean
  linksBean.setID(1);
  // Load bean based on the given PrimaryKey
  dao.retrieve(linksBean, factory);
  // Load the Bean to the form
  form.load(linksBean);
  // Let woody handle the form
  form.showForm("links-form-display");
  // Update the Bean based on user input
  form.save(linksBean);
  // Update Bean in Database
  dao.update(linksBean, factory);
  // Clean up the operation
  cocoon.releaseComponent(factory);
  // Send response to the user
  cocoon.request.setAttribute("linksForm", form.getWidget());
  cocoon.sendPage("links-success-pipeline");
}
-

As you can see it almost a copy of the flowscript used in the ojb/woody
sample.



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



Re: woody, flow and database confusion

2004-02-18 Thread Bert Van Kets
Thanks for the help Chris,

Here's copy of the script:

-
cocoon.load("resource://org/apache/cocoon/woody/flow/javascript/woody2.js");

function linksForm_JDO(form) {
  // Get OJB factory
  var factory =
cocoon.getComponent(Packages.org.apache.cocoon.ojb.jdo.components.JdoPMF.ROL
E);
  // Create a empty Bean
  var linksBean = new Packages.be.bvar.admin.links.LinksBean();
  var dao = new Packages.be.bvar.admin.links.LinksDAO();
  // Fill some initial data to the bean
  linksBean.setID(1);
  // Load bean based on the given PrimaryKey
  dao.retrieve(linksBean, factory);
  // Load the Bean to the form
  form.load(linksBean);
  // Let woody handle the form
  form.showForm("links-form-display");
  // Update the Bean based on user input
  form.save(linksBean);
  // Update Bean in Database
  dao.update(linksBean, factory);
  // Clean up the operation
  cocoon.releaseComponent(factory);
  // Send response to the user
  cocoon.request.setAttribute("linksForm", form.getWidget());
  cocoon.sendPage("links-success-pipeline");
}
-

As you can see it almost a copy of the flowscript used in the ojb/woody
sample.



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



Re: woody, flow and database confusion

2004-02-18 Thread Christopher Oliver
Bert Van Kets wrote:

Thanks for the help Chris,

Here's copy of the script:

-
cocoon.load("resource://org/apache/cocoon/woody/flow/javascript/woody2.js");
function linksForm_JDO(form) {
 // Get OJB factory
 var factory =
cocoon.getComponent(Packages.org.apache.cocoon.ojb.jdo.components.JdoPMF.ROL
E);
 // Create a empty Bean
 var linksBean = new Packages.be.bvar.admin.links.LinksBean();
 var dao = new Packages.be.bvar.admin.links.LinksDAO();
 

The problem is on the above line. Apparently the Java class LinksDAO is 
not found, so instead this is treated as a Java package by Rhino. 
Unfortunately, when you call a constructor on a Java package it 
currently returns 'undefined' rather than generating an error. When I 
have time I'll fix this. You need to debug why this class isn't found by 
the class loader.

HTH,

Chris

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


Re: woody and xsp / esql tags for default values

2004-02-18 Thread Bruno Dumon
On Wed, 2004-02-18 at 18:16, Anthony Hervé wrote:
> Hello Bruno, 
> 
> I do not really understand what you mean. What do you mean by 
> just call a pipeline (i.e. use cocoon:/ in the
> src attribute) that starts with an XSP.
> I just want to display by default a value from my database for a field
> in my form (example phone number), how can I do ? 

Then why did you include the whole story about the selection lists?
That's what got me confused.

If you want to set a value in a field, you have to write some code which
does that before displaying the form, either in Java or flowscript.

I don't think ESQL will be very helpful in that case, though you could
e.g. generate some XML using ESQL and then use the binding framework to
load the data from the XML into the form.

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


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



Documentation: all {variables} for sitemap.xmap

2004-02-18 Thread Philippe Bajoit
Hello,

I have found a lot of examples of variables eg {host} 
{request:contextPath} that I can use in sitemap.

However does it exist somewhere in the documentation an exhaustive list 
of all these variables?

At the beginning I was looking for something like {cocoonHome} eg 
'/home/phil/bin/jakarta-tomcat-5.0.18/webapps' in order to write a 
custom generator returning an event for the 'last modified' date of a 
specific file in the file system.

I'm using Cocoon 2.1.3 with Tomcat 5.0.18.

Best regards.
Philippe
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: how to get the ojb-woody example work

2004-02-18 Thread Joerg Heinicke
What shall I say: "Works for me". For the case it is a problem with the
enhancing of the class, can you rebuild your Cocoon after a "build
clean"? This might solve the problem.

Joerg

On 18.02.2004 15:31, Johnson wrote:

> Hi!
> 
> ether jdo1.0 nor jdo1.01 can work,cocoon throw the same error below
> 
> "file:/jakarta-tomcat-5.0.18/webapps/cocoon/samples/ojb/woody/employee.js",
> line 15: uncaught JavaScript exception: at employeeform_jdo
> (file:/jakarta-tomcat-5.0.18/webapps/cocoon/samples/ojb/woody/employee.js,
> Line 15): javax.jdo.JDOUserException: Given object is not a valid OID.
> FailedObject:org.apache.cocoon.ojb.samples.bean.Employee{1}
> NestedThrowables: javax.jdo.JDOFatalUserException: No metadata has been
> registered for class org.apache.cocoon.ojb.samples.bean.Employee.
> 
> I see some point that is jdo and ojb version problem.
> pls tell me how to solve it!
> 
> Best Regards
> 
> Johnson Hsu

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



RE: Documentation: all {variables} for sitemap.xmap

2004-02-18 Thread Gould, Troy (ELS)
This is decent for finding most of them

http://wiki.cocoondev.org/Wiki.jsp?page=InputModules



-Original Message-
From: Philippe Bajoit [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 12:36 PM
To: [EMAIL PROTECTED]
Subject: Documentation: all {variables} for sitemap.xmap


Hello,

I have found a lot of examples of variables eg {host} 
{request:contextPath} that I can use in sitemap.

However does it exist somewhere in the documentation an exhaustive list 
of all these variables?

At the beginning I was looking for something like {cocoonHome} eg 
'/home/phil/bin/jakarta-tomcat-5.0.18/webapps' in order to write a 
custom generator returning an event for the 'last modified' date of a 
specific file in the file system.

I'm using Cocoon 2.1.3 with Tomcat 5.0.18.

Best regards.
Philippe

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

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



Re: woody, flow and database confusion

2004-02-18 Thread Bert Van Kets
> >  // Create a empty Bean
> >  var linksBean = new Packages.be.bvar.admin.links.LinksBean();
> >  var dao = new Packages.be.bvar.admin.links.LinksDAO();
> >
> >
> The problem is on the above line. Apparently the Java class LinksDAO is
> not found, so instead this is treated as a Java package by Rhino.
>HTH,
>
> Chris

Well, I created the classes in a Java project in Eclipse and exported to a
JAR file in the WEB-INF/lib directory. Do I need to register the jar files
somewhere, or does it have to be placed in the lib/endorced directory?

Thanks,
Bert



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



RE: Can anyone explain this

2004-02-18 Thread Rob Gregory

Hi Jim

Try changing the sitemap to something like:-

  
   
  

OR

  
   
  

And let me know the results...

Rob


> > > //Post 
> 
> > > My setup is Windows/Tomcat5.0.18/Cocoon2.1.3 and some really weird
> > > things
> > > are happening but I'm new to cocoon so maybe I'm missing something
> > > really
> > > obvious.
> > > 
> > >   
> > >
> > >   
> > > 
> > > Whenever I have a matcher like the above, right at the start of my
> > > pipeline, on cocoon 2.1.3, I am finding that I get a 
> resource not found
> > > error whenever I hit on http://localhost:8080/cocoon/jobcentre/
> > > 
> > > However, the really weird thing is that if I go into the jobcentre
> > > directory under cocoon (there is one and that's what 
> seems to be causing
> > > the problem) and delete index.htm then the problem 
> disappears. Let me
> > > emphasize I don't change the sitemap, I simply delete a 
> file which is in
> > > a directory that cocoon ought not even to be accessing at 
> this point,
> > > and
> > > all is well.
> > > 
> > > Can anyone explain this?
> 
> On Sun, 15 Feb 2004 00:13:48 -, "Rob Gregory" 
> <[EMAIL PROTECTED]>
> said:
> > Are you getting the resource not found error from Cocoon or 
> from your
> > sevlet container? Sounds like the request is not getting as far as
> > cocoon...
> > 
> 
> Hi,
> Thanks for the speedy reply. Sorry it took me so long to get back.
> 
> The error message is definitely coming from cocoon. In 
> addition, it says,
> 
>"org.apache.excalibur.source.SourceNotFoundException:
>
> file:/C:/jakarta-tomcat->
5.0.18/webapps/cocoon/jobcentre/index.htm.xml
>doesn't exist"
> 
> It seems to be falling through to a lower matcher which adds 
> '.xml' to a
> wildcard, but why would it be looking for 'index.htm' in the 
> first place
> when I am requesting 'http://localhost:8080/cocoon/jobcentre/'
> 
> I have tried issuing the request in both IE 5.0 and a recent 
> Mozilla. No
> difference.
> 
> I would be most grateful for any further assistance.
> 
> Many thanks.
> 
> best, Jim
> 
> 
> -- 
> http://www.fastmail.fm - Same, same, but different.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



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



Re: Documentation: all {variables} for sitemap.xmap

2004-02-18 Thread Litrik De Roy
Philippe Bajoit wrote:

Hello,

I have found a lot of examples of variables eg {host} 
{request:contextPath} that I can use in sitemap.

However does it exist somewhere in the documentation an exhaustive 
list of all these variables?

I always check http://localhost/samples/modules/index.xsp

Best regards.
Philippe
--

Litrik De Roy
www.litrik.com


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


RE: reusing a result set with esql

2004-02-18 Thread Adrian Petru Dimulescu
Ok, I see your point, I must do it myself -- I was hoping there was a
"bultin" way to do it. To me, it looks like a pretty basic
functionality: for instance, generating an RDF/XML containing a list of
rows:

* first, generating all existing entities(rows)  (=> one iteration)
* then adding the sequence (another iteration needed)

I don't see how that could be done in one iteration only.

Thank you very much for taking the time to answer :)
Adrian.



On Wed, 2004-02-18 at 18:39, [EMAIL PROTECTED] wrote:
> You could try it as follows :
> 
> define two classes at bottom of :
> 
>   
> 
> public class MyPart {
> private String id;
> private String name;
> 
> public MyPart(String id) {
> this.id = id;
> }
> 
> public String getId() {
> return this.id;
> }
> 
> public void setName(String name) {
> this.name = name;
> }
> 
> public String getName() {
> return this.name;
> }
> }
> 
> public class MyReusableResultset {
> private LinkedList myresults;
> 
> public MyReusableResultset() {
> this.myresults = new LinkedList();
> }
>  
> public void addMyPart(MyPart mypart) {
> this.myresults.add(mypart);
> }
> 
> public Iterator getMyResultsIterator() {
> return this.myresults.iterator();   
> }
> 
> }   
> 
>   
> 
> Then 
> 
> use following code ::
> 
> 
>   MyReusableResultset myrs = new MyReusableResultset();
> 
> 
>   ??
>   ??
>   ??
>   ??
>   
> SELECT part_id, part_nom FROM partenaire
> auto
> 50
> 20
> 
> 
>   
> MyPart newpart = new MyPart( column="part_id"/>);
> newpart.setName();
> myrs.addMyPart(newpart);
> 
> 
> 
> 
>Sorry, no results!
> 
>   
> 
> 
> Now you can reuse it elsewhere :
> 
> like for instance to create table :
> 
>   
> PartNo
> Name
>   
>   
> for (Iterator i = myrs.getMyResultsIterator(); i.hasNext();) { 
> 
>   
> ((MyPart)i.next()).getId() 
>   
>   
> ((MyPart)i.next()).getName()   
>   
> 
> }
>   
> 




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



Problem with disable-output-escaping with the 2.1.4 version

2004-02-18 Thread MAHE Vincent FTRD/DIH/REN



I use 
 to generate some 
add-hoc content with my XSLT.
After my XSLT, I 
have an i18n transform in the pipeline, so I have put 
method="xml" in my  declaration 
in order to make sure I have pretty XML before i18n is 
triggered.
 
It used to work well 
with all previous cocoon 2.0.X versions and even with cocoon 
2.1.3.
 
Since I moved to 
2.1.4, I have problems with this instruction.
For instance, if I 
have this in my XSLT file :
 • 

 
I get the 
following in my HTML output :
 • 
 
With cocoon 2.1.3, I 
used to have • in my HTML output.
 
 
The funny thing is that I only have problems when I use Tomcat 
(I have tested both 4.0.1 and 4.1.29 versions).
There is no problem 
if I use Resin 2.1.10.
 
Can anyone help me 
?
 
I know that an XSL 
guru should not use disable-output-escaping but I'm a speedy guy and didn't look 
for a better solution :-)
so please don't tell 
me I shouldn't use this instruction.
 
Vincent
 
 


RE: reusing a result set with esql

2004-02-18 Thread Christopher Painter-Wakefield




Could you be more specific on what it is you are trying to do?  Perhaps we
can see a way to do it in one iteration.

If you are comfortable with logicsheets, then you might consider extending
the esql logicsheet yourself, and posting your extensions back to the
Cocoon developers.

-Christopher



|-+>
| |   Adrian Petru |
| |   Dimulescu|
| |   |
| ||
| |   02/18/2004 02:45 |
| |   PM   |
| |   Please respond to|
| |   users|
| ||
|-+>
  
>--|
  |
  |
  |   To:   [EMAIL PROTECTED]  
|
  |   cc:  
  |
  |   Subject:  RE: reusing a result set with esql 
  |
  
>--|




Ok, I see your point, I must do it myself -- I was hoping there was a
"bultin" way to do it. To me, it looks like a pretty basic
functionality: for instance, generating an RDF/XML containing a list of
rows:

* first, generating all existing entities(rows)  (=> one iteration)
* then adding the sequence (another iteration needed)

I don't see how that could be done in one iteration only.

Thank you very much for taking the time to answer :)
Adrian.




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



Re: woody, flow and database confusion

2004-02-18 Thread Bert Van Kets
I put the classes for binding and DAO in the classes folder and BINGO, it
all works.

I'm a happy kiddo now with a new toy!!!

I'll write up a Wiki document on this as soon as I have time.

Thanks a lot for the help

Bert
- Original Message - 
From: "Bert Van Kets" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 18, 2004 8:16 PM
Subject: Re: woody, flow and database confusion


> > >  // Create a empty Bean
> > >  var linksBean = new Packages.be.bvar.admin.links.LinksBean();
> > >  var dao = new Packages.be.bvar.admin.links.LinksDAO();
> > >
> > >
> > The problem is on the above line. Apparently the Java class LinksDAO is
> > not found, so instead this is treated as a Java package by Rhino.
> >HTH,
> >
> > Chris
>
> Well, I created the classes in a Java project in Eclipse and exported to a
> JAR file in the WEB-INF/lib directory. Do I need to register the jar files
> somewhere, or does it have to be placed in the lib/endorced directory?
>
> Thanks,
> Bert
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: reusing a result set with esql

2004-02-18 Thread Adrian Petru Dimulescu
On Wednesday 18 February 2004 20:58, Christopher Painter-Wakefield wrote:
> Could you be more specific on what it is you are trying to do?  Perhaps we
> can see a way to do it in one iteration.

Well, I'm experimenting with XUL as frontend and Cocoon as backend. Mozilla 
XUL trees like RDF so I use Cocoon on the backend to generate it. When I want 
to generate the RDF/XML for a list of Partners, the RDF contains :

* as many  as there are rows (Partners) in the 
ResultSet.
* then an  in order to predicate the fact that those entities are 
part of a list. Every item of the  is a _reference_ to the defined 
entity.

Now that you mentioned it I realize that it is possible to not use references 
but textually include the entities  in the . In my 
case that would work and I will use it tomorrow :) But if one wants to 
describe in the same RDF/XML several different lists or graphs of the same 
entities, using references becomes unavoidable. So iterating through the 
ResultSet several times also becomes necessary, I think.

> If you are comfortable with logicsheets, then you might consider extending
> the esql logicsheet yourself, and posting your extensions back to the
> Cocoon developers.

I am quite new to XSP/logicsheets but they seem so wonderfully simple; I'll 
take a look anyway to the esql logicsheet to see if I can make something of 
it.

Best regards,
Adrian.

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



Re: reusing a result set with esql

2004-02-18 Thread Christopher Painter-Wakefield




Adrian,

I'm not familiar with RDF, and I can't say I have a clear picture of what
you are trying to do, but I think you might be able to do everything you
need in XSLT, after the XSP stage.  I do a lot of cross-referencing between
lists, etc., in an XSLT transform step after generating the raw data from
the database.  If you want to generate two different bits of output from a
single database result, that is even easier.  XSLT is very powerful for
this type of thing.

Good luck!

-Christopher



|-+>
| |   Adrian Petru |
| |   Dimulescu|
| |   |
| ||
| |   02/18/2004 04:07 |
| |   PM   |
| |   Please respond to|
| |   users|
| ||
|-+>
  
>--|
  |
  |
  |   To:   [EMAIL PROTECTED]  
|
  |   cc:   Christopher Painter-Wakefield <[EMAIL PROTECTED]>  
   |
  |   Subject:  Re: reusing a result set with esql 
  |
  
>--|




On Wednesday 18 February 2004 20:58, Christopher Painter-Wakefield wrote:
> Could you be more specific on what it is you are trying to do?  Perhaps
we
> can see a way to do it in one iteration.

Well, I'm experimenting with XUL as frontend and Cocoon as backend. Mozilla

XUL trees like RDF so I use Cocoon on the backend to generate it. When I
want
to generate the RDF/XML for a list of Partners, the RDF contains :

* as many  as there are rows (Partners) in the
ResultSet.
* then an  in order to predicate the fact that those entities are
part of a list. Every item of the  is a _reference_ to the defined

entity.

Now that you mentioned it I realize that it is possible to not use
references
but textually include the entities  in the . In
my
case that would work and I will use it tomorrow :) But if one wants to
describe in the same RDF/XML several different lists or graphs of the same
entities, using references becomes unavoidable. So iterating through the
ResultSet several times also becomes necessary, I think.

> If you are comfortable with logicsheets, then you might consider
extending
> the esql logicsheet yourself, and posting your extensions back to the
> Cocoon developers.

I am quite new to XSP/logicsheets but they seem so wonderfully simple; I'll

take a look anyway to the esql logicsheet to see if I can make something of

it.

Best regards,
Adrian.


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



[Woody] Possible to set wd:label dynamically?

2004-02-18 Thread Stephan Coboos
Is it possible to set the content  dynamically?

I know only at runtime the label of  the widget(s). I want to use the 
binding framework and my JavaBean holds the label. How can I put the 
label from the bean to the  element with woody? Is it possible?

Thank you.

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


Re: reusing a result set with esql

2004-02-18 Thread Adrian Petru Dimulescu
>  I think you might be able to do everything you
> need in XSLT, after the XSP stage.  I do a lot of cross-referencing between
> lists, etc., in an XSLT transform step after generating the raw data from
> the database.  If you want to generate two different bits of output from a
> single database result, that is even easier.  XSLT is very powerful for
> this type of thing.

Yes, indeed that's a very good idea, I hadn't thought of it. Thanks !

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



XSP form validation

2004-02-18 Thread Anna Bikkina
Hi,

I have a xsp page which contains form elements(text boxes). I have to validate 
those text boxes. I used the FormValidateAction but something is not working. 
When I click submit it is not validating it is instead going to the failure 
part of the match pattern in the sitemap. Can someone tell me how to do 
validation in xsp. I am totally confused. I looked at other examples but 
could not solve my problem.

my xsp file looks like this

  




...
...

when I submit the page I excepected it to match securityresult but then it 
matches the same page(security.xsp) instead. Here is my sitemap pipeline 
information. Descriptor.xml has the validation set and other details defined.


   



 
  
 





 
 

   
   
 
 
  
 





 
 
   


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



Validation of date

2004-02-18 Thread Anna Bikkina
Hi,

I have to validate data in a form. Is there an already existing way to 
validate data using cocoon's form validator. Or if I have to write a 
validator that extends FormValdiator of cocoon how do I write methods that 
reflect the validate rules in descriptor.xml.

Can someone please throw some light on writing our own validator classes.

Thanks,
Anna.


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



Re: Validation of date

2004-02-18 Thread Anna Bikkina
err: I meant validation of DATE

On Wednesday 18 February 2004 05:15 pm, Anna Bikkina wrote:
> ing cocoon's form val


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



cocoon and ATG Dynamo

2004-02-18 Thread Lung, John
Title: cocoon and ATG Dynamo





Hi:


Has anyone used cocoon with ATG Dynamo app. server?  I'm trying to configure a jsp engine for the JSPGenerator and JSPReader.  However, Dynamo doesn't provide a JSPServlet as Tomcat and Weblogic do.  

Please help.
Thanks!
John 





Is there a sitemap DTD?

2004-02-18 Thread Jim Bloggs
Greetings Cocoon Users!

Where can I find the sitemap DTD for cocoon 2.1.3, please. I have been
looking everywhere for it, including google. I could have sworn I saw it
somewhere in passing, but now I can't find it again. Is there such a
thing?

I would be most grateful for any assistance.

Many thanks.

Jim

-- 
http://www.fastmail.fm - Consolidate POP email and Hotmail in one place

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



RE: Can anyone explain this

2004-02-18 Thread Jim Bloggs
Hi Rob,

Many thanks for your reply.

I have since discovered through experimentation that if I move all the
relevant stuff into a subsitemap in the jobcentre directory the problem
goes away. The matcher simply matches on pattern="" without problems.

Don't know what was causing the problem, but I may go back and experiment
some more with what you suggested if I get a chance, and I'll let you
know. In the meantime, I'm going with the subsitemap alternative as it is
clearly preferable in general. I only recently discovered subsitemaps.

I _do_ appreciate your taking the trouble to reply and, once again, I'm
sorry for not getting back sooner.

best, Jim


On Wed, 18 Feb 2004 19:20:51 -, "Rob Gregory" <[EMAIL PROTECTED]>
said:
> 
> Hi Jim
> 
> Try changing the sitemap to something like:-
> 
>   
> mime-type="text/html"/>
>   
> 
> OR
> 
>   
> mime-type="text/html"/>
>   
> 
> And let me know the results...
> 
> Rob
> 

-- 
http://www.fastmail.fm - Faster than the air-speed velocity of an
  unladen european swallow

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



Re: Link Livesites: Cocoon 2.1 -- working now.

2004-02-18 Thread Ray Allis
Peter Velychko wrote:

My sincere apologies for incorrect work of our server.
It is occured sometimes because of technical causes and it will be
eliminated to tommorow morning (at Kyiv time).
 

It must be morning in Kyiv -- Good Morning!  The site looks very nice in
Both English and Russian.  I am Using Mozilla 1.6 on a Sun SPARC.
Ray Allis

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


Re: how to get the ojb-woody example work

2004-02-18 Thread Johnson
got it,tks.

Johnson
- Original Message - 
From: "Joerg Heinicke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 2:37 AM
Subject: Re: how to get the ojb-woody example work


> What shall I say: "Works for me". For the case it is a problem with the
> enhancing of the class, can you rebuild your Cocoon after a "build
> clean"? This might solve the problem.
>
> Joerg
>
> On 18.02.2004 15:31, Johnson wrote:
>
> > Hi!
> >
> > ether jdo1.0 nor jdo1.01 can work,cocoon throw the same error below
> >
> >
"file:/jakarta-tomcat-5.0.18/webapps/cocoon/samples/ojb/woody/employee.js",
> > line 15: uncaught JavaScript exception: at employeeform_jdo
> >
(file:/jakarta-tomcat-5.0.18/webapps/cocoon/samples/ojb/woody/employee.js,
> > Line 15): javax.jdo.JDOUserException: Given object is not a valid OID.
> > FailedObject:org.apache.cocoon.ojb.samples.bean.Employee{1}
> > NestedThrowables: javax.jdo.JDOFatalUserException: No metadata has been
> > registered for class org.apache.cocoon.ojb.samples.bean.Employee.
> >
> > I see some point that is jdo and ojb version problem.
> > pls tell me how to solve it!
> >
> > Best Regards
> >
> > Johnson Hsu
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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



Re: CLI with Modifiable Source

2004-02-18 Thread Upayavira
Simon Mieth wrote:

On Wed, 18 Feb 2004 17:57:05 +0100
"Boris Althaus" <[EMAIL PROTECTED]> wrote:
 

Hello everyone,

i tried out the offline-generation capabilities of Cocoon.
To generate the project to local disk is no problem at
all. But how I can invoke the generation with a 
Modifiable Source for a ftp-transfer?

Boris
   

Hi,

i think you should ude the ant-task. Ant can publish with
ftp.
 

There are two ways. My original plan for the CLI was to allow the CLI to 
do its own FTP with modifiable sources, then when I clicked to the 
benefits of Ant, modifiable sources didn't seem quite so important.

So, you can:
1) Use Ant task to build site, then have Ant upload the site with FTP 
(or better, SCP), or
2) Use a modifiable source - there is one now a modifiable FTP source in 
the Excalibur source package, which should mean that you can just use  
ftp://[EMAIL PROTECTED]:host/path/file as your destination URI.

The question is, how to best prevent the uploading of unchanged files. 
There is 'unannounced' code in Cocoon to do this, but Ant is probably 
better at it. I believe it can store checksums locally, and use them to 
decide whether a file has changed, and then only upload changed files.

HTH.

Regards, Upayavira



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


combining coocon with my web application

2004-02-18 Thread reza x
hi all.
I am going to combine cocoon with my current framework and web application.I don't want use the WAR file which is ready in cocoon distribution.
how can i do this combination?
the only need i want to meet by cocoon is to give it an XSL file and an input xml file and generate some html and pdf format outputs.please guide me how can i do this.
 
thanks alot for your attention.
Best Regard.
 
 
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

RE: Is there a sitemap DTD?

2004-02-18 Thread Carmona Perez, David
I've seen a schema that I attach in this message.


David

-Mensaje original-
De: Jim Bloggs [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 0:08
Para: [EMAIL PROTECTED]
Asunto: Is there a sitemap DTD?

Greetings Cocoon Users!

Where can I find the sitemap DTD for cocoon 2.1.3, please. I have been
looking everywhere for it, including google. I could have sworn I saw it
somewhere in passing, but now I can't find it again. Is there such a
thing?

I would be most grateful for any assistance.

Many thanks.

Jim

--
http://www.fastmail.fm - Consolidate POP email and Hotmail in one place

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


sitemap-2.1-draft.xsd
Description: sitemap-2.1-draft.xsd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: jpeg and png display problem for samples

2004-02-18 Thread Alten, Jelle Paul
I had the same problem on a linux machine, while win machine worked
fine.
Can't help you further, maybe somebody else has the same problem?

I know Kris used to have this problem (Kris Rasmussen
[mailto:[EMAIL PROTECTED]) on april 17th 2003. No idea if Kris
solved it.

Try to contact Batic people, they might know more...

Good luck,

Jelle

-Original Message-
From: yangontha Maung
To: [EMAIL PROTECTED]
Sent: 12-2-2004 2:59
Subject: jpeg and png display problem for samples

http://myserver:/samples/batik/hello.jpeg

I am using cocoon 2.1.3 on Red Hat Linux 9.0; Tomcat
5.0.18.

I try to view the samples and when I view svg, it is
OK.
But when I click the jpeg and png links, there is an
error message.


The image
"http://myserver:/samples/batik/hello.jpeg"; cannot
be displayed, because it contains errors.


Please help.


rgds,



__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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

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



RE: combining coocon with my web application

2004-02-18 Thread Carmona Perez, David








You can have more than one servlet
per web application, it is a matter of defining in web.xml the address patterns
that go to each servlet.  For
example, I combined successfully Cocoon and Struts.

 





David

 

-Mensaje
original-
De: reza x
[mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero
de 2004 8:47
Para: [EMAIL PROTECTED]
Asunto: combining coocon with my
web application

 

hi all.

I am going to combine cocoon with my current framework
and web application.I don't want use the WAR file which is ready in cocoon
distribution.

how can i do this combination?

the only need i want to meet by cocoon is to give
it an XSL file and an input xml file and generate some html
and pdf format outputs.please guide me how can i do this.

 

thanks alot for your attention.

Best Regard.

 

 









Do you Yahoo!?
Yahoo! Mail SpamGuard -
Read only the mail you want.








RE: Is there a sitemap DTD?

2004-02-18 Thread Alten, Jelle Paul
 <> 
  
I don't really know where it went, but here is the one I use. If things
are missing, maybe you can update it and commit it to cvs? (the "jpa"
part in the file is just my initials, no need to keep that)

Jelle


-Original Message-
From: Jim Bloggs
To: [EMAIL PROTECTED]
Sent: 19-2-2004 0:07
Subject: Is there a sitemap DTD?

Greetings Cocoon Users!

Where can I find the sitemap DTD for cocoon 2.1.3, please. I have been
looking everywhere for it, including google. I could have sworn I saw it
somewhere in passing, but now I can't find it again. Is there such a
thing?

I would be most grateful for any assistance.

Many thanks.

Jim

-- 
http://www.fastmail.fm - Consolidate POP email and Hotmail in one place

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



sitemap-v02jpa_2.1.3.dtd
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]