RE: XML for describing databases?

2002-03-14 Thread Derek Hohls

Please keep us all informed... this is also a topic I have been 
thinking about (in the background) for a while now.

A solid set of protocols and tools (read 'standard' XSLT and/or 
logicsheets?) for creating and generating reports/forms for
 databases/tables would be really cool and crank Cocoon's 
usability and desirability up a notch.  

I realize this is not really a Cocoon issue per se, but one 
that would make a very useful addition to the 'getting it
started out of the box' side of the system.

Derek

>>> [EMAIL PROTECTED] 14/03/2002 09:55:49 >>>
I developed something similar for use with an application.  I got it
to
do what I needed - but I also worked with my approach enough to
uncover
some pitfalls - so please let me know if you discover an xml schema to
represent a database schema.

I did find some solutions that were built on the assumption of the
database schema using the same structure as the xml schema like
http://www.w3.org/XML/RDB.html 

Here are other useful links:
http://www.rpbourret.com/xml/XMLDBLinks.htm 
http://www.rpbourret.com/xml/XMLAndDatabases.htm 

marty

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, March 14, 2002 1:49 PM
> To: [EMAIL PROTECTED] 
> Subject: XML for describing databases?
> 
> 
> Hey folks,
> 
>   I need to build a web interface to a whole bunch of 
> databases.  To limit the work I'll have to do, I would like 
> to be able to define each database in a XML file, and have 
> the interface somewhat dynamically generated from those files.
> 
> So, for one database named 'gesupply', part of the file 
> gesupply.xml would look like:
> 
> ---
> 
>   postgresql://localhost/gesupply
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> ... etc ...
> 
> 
> ---
> 
> The idea is, the xslt will generate the appropriate file(s) 
> to provide a basic interface to the database.
> 
> My question is: anyone know if a schema/xml-application like 
> this already 
> exists?  Any searches for database+xml come up with dbxml or 
> something related whcih, unless I'm misunderstanding 
> something, isnt of use in this sort of application.
> 
> -Tom  
> 
>
-
> 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: newbie: how to get a clean application

2002-03-14 Thread TREGAN Fabien

>it would be nice to have a tool, which checks dependencies at all levels.
>like "configure_cocoon svg, html, xslt, png" which creates a 
>webapp _only_ with the neccesary .jars, a appropriately configured sitemap
and cocoon.xconf... ok, you have other things to do / in mind. 
>maybe i'll find some time to start it.

Have started a little swing-app acting like that.
I'll try to finish it this week-end. The xmap is created, but i'd like the
app to discover wich are the aviable components. This can be achieve by
reflexivity, but maybe it would help if futur ".stephano" archives includes
a liste of components classes/names.

fabien.

ps : my (weak) generator is now swing-based, do you think that it *should*
be a cocoon app instead ?

>
>cheers,
>
>moritz.
>
>
>> > but: the ant task "user-input" is still unknown!
>>
>> I think I fixed it in latest CVS version (2.0.2).
>> Try that next time you upgrade, and let me know if there are
>> still problems.
>>
>> > thanks a lot!!
>>
>> You're welcome :-)
>>
>> Remember users: we need your input, and telling us what is 
>going wrong for
>> you helps us *a lot*.
>> We should thank *you all* for your patience and collaboration, and
>> constructive criticism is very welcome indeed.
>>
>> Thank you :-)
>>
>> --
>> Nicola Ken Barozzi   [EMAIL PROTECTED]
>> - verba volant, scripta manent -
>>(discussions get forgotten, just code remains)
>> -
>>
>>
>> -
>> 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: thanks for sharing your expertise Vadim

2002-03-14 Thread TREGAN Fabien

mmm... +1 !

>De: Marty McClelland [mailto:[EMAIL PROTECTED]]
>
>Hello Vadim - 
>
>I just want to express my appreciation for your participation on the Cocoon
users list.  
...
>I also want to acknowledge your patience with newbies.  After reading the
list for some months - I find it interesting to see how many of the
questions are repeats.  Yet you continue to point folks in the right
direction - even when answering the same questions for the hundredth time.

>thanks again!
>enjoy the day - marty  


-
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: Cocoon2, SOAP: How to process xml-content?

2002-03-14 Thread Erwin Burgstaller

On Thu, Mar 14, 2002 at 01:34:38PM -0500, William Brogden wrote:
> Why not have the service return a org.w3c.dom.Element -
> that will produce xml directly in the SOAP response.
> 
> Your deployment descriptor would have an entry like this example I ran:
> 
>  
>http://xml.apache.org/xml-soap/literalxml";
>  xmlns:x="urn:ExercisePubs" qname="x:book-element"
>  javaType="org.w3c.dom.Element"
>  java2XMLClassName=
>"org.apache.soap.encoding.literalxml.XMLParameterSerializer"
>  xml2JavaClassName=
>"org.apache.soap.encoding.literalxml.XMLParameterSerializer"
>  />
> 

I don't have Java on the server. The soap service is made with Perl and
Apache::SOAP. So I hope I will find how to configure the service to
return an org.w3c.dom.Element, will I?

Erwin
 

-
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: using * and {1} in sitemap

2002-03-14 Thread Vadim Gritsenko

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> Does the level of.hell...ok, I have this:
> 
> 
>   
>   
>   
>   
>   
>   
> 
> 
> 
> and I want to change the
> 
> map:match patterh="database-*">
> 
> and
> 
> 
> 
> ...but whenever I do this simple change, I start getting
> NullPointerExceptions on the file, and according to the error page,
the
> requested page is always "databases/.xml"so its not replacing the
{1}
> with the * data.
> 
> Might this be because it is nested within the sunRise-auth handler?

Good guess, right on target. Expression inside {} should be path-like:










PS I could send to RTFM but am not remembering which one...

Vadim

> 
> Am I leaving out something silly?
> 
> TIA,
> -Tom
> --
> --


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




using * and {1} in sitemap

2002-03-14 Thread tvon

Does the level of.hell...ok, I have this:











and I want to change the 

map:match patterh="database-*">

and



...but whenever I do this simple change, I start getting
NullPointerExceptions on the file, and according to the error page, the
requested page is always "databases/.xml"so its not replacing the {1}
with the * data.

Might this be because it is nested within the sunRise-auth handler?

Am I leaving out something silly?

TIA,
-Tom
-- 
--

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




Live Site

2002-03-14 Thread Benjamin Grant


Well, an -almost- live site:

http://dir.salon.com/

We began working with cocoon, internally last year and experimented with it 
quite a bit.

Recently, we chose to re-engineer our Directory, which is a compilation of 
links to all of the articles we have published over the last six years.  This 
encompasses about 16,000 articles.   We realized we'd also benefit by 
re-publishing all of our old content in XML, as well.

There are many reasons we opted to deploy Cocoon, and I hope to find the time 
to write them all up sometime soon, along with a basic overview of how we 
deployed it, what kinds of code we had to/didn't have to write to do it, 
etc., in the hopes that it will assist others.

We are still tuning and evolving the new Directory, and have only directed a 
small amount of our public traffic to it.  Over the coming weeks, we expect 
to make it fully live.   Our biggest challenge has not been in deploying 
Cocoon, but in re-publishing our old content, which is stored as completely 
non-validated (read: sloppy) HTML fragments in an Oracle database.   Most 
likely we will have to re-publish a few more times to get things fully 
cleaned up. 

At some point in the future, we may contemplate switching our 
entire site over to Cocoon if the directory service proves stable and 
efficient under it.  In addition, we'll begin to make more use of Cocoon's 
features shortly; we've really only scratched the surface at this point.

In the meantime, a big thanks goes out to all of the Cocoon users and 
developers who have made all of this possible.

Regards,

Benjamin Grant
VP, Technology
Salon


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




MS SQL Server and cocoon

2002-03-14 Thread Learhinan, Lance (DAIS)

Has any one had this problem with MS SQL Server and the MS JDBC driver

[Microsoft][SQLServer JDBC Driver]Unexpected token type: Unknown token: 0x73

The token is different for different records.

This occurs only when the data is coming from and 'ntext' field that is
larger than 8k I think.

Any help would be appreciated.

Lance Learhinan 
Senior Web Developer




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




Xindice XUPDATE PROBLEM

2002-03-14 Thread sheshadri emmadi

HI folks,
Can anyone help on xupdate, i have been trying it out for the past 
3 days, but in vain.
My config is Cocoon 2.0.1, tomcat 3.2, jdk 1.3.1 and win2000.
I am trying to execute the code below,if i use service.update() 
method i get "0 rows updated" message.
my search criteria is right , i am in a fix as to where the 
problem could be.
If i you updateResource() with the object id, i get the foll. 
exception at the xindice server and the message "0 rows 
updated".

Exception:
va.lang.ClassCastException: 
org.apache.xml.dtm.ref.DTMNodeIterator
   at 
org.apache.xindice.core.xupdate.XObjectImpl.nodeset(Unknown 
Source)



Thanx,
Shesh

-
Source
---
import org.xmldb.api.base.*;
import org.xmldb.api.modules.*;
import org.xmldb.api.*;

/**
  * Simple XML:DB API example to update the database.
  */
public class XUpdate
{
public static void main(String[] args) throws Exception
{
   Collection col = null;
   try
  {
  String driver = 
"org.apache.xindice.client.xmldb.DatabaseImpl";
  Class c = Class.forName(driver);

  Database database = (Database) c.newInstance();
  DatabaseManager.registerDatabase(database);

 col =  
DatabaseManager.getCollection("xmldb:xindice:///db/addresses");
// col =  
DatabaseManager.getCollection("xmldb:xindice://localhost:4080/db/addresses");


String xupdate = "http://www.xmldb.org/xupdate\";> "+
  " " 
+
"Mumbai city" +
"" +
"";


System.out.println("Xupdate :"+xupdate);
  XUpdateQueryService service = (XUpdateQueryService) 
col.getService("XUpdateQueryService", "1.0");
  long count=service.update(xupdate);
   //   long count=service.updateResource("shoid",xupdate);

 System.out.println("Rows updated :"+count);
   }
   catch (XMLDBException e)
   {
  System.err.println("XML:DB Exception occured " + 
e.errorCode + " " +  e.getMessage());
 e.printStackTrace();
   }
   finally
   {
  if (col != null)
 {
 col.close();
  }
   }
}
}


-
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: SAXParser not found

2002-03-14 Thread Robert J. Lebowitz



Take a look at the message with the Subject Correction: 
{SOLUTION] Cocoon with the Tomcat 4.0.3 posted by Vadim.  He describes a 
procedure for moving various JAXP related packages around in it.
 

  - Original Message - 
  From: 
  Hao 
  Jiang 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, March 14, 2002 5:41 
  PM
  Subject: SAXParser not found
  
  
  I have 
  just installed Cocoon 2.0 on Tomcat 4.0.3. And I got “SAXParser not 
  found”
  (see 
  attachment) error when I access Cocoon startup page. I tried to put 
  Xerce1.4.4.jar
  in 
  Tomcat lib directory but it didn’t help.
   
  Can 
  any one help me on this? Thanks.
   
  Hao
   
  
  

  -Please 
  check that your question has not already been answered in theFAQ before 
  posting. To unsubscribe, 
  e-mail: <[EMAIL PROTECTED]>For additional 
  commands, e-mail: 
<[EMAIL PROTECTED]>


SAXParser not found

2002-03-14 Thread Hao Jiang








I have just installed Cocoon 2.0 on Tomcat 4.0.3. And I got “SAXParser
not found”

(see attachment) error when I access Cocoon startup page. I tried to put
Xerce1.4.4.jar

in Tomcat lib directory but it didn’t help.

 

Can any one help me on this? Thanks.

 

Hao

 






Title: Internal server error
Cocoon 2 - Internal server errortype fatalmessage SAX2 driver class org.apache.xerces.parsers.SAXParser not founddescription java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParsersender org.apache.cocoon.servlet.CocoonServletsource Cocoon servletrequest-uri/cocoon/path-info

-
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: Pizza

2002-03-14 Thread Ed Jenkins

I was wrong.  Sun was wrong.
Vadim is right.  SourceForge is right.

