RE: XMLForm and dates

2002-11-14 Thread Sylvain.Thevoz
Hello Jan,

Thank you for your reply.

Yes, your understanding is right. The problem appears because I want to display the 
date in the form. But the date in the form isn't really useful and I could cancel the 
idea to display it.

I'm trying to insert/update database with an "DatabaseAccess" layer written in Java. 
This layer includes one Java class for each database table and each class has getter, 
setter and query method to access to the database.

But I'm really interested how you do that with XMLForm and modular database actions. 
Could you provide me some information?

Thank you
Sylvain

-Message d'origine-
De: Jan [mailto:juyttenh@;pandora.be]
Date: mercredi, 13. novembre 2002 20:04
À: [EMAIL PROTECTED]
Objet: Re: XMLForm and dates


Hi,

I'm currently using a combination of XMLForms and modular database 
actions to insert and update db data. I don't understand what exactly is 
your problem.

Some of my beans contain Date or TimeStamp attributes, containing the 
current date. I don't need a String representation of the dates, as I 
don't display the dates, I just need them to be available for update or 
insert. But if I'm not mistaken, calling a Date using jxpath should 
invoke toString()... ?

The only problem I had was inserting the date or timestamp in the 
database (datetime column). I'm using the modular database actions, and 
an InputModule to access the bean in the session. If this is what you're 
trying to do, you should modify the JDBCTypeConversions, because the 
most simple mapping (in my case TimeStamp to Types.TIMESTAMP is not 
provided).

But besides that, it works very well. So if you want to display the 
data, jxpath should take care of the toString() I think. Or am I missing 
something here?
And for the actual database actions: how are you trying to insert/update 
the database? ESQL, modular database actions?

Hope this helps you any further. Feel free to ask more information, 
perhaps I should write a howto or tutorial about the integration of 
XMLForms and modular database actions, if anyone is interested and if I 
find the time for it :-)

In the meantime: is anyone working on the (input)modules right now? I 
think I read something on the mailinglist a while ago, but I don't know 
what the current status is. To use XMLForms with modular database 
actions, an XMLFormInputModule is a nice and easy way to work...

Jan


Ivelin Ivanov wrote:

>Try the following:
>
>Use a Date property with its own getter and setter for the database access.
>Implement an extra property named dateString.
>Then write the getter of the property to convert the Date object into String
>when invoked.
>Also write a setter to convert a string to a date. The Java DateFormat class
>can help.
>http://java.sun.com/j2se/1.3/docs/api/java/text/DateFormat.html
>
>
>In your XMLForm documents refer to the dateString property, instead of the
>date property.
>In your Java code, use the date property.
>
>
>Hope this helps.
>
>- Original Message -
>From: <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, November 12, 2002 8:00 AM
>Subject: XMLForm and dates
>
>
>Hello,
>
>I use XMLForm and I want to put the today date in a form.
>The problem is that the today date has to be a String because the XMLForm
>simply display the value of the Bean class attribute. If this value is not a
>String, the date can't be read!
>But I want to store the today date in a Date format (because I have a
>timestamp format in my database).
>
>How to store the date in a Date type and display it like a String?
>How to do this??
>
>Thank you
>Sylvain
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>  
>



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




How to make an automatic refresh

2002-11-15 Thread Sylvain.Thevoz
Hello everybody,

I'm using Cocoon and Cocoon portal to build a web application.

One of my coplets should work as a workflow manager.
This application will work like that:
A dispatcher could add an action to do to one of the executors.
Each executor will see the portal with the workflow manager in his browser.
Each executor should see which actions he has to do in his browser.

My question is: when the dispatcher add an action to an executor, the browser of this 
executor should do a refresh to see the new action.
How could do that??

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




XMLForm: dynamic content listbox

2002-11-20 Thread Sylvain.Thevoz
Hello,

I'm using listbox in XMLForm (with tag ). The 
content of the listbox (the items listed) is hard-coded in the xml document (view) 
like that:


 
  Unix
  Unix>
 
 
  Windows
  Windows
 


Is there a possibility to retrieve dynamically these items from a database instead of 
using the hard-coded items in xml document??

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: XMLForm: dynamic content listbox

2002-11-21 Thread Sylvain.Thevoz
Thanks Alonso.

I have read userIdentity.xml and UserBean.java files from Cocoon Wizard sample.
In UserBean.java, I have found a method called "initHobbies()". This method simply 
init all hobbies.

If I have well understood, I could replace the hard-coded values of allHobbies by a 
query to a database. isn't it?

What would be the solution if I want to retrieve the allHobbies values from an 
external xml file?
Is there an example?

Thank you
Sylvain


-Message d'origine-
De: Josema Alonso [mailto:[EMAIL PROTECTED]]
Date: mercredi, 20. novembre 2002 19:50
À: Cocoon-Users
Objet: Re: XMLForm: dynamic content listbox


Hello.

I had a very similar problem a few days ago. The way to go is the itemset
tag as used in the wizard demo. Take a look at the 'userIdentity.xml' file
where the Hobbies get listed:

Hobbies






All you have to do is to change the UIType to the one desired and fill the
items with values taken from the DB, for example from the action.

Hope it helps,
Josema.


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 3:56 PM
Subject: XMLForm: dynamic content listbox


> Hello,
>
> I'm using listbox in XMLForm (with tag ). The content of the listbox (the items listed) is
hard-coded in the xml document (view) like that:
>
> 
>  
>   Unix
>   Unix>
>  
>  
>   Windows
>   Windows
>  
> 
>
> Is there a possibility to retrieve dynamically these items from a database
instead of using the hard-coded items in xml document??
>
> Thank you
> Sylvain
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: XMLForm: dynamic content listbox

2002-11-21 Thread Sylvain.Thevoz
Yes I'm interested for your complete example!

I think that the access to Xindice or to a XML file are nearly the same?!?

Thank you very much
Sylvain

-Message d'origine-
De: Josema Alonso [mailto:[EMAIL PROTECTED]]
Date: jeudi, 21. novembre 2002 10:34
À: [EMAIL PROTECTED]
Objet: RE: XMLForm: dynamic content listbox


>If I have well understood, I could replace the hard-coded values of
allHobbies by a query to a database. >isn't it?
Yes. Just fill the appropriate Java structure of your choice with the
database values after querying it.

>What would be the solution if I want to retrieve the allHobbies values from
an external xml file?
>Is there an example?
Well, I'm using Xindice as the backend DB. I'm using DOM nodes to load the
content from the DB and then map those nodes to the form (there's an example
in the wizard with DOM nodes, too). It took me some time to make it work but
I know I get it. I do not have the code right here, but could send you a
complete example later today if you're interested.

Best.


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Link: http://www.hippo.nl/EN/solution/CASTA/index.html Project: CASTA\\ CMS

2002-11-22 Thread Sylvain.Thevoz
Is this project open source?

Sylvain

-Message d'origine-
De: Arjé Cahn [mailto:[EMAIL PROTECTED]]
Date: vendredi, 22. novembre 2002 11:24
À: [EMAIL PROTECTED]
Objet: Link: http://www.hippo.nl/EN/solution/CASTA/index.html Project:
CASTA\\ CMS


Cocoon-based Projects

CASTA\\ CMS
CASTA is a native XML Content Management System. It integrates Cocoon, X-Hive/DB, 
CASTA\\ XML Editor and CASTA\\ Publishing platform. It supports all major standards 
like XML, XSL, XPath, XQuery, XUpdate, Java and WebDAV. It is widely used in both 
governmental and commercial websites.

Regards,

Arjé Cahn


-
Content Management Department
Hippo Webworks
Grasweg 35
1031 HW Amsterdam
The Netherlands
Tel  +31 (0)20 6345173 
Fax +31 (0)20 6345179
arje(at)hippo(dot)nl / www.hippo.nl


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




JDOM

2002-12-03 Thread Sylvain.Thevoz
Hello,

Does Cocoon use JDOM?

Tank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: JDOM

2002-12-03 Thread Sylvain.Thevoz
OK, thank you Reinhard.

I don't plan to use JDOM in a custom transformer but your remark is very interesting. 
What do you think about? Have you an example of use?

Regards
Sylvain

-Message d'origine-
De: Reinhard Poetz [mailto:[EMAIL PROTECTED]]
Date: mardi, 3. décembre 2002 15:38
À: [EMAIL PROTECTED]
Objet: RE: JDOM


Sylvain,

According to the lib/core and lib/optional directories JDOM is currently not
used. But if you need it (e.g. in a custom transformer) it's very easy to
use it.

Regards,
Reinhard

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 03, 2002 3:14 PM
> To: [EMAIL PROTECTED]
> Subject: JDOM
>
>
> Hello,
>
> Does Cocoon use JDOM?
>
> Tank you
> Sylvain
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




XMLForm: content listbox problem

2002-12-05 Thread Sylvain.Thevoz
Hello,

I have an XMLForm app like this:

Navigation:
Start->Form1->Form2->Confirm->End

In the Form1 view I have a listbox. The content (the different choices) of this 
listbox comes from an XML file. The code is:

  Workstation Type
  


  
  


This code seems to be OK. The XPath code is also OK I think. Here is the XML file:

  

  Desktop


  Laptop


  Other configuration

  



I load the XML file in a DOM Node property (called "select"). This property is located 
in the Bean file (with getter and setter methods for this property). I load the XML 
file in this Node property also in the Bean file, in the constructor. Here the Bean 
file:

public class AddWorkstationBean {
private String workstationName;
private String workstationType;
private String workstationOwner;
private String workstationUser;

private Node select; //values from the XML file

public AddWorkstationBean() {
initSelect();
}

public Node initSelect() {
//initialize a property named "select" of DOM Node class
DOMImplementation impl;
try {
// Find the implementation
DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(false);
factory.setValidating(false);
DocumentBuilder builder = factory.newDocumentBuilder();
impl = builder.getDOMImplementation();

//Create the node for the root "select"
Document document = impl.createDocument(null, "select", null);
Node selectName = document.getDocumentElement();

//Loading from XML File
String fileName =

"C:\\jakarta-tomcat-4.1.12\\webapps\\cocoon\\woc\\iniForm.xml";
FileInputStream inXML = new FileInputStream(fileName);
BufferedReader in =
new BufferedReader(new InputStreamReader(inXML));
Element element = XMLLoader.loadFromStream(in);

//Import the node
Element importedElement =
(Element) document.importNode(element, true);
selectName.appendChild(importedElement);

//initialize the porperty

select = selectName;
}
 
.. getter an setter methods..
..

}


My problem is when I start the app (with the Start view) and then display the Form1 
there is NOTHING in the listbox (the list isn't empty but it's like the caption and 
value properties are null)!!
Then I go to the next view (Form2). Then if I press the Preview button and go back to 
the Form1, the listbox is OK!! It's crazy and I really don't understand why!

Someone could help me?
Any suggestions will be greatly appreciated!

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




XMLForm: please help

2002-12-06 Thread Sylvain.Thevoz
Hello,

I'm trying to have an XMLForm app with dynamic listbox. The values of the listbox come 
from an XML file.

The navigation app is like this:
Start->Form1->Form2->Confirm->End

In the Form1 view I have a listbox. The content (the different choices) of this 
listbox comes from an XML file. The code is:

  Workstation Type
  


  
  


This code seems to be OK. The XPath code is also OK.

I load the XML file in a DOM Node property (called "select"). This property is located 
in the Bean file (with getter and setter methods for this property). I load the XML 
file in this Node property also in the Bean file, in the constructor. Here the Bean 
file:

public class AddWorkstationBean {
private String workstationName;
private String workstationType;
...

private Node select; //values from the XML file

public AddWorkstationBean() {
initSelect();
}

public Node initSelect() {
...
//Here I load values into select property form XML file
...
}
 
.. getter an setter methods..
..

}


My problem is when I start the app (with the Start view) and then display the Form1 
there is NOTHING in the listbox (the list isn't empty but it's like the caption and 
value properties are null)!!
Then I go to the next view (Form2). Then if I press the Preview button and go back to 
the Form1, the listbox is OK!! It's crazy and I really don't understand why!

Someone could help me?
Any suggestions will be greatly appreciated!

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




XMLForm and DOM node initialization

2002-12-06 Thread Sylvain.Thevoz
Hello everybody,

I'm using XMLForm and its possibility to access to DOM nodes.

Here is the code in the view (form.xml):


  Workstation Type
  


  
  


The problem is when I load the web app page (containing the node field) for the first 
time (after a Tomcat or Browser restart), the "value" and "caption" fields are empty 
although the number of  are right.

Here is the HTML source when the fields are empty (first load):


Here is the HTML source when the fields are OK (not first load):
DesktopLaptopOther configuration

The node is initialized in the Bean (model) conctructor.


Is anybody could help me to understand what's happen?!?
I'm really desparate because I really don't know what could be the problem!

When a web page is loaded, which methods or actions are called?


Any suggestions will be greatly appreciated.
Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: XMLForm: content listbox problem

2002-12-09 Thread Sylvain.Thevoz
Hello Lars,

I call the getModel() method in the perform function, like the Wizard example:

code
public Map perform() {
  AddWorkstationBean jBean = (AddWorkstationBean) getForm().getModel();
  if (getCommand().equals(CMD_NEXT)&& getForm().getViolations() != null) {
return page(getFormView());
  } else {
getForm().clearViolations();
String command = getCommand();
String formView = getFormView();

if (formView.equals(VIEW_FORM1)) {
  if (command.equals(CMD_NEXT)) {
  return page(VIEW_FORM2);
}
} else if (formView.equals(VIEW_FORM
..
etc
..
code

I don't understand what mean the result_trans and result_cust properties. Are they 
Bean properties?

Thank you
Regards
Sylvain





-Message d'origine-
De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Date: lundi, 9. décembre 2002 03:32
À: '[EMAIL PROTECTED]'
Objet: AW: XMLForm: content listbox problem


Hello Sylvian,

I always initialize the data for the appropriate form. This means 
I put the initialize data actions in different functions and call
them if I reach the stage.  Here is an example:

- code
if ( formView.equals ( VIEW_START ) ) {
if ( command.equals( CMD_COMMIT ) ) {
int result_trans= jBean.getTransactionData();
int result_cust = jBean.getUserData();

if ( result_cust == 0 ) {
return page( VIEW_ERROR );  
}   
else if ( result_trans == 0 ) {
return page( VIEW_ERROR );  
}

else if ( result_cust > 1 ) {
return page( VIEW_CUSTOMER );
}
else {
return page( VIEW_INVOICE );
}
}
}
- /code

this allows me also to react on different results from these functions.
When did you call the getModel() method from the bean?  Are you doing 
that in the prepare or perform function?

ciao Lars

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 6. Dezember 2002 00:01
> An: [EMAIL PROTECTED]
> Betreff: XMLForm: content listbox problem
> 
> 
> Hello,
> 
> I have an XMLForm app like this:
> 
> Navigation:
> Start->Form1->Form2->Confirm->End
> 
> In the Form1 view I have a listbox. The content (the 
> different choices) of this listbox comes from an XML file. 
> The code is:
> 
>   Workstation Type
>   
> 
> 
>   
>   
> 
> 
> This code seems to be OK. The XPath code is also OK I think. 
> Here is the XML file:
> 
>   
> 
>   Desktop
> 
> 
>   Laptop
> 
> 
>   Other configuration
> 
>   
> 
> 
> 
> I load the XML file in a DOM Node property (called "select"). 
> This property is located in the Bean file (with getter and 
> setter methods for this property). I load the XML file in 
> this Node property also in the Bean file, in the constructor. 
> Here the Bean file:
> 
> public class AddWorkstationBean {
>   private String workstationName;
>   private String workstationType;
>   private String workstationOwner;
>   private String workstationUser;
> 
>   private Node select; //values from the XML file
> 
>   public AddWorkstationBean() {
>   initSelect();
>   }
> 
>   public Node initSelect() {
>   //initialize a property named "select" of DOM Node class
>   DOMImplementation impl;
>   try {
>   // Find the implementation
>   DocumentBuilderFactory factory =
>   DocumentBuilderFactory.newInstance();
>   factory.setNamespaceAware(false);
>   factory.setValidating(false);
>   DocumentBuilder builder = 
> factory.newDocumentBuilder();
>   impl = builder.getDOMImplementation();
> 
>   //Create the node for the root "select"
>   Document document = 
> impl.createDocument(null, "select", null);
>   Node selectName = document.getDocumentElement();
> 
>   //Loading from XML File
>   String fileName =
>   
> "C:\\jakarta-tomcat-4.1.12\\webapps\\cocoon\\woc\\iniForm.xml";
>   FileInputStream inXML = new 
> FileInputStream(fileName);
>   BufferedReader in =
>   new BufferedReader(new 
> InputStreamReader(inXML));
>   Element element = XMLLoader.loadFromStream(in);
> 
>   //Import the node
>   Element importedElement =
>   

RE: XMLForm and DOM node initialization

2002-12-09 Thread Sylvain.Thevoz
Hi Lars,

No, it doesn't work!!
I'm going to be completely crazy!

I think the problem is not on the XPath expression, because there is the exact number 
of items in the list. But the caption and value fields are empty! And I don't 
understand why!

Thank you
Sylvain

-Message d'origine-
De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Date: lundi, 9. décembre 2002 03:41
À: '[EMAIL PROTECTED]'
Objet: AW: XMLForm and DOM node initialization


Hello Sylvian,

  I'm sorry for the last mail, was send to early... outlook is driving
me crazy.. 

try the following:


  Workstation Type
  


  
  


if your dom is still loaded into selected and is looking like this:


  

  Desktop


  Laptop


  Other configuration

  


ciao Lars

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Samstag, 7. Dezember 2002 00:53
> An: [EMAIL PROTECTED]
> Betreff: XMLForm and DOM node initialization
> 
> 
> Hello everybody,
> 
> I'm using XMLForm and its possibility to access to DOM nodes.
> 
> Here is the code in the view (form.xml):
> 
> 
>   Workstation Type
>   
> 
> 
>   
>   
> 
> 
> The problem is when I load the web app page (containing the 
> node field) for the first time (after a Tomcat or Browser 
> restart), the "value" and "caption" fields are empty although 
> the number of  are right.
> 
> Here is the HTML source when the fields are empty (first load):
>  value=""> value="">
> 
> Here is the HTML source when the fields are OK (not first load):
>  value="desktop">Desktop value="laptop">LaptopOther 
> configuration
> 
> The node is initialized in the Bean (model) conctructor.
> 
> 
> Is anybody could help me to understand what's happen?!?
> I'm really desparate because I really don't know what could 
> be the problem!
> 
> When a web page is loaded, which methods or actions are called?
> 
> 
> Any suggestions will be greatly appreciated.
> Thank you
> Sylvain
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: XMLForm: content listbox problem

2002-12-09 Thread Sylvain.Thevoz
I tried to initialize the bean in the prepare method but it's still the same!
Nothing happen!

I posted 2 different messages(content list box problem and DOM initialization problem) 
but the problem is the same.


Sylvain


-Message d'origine-
De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Date: lundi, 9. décembre 2002 09:38
À: '[EMAIL PROTECTED]'
Objet: AW: XMLForm: content listbox problem


I'm sorry confusing you with this. This are just integer values 
which returns me how the function was executed. 

That means getTransactionData returns an integer value with the 
number of elements. So that I can decide on this what should be 
done next. (I'm new to cocoon and java as well and am not sure 
if this is a correct or good way to do, but it works for me now,
if anybody has a clearer or better aproach I would be very pleased
to know about it)

public int getTransactionData() {
...
return numberOfTransactions;
}

so try to initialize the bean in the prepare method as well and see
whats happening.

ciao Lars


> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 9. Dezember 2002 16:28
> An: [EMAIL PROTECTED]
> Betreff: RE: XMLForm: content listbox problem
> 
> 
> Hello Lars,
> 
> I call the getModel() method in the perform function, like 
> the Wizard example:
> 
> code
> public Map perform() {
>   AddWorkstationBean jBean = (AddWorkstationBean) 
> getForm().getModel();
>   if (getCommand().equals(CMD_NEXT)&& 
> getForm().getViolations() != null) {
>   return page(getFormView());
>   } else {
> getForm().clearViolations();
> String command = getCommand();
> String formView = getFormView();
> 
> if (formView.equals(VIEW_FORM1)) {
>   if (command.equals(CMD_NEXT)) {
> return page(VIEW_FORM2);
>   }
>   } else if (formView.equals(VIEW_FORM
> ..
> etc
> ..
> code
> 
> I don't understand what mean the result_trans and result_cust 
> properties. Are they Bean properties?
> 
> Thank you
> Regards
> Sylvain
> 
> 
> 
> 
> 
> -Message d'origine-
> De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
> Date: lundi, 9. décembre 2002 03:32
> À: '[EMAIL PROTECTED]'
> Objet: AW: XMLForm: content listbox problem
> 
> 
> Hello Sylvian,
> 
> I always initialize the data for the appropriate form. This means 
> I put the initialize data actions in different functions and call
> them if I reach the stage.  Here is an example:
> 
> - code
>   if ( formView.equals ( VIEW_START ) ) {
>   if ( command.equals( CMD_COMMIT ) ) {
>   int result_trans= 
> jBean.getTransactionData();
>   int result_cust = jBean.getUserData();
>   
>   if ( result_cust == 0 ) {
>   return page( VIEW_ERROR );  
>   }   
>   else if ( result_trans == 0 ) {
>   return page( VIEW_ERROR );  
>   }
>   
>   else if ( result_cust > 1 ) {
>   return page( VIEW_CUSTOMER );
>   }
>   else {
>   return page( VIEW_INVOICE );
>   }
>   }
>   }
> - /code
> 
> this allows me also to react on different results from these 
> functions.
> When did you call the getModel() method from the bean?  Are you doing 
> that in the prepare or perform function?
> 
> ciao Lars
> 
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]
> > Gesendet: Freitag, 6. Dezember 2002 00:01
> > An: [EMAIL PROTECTED]
> > Betreff: XMLForm: content listbox problem
> > 
> > 
> > Hello,
> > 
> > I have an XMLForm app like this:
> > 
> > Navigation:
> > Start->Form1->Form2->Confirm->End
> > 
> > In the Form1 view I have a listbox. The content (the 
> > different choices) of this listbox comes from an XML file. 
> > The code is:
> > 
> >   Workstation Type
> >   
> > 
> > 
> >   
> >   
> > 
> > 
> > This code seems to be OK. The XPath code is also OK I think. 
> > Here is the XML file:
> > 
> >   
> > 
> >   Desktop
> > 
> > 
> >   Laptop
> > 
> > 
> >   Other configuration
> > 
> >   
> > 
> > 
> > 
> > I load the XML file in a DOM Node property (called "select"). 
> > This property is located in the Bean file (with getter and 
> > setter methods for this property). I load the XML file in 
> > this Node property also in the Bean file, in the constructor. 
> > Here the Bean file:
> > 
> > public class AddWorkstationBean {
> > private String workstationName;
> > private String workstationType;
> > private String workstationOwner;
> > private String workstationUser;
> > 
> >

RE: XMLForm and DOM node initialization

2002-12-09 Thread Sylvain.Thevoz
Yes, I think you have the same problem as me!!

I don't use the xf:output statement. What does it mean?

If I'm right, for testing you create a form.xml file (view) with only a repeat 
statement like this:

code

  




  

code

Is it the right way?

Do you know why this kind of problem happen?

Thank you
Regards
Sylvain



-Message d'origine-
De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Date: lundi, 9. décembre 2002 09:54
À: '[EMAIL PROTECTED]'
Objet: AW: XMLForm and DOM node initialization


I just went through the same problem an hour before. 
My problem was that not all dom nodes weren't initialized or respectivly 
some of the data before the repeat statement wasn't initialized.

sample:

- code -
  ...
















  ...   
- /code 

this wasn't working for me, because I forget to set up the pobox and 
pocode node. I experienced the same behaviour like yours, the repeat
statement was executed and created the correct number of items, but 
non of the values(no,desc,unit,..) where set. 
Try a blank xml file with just the repeat statement. If this works try
to find out what's maybe missing.

hope that helps.

ciao Lars

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 9. Dezember 2002 16:38
> An: [EMAIL PROTECTED]
> Betreff: RE: XMLForm and DOM node initialization
> 
> 
> Hi Lars,
> 
> No, it doesn't work!!
> I'm going to be completely crazy!
> 
> I think the problem is not on the XPath expression, because 
> there is the exact number of items in the list. But the 
> caption and value fields are empty! And I don't understand why!
> 
> Thank you
> Sylvain
> 
> -Message d'origine-
> De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
> Date: lundi, 9. décembre 2002 03:41
> À: '[EMAIL PROTECTED]'
> Objet: AW: XMLForm and DOM node initialization
> 
> 
> Hello Sylvian,
> 
>   I'm sorry for the last mail, was send to early... 
> outlook is driving
> me crazy.. 
> 
> try the following:
> 
> 
>   Workstation Type
>   
> 
> 
>   
>   
> 
> 
> if your dom is still loaded into selected and is looking like this:
> 
> 
>   
> 
>   Desktop
> 
> 
>   Laptop
> 
> 
>   Other configuration
> 
>   
> 
> 
> ciao Lars
> 
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]
> > Gesendet: Samstag, 7. Dezember 2002 00:53
> > An: [EMAIL PROTECTED]
> > Betreff: XMLForm and DOM node initialization
> > 
> > 
> > Hello everybody,
> > 
> > I'm using XMLForm and its possibility to access to DOM nodes.
> > 
> > Here is the code in the view (form.xml):
> > 
> > 
> >   Workstation Type
> >   
> > 
> > 
> >   
> >   
> > 
> > 
> > The problem is when I load the web app page (containing the 
> > node field) for the first time (after a Tomcat or Browser 
> > restart), the "value" and "caption" fields are empty although 
> > the number of  are right.
> > 
> > Here is the HTML source when the fields are empty (first load):
> >  > value=""> > value="">
> > 
> > Here is the HTML source when the fields are OK (not first load):
> >  > value="desktop">Desktop > value="laptop">LaptopOther 
> > configuration
> > 
> > The node is initialized in the Bean (model) conctructor.
> > 
> > 
> > Is anybody could help me to understand what's happen?!?
> > I'm really desparate because I really don't know what could 
> > be the problem!
> > 
> > When a web page is loaded, which methods or actions are called?
> > 
> > 
> > Any suggestions will be greatly appreciated.
> > Thank you
> > Sylvain
> > 
> > 
> -
> > Please check that your question  has not already been 
> answered in the
> > FAQ before posting. 
> 
> > 
> > To unsubscribe, e-mail: 
> <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   
> <[EMAIL PROTECTED]>
> > 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL

RE: XMLForm and DOM node initialization

2002-12-09 Thread Sylvain.Thevoz
I tried to load this form:

code


http://xml.apache.org/cocoon/xmlform/2002";> 
   
Test




  
  


code

It's still the same: there is the correct number of items in the page but there are 
empty (the values aren't set).

The values are not set. Why??

If I don't insert ../document/.. in the path, the correct number of items are not 
displayed.


Thank you
Regards
Sylvain


-Message d'origine-
De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Date: lundi, 9. décembre 2002 10:34
À: '[EMAIL PROTECTED]'
Objet: AW: XMLForm and DOM node initialization


The output statement print just the value of either the bean property or
a dom node. You can look at the example of the xmlform-Howto-Wizard. 
The confirm.xml is using it to show all entered values.

The code seemes to be ok, but I think you don't need the document...

Place this without anything in the apropriate xml file and turn of all
xsl stylesheets in the sitemap to see what is happening. 

ciao Lars

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 9. Dezember 2002 17:23
> An: [EMAIL PROTECTED]
> Betreff: RE: XMLForm and DOM node initialization
> 
> 
> Yes, I think you have the same problem as me!!
> 
> I don't use the xf:output statement. What does it mean?
> 
> If I'm right, for testing you create a form.xml file (view) 
> with only a repeat statement like this:
> 
> code
> 
>   
> 
>   
>   
> 
>   
> 
> code
> 
> Is it the right way?
> 
> Do you know why this kind of problem happen?
> 
> Thank you
> Regards
> Sylvain
> 
> 
> 
> -Message d'origine-
> De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
> Date: lundi, 9. décembre 2002 09:54
> À: '[EMAIL PROTECTED]'
> Objet: AW: XMLForm and DOM node initialization
> 
> 
> I just went through the same problem an hour before. 
> My problem was that not all dom nodes weren't initialized or 
> respectivly 
> some of the data before the repeat statement wasn't initialized.
> 
> sample:
> 
> - code -
>   ...
>   
>   
>   
>   
> 
>   
>   
>   
>   
>   
>/>
>   
>/>
>   
>   
>   
>   ... 
> - /code 
> 
> this wasn't working for me, because I forget to set up the pobox and 
> pocode node. I experienced the same behaviour like yours, the repeat
> statement was executed and created the correct number of items, but 
> non of the values(no,desc,unit,..) where set. 
> Try a blank xml file with just the repeat statement. If this works try
> to find out what's maybe missing.
> 
> hope that helps.
> 
> ciao Lars
> 
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]
> > Gesendet: Montag, 9. Dezember 2002 16:38
> > An: [EMAIL PROTECTED]
> > Betreff: RE: XMLForm and DOM node initialization
> > 
> > 
> > Hi Lars,
> > 
> > No, it doesn't work!!
> > I'm going to be completely crazy!
> > 
> > I think the problem is not on the XPath expression, because 
> > there is the exact number of items in the list. But the 
> > caption and value fields are empty! And I don't understand why!
> > 
> > Thank you
> > Sylvain
> > 
> > -Message d'origine-
> > De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
> > Date: lundi, 9. décembre 2002 03:41
> > À: '[EMAIL PROTECTED]'
> > Objet: AW: XMLForm and DOM node initialization
> > 
> > 
> > Hello Sylvian,
> > 
> >   I'm sorry for the last mail, was send to early... 
> > outlook is driving
> > me crazy.. 
> > 
> > try the following:
> > 
> > 
> >   Workstation Type
> >   
> > 
> > 
> >   
> >   
> > 
> > 
> > if your dom is still loaded into selected and is looking like this:
> > 
> > 
> >   
> > 
> >   Desktop
> > 
> > 
> >   Laptop
> > 
> > 
> >   Other configuration
> > 
> >   
> > 
> > 
> > ciao Lars
> > 
> > > -Ursprüngliche Nachricht-
> > > Von: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED]]
> > > Gesendet: Samstag, 7. Dezember 2002 00:53
> > > An: [EMAIL PROTECTED]
> > > Betreff: XMLForm and DOM node initialization
> > > 
> > > 
> > > Hello everybody,
> > > 
> > > I'm using XMLForm and its possibility to access to DOM nodes.
> > > 
> > > Here is the code in the view (form.xml):
> > > 
> > > 
> > >   Workstation Type
> > >nodeset="listValues/document/typeOfWorkstation/item">
> > > 
> > > 
> > >   
> > >   
> > > 
> > > 
> > > The problem is when I load the web app page (containing the 
> > > node field) for the first time (after a Tomcat or Browser 
> > > restart), the "value" and "caption" fields are empty although 
> > > the number of  are right.
> > > 
> > > Here is the HTML source when the fields are empty (first load)

RE: XMLForm and DOM node initialization

2002-12-09 Thread Sylvain.Thevoz
Hi Ivelin,

No, thank you.
But it doesn't make any differences!!

Is it right that in the XMLForm Wizard example the initialization of the Bean occurs 
only when you press the Next button from the first form to the following?
I try to understand because I have certainly an initialization problem.

Thank you
Sylvain

-Message d'origine-
De: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
Date: lundi, 9. décembre 2002 15:55
À: [EMAIL PROTECTED]
Objet: Re: XMLForm and DOM node initialization



Have you noticed that you have a typo in the file.
Rename the "def" attributes to "ref".


Ivelin


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 09, 2002 4:14 AM
Subject: RE: XMLForm and DOM node initialization


I tried to load this form:

code


http://xml.apache.org/cocoon/xmlform/2002";>

Test

  


  



code

It's still the same: there is the correct number of items in the page but
there are empty (the values aren't set).

The values are not set. Why??

If I don't insert ../document/.. in the path, the correct number of items
are not displayed.


Thank you
Regards
Sylvain


-Message d'origine-
De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Date: lundi, 9. décembre 2002 10:34
À: '[EMAIL PROTECTED]'
Objet: AW: XMLForm and DOM node initialization


The output statement print just the value of either the bean property or
a dom node. You can look at the example of the xmlform-Howto-Wizard.
The confirm.xml is using it to show all entered values.

The code seemes to be ok, but I think you don't need the document...

Place this without anything in the apropriate xml file and turn of all
xsl stylesheets in the sitemap to see what is happening.

ciao Lars

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 9. Dezember 2002 17:23
> An: [EMAIL PROTECTED]
> Betreff: RE: XMLForm and DOM node initialization
>
>
> Yes, I think you have the same problem as me!!
>
> I don't use the xf:output statement. What does it mean?
>
> If I'm right, for testing you create a form.xml file (view)
> with only a repeat statement like this:
>
> code
> 
>   
> 
> 
> 
> 
>   
> 
> code
>
> Is it the right way?
>
> Do you know why this kind of problem happen?
>
> Thank you
> Regards
> Sylvain
>
>
>
> -Message d'origine-
> De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
> Date: lundi, 9. décembre 2002 09:54
> À: '[EMAIL PROTECTED]'
> Objet: AW: XMLForm and DOM node initialization
>
>
> I just went through the same problem an hour before.
> My problem was that not all dom nodes weren't initialized or
> respectivly
> some of the data before the repeat statement wasn't initialized.
>
> sample:
>
> - code -
>   ...
> 
>   
>   
>   
>
> 
> 
> 
> 
> 
>  />
> 
>  />
> 
> 
> 
>   ...
> - /code 
>
> this wasn't working for me, because I forget to set up the pobox and
> pocode node. I experienced the same behaviour like yours, the repeat
> statement was executed and created the correct number of items, but
> non of the values(no,desc,unit,..) where set.
> Try a blank xml file with just the repeat statement. If this works try
> to find out what's maybe missing.
>
> hope that helps.
>
> ciao Lars
>
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> > Gesendet: Montag, 9. Dezember 2002 16:38
> > An: [EMAIL PROTECTED]
> > Betreff: RE: XMLForm and DOM node initialization
> >
> >
> > Hi Lars,
> >
> > No, it doesn't work!!
> > I'm going to be completely crazy!
> >
> > I think the problem is not on the XPath expression, because
> > there is the exact number of items in the list. But the
> > caption and value fields are empty! And I don't understand why!
> >
> > Thank you
> > Sylvain
> >
> > -Message d'origine-
> > De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
> > Date: lundi, 9. décembre 2002 03:41
> > À: '[EMAIL PROTECTED]'
> > Objet: AW: XMLForm and DOM node initialization
> >
> >
> > Hello Sylvian,
> >
> >   I'm sorry for the last mail, was send to early...
> > outlook is driving
> > me crazy.. 
> >
> > try the following:
> >
> > 
> >   Workstation Type
> >   
> > 
> > 
> >   
> >   
> > 
> >
> > if your dom is still loaded into selected and is looking like this:
> >
> > 
> >   
> > 
> >   Desktop
> > 
> > 
> >   Laptop
> > 
> > 
> >   Other configuration
> > 
> >   
> > 
> >
> > ciao Lars
> >
> > > -Ursprüngliche Nachricht-
> > > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> > > Gesendet: Samstag, 7. Dezember 2002 00:53
> > > An: [EMAIL PROTECTED]
> > > Betreff: XMLForm and DOM node initialization
> > >
> > >
> > > Hello everybody,
> > >
> > > I'm using XMLForm and its possibility to access to DOM nodes.
> > >
> > > Here is the code in the view (form.xml):
> > >
> > > 
> > >   Workstation Type
> > >nodeset="listValu

RE: XMLForm: content listbox problem

2002-12-09 Thread Sylvain.Thevoz
Hi Lars,

You said that I should initialize the bean in the prepare method.
What do you do exactly?

For my Bean I started from the Wizard example code. The initialization is in the 
perform method.

regards
Thank you
Sylvain



-Message d'origine-
De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Date: lundi, 9. décembre 2002 09:38
À: '[EMAIL PROTECTED]'
Objet: AW: XMLForm: content listbox problem


I'm sorry confusing you with this. This are just integer values 
which returns me how the function was executed. 

That means getTransactionData returns an integer value with the 
number of elements. So that I can decide on this what should be 
done next. (I'm new to cocoon and java as well and am not sure 
if this is a correct or good way to do, but it works for me now,
if anybody has a clearer or better aproach I would be very pleased
to know about it)

public int getTransactionData() {
...
return numberOfTransactions;
}

so try to initialize the bean in the prepare method as well and see
whats happening.

ciao Lars


> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 9. Dezember 2002 16:28
> An: [EMAIL PROTECTED]
> Betreff: RE: XMLForm: content listbox problem
> 
> 
> Hello Lars,
> 
> I call the getModel() method in the perform function, like 
> the Wizard example:
> 
> code
> public Map perform() {
>   AddWorkstationBean jBean = (AddWorkstationBean) 
> getForm().getModel();
>   if (getCommand().equals(CMD_NEXT)&& 
> getForm().getViolations() != null) {
>   return page(getFormView());
>   } else {
> getForm().clearViolations();
> String command = getCommand();
> String formView = getFormView();
> 
> if (formView.equals(VIEW_FORM1)) {
>   if (command.equals(CMD_NEXT)) {
> return page(VIEW_FORM2);
>   }
>   } else if (formView.equals(VIEW_FORM
> ..
> etc
> ..
> code
> 
> I don't understand what mean the result_trans and result_cust 
> properties. Are they Bean properties?
> 
> Thank you
> Regards
> Sylvain
> 
> 
> 
> 
> 
> -Message d'origine-
> De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
> Date: lundi, 9. décembre 2002 03:32
> À: '[EMAIL PROTECTED]'
> Objet: AW: XMLForm: content listbox problem
> 
> 
> Hello Sylvian,
> 
> I always initialize the data for the appropriate form. This means 
> I put the initialize data actions in different functions and call
> them if I reach the stage.  Here is an example:
> 
> - code
>   if ( formView.equals ( VIEW_START ) ) {
>   if ( command.equals( CMD_COMMIT ) ) {
>   int result_trans= 
> jBean.getTransactionData();
>   int result_cust = jBean.getUserData();
>   
>   if ( result_cust == 0 ) {
>   return page( VIEW_ERROR );  
>   }   
>   else if ( result_trans == 0 ) {
>   return page( VIEW_ERROR );  
>   }
>   
>   else if ( result_cust > 1 ) {
>   return page( VIEW_CUSTOMER );
>   }
>   else {
>   return page( VIEW_INVOICE );
>   }
>   }
>   }
> - /code
> 
> this allows me also to react on different results from these 
> functions.
> When did you call the getModel() method from the bean?  Are you doing 
> that in the prepare or perform function?
> 
> ciao Lars
> 
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]
> > Gesendet: Freitag, 6. Dezember 2002 00:01
> > An: [EMAIL PROTECTED]
> > Betreff: XMLForm: content listbox problem
> > 
> > 
> > Hello,
> > 
> > I have an XMLForm app like this:
> > 
> > Navigation:
> > Start->Form1->Form2->Confirm->End
> > 
> > In the Form1 view I have a listbox. The content (the 
> > different choices) of this listbox comes from an XML file. 
> > The code is:
> > 
> >   Workstation Type
> >   
> > 
> > 
> >   
> >   
> > 
> > 
> > This code seems to be OK. The XPath code is also OK I think. 
> > Here is the XML file:
> > 
> >   
> > 
> >   Desktop
> > 
> > 
> >   Laptop
> > 
> > 
> >   Other configuration
> > 
> >   
> > 
> > 
> > 
> > I load the XML file in a DOM Node property (called "select"). 
> > This property is located in the Bean file (with getter and 
> > setter methods for this property). I load the XML file in 
> > this Node property also in the Bean file, in the constructor. 
> > Here the Bean file:
> > 
> > public class AddWorkstationBean {
> > private String workstationName;
> > private String workstationType;
> > private String workstationOwner;
> > private String workstationUser;
> > 
> 

RE: XMLForm: content listbox problem

2002-12-10 Thread Sylvain.Thevoz
Hi Ivelin,

Thanks for your suggestions.

Do you create this method in the Bean file or Action file?

What does the method should return? The dom document?

Thank you
Regards
Sylvain


-Message d'origine-
De: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
Date: lundi, 9. décembre 2002 20:49
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: content listbox problem



The best place to do a one-time initialization of the data model is the
getFormModel() method.
This is the orginial in the AbstractXMLFormAction:

  /**
   * Extract xmlform-model
   * action parameter and
   * instantiate a new form model it.
   *
   *
   * Subclasses may override this method
   * to use custom model instantiation technique
   *
   */
  protected Object getFormModel()
  {
try
  {
String modelClassName =
getParameters().getParameter("xmlform-model", null);
Class modelClass = Class.forName ( modelClassName );
Object o = modelClass.newInstance ();
return o;
  }
  catch ( Exception e)
  {
throw new CascadingRuntimeException( " Failed instantiating form
model ", e );
  }
  }


You can override this method and do the following:

  protected Object getFormModel()
  {
// create a dom document and initialize it
// preferably use the JXPath DocumentContainer
  }


This way, the first XMLForm page will use the initialized version.


Let me know if this works for you.



Ivelin



- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 09, 2002 10:13 AM
Subject: RE: XMLForm: content listbox problem


Hi Lars,

You said that I should initialize the bean in the prepare method.
What do you do exactly?

For my Bean I started from the Wizard example code. The initialization is in
the perform method.

regards
Thank you
Sylvain



-Message d'origine-
De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Date: lundi, 9. décembre 2002 09:38
À: '[EMAIL PROTECTED]'
Objet: AW: XMLForm: content listbox problem


I'm sorry confusing you with this. This are just integer values
which returns me how the function was executed.

That means getTransactionData returns an integer value with the
number of elements. So that I can decide on this what should be
done next. (I'm new to cocoon and java as well and am not sure
if this is a correct or good way to do, but it works for me now,
if anybody has a clearer or better aproach I would be very pleased
to know about it)

public int getTransactionData() {
...
return numberOfTransactions;
}

so try to initialize the bean in the prepare method as well and see
whats happening.

ciao Lars


> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 9. Dezember 2002 16:28
> An: [EMAIL PROTECTED]
> Betreff: RE: XMLForm: content listbox problem
>
>
> Hello Lars,
>
> I call the getModel() method in the perform function, like
> the Wizard example:
>
> code
> public Map perform() {
>   AddWorkstationBean jBean = (AddWorkstationBean)
> getForm().getModel();
>   if (getCommand().equals(CMD_NEXT)&&
> getForm().getViolations() != null) {
> return page(getFormView());
>   } else {
> getForm().clearViolations();
> String command = getCommand();
> String formView = getFormView();
>
> if (formView.equals(VIEW_FORM1)) {
>   if (command.equals(CMD_NEXT)) {
>   return page(VIEW_FORM2);
> }
> } else if (formView.equals(VIEW_FORM
> ..
> etc
> ..
> code
>
> I don't understand what mean the result_trans and result_cust
> properties. Are they Bean properties?
>
> Thank you
> Regards
> Sylvain
>
>
>
>
>
> -Message d'origine-
> De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
> Date: lundi, 9. décembre 2002 03:32
> À: '[EMAIL PROTECTED]'
> Objet: AW: XMLForm: content listbox problem
>
>
> Hello Sylvian,
>
> I always initialize the data for the appropriate form. This means
> I put the initialize data actions in different functions and call
> them if I reach the stage.  Here is an example:
>
> - code
> if ( formView.equals ( VIEW_START ) ) {
>   if ( command.equals( CMD_COMMIT ) ) {
>   int result_trans =
> jBean.getTransactionData();
>   int result_cust = jBean.getUserData();
>
>   if ( result_cust == 0 ) {
>   return page( VIEW_ERROR );
>   }
>   else if ( result_trans == 0 ) {
>   return page( VIEW_ERROR );
>   }
>
>  else if ( result_cust > 1 ) {
>  return page( VIEW_CUSTOMER );
>  }
>  else {
>  return page( VIEW_INVOICE );
>  }
> }
> }
> - /code
>
> this allows me also to react on different results from these
> functions.
> When did you call the getModel() method from the bean?  Are you doing
> that in the prepare or perform function?
>
> ciao Lars
>
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> > Gesendet: Freitag, 6. Dezember 2002 00:01
> > An: [EMAIL PROTECTED]
> > Betreff: XMLForm: content listbox problem
> >
> >
> > He

RE: Xml form How To-Please help me out

2002-12-20 Thread Sylvain.Thevoz
Hello,

Your sitemap have to be with the xml files in src\webapp\samples\xmlform.

Check all your paths in the sitemap.

Regards
Sylvain

-Message d'origine-
De: poornima ponnuswamy [mailto:[EMAIL PROTECTED]]
Date: vendredi, 20. décembre 2002 07:19
À: [EMAIL PROTECTED]
Objet: Xml form How To-Please help me out


I am able to get the
http://localhost:8080/cocoon/samples/xmlform/wizard

Now I tried to run the XML form wizard but I couldnt
succeed. I am really trying hard to get it done but I
couldnt. Can one spend few min in helping me
out...please
These are the following steps I followed. I created 
"howto" in src\webapp\samples\xmlform folder and put
all the xml files in it. And then I created howto
folder in \src\java\org\apache\cocoon\samples\xmlform\
and put 2 java files in it (Is this right) and then I
put the sitemap in
\src\java\org\apache\cocoon\samples\xmlform (Is this
right) and then I build it using the command build.bat
-Dinclude.webapp.libs=true webapp. Are all these steps
right?. Also I want to know how howto-wizard.html page
is created. Can you please help me in figuring out the
problem
Note :I am using all the files from the
http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard.html
website

Thanks
poornima

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Sunbow licence expired

2002-12-23 Thread Sylvain.Thevoz
Hello,

My Sunbow (Eclipse plug-in) licence is expired.

How can I have a new one?

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




How to get back XMLForm data to Cocoon

2003-01-08 Thread Sylvain.Thevoz
Hello,

I'm using XMLForm to collect information.
With these information I retrieve a result from a database (with Java code in the 
Action file).

Now I want to take this result to display it on the screen. And I want to use the 
Cocoon publication features.

My question is: how to get back this result to display it with Cocoon?


Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: XMLform JavaBean and Database Connection Pool

2003-01-09 Thread Sylvain.Thevoz
Hi Lars,

I have implemented an object-relationnal mapping tool called OJB (it's open source) to 
connect to my databases.
It works very well.
You don't need special code or new methods within javabean. You don't need queries and 
you don't need to manage connections.
You simply instantiate a new database object within the javabean and after that you 
work with your classes that represent your database.

I could send you an example if you are interested.

Regards
Sylvain

-Message d'origine-
De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Date: jeudi, 9. janvier 2003 02:47
À: Cocoon-Users (E-Mail)
Objet: XMLform JavaBean and Database Connection Pool


Hello,

hello I have a question related to xmlform and database connections.

I would like to know which would be the best way to implement database 
connections and querys. 
So far I tried to put all database connection into methods within the 
javabean. therefore I didn't used the cocoon database connection pool.
I run into several problems as I tried this.
I also tried to get a connection from the cocoon connection pool in 
the action class of the xmlform. after I got this I passed the connection
to the bean. this seemes to work, but causes sometimes system hangs and 
its in my opinion not a good solution. 

My question is now what would be a good way to feed the databean 
with data from a database?
Should be all database actions take place in the action class?

ciao Lars

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




file generator error

2003-01-09 Thread Sylvain.Thevoz
Hello,

My sitemap is:

 
  http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings"/>
  
  


The problem is that I can't compile the sitemap.
Error is:
org.xml.sax.SAXParseException: The reference to entity "c" must end with the ';' 
delimiter. 
at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
 
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213) 
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:366) 
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296) 
etc...


Anybody has an idea?

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: file generator error

2003-01-10 Thread Sylvain.Thevoz
Thank you all for your response.

If I substitute '&' by '&', the sitemap compilation is OK.
But the link doesn't work anymore!

Anybody has a solution?

Regards
Sylvain


-Message d'origine-
De: Ed Yavno [mailto:[EMAIL PROTECTED]]
Date: jeudi, 9. janvier 2003 17:54
À: Thévoz Sylvain, IT-DTS-ENG-SDM; [EMAIL PROTECTED]
Objet: RE: file generator error


can't use '&' if it's not part of an entity reference, substitute your '&' for its 
entity reference:
http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings"/>

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 11:43 AM
To: [EMAIL PROTECTED]
Subject: file generator error


Hello,

My sitemap is:

 
  http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings"/>
  
  


The problem is that I can't compile the sitemap.
Error is:
org.xml.sax.SAXParseException: The reference to entity "c" must end with the ';' 
delimiter. 
at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
 
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213) 
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:366) 
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296) 
etc...


Anybody has an idea?

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: file generator error

2003-01-13 Thread Sylvain.Thevoz
Hi,

It means that if I replace the '&' by '&', the link isn't correct anymore.
The problem seems to be that the Tomcat web server doesn't convert '&' to '&' and 
use '&' to retrieve the web page.

Any idea?
Is it a Tomcat bug?

Thank you
Sylvain



-Message d'origine-
De: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
Date: vendredi, 10. janvier 2003 19:29
À: [EMAIL PROTECTED]
Objet: Re: file generator error


I checked the link and Mozilla recognized the content as XML, so I guess 
that's not the problem. But "doesn't work anymore" is not really a 
helpful error message.

Joerg

J.Pietschmann wrote:
> [EMAIL PROTECTED] wrote:
> 
>> If I substitute '&' by '&', the sitemap compilation is OK.
>> But the link doesn't work anymore!
> 
> Did it ever work?
> 
> I guess the source is HTML rather than XML, I think you
> have to tell the sitemap to use a HTML generator. Look
> up details in the Cocoon doc, in particular in the section
> about generators


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




XMLForm view: what is the id

2003-01-13 Thread Sylvain.Thevoz
Hi all,

Here the beginning of an XMLForm view called form1.xml:


http://xml.apache.org/cocoon/xmlform/2002";>


In the third line there is a id="form-feedback".
What does this id means?

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: file generator error

2003-01-13 Thread Sylvain.Thevoz
Hi Geoff,

How do you debug this and how do you find your result?

Thank you
Regards
Sylvain

-Message d'origine-
De: Geoff Howard [mailto:[EMAIL PROTECTED]]
Date: lundi, 13. janvier 2003 15:46
À: [EMAIL PROTECTED]
Objet: RE: file generator error


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 13, 2003 3:25 AM
> To: [EMAIL PROTECTED]
> Subject: RE: file generator error
>
>
> Hi,
>
> It means that if I replace the '&' by '&', the link isn't
> correct anymore.
> The problem seems to be that the Tomcat web server doesn't
> convert '&' to '&' and use '&' to retrieve the web page.
>
> Any idea?
> Is it a Tomcat bug?
>
> Thank you
> Sylvain

I think I have confirmed some problem - try
http://localhost:8080/cocoon/samples/system/request.html?foo=bar&fee=fi

it gives:
...
  

  fi


  fee

  
...

Don't have time to do more than that now.

Geoff Howard


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: file generator error

2003-01-13 Thread Sylvain.Thevoz
Hi Joerg,

I'm using Cocoon 2.1 dev but an old version (17.10.2002).

It could be the problem, no?

Geoff: which version do you use?

Regards
Sylvain

-Message d'origine-
De: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
Date: lundi, 13. janvier 2003 16:56
À: [EMAIL PROTECTED]
Objet: Re: file generator error


Hello Geoff and Sylvain,

I can't confirm a bug using Cocoon 2.1 dev from CVS (2003-01-07).

Using this sitemap snippet


   http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings"/>
   


I have this in my core.log, where you can see that the link is resolved 
correctly. Furthermore I get the same result requesting the virus 
warnings from Cocoon and directly from www.moreover.com.

Regards,

Joerg

DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test) 
Thread-9/SourceResolverImpl: Resolving 
'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings' with 
base 'file:/D:/xml/' in context 'file:/D:/Tomcat/bin/'
DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test) 
Thread-9/SourceResolverImpl: Resolved to systemID 
'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings'
DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test) 
Thread-9/SourceResolverImpl: Making URL from 
http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings
DEBUG   (2003-01-13) 16:48.59:984   [core.store.transient] 
(/cocoon/joerg/test) Thread-9/MRUMemoryStore: NOT Found key: 
PK_G-file-http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings_S-xml-1
DEBUG   (2003-01-13) 16:48.59:984   [core.store.persistent] 
(/cocoon/joerg/test) Thread-9/AbstractFilesystemStore: NOT Found file: 
PK_G-file-http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings_S-xml-1
DEBUG   (2003-01-13) 16:48.59:984   [core.store.transient] 
(/cocoon/joerg/test) Thread-9/MRUMemoryStore: NOT Found key: 
PK_G-file-http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings
DEBUG   (2003-01-13) 16:48.59:984   [core.store.persistent] 
(/cocoon/joerg/test) Thread-9/AbstractFilesystemStore: NOT Found file: 
PK_G-file-http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings
DEBUG   (2003-01-13) 16:49.00:234   [core.manager] (/cocoon/joerg/test) 
Thread-9/XMLizerImpl: No mime-type for xmlizing 
http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings, 
guessing text/xml

Geoff Howard wrote:
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, January 13, 2003 3:25 AM
>>To: [EMAIL PROTECTED]
>>Subject: RE: file generator error
>>
>>
>>Hi,
>>
>>It means that if I replace the '&' by '&', the link isn't
>>correct anymore.
>>The problem seems to be that the Tomcat web server doesn't
>>convert '&' to '&' and use '&' to retrieve the web page.
>>
>>Any idea?
>>Is it a Tomcat bug?
>>
>>Thank you
>>Sylvain
> 
> 
> I think I have confirmed some problem - try
> http://localhost:8080/cocoon/samples/system/request.html?foo=bar&fee=fi
> 
> it gives:
> ...
>   
> 
>   fi
> 
> 
>   fee
> 
>   
> ...
> 
> Don't have time to do more than that now.
> 
> Geoff Howard


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: file generator error

2003-01-14 Thread Sylvain.Thevoz
Hi Geoff,

I haven't exactly the same as you but I confirm there is a problem here.

For me your link gives:


  
fi 
  
  
bar 
  


Regards
Sylvain

-Message d'origine-
De: Geoff Howard [mailto:[EMAIL PROTECTED]]
Date: lundi, 13. janvier 2003 21:35
À: [EMAIL PROTECTED]
Objet: RE: file generator error


don't remember seeing a bug fix related to this, but that could be it - I
use a cvs version of 2.1 from early december (12/7 I think).  Joerg, do you
get the result I do on the request generator example (Sylvain too)?

Geoff

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 13, 2003 11:07 AM
> To: [EMAIL PROTECTED]
> Subject: RE: file generator error
>
>
> Hi Joerg,
>
> I'm using Cocoon 2.1 dev but an old version (17.10.2002).
>
> It could be the problem, no?
>
> Geoff: which version do you use?
>
> Regards
> Sylvain
>
> -Message d'origine-
> De: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
> Date: lundi, 13. janvier 2003 16:56
> À: [EMAIL PROTECTED]
> Objet: Re: file generator error
>
>
> Hello Geoff and Sylvain,
>
> I can't confirm a bug using Cocoon 2.1 dev from CVS (2003-01-07).
>
> Using this sitemap snippet
>
> 
> src="http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20wa
> rnings"/>
>
> 
>
> I have this in my core.log, where you can see that the link is resolved
> correctly. Furthermore I get the same result requesting the virus
> warnings from Cocoon and directly from www.moreover.com.
>
> Regards,
>
> Joerg
>
> DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test)
> Thread-9/SourceResolverImpl: Resolving
> 'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings' with
> base 'file:/D:/xml/' in context 'file:/D:/Tomcat/bin/'
> DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test)
> Thread-9/SourceResolverImpl: Resolved to systemID
> 'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings'
> DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test)
> Thread-9/SourceResolverImpl: Making URL from
> http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings
> DEBUG   (2003-01-13) 16:48.59:984   [core.store.transient]
> (/cocoon/joerg/test) Thread-9/MRUMemoryStore: NOT Found key:
> PK_G-file-http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20w
> arnings_S-xml-1
> DEBUG   (2003-01-13) 16:48.59:984   [core.store.persistent]
> (/cocoon/joerg/test) Thread-9/AbstractFilesystemStore: NOT Found file:
> PK_G-file-http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20w
> arnings_S-xml-1
> DEBUG   (2003-01-13) 16:48.59:984   [core.store.transient]
> (/cocoon/joerg/test) Thread-9/MRUMemoryStore: NOT Found key:
> PK_G-file-http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings
> DEBUG   (2003-01-13) 16:48.59:984   [core.store.persistent]
> (/cocoon/joerg/test) Thread-9/AbstractFilesystemStore: NOT Found file:
> PK_G-file-http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings
> DEBUG   (2003-01-13) 16:49.00:234   [core.manager] (/cocoon/joerg/test)
> Thread-9/XMLizerImpl: No mime-type for xmlizing
> http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings,
> guessing text/xml
>
> Geoff Howard wrote:
> >>-Original Message-
> >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> >>Sent: Monday, January 13, 2003 3:25 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: RE: file generator error
> >>
> >>
> >>Hi,
> >>
> >>It means that if I replace the '&' by '&', the link isn't
> >>correct anymore.
> >>The problem seems to be that the Tomcat web server doesn't
> >>convert '&' to '&' and use '&' to retrieve the web page.
> >>
> >>Any idea?
> >>Is it a Tomcat bug?
> >>
> >>Thank you
> >>Sylvain
> >
> >
> > I think I have confirmed some problem - try
> >
> http://localhost:8080/cocoon/samples/system/request.html?foo=bar&a
mp;fee=fi
>
> it gives:
> ...
>   
> 
>   fi
> 
> 
>   fee
> 
>   
> ...
>
> Don't have time to do more than that now.
>
> Geoff Howard


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



[XMLForm] how to dynamically initialize a bean property?

2003-01-14 Thread Sylvain.Thevoz
Hello,

In my XMLForm application I want to initialize a bean property each time I load the 
application because the initialization value changes all the time (to find the 
initialization value I retrieve a value, which is also dynamic, from a database and I 
increment it).

If I initialize the property in the bean constructor, I have seen that the property is 
initialized only the first time I load the application.

How to do that if I want to initialize the property each time?

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: & in url [WAS: file generator error]

2003-01-15 Thread Sylvain.Thevoz
Joerg,

I found the same as you if I type the URL in my browser.

But in my case the problem is that the URL will be parsed through an XML parser.

If I type "&" the XML parser returns me this error:
An error occurred 
The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that 
org.apache.cocoon.ProcessingException says:
The reference to entity "c" must end with the ';' delimiter. 

More precisely:
org.apache.cocoon.ProcessingException: Failed to load sitemap from 
file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap: 
file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap:168:70:org.xml.sax.SAXParseException:
 The reference to entity "c" must end with the ';' delimiter. 


And If I type "&" the XML parser doesn't return an error but the link isn't 
correct anymore because it uses "&" instead of "&".

Sylvain

-Message d'origine-
De: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
Date: mardi, 14. janvier 2003 21:14
À: [EMAIL PROTECTED]
Objet: Re: file generator error


Hello Geoff,

If I type http://127.0.0.1:8080/cocoon/joerg/test?test=test&test2=test2 
in Mozilla URL textbox I get expected


   
 test2
   
   
 test
   


If I type 
http://127.0.0.1:8080/cocoon/joerg/test?test=test&test2=test2 I get 
(IMO also) expected


   
 test2
   
   
 test
   


because & as delimiter for the parameters (not &), so amp; must be 
the beginning of the next parameter name. But I think, that's not the 
problem. The only one is the replacing of the character reference & 
with the character & done by the XML parser. And as I only can point out 
it works for me as shown below. Why, Sylvain, aren't you simply trying 
the same? Afterwards a simple look in the core.log shows the correct 
resolving of & or not.

Regards,

Joerg

Geoff Howard wrote:
> don't remember seeing a bug fix related to this, but that could be it - I
> use a cvs version of 2.1 from early december (12/7 I think).  Joerg, do you
> get the result I do on the request generator example (Sylvain too)?
> 
> Geoff
> 
>>-Message d'origine-
>>De: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
>>
>>Hello Geoff and Sylvain,
>>
>>I can't confirm a bug using Cocoon 2.1 dev from CVS (2003-01-07).
>>
>>Using this sitemap snippet
>>
>>
>>   >src="http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20wa
>>rnings"/>
>>   
>>
>>
>>
>>DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test)
>>Thread-9/SourceResolverImpl: Resolving
>>'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings' with
>>base 'file:/D:/xml/' in context 'file:/D:/Tomcat/bin/'
>>DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test)
>>Thread-9/SourceResolverImpl: Resolved to systemID
>>'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings'
>>DEBUG   (2003-01-13) 16:48.59:984   [core.manager] (/cocoon/joerg/test)
>>Thread-9/SourceResolverImpl: Making URL from
>>http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: & in url [WAS: file generator error]

2003-01-15 Thread Sylvain.Thevoz
Hi Joerg,

Your snippet works well for me (with "&")!

So, if I'm right this means that it isn't a bug but a problem in my code!?

=> I have found that it was a matcher problem in my sitemap!
Now it works!


Thank you all for you help
Sylvain



-Message d'origine-
De: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
Date: mercredi, 15. janvier 2003 10:47
À: [EMAIL PROTECTED]
Objet: Re: & in url [WAS: file generator error]


Hi Sylvain,

yes, we lost the original posting a bit ;-)

[EMAIL PROTECTED] wrote:
> Joerg,
> 
> I found the same as you if I type the URL in my browser.

Nice to hear.

> But in my case the problem is that the URL will be parsed through an
> XML parser.
> 
> If I type "&" the XML parser returns me this error: An error occurred
>  The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode
> notifies that org.apache.cocoon.ProcessingException says: The
> reference to entity "c" must end with the ';' delimiter.
> 
> More precisely: org.apache.cocoon.ProcessingException: Failed to load
> sitemap from
> file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap:
> 
>file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/woc/portal-fw/sitemap.xmap:168:70:org.xml.sax.SAXParseException:
> The reference to entity "c" must end with the ';' delimiter.

That's clear, it must be so. & means "here starts an entity". And in 
contrast to most HTML browsers an XML parser doesn't try to add the 
obviously missing ';'.

> And If I type "&" the XML parser doesn't return an error but the
> link isn't correct anymore because it uses "&" instead of "&".

And here you are wrong. The link *is* correct then. Similar to HTML 
(e.g. ) you *must* escape & to & (HTML browsers only try 
to solve the problem themselves, if they find an & without ;). And as 
you can see below in the quoted message I had it working (& is 
resolved to &). Try to add this little snippet into the sitemap (only 
map:generate + map:serialize), test it, have a look into the core.log 
and tell me, what's wrong with your Cocoon version. Maybe you test a 
newer one, if there was really a bug in the resolving, but I don't 
assume so.

Regards,

Joerg

>>> -Message d'origine- De: Joerg Heinicke
>>> [mailto:[EMAIL PROTECTED]]
>>> 
>>> Hello Geoff and Sylvain,
>>> 
>>> I can't confirm a bug using Cocoon 2.1 dev from CVS (2003-01-07).
>>> 
>>> 
>>> Using this sitemap snippet
>>> 
>>>  >> src="http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20wa
>>>  rnings"/>  
>>> 
>>> 
>>> DEBUG   (2003-01-13) 16:48.59:984   [core.manager]
>>> (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolving 
>>> 'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings'
>>> with base 'file:/D:/xml/' in context 'file:/D:/Tomcat/bin/'
>>> DEBUG (2003-01-13) 16:48.59:984   [core.manager]
>>>(/cocoon/joerg/test) Thread-9/SourceResolverImpl: Resolved to systemID 
>>> 'http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings'
>>>  DEBUG   (2003-01-13) 16:48.59:984   [core.manager]
>>> (/cocoon/joerg/test) Thread-9/SourceResolverImpl: Making URL from
>>>  http://www.moreover.com/cgi-local/page?o=xml&c=Virus%20warnings


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




[XMLForm] xmlform-scope parameter

2003-01-15 Thread Sylvain.Thevoz
Hello,

What is the difference between "request" and "session" for the value of xmlform-scope 
parameter?

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




[XMLForm] terminology question

2003-01-16 Thread Sylvain.Thevoz
Hello,

I'm looking through the XMLForm source code and API and there are many comments that 
speak about "population".

What does it mean exactly?

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: [XMLForm] terminology question

2003-01-16 Thread Sylvain.Thevoz
Hi,

Thank you but my question was about the meaning of the word in the context of XMLForm 
rather than the definition of the word itself.

To say in another way: 
what do you fill with values?
Where do you come from these values?


Regards
Sylvain

-Message d'origine-
De: Sylvain Wallez [mailto:[EMAIL PROTECTED]]
Date: jeudi, 16. janvier 2003 13:55
À: [EMAIL PROTECTED]
Objet: Re: [XMLForm] terminology question


[EMAIL PROTECTED] wrote:

>Hello,
>
>I'm looking through the XMLForm source code and API and there are many comments that 
>speak about "population".
>
>What does it mean exactly?
>

It comes from the verb "populate", which, in this context, means 
something as "fill with values".

Check also http://dictionary.reference.com/search?q=populate

Sylvain (another one)

-- 
Sylvain Wallez  Anyware Technologies
http://www.apache.org/~sylvain   http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: [XMLForm] terminology question

2003-01-16 Thread Sylvain.Thevoz
Thank you!

Sorry for my ignorance but does it mean that in XMLForm a population is proceeded each 
time you invoke the action?

Thank you
Sylvain


-Message d'origine-
De: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
Date: jeudi, 16. janvier 2003 14:11
À: [EMAIL PROTECTED]
Objet: Re: [XMLForm] terminology question


The "population" term comes from JavaBeans, Struts, etc. and basicaly it
means filling (populating) java bean properties with values from some other
sources, e.g. XML, map, another bean properties, servlet request, etc.

Konstantin

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 15:51
Subject: [XMLForm] terminology question


Hello,

I'm looking through the XMLForm source code and API and there are many
comments that speak about "population".

What does it mean exactly?

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: [XMLForm] terminology question

2003-01-16 Thread Sylvain.Thevoz
OK, thank you very much.

I think it could be very useful to have something like your description in the XMLForm 
documentation for the newbie users like me. It just to start with a minimal knowledge.

>Hope this helps. Of course, the best way to learn how the things happen is
>to look at the source and try to implement something simple and so on.

You're right. This is what I'm trying to do.

Regards
Sylvain


-Message d'origine-
De: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
Date: jeudi, 16. janvier 2003 15:09
À: [EMAIL PROTECTED]
Objet: Re: [XMLForm] terminology question


Ok, I'll try to answer again.

>what do you fill with values?

The Form object which is a wrapper for the underlying data model object. It
can be either a JavaBean or a DOM object. And that Form is filled by values
using XPath expressions which are processed by JXPath
(http://jakarta.apache.org/commons/jxpath). The Form object is filled by
values when a request is received and processed by the XMLForms action
(don't remember the exact name, sorry).

>Where do you come from these values?

So, the values come from the request (Http servlet request) parameters,
which should have XPath name, e.g.: '/customer/firstname=John', etc.

As the XMLForm framework was inspired by Struts then you'll find more
detailed description of concepts at Struts' page:
http://jakarta.apache.org/struts

Hope this helps. Of course, the best way to learn how the things happen is
to look at the source and try to implement something simple and so on.

Konstantin


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 16:07
Subject: RE: [XMLForm] terminology question


Hi,

Thank you but my question was about the meaning of the word in the context
of XMLForm rather than the definition of the word itself.

To say in another way:
what do you fill with values?
Where do you come from these values?


Regards
Sylvain

-Message d'origine-
De: Sylvain Wallez [mailto:[EMAIL PROTECTED]]
Date: jeudi, 16. janvier 2003 13:55
À: [EMAIL PROTECTED]
Objet: Re: [XMLForm] terminology question


[EMAIL PROTECTED] wrote:

>Hello,
>
>I'm looking through the XMLForm source code and API and there are many
comments that speak about "population".
>
>What does it mean exactly?
>

It comes from the verb "populate", which, in this context, means
something as "fill with values".

Check also http://dictionary.reference.com/search?q=populate

Sylvain (another one)

--
Sylvain Wallez  Anyware Technologies
http://www.apache.org/~sylvain   http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




[XMLForm] initialization of the model

2003-01-20 Thread Sylvain.Thevoz
Hi all,
 
I'm trying to initialize the model of a XMLForm app each time I call this app.
This app is launching from the Cocoon portal, in an authenticated environment.
 
I have followed the solution coming from the posts in this list (thank you for that). 
The solution was to override the getFormModel() method in the Action class to 
initialize the model inside.
 
I've done this but I still have a problem: the initialization is proceeded only the 
first time I call the app (the action) and not each time.
What should I do for doing this?
Is there maybe a session problem?
 
Any help would be greatly appreciated.
Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Portal - NullPointerException Error

2003-01-20 Thread Sylvain.Thevoz
Hello,
 
What have you modified?
 
Regards
Sylvain

-Message d'origine-
De: Richard Reyes [mailto:[EMAIL PROTECTED]]
Date: lundi, 20. janvier 2003 06:39
À: cocoon-users
Objet: Portal - NullPointerException Error


Hi Guys,
 
I've been trying to modify the cocoon portal configurations to suit my needs, when i 
accidentally stumbled into this nullpointerexception error...
 
Original exception : java.lang.NullPointerException 
at 
org.apache.cocoon.webapps.portal.components.PortalManager.showPortal(PortalManager.java:740)
 
at 
org.apache.cocoon.webapps.portal.generation.PortalGenerator.generate(PortalGenerator.java:82)
 
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:537)
 
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:213)
 
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:481)
 
at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:148)
 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
 
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
 
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
 
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
 
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
 
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
 
at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:134)
 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
 
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
 
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
 
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
 
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
 
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
 
at org.apache.cocoon.Cocoon.process(Cocoon.java:600) 
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) 
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:2415) 
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:170) 
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.invo