According to JLS 3.10.5, a string literal can not have a line terminator it 
it.

Thanks, Vadim.

Ed

---

From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: RE: Pizza
Date: Thu, 14 Mar 2002 17:46:44 -0500

 > From: Ed Jenkins [mailto:[EMAIL PROTECTED]]
 >
 > Yesterday, we upgraded to Cocoon 2.0.2dev.  In that version, in
 > cocoon.xconf, the default compiler was switched from Javac to Pizza.
 >
 > Pizza is reporting some compilation errors in my XSP files that were
OK when
 > compiled with Javac.  Also, I believe the JLS would not consider this
to be
 > an error.

I don't think so.


 > Here is a small example of the code:
 >
 > 
 > private void setSomething()
 > {
 > String s =
 > "
 > 
 > three
 > three
 > 
 > ";
 > request.getSession().setAttribute("something", s);
 > }
 > 
 >
 > Here are the errors I'm getting:
 >
 > Line 106, column 13:  unclosed character literal
 > Line 106, column 12:  illegal start of expression
 > Line 139, column 14:  unclosed character literal

IIRC, compiler is right.


 > When I change it to this, the errors go away:
 >
 > String s = "";
 >
 > I think it doesn't like it when a string literal is split up into
multiple
 > lines.  What's up with that?

Use Python - it is the only language allowing this.

Vadim


 > I see that Pizza is made by SourceForge.  Who should I contact there
to ask
 > about this?  www.sf.net is currently down.
 >
 > Ed



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





_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


-
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: Pizza

2002-03-14 Thread Faulkner, Perry

Ed,

The alternate, for readability would be:

 String s =
" " +
" three" +
" three" +
" ";

or a variation!

The lang spec says - no embedded line terminators, unfortunately for your
original!

Perry

-Original Message-
From: Ed Jenkins [mailto:[EMAIL PROTECTED]]
Sent: Friday, 15 March 2002 10:22
To: [EMAIL PROTECTED]
Subject: RE: Pizza


I tried that.  I put the xml all on one line (without \n) and it compiled.  
But I liked having it split up because it was readable.

Ed

---

From: "Faulkner, Perry" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: RE: Pizza
Date: Fri, 15 Mar 2002 09:55:26 +1100

Hi Ed,

Will

 String s = "\nthree\nthree\n";

solve the problem?

Perry

-Original Message-
From: Ed Jenkins [mailto:[EMAIL PROTECTED]]
Sent: Friday, 15 March 2002 9:20
To: [EMAIL PROTECTED]
Subject: Pizza


Yesterday, we upgraded to Cocoon 2.0.2dev.  In that version, in
cocoon.xconf, the default compiler was switched from Javac to Pizza.

Pizza is reporting some compilation errors in my XSP files that were OK when

compiled with Javac.  Also, I believe the JLS would not consider this to be
an error.

Here is a small example of the code:


 private void setSomething()
 {
 String s =
 "
 
 three
 three
 
 ";
 request.getSession().setAttribute("something", s);
 }


Here are the errors I'm getting:

Line 106, column 13:  unclosed character literal
Line 106, column 12:  illegal start of expression
Line 139, column 14:  unclosed character literal

When I change it to this, the errors go away:

String s = "";

I think it doesn't like it when a string literal is split up into multiple
lines.  What's up with that?

I see that Pizza is made by SourceForge.  Who should I contact there to ask
about this?  www.sf.net is currently down.

Ed


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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





_
Join the world's largest e-mail service with MSN Hotmail. 
http://www.hotmail.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]>




RE: Pizza

2002-03-14 Thread Ed Jenkins

I tried that.  I put the xml all on one line (without \n) and it compiled.  
But I liked having it split up because it was readable.

Ed

---

From: "Faulkner, Perry" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: RE: Pizza
Date: Fri, 15 Mar 2002 09:55:26 +1100

Hi Ed,

Will

 String s = "\nthree\nthree\n";

solve the problem?

Perry

-Original Message-
From: Ed Jenkins [mailto:[EMAIL PROTECTED]]
Sent: Friday, 15 March 2002 9:20
To: [EMAIL PROTECTED]
Subject: Pizza


Yesterday, we upgraded to Cocoon 2.0.2dev.  In that version, in
cocoon.xconf, the default compiler was switched from Javac to Pizza.

Pizza is reporting some compilation errors in my XSP files that were OK when

compiled with Javac.  Also, I believe the JLS would not consider this to be
an error.

Here is a small example of the code:


 private void setSomething()
 {
 String s =
 "
 
 three
 three
 
 ";
 request.getSession().setAttribute("something", s);
 }


Here are the errors I'm getting:

Line 106, column 13:  unclosed character literal
Line 106, column 12:  illegal start of expression
Line 139, column 14:  unclosed character literal

When I change it to this, the errors go away:

String s = "";

I think it doesn't like it when a string literal is split up into multiple
lines.  What's up with that?

I see that Pizza is made by SourceForge.  Who should I contact there to ask
about this?  www.sf.net is currently down.

Ed


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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





_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.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]>




RE: Pizza

2002-03-14 Thread Faulkner, Perry

Hi Ed,

Will

String s = "\nthree\nthree\n";

solve the problem?

Perry

-Original Message-
From: Ed Jenkins [mailto:[EMAIL PROTECTED]]
Sent: Friday, 15 March 2002 9:20
To: [EMAIL PROTECTED]
Subject: Pizza


Yesterday, we upgraded to Cocoon 2.0.2dev.  In that version, in 
cocoon.xconf, the default compiler was switched from Javac to Pizza.

Pizza is reporting some compilation errors in my XSP files that were OK when

compiled with Javac.  Also, I believe the JLS would not consider this to be 
an error.

Here is a small example of the code:


private void setSomething()
{
String s =
"

three
three

";
request.getSession().setAttribute("something", s);
}


Here are the errors I'm getting:

Line 106, column 13:  unclosed character literal
Line 106, column 12:  illegal start of expression
Line 139, column 14:  unclosed character literal

When I change it to this, the errors go away:

String s = "";

I think it doesn't like it when a string literal is split up into multiple 
lines.  What's up with that?

I see that Pizza is made by SourceForge.  Who should I contact there to ask 
about this?  www.sf.net is currently down.

Ed


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


-
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: Pizza

2002-03-14 Thread Vadim Gritsenko

> From: Ed Jenkins [mailto:[EMAIL PROTECTED]]
> 
> Yesterday, we upgraded to Cocoon 2.0.2dev.  In that version, in
> cocoon.xconf, the default compiler was switched from Javac to Pizza.
> 
> Pizza is reporting some compilation errors in my XSP files that were
OK when
> compiled with Javac.  Also, I believe the JLS would not consider this
to be
> an error.

I don't think so.


> Here is a small example of the code:
> 
> 
> private void setSomething()
> {
> String s =
> "
> 
> three
> three
> 
> ";
> request.getSession().setAttribute("something", s);
> }
> 
> 
> Here are the errors I'm getting:
> 
> Line 106, column 13:  unclosed character literal
> Line 106, column 12:  illegal start of expression
> Line 139, column 14:  unclosed character literal

IIRC, compiler is right.


> When I change it to this, the errors go away:
> 
> String s = "";
> 
> I think it doesn't like it when a string literal is split up into
multiple
> lines.  What's up with that?

Use Python - it is the only language allowing this.

Vadim


> I see that Pizza is made by SourceForge.  Who should I contact there
to ask
> about this?  www.sf.net is currently down.
> 
> Ed



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




Pizza

2002-03-14 Thread Ed Jenkins

Yesterday, we upgraded to Cocoon 2.0.2dev.  In that version, in 
cocoon.xconf, the default compiler was switched from Javac to Pizza.

Pizza is reporting some compilation errors in my XSP files that were OK when 
compiled with Javac.  Also, I believe the JLS would not consider this to be 
an error.

Here is a small example of the code:


private void setSomething()
{
String s =
"

three
three

";
request.getSession().setAttribute("something", s);
}


Here are the errors I'm getting:

Line 106, column 13:  unclosed character literal
Line 106, column 12:  illegal start of expression
Line 139, column 14:  unclosed character literal

When I change it to this, the errors go away:

String s = "";

I think it doesn't like it when a string literal is split up into multiple 
lines.  What's up with that?

I see that Pizza is made by SourceForge.  Who should I contact there to ask 
about this?  www.sf.net is currently down.

Ed


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




Optimize Performance

2002-03-14 Thread Michael Wechner

Hi

I try to configure Cocoon and Tomcat such that the
performance is as good as possible. What I figured out already is

1) set all "check-reloads" attributes within all sitemaps to "false"
2) set all "log-level" attributes within logkit.xconf to "ERROR"
3) set attribute "reloadable" of Context cocoon within 
tomcat/conf/server.xml to "false"


I guess there are more parameters to turn, for instance
how do I turn off the lookup of lastmodified of XSLT, or
is this configured by check-reloads already?

Any further tips or help appreciated.

Thanks

Michael






Joseph Jupin wrote:

> Hi, Kinga...
> 
> Thanx for taking time to talk about this.  But so far, that solution's 
> not working either.  Just a quick question - does the contents of the 
> postData need to be of the form "?foo=data" and does the data segment 
> need to be url encoded?
> 
> I've put your suggestions in and so far, the server hangs - it never 
> responds back - and doesn't even act like it's been queried...  kinda 
> strange...
> 
> again, many thanx...
> 
> peace.  JOe...
> 
> On Wed, 30 Jan 2002 11:11:53 -0800
>  "DZIEMBOWSKI,KINGA (HP-NewJersey,ex2)" <[EMAIL PROTECTED]> wrote:
> 
>> Hi,
>>
>> As a first step you should specify the Content-type HTTP header.
>> StreamGenerator do not accepts all mime types.
>> connect.setRequestProperty( "Content-type", "text/xml" );
>>
>> As a second the StreamGenerator sample is showing one of the aspects of
>> StreamGenerator - ability to process the data coming from the form. I 
>> such
>> case it expects the payload to be a value of the "Foo" parameter. This is
>> not the main reason for existence of this generator. The main reason 
>> is the
>> ability to process POST requests where the payloads is in InputStream. 
>> This
>> is typical scenario for the clients implemented using 
>> HttpURLConnection. (By
>> the way be careful, HttpURLConnection has a bug. If the response has
>> statusCode >400 you will be unable to retrieve the response payload,
>> exception is thrown...)
>>
>> The code sample to do that can be similar to:
>> Assuming you have a xml contents in String postData
>>
>> connect.setRequestMethod("POST"); 
>> connect.setAllowUserInteraction(false); 
>> connect.setDoOutput(true);
>> // Sets the default Content-type and content length for POST
>> requests connect.setRequestProperty( "Content-type", "text/xml" ); 
>>  connect.setRequestProperty( "Content-length",
>> Integer.toString(postData.length()));
>> // Gets the output stream and POSTs data OutputStream 
>> POSTStream = connect.getOutputStream(); PrintWriter POSTWriter = 
>> new PrintWriter(POSTStream); POSTWriter.println(postData); 
>> POSTWriter.flush(); POSTWriter.close(); I hope this will help
>> Kinga
>>
>>> -Original Message-
>>> From: Joseph Jupin [mailto:[EMAIL PROTECTED]]
>>> Sent: Wednesday, January 30, 2002 12:47 PM
>>> To: [EMAIL PROTECTED]
>>> Subject: problems with StreamGenerator...
>>>
>>>
>>> Hey, All...
>>>
>>> I've been using Cocoon 2.0 for about a month & 1/2 now and I've run 
>>> into the following problem:
>>>
>>> First off, refer to the Order example that comes with cocoon which 
>>> when you hit the submit, it will return the xml typed into the 
>>> textarea.  Now, for testing, I've taken my xml doc, modified the 
>>> stream pipeline to use my transform and then output html.  Using the 
>>> same form, entered my xml text (cut & Paste from my text file) - hit 
>>> submit and it works like a charm - the generated HTML comes back 
>>> after the transform.
>>>
>>> Now, the problem is in an application I'm writing that needs to send 
>>> the XML data as a parameter call to the cocoon server and capture the 
>>> resulting HTML.  Using the URL class and URLConnection class, I have 
>>> to pass the parameter (say "Foo") and the URLEncoder.encode value of 
>>> the parameter (URLEncoder.encode(some text))...  The problem is that 
>>> the stream or cocoon doesn't see the parameter passed in.  Any ideas 
>>> on how to get it to understand the URLEncoded parameter.
>>>
>>> Here's some example code:
>>>
>>> StringBuffer uri = new 
>>> StringBuffer("http://localhost:8080/cocoon/request1";);
>>>
>>> try {
>>> URL url = new URL(uri.toString());
>>> HttpURLConnection u_connect = 
>>> (HttpURLConnection)url.openConnection();
>>> u_connect.setRequestMethod("POST");
>>> u_connect.setDoOutput(true);
>>> u_connect.setRequestProperty("Foo", URLEncoder.encode(some text));
>>>
>>> u_connect.connect();
>>>
>>> // print out some results...
>>>
>>> } catch (exceptions...) {}
>>>
>>> Now, here's some of the output:
>>>
>>> content length:  12341
>>> content type  :  text/html
>>> content encode:  null
>>> request method:  POST
>>> response code :  500
>>> response mssg :  Internal Server Error
>>> e:java.lang.NullPointerException
>>>
>>> So, in other words it gets there and then returns the 
>>> nullPointerException afterwards.  Now, remember the te