RE: Portal - NullPointerException Error

2003-01-20 Thread Sylvain.Thevoz
Hi Richard,

You have to modify:
-sitemap
-views (in resources\ directory)
-stylessheets (in styles\ directory)
-coplets configuration (Portal Management in the portal)

Search for the word in each one.

Regards
Sylvain

-Message d'origine-
De: Richard Reyes [mailto:[EMAIL PROTECTED]]
Date: lundi, 20. janvier 2003 10:36
À: [EMAIL PROTECTED]
Objet: Re: Portal - NullPointerException Error


mainly naming conventions, ( yet ). i would like to just remove the
sunspotdemo word. anything you need to help you help me??

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 20, 2003 4:38 PM
Subject: RE: Portal - NullPointerException Error


Hello,

What have you modified?

Regards
Sylvain

-Message d'origine-
De: Richard Reyes [mailto:[EMAIL PROTECTED]]
Date: lundi, 20. janvier 2003 06:39
À: cocoon-users
Objet: Portal - NullPointerException Error


Hi Guys,

I've been trying to modify the cocoon portal configurations to suit my
needs, when i accidentally stumbled into this nullpointerexception error...

Original exception : java.lang.NullPointerException
at
org.apache.cocoon.webapps.portal.components.PortalManager.showPortal(PortalM
anager.java:740)
at
org.apache.cocoon.webapps.portal.generation.PortalGenerator.generate(PortalG
enerator.java:82)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLP
ipeline(AbstractProcessingPipeline.java:537)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
.processXMLPipeline(AbstractCachingProcessingPipeline.java:213)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs
tractProcessingPipeline.java:481)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:148)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:164)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:143)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:317)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:299)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:134)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:164)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:143)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:317)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:299)
at org.apache.cocoon.Cocoon.process(Cocoon.java:600)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)
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:260)
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:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPi

RE: [XMLForm] initialization of the model

2003-01-20 Thread Sylvain.Thevoz
Hi Ivelin,

I have tried to put these lines in the prepare() method and it works:

code
Form.remove(getObjectModel(), getFormId());
getForm().addFormListener(this);
code

But to understand this thing could you tell me:
- the getFormModel() method is called the first time you call the app, right?
- is the getFormModel() method called before or after the prepare() method?
- the prepare() method is called each time you call the app, right?

Thank you
Regards
Sylvain


-Message d'origine-
De: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
Date: lundi, 20. janvier 2003 15:18
À: [EMAIL PROTECTED]
Objet: Re: [XMLForm] initialization of the model


Try the overriding reset()


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 20, 2003 2:53 AM
Subject: [XMLForm] initialization of the model


Hi all,

I'm trying to initialize the model of a XMLForm app each time I call this
app.
This app is launching from the Cocoon portal, in an authenticated
environment.

I have followed the solution coming from the posts in this list (thank you
for that). The solution was to override the getFormModel() method in the
Action class to initialize the model inside.

I've done this but I still have a problem: the initialization is proceeded
only the first time I call the app (the action) and not each time.
What should I do for doing this?
Is there maybe a session problem?

Any help would be greatly appreciated.
Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: .Net port of Cocoon

2003-01-23 Thread Sylvain.Thevoz
Hi Luca,

>Hmm I never restart the Servlet container (not the VM) for debugging.
Could you explain how you debug your Cocoon app?


Regards
Sylvain


-Message d'origine-
De: Luca Morandini [mailto:[EMAIL PROTECTED]]
Date: jeudi, 23. janvier 2003 15:41
À: [EMAIL PROTECTED]
Objet: RE: .Net port of Cocoon


Andreas,

wait a second:

> I mean no memory leaks in the VM

Memory leaks ? I've got applications in operation for months without having a single 
hiccup... aren't you confusing the Servlet
container (say, a buggy verisone of Tomcat) with Cocoon ?


> no complicated superlong configration files

That's the con side of flexibility: I hate those GUI-based administration tools that 
don't allow you to do much.


> no VM restarting for debugging

Hmm I never restart the Servlet container (not the VM) for debugging: could you 
please explain ?

Regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Andreas Bednarz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 3:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: .Net port of Cocoon
>
>
> Hi Derek,
>
> thank you very much for your comment. Yes, it is all true and I am not a
> friend of MS closed sources in any way. We know Java very well but you
> hardly get peoply who can do the real thinks with Cocoon and can develop
> a real application ... not just some test cases and handler forms. In
> thins case a .NET application would not be easier to handle too, but
> maybe there is some company who can provide a Cocoon Clone which is as
> easy to use as PHP. I mean no memory leaks in the VM, no complicated
> superlong configration files, no VM restarting for debugging etc
>
> Andreas Bednarz, Germany
>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: .Net port of Cocoon

2003-01-23 Thread Sylvain.Thevoz
Hi Vadim,

>... and shoud not be: all IDEs as well as JDK has debuggers. Use them 
>remotely or start your servlet engine from under it - in either case you 
>can put breakpoints and debug your Java.

Do you include Eclipse?

Sylvain


-Message d'origine-
De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Date: jeudi, 23. janvier 2003 17:05
À: [EMAIL PROTECTED]
Objet: Re: .Net port of Cocoon


Luca Morandini wrote:

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, January 23, 2003 3:55 PM
>>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>>Subject: RE: .Net port of Cocoon
>>
>>
>
>  
>
>>Hi Luca,
>>
>>
>>
>>>Hmm I never restart the Servlet container (not the VM) for debugging.
>>>  
>>>
>>Could you explain how you debug your Cocoon app?
>>
>>
>
>By looking at the log files (you can easily configure them via logkit.xconf) and by 
>using views (meaning: looking at the output of
>intermediate steps in the pipeline).
>
>Granted, there is no debugger in Cocoon,
>

... and shoud not be: all IDEs as well as JDK has debuggers. Use them 
remotely or start your servlet engine from under it - in either case you 
can put breakpoints and debug your Java.

/me goes back to lurking
Vadim


> but no need to re-start the container either.
>
>Regards,
>
>-
>   Luca Morandini
>   GIS Consultant
>  [EMAIL PROTECTED]
>http://utenti.tripod.it/lmorandini/index.html
>-
>  
>



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




[XMLForm] Bean initialization

2003-01-24 Thread Sylvain.Thevoz
Hello everybody,

Few weeks ago I talked about a problem when I tried to initialize the Bean in my 
XMLForm app.
The Bean initialization should load an XML file and save it into a Node variable 
declared in the Bean.
This Node is used to list possible values in a listbox for the property 
"workstationType".

The problem was that the list of the listbox was empty on the first page of the form 
and the Bean didn't seem to be initialized. 
When you went to the next page and went back to the first, the list was suddenly full 
and all was OK. It seemed that the Bean was initialized only at the second page.

It's very strange because the Bean seemed to be initialized but the list for the 
listbox was empty. But there was the right number of spaces to display the list (you 
had 5 lines in the view if there was 5 entries in the list).

I have new information about this problem:

1) I tried to override the getFormModel() method in the Action and put the Bean 
initialization into this method. The problem was still exactly the same!

2) I conclude that it's not a Node initialization problem. The problem is when you 
want to display the list at the first page.
Now there is a strange thing: if you assign something in the property workstationType 
within the getFormModel(), the initialization works well and you have the full list at 
the first page (but you don't see the value you have assigned in the getFormModel() 
method!).

WHAT HAPPEN!!!

If someone has an idea?


Thank you very much
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




[XMLForm] Bean initialization

2003-01-27 Thread Sylvain.Thevoz
Hello everybody,

I repost my question:

Few weeks ago I talked about a problem when I tried to initialize the Bean in my 
XMLForm app.
The Bean initialization should load an XML file and save it into a Node variable 
declared in the Bean.
This Node is used to list possible values in a listbox for the property 
"workstationType".

The problem was that the list of the listbox was empty on the first page of the form 
and the Bean didn't seem to be initialized. 
When you went to the next page and went back to the first, the list was suddenly full 
and all was OK. It seemed that the Bean was initialized only at the second page.

It's very strange because the Bean seemed to be initialized but the list for the 
listbox was empty. But there was the right number of spaces to display the list (you 
had 5 lines in the view if there was 5 entries in the list).

I have new information about this problem:

1) I tried to override the getFormModel() method in the Action and put the Bean 
initialization into this method. The problem was still exactly the same!

2) I conclude that it's not a Node initialization problem. The problem is when you 
want to display the list at the first page.
Now there is a strange thing: if you assign something in the property workstationType 
within the getFormModel(), the initialization works well and you have the full list at 
the first page (but you don't see the value you have assigned in the getFormModel() 
method!).

WHAT HAPPEN!!!

If someone has an idea?


Thank you very much
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




tag in XMLForm

2003-01-28 Thread Sylvain.Thevoz
Hello everybody,

I have a DOM node (named "listWorkstations") like this:


  U74601
  U68111
  U74600
  U5544
  U20
  u21


I want to display it in a XMLForm.
I think the  is a good solution but it doesn't work.

Here is the code:
---code---

  Workstations: 
  
workstation: 
  

---code---


If someone can help me?

Thank you very much
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




XMLForm namespace

2003-01-28 Thread Sylvain.Thevoz
Hello,

This XMLForm namespace doesn't work:
http://xml.apache.org/cocoon/xmlform/2002

What is the correct namespace link?

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




XMLFormTransformer error

2003-01-29 Thread Sylvain.Thevoz
Hello,

The XMLFormTransformer send me back an error: it find a  tag that is not in my 
view page!
The error message is:
ERROR   Thread-5/XMLFormTransformer: pass through element [group]
ERROR   Thread-5/XMLFormTransformer: unknown element [group]

Here is the log (cleaned):

DEBUG   Thread-5/AbstractSAXTransformer: BEGIN setup 
resolver=org.apache.cocoon.environment.http.HttpEnvironment@2f4309, 
objectModel={httpresponse=org.apache.coyote.tomcat4.CoyoteResponseFacade@5a2dc4, 
response=org.apache.cocoon.environment.http.HttpResponse@72c47b, 
context=org.apache.cocoon.environment.http.HttpContext@d4f27, 
source-resolver=org.apache.cocoon.environment.http.HttpEnvironment@2f4309, 
request=org.apache.cocoon.environment.http.HttpRequest@4187c8, 
httprequest=org.apache.coyote.tomcat4.CoyoteRequestFacade@395f72, 
httpservletcontext=org.apache.catalina.core.ApplicationContextFacade@22c9df}, 
src=null, parameters=org.apache.avalon.framework.parameters.Parameters@73552f
DEBUG   Thread-5/AbstractSAXTransformer: END setup
DEBUG   Thread-5/AbstractSAXTransformer: BEGIN setupTransforming
DEBUG   Thread-5/AbstractSAXTransformer: END setupTransforming
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=form, raw=xf:form, 
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption, 
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption)
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=repeat, raw=xf:repeat, 
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/AbstractSAXTransformer: BEGIN startRecording
DEBUG   Thread-5/AbstractSAXTransformer: END startRecording
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement 
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=output, raw=xf:output, 
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption, 
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption)
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=output, raw=xf:output)
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=repeat, raw=xf:repeat)
DEBUG   Thread-5/AbstractSAXTransformer: BEGIN endRecording
DEBUG   Thread-5/AbstractSAXTransformer: END endRecording fragment=
http://xml.apache.org/cocoon/xmlform/2002"; ref="salut">
Workstation: 
  

DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=group, raw=xf:group, 
attr=org.xml.sax.helpers.AttributesImpl@30d33c)
ERROR   Thread-5/XMLFormTransformer: pass through element [group]
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=group, raw=xf:group)
ERROR   Thread-5/XMLFormTransformer: unknown element [group]
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=group, raw=xf:group, 
attr=org.xml.sax.helpers.AttributesImpl@7c468e)
ERROR   Thread-5/XMLFormTransformer: pass through element [group]
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=group, raw=xf:group)
ERROR   Thread-5/XMLFormTransformer: unknown element [group]
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
etc...



My view page is:



http://xml.apache.org/cocoon/xmlform/2002";>
  
Result
   

  
  
   


  Nex

RE: XMLForm problem: PLEASE HELP (att. XMLForm architects and specialists)

2003-01-30 Thread Sylvain.Thevoz
Hi Ivelin,

Could you tell me what is the best solution to debug this Java classes at running time?

Thanks for your help
Sylvain

-Message d'origine-
De: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
Date: jeudi, 30. janvier 2003 04:53
À: [EMAIL PROTECTED]
Objet: Re: XMLForm problem: PLEASE HELP (att. XMLForm architects and
specialists)



Sylvain,

did you try to debug the AbstractXMLFormAction and the XMLFormTransformer.
This is probably your best bet for finding the problem.

-=Ivelin=-
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 10:02 AM
Subject: XMLForm problem: PLEASE HELP (att. XMLForm architects and
specialists)


Hello,

Is there someone in the list that could help me to find a XMLForm problem
that I have for few weeks!
I have read all the XMLForm doc and source code but I really don't
understand what is this problem.
I don't have enough experience to find the solution.
My project is totally based on Cocoon and XMLForm and I can't move forward
for days in it.

The problem happens when I try to display a Node or a List with a 
tag.
The first time I load the view, the page is empty (but the List or Node
contains data).
If now I refresh my browser, the page is full and all is OK!


Here is part of the xmlform.log (cleaned):

DEBUG   Thread-5/AbstractSAXTransformer: BEGIN setup
resolver=org.apache.cocoon.environment.http.HttpEnvironment@2f4309,
objectModel={httpresponse=org.apache.coyote.tomcat4.CoyoteResponseFacade@5a2
dc4, response=org.apache.cocoon.environment.http.HttpResponse@72c47b,
context=org.apache.cocoon.environment.http.HttpContext@d4f27,
source-resolver=org.apache.cocoon.environment.http.HttpEnvironment@2f4309,
request=org.apache.cocoon.environment.http.HttpRequest@4187c8,
httprequest=org.apache.coyote.tomcat4.CoyoteRequestFacade@395f72,
httpservletcontext=org.apache.catalina.core.ApplicationContextFacade@22c9df}
, src=null,
parameters=org.apache.avalon.framework.parameters.Parameters@73552f
DEBUG   Thread-5/AbstractSAXTransformer: END setup
DEBUG   Thread-5/AbstractSAXTransformer: BEGIN setupTransforming
DEBUG   Thread-5/AbstractSAXTransformer: END setupTransforming
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=form, raw=xf:form,
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption,
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption)
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=repeat, raw=xf:repeat,
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/AbstractSAXTransformer: BEGIN startRecording
DEBUG   Thread-5/AbstractSAXTransformer: END startRecording
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=output, raw=xf:output,
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption,
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption)
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=output, raw=xf:output)
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=repeat, raw=xf:repeat)
DEBUG   Thread-5/AbstractSAXTransformer: BEGIN endRecording
DEBUG   Thread-5/AbstractSAXTransformer: END endRecording fragment=
http://xml.apache.org/cocoon/xmlform/2002"; ref="salut">
Workstation: 
  

DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=group, raw=xf:group,
attr=org.xml.sax.helpers.AttributesImpl@30d33c)
ERROR   Thread-5/XMLFormTransformer: pass through element [group]
DEBUG   Thread-5/XMLFo

XMLForm problem: PLEASE HELP (att. XMLForm architects and specialists)

2003-01-29 Thread Sylvain.Thevoz
Hello,

Is there someone in the list that could help me to find a XMLForm problem that I have 
for few weeks!
I have read all the XMLForm doc and source code but I really don't understand what is 
this problem.
I don't have enough experience to find the solution.
My project is totally based on Cocoon and XMLForm and I can't move forward for days in 
it.

The problem happens when I try to display a Node or a List with a  tag.
The first time I load the view, the page is empty (but the List or Node contains data).
If now I refresh my browser, the page is full and all is OK!


Here is part of the xmlform.log (cleaned):

DEBUG   Thread-5/AbstractSAXTransformer: BEGIN setup 
resolver=org.apache.cocoon.environment.http.HttpEnvironment@2f4309, 
objectModel={httpresponse=org.apache.coyote.tomcat4.CoyoteResponseFacade@5a2dc4, 
response=org.apache.cocoon.environment.http.HttpResponse@72c47b, 
context=org.apache.cocoon.environment.http.HttpContext@d4f27, 
source-resolver=org.apache.cocoon.environment.http.HttpEnvironment@2f4309, 
request=org.apache.cocoon.environment.http.HttpRequest@4187c8, 
httprequest=org.apache.coyote.tomcat4.CoyoteRequestFacade@395f72, 
httpservletcontext=org.apache.catalina.core.ApplicationContextFacade@22c9df}, 
src=null, parameters=org.apache.avalon.framework.parameters.Parameters@73552f
DEBUG   Thread-5/AbstractSAXTransformer: END setup
DEBUG   Thread-5/AbstractSAXTransformer: BEGIN setupTransforming
DEBUG   Thread-5/AbstractSAXTransformer: END setupTransforming
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=form, raw=xf:form, 
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption, 
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption)
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=repeat, raw=xf:repeat, 
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/AbstractSAXTransformer: BEGIN startRecording
DEBUG   Thread-5/AbstractSAXTransformer: END startRecording
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement 
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=output, raw=xf:output, 
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption, 
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption)
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=output, raw=xf:output)
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=repeat, raw=xf:repeat)
DEBUG   Thread-5/AbstractSAXTransformer: BEGIN endRecording
DEBUG   Thread-5/AbstractSAXTransformer: END endRecording fragment=
http://xml.apache.org/cocoon/xmlform/2002"; ref="salut">
Workstation: 
  

DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=group, raw=xf:group, 
attr=org.xml.sax.helpers.AttributesImpl@30d33c)
ERROR   Thread-5/XMLFormTransformer: pass through element [group]
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=group, raw=xf:group)
ERROR   Thread-5/XMLFormTransformer: unknown element [group]
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement 
uri=http://xml.apache.org/cocoon/xmlform/2002, name=group, raw=xf:group, 
attr=org.xml.sax.helpers.AttributesImpl@7c468e)
ERROR   Thread-5/XMLFormTransformer: pass through element [group]
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingEle

How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo

2003-02-10 Thread Sylvain.Thevoz
Is there someone that could explain me how to load Cocoon into a Tomcat project in 
Eclipse?
This type of project comes from the Sysdeo plugin which allow to run Tomcat into 
Eclipse.

Thanks
Regards
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo

2003-02-11 Thread Sylvain.Thevoz
Hi Martin,

I want to develop application like you. And I have installed this Tomcat plugin to 
debug my app and the Cocoon sources. I don't want to "work" at the Cocoon sources, 
only understand how it works for debugging.

Yes please. A description of your environment in Eclipse would be greatly appreciated.

Thank you very much
Regards
Sylvain

-Message d'origine-
De: Martin Dulisch [mailto:[EMAIL PROTECTED]]
Date: mardi, 11. février 2003 09:23
À: [EMAIL PROTECTED]
Objet: Re: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Hi Sylvain,

what do you want to do with this project? Application development with
cocoon or do you want to work at the cocoon sources?

I do the first one. If you want to do the same I could describe my
environment in eclipse.

Martin

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 4:55 PM
Subject: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Is there someone that could explain me how to load Cocoon into a
Tomcat project in Eclipse?
This type of project comes from the Sysdeo plugin which allow to run
Tomcat into Eclipse.

Thanks
Regards
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo

2003-02-11 Thread Sylvain.Thevoz
Martin,

You said that you run Tomcat out of Eclipse. So you don't need a /WEB-INF directory in 
your Eclipse project, right?
The Tomcat Eclipse runs Tomcat inside Eclipse. What is exactly the difference between 
outside and inside?

To start/stop (outside) Tomcat from Eclipse, what do you change in windows/Preferences?

At this time I don't want to develop components but I would like to debug the existing 
components. Would be better to create Java project?


Thanks again
Best.
Sylvain



-Message d'origine-
De: Martin Dulisch [mailto:[EMAIL PROTECTED]]
Date: mardi, 11. février 2003 10:16
À: [EMAIL PROTECTED]
Objet: Re: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Sylvain,

I use the tomcat plug-in "only" to start/stop tomcat out of eclipse. I
dont use the tomcat project type.

If you want to develop java components like actions or transformers
than create a java project. If you do not develop java components than
you can create a simple project. The project folder should be in both
cases the tomcat/webapps/cocoon folder.

Java Build Path settings (Properties of the project):
- Build output folder: WEB-INF/classes
- Libraries: add libs from WEB-INF/lib you need to compile

To start/stop tomcat set the tomcat path in Windows/Preferences. The
tomcat plug-in starts tomcat in debug mode. So you can set breakpoints
in your source files. I use tomcat 4.1.X. Here hot code replacement
works for me.

For the non java work I use the sunBow plug-in :)

Hope I did not have forget anything.

Martin





- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 9:47 AM
Subject: RE: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Hi Martin,

I want to develop application like you. And I have installed this
Tomcat plugin to debug my app and the Cocoon sources. I don't want to
"work" at the Cocoon sources, only understand how it works for
debugging.

Yes please. A description of your environment in Eclipse would be
greatly appreciated.

Thank you very much
Regards
Sylvain

-Message d'origine-
De: Martin Dulisch [mailto:[EMAIL PROTECTED]]
Date: mardi, 11. février 2003 09:23
À: [EMAIL PROTECTED]
Objet: Re: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Hi Sylvain,

what do you want to do with this project? Application development with
cocoon or do you want to work at the cocoon sources?

I do the first one. If you want to do the same I could describe my
environment in eclipse.

Martin

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 4:55 PM
Subject: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Is there someone that could explain me how to load Cocoon into a
Tomcat project in Eclipse?
This type of project comes from the Sysdeo plugin which allow to run
Tomcat into Eclipse.

Thanks
Regards
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: XForms - and persistance layer - Xindice or other cleverness

2003-02-12 Thread Sylvain.Thevoz
Hi Dirk-Willem,

See the How-to at Cocoon Wiki:
http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice


Regards

Sylvain

-Message d'origine-
De: Dirk-Willem van Gulik [mailto:[EMAIL PROTECTED]]
Date: mercredi, 12. février 2003 09:01
À: [EMAIL PROTECTED]
Objet: XForms - and persistance layer - Xindice or other cleverness



Is there a well known receipe to generate the JavaBeans which XForms needs
to hold the data for each form ? Or a generic mapper whcih given the xform
data lets me store such directly in Xindice or, through somethign like an
automated SQL mapping, elsewhere ?

What I am looking for is a data definition driven
- form
- validation
- storage construction. Where a change in the data definition,
followed if needed by a purge of the database and a
restructure/rebuild/remake, will drive the (html) forms, table/storage
structs and validation. A recompile of generated java code is fine too.

Data defintion is obviously not to be interpreted too narrow; i.e. it may
have companion definitions for UI or storage hints,

Thanks for your collective wisdom !

Dw




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo

2003-02-12 Thread Sylvain.Thevoz
Hi Robert,

I want to use the Eclipse debugger. I dont' if it is JPD compatible but I think...

In Eclipse, how do you attach Tomcat remotely?

Thanks
Regards
Sylvain


-Message d'origine-
De: Robert Simmons [mailto:[EMAIL PROTECTED]]
Date: mardi, 11. février 2003 21:55
À: [EMAIL PROTECTED]
Objet: Re: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Debugging is easy if you have a JPD compatible debugger. Look at the Java
documentation on the "Java" command for info on how to run tomcat in debug
mode and then attach to it remotely. I use this technique with JBoss all the
time.