cocoon 2 tutorial

2002-03-14 Thread Marty McClelland

Hello All - 

The latest IBM DeveloperWorks points to a Cocoon 2 tutorial:

http://www-106.ibm.com/developerworks/education/r-xcocoon.html?n-x-3142

-
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: xsl and log4j

2002-03-14 Thread Moritz Petersen

> > 
> > hi list,
> > 
> > is it possible to use log4j for loggings from inside xsp commands?
> like
> 
> I'm not sure about its current status (never used it by myself), but
> there is logichseet in the Cocoon (since day one) called log
> (xmlns:log="http://apache.org/xsp/log/2.0";). See:
> 
> http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/webapp/docs/samples/xs
> p/simple.xsp?rev=1.3&content-type=text/vnd.viewcvs-markup
> 
> for sample usage.


not bad for an auto-responder ;-)

thank you.

moritz.

-
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: XML for describing databases?

2002-03-14 Thread Marty McClelland

I developed something similar for use with an application.  I got it to
do what I needed - but I also worked with my approach enough to uncover
some pitfalls - so please let me know if you discover an xml schema to
represent a database schema.

I did find some solutions that were built on the assumption of the
database schema using the same structure as the xml schema like
http://www.w3.org/XML/RDB.html

Here are other useful links:
http://www.rpbourret.com/xml/XMLDBLinks.htm
http://www.rpbourret.com/xml/XMLAndDatabases.htm

marty

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, March 14, 2002 1:49 PM
> To: [EMAIL PROTECTED]
> Subject: XML for describing databases?
> 
> 
> Hey folks,
> 
>   I need to build a web interface to a whole bunch of 
> databases.  To limit the work I'll have to do, I would like 
> to be able to define each database in a XML file, and have 
> the interface somewhat dynamically generated from those files.
> 
> So, for one database named 'gesupply', part of the file 
> gesupply.xml would look like:
> 
> ---
> 
>   postgresql://localhost/gesupply
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> ... etc ...
> 
> 
> ---
> 
> The idea is, the xslt will generate the appropriate file(s) 
> to provide a basic interface to the database.
> 
> My question is: anyone know if a schema/xml-application like 
> this already 
> exists?  Any searches for database+xml come up with dbxml or 
> something related whcih, unless I'm misunderstanding 
> something, isnt of use in this sort of application.
> 
> -Tom  
> 
> -
> 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: Installation Cocoon 2.0.1

2002-03-14 Thread Vadim Gritsenko

> From: cyril vidal [mailto:[EMAIL PROTECTED]]
> 
> Vadim,
> 
> Actually, i've downloaded the Cocoon 2.0.1 binary version.
> Can't it really don't work by this way?

Steps were written for src version. You can try with binary version
also. First unpack cocoon.war in tomcat/webapps/cocoon, remove
cocoon.war; then follow instructions, only instead of lib/core directory
you will have tomcat/cocoon/WEB-INF/lib directory.