-- Robert

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 2:03 PM
Subject: RE: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Martin,

You said that you run Tomcat out of Eclipse. So you don't need a /WEB-INF
directory in your Eclipse project, right?
The Tomcat Eclipse runs Tomcat inside Eclipse. What is exactly the difference
between outside and inside?

To start/stop (outside) Tomcat from Eclipse, what do you change in
windows/Preferences?

At this time I don't want to develop components but I would like to debug the
existing components. Would be better to create Java project?


Thanks again
Best.
Sylvain



-Message d'origine-
De: Martin Dulisch [mailto:[EMAIL PROTECTED]]
Date: mardi, 11. février 2003 10:16
À: [EMAIL PROTECTED]
Objet: Re: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Sylvain,

I use the tomcat plug-in "only" to start/stop tomcat out of eclipse. I
dont use the tomcat project type.

If you want to develop java components like actions or transformers
than create a java project. If you do not develop java components than
you can create a simple project. The project folder should be in both
cases the tomcat/webapps/cocoon folder.

Java Build Path settings (Properties of the project):
- Build output folder: WEB-INF/classes
- Libraries: add libs from WEB-INF/lib you need to compile

To start/stop tomcat set the tomcat path in Windows/Preferences. The
tomcat plug-in starts tomcat in debug mode. So you can set breakpoints
in your source files. I use tomcat 4.1.X. Here hot code replacement
works for me.

For the non java work I use the sunBow plug-in :)

Hope I did not have forget anything.

Martin





- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 9:47 AM
Subject: RE: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Hi Martin,

I want to develop application like you. And I have installed this
Tomcat plugin to debug my app and the Cocoon sources. I don't want to
"work" at the Cocoon sources, only understand how it works for
debugging.

Yes please. A description of your environment in Eclipse would be
greatly appreciated.

Thank you very much
Regards
Sylvain

-Message d'origine-
De: Martin Dulisch [mailto:[EMAIL PROTECTED]]
Date: mardi, 11. février 2003 09:23
À: [EMAIL PROTECTED]
Objet: Re: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Hi Sylvain,

what do you want to do with this project? Application development with
cocoon or do you want to work at the cocoon sources?

I do the first one. If you want to do the same I could describe my
environment in eclipse.

Martin

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 4:55 PM
Subject: How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo


Is there someone that could explain me how to load Cocoon into a
Tomcat project in Eclipse?
This type of project comes from the Sysdeo plugin which allow to run
Tomcat into Eclipse.

Thanks
Regards
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


--

Cocoon Portal authentication: how to retrieve user

2003-02-14 Thread Sylvain.Thevoz
Hello,

I'm using the Cocoon Portal.
I develop a new application that will called from a coplet (link).

For this application, I need to retrieve the current User of the Portal session.

How can I do that?

Thanks
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: extending XMLForms for different kinds of models...opinions?

2003-02-14 Thread Sylvain.Thevoz
Hi Josema,

Could you describe the advantages and the possible application of this new feature.

Regards
Sylvain


-Message d'origine-
De: Josema Alonso [mailto:[EMAIL PROTECTED]]
Date: vendredi, 14. février 2003 14:08
À: Cocoon-Users
Objet: extending XMLForms for different kinds of models...opinions?


Dear all,

I need your suggestions and opinions in extending the current XMLForm model
approach. If you use XMLForm or are thinking about using it soon, I'd
suggest youy to read this message and send some feedback to the list.

Some days ago, and with some ideas I exchanged with Ivelin, I made a how-to
that should help users on using XMLForm with Xindice for storing XML models.
It is at Wiki (http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice) and
made its way into the CVS a few days ago.

In this how-to I explored new ways of storing the form model. This new way
the XML model is stored in a file in the system with an empty structure.
Then it is loaded into a JXPath Container and manipulated from there. The
getFormModel() is overriden so you don't need a Bean, but just the file.

Ivelin thought this could be a great addition to the framework, so we were
discussing how to make this available for the end user.

We exchanged some ideas and they led us to incorporating some mechanism to
the sitemap. We were thinking about a prefix. This way, passing the model
parameter to the form would be like this:


The 'java:' prefix would be used for java models. If you would like to use
the pure XML model approach you could do something like:


Of course, one of the approaches could be made the default one so this could
make life easier for most used models declaring them implicit:


I hope I explained it clearly. Now I need your feedback. I'd like to know if
this make sense to you and if so, we should decide which of the two
approaches should be the implicit one, so the AbstractXMLFormAction would be
modified accordingly.
Maybe some of you would prefer to see it implemented but having the java
models as the implicit ones, so you won't need to change your working
xmlforms in order to use it in the future 2.1. If you feel that way, please
say so.

Best,
Josema.


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




missing org.xml.sax.EntityResolver during Cocoon build

2003-02-27 Thread Sylvain.Thevoz
Hello,

I have this error when I try to build a Cocoon 2.1-dev snapshot (january 29, 2003) 
within an Eclipse project:
"This compilation unit indirectly references the missing type 
org.xml.sax.EntityResolver (typically some required class file is referencing a type 
outside the classpath)".

I think I need some xml librairies.
If I try to add the xml-apis.jar library (from the endorsed folder), the build process 
returns 6500 errors!

Which libraries do I need?

I'm using Tomcat 4.1.12 with JDK 1.3.1_03


Thanks for your help
Sylvain (T)

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



missing org.xml.sax.EntityResolver during Cocoon build

2003-02-27 Thread Sylvain.Thevoz
Hello,

I have this error when I try to build a Cocoon 2.1-dev snapshot (january 29, 2003) 
within an Eclipse project:
"This compilation unit indirectly references the missing type 
org.xml.sax.EntityResolver (typically some required class file is referencing a type 
outside the classpath)".

I think I need some xml librairies.
If I try to add the xml-apis.jar library (from the endorsed folder), the build process 
returns 6500 errors!

Which libraries do I need?

I'm using Tomcat 4.1.12 with JDK 1.3.1_03


Thanks for your help
Sylvain (T)

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



sitemap error after building cocoon project with Eclipse

2003-02-28 Thread Sylvain.Thevoz
Hello,

Is there someone that have seen this error below?

After building my Cocoon project in Eclipse (without error), the cocoon app returns 
this error when I try to load, for example, the samples/ page:

org.apache.cocoon.ProcessingException: Failed to load sitemap from 
file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/samples/sitemap.xmap: 
org.apache.avalon.framework.configuration.ConfigurationException: Type 'file' is not 
defined for 'generate' at 
file:/C:/jakarta-tomcat-4.1.12/webapps/cocoon/samples/sitemap.xmap:117:56


Before the compilation with Eclipse, the Cocoon app works perfectly.
It seems maybe that the app doesn't find the file generator component (a JAR lib)...


Any help will be greatly appreciated
Thanks
Sylvain (T)

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



Who use the Tomcat SYSDEO plugin for Eclipse?

2003-03-03 Thread Sylvain.Thevoz
Hello,

Is there someone that use the Tomcat plugin for Eclipse from Sysdeo and work with 
Cocoon and this plugin??

If yes, I need help to load and configure my cocoon Tomcat Project.


Thanks
Sylvain

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



RE: Handle Error

2003-03-07 Thread Sylvain.Thevoz
What URL do you use?

Sylvain (T)

-Message d'origine-
De: zze-MORY Nicolas FTRD/DMI/REN [mailto:[EMAIL PROTECTED]
Date: vendredi, 7. mars 2003 16:43
À: [EMAIL PROTECTED]
Objet: Handle Error



hello, it's me again. 
I a very poor newbie with cocoon.
I'm trying since today 8am to produce a good error page 404 when a document not found 
by cocoon. So i'm using handle error. But it doesn't work with me. I  tried to find 
information which can help me and i found nothing. :( If anyone can help me ?

i join my sitemap.xmap :



http://apache.org/cocoon/sitemap/1.0";>
  

  


  


  


  
  
  
  
  
-//W3C//DTD XHTML 1.0
Strict//EN
   
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
UTF-8
  


  

  
  

  



  
  



  
  


  
  


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



Portal error (Cocoon-2.1-dev samples)

2003-03-12 Thread Sylvain.Thevoz
Hello,

I'm running a Cocoon-2.1-dev snapshot from 29 january 2003 with JDK 1.3.1 and Tomcat 
4.1.12.

When I try to run the portal sample, it produces this error:

The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that 
org.apache.cocoon.ProcessingException says:

Application not found: sunspotdemo 

More precisely:

org.apache.cocoon.ProcessingException: Application not found: sunspotdemo 
at 
org.apache.cocoon.webapps.authentication.components.AuthenticationManager.checkAuthentication(AuthenticationManager.java:371)
 
at org.apache.cocoon.webapps.authentication.acting.AuthAction.act(AuthAction.java:105) 
at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:133)
 
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
 
 


Could you help me?

Thanks
Sylvain

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



XMLForm: how to display arrays

2003-03-17 Thread Sylvain.Thevoz
Hello,

I'm using XMLForm to allow user to query a database.

How can I display results data in an array like this:

RESULTS:

NameTypeOwner   OS
--
U1  Desktop Mob Wnt
U2  Laptop  Mob Wxp


Is there a way to do this with XForms?

Thanks
Sylvain (T)

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



RE: XMLForm: how to display arrays

2003-03-17 Thread Sylvain.Thevoz
Hi Ivelin,

How do you create columns with repeat tag?

Have you an example?

Thanks
Sylvain 

-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: lundi, 17. mars 2003 15:27
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to display arrays


the repeat tag should help.

-=Ivelin=-
- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 3:37 AM
Subject: XMLForm: how to display arrays


Hello,

I'm using XMLForm to allow user to query a database.

How can I display results data in an array like this:

RESULTS:

Name Type Owner OS
   --
U1 Desktop Mob Wnt
U2 Laptop Mob Wxp


Is there a way to do this with XForms?

Thanks
Sylvain (T)

-
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: Eclipse, Tomcat and Sysdeo Plugin

2003-03-20 Thread Sylvain.Thevoz
Hello,

I'm using this plugin and it works fine but I have:

Windows NT
Eclipse 2.0 (release)
JDK 1.3.1_03
Tomcat 4.1.12
Sysdeo plugin 2.0.1
Cocoon 2.1-dev

I know that there was a problem with the plugin and Eclipse 2.1 RC1. The plugin 
version 2.1beta corrects this problem. But if you use Eclipse 2.1 RC2 I don't know.

Have you checked the context in server.xml file?

Regards
Sylvain (T)


-Message d'origine-
De: Helmut Tammen [mailto:[EMAIL PROTECTED]
Date: jeudi, 20. mars 2003 09:02
À: [EMAIL PROTECTED]
Objet: Eclipse, Tomcat and Sysdeo Plugin


Hi,

I try to use the combination of Eclipse, Tomcat and the Sysdeo Plugin to 
debug the cocoon source in Eclipse. This doesn´t work (error message when 
trying to access any Cocoon resource at the end). When I start Tomcat via 
the startup.bat everything works fine.
My environment:
Windows 2000
Eclipse 2.1 (Beta)
JDK 1.4.1_02
Tomcat 4.0.6
Sysdeo plugin for Eclipse 2.1 (Beta)
Cocoon 2.1-dev

I´ve also tried JDK 1.4.0, Tomcat 4.1.18 and Cocoon 2.0.4 in various 
combinations with no success.

All the Xerces and Xalan libs are replaced with the ones from Cocoon in the 
directories [JAVA_HOME]/jre/lib/endorsed, [CATALINA_HOME]/common/endorsed 
and in [ECLIPSE_HOME]/plugins/org.apache.xerces_4.0.7 (probably not 
necessary because not in the classpath of my webapp)

Does anyone have an idea what´s going wrong here?

Thanks in advance
Helmut


ERROR   (2003-03-20) 08:33.54:103   [access] (Unknown-URI) Unknown- 
thread/CocoonServlet: Cocoon got an Exception while trying to close stream.
java.io.IOException: The stream has been closed
at 
org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:237)
at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)
FATAL_E (2003-03-20) 08:33.57:218   [access] (/cocoon21/samples/welcome) 
HttpProcessor[8080][4]/CocoonServlet: The Cocoon engine failed to process 
the request.


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



RE: xform repeat and java beans: null pointer exception

2003-03-24 Thread Sylvain.Thevoz
Hi Dan,
 
I don't know if you can use array with  tag.
 
I'm using a HashMap instead of an Array (see the wizard example).
It works fine for me.
 
Don't forget to initialize the object.
 
Before that I tried to do the same thing with a Collection but it didn't work for me.
 
Regards
Sylvain (T)

-Message d'origine-
De: Barber, Dan [mailto:[EMAIL PROTECTED]
Date: vendredi, 21. mars 2003 18:01
À: [EMAIL PROTECTED]
Objet: xform repeat and java beans: null pointer exception



Hi, 

There might be a simple solution to this problem, but I have not been able to find it. 
 Here is the problem: 

I have a Java Bean that returns an array of objects.  I try to display the list using 
the xf:repeat in an xml file.  Here's the bean, xml and sitemap entries:

-- 
Cocoon version 2.1 latest CVS files 
--- 
Notes: I have all log levels set to DEBUG.  I haven't found any useful info listed in 
the log file. 

- 
start.xml 
-- 

 
http://xml.apache.org/cocoon/xmlform/2002";> 

 
Dummy 
 


 
   

 
 

-- 
Bean 
-- 
public class RuleSetHelperBean 
{ 
public RuleSetHelperBean() 
{ 
dummys[0] = new String("blah1"); 
dummys[1] = new String("blah2"); 
} 

public String[] getDummys() 
{ 
return dummys; 
} 

public String getDummys(int idx) 
{ 
return dummys[idx]; 
} 

protected String dummys[] = new String[2]; 
} 

-- 
Sitemap entries (relevant to this problem) 
-- 
 
   
. 
   
 

   
  http://www.ascc.net/xml/schematron"/> 
   
   
   
   

- 
Browser exception 
- 
An error occurredorg.apache.cocoon.ProcessingExceptionFailed to execute 
pipeline.org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
java.lang.NullPointerExceptionOriginal exception : java.lang.NullPointerException at 
org.apache.xalan.transformer.TransformerIdentityImpl.flushStartDoc(TransformerIdentityImpl.java:888)
 at 
org.apache.xalan.transformer.TransformerIdentityImpl.startPrefixMapping(TransformerIdentityImpl.java:931)
 at 
org.apache.cocoon.xml.dom.DOMStreamer$NamespaceNormalizingDOMStreamer.startNode(DOMStreamer.java:442)
 at 
org.apache.cocoon.xml.dom.DOMStreamer$NamespaceNormalizingDOMStreamer.stream(DOMStreamer.java:259)
 at org.apache.cocoon.xml.dom.DOMStreamer.stream(DOMStreamer.java:173) at 
org.apache.cocoon.xml.XMLUtils.serializeNode(XMLUtils.java:230) at 
org.apache.cocoon.xml.XMLUtils.serializeNodeToXML(XMLUtils.java:181) at 
org.apache.cocoon.transformation.AbstractSAXTransformer.endRecording(AbstractSAXTransformer.java:496)
 at 
org.apache.cocoon.transformation.XMLFormTransformer.endTransformingElement(XMLFormTransformer.java:965)
 at 
org.apache.cocoon.transformation.AbstractSAXTransformer.endElement(AbstractSAXTransformer.java:355)
 at org.apache.cocoon.components.sax.XMLTeePipe.endElement(XMLTeePipe.java:124) at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:579) at 
org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:897)
 at 

Thanks! 
Dan Barber 



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



XMLForm: how to display a text

2003-03-24 Thread Sylvain.Thevoz
Hello,

Is there a way to display a simple text in XMLForm views?

Someting like my text...


Thanks
Sylvain (T)

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



RE: XMLForm: how to display a text

2003-03-24 Thread Sylvain.Thevoz
Yes, I think.

What you said is that I should modify the XMLFormTransformer to add my own element?

I thought that maybe something already exists.

Regards
Sylvain


-Message d'origine-
De: Ryan Hoegg [mailto:[EMAIL PROTECTED]
Date: lundi, 24. mars 2003 14:09
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to display a text


You could just include it in your own element like .  Then 
the XMLFormTransformer will ignore it I think.

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net

[EMAIL PROTECTED] wrote:

>Hello,
>
>Is there a way to display a simple text in XMLForm views?
>
>Someting like my text...
>


-
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: XMLForm: how to display a text

2003-03-25 Thread Sylvain.Thevoz
OK, thanks.

And about HTML link?
If I want to insert a HTML link (href) in my view? 
Is there something that already exists?

Regards
Sylvain

-Message d'origine-
De: Stefan Klein [mailto:[EMAIL PROTECTED]
Date: mardi, 25. mars 2003 12:19
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to display a text


No, what Richard says is just to include your own tag in the form, for
example my text o my text, just call it
how you like.

The XMLFormTransformer will ignore the element and just pass it through. You
can then catch it in your XSL (for example in xmlform2html.xsl, if you're
using that one) and transform it to whatever you like.
I think you can even use the "xf" prefix, is to say my
text and the transformer will still just pass it through.

A change in the tranformer is not required.
Stefan

--
AGAINST THE WAR!


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 8:56 AM
Subject: RE: XMLForm: how to display a text


Yes, I think.

What you said is that I should modify the XMLFormTransformer to add my own
element?

I thought that maybe something already exists.

Regards
Sylvain


-Message d'origine-
De: Ryan Hoegg [mailto:[EMAIL PROTECTED]
Date: lundi, 24. mars 2003 14:09
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to display a text


You could just include it in your own element like .  Then
the XMLFormTransformer will ignore it I think.

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net

[EMAIL PROTECTED] wrote:

>Hello,
>
>Is there a way to display a simple text in XMLForm views?
>
>Someting like my text...
>


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


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



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


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



XMLForm: could I use tag with Collection or ...

2003-03-26 Thread Sylvain.Thevoz
Hello,

I want to have a XMLForm view with a code that could be (I think) like this:


  
  
  



My goal is to display an array like this:

display

Variables:

variableNamevariableValue   variableOrder
-   -
server  sfh3344 1
display red 2

display

My problem is that I don't know in which object (Collection, Array, HashMap, etc...) I 
could store this "variable" for the  tag. The data come from a database.

In the wizard example the author uses a HashMap.
But in this case I think it's not possible.

Is anyone could help me?

Thanks
Sylvain (T)

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



RE: XMLForm: could I use tag with Collection or ...

2003-03-26 Thread Sylvain.Thevoz
Hi Ivelin,

You means that I could use a Collection to store my data?

Regards
Sylvain

-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: mercredi, 26. mars 2003 14:54
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: could I use  tag with Collection or ...


should work.

-=Ivelin=-
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 7:23 AM
Subject: XMLForm: could I use  tag with Collection or ...


Hello,

I want to have a XMLForm view with a code that could be (I think) like this:


  
  
  



My goal is to display an array like this:

display

Variables:

variableName variableValue variableOrder
 - -
server sfh3344 1
display red 2

display

My problem is that I don't know in which object (Collection, Array, HashMap,
etc...) I could store this "variable" for the  tag. The data come
from a database.

In the wizard example the author uses a HashMap.
But in this case I think it's not possible.

Is anyone could help me?

Thanks
Sylvain (T)

-
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: XMLForm: could I use tag with Collection or ...

2003-03-26 Thread Sylvain.Thevoz
Hi again,

If I take a look at the wizard example, I notice that the getter method (for a HashMap 
object) uses a Set class:

public Set getObject() {
  return object.entrySet();
{

Do I need something like that with a collection?


About XPath and a Collection:
if I have a Collection (variables) that contains variable objects and this object 
contains 2 attributes (name and order), how do you access to these data?

If I try:
code

  
  

code

Am I in the right way

Thanks for your help.
Regards
Sylvain



-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: mercredi, 26. mars 2003 15:10
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: could I use  tag with Collection or ...


Yes. any Collection for the nodeset.


-=Ivelin=-
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 8:00 AM
Subject: RE: XMLForm: could I use  tag with Collection or ...


Hi Ivelin,

You means that I could use a Collection to store my data?

Regards
Sylvain

-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: mercredi, 26. mars 2003 14:54
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: could I use  tag with Collection or ...


should work.

-=Ivelin=-
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 7:23 AM
Subject: XMLForm: could I use  tag with Collection or ...


Hello,

I want to have a XMLForm view with a code that could be (I think) like this:


  
  
  



My goal is to display an array like this:

display

Variables:

variableName variableValue variableOrder
 - -
server sfh3344 1
display red 2

display

My problem is that I don't know in which object (Collection, Array, HashMap,
etc...) I could store this "variable" for the  tag. The data come
from a database.

In the wizard example the author uses a HashMap.
But in this case I think it's not possible.

Is anyone could help me?

Thanks
Sylvain (T)

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


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


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


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


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



XMLForm: how to access to a Collection

2003-03-27 Thread Sylvain.Thevoz
Hello,

I'm trying to access to a Java Collection from within a XMLForm view.

The Java code is:
code
...
Collection col = new HashSet();
...
while (iterator.hasNext()) {
  Group group = (Group) iter.next();
  col.add(group);
}
...
code

On my debugger the Collection object "col" looks like:

debug
col=java.util.HashSet (id=327)
  ->map=java.util.HashMap (id=329)
  ->table=java.util.HashMap$Entry[11] (id=330)
  ->[2]=java.util.HashMapEntry (id=331)
  ->key=com.swisscom.Group (id=287)
  ->groupName="test"
 ->count=3
 ->hash=0
 ->offset=0
 ->value=char[4] (id=212)
 ->[0]=t
 ->[1]=e
 ->[2]=s
 ->[3]=t
debug

I want to display the groupName value.

My view should look like:

  


But I don't know how to access to this Collection (path).
Could you help me?

Thanks
Sylvain

   

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



RE: XMLForm: how to access to a Collection

2003-03-27 Thread Sylvain.Thevoz
Hi Ivelin,

I have stick the collection into the JavaBean of the form with getter and setter 
methods:

public class MyFormBean() {
  private Collection col = new HashSet();

  //other Bean attributes
  private String type;
  private int order;


  //getter and setter methods

  public Collection getCol() {
return col;
  }

  public void setCol(Collection col) {
this.col = col;
  }

}

But it doesn't work for me!

If what I need to do?
And do I need to create another Bean?


Thanks
Regards
Sylvain


-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: jeudi, 27. mars 2003 14:10
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to access to a Collection



You need to stick the collection in a simple JavaBean container.

public class BeanContainer
{
  Collection get/setMyCollection();
}

then


  
  
   ...





-=Ivelin=-
- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2003 3:39 AM
Subject: XMLForm: how to access to a Collection


Hello,

I'm trying to access to a Java Collection from within a XMLForm view.

The Java code is:
code
...
Collection col = new HashSet();
...
while (iterator.hasNext()) {
  Group group = (Group) iter.next();
  col.add(group);
}
...
code

On my debugger the Collection object "col" looks like:

debug
col=java.util.HashSet (id=327)
  ->map=java.util.HashMap (id=329)
  ->table=java.util.HashMap$Entry[11] (id=330)
  ->[2]=java.util.HashMapEntry (id=331)
  ->key=com.swisscom.Group (id=287)
  ->groupName="test"
 ->count=3
 ->hash=0
 ->offset=0
 ->value=char[4] (id=212)
 ->[0]=t
 ->[1]=e
 ->[2]=s
 ->[3]=t
debug

I want to display the groupName value.

My view should look like:

  


But I don't know how to access to this Collection (path).
Could you help me?

Thanks
Sylvain

   

-
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: XMLForm: how to access to a Collection

2003-03-27 Thread Sylvain.Thevoz
There is nothing displayed.

It seems that the view don't access to the collection.

-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: jeudi, 27. mars 2003 14:30
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to access to a Collection



What is the error, exception?


-=Ivelin=-
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2003 7:25 AM
Subject: RE: XMLForm: how to access to a Collection


Hi Ivelin,

I have stick the collection into the JavaBean of the form with getter and
setter methods:

public class MyFormBean() {
  private Collection col = new HashSet();

  //other Bean attributes
  private String type;
  private int order;


  //getter and setter methods

  public Collection getCol() {
return col;
  }

  public void setCol(Collection col) {
this.col = col;
  }

}

But it doesn't work for me!

If what I need to do?
And do I need to create another Bean?


Thanks
Regards
Sylvain


-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: jeudi, 27. mars 2003 14:10
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to access to a Collection



You need to stick the collection in a simple JavaBean container.

public class BeanContainer
{
  Collection get/setMyCollection();
}

then


  
  
   ...





-=Ivelin=-
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2003 3:39 AM
Subject: XMLForm: how to access to a Collection


Hello,

I'm trying to access to a Java Collection from within a XMLForm view.

The Java code is:
code
...
Collection col = new HashSet();
...
while (iterator.hasNext()) {
  Group group = (Group) iter.next();
  col.add(group);
}
...
code

On my debugger the Collection object "col" looks like:

debug
col=java.util.HashSet (id=327)
  ->map=java.util.HashMap (id=329)
  ->table=java.util.HashMap$Entry[11] (id=330)
  ->[2]=java.util.HashMapEntry (id=331)
  ->key=com.swisscom.Group (id=287)
  ->groupName="test"
 ->count=3
 ->hash=0
 ->offset=0
 ->value=char[4] (id=212)
 ->[0]=t
 ->[1]=e
 ->[2]=s
 ->[3]=t
debug

I want to display the groupName value.

My view should look like:

  


But I don't know how to access to this Collection (path).
Could you help me?

Thanks
Sylvain



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


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


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


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


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



RE: [ANN] sunBow 1.0

2003-03-28 Thread Sylvain.Thevoz
I used both Sunbow (0.6) plugin and Eclipse 2.0.1.

Does it means that if you don't have Eclipse 2.1 you won't be able to use Sunbow 
plugin?

Sylvain (T)


-Message d'origine-
De: Martin Dulisch [mailto:[EMAIL PROTECTED]
Date: vendredi, 28. mars 2003 16:47
À: [EMAIL PROTECTED]
Objet: Re: [ANN] sunBow 1.0


Lyall, Keith wrote:
> Hi Martin,
>
> The version of Eclipse I am using is labelled v2.0.1.

sunBow does not run with 2.0.x. There are API changes and plugin
refacrotings in 2.1

>
> I have not seen a v2.1 anywhere.
>

2.1 release is announced for today. Release candidates are available.

Martin



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



XMLForm: how to retrieve URL parameter?

2003-03-30 Thread Sylvain.Thevoz
Hello,

I'm using an URL like below to access to a XMLForm application:

http://myServer:8080/myApp?id=2500

I need to retrieve this parameter (id) from within the XMLForm Action class.

The purpose is to populate the Bean with an object (id=2500) coming from the database.

What is the best solution to retrieve the URL?


Thanks
Sylvain (T)

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



RE: XMLForm: how to retrieve URL parameter?

2003-03-31 Thread Sylvain.Thevoz
Hi Josema,

Do I need to override the act() method in the Action?

Regards
Sylvain

-Message d'origine-
De: Josema Alonso [mailto:[EMAIL PROTECTED]
Date: lundi, 31. mars 2003 11:58
À: [EMAIL PROTECTED]
Objet: RE: XMLForm: how to retrieve URL parameter?


If i remember correctly, the Request is held in the objectModel, so in your
act method you can do:
Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT);

And get the desired paramater from there.

Best.


-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 31 de marzo de 2003 9:38
Para: [EMAIL PROTECTED]
Asunto: XMLForm: how to retrieve URL parameter?


Hello,

I'm using an URL like below to access to a XMLForm application:

http://myServer:8080/myApp?id=2500

I need to retrieve this parameter (id) from within the XMLForm Action class.

The purpose is to populate the Bean with an object (id=2500) coming from the
database.

What is the best solution to retrieve the URL?


Thanks
Sylvain (T)

-
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: XMLForm: how to retrieve URL parameter?

2003-03-31 Thread Sylvain.Thevoz
Hi again,

Could you give an example of your code?

Thanks
Sylvain

-Message d'origine-
De: Josema Alonso [mailto:[EMAIL PROTECTED]
Date: lundi, 31. mars 2003 13:58
À: [EMAIL PROTECTED]
Objet: RE: XMLForm: how to retrieve URL parameter?


Yes, if you go this way.
You can call its parent act method if needed at the beginning anyway.

When I used that code, my first line in the action was:
Map resultMap = super.act(redirector, resolver, objectModel, source,
params);

Anyway, maybe going the other way suggested in this thread would be easier.

Best.

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 31 de marzo de 2003 13:18
Para: [EMAIL PROTECTED]
Asunto: RE: XMLForm: how to retrieve URL parameter?


Hi Josema,

Do I need to override the act() method in the Action?

Regards
Sylvain

-Message d'origine-
De: Josema Alonso [mailto:[EMAIL PROTECTED]
Date: lundi, 31. mars 2003 11:58
À: [EMAIL PROTECTED]
Objet: RE: XMLForm: how to retrieve URL parameter?


If i remember correctly, the Request is held in the objectModel, so in your
act method you can do:
Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT);

And get the desired paramater from there.

Best.


-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 31 de marzo de 2003 9:38
Para: [EMAIL PROTECTED]
Asunto: XMLForm: how to retrieve URL parameter?


Hello,

I'm using an URL like below to access to a XMLForm application:

http://myServer:8080/myApp?id=2500

I need to retrieve this parameter (id) from within the XMLForm Action class.

The purpose is to populate the Bean with an object (id=2500) coming from the
database.

What is the best solution to retrieve the URL?


Thanks
Sylvain (T)

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



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


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



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


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



XMLForm: problem with prepare() method

2003-04-03 Thread Sylvain.Thevoz
Hello,

You can see below the prepare() method of my XMLForm action:

code
protected Map prepare() {
  if (getCommand() == null) {
Form.remove(getObjectModel().getFormId());
getForm().addFormListener(this);
return page(VIEW_FORM1);
  } else if (Form.lookup(getObjectModel().getFormId() == null) {
return page(VIEW_FORM1);
  }
  return super.PREPARE_RESULT_CONTINUE;
}
code

My purpose is when I restart the application (when I load the first page, without 
command) I want to clear the Form.

The problem is that the getCommand() method never return a null value, except when I 
load the app. for the first time.

My Form has 2 pages.
The first page has a next command that call the second page.
The second page has a preview command that recall the first page (without clear the 
Form values) and a next command that call the first page (a new one, where I want to 
clear the Form values).

Does it mean that the second page of my Form shouldn't have a command for calling a 
new first page?

Is someone has a solution?

Thanks
Sylvain

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



AccessControlException when requesting cocoon.war

2002-06-10 Thread Sylvain.Thevoz

Hello,
 
I'm new in Coccon and I try to install Cocoon 2 on the Sun J2EE ref. server.
I deploy the cocoon.war on my J2EE server and it seems OK.
 
But when I request "cocoon" from my browser ( http://localhost:8000/cocoon) there is 
an exception:
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)

at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)

at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)

at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)

at java.lang.Thread.run(Thread.java:479)


root cause:
java.security.AccessControlException: access denied (java.io.FilePermission 
C:\j2sdkee1.3.1\repository\u68111\web\cocoon-files read)

at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:267)

at java.security.AccessController.checkPermission(AccessController.java:394)

at java.lang.SecurityManager.checkPermission(SecurityManager.java:540)

at java.lang.SecurityManager.checkRead(SecurityManager.java:885)

at java.io.File.exists(File.java:541)

at java.io.File.mkdirs(File.java:973)

at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:238)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)

at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)

at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)

at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.

RE: AccessControlException when requesting cocoon.war

2002-06-10 Thread Sylvain.Thevoz

Thank you for the answer but the error permission seems to be in 
C:\j2sdkee1.3.1\repository\u68111\web\cocoon but there are no files in this 
directory!?!

Sorry but I am a bit desoriented.
I use the deploytool tool from Sun and normaly you just add the .war in an application 
(.ear) and you deploy it. There was never permissions problem.
I work on Windows NT.
It seems it's not a web access problem but a file access problem.

Thank you
Sylvain

-Message d'origine-
De: Paul Gilligan [mailto:[EMAIL PROTECTED]]
Date: lundi, 10. juin 2002 15:45
À: [EMAIL PROTECTED]
Objet: Re: AccessControlException when requesting cocoon.war


check the permissions on the files that you installed, what user sis you 
install it as ? and what user are you running it as?

on my systems I am installing as root and running under a "nobody" user 
group

[EMAIL PROTECTED] wrote:
> Hello,
>  
> I'm new in Coccon and I try to install Cocoon 2 on the Sun J2EE ref. server.
> I deploy the cocoon.war on my J2EE server and it seems OK.
>  
> But when I request "cocoon" from my browser ( http://localhost:8000/cocoon) there is 
>an exception:
> javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception
> 
>   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
> 
>   at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
> 
>   at 
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> 
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 
>   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 
>   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 
>   at 
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
> 
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 
>   at 
>org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
> 
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 
>   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 
>   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 
>   at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
> 
>   at 
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
> 
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 
>   at 
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> 
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 
>   at 
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
> 
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 
>   at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
> 
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 
>   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 
>   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 
>   at 
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> 
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 
>   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 
>   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 
>   at 
>org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
> 
>   at 
>org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
> 
>   at java.lang.Thread.run(Thread.java:479)
> 
> 
> root cause:
> java.security.AccessControlException: access denied (java.io.FilePermission 
>C:\j2sdkee1.3.1\repository\u68111\web\cocoon-files read)
> 
>   at 
>java.security.AccessControlContext.checkPermission(AccessControlContext.java:267)
> 
>   at java.security.AccessController.checkPermission(AccessController.java:394)
> 
>   at java.lang.SecurityManager.checkPermission(SecurityManager.java:540)
> 
>   at java.lang.SecurityManager.checkRead(SecurityManager.java:885)
> 
>   at java.io.File.exists(File.java:541)
> 
>   at java.io.File.mkdirs(File.java:973)
> 
>   at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:238)
> 
>   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
> 
>   at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
> 
>   at 
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> 
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(Stand

RE: AccessControlException when requesting cocoon.war

2002-06-10 Thread Sylvain.Thevoz

C:\j2sdkee1.3.1\repository\u68111\web\cocoon-files doesn't exist.
There is only C:\j2sdkee1.3.1\repository\u68111\web\cocoon.

These directories have no restrictions but they belong to the administrator.

Thank you

-Message d'origine-
De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Date: lundi, 10. juin 2002 17:12
À: [EMAIL PROTECTED]
Objet: RE: AccessControlException when requesting cocoon.war


> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> Thank you for the answer but the error permission seems to be in
> C:\j2sdkee1.3.1\repository\u68111\web\cocoon

C:\j2sdkee1.3.1\repository\u68111\web\cocoon-files


> but there are no files in this
> directory!?!

There are no any files because Cocoon can't put any. Give all
permissions for this directory.


> Sorry but I am a bit desoriented.
> I use the deploytool tool from Sun and normaly you just add the .war
in an
> application (.ear) and you deploy it. There was never permissions
problem.

Cocoon needs temp (work) directory.


> I work on Windows NT.
> It seems it's not a web access problem but a file access problem.

Yep.

Vadim


> Thank you
> Sylvain
> 
> -Message d'origine-
> De: Paul Gilligan [mailto:[EMAIL PROTECTED]]
> Date: lundi, 10. juin 2002 15:45
> À: [EMAIL PROTECTED]
> Objet: Re: AccessControlException when requesting cocoon.war
> 
> 
> check the permissions on the files that you installed, what user sis
you
> install it as ? and what user are you running it as?
> 
> on my systems I am installing as root and running under a "nobody"
user
> group
> 
> [EMAIL PROTECTED] wrote:
> > Hello,
> >
> > I'm new in Coccon and I try to install Cocoon 2 on the Sun J2EE ref.
server.
> > I deploy the cocoon.war on my J2EE server and it seems OK.
> >
> > But when I request "cocoon" from my browser (
http://localhost:8000/cocoon)
> there is an exception:
> > javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
threw
> exception
> >
> > at
>
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
> >
> > at
>
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6
15)
> >
> > at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java
> :214)
> >
> > at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566
> )
> >
> > at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
> >
> > at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> >
> > at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java
> :201)
> >
> > at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566
> )
> >
> > at
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
va:246
> )
> >
> > at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564
> )
> >
> > at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
> >
> > at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> >
> > at
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
3)
> >
> > at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:164)
> >
> > at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566
> )
> >
> > at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.ja
> va:170)
> >
> > at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564
> )
> >
> > at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
> >
> > at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564
> )
> >
> > at
>
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:
368)
> >
> > at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564
> )
> >
> > at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
> >
> > at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> >
> > at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:1
> 74)
> >
> > at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566
> )
> >
> > at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
> >
> > at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> >
> > at
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:10
> 12)
> >
> > at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1107)
> >
> > at java.lang.Thread.run(Thread.java:479)
> >
> >
> > root cause:
> > java.security.AccessControlException: access denied
(java.io.FilePermission
> C:\j2sdkee1.3.1\repository\u68111\web\cocoon-files read)
> >
> > at
>
java.security.

RE: AccessControlException when requesting cocoon.war

2002-06-11 Thread Sylvain.Thevoz

Yeh it works!
Cocoon has created its files.

But now when I try to access to the first page: http://localhost:8000/cocoon,
there is a HTTP error:

J2EE SDK/1.3.1 - HTTP Status 404 - Not Found



type: Status report

message: Not Found

description: The requested resource (Not Found) is not available.




Could you help me?
How to test if cocoon works?
Thank you
Sylvain