PS remove also tomcat/work/* directories.

Vadim

 
> Cyril.
> - Original Message -
> From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, March 14, 2002 7:56 PM
> Subject: RE: Installation Cocoon 2.0.1
> 
> 
> > > From: cyril vidal [mailto:[EMAIL PROTECTED]]
> > >
> > > Vadim,
> > >
> > > thanks for the tip.
> > > I've read your tutorial.
> > > Bu I don't find the cocoon directory you're talking about in step
2 :
> > > xml-cocoon2\lib\core  -:(.
> > > Could you please tell me how to see it?
> > > I apologize for these really basics questions...
> >
> > xml-cocoon2 referes to place were *source Cocoon distribution* is
> > installed. If you don't have lib/core, you must have at least lib/.
> >
> > If you have binary distribution, try source one. Snapshot is
available
> > from http://cvs.apache.org/snapshots/xml-cocoon2/, or download
release:
> > http://xml.apache.org/cocoon/dist/cocoon-2.0.1-src.zip
> >
> >
> > Vadim
> >
> >
> > > Cyril.
> > > - Original Message -
> > > From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, March 14, 2002 6:32 PM
> > > Subject: RE: Installation Cocoon 2.0.1
> > >
> > >
> > > Read
> > > http://marc.theaimsgroup.com/?t=10150987843&r=1&w=2
> > >
> > > Vadim
> > >
> > > -Original Message-
> > > From: cyril vidal [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, March 14, 2002 12:11 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Installation Cocoon 2.0.1
> > >
> > > Hello!
> > >
> > > I'm trying to install Cocoon 2.0.1 with the servlet engine Tomcat
> > 4.0.3
> > > on Windows Millenium, but it doesn't work.
> > > This is what I've done:
> > > a) I've downloaded Cocoon on c:\cocoon (Tomcat is on c:/tomcat)
> > > b) I've copied the file c:\cocoon\cocoon.war on c:\tomcat\webapps
> > > c) I've run Tomcat
> > > d) I've written http://localhost:8080/cocoon/ on IE6
> > >
> > > but unfortunelately, I've always the same http 500 Internal Server
> > > Error:
> > > exception
> > > javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
> > threw
> > > exception
> > > at
> > >
> >
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
> > > a:935)
> > > at org.apache.catalina.core.StandardWrapper.allocate(Compiled
> > > Code)
> > > at
> > >
> >
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> > > e.java:214)
> > > at
> > >
> >
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
> > > va:566)
> > > 
> > > and below this one
> > > root cause
> > > java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
> > > at java.lang.ClassLoader.defineClass0(Native Method)
> > > at java.lang.ClassLoader.defineClass(Compiled Code)
> > > at java.security.SecureClassLoader.defineClass(Compiled Code)
> > > at
> > >
> >
org.apache.catalina.loader.WebappClassLoader.findClassInternal(Compiled
> > > Code)
> > > at
> > > org.apache.catalina.loader.WebappClassLoader.findClass(Compiled
Code)
> > > at
> > > org.apache.catalina.loader.WebappClassLoader.loadClass(Compiled
Code)
> > > at java.lang.ClassLoader.loadClass(Compiled Code)
> > > at java.lang.ClassLoader.loadClass(Compiled Code)
> > > at
> > >
> >
org.apache.avalon.excalibur.component.ExcaliburComponentManager.configur
> > > e(Compiled Code)
> > >
> > > I don't know what to do. What's wrong?
> > > Thanks a lot for your answers,
> > > Cyril.
> > >
> > >
> > >
-
> > > 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

Re: Installation Cocoon 2.0.1

2002-03-14 Thread cyril vidal

Vadim,

Actually, i've downloaded the Cocoon 2.0.1 binary version.
Can't it really don't work by this way?

Cyril.
- Original Message - 
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 7:56 PM
Subject: RE: Installation Cocoon 2.0.1


> > From: cyril vidal [mailto:[EMAIL PROTECTED]]
> > 
> > Vadim,
> > 
> > thanks for the tip.
> > I've read your tutorial.
> > Bu I don't find the cocoon directory you're talking about in step 2 :
> > xml-cocoon2\lib\core  -:(.
> > Could you please tell me how to see it?
> > I apologize for these really basics questions...
> 
> xml-cocoon2 referes to place were *source Cocoon distribution* is
> installed. If you don't have lib/core, you must have at least lib/.
> 
> If you have binary distribution, try source one. Snapshot is available
> from http://cvs.apache.org/snapshots/xml-cocoon2/, or download release:
> http://xml.apache.org/cocoon/dist/cocoon-2.0.1-src.zip
> 
> 
> Vadim
> 
> 
> > Cyril.
> > - Original Message -
> > From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, March 14, 2002 6:32 PM
> > Subject: RE: Installation Cocoon 2.0.1
> > 
> > 
> > Read
> > http://marc.theaimsgroup.com/?t=10150987843&r=1&w=2
> > 
> > Vadim
> > 
> > -Original Message-
> > From: cyril vidal [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, March 14, 2002 12:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: Installation Cocoon 2.0.1
> > 
> > Hello!
> > 
> > I'm trying to install Cocoon 2.0.1 with the servlet engine Tomcat
> 4.0.3
> > on Windows Millenium, but it doesn't work.
> > This is what I've done:
> > a) I've downloaded Cocoon on c:\cocoon (Tomcat is on c:/tomcat)
> > b) I've copied the file c:\cocoon\cocoon.war on c:\tomcat\webapps
> > c) I've run Tomcat
> > d) I've written http://localhost:8080/cocoon/ on IE6
> > 
> > but unfortunelately, I've always the same http 500 Internal Server
> > Error:
> > exception
> > javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
> threw
> > exception
> > at
> >
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
> > a:935)
> > at org.apache.catalina.core.StandardWrapper.allocate(Compiled
> > Code)
> > at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> > e.java:214)
> > at
> >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
> > va:566)
> > 
> > and below this one
> > root cause
> > java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
> > at java.lang.ClassLoader.defineClass0(Native Method)
> > at java.lang.ClassLoader.defineClass(Compiled Code)
> > at java.security.SecureClassLoader.defineClass(Compiled Code)
> > at
> >
> org.apache.catalina.loader.WebappClassLoader.findClassInternal(Compiled
> > Code)
> > at
> > org.apache.catalina.loader.WebappClassLoader.findClass(Compiled Code)
> > at
> > org.apache.catalina.loader.WebappClassLoader.loadClass(Compiled Code)
> > at java.lang.ClassLoader.loadClass(Compiled Code)
> > at java.lang.ClassLoader.loadClass(Compiled Code)
> > at
> >
> org.apache.avalon.excalibur.component.ExcaliburComponentManager.configur
> > e(Compiled Code)
> > 
> > I don't know what to do. What's wrong?
> > Thanks a lot for your answers,
> > Cyril.
> > 
> > 
> > -
> > 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: Problem creating new generator

2002-03-14 Thread Vadim Gritsenko

> From: Volker Schneider [mailto:[EMAIL PROTECTED]]
> 
> Dear cocoon-users,

First of all, what servlet engine do you use? I will assume Tomcat 4.0.1
here...


> first I tried to run the "time" example, but I got the error message,
that
> the component cannot be found, though all classes were at the right
place.

What is it? Or were did you get it?


> Second I tried to take the Generator.java class,

Do you mean Generator interface or one of the Cocoon's generators?


> renamed it and cleaned it
> from the missing component. The generator should now generate an empty
> document (startDocument + endDocument). For this class I created a new
> directory "testapp" below the "classes" directory

Is this classes directory same as tomcat/webapps/cocoon/WEB-INF/classes?


> and gave the new class the
> package name of this directory.

I assume you compiled your generator and you have a class file.


> Then I registered the new generator in the
> sitemap, but didn't create a pipeline for it (I removed my pipeline,
because
> I saw, that the error also occurred without the pipeline. Then I
cleaned the
> working directory and restarted cocoon).
> 
> When calling the demo site http:///cocoon  (which takes the
changed
> sitemap) an error occurred which says, that the sitemap was wrong,
because
> the class name was unknown. My generator entry looked like this:
> 
> ...
> 
> 
> 
> What is wrong?

If my assumptions are correct, it should work.


> Where can I find examples or documentation how to add / build new
> generators, transformers and serializers?

Basically, these are all the correct steps. If you will be unable to
find a solution for your issue, you can try (assuming you have src
version of Cocoon, not bin) to put your generator under
org.apache.cocoon.generation package, and use "build
-Dinclude.webapp.libs=yes webapp" to make webapp which includes your
generator.

Vadim

> We can't use only standard
> components, because as an example we have to serve some other devices
which
> don't understand HTML or WML.
> 
> Thank you, best regards,
> - Volker -
 


-
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: thanks for sharing your expertise Vadim

2002-03-14 Thread Vadim Gritsenko

:)

Vadim

> From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]]
> 
> From: "Marty McClelland" <[EMAIL PROTECTED]>
> 
> > Hello Vadim -
> ...
> > I also want to acknowledge your patience with newbies.  After
reading
> > the list for some months - I find it interesting to see how many of
the
> > questions are repeats.  Yet you continue to point folks in the right
> > direction - even when answering the same questions for the hundredth
> > time.
> 
> Don't be fooled.
> Vadim is an auto-responder mail daemon.
> 
> I'm writing a Cocoon Component called VadimResponder that is going in
the
> next release. Having problems with internationalization, but I think
all
> will go well by then.
> The only problem we are having is that sometimes it replies
autonomously
> without any request coming in.
> I think this is a feature, rather than a bug, but we're investigating.
> 
> ;-D
> 
> --
> Nicola Ken Barozzi   [EMAIL PROTECTED]
> - verba volant, scripta manent -
>(discussions get forgotten, just code remains)
> -


-
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: Installation Cocoon 2.0.1

2002-03-14 Thread Vadim Gritsenko

> From: cyril vidal [mailto:[EMAIL PROTECTED]]
> 
> Vadim,
> 
> thanks for the tip.
> I've read your tutorial.
> Bu I don't find the cocoon directory you're talking about in step 2 :
> xml-cocoon2\lib\core  -:(.
> Could you please tell me how to see it?
> I apologize for these really basics questions...

xml-cocoon2 referes to place were *source Cocoon distribution* is
installed. If you don't have lib/core, you must have at least lib/.

If you have binary distribution, try source one. Snapshot is available
from http://cvs.apache.org/snapshots/xml-cocoon2/, or download release:
http://xml.apache.org/cocoon/dist/cocoon-2.0.1-src.zip


Vadim


> Cyril.
> - Original Message -
> From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, March 14, 2002 6:32 PM
> Subject: RE: Installation Cocoon 2.0.1
> 
> 
> Read
> http://marc.theaimsgroup.com/?t=10150987843&r=1&w=2
> 
> Vadim
> 
> -Original Message-
> From: cyril vidal [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 14, 2002 12:11 PM
> To: [EMAIL PROTECTED]
> Subject: Installation Cocoon 2.0.1
> 
> Hello!
> 
> I'm trying to install Cocoon 2.0.1 with the servlet engine Tomcat
4.0.3
> on Windows Millenium, but it doesn't work.
> This is what I've done:
> a) I've downloaded Cocoon on c:\cocoon (Tomcat is on c:/tomcat)
> b) I've copied the file c:\cocoon\cocoon.war on c:\tomcat\webapps
> c) I've run Tomcat
> d) I've written http://localhost:8080/cocoon/ on IE6
> 
> but unfortunelately, I've always the same http 500 Internal Server
> Error:
> exception
> javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
threw
> exception
> at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
> a:935)
> at org.apache.catalina.core.StandardWrapper.allocate(Compiled
> Code)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:214)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
> va:566)
> 
> and below this one
> root cause
> java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(Compiled Code)
> at java.security.SecureClassLoader.defineClass(Compiled Code)
> at
>
org.apache.catalina.loader.WebappClassLoader.findClassInternal(Compiled
> Code)
> at
> org.apache.catalina.loader.WebappClassLoader.findClass(Compiled Code)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(Compiled Code)
> at java.lang.ClassLoader.loadClass(Compiled Code)
> at java.lang.ClassLoader.loadClass(Compiled Code)
> at
>
org.apache.avalon.excalibur.component.ExcaliburComponentManager.configur
> e(Compiled Code)
> 
> I don't know what to do. What's wrong?
> Thanks a lot for your answers,
> Cyril.
> 
> 
> -
> 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: I'd really love to POST forms...

2002-03-14 Thread Vadim Gritsenko

> From: Matthieu BenÊteau [mailto:[EMAIL PROTECTED]]
> 
> Hi folks,
> 
> I'm using Cocoon-2.0.1 with Tomcat-4.0.1.
> 
> I'm working on a Cocoon-based editor that allows to edit and modify
XML
> files with a web browser. It uses several HTML forms.
> 
> RequestGenerator is just fine to retrieve the parameters of a GET
request.
> But as my application is growing, my forms are getting bigger and I
need to
> submit them with the POST method.

RequestGenerator *should* work with posted forms also. Please try it;
get back if it does not work with patches ;) or bug report.

Vadim
 
> Unfortunately, it seems that the only generator dealing with POST is
the
> StreamGenerator, which expects some XML data. And I have no way to
submit
> the content of my forms as XML data.
> 
> Does anyone know why there is no generator to make me happy?
> I would really love to POST forms!...
> 
> 
> Matthieu
> 
> 
> -
> 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: newbie: how to get a clean application

2002-03-14 Thread Vadim Gritsenko

> From: Moritz Petersen [mailto:[EMAIL PROTECTED]]
> 
> nicola,
> 
> i have another remark. after using your (and also vadim's!) hints,
i've got
> a much smaller cocoon webapp, than before. but that's not exactly what
i
> wanted.
> the produced war file contains still documentations etc. and the
> sitemap.xmap and cocoon.xconf are still full.
> 
> i removed all .jars, that are not required and all pielines, actions,
> generators etc. from the sitemap, that i don't need. the cocoon.xconf
file
> is a little bit more complicated, so i just removed some database
stuff,
> which i don't need.
> 
> after that, i've got my typical application structure:
> 
> /config (sitemap.xmap, cocoon.xconf, web.xml...)
> /lib (all required .jars etc.)
> /src (my sources)
> /web (my .html, .xml, ... files)
> build.xml
> 
> running ant install (my own build script) installs a "small" web
application
> (which is still about 8.5 MB big!), which creates xml via my own
generator,
> transforms it to svg and serializes it to png.
> 
> it would be nice to have a tool, which checks dependencies at all
levels.
> like "configure_cocoon svg, html, xslt, png" which creates a webapp
_only_
> with the neccesary .jars, a appropriately configured sitemap and
> cocoon.xconf... ok, you have other things to do / in mind. maybe i'll
find
> some time to start it.

The work is going on in this direction. We take small steps, but I'm
sure you will see improvements in Cocoon 2.0.2 comparing to 2.0.1.

Vadim
 
> cheers,
> 
> moritz.
> 
> 
> > > but: the ant task "user-input" is still unknown!
> >
> > I think I fixed it in latest CVS version (2.0.2).
> > Try that next time you upgrade, and let me know if there are
> > still problems.
> >
> > > thanks a lot!!
> >
> > You're welcome :-)
> >
> > Remember users: we need your input, and telling us what is going
wrong for
> > you helps us *a lot*.
> > We should thank *you all* for your patience and collaboration, and
> > constructive criticism is very welcome indeed.
> >
> > Thank you :-)
> >
> > --
> > Nicola Ken Barozzi   [EMAIL PROTECTED]
> > - verba volant, scripta manent -
> >(discussions get forgotten, just code remains)
> >
-


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




XML for describing databases?

2002-03-14 Thread tvon

Hey folks,

I need to build a web interface to a whole bunch of databases.  To
limit the work I'll have to do, I would like to be able to define each
database in a XML file, and have the interface somewhat dynamically
generated from those files.

So, for one database named 'gesupply', part of the file gesupply.xml would
look like:

---

postgresql://localhost/gesupply










... etc ...


---

The idea is, the xslt will generate the appropriate file(s) to provide a
basic interface to the database.

My question is: anyone know if a schema/xml-application like this already 
exists?  Any searches for database+xml come up with dbxml or something
related whcih, unless I'm misunderstanding something, isnt of use in this
sort of application.

-Tom

-
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: xsl and log4j

2002-03-14 Thread Vadim Gritsenko

> From: Moritz Petersen [mailto:[EMAIL PROTECTED]]
> 
> hi list,
> 
> is it possible to use log4j for loggings from inside xsp commands?
like

I'm not sure about its current status (never used it by myself), but
there is logichseet in the Cocoon (since day one) called log
(xmlns:log="http://apache.org/xsp/log/2.0";). See:

http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/webapp/docs/samples/xs
p/simple.xsp?rev=1.3&content-type=text/vnd.viewcvs-markup

for sample usage.

Vadim

> 
> 
> 
> 
> ...
> 
> 
> 
>   log this.
> 
> 
> ...
> 
> 
> 
> thank you,
> 
> moritz.



-
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: Cocoon2, SOAP: How to process xml-content?

2002-03-14 Thread William Brogden

> -Original Message-
> From: Erwin Burgstaller [mailto:[EMAIL PROTECTED]] On Behalf 
> Of Erwin Burgstaller
> Sent: Thursday, March 14, 2002 12:04 PM
> To: [EMAIL PROTECTED]
> Subject: Cocoon2, SOAP: How to process xml-content?
> 
> 
> 
> I have a SOAP service which produces well formed xml-content. 
> I want to
> get data from that service into a cocoon xsp application. At 
> the moment
> the result looks like this:
> 
> [..]
> 
> 
> 
> 
> 
> 2002.01.0707:58:59<
> /stime>2002.01.0712
> :01:490099 roup>06209
> 
> [..]
> 
> This is without processing any stylesheet.
> 
> My question is: How can I prohibit the xml-code to be converted to
> text, or how can transform it back to xml to be processed by a
> stylesheet later. The intention is to handle it like files 
> with "xinclude".
> 
> Thanks,
>   Erwin

Why not have the service return a org.w3c.dom.Element -
that will produce xml directly in the SOAP response.

Your deployment descriptor would have an entry like this example I ran:

 
   http://xml.apache.org/xml-soap/literalxml";
 xmlns:x="urn:ExercisePubs" qname="x:book-element"
 javaType="org.w3c.dom.Element"
 java2XMLClassName=
   "org.apache.soap.encoding.literalxml.XMLParameterSerializer"
 xml2JavaClassName=
   "org.apache.soap.encoding.literalxml.XMLParameterSerializer"
 />


[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285





-
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: Installation Cocoon 2.0.1

2002-03-14 Thread cyril vidal

Vadim,

thanks for the tip.
I've read your tutorial.
Bu I don't find the cocoon directory you're talking about in step 2 :
xml-cocoon2\lib\core  -:(.
Could you please tell me how to see it?
I apologize for these really basics questions...

Cyril.
- Original Message -
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 6:32 PM
Subject: RE: Installation Cocoon 2.0.1


Read
http://marc.theaimsgroup.com/?t=10150987843&r=1&w=2

Vadim

-Original Message-
From: cyril vidal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 12:11 PM
To: [EMAIL PROTECTED]
Subject: Installation Cocoon 2.0.1

Hello!

I'm trying to install Cocoon 2.0.1 with the servlet engine Tomcat 4.0.3
on Windows Millenium, but it doesn't work.
This is what I've done:
a) I've downloaded Cocoon on c:\cocoon (Tomcat is on c:/tomcat)
b) I've copied the file c:\cocoon\cocoon.war on c:\tomcat\webapps
c) I've run Tomcat
d) I've written http://localhost:8080/cocoon/ on IE6

but unfortunelately, I've always the same http 500 Internal Server
Error:
exception
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:935)
at org.apache.catalina.core.StandardWrapper.allocate(Compiled
Code)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)

and below this one
root cause
java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Compiled Code)
at java.security.SecureClassLoader.defineClass(Compiled Code)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(Compiled
Code)
at
org.apache.catalina.loader.WebappClassLoader.findClass(Compiled Code)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.configur
e(Compiled Code)

I don't know what to do. What's wrong?
Thanks a lot for your answers,
Cyril.


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




I'd really love to POST forms...

2002-03-14 Thread Matthieu Benéteau

Hi folks,

I'm using Cocoon-2.0.1 with Tomcat-4.0.1.

I'm working on a Cocoon-based editor that allows to edit and modify XML
files with a web browser. It uses several HTML forms.

RequestGenerator is just fine to retrieve the parameters of a GET request.
But as my application is growing, my forms are getting bigger and I need to
submit them with the POST method.

Unfortunately, it seems that the only generator dealing with POST is the
StreamGenerator, which expects some XML data. And I have no way to submit
the content of my forms as XML data.

Does anyone know why there is no generator to make me happy?
I would really love to POST forms!...


Matthieu


-
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: newbie: how to get a clean application

2002-03-14 Thread Moritz Petersen

nicola,

i have another remark. after using your (and also vadim's!) hints, i've got
a much smaller cocoon webapp, than before. but that's not exactly what i
wanted.
the produced war file contains still documentations etc. and the
sitemap.xmap and cocoon.xconf are still full.

i removed all .jars, that are not required and all pielines, actions,
generators etc. from the sitemap, that i don't need. the cocoon.xconf file
is a little bit more complicated, so i just removed some database stuff,
which i don't need.

after that, i've got my typical application structure:

/config (sitemap.xmap, cocoon.xconf, web.xml...)
/lib (all required .jars etc.)
/src (my sources)
/web (my .html, .xml, ... files)
build.xml

running ant install (my own build script) installs a "small" web application
(which is still about 8.5 MB big!), which creates xml via my own generator,
transforms it to svg and serializes it to png.

it would be nice to have a tool, which checks dependencies at all levels.
like "configure_cocoon svg, html, xslt, png" which creates a webapp _only_
with the neccesary .jars, a appropriately configured sitemap and
cocoon.xconf... ok, you have other things to do / in mind. maybe i'll find
some time to start it.

cheers,

moritz.


> > but: the ant task "user-input" is still unknown!
>
> I think I fixed it in latest CVS version (2.0.2).
> Try that next time you upgrade, and let me know if there are
> still problems.
>
> > thanks a lot!!
>
> You're welcome :-)
>
> Remember users: we need your input, and telling us what is going wrong for
> you helps us *a lot*.
> We should thank *you all* for your patience and collaboration, and
> constructive criticism is very welcome indeed.
>
> Thank you :-)
>
> --
> Nicola Ken Barozzi   [EMAIL PROTECTED]
> - verba volant, scripta manent -
>(discussions get forgotten, just code remains)
> -
>
>
> -
> 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: thanks for sharing your expertise Vadim

2002-03-14 Thread Moritz Petersen

... but it's not the first of april, today?

-mo.

> > Hello Vadim -
> ...
> > I also want to acknowledge your patience with newbies.  After reading
> > the list for some months - I find it interesting to see how many of the
> > questions are repeats.  Yet you continue to point folks in the right
> > direction - even when answering the same questions for the hundredth
> > time.
> 
> Don't be fooled.
> Vadim is an auto-responder mail daemon.
> 
> I'm writing a Cocoon Component called VadimResponder that is going in the
> next release. Having problems with internationalization, but I think all
> will go well by then.
> The only problem we are having is that sometimes it replies autonomously
> without any request coming in.
> I think this is a feature, rather than a bug, but we're investigating.
> 
> ;-D
> 
> --
> Nicola Ken Barozzi   [EMAIL PROTECTED]
> - verba volant, scripta manent -
>(discussions get forgotten, just code remains)
> -
> 
> 
> -
> 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: thanks for sharing your expertise Vadim

2002-03-14 Thread Nicola Ken Barozzi

From: "Marty McClelland" <[EMAIL PROTECTED]>

> Hello Vadim -
...
> I also want to acknowledge your patience with newbies.  After reading
> the list for some months - I find it interesting to see how many of the
> questions are repeats.  Yet you continue to point folks in the right
> direction - even when answering the same questions for the hundredth
> time.

Don't be fooled.
Vadim is an auto-responder mail daemon.

I'm writing a Cocoon Component called VadimResponder that is going in the
next release. Having problems with internationalization, but I think all
will go well by then.
The only problem we are having is that sometimes it replies autonomously
without any request coming in.
I think this is a feature, rather than a bug, but we're investigating.

;-D

--
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


-
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: newbie: how to get a clean application

2002-03-14 Thread Nicola Ken Barozzi

From: "Moritz Petersen" <[EMAIL PROTECTED]>

> but: the ant task "user-input" is still unknown!

I think I fixed it in latest CVS version (2.0.2).
Try that next time you upgrade, and let me know if there are still problems.

> thanks a lot!!

You're welcome :-)

Remember users: we need your input, and telling us what is going wrong for
you helps us *a lot*.
We should thank *you all* for your patience and collaboration, and
constructive criticism is very welcome indeed.

Thank you :-)

--
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


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




thanks for sharing your expertise Vadim

2002-03-14 Thread Marty McClelland

Hello Vadim - 

I just want to express my appreciation for your participation on the
Cocoon users list.  

I have a Cocoon 1.8.2 application that I will migrate to Cocoon 2 in a
couple of months.   In the meantime, I am reading the list to get a
heads up on the issues and solutions with C2 ( there is very little
traffic about C1.8 these days ).  So I am learning from your responses
to others questions.

I also want to acknowledge your patience with newbies.  After reading
the list for some months - I find it interesting to see how many of the
questions are repeats.  Yet you continue to point folks in the right
direction - even when answering the same questions for the hundredth
time.

thanks again!
enjoy the day - marty  

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




xsl and log4j

2002-03-14 Thread Moritz Petersen

hi list,

is it possible to use log4j for loggings from inside xsp commands? like




...



log this.


...



thank you,

moritz.

-
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 Database pool

2002-03-14 Thread snpe

hello,
  I am tried cocoon 'jdbc' datasources (oracle) and esql
When I use driver,dburl, username (not user) and password then everthing is ok
But If I use esql:pool i get excpetion
NoAvaliableConnectionException : There are no connections in the pool, check 
your settings

I change setting, but exception is same
When I change hint (), error is change
My datasources is :
 
  

  oracle.jdbc.driver.OracleDriver
  
  
  false
  jdbc:oracle:thin:@localhost:1521:V8
  scott
  tiger

  

Oracle and Jdbc driver are correct, because esql with driver,dburl ... work 
fine

Any comments ?

regards
haris peco

-
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: Installation Cocoon 2.0.1

2002-03-14 Thread Vadim Gritsenko

Read
http://marc.theaimsgroup.com/?t=10150987843&r=1&w=2

Vadim

-Original Message-
From: cyril vidal [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 14, 2002 12:11 PM
To: [EMAIL PROTECTED]
Subject: Installation Cocoon 2.0.1

Hello!
 
I'm trying to install Cocoon 2.0.1 with the servlet engine Tomcat 4.0.3
on Windows Millenium, but it doesn't work.
This is what I've done:
a) I've downloaded Cocoon on c:\cocoon (Tomcat is on c:/tomcat)
b) I've copied the file c:\cocoon\cocoon.war on c:\tomcat\webapps
c) I've run Tomcat  
d) I've written http://localhost:8080/cocoon/ on IE6
 
but unfortunelately, I've always the same http 500 Internal Server
Error:
exception 
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:935)
at org.apache.catalina.core.StandardWrapper.allocate(Compiled
Code)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)

and below this one
root cause 
java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Compiled Code)
at java.security.SecureClassLoader.defineClass(Compiled Code)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(Compiled
Code)
at
org.apache.catalina.loader.WebappClassLoader.findClass(Compiled Code)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.configur
e(Compiled Code)
 
I don't know what to do. What's wrong?
Thanks a lot for your answers,
Cyril.


-
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: newbie: how to get a clean application

2002-03-14 Thread Moritz Petersen

> > thank you all for your replies.
> >
> > unfortunately, it doesn't work that smooth.
> > if i run
> >
> > ant installwar
> 
> ahem, I know I'm repeating myself, but use
> "build installwar"

h. oops? ok! works.

but: the ant task "user-input" is still unknown!

thanks a lot!!

-moritz.

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




XSP...help!

2002-03-14 Thread berardi


Hi David,
I'm new of Cocoon2 and I try to work with!
but I've a little problem...
I've  a xsp page (user interface) where you can insert some data
   with  input fields, when you click on the "submit" button, then you
go
  in a other xsp page where the data you entered before goes into a
"database" made with a "select options" ... anyway,
  after that I want to return in the first page refreshed with new data!

I've already done that but with JSP and I made the forward with a simple

jsp tag like this:

something
 
that's work fine...but now, I've transformed my application from JSP
to XSP... and now I don't know how can I do that in XSP!

 ...if you've some idea...
kind regards
luke





-
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: newbie: how to get a clean application

2002-03-14 Thread Vadim Gritsenko

> From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]]
> 
> From: "Moritz Petersen" <[EMAIL PROTECTED]>
> 
> > thank you all for your replies.
> >
> > unfortunately, it doesn't work that smooth.
> > if i run
> >
> > ant installwar
> 
> ahem, I know I'm repeating myself, but use
> "build installwar"
> 
> > what's what i wouldn't call a well-prepared build file. anyways, i
keep on
> > trying; any help will be very welcome, though!
> 
> ;-P
> 
> Use the build script and see if it works.

Ken:

If he is using release version... IIRC, some bugs were fixed since then.
May be it is better to recommend coming 2.0.2?

Vadim


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




Installation Cocoon 2.0.1

2002-03-14 Thread cyril vidal



Hello!
 
I'm trying to install Cocoon 2.0.1 
with the servlet engine Tomcat 4.0.3 on Windows Millenium, but it doesn't 
work.
This is what I've done:
a) I've downloaded Cocoon on 
c:\cocoon (Tomcat is on c:/tomcat)
b) I've copied the file 
c:\cocoon\cocoon.war on c:\tomcat\webapps
c) I've run Tomcat  

d) I've written http://localhost:8080/cocoon/ on 
IE6
 
but unfortunelately, I've always the 
same http 500 Internal Server Error:

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.allocate(Compiled Code)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
and below this oneroot cause java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(Compiled Code)
	at java.security.SecureClassLoader.defineClass(Compiled Code)
	at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Compiled Code)
	at org.apache.catalina.loader.WebappClassLoader.findClass(Compiled Code)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(Compiled Code)
	at java.lang.ClassLoader.loadClass(Compiled Code)
	at java.lang.ClassLoader.loadClass(Compiled Code)
	at org.apache.avalon.excalibur.component.ExcaliburComponentManager.configure(Compiled Code) I don't know what to do. What's wrong?Thanks a lot for your answers,Cyril.



Re: newbie: how to get a clean application

2002-03-14 Thread Nicola Ken Barozzi

From: "Moritz Petersen" <[EMAIL PROTECTED]>

> thank you all for your replies.
>
> unfortunately, it doesn't work that smooth.
> if i run
>
> ant installwar

ahem, I know I'm repeating myself, but use
"build installwar"

> what's what i wouldn't call a well-prepared build file. anyways, i keep on
> trying; any help will be very welcome, though!

;-P

Use the build script and see if it works.

--
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


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




Cocoon2, SOAP: How to process xml-content?

2002-03-14 Thread Erwin Burgstaller


I have a SOAP service which produces well formed xml-content. I want to
get data from that service into a cocoon xsp application. At the moment
the result looks like this:

[..]





2002.01.0707:58:592002.01.0712:01:49009906209

[..]

This is without processing any stylesheet.

My question is: How can I prohibit the xml-code to be converted to
text, or how can transform it back to xml to be processed by a
stylesheet later. The intention is to handle it like files with "xinclude".

Thanks,
Erwin

-
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: newbie: how to get a clean application

2002-03-14 Thread Moritz Petersen

thank you all for your replies.

unfortunately, it doesn't work that smooth.
if i run

ant installwar

i get the error message:

Q:\home\Moritz\development\apache.org\cocoon-2.0.1-src\cocoon-2.0.1\build.xm
l:264: Could not create task of type: user-input. Common solutions are to
use taskdef to declare your task, or, if this is an optional task, to put
the optional.jar in the lib directory of your ant installation (ANT_HOME).

---

ok, i don't have the user-input optionals (using ant 1.4.1). so i comment it
out and set install.war to build/mycocoon


but then running ant installwar again, i get the error message:


generate-java-code:
[style] DEPRECATED - xslp processor is deprecated. Use trax or xalan
instead.
[style] java.lang.NoClassDefFoundError:
org/apache/xalan/xslt/XSLTProcessorFactory
[style] at
org.apache.tools.ant.taskdefs.optional.XalanLiaison.(XalanLiaison.java
:82)
[style] at java.lang.Class.newInstance0(Native Method)
[style] at java.lang.Class.newInstance(Class.java:237)
[style] at
org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProcess.java:
278)
[style] at
org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProcess.java:406)
[style] at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:141)
[style] at org.apache.tools.ant.Task.perform(Task.java:217)
[style] at org.apache.tools.ant.Target.execute(Target.java:184)
[style] at org.apache.tools.ant.Target.performTasks(Target.java:202)
[style] at
org.apache.tools.ant.Project.executeTarget(Project.java:601)
[style] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:266)
[style] at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:120)
[style] at org.apache.tools.ant.Task.perform(Task.java:217)
[style] at org.apache.tools.ant.Target.execute(Target.java:184)
[style] at org.apache.tools.ant.Target.performTasks(Target.java:202)
[style] at
org.apache.tools.ant.Project.executeTarget(Project.java:601)
[style] at
org.apache.tools.ant.Project.executeTargets(Project.java:560)
[style] at org.apache.tools.ant.Main.runBuild(Main.java:454)
[style] at org.apache.tools.ant.Main.start(Main.java:153)
[style] at org.apache.tools.ant.Main.main(Main.java:176)
[style] java.lang.NoClassDefFoundError: com/kvisco/xsl/XSLProcessor
[style] at
org.apache.tools.ant.taskdefs.optional.XslpLiaison.(XslpLiaison.java:7
7)
[style] at java.lang.Class.newInstance0(Native Method)
[style] at java.lang.Class.newInstance(Class.java:237)
[style] at
org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProcess.java:
274)
[style] at
org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProcess.java:403)
[style] at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:141)
[style] at org.apache.tools.ant.Task.perform(Task.java:217)
[style] at org.apache.tools.ant.Target.execute(Target.java:184)
[style] at org.apache.tools.ant.Target.performTasks(Target.java:202)
[style] at
org.apache.tools.ant.Project.executeTarget(Project.java:601)
[style] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:266)
[style] at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:120)
[style] at org.apache.tools.ant.Task.perform(Task.java:217)
[style] at org.apache.tools.ant.Target.execute(Target.java:184)
[style] at org.apache.tools.ant.Target.performTasks(Target.java:202)
[style] at
org.apache.tools.ant.Project.executeTarget(Project.java:601)
[style] at
org.apache.tools.ant.Project.executeTargets(Project.java:560)
[style] at org.apache.tools.ant.Main.runBuild(Main.java:454)
[style] at org.apache.tools.ant.Main.start(Main.java:153)
[style] at org.apache.tools.ant.Main.main(Main.java:176)


-


what's what i wouldn't call a well-prepared build file. anyways, i keep on
trying; any help will be very welcome, though!

cheers,

moritz.

> -Original Message-
> From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 14, 2002 12:04 PM
> To: [EMAIL PROTECTED]
> Subject: Re: newbie: how to get a clean application
>
>
> From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
>
> > > From: Moritz Petersen [mailto:[EMAIL PROTECTED]]
> > >
> > > hi list,
> > >
> > > i'm quite a newbie to cocoon. the last few hours, i've spent removing
> > .jar
> > > files, pipelines etc. from the original cocoon configuration.
> > > my goal is to build a thin cocoon application, which renders xml to
> > svg to
> > > png. so all the database stuff, the searching abilities, the hello
> > world
> > > pipelines etc. are not used by my application.
> > > is there a clean cocoon template anywhere,
> >
> > http://sourceforge.net/projects/ch

Problem creating new generator

2002-03-14 Thread Volker Schneider

Dear cocoon-users,

first I tried to run the "time" example, but I got the error message, that
the component cannot be found, though all classes were at the right place.

Second I tried to take the Generator.java class, renamed it and cleaned it
from the missing component. The generator should now generate an empty
document (startDocument + endDocument). For this class I created a new
directory "testapp" below the "classes" directory and gave the new class the
package name of this directory. Then I registered the new generator in the
sitemap, but didn't create a pipeline for it (I removed my pipeline, because
I saw, that the error also occurred without the pipeline. Then I cleaned the
working directory and restarted cocoon).

When calling the demo site http:///cocoon  (which takes the changed
sitemap) an error occurred which says, that the sitemap was wrong, because
the class name was unknown. My generator entry looked like this:

...



What is wrong?
Where can I find examples or documentation how to add / build new
generators, transformers and serializers? We can't use only standard
components, because as an example we have to serve some other devices which
don't understand HTML or WML.

Thank you, best regards,
- Volker -


-
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: Call of dynamically created tags in logicsheets

2002-03-14 Thread Vadim Gritsenko

> From: Dirk Reiss [mailto:[EMAIL PROTECTED]]
> 
> Hello again,
> 
> thank you very much, this works fine, but the next problem is, that
several
> files are not processed
> recursively, which means: one file links to another which (for itself)
> contains/links to another using the same tags
> as the first one...
> this means, that we would have to include these files "on-the-fly" and
start
> over parsing the included  content.
> 
> is this possible? as far as we understand, the serverpages-generator
would
> have to be called again after the
> cinclude-transformer... is this right?

To resolve all this recursively, try including not the xml *file* (which
could reference another file), but already processed xml *resource*
(file with all of the references resolved). To do this, use
cinclude:include to include not the files, but cocoon: protocol
resource.

It could look like this:

- a.xml or xsp or whatever 

  

- b.xml or xsp or whatever 

  

- c.xml or xsp or whatever 

  End



In the sitemap:








PS Adopt/change as needed, this just to show the way

Vadim 

> btw: we are using logicsheets and cocoon2.0
> 
> thanks for your quick answer
> best regards,
> 
> dirk
> 
> - Original Message -
> From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, March 14, 2002 4:18 PM
> Subject: RE: Call of dynamically created tags in logicsheets
> 
> 
> Dirk & Torsten:
> 
> What I understood: You want to insert content of document using XSLT
> document() function. Name of the document is generated dynamically by
> XSP.
> 
> If this is right, what you have to do:
> 
> -- sitemap -
> 
> 
> 
> 
> 
> -- logicsheet -
> 
>   
> getURI(" select="@identifier"/>")
>   
>   
> 
> 
> 
>   
> 
> 
> 
> 
> cinclude namespace should be declared as:
>   xmlns:cinclude="http://apache.org/cocoon/include/1.0";
> 
> Take a look at aggregate.xsp and logicsheet.xsp, it might help.
> 
> Vadim
> 
> -Original Message-
> From: Dirk Reiss [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 13, 2002 7:18 AM
> To: [EMAIL PROTECTED]
> Subject: Call of dynamically created tags in logicsheets
> 
> Hello,
> 
> we have the follogwing logicsheet where we dynamically create a tag
with
> the content of the return value of a java method. The creation of the
> tag is working very well so that I did not included the Java-code in
> this example. The output in the browser is currently a file having a
tag
> 
> Content
> 
> We thought that an  would cause Cocoon to apply the
> template  being part of the logicsheet but it
> does not work for us. Is this not possible within a logicsheet to
create
> dynamically tags because it was working during the later
transformation
> process. If it is possible, please let us know what we have to change.
> If you need further information, please let us know so that we can
> provide them.
> 
> Thanks,
> Dirk
> 
> 
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:xsp="http://apache.org/xsp";
> xmlns:ownnamespace="http://www.ownnamespace.org/xsl";
> xmlns:xinclude="http://www.w3.org/2001/XInclude";
> xmlns:util="http://apache.org/xsp/util/2.0";
> >
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> getURI(" select="@identifier"/>")
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> 
> The xsp-page which is used to call the logicsheet looks as follows
> 
> 
> 
>  language="java"
> xmlns:xsp="http://apache.org/xsp";
> xmlns:ownnamespace="http://www.ownnamespace.org/xsl";
> xmlns:util="http://www.apache.org/1999/XSP/Util";
> xmlns:xinclude="http://www.w3.org/2001/XInclude";
> >
> 
> 
> 
> 
> 
> 
> 
> 
> -
> 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: Call of dynamically created tags in logicsheets

2002-03-14 Thread Dirk Reiss

Hello again,

thank you very much, this works fine, but the next problem is, that several
files are not processed
recursively, which means: one file links to another which (for itself)
contains/links to another using the same tags
as the first one...
this means, that we would have to include these files "on-the-fly" and start
over parsing the included  content.

is this possible? as far as we understand, the serverpages-generator would
have to be called again after the
cinclude-transformer... is this right?

btw: we are using logicsheets and cocoon2.0

thanks for your quick answer
best regards,

dirk

- Original Message -
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 4:18 PM
Subject: RE: Call of dynamically created tags in logicsheets


Dirk & Torsten:

What I understood: You want to insert content of document using XSLT
document() function. Name of the document is generated dynamically by
XSP.

If this is right, what you have to do:

-- sitemap -





-- logicsheet -

  
getURI("")
  
  



  




cinclude namespace should be declared as:
  xmlns:cinclude="http://apache.org/cocoon/include/1.0";

Take a look at aggregate.xsp and logicsheet.xsp, it might help.

Vadim

-Original Message-
From: Dirk Reiss [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 7:18 AM
To: [EMAIL PROTECTED]
Subject: Call of dynamically created tags in logicsheets

Hello,

we have the follogwing logicsheet where we dynamically create a tag with
the content of the return value of a java method. The creation of the
tag is working very well so that I did not included the Java-code in
this example. The output in the browser is currently a file having a tag

Content

We thought that an  would cause Cocoon to apply the
template  being part of the logicsheet but it
does not work for us. Is this not possible within a logicsheet to create
dynamically tags because it was working during the later transformation
process. If it is possible, please let us know what we have to change.
If you need further information, please let us know so that we can
provide them.

Thanks,
Dirk



http://www.w3.org/1999/XSL/Transform";
xmlns:xsp="http://apache.org/xsp";
xmlns:ownnamespace="http://www.ownnamespace.org/xsl";
xmlns:xinclude="http://www.w3.org/2001/XInclude";
xmlns:util="http://apache.org/xsp/util/2.0";
>














getURI("")

















--

The xsp-page which is used to call the logicsheet looks as follows



http://apache.org/xsp";
xmlns:ownnamespace="http://www.ownnamespace.org/xsl";
xmlns:util="http://www.apache.org/1999/XSP/Util";
xmlns:xinclude="http://www.w3.org/2001/XInclude";
>








-
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: Bizarre SQUID Cocoon PDF caching issue - any brainwaves?

2002-03-14 Thread Stuart Roebuck

Peter,

I've tried that too, but thanks for suggestion it.

The only reference to PDFs in the configuration is in the mime.conf file 
which has lines like the following:

\.bin$  application/macbinary   anthony-
unknown.gif -   image
\.exe$  application/octet-streamanthony-
unknown.gif -   image
\.pdf$  application/pdf anthony-
unknown.gif -   image
\.ai$   application/postscript  anthony-
ps.gif  -   ascii   +download
\.eps$  application/postscript  anthony-
ps.gif  -   ascii   +download
\.ps$   application/postscript  anthony-
ps.gif  -   ascii   +download +view
\.snd$  audio/basic anthony-
sound.gif   -   image
\.mp2$  audio/basic anthony-
sound.gif   -   image
\.mp3$  audio/basic anthony-
sound.gif   -   image

But I know that .mp3 files download fine and that renaming the file .bin 
works fine, so I don't think that this is significant.

Stuart.

On Thursday, March 14, 2002, at 02:12 pm, Peter Royal wrote:

> On Thursday 14 March 2002 06:55 am, Stuart Roebuck wrote:
>> One of the many odd things is that, when I changed the file extension I
>> retained the "application/pdf" mime type, so if you download in a 
>> recent
>> browser it happily realises that the ".txt" file is really a PDF and
>> opens it with no problem (*but not* when it ends in ".pdf"!).
>>
>> Anyway, thanks for spending time searching out those links for me.  I
>> will keep bashing my head with various blunt objects and see if 
>> anything
>> comes out.
>
> egads, you do have a brain twister there. I'm guessing there is nothing 
> in
> your squid conf if you do a 'grep pdf' or 'grep acro'?
> -pete
>
> --
> peter royal -> [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]>
>
>

Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck (Adolos)
  Key fingerprint = 89D9 E405 F8B1 9B22 0FA2  F2C1 9E57 5AB1 88DD 65AF
-
Stuart Roebuck  [EMAIL PROTECTED]
Systems Architect Java, XML, MacOS X, XP, 
etc.
ADOLOS   


-
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: xsp-session:isNew question

2002-03-14 Thread Vadim Gritsenko

> From: Stefano Bonnin [mailto:[EMAIL PROTECTED]]
> 
> Hi,
> 
> I want check if the session is new, so, I have to use

> tag.
> 
> How can I use this tag?
> 
> Can I write a code as following
> 
> boolean isNew = ;

Yes. Try it.


> or
> 
> if () .

Yep. Try it also.


> In other words, how can I use this tag?

As shown above :)

 
> (I ask this because I didn't see any example about it.

(See
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/webapp/docs/samples/xs
p/session.xsp?rev=1.4&content-type=text/vnd.viewcvs-markup)

Vadim



-
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: Call of dynamically created tags in logicsheets

2002-03-14 Thread Vadim Gritsenko

Dirk & Torsten:

What I understood: You want to insert content of document using XSLT
document() function. Name of the document is generated dynamically by
XSP.

If this is right, what you have to do:

-- sitemap -





-- logicsheet -

  
getURI("")
  
  



  




cinclude namespace should be declared as:
  xmlns:cinclude="http://apache.org/cocoon/include/1.0";

Take a look at aggregate.xsp and logicsheet.xsp, it might help.

Vadim

-Original Message-
From: Dirk Reiss [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 13, 2002 7:18 AM
To: [EMAIL PROTECTED]
Subject: Call of dynamically created tags in logicsheets

Hello,
 
we have the follogwing logicsheet where we dynamically create a tag with
the content of the return value of a java method. The creation of the
tag is working very well so that I did not included the Java-code in
this example. The output in the browser is currently a file having a tag
 
Content
 
We thought that an  would cause Cocoon to apply the
template  being part of the logicsheet but it
does not work for us. Is this not possible within a logicsheet to create
dynamically tags because it was working during the later transformation
process. If it is possible, please let us know what we have to change.
If you need further information, please let us know so that we can
provide them.
 
Thanks,
Dirk
 

 
http://www.w3.org/1999/XSL/Transform";
    xmlns:xsp="http://apache.org/xsp";
    xmlns:ownnamespace="http://www.ownnamespace.org/xsl";
    xmlns:xinclude="http://www.w3.org/2001/XInclude";
    xmlns:util="http://apache.org/xsp/util/2.0";
    >
 


    
 
  
    
 
  

 


    
    getURI("")
    
    

 
    

     
  
 

    
  
    


 
 
--
 
The xsp-page which is used to call the logicsheet looks as follows
 

 
http://apache.org/xsp";
  xmlns:ownnamespace="http://www.ownnamespace.org/xsl";
    xmlns:util="http://www.apache.org/1999/XSP/Util"; 
    xmlns:xinclude="http://www.w3.org/2001/XInclude";
>
    
 
  
      
  



-
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: Problems restarting cocoon2 with WebSphere 4.0.1

2002-03-14 Thread Akber Choudhry


In Websphere, the 'Application Server' (under the node in the admin
client)  is the JVM.  I believe you mean
that you restarted the Cocoon Webapp - that will not restart the JVM.  And
you do not need to restart the whole Websphere.  From the adminclient,
shut down and start the App server (e.g. Default Server).  Once you have a
stable sitemap etc. - there will be little need to do that.  For
development, define another App Server inside the admin client for cocoon.
Send me an offline email for any further help.


Regards.


On Thu, 14 Mar 2002, Volker Schneider
wrote:

> Dear cocoon-users,
>
> after clearing the cocoon's working directory in WebSphere I restarted
> cocoon using the adminclient. After that, WebSphere's servlet engine hangs
> and I can't get any response from it. Maybe cocoon 2 didn't shut down
> properly. Yesterday we solved the problem by restarting the whole WebSphere,
> but that isn't a really solution because other applications will be shut
> down as well. Does anybody know a solution for that?
>
> Thanks, best regards
> - Volker -
>
>
> -
> 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]>
>

-- 
Akber Choudhry
Dyanet Inc.
http://www.dyanet.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]>




Re: Bizarre SQUID Cocoon PDF caching issue - any brainwaves?

2002-03-14 Thread Peter Royal

On Thursday 14 March 2002 06:55 am, Stuart Roebuck wrote:
> One of the many odd things is that, when I changed the file extension I
> retained the "application/pdf" mime type, so if you download in a recent
> browser it happily realises that the ".txt" file is really a PDF and
> opens it with no problem (*but not* when it ends in ".pdf"!).
>
> Anyway, thanks for spending time searching out those links for me.  I
> will keep bashing my head with various blunt objects and see if anything
> comes out.

egads, you do have a brain twister there. I'm guessing there is nothing in 
your squid conf if you do a 'grep pdf' or 'grep acro'?
-pete

-- 
peter royal -> [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]>




Call of dynamically created tags in logicsheets

2002-03-14 Thread Torsten Reiners

Hello,
 
we have the follogwing logicsheet where we
dynamically create a tag with the content of the return value of a java
method. The creation of the tag is working very well so that I did not
included the Java-code in this example. The output in the browser is
currently a file having a tag
 
Content
 
We thought that an 
would cause Cocoon to apply the template 
being part of the logicsheet but it does not work for us. Is this not
possible within a logicsheet to create dynamically tags because it was
working during the later transformation process. If it is possible,
please let us know what we have to change. If you need further
information, please let us know so that we can provide them.
 
Thanks,
Torsten

 

   
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   
xmlns:xsp="http://apache.org/xsp"
   
xmlns:ownnamespace="http://www.ownnamespace.org/xsl"
   
xmlns:xinclude="http://www.w3.org/2001/XInclude"
   
xmlns:util="http://apache.org/xsp/util/2.0"
   
>
 

    
 
  
    
 
  

 

   

   
getURI("")>
   

   


 
    

     
  
 

    
 

    


 
 
--
 
The xsp-page which is used to call the logicsheet looks as follows
 

 

 
language="java"
 
xmlns:xsp="http://apache.org/xsp"
 
xmlns:ownnamespace="http://www.ownnamespace.org/xsl"
   
xmlns:util="http://www.apache.org/1999/XSP/Util"

   
xmlns:xinclude="http://www.w3.org/2001/XInclude"
>
   

 
  
     

  


-- 
   
__  __
  
_ OO\| O__
   
O\__/O / O
  
/    O O\ /
   O
O 
|   

-.oOOo--oOOo.-
Torsten
Reiners  
Tel:++49-531-3913214
[EMAIL PROTECTED]   
Fax:++49-531-3918144
http://server3.winforms.phil.tu-bs.de/~treiners
TU Braunschweig
Abteilung Allgemeine Betriebswirtschaftslehre,
 Wirtschaftsinformatik und Informationsmanagement
Abt-Jerusalem-Str.7
38106 Braunschweig, Germany
Other EMails:  [EMAIL PROTECTED]
   
[EMAIL PROTECTED]
--



xsp-session:isNew question

2002-03-14 Thread Stefano Bonnin

Hi,

I want check if the session is new, so, I have to use 
tag.

How can I use this tag?

Can I write a code as following

boolean isNew = ;

or

if () .

In other words, how can I use this tag?

(I ask this because I didn't see any example about it.

Thanks.




---
Outgoing mail is certified Virus Free. (CopyRight FLASHH!)
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.330 / Virus Database: 184 - Release Date: 28/02/02


-
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 call a servlet from a generator, but with parameters POSTed!

2002-03-14 Thread Walter Gamba

Thanx 4 all the help ..
unfortunately I can't install Tomcat4 so I'll stick with this soultion

>
>>Hello!
>>
>>SUMMARY: How to use a servlet as a generator in Cocoon, but allowing 
>>forms data to be passed via POST method (And NOT GET!!)
>>--
>>
>>
>>I can obtain correct XML output, provided I am happy  with the raw XML 
>>and i don't translate it .. (and a side question could be.. how can I 
>>make the transformation from DOM to SAX efficiently, using some 
>>xml.apache.org library..  without serializing the DOM on a Stream and 
>>parsing it back?? THis brute force approach is the one I use now... but 
>>this is another question.. i suppose.. )
>
>
>Cocoon provides helpers to deal with DOM2SAX and SAX2DOM : 
>org.apache.cocoon.xml.dom.DOMStreamer in your case. Look at Javadocs if 
>this matches your needs.

Il'' see it in a while when I've resolved every other issue.. .. see below..


>Concerning your NPE, I already had the same : my mistake was to have sent 
>two contentHandler.startDocument().
>And I think you may do so here according to your code : the first is 
>explicitly written, and the second one may be implicit within the 
>parser.parse().

Thanx! That was it!!.. now i can have the output without errors. 
(erll.. sometimes).. It is still not parseed correctly by the XSL but I'll 
manage.. it seem to be a problem with namespace only..  But I have another 
nasty problem:

every other invokation of the servlet I get an exception because th 
super.contentHandler of my generator is NULL. If i relaod it is not null, 
if I reload again it is null (i've checked it by logging..) ..
Any idea?? I've found a vague refernce to this, stating that
"The content handler is NULL when trying to process
the SAX Events through the AbstractDOMTransformer."
but I can't see why it works every other invokation. THe generator is 
recreated each time, I gather?

Thanks

Walter






>>THe Problem arises when I add a Trasformer:
>>
>> 
>> 
>> > value="TestServlet"/>
>> 
>> 
>> 
>> 
>>
>>I've made the xsl such that it works fine with our testServlet and the 
>>requestGenerator:
>>...
>>   
>>  
>>
>>With the request generator it works fine and I get neatly formatted HTML, 
>>with our servlet, that apparently generates the same kind of XMLm it 
>>breaks down..
>>
>>Or, to be correct, it does not match any tags. The XSL is read because in 
>>the browser the basic HTML tags and title of the page (as specified inthe 
>>top level XSL "/" template-mathcing rule) are displayed, but any further 
>>XML tag is ignored, and moreover cocoon complains:
>>
>>FATAL_E (2002-03-13) 09:54.57:446   [core.xslt-processor] 
>>(/cocoon/prova/test.html) Thread-20/TraxErrorHandler: Error in 
>>TraxTransformer: javax.xml.transform.TransformerException: 
>>java.lang.NullPointerException
>>javax.xml.transform.TransformerException: java.lang.NullPointerException
>> at 
>> 
>org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1230) 
>>
>> at 
>> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3139)
>> at java.lang.Thread.run(Thread.java:484)
>>-
>>java.lang.NullPointerException
>> at 
>> 
>org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:1887)
> 
>>
>> at 
>> 
>org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1175) 
>>
>> at 
>> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3139)
>> at java.lang.Thread.run(Thread.java:484)
>>
>>
>>THat's it. I enclose the bit of code of the Generator that translated a 
>>DOM to SAX events.. perhaps there is something here that works with raw 
>>XML but breaks down when SAX events are sent down the pipeline..
>>
>>Any help would be appreciated!
>>Thanx
>>
>>Walter Gamba
>>
>>---
>>public synchronized void outputXML(String NSURI, Document doc)
>>{
>> try{
>> super.contentHandler.startDocument();
>> //super.contentHandler.startPrefixMapping("",NSURI);
>> transformDOM2SAX(super.contentHandler,doc);
>> //super.contentHandler.endPrefixMapping("");
>> super.contentHandler.endDocument();
>> }catch(SAXException s){
>> log.error("Errore SAX!:"+s);
>> }
>>}
>>
>>private static /* synchronized */ void transformDOM2SAX(ContentHandler 
>>cHandler, Document doc) {
>>  //brute force way
>>try {
>> //1) open stream
>> CharArrayWriter writer = new CharArrayWriter();
>>
>> printDocument(writer, doc);
>>
>> //2) create SAX parserthat can read from stream
>> SAXParserFactory spf = SAXParserFactory.newInstance();
>> SAXParser parser = spf.newSAXParser();
>>
>> //3) build a reader and 

Call of dynamically created tags in logicsheets

2002-03-14 Thread Dirk Reiss



Hello,
 
we have the follogwing logicsheet where we 
dynamically create a tag with the content of 
the return value of a java method. The creation of the tag is working very well 
so that I did not included the Java-code in this example. The output in the 
browser is currently a file having a tag
 
Content
 
We thought that an  would 
cause Cocoon to apply the template  being part of 
the logicsheet but it does not work for us. Is this not possible within a 
logicsheet to create dynamically tags because it was working during the later 
transformation process. If it is possible, please let us know what we have to 
change. If you need further information, please let us know so that we can 
provide them.
 
Thanks,
Dirk
 

 
    
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"    
xmlns:xsp="http://apache.org/xsp"    
xmlns:ownnamespace="http://www.ownnamespace.org/xsl"    
xmlns:xinclude="http://www.w3.org/2001/XInclude"    
xmlns:util="http://apache.org/xsp/util/2.0"    
>
 
    
     
  
 
  
 
    
    
getURI("")>    
    

 
        
 
  
 
    
  
    


 
 
--
 
The xsp-page which is used to call the logicsheet looks as follows
 

 
  
language="java"  
xmlns:xsp="http://apache.org/xsp"  
xmlns:ownnamespace="http://www.ownnamespace.org/xsl"    
xmlns:util="http://www.apache.org/1999/XSP/Util" 
    xmlns:xinclude="http://www.w3.org/2001/XInclude">    

 
      
  
  


Re: Bizarre SQUID Cocoon PDF caching issue - any brainwaves?

2002-03-14 Thread Stuart Roebuck


On Thursday, March 14, 2002, at 02:23 am, Peter Royal wrote:

> On Wednesday 13 March 2002 08:17 pm, Stuart Roebuck wrote:
>>   +-+
>>   |  THIS IS DOING MY HEAD IN  -  ANYONE GOT A BRAINWAVE ? ...  |
>>   +-+
>
> tips from stefano well applied!

Thanks - well spotted!

>> I've got Cocoon behind Squid - as a proxy / 'acceleration' server.
>
> is http://www.squid-cache.org/mail-archive/squid-users/200102/0972.html 
> your
> problem?
>
> if so maybe
> http://www.squid-cache.org/mail-archive/squid-users/200109/0028.html
>
> if not, what is the content-type, is that changing when you change
> extensions? what happens to a .txt with an application/pdf ?

I've gone through these emails - thank you.  Some of them could be my 
problem, some of them seem to be specific to PDFs downloaded and 
displayed using the PDF viewer plugin.

One of the many odd things is that, when I changed the file extension I 
retained the "application/pdf" mime type, so if you download in a recent 
browser it happily realises that the ".txt" file is really a PDF and 
opens it with no problem (*but not* when it ends in ".pdf"!).

I've tried change the "range_offset_limit" value, but this hasn't 
helped - I think it is specific to the "plug-in" issue.

Anyway, thanks for spending time searching out those links for me.  I 
will keep bashing my head with various blunt objects and see if anything 
comes out.

Stuart.


Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck (Adolos)
  Key fingerprint = 89D9 E405 F8B1 9B22 0FA2  F2C1 9E57 5AB1 88DD 65AF
-
Stuart Roebuck  [EMAIL PROTECTED]
Systems Architect Java, XML, MacOS X, XP, 
etc.
ADOLOS   


-
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: Help on sitemap

2002-03-14 Thread Andreas Hartmann

Hi Yury,

>
>>What about using a RequestParamAction?
>>
>>Greetings,
>>Andreas
>>
>2Andreas:
>My example just more for undestand of cocoons action's work. (May be :) )
>

OK, this can't be bad :)

Greetings,
Andreas


-
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: newbie: how to get a clean application

2002-03-14 Thread Nicola Ken Barozzi

From: "Vadim Gritsenko" <[EMAIL PROTECTED]>

> > From: Moritz Petersen [mailto:[EMAIL PROTECTED]]
> >
> > hi list,
> >
> > i'm quite a newbie to cocoon. the last few hours, i've spent removing
> .jar
> > files, pipelines etc. from the original cocoon configuration.
> > my goal is to build a thin cocoon application, which renders xml to
> svg to
> > png. so all the database stuff, the searching abilities, the hello
> world
> > pipelines etc. are not used by my application.
> > is there a clean cocoon template anywhere,
>
> http://sourceforge.net/projects/chello

Next release of Cocoon will have an improved war, that can be cleaned by
just a directory that contains the samples.
It should suit your needs :-)

> > or how do i know, which jars and
>
> http://xml.apache.org/cocoon/installing/jars.html
>
> > other configuration settings are necessary for my application?
>
> All the necessary configuration is created automatically by the Ant
> build script. Just remove all the jars from the lib/optional which you
> do not want/need, and do "build clean; build -Dinclude.webapp.libs=yes
> webapp".

Or more easily (new build targets):
build clean
build installwar

> > one example: while the documentation says the maybeupload jar is _not_
> > required, cocoon throws an exception without it.
>
> Have you build cocoon after removing the jar as described above?

And also remember, as dad Vadim keeps repeating at every occasion ;-) , to
do a build clean and deleting the work directory of the webapp comtainer.

--
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


-
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: invoke class on start of tomcat

2002-03-14 Thread Nicola Ken Barozzi

From: Niket Anand

> How can I invoke a class at the time of starting of Tomcat-4.0.1 server?
> I know it is not related to cocoon

Then ask the Tomcat list.
Or read the Sun documentation on the webapp web.xml file that configures the
servlets.

--
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


-
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: Help on sitemap

2002-03-14 Thread yuryx

Andreas Hartmann wrote:

>
>Hi Yury,
>
>
>>ÂÞÃù/eNet/¼¼Êõ·þÎñÊÂÒµ²¿/ϵͳ
>>
>²¿/×ܼà wrote:
>
>>>Hello All,
>>>I hava a question for sitemap
>>>how can i write a sitmap:
>>>if i request http://site/test.xml
>>>it will transform by default.xsl
>>>if i request http://site/test.xml?sytle=test.xsl
>>>it will transform by test.xsl
>>>
>>>Thanks
>>>
>>Try define sitemap parameter in action from request
>>
>
>What about using a RequestParamAction?
>
>Greetings,
>Andreas
>
2Andreas:
My example just more for undestand of cocoons action's work. (May be :) )

Regards.
Yury.

>
>>Like:
>>public class MyAction extends AbstractAction {
>> public Map act (Redirector redirector,
>> SourceResolver resolver,
>> Map objectModel,
>> String source,
>> Parameters params) {
>>
>>   Map sitemapParams = new HashMap();
>>   Request request = (Request) 
>>objectModel.get(Constants.REQUEST_OBJECT);   
>>   String mStyle=request.getParameter("style");
>>   sitemapParams.put("style", mStyle);
>>
>>   return sitemapParams;
>> }
>>}
>>
>>in sitemap:
>>
>>  
>>   
>>   
>>
>>   
>>
>>   
>>   
>> 
>>  
>>
>>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]>
>