-Message d'origine-
De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Date: lundi, 10. juin 2002 17:34
À: [EMAIL PROTECTED]
Objet: RE: AccessControlException when requesting cocoon.war


> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> C:\j2sdkee1.3.1\repository\u68111\web\cocoon-files doesn't exist.
> There is only C:\j2sdkee1.3.1\repository\u68111\web\cocoon.
> 
> These directories have no restrictions but they belong to the
administrator.

"Give all permissions for this directory" means "give all *Java*
permissions". See java.policy file(s) in your J2EE container and
documentation about this file on java.sun.com.

You can give all permissions to everybody by having:

grant {
permission java.security.AllPermission;
};


Vadim


> Thank you
> 
> -Message d'origine-
> De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Date: lundi, 10. juin 2002 17:12
> À: [EMAIL PROTECTED]
> Objet: RE: AccessControlException when requesting cocoon.war
> 
> 
> > From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
> >
> > Thank you for the answer but the error permission seems to be in
> > C:\j2sdkee1.3.1\repository\u68111\web\cocoon
> 
> C:\j2sdkee1.3.1\repository\u68111\web\cocoon-files
> 
> 
> > but there are no files in this
> > directory!?!
> 
> There are no any files because Cocoon can't put any. Give all
> permissions for this directory.
> 
> 
> > Sorry but I am a bit desoriented.
> > I use the deploytool tool from Sun and normaly you just add the .war
> in an
> > application (.ear) and you deploy it. There was never permissions
> problem.
> 
> Cocoon needs temp (work) directory.
> 
> 
> > I work on Windows NT.
> > It seems it's not a web access problem but a file access problem.
> 
> Yep.
> 
> Vadim
> 
> 
> > Thank you
> > Sylvain
> >
> > -Message d'origine-
> > De: Paul Gilligan [mailto:[EMAIL PROTECTED]]
> > Date: lundi, 10. juin 2002 15:45
> > À: [EMAIL PROTECTED]
> > Objet: Re: AccessControlException when requesting cocoon.war
> >
> >
> > check the permissions on the files that you installed, what user sis
> you
> > install it as ? and what user are you running it as?
> >
> > on my systems I am installing as root and running under a "nobody"
> user
> > group
> >
> > [EMAIL PROTECTED] wrote:
> > > Hello,
> > >
> > > I'm new in Coccon and I try to install Cocoon 2 on the Sun J2EE
ref.
> server.
> > > I deploy the cocoon.war on my J2EE server and it seems OK.
> > >
> > > But when I request "cocoon" from my browser (
> http://localhost:8000/cocoon)
> > there is an exception:
> > > javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
> threw
> > exception
> > >
> > >   at
> >
>
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
> > >
> > >   at
> >
>
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6
> 15)
> > >
> > >   at
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java
> > :214)
> > >
> > >   at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
> va:566
> > )
> > >
> > >   at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> 72)
> > >
> > >   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > >
> > >   at
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java
> > :201)
> > >
> > >   at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
> va:566
> > )
> > >
> > >   at
> >
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
> va:246
> > )
> > >
> > >   at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
> va:564
> > )
> > >
> > >   at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> 72)
> > >
> > >   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > >
> > >   at
> >
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
> 3)
> > >
> > >   at
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :164)
> > >
> > >   at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
> va:566
> > )
> > >
> > >   at
> >
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
> lve.ja
> > va:170)
> > >
> > >   at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
> va:564
> > )
> > >
> > >   at
> >
>
org.ap

how to write a simple Hello World

2002-06-12 Thread Sylvain.Thevoz

Hi folks,

I'm new in the Cocoon world and I try to test a simple Hello World program.

Here my hello.xml document:





  Hello World!
  
It's my first Cocoon page !
  



And here my hello.xsl stylesheet:


http://www.w3.org/1999/XSL/Transform";>















But when I request the hello.xml from my browser, nothing happend!
I just see my hello.xml file in the browser.
do I have fogotten something?


Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Cocoon and J2EE

2002-06-12 Thread Sylvain.Thevoz

Hello,

How to use Cocoon in a J2EE project??

I have created an app.cocoon_war.ear Enterprise ARchive which contains the cocoon.war 
(with web context = cocoon).
It seems to work because I can see the Cocoon welcome page when I request 
http://localhost/cocoon.

Now I want to test a simple Hello World program. I have these files:
sitemap.xmap
hello.xsl
helloworld.xml

Do I put these files in a Web ARchive (.war)?
Do I put these files or the Web ARchive in the app.cocoon_war.ear Enterprise ARchive 
or in another Enterprise ARchive?

Is it necessary to have the cocoon.war in a Enterprise ARchive to work with Cocoon?

Thank you very much
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Cocoon and J2EE

2002-06-12 Thread Sylvain.Thevoz

My cocoon.war comes with the binary distribution.
I thought that this cocoon.war was necessary to work with Cocoon!?!

My question is: What is necessary to work with Coccon and do you have to include it in 
each Enterprise ARchive you create??

Thank you
Sylvain

-Message d'origine-
De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Date: mercredi, 12. juin 2002 15:57
À: [EMAIL PROTECTED]
Objet: RE: Cocoon and J2EE


> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> Hello,
> 
> How to use Cocoon in a J2EE project??
> 
> I have created an app.cocoon_war.ear Enterprise ARchive which contains
the
> cocoon.war (with web context = cocoon).
> It seems to work because I can see the Cocoon welcome page when I
request
> http://localhost/cocoon.
> 
> Now I want to test a simple Hello World program. I have these files:
> sitemap.xmap
> hello.xsl
> helloworld.xml
> 
> Do I put these files in a Web ARchive (.war)?

Yes.


> Do I put these files or the Web ARchive in the app.cocoon_war.ear
Enterprise
> ARchive or in another Enterprise ARchive?

Do you want to create new enterprise app or modify one you already have?


> Is it necessary to have the cocoon.war in a Enterprise ARchive to work
with
> Cocoon?

What is cocoon.war? One which comes with distribution, with samples and
lots of optional components?

You can create own war with customized set of components and no samples
and name it as you want.


Vadim

 
> Thank you very much
> Sylvain


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Cocoon and J2EE

2002-06-12 Thread Sylvain.Thevoz

OK, I see. Thank you Olivier.

Finally if I want the basic stuff I need cocoon.jar (and others? Do you exist a 
description list of the additionnal libraries?) in my "something.war" (or cocoon.war).
But do you have to include this cocoon.war in each Enterprise ARchive??

Thank you
Sylvain


-Message d'origine-
De: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
Date: mercredi, 12. juin 2002 16:29
À: '[EMAIL PROTECTED]'
Objet: RE: Cocoon and J2EE


> My cocoon.war comes with the binary distribution.
> I thought that this cocoon.war was necessary to work with Cocoon!?!
> 
> My question is: What is necessary to work with Coccon and do 
> you have to include it in each Enterprise ARchive you create??
> 
> Thank you
> Sylvain

Vadim will tell if I am wrong, but Cocoon is a servlet, ie a Java class.
It needs several Java dependencies for XML parsing and other fundamental
things
to work properly.

Additionnal Java libraries can be added to extend its functionnalities (fop
for PDF rendering, batik for SVG and graphics management). They are not
mandatory.
If they are needed in your application, you have to list them in
cocoon.xconf
and/or sitemap.xmap.

For example, for wikiLand, I needed the basic Cocoon stuff and the chaperon
parser.
So I removed all the .jar uneeded that are usually shipped with Cocoon (big)
archive,
and added chaperon.jar.

If you want, you can take the .war available at the homepahe of wikiLand,
and
study it.
In fact, to remove the dependencies of Chaperon, simply have a look at the
beginning 
the sitemap.xmap and comment everything that talks about chaperon or
wiki-parser.

Then you will have the skeleton for any Cocoon application.

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Cocoon and J2EE

2002-06-13 Thread Sylvain.Thevoz

Where can I find the WikiLand?

Thank you
Sylvain

-Message d'origine-
De: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
Date: mercredi, 12. juin 2002 16:57
À: '[EMAIL PROTECTED]'
Objet: RE: Cocoon and J2EE


> OK, I see. Thank you Olivier.
> 
> Finally if I want the basic stuff I need cocoon.jar (and 
> others? Do you exist a description list of the additionnal 
> libraries?) in my "something.war" (or cocoon.war).
> But do you have to include this cocoon.war in each Enterprise 
> ARchive??
> 
> Thank you
> Sylvain

I think that the jars in wikiland.war (minus chaperon.jar) are 
the basic stuff.

I do not know what a Entreprise Archive is, but in any .war you make
you need all the .jars of Cocoon.
A .war is a hermetic context, with its own classes.

If a .ear is (simply) an enhanced .war, then in any .ear that will embed
Cocoon, you need
to put all the .jar.

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Cocoon and Struts model 2x

2002-06-14 Thread Sylvain.Thevoz

Hello,

Anyone has implemented a web application with Struts model 2x and Cocoon??

I thought to start a project with this architecture:

Middleware: J2EE EJB server (JBoss) with Tomcat Servlet container. EJB classes to 
access to the data and more.

Web front-end: Struts model 2x and Cocoon. Struts model 2x to have a MVC framework 
which generate XML pages and Cocoon to process the XML pages to any format (HTML, WML, 
PDF, etc...).


Has anyone an experience of it??


Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




error when creating .war

2002-07-02 Thread Sylvain.Thevoz

Hello,

I have build CVS last dev. snapshot today (Cocoon 2.1) but when I try to pack the .war 
there is an error:

Unable to load servlet class specified in the archive.
java.lang.NoClassDeffFoundError: org/apache/avalon/framework/logger/AbstractLoggable


What is the problem??


Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Cocoon 2.1 deployment error

2002-07-02 Thread Sylvain.Thevoz

Hello,

I have deployed the Cocoon 2.1 webapp Demo but when I try to see the welcome page 
(http://localhost:8000/cocoon) there is an error:

type: Exception report

message: Internal Server Error

description: The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.

exception: 

javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:479)


root cause 

java.lang.VerifyError: (class: org/apache/cocoon/Cocoon, method: configure signature: 
(Lorg/apache/avalon/excalibur/component/ExcaliburComponentManager;)Lorg/apache/avalon/framework/configuration/Configuration;)
 Incompatible object argument for function call
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at org.apache.cocoon.util.ClassUtils.newInstance(ClassUtils.java:75)
at 
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1202)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invoke

RE: Cocoon 2.1 deployment error

2002-07-02 Thread Sylvain.Thevoz

"I think you use the wrong version of avalon-framework lib."

=> Where is this lib in Cocoon sources?
=> What is the right version?
=> Where can I find it?

Thank you
Sylvain



-Message d'origine-
De: Stephan Michels [mailto:[EMAIL PROTECTED]]
Date: mardi, 2. juillet 2002 15:51
À: [EMAIL PROTECTED]
Objet: Re: Cocoon 2.1 deployment error




On Tue, 2 Jul 2002 [EMAIL PROTECTED] wrote:

> Hello,
>
> I have deployed the Cocoon 2.1 webapp Demo but when I try to see the welcome page 
>(http://localhost:8000/cocoon) there is an error:
>
> type: Exception report
>
> message: Internal Server Error
>
> description: The server encountered an internal error (Internal Server Error) that 
>prevented it from fulfilling this request.
>
> root cause
>
> java.lang.VerifyError: (class: org/apache/cocoon/Cocoon, method: configure 
>signature: 
>(Lorg/apache/avalon/excalibur/component/ExcaliburComponentManager;)Lorg/apache/avalon/framework/configuration/Configuration;)
> Incompatible object argument for function call
>   at java.lang.Class.newInstance0(Native Method)
>   at java.lang.Class.newInstance(Class.java:232)
>   at org.apache.cocoon.util.ClassUtils.newInstance(ClassUtils.java:75)
>   at 
>org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1202)
>   at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407)
>   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
> [...]
>   at java.lang.Thread.run(Thread.java:479)

I think you use the wrong version of avalon-framework lib.

Stephan Michels.


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: error deploying cocoon

2002-07-02 Thread Sylvain.Thevoz

Hello,

Maybe a java security problem. Cocoon can't write something on your disk. 
I had the same think.

Check the java policy files.

Sylvain

-Message d'origine-
De: icewind [mailto:[EMAIL PROTECTED]]
Date: mardi, 2. juillet 2002 20:53
À: [EMAIL PROTECTED]
Objet: error deploying cocoon


Hello,

Im using Debian with the tomcat4 package. The tomcat
samples work. I got the lastest binary version of
cocoon from the web site and put the cocoon.war file
in the $TOMCAT_HOME/webapps directory. When I restart
tomcat, I watch the tomcat log file and I get what is
below. How can I fix this and get cocoon to deploy
correctly?

Thanks.

--begin---

2002-07-02 14:32:15 Cocoon2: init
2002-07-02 14:32:15 StandardContext[/cocoon]: Servlet
/cocoon threw load() exception
javax.servlet.ServletException: Servlet.init() for
servlet Cocoon2 threw exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native
Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.security.AccessControlException: access denied
(java.util.PropertyPermission
javax.xml.parsers.SAXParserFactory read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
at
java.lang.System.getProperty(System.java:560)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:214)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native
Method)
at
org.apache.cata

RE: Cocoon 2.1 deployment error

2002-07-03 Thread Sylvain.Thevoz

I have checked the Avalon version and it is the right one (20020627)!

Is this component really essential? What is its task?
Have you a solution?

Thank you very much
Sylvain


-Message d'origine-
De: Stephan Michels [mailto:[EMAIL PROTECTED]]
Date: mardi, 2. juillet 2002 17:13
À: [EMAIL PROTECTED]
Objet: RE: Cocoon 2.1 deployment error




On Tue, 2 Jul 2002 [EMAIL PROTECTED] wrote:

> "I think you use the wrong version of avalon-framework lib."
>
> => Where is this lib in Cocoon sources?

xml-cocoon2/lib/core/avalon-framework-20020627.jar

> => What is the right version?

20020627

> => Where can I find it?

xml-cocoon2/lib/core/

Remember 2.1 is not yet released, Stephan Michels.


> -Message d'origine-
> De: Stephan Michels [mailto:[EMAIL PROTECTED]]
>
> On Tue, 2 Jul 2002 [EMAIL PROTECTED] wrote:
>
> > Hello,
> >
> > I have deployed the Cocoon 2.1 webapp Demo but when I try to see the welcome page 
>(http://localhost:8000/cocoon) there is an error:
> >
> > type: Exception report
> >
> > message: Internal Server Error
> >
> > description: The server encountered an internal error (Internal Server Error) that 
>prevented it from fulfilling this request.
> >
> > root cause
> >
> > java.lang.VerifyError: (class: org/apache/cocoon/Cocoon, method: configure 
>signature: 
>(Lorg/apache/avalon/excalibur/component/ExcaliburComponentManager;)Lorg/apache/avalon/framework/configuration/Configuration;)
> Incompatible object argument for function call
> > at java.lang.Class.newInstance0(Native Method)
> > at java.lang.Class.newInstance(Class.java:232)
> > at org.apache.cocoon.util.ClassUtils.newInstance(ClassUtils.java:75)
> > at 
>org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1202)
> > at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:407)
> > at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
> > [...]
> > at java.lang.Thread.run(Thread.java:479)
>
> I think you use the wrong version of avalon-framework lib.
>
> Stephan Michels.
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: cant find avalon conponents

2002-07-04 Thread Sylvain.Thevoz

Hello,
 
I have the same problem and all jar files are in the lib directory.
 
Any idea?
 
Thank you
Sylvain
 

-Message d'origine-
De: Themba Mbatha [mailto:[EMAIL PROTECTED]]
Date: mercredi, 3. juillet 2002 08:33
À: '[EMAIL PROTECTED]'
Objet: RE: cant find avalon conponents



Make sure that all the jar files that came with Cocoon are in the lib directory 
($TOMCAT_HOME/webapps/cocoon/WEB-INF/lib). 

-Original Message- 
From: icewind [ mailto:[EMAIL PROTECTED]] 
Sent: 02 July 2002 10:49 
To: [EMAIL PROTECTED] 
Subject: cant find avalon conponents 


Hello, 

I installed the cocoon war file in the webapps dir of 
tomcat (tomcat works) and when I tried to access 
cocoon, I got a really big error message starting with 
the following: 

description org.apache.cocoon.ProcessingException: 
Language Exception: 
org.apache.cocoon.components.language.LanguageException: 
Error compiling sitemap_xmap: Line 22, column 49: 
cannot access class Component; file 
org/apache/avalon/framework/component/Component.class 
not found Line 23, column 53: cannot access class 
Configurable; file 


this goes on and on with all the components in avalon 
not being found... 


When I took a look in tomcat's work directory, i did 
find the avalon jars in localhost/cocoon/WEB-INF. 

Im not sure how to fix this problem.. anyone know how 
to get cocoon (or tomcat) to see the avalon jars it 
cant seem to see now? 

Thanks. 


__ 
Do You Yahoo!? 
Sign up for SBC Yahoo! Dial - First Month Free 
http://sbc.yahoo.com 

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

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Redirect Apache Requests to Tomcat

2002-07-04 Thread Sylvain.Thevoz

I have checked the mod_webapp but it seems to work only with Apache 1.x and not for 
Apache 2.0!

Try the mod_jk.
These modules and the connection problems between Apache and Tomcat are not well 
documented. Many users have this problem.
Try the Apache or Tomcat mailing lists.

Sylvain

-Message d'origine-
De: yuryx [mailto:[EMAIL PROTECTED]]
Date: jeudi, 4. juillet 2002 11:33
À: [EMAIL PROTECTED]
Objet: Re: Redirect Apache Requests to Tomcat


Thomas Garger wrote:

>Hi!
>
>I have Cocoon 2.0.2 running under Tomcat on port 8080. My Homepage
>is called with the following URL
>(http://MyServer-IP:8080/cocoon/myhomepage).
>
>I also have a domain-name (http://www.MyDomainName.at )where i put the
>DNS to the IP of my Server. But every time someone want to call my
>homepage,
>he has to insert the following
>(http://www.MyDomainName.at:8080/cocoon/myhomepage).
>That is bad.
>
>And thats my intension:
>---
>I want to run Apache Web-Server, which is listening on port 80.
>
>So my question ist - can i configure Apache Web-Server and Tomcat in
>this
>way, that
>every request, that comes to the Apache Web-Server is redirectedt to
>Tomcat
>(for example - someone calls http://www.MyDomainName.at he calls the
>Apache Web-Server - this Server gets the sites from Tomcat and displays
>the
>content).
>
>if someone needs further information, please tell me.
>
>thanks
>greetings, chris
>
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>  
>
Try to install mod_webapp module and configure the warp connection on 
Tomcat and Apache sides
See also http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/warp.html

Regards.
Yury.




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Cocoon and CLASSPATH

2002-07-09 Thread Sylvain.Thevoz

Hello,

How to check my classpath in my Cocoon project?


Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




  1   2   >