-
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: Help on sitemap

2002-03-14 Thread Andreas Hartmann



Hi Yury,


>ÂÞÃù/eNet/¼¼Êõ·þÎñÊÂÒµ²¿/ϵͳ
²¿/×ܼà wrote:
>
>> Hello All,
>> I hava a question for sitemap
>> how can i write a sitmap:
>> if i request http://site/test.xml
>> it will transform by default.xsl
>> if i request http://site/test.xml?sytle=test.xsl
>> it will transform by test.xsl
>>
>> Thanks
>>
>Try define sitemap parameter in action from request

What about using a RequestParamAction?

Greetings,
Andreas

>Like:
>public class MyAction extends AbstractAction {
>  public Map act (Redirector redirector,
>  SourceResolver resolver,
>  Map objectModel,
>  String source,
>  Parameters params) {
>
>Map sitemapParams = new HashMap();
>Request request = (Request)
>objectModel.get(Constants.REQUEST_OBJECT);
>String mStyle=request.getParameter("style");
>sitemapParams.put("style", mStyle);
>
>return sitemapParams;
>  }
>}
>
>in sitemap:
>
>   
>
>
>
>
>
>
>
>
>   
>
> 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]>




Re: Help on sitemap

2002-03-14 Thread Andreas Hartmann
Title: Help on sitemap



 
Hi,
*** REPLY SEPARATOR 
***On 14.03.2002 at 14:10 ÂÞÃù/eNet/¼¼Êõ·þÎñÊÂÒµ²¿/ϵͳ²¿/×ܼà 
wrote:

  Hello All,     I hava a question for 
  sitemap     how 
  can i write a sitmap:     
  if i request http://site/test.xml     
  it will transform by default.xsl     
  if i request http://site/test.xml?sytle=test.xsl 
  it will transform by test.xsl 
Have a look athttp://www.cocooncenter.org/cc/documents/resources/request-params/requestselector.html ,
I think this is exactly what you want.
Greetings,Andreas
 



Re: Best apache/tomcat connector?

2002-03-14 Thread yuryx

Nick Airey wrote:

>Hello everyone, 
>
>What is the recommended connector to use between apache 1.3 and tomcat
>4.0.1 ? (tomcat is only being used for cocoon)
>
>Is it (a) the warp connector, or (b) the http 1.0 connector?
>
>If (b) is this planned to change?
>
>
>Kind regards,
>Nick.
>
>
>
>
>-
>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]>
>
I use mod_webapp module. It fine work for me :)

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




invoke class on start of tomcat

2002-03-14 Thread Niket Anand



Hi all,
How can I invoke a class at the time of starting of 
Tomcat-4.0.1 server?I know it is not related to cocoon but I want to execute a 
class before calling any request to cocoon servlet.
pls suggest something.
Thanks,
Niket


Best apache/tomcat connector?

2002-03-14 Thread Nick Airey

Hello everyone, 

What is the recommended connector to use between apache 1.3 and tomcat
4.0.1 ? (tomcat is only being used for cocoon)

Is it (a) the warp connector, or (b) the http 1.0 connector?

If (b) is this planned to change?


Kind regards,
Nick.




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




Problems restarting cocoon2 with WebSphere 4.0.1

2002-03-14 Thread Volker Schneider

Dear cocoon-users,

after clearing the cocoon's working directory in WebSphere I restarted
cocoon using the adminclient. After that, WebSphere's servlet engine hangs
and I can't get any response from it. Maybe cocoon 2 didn't shut down
properly. Yesterday we solved the problem by restarting the whole WebSphere,
but that isn't a really solution because other applications will be shut
down as well. Does anybody know a solution for that?

Thanks, best regards
- Volker -


-
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 CommandLine - loading classes at startup

2002-03-14 Thread Eisert, Wolfram (ext.)

Hi,

is it possible in Cocoon CommandLine-mode to load classes 
at startup like in webapp-mode with the web.xml "load-class"
param?

I need it to load jdbc-driver-class prior connection pool
initialization.

Wolfram

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