RE: XML Journal poll.

2002-08-22 Thread Matthew Langham

There is also a vote for best XML Book (Hint hint) :-) - and unfortunately:

6) YOU ARE ALLOWED TO VOTE FOR YOUR OWN PRODUCT WITHIN THE RULES AS
DESCRIBED ABOVE.

Matthew

--
Open Source Group   Cocoon { Consulting, Training, Projects }
=
Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
-
Cocoon book:
  http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
=




-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 22, 2002 6:31 AM
To: [EMAIL PROTECTED]
Subject: Re: XML Journal poll.


Yukio Fujiwara wrote:

Hi Every One,

Please make your voices heard at XML Journal poll.
This is important to promote Cocoon and Batik. In
this poll employees of a company can vote for their
own products, which give them unfair advantage.

At this moment Batik and Cocoon is trailing very
badly. You may see the results at:

http://www.sys-con.com/xml/readerschoice2002/

You may cast your vote at:

http://www.sys-con.com/xml/readerschoice2002/nominationform.cfm


Also I agree that we should voice cocoon in this poll, this poll itself
is ridiculous: XML Spy is a Best XML Database???


Vadim


Thanks,
Yukio




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

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


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

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




Re: Problems installing Cocoon 2.0.3 [xerces to be updated]

2002-08-22 Thread Derek Hohls

Babs

Thanks for the suggestion; I have tried what you said
(although I could not find a xercesImpl-2.0.0 in the
Cocoon lib; only a xerces-1.4.4.jar, which I removed)

However, I get exactly the same error as before...

Any other options?

Thanks
Derek


 [EMAIL PROTECTED] 21/08/2002 04:35:20 
try to update xerces to 2.0.2 version. I had this problem too, same
environment.

(http://xml.apache.org/dist/xerces-j/Xerces-J-bin.2.0.2.zip)

from the zip, copy xercesImpl, xmlParserAPI to
CATALINA_HOME/common/lib.
Remove the version of xerces you have there (xerces.jar).

Remove xercesImpl-2.0.0 from cocoon's WEB-INF/lib.

Babs
- Original Message -
From: Derek Hohls [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 4:21 PM
Subject: Problems installing Cocoon 2.0.3


 According to the installation guide, deploying C2 under
 Tomcat 4.0.4 is simple ;-) i.e.

 Copy cocoon.war into tomcat/webapps directory.
 Start Tomcat: Go to the tomcat/bin directory, and run the startup
 script.
 Open the Cocoon welcome page: http://localhost:8080/cocoon/ 
 Congratulations! You should see the Cocoon welcome page.

  My setup is:
  Java 1.3.1
  Tomcat 4.0.4 (examples are running fine)
  Cocoon 2.0.3

 And when I invoke
  http://localhost:8080/cocoon/ 
  I get:

  Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error


--
  type Exception report

  message Internal Server Error

  description The server encountered an internal error (Internal
Server

  Error) that prevented it from fulfilling this request.

 javax.servlet.ServletException:
   Servlet.init() for servlet Cocoon2 threw exception
  at org.apache.catalina.core.StandardWrapper.loadServlet
  (StandardWrapper.java:946)
  etc




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

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



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

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


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

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




RE: Problems installing Cocoon 2.0.3

2002-08-22 Thread Derek Hohls

Thanks todd

I am only working with the pre-compiled binary version (Win)
and so I am not sure if what you said applies (or if I have 
misunderstood altogether waht you are suggesting)...

 [EMAIL PROTECTED] 21/08/2002 04:31:11 
Im not sure what is causing YOUR problem, but I found that MY problem
was
caused because (for some incomprehensible reason) the 2.0.3 release of
cocoon was built against an old avalon-excalibur release. The 4.1
avalon-excalibur has moved the LogKitLoggerManager from the
/components
directory to the /logger directory and the GeneratorSelector barfed
when it
could not find it. So you can try to find the appropriate .jar to use
in
your deployment scenario, or recompile cocoon against the new .jar (if
in
fact this is your problem).

HTH

-todd 

-Original Message-
From: Derek Hohls [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 21, 2002 10:22 AM
To: [EMAIL PROTECTED] 
Subject: Problems installing Cocoon 2.0.3


According to the installation guide, deploying C2 under
Tomcat 4.0.4 is simple ;-) i.e.

Copy cocoon.war into tomcat/webapps directory.
Start Tomcat: Go to the tomcat/bin directory, and run the startup
script. 
Open the Cocoon welcome page: http://localhost:8080/cocoon/ 
Congratulations! You should see the Cocoon welcome page. 

 My setup is:
 Java 1.3.1
 Tomcat 4.0.4 (examples are running fine)
 Cocoon 2.0.3
 
And when I invoke
 http://localhost:8080/cocoon/ 
 I get:
 
 Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error

--
 type Exception report

 message Internal Server Error
 
 description The server encountered an internal error (Internal Server

 Error) that prevented it from fulfilling this request.

javax.servlet.ServletException: 
  Servlet.init() for servlet Cocoon2 threw exception
 at org.apache.catalina.core.StandardWrapper.loadServlet
 (StandardWrapper.java:946)
 etc 



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

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

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

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


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

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




Re: SVG trouble!

2002-08-22 Thread Raúl Wild-Spain

I'm going to install X in my Debian and to prove again ...

thanks J.P. !
 ;-))

- Original Message -
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 9:27 PM
Subject: Re: SVG trouble!


 Raúl Wild-Spain wrote:
  java.lang.UnsatisfiedLinkError:
  /usr/local/j2sdk1.4.0_01/jre/lib/i386/libawt.so:
  libXp.so.6: cannot open shared object file: No such file or directory

 Batik, the SVG rasterizer distributed with Cocoon,
 needs by default X11 installed and running in order
 to run. There are various ways to circumvent it,
 check the Cocoon documentation for running..on
 headless servers

 J.Pietschmann



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

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



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

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




cocoon 2.0.3, xalan 2.3.1, output encoding

2002-08-22 Thread Barbara Post

I read the following on apache's website :

  When you use the xsl:output encoding attribute to set output character
encoding, you should not use StreamResult(java.io.Writer) to construct a
StreamResult object to hold the transformation result. If you do, the Writer
uses its own encoding rather than the encoding specified in the stylesheet.

If you want to use a Writer, you can specify an encoding when you create the
Writer (java.io.OutputStreamWriter). Once the Writer exists, you cannot
reset the encoding it uses.

So I guess that I have a default configuration to alter for cocoon to output
html in iso-8859-1 instead of utf-8 ? How did you solve it by experience
with other encodings ? utf-8 does not render well in my browser as for
accentued characters...

Thanks

Babs


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

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




Re: Cocoon portal sample crashes [SUMMARY]

2002-08-22 Thread Alan Hodgkinson


I wrote:

 I was trying to run the Cocoon portal sample at:
   http://localhost:8080/cocoon/samples/portal/sunspotdemoportal
 When I try to log in (with guest/guest)I get the following error:
 ..[snip]..
 Any suggestions? Do I need to configure something? Is it broken?

..it was broken. It's now fixed.. as I discoved in the mail archive. 

I checked out the most recent sources (and installed them correctly 
this morning :). When I attempted this late last night, I missed a 
critical install step step and also missed finding the bug report 
and corresponding fix in the mail archives; as it was associated with 
the authentication sample and I was playing with the portal sample. 
The fix apparently fixes both sample apps. 

Now it works!

 Thanks in advance,

..the 'advance' should have been _even_ sooner. 

Thanks Carsten, for fixing the bug before I reported it. You can't
get much better than that!

Alan.

P.S. The original problem report and corresponding fix is at:

http://www.mail-archive.com/cocoon-users@xml.apache.org/msg16340.html
http://www.mail-archive.com/cocoon-users@xml.apache.org/msg16388.html

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

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




Re: Problems installing Cocoon 2.0.3 [xerces to be updated]

2002-08-22 Thread Barbara Post

ok... so, are you sure you downloaded the right binaries for your JVM ?
I don't have more ideas for now... sorry.

- Original Message - 
From: Derek Hohls [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, August 22, 2002 8:35 AM
Subject: Re: Problems installing Cocoon 2.0.3 [xerces to be updated]


 Babs
 
 Thanks for the suggestion; I have tried what you said
 (although I could not find a xercesImpl-2.0.0 in the
 Cocoon lib; only a xerces-1.4.4.jar, which I removed)
 
 However, I get exactly the same error as before...
 
 Any other options?
 
 Thanks
 Derek
 
 
  [EMAIL PROTECTED] 21/08/2002 04:35:20 
 try to update xerces to 2.0.2 version. I had this problem too, same
 environment.
 
 (http://xml.apache.org/dist/xerces-j/Xerces-J-bin.2.0.2.zip)
 
 from the zip, copy xercesImpl, xmlParserAPI to
 CATALINA_HOME/common/lib.
 Remove the version of xerces you have there (xerces.jar).
 
 Remove xercesImpl-2.0.0 from cocoon's WEB-INF/lib.
 
 Babs
 - Original Message -
 From: Derek Hohls [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, August 21, 2002 4:21 PM
 Subject: Problems installing Cocoon 2.0.3
 
 
  According to the installation guide, deploying C2 under
  Tomcat 4.0.4 is simple ;-) i.e.
 
  Copy cocoon.war into tomcat/webapps directory.
  Start Tomcat: Go to the tomcat/bin directory, and run the startup
  script.
  Open the Cocoon welcome page: http://localhost:8080/cocoon/ 
  Congratulations! You should see the Cocoon welcome page.
 
   My setup is:
   Java 1.3.1
   Tomcat 4.0.4 (examples are running fine)
   Cocoon 2.0.3
 
  And when I invoke
   http://localhost:8080/cocoon/ 
   I get:
 
   Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
 
 
 --
   type Exception report
 
   message Internal Server Error
 
   description The server encountered an internal error (Internal
 Server
 
   Error) that prevented it from fulfilling this request.
 
  javax.servlet.ServletException:
Servlet.init() for servlet Cocoon2 threw exception
   at org.apache.catalina.core.StandardWrapper.loadServlet
   (StandardWrapper.java:946)
   etc
 
 
 
 
 -
  Please check that your question  has not already been answered in
 the
  FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html
 
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:  
 [EMAIL PROTECTED]
 
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 


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

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




Re: Problems installing Cocoon 2.0.3 [xerces to be updated]

2002-08-22 Thread Derek Hohls

Uh - which binaries would those be?  

(I *did* download the Windows-usable version of C2, if
that's what you mean...)

 [EMAIL PROTECTED] 22/08/2002 09:32:31 
ok... so, are you sure you downloaded the right binaries for your JVM
?
I don't have more ideas for now... sorry.

- Original Message - 
From: Derek Hohls [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, August 22, 2002 8:35 AM
Subject: Re: Problems installing Cocoon 2.0.3 [xerces to be updated]


 Babs
 
 Thanks for the suggestion; I have tried what you said
 (although I could not find a xercesImpl-2.0.0 in the
 Cocoon lib; only a xerces-1.4.4.jar, which I removed)
 
 However, I get exactly the same error as before...
 
 Any other options?
 
 Thanks
 Derek
 
 
  [EMAIL PROTECTED] 21/08/2002 04:35:20 
 try to update xerces to 2.0.2 version. I had this problem too, same
 environment.
 
 (http://xml.apache.org/dist/xerces-j/Xerces-J-bin.2.0.2.zip)
 
 from the zip, copy xercesImpl, xmlParserAPI to
 CATALINA_HOME/common/lib.
 Remove the version of xerces you have there (xerces.jar).
 
 Remove xercesImpl-2.0.0 from cocoon's WEB-INF/lib.
 
 Babs
 - Original Message -
 From: Derek Hohls [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, August 21, 2002 4:21 PM
 Subject: Problems installing Cocoon 2.0.3
 
 
  According to the installation guide, deploying C2 under
  Tomcat 4.0.4 is simple ;-) i.e.
 
  Copy cocoon.war into tomcat/webapps directory.
  Start Tomcat: Go to the tomcat/bin directory, and run the startup
  script.
  Open the Cocoon welcome page: http://localhost:8080/cocoon/ 
  Congratulations! You should see the Cocoon welcome page.
 
   My setup is:
   Java 1.3.1
   Tomcat 4.0.4 (examples are running fine)
   Cocoon 2.0.3
 
  And when I invoke
   http://localhost:8080/cocoon/ 
   I get:
 
   Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
 
 

--
   type Exception report
 
   message Internal Server Error
 
   description The server encountered an internal error (Internal
 Server
 
   Error) that prevented it from fulfilling this request.
 
  javax.servlet.ServletException:
Servlet.init() for servlet Cocoon2 threw exception
   at org.apache.catalina.core.StandardWrapper.loadServlet
   (StandardWrapper.java:946)
   etc
 
 
 
 

-
  Please check that your question  has not already been answered in
 the
  FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html
 
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:  
 [EMAIL PROTECTED]
 
 
 

-
 Please check that your question  has not already been answered in
the
 FAQ before posting.
http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail:
[EMAIL PROTECTED]
 For additional commands, e-mail:  
[EMAIL PROTECTED]
 
 

-
 Please check that your question  has not already been answered in
the
 FAQ before posting.
http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail:
[EMAIL PROTECTED]
 For additional commands, e-mail:  
[EMAIL PROTECTED]
 


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

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


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

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




RE: cocoon 2.0.3, xalan 2.3.1, output encoding

2002-08-22 Thread Stefan Seifert

You can specify a encoding parameter in the HTML Serializer definition in the 
sitemap like this:

map:serializer name=html mime-type=text/html logger=sitemap.serializer.html
  src=org.apache.cocoon.serialization.HTMLSerializer
  pool-max=128 pool-min=16 pool-grow=16
encodingUTF-8/encoding
/map:serializer

There you can try to put UTF-8 or iso-8859-1 or what you want.

Another remark: Which browser are you using? There are some problems in Netscape 4.x 
and special unicode characters translated from the HTML Serializer to namend entities.

Stefan

 -Original Message-
 From: Barbara Post [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 22, 2002 9:31 AM
 To: [EMAIL PROTECTED]
 Subject: cocoon 2.0.3, xalan 2.3.1, output encoding
 
 
 I read the following on apache's website :
 
   When you use the xsl:output encoding attribute to set 
 output character
 encoding, you should not use StreamResult(java.io.Writer) to 
 construct a
 StreamResult object to hold the transformation result. If you 
 do, the Writer
 uses its own encoding rather than the encoding specified in 
 the stylesheet.
 
 If you want to use a Writer, you can specify an encoding when 
 you create the
 Writer (java.io.OutputStreamWriter). Once the Writer exists, 
 you cannot
 reset the encoding it uses.
 
 So I guess that I have a default configuration to alter for 
 cocoon to output
 html in iso-8859-1 instead of utf-8 ? How did you solve it by 
 experience
 with other encodings ? utf-8 does not render well in my browser as for
 accentued characters...
 
 Thanks
 
 Babs
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 
 
 
 
 

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

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




Re: Generator implements threadsafe???

2002-08-22 Thread Stephan Michels


On Wed, 21 Aug 2002, apurva zaveri wrote:

 does it makes sense implementing ThreadSafe to a
 custom generator ???

 for example like this:

 public class MyGenerator
 extends CompeserGenerator
 implements ThreadSafe
 {
 
 }

No, because a Generator implements

void setConsumer(XMLConsumer consumer);

and most of the Generators depends on the
parameters of the setup method.

Stephan.


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

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




possible bug in 2.1 map:mount src attribute?

2002-08-22 Thread Simon Price

I'm moving an app from 2.03 to 2.1-dev (cvs head, 21 Aug 02) and the 
sitemap engine no longer seems to support alternative names for the 
.xmap file.

The following fragment used to work fine in 2.03 but only works if I 
rename sitemap_tal.xmap as sitemap.xmap. (ie. the engine appears to 
always look for a file called sitemap.xmap irrespective of what the src 
attribute says - although it does look in the right directory).

 map:match pattern=tal/**
   map:mount check-reload=yes reload-method=synchron 
src=tal/sitemap_tal.xmap uri-prefix=tal//
 /map:match

Is this a deliberate feature change or a bug?

Simon

---
Simon Price
Institute for Learning and Research Technology
University of Bristol
8-10 Berkeley Square
Bristol BS8 1HH
United Kingdom

Direct: +44 (0)7071 226 720
Office: +44 (0)117 928 7193
Fax: +44 (0)117 928 7112
[EMAIL PROTECTED]
http://www.ilrt.bristol.ac.uk


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

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




Re: possible bug in 2.1 map:mount src attribute?

2002-08-22 Thread Simon Price

I'm using tomcat 4.0.1 with java 1.3.1

Simon Price wrote:

 I'm moving an app from 2.03 to 2.1-dev (cvs head, 21 Aug 02) and the 
 sitemap engine no longer seems to support alternative names for the 
 .xmap file.
 
 The following fragment used to work fine in 2.03 but only works if I 
 rename sitemap_tal.xmap as sitemap.xmap. (ie. the engine appears to 
 always look for a file called sitemap.xmap irrespective of what the src 
 attribute says - although it does look in the right directory).
 
 map:match pattern=tal/**
   map:mount check-reload=yes reload-method=synchron 
 src=tal/sitemap_tal.xmap uri-prefix=tal//
 /map:match
 
 Is this a deliberate feature change or a bug?
 
 Simon
 
 ---
 Simon Price
 Institute for Learning and Research Technology
 University of Bristol
 8-10 Berkeley Square
 Bristol BS8 1HH
 United Kingdom
 
 Direct: +44 (0)7071 226 720
 Office: +44 (0)117 928 7193
 Fax: +44 (0)117 928 7112
 [EMAIL PROTECTED]
 http://www.ilrt.bristol.ac.uk
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 


-- 

---
Simon Price
Institute for Learning and Research Technology
University of Bristol
8-10 Berkeley Square
Bristol BS8 1HH
United Kingdom

Direct: +44 (0)7071 226 720
Office: +44 (0)117 928 7193
Fax: +44 (0)117 928 7112
[EMAIL PROTECTED]
http://www.ilrt.bristol.ac.uk


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

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




Building from cvs

2002-08-22 Thread Murray Cumming

I'm trying to build from cvs, hoping that the problems with the portal
are fixed, but I get this error when running build.sh. Do I need to do
anything different when building from cvs? I don't have this problem
when building the source tarball.

generate-java-code:
DEPRECATED - xslp processor is deprecated. Use trax or xalan instead.
java.lang.ClassNotFoundException:
org.apache.tools.ant.taskdefs.optional.XslpLiaison
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at
org.apache.tools.ant.taskdefs.XSLTProcess.loadClass(XSLTProcess.java:395)
at
org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProcess.java:375)


I have ant 1.5, installed from rpm, if that's relevant.

-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com


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

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




Q: resin cocoon crashes continously!!!

2002-08-22 Thread Raúl Wild-Spain

Hi! I've installed latest Resin and Cocoon with java 1.4 and crashes at
all!!. Previously I had detected some explicit cases (SVG and catalog-demo)
but definitively my installation doesn't work properly.

I've followed the installation instructions for cocoon and java 1.4 and
Resin and as strange way when I copy xerces*.jar and xalan*.jar to the
/usr/local/java*/jre/lib/endorsed and try to initialize resin then it
crashes and says me (at the boot process):

- Server died unexpectedly.

Still more stranger: if I remove xerces and xalan from /lib/endorsed then my
resin work properly and I can launch some applications-example of  Cocoon
(the rest of examples launch java exceptions, but this is another way)

In the first case Into the log files I can see lines like these:

-- stderr.log ---

[2002-08-20 13:01:28.733] initializing application http://localhost:8080/cmp
java.io.FileNotFoundException:
/org/apache/cocoon/components/language/markup/xsp/java/logicsheet-util.xsl
(No such file or directory)


[2002-08-21 15:51:39.419] initializing application http://localhost:8080/cmp
java.lang.NoClassDefFoundError


[2002-08-21 17:02:42.433] initializing application http://localhost:8080/cmp
java.io.FileNotFoundException:
/org/apache/cocoon/components/language/markup/xsp/java/xscript-lib.xsl (No
such file or directory)

-- err.log --

[2002/08/16 15:35:26] java.io.FileNotFoundException: default.xsl
java.io.FileNotFoundException: default.xsl


extra data: In my Resin the HOME_RESIN AND SERVER_RESIN are not equal but
it's indicated into the resin.sh boot file (into the init.d). My OS is a
linux Debian.

What says your experience? I don't know what to do!!!

Best regards,

Raúl
[EMAIL PROTECTED]












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

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




AW: AW: AW: Xindice - Pipeline to db

2002-08-22 Thread praktikant

Mmmh, at first I will try this

Editing XML Data Using XUpdate and HTML Forms

http://www.xml.com/pub/a/2002/06/12/xupdate.html

regards
Praktikant Hans
-Ursprüngliche Nachricht-
Von:John Moylan [mailto:[EMAIL PROTECTED]]
Gesendet am:Mittwoch, 21. August 2002 15:40
An: [EMAIL PROTECTED]
Betreff:Re: AW: AW: Xindice - Pipeline to db

Yes that is correct.

praktikant wrote:

I thought xpath is only read-only in Xindice!?

   -Ursprüngliche Nachricht-
   Von:John Moylan [mailto:[EMAIL PROTECTED]]
   Gesendet am:Mittwoch, 21. August 2002 15:25
   An: [EMAIL PROTECTED]
   Betreff:Re: AW: Xindice - Pipeline to db

   You should not need too. Look at the sitemap for Cocoon
2.03. - It
has a 
   matcher for xmldb xpath queries.

   praktikant wrote:

   how can I write for example this
   
   http://localhost:8080/cocoon/xmldb/dvd/mi2.xml
   http://localhost:8080/cocoon/xmldb/dvd/mi2.xml 
   
   http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film
   http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film 
   
   
  


http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'m
i


2
   ')
   
  


http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'
m


i
   2') ]
   
   into the sitemap.xmap?
   
   thanks
   
  -Ursprüngliche Nachricht-
  Von:praktikant [mailto:[EMAIL PROTECTED]]
  Gesendet am:Mittwoch, 21. August 2002 08:52
  An: [EMAIL PROTECTED]
  Betreff:Xindice - Pipeline to db
   
  Hi,
  now I can use Xindice in Cocoon.
  I've had a wrong idea from using Xindice.
   
  Thanks Roman! :o)
  
  But I haven't found something about a pipeline to
Xindice.
  How can I build a pipeline to Xindice?
  How can I write back to Xindice?
  How to use XUpdate?
  Has someone simple examples for it?
  
  My db is on .../xindice/db/dvd
  The resources named
  mi.xml
  mi2.xml
  mib.xml
  mib2.xml
   
 map:pipeline 
  map:match pattern=dvd/mi2 type=wildcard 
   map:generate src=xmldb/xpath/dvd/mi2.xml
   type=serverpages/ 
   map:transform src=dvd/film.xsl type=xslt/

   map:serialize type=xml/ 
  /map:match 
 /map:pipeline
   
  Sorry, but no idea how to use XUpdate. :-(
   
  I use WIN2k, Tomcat 4.0.4, Cocoon 2.0.3 (Java
1.3.x),
Xindice 1.0,
   Java SDK
  1.3.1_04
   
  
   
  


-


  Please check that your question  has not already
been
answered in
   the
  FAQ before posting.
   http://xml.apache.org/cocoon/faq/index.html
   
  To unsubscribe, e-mail:
   [EMAIL PROTECTED]
  For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  


-


   Please check that your question  has not already been
answered in
the
   FAQ before posting.
http://xml.apache.org/cocoon/faq/index.html
   
   To unsubscribe, e-mail:
[EMAIL PROTECTED]
   For additional commands, e-mail:
[EMAIL PROTECTED]
   
 
   




   

***
*
**
   The information in this e-mail is 

XSP Best Practise Question

2002-08-22 Thread Michael Edge


Hi All

I have a question regarding the use and purpose of XSP.  I believe that XSP is an 
attempt to separate content/logic from presentation, and I believe it's possible to 
use it in this way. However, in many of the samples (such as results-dept.xsp below, 
found in the tutorial) XSP is used to retrieve XML from a database and wrap it in some 
sort of pseudo-html, which is then processed by a logicsheet to produce proper HTML. 
To me this defeats the whole purpose of XSP. The XSP below mixes content and 
presentation, and if it contained xsp:logic sections it would be even worse, mixing 
content, logic and presentation.

My thoughts are that, as the XSP is a generator it should generate XML in some 
suitable form. If logic is needed within the XSP dynamic tags can be used and 
translated using a logicsheet (or made part of XSP if they are not resuable). However, 
the actual presentation of this XML should be left to a stylesheet.

I would really appreciate your comments and thoughts on this as we are trying to 
implement multiple projects here using Cocoon and want to use a consistent, 
best-practise approach.

Thanks for your time :-)

Michael

xsp:page xmlns:xsp=http://apache.org/xsp;
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;
  xmlns:esql=http://apache.org/cocoon/SQL/v2;
  document
header
  titleSearch Results/title
/header
body
  s1 title=Department Search Results
p
  You can edit a department by clicking on the edit
  button, and you can delete a department by clicking on
  the delete button.
/p
  esql:connection
esql:poolpersonnel/esql:pool
esql:execute-query
  esql:query
SELECT id, name FROM department
WHERE name LIKE esql:parameter%xsp-request:get-parameter 
name=name/%/esql:parameter
ORDER BY name
  /esql:query
  esql:results
esql:row-results
  s2
  xsp:attribute name=titleesql:get-string 
column=name//xsp:attribute
  form handler=edit-dept.html
xsp:attribute name=nameesql:get-string 
column=id//xsp:attribute
p
  parameter name=id
xsp:attribute name=valueesql:get-string 
column=id//xsp:attribute
  /parameter
  submit name=Edit Department/submit name=Delete 
Department/
/p
  /form
  /s2
/esql:row-results
  /esql:results
esql:no-results
  p
We could find any departments that matched your search
criteria of xsp-request:get-parameter name=name/.
link href=search-dept.htmlGo back and try again?/link
  /p
/esql:no-results
/esql:execute-query
  /esql:connection
  /s1
/body
  /document
/xsp:page

---
Michael Edge
Global Markets Technology
Institutional Client Group

Phone:  +44  (0) 20 7545 3204
Fax :   +44  (0) 20 7545 1559
Internet email:[EMAIL PROTECTED]


--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



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

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




RE: how to hand over parameter to an url?

2002-08-22 Thread Jens Grote

hi,

i tried it, but it did not work. the prob is, i cannot find out where the
parameters have a problem. it just happens nothing.

searching for the key 'servlet' is no good idea. nearly every email contains
it.

greetings

jens

 Did you use the request action in the pipeline you tried?  I think you
 need that in order for {requestQuery} to have any value.  Make sure you
 change {1} to {../1} once you use the action.
 
 
 map:match pattern=*.jsp type=wildcard
   map:act type=request
 map:parameter name=parameters value=true/
 
   map:generate
 src=http://localhost:8080/not-cocoon/mydir/{../1}.jsp{requestQuery};
   type=html
   /map:generate   
   map:serialize/
   /map:act
 /map:match
 
 
 You might try searching the mailing list for servlet. I seem to remember
 this issue being discussed some months ago.
 
 -Original Message-
 From: Jens Grote [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 6:03 AM
 To: [EMAIL PROTECTED]
 Subject: Re: how to hand over parameter to an url?
 
 
 sorry, but that doesn't work.
 
 maybe i should explain my prob a little bit more precisely. the url i want
 to reach per link is: 
 
 http://localhost:8080/cocoon/newly/Create.jsp?:coded=872898000
 
 map:match pattern=*.jsp type=wildcard
 map:generate
 src=http://localhost:8080/other-servlet/mydir/{1}.jsp;
 type=html
 /map:generate   
 map:serialize/
 /map:match
 
 my sidemap entry tries to reach another servlet than cocoon, the
 'other-servlet' servlet. this other-servlet generate out of a jsp page a
 html page
 (independent of cocoon), handles it over to cocoon and cocoon handels it
 over to
 tomcat. it works fine, if i the *.jsp page i request through the client do
 not
 need any parameters. in this case the response is resource not found.
 
 in other, if i use javascript and form, the requested output is not shown
 (the response is empty). 
 
 your solution doesn't work in any of this two cases.
 
 greetings
 
 jens
 
 
  I guess the following sitemap would work,,,
  
  
  map:match pattern=*.jsp type=wildcard
   map:generate
  
  src=http://localhost:8080/not-cocoon/mydir/{1}.jsp{requestQuery};
   type=html
   /map:generate   
   map:serialize/
   /map:match 
  
  
  Kavitha
  
  
  
  
  --- Jens Grote [EMAIL PROTECTED] wrote:  hi,
   
   i have a webpage, where one link opens a new
   webpage. this link is a url
   with a parameter including. 
   
   it seems, that cocoon cut the parameter off. the
   page can not be shown. (the
   parameter is something like a session number.)
   
   my sidemap entry is:
   
   
   map:match pattern=*.jsp type=wildcard
   map:generate
   src=http://localhost:8080/not-cocoon/mydir/{1}.jsp;
   type=html
   /map:generate   
   map:serialize/
   /map:match
   
   the .jsp sides are generated into xml by an other
   servlet. therefore i need
   the whole url. 
   
   can i hand over dynamic parameters?
   
   i tried something like this:
   
   map:parameter name=* value={2}/
   in the generator tag, but it doesn't work.
   
   error message is 'resource not found' strange to
   say. 
   
   thanks and greets
   
   jens
   
   
   
   -- 
   GMX - Die Kommunikationsplattform im Internet.
   http://www.gmx.net
   
   
  
  -
   Please check that your question  has not already
   been answered in the
   FAQ before posting.
   http://xml.apache.org/cocoon/faq/index.html
   
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:  
   [EMAIL PROTECTED]

  
  
  Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
 visit http://in.autos.yahoo.com
  
  -
  Please check that your question  has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
  
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]
  
 
 -- 
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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

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




RE: how to hand over parameter to an url?

2002-08-22 Thread Jens Grote

hi,

i tried it, but it did not work. the prob is, i cannot find out where the
parameters have a problem. it just happens nothing.

searching for the key 'servlet' is no good idea. nearly every email contains
it.

greetings

jens

 Did you use the request action in the pipeline you tried?  I think you
 need that in order for {requestQuery} to have any value.  Make sure you
 change {1} to {../1} once you use the action.
 
 
 map:match pattern=*.jsp type=wildcard
   map:act type=request
 map:parameter name=parameters value=true/
 
   map:generate
 src=http://localhost:8080/not-cocoon/mydir/{../1}.jsp{requestQuery};
   type=html
   /map:generate   
   map:serialize/
   /map:act
 /map:match
 
 
 You might try searching the mailing list for servlet. I seem to remember
 this issue being discussed some months ago.
 
 -Original Message-
 From: Jens Grote [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 6:03 AM
 To: [EMAIL PROTECTED]
 Subject: Re: how to hand over parameter to an url?
 
 
 sorry, but that doesn't work.
 
 maybe i should explain my prob a little bit more precisely. the url i want
 to reach per link is: 
 
 http://localhost:8080/cocoon/newly/Create.jsp?:coded=872898000
 
 map:match pattern=*.jsp type=wildcard
 map:generate
 src=http://localhost:8080/other-servlet/mydir/{1}.jsp;
 type=html
 /map:generate   
 map:serialize/
 /map:match
 
 my sidemap entry tries to reach another servlet than cocoon, the
 'other-servlet' servlet. this other-servlet generate out of a jsp page a
 html page
 (independent of cocoon), handles it over to cocoon and cocoon handels it
 over to
 tomcat. it works fine, if i the *.jsp page i request through the client do
 not
 need any parameters. in this case the response is resource not found.
 
 in other, if i use javascript and form, the requested output is not shown
 (the response is empty). 
 
 your solution doesn't work in any of this two cases.
 
 greetings
 
 jens
 
 
  I guess the following sitemap would work,,,
  
  
  map:match pattern=*.jsp type=wildcard
   map:generate
  
  src=http://localhost:8080/not-cocoon/mydir/{1}.jsp{requestQuery};
   type=html
   /map:generate   
   map:serialize/
   /map:match 
  
  
  Kavitha
  
  
  
  
  --- Jens Grote [EMAIL PROTECTED] wrote:  hi,
   
   i have a webpage, where one link opens a new
   webpage. this link is a url
   with a parameter including. 
   
   it seems, that cocoon cut the parameter off. the
   page can not be shown. (the
   parameter is something like a session number.)
   
   my sidemap entry is:
   
   
   map:match pattern=*.jsp type=wildcard
   map:generate
   src=http://localhost:8080/not-cocoon/mydir/{1}.jsp;
   type=html
   /map:generate   
   map:serialize/
   /map:match
   
   the .jsp sides are generated into xml by an other
   servlet. therefore i need
   the whole url. 
   
   can i hand over dynamic parameters?
   
   i tried something like this:
   
   map:parameter name=* value={2}/
   in the generator tag, but it doesn't work.
   
   error message is 'resource not found' strange to
   say. 
   
   thanks and greets
   
   jens
   
   
   
   -- 
   GMX - Die Kommunikationsplattform im Internet.
   http://www.gmx.net
   
   
  
  -
   Please check that your question  has not already
   been answered in the
   FAQ before posting.
   http://xml.apache.org/cocoon/faq/index.html
   
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:  
   [EMAIL PROTECTED]

  
  
  Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
 visit http://in.autos.yahoo.com
  
  -
  Please check that your question  has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
  
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]
  
 
 -- 
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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

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




RE: XSP Best Practise Question

2002-08-22 Thread Morrison, John

Michael,

The _main_ reason that the example XSP operates in this manner
is, quite simply, *because* it's example.  The best method _is_
as you describe, but that would add extra overhead to the example
which would hide what the example is actually trying to show.

J.


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

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

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




how to send the parameter by POST to the servlet?

2002-08-22 Thread kavitha ramesh

Hi,

I would like to send the parameters to a servlet via
the method POST,,,In this case how do my sitemap look
like?

My current sitemap is as follows:

map:pipeline
map:match pattern=login.html 
map:act type=request
map:parameter name=parameters value=true/
map:generate
src=http://pca6srv02:9083/cocoon/login.jsp{requestQuery};
/
map:transform src=stylesheets/krishna.xsl /
map:transform type=i18n/
/map:act
map:serialize type=html/
/map:match
 /map:pipeline

If someone knows please help me,,,

Kavitha Ramesh.


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.com

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

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




RE: how to hand over parameter to an url?

2002-08-22 Thread Jens Grote

hi,

i tried it, but it did not work. the prob is, i cannot find out where the
parameters have a problem. it just happens nothing.

searching for the key 'servlet' is no good idea. nearly every email contains
it.

greetings

jens

 Did you use the request action in the pipeline you tried?  I think you
 need that in order for {requestQuery} to have any value.  Make sure you
 change {1} to {../1} once you use the action.
 
 
 map:match pattern=*.jsp type=wildcard
   map:act type=request
 map:parameter name=parameters value=true/
 
   map:generate
 src=http://localhost:8080/not-cocoon/mydir/{../1}.jsp{requestQuery};
   type=html
   /map:generate   
   map:serialize/
   /map:act
 /map:match
 
 
 You might try searching the mailing list for servlet. I seem to remember
 this issue being discussed some months ago.
 
 -Original Message-
 From: Jens Grote [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 6:03 AM
 To: [EMAIL PROTECTED]
 Subject: Re: how to hand over parameter to an url?
 
 
 sorry, but that doesn't work.
 
 maybe i should explain my prob a little bit more precisely. the url i want
 to reach per link is: 
 
 http://localhost:8080/cocoon/newly/Create.jsp?:coded=872898000
 
 map:match pattern=*.jsp type=wildcard
 map:generate
 src=http://localhost:8080/other-servlet/mydir/{1}.jsp;
 type=html
 /map:generate   
 map:serialize/
 /map:match
 
 my sidemap entry tries to reach another servlet than cocoon, the
 'other-servlet' servlet. this other-servlet generate out of a jsp page a
 html page
 (independent of cocoon), handles it over to cocoon and cocoon handels it
 over to
 tomcat. it works fine, if i the *.jsp page i request through the client do
 not
 need any parameters. in this case the response is resource not found.
 
 in other, if i use javascript and form, the requested output is not shown
 (the response is empty). 
 
 your solution doesn't work in any of this two cases.
 
 greetings
 
 jens
 
 
  I guess the following sitemap would work,,,
  
  
  map:match pattern=*.jsp type=wildcard
   map:generate
  
  src=http://localhost:8080/not-cocoon/mydir/{1}.jsp{requestQuery};
   type=html
   /map:generate   
   map:serialize/
   /map:match 
  
  
  Kavitha
  
  
  
  
  --- Jens Grote [EMAIL PROTECTED] wrote:  hi,
   
   i have a webpage, where one link opens a new
   webpage. this link is a url
   with a parameter including. 
   
   it seems, that cocoon cut the parameter off. the
   page can not be shown. (the
   parameter is something like a session number.)
   
   my sidemap entry is:
   
   
   map:match pattern=*.jsp type=wildcard
   map:generate
   src=http://localhost:8080/not-cocoon/mydir/{1}.jsp;
   type=html
   /map:generate   
   map:serialize/
   /map:match
   
   the .jsp sides are generated into xml by an other
   servlet. therefore i need
   the whole url. 
   
   can i hand over dynamic parameters?
   
   i tried something like this:
   
   map:parameter name=* value={2}/
   in the generator tag, but it doesn't work.
   
   error message is 'resource not found' strange to
   say. 
   
   thanks and greets
   
   jens
   
   
   
   -- 
   GMX - Die Kommunikationsplattform im Internet.
   http://www.gmx.net
   
   
  
  -
   Please check that your question  has not already
   been answered in the
   FAQ before posting.
   http://xml.apache.org/cocoon/faq/index.html
   
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:  
   [EMAIL PROTECTED]

  
  
  Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
 visit http://in.autos.yahoo.com
  
  -
  Please check that your question  has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
  
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]
  
 
 -- 
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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

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




RE: Using internal paths for sendmail attachments

2002-08-22 Thread Paul Pattison

Thanks for your response Vadim.  I've been looking at the util logicsheet
and trying to figure this out, but I'm not having much luck.  My page is
seems to be just hanging.  I'm not sure if it's because of the 'resolver'
line of code or where I create my URLDataSource in the code.  All the
examples I could find re sending emails with attachments said to use
FileDataSource if the attachment was a file and URLDataSource if it's a URL.
I couldn't find any examples using URLDataSource, but that's what I think I
should be using.  Does anyone have experience with this JavaMail stuff?
Which of the DataSource objects should I be using?  FileDataSource or
URLDataSource?

Is my code to resolve the uri correct?

Thanks,

Paul


Here is a snippet from the sendmail logicsheet:

String _sendmail_strSubAttachement;
BodyPart _sendmail_att_part;
DataSource _sendmail_data_source;

try {
org.apache.excalibur.source.Source input_source =
resolver.resolve(cocoon:/newsletter.pdf);

_sendmail_data_source = new URLDataSource(new
java.net.URL(input_source.getSystemId()));
_sendmail_att_part = new MimeBodyPart();
_sendmail_att_part.setDataHandler(new DataHandler(_sendmail_data_source));
_sendmail_att_part.setFileName(_sendmail_data_source.getName());
_sendmail_multipart.addBodyPart(_sendmail_att_part);
}
catch (Exception e) {
throw new RuntimeException(e.getMessage());


Vadim wrote:

Hi everyone,

I'm working on a web app where I'd like to have a page send an email
to someone and attach a file to the email.  The attachment would
actually be an html or pdf document generated by Cocoon.

Right now the 'sendmail' logicsheet allows attachments, but the filename


Can't find this functionality in sendmail.xsl.


is an absolute path to the file.  I would like to have it so that
the path I give the attachment is acutally an internal cocoon://
path.  I've looked at the sendmail.xls logicsheet, but have not been
able to figure out how I would implement this.  Is what I describe
possible?  I am willing to work on it, but I was wondering if anyone
had any tips or clues about how I would do this and where I should
start.  Any advice is welcome.


Look into the recently modified util logicsheet to see how resolver is
used. If you use resolver, you can process any kind of URIs, relative
and absolute, and it works with all protocols.

Vadim


Thanks,

Paul


}


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

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




Re: how to hand over parameter to an url?

2002-08-22 Thread KOZLOV Roman

Am I in a time loop? It's the fifth copy of the same mail.

Roman

Jens Grote wrote:

 hi,

 i tried it, but it did not work. the prob is, i cannot find out where the
 parameters have a problem. it just happens nothing.

 searching for the key 'servlet' is no good idea. nearly every email contains
 it.

 greetings

 jens

  Did you use the request action in the pipeline you tried?  I think you
  need that in order for {requestQuery} to have any value.  Make sure you
  change {1} to {../1} once you use the action.
 
 
  map:match pattern=*.jsp type=wildcard
map:act type=request
  map:parameter name=parameters value=true/
 
map:generate
  src=http://localhost:8080/not-cocoon/mydir/{../1}.jsp{requestQuery};
type=html
/map:generate
map:serialize/
/map:act
  /map:match
 
 
  You might try searching the mailing list for servlet. I seem to remember
  this issue being discussed some months ago.
 
  -Original Message-
  From: Jens Grote [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 21, 2002 6:03 AM
  To: [EMAIL PROTECTED]
  Subject: Re: how to hand over parameter to an url?
 
 
  sorry, but that doesn't work.
 
  maybe i should explain my prob a little bit more precisely. the url i want
  to reach per link is:
 
  http://localhost:8080/cocoon/newly/Create.jsp?:coded=872898000
 
  map:match pattern=*.jsp type=wildcard
  map:generate
  src=http://localhost:8080/other-servlet/mydir/{1}.jsp;
  type=html
  /map:generate
  map:serialize/
  /map:match
 
  my sidemap entry tries to reach another servlet than cocoon, the
  'other-servlet' servlet. this other-servlet generate out of a jsp page a
  html page
  (independent of cocoon), handles it over to cocoon and cocoon handels it
  over to
  tomcat. it works fine, if i the *.jsp page i request through the client do
  not
  need any parameters. in this case the response is resource not found.
 
  in other, if i use javascript and form, the requested output is not shown
  (the response is empty).
 
  your solution doesn't work in any of this two cases.
 
  greetings
 
  jens
 
 
   I guess the following sitemap would work,,,
  
  
   map:match pattern=*.jsp type=wildcard
map:generate
  
   src=http://localhost:8080/not-cocoon/mydir/{1}.jsp{requestQuery};
type=html
/map:generate
map:serialize/
/map:match
  
  
   Kavitha
  
  
  
  
   --- Jens Grote [EMAIL PROTECTED] wrote:  hi,
   
i have a webpage, where one link opens a new
webpage. this link is a url
with a parameter including.
   
it seems, that cocoon cut the parameter off. the
page can not be shown. (the
parameter is something like a session number.)
   
my sidemap entry is:
   
   
map:match pattern=*.jsp type=wildcard
map:generate
src=http://localhost:8080/not-cocoon/mydir/{1}.jsp;
type=html
/map:generate
map:serialize/
/map:match
   
the .jsp sides are generated into xml by an other
servlet. therefore i need
the whole url.
   
can i hand over dynamic parameters?
   
i tried something like this:
   
map:parameter name=* value={2}/
in the generator tag, but it doesn't work.
   
error message is 'resource not found' strange to
say.
   
thanks and greets
   
jens
   
   
   
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
   
   
   
   -
Please check that your question  has not already
been answered in the
FAQ before posting.
http://xml.apache.org/cocoon/faq/index.html
   
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
  
   
   Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
  visit http://in.autos.yahoo.com
  
   -
   Please check that your question  has not already been answered in the
   FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
  
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail:   [EMAIL PROTECTED]
  
 
  --
  GMX - Die Kommunikationsplattform im Internet.
  http://www.gmx.net
 
 
  -
  Please check that your question  has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]
 

 --
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net

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

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

RE: how to hand over parameter to an url?

2002-08-22 Thread Jens Grote

hi,

i tried it, but it did not work. the prob is, i cannot find out where the
parameters have a problem. it just happens nothing.

searching for the key 'servlet' is no good idea. nearly every email contains
it.

greetings

jens

 Did you use the request action in the pipeline you tried?  I think you
 need that in order for {requestQuery} to have any value.  Make sure you
 change {1} to {../1} once you use the action.
 
 
 map:match pattern=*.jsp type=wildcard
   map:act type=request
 map:parameter name=parameters value=true/
 
   map:generate
 src=http://localhost:8080/not-cocoon/mydir/{../1}.jsp{requestQuery};
   type=html
   /map:generate   
   map:serialize/
   /map:act
 /map:match
 
 
 You might try searching the mailing list for servlet. I seem to remember
 this issue being discussed some months ago.
 
 -Original Message-
 From: Jens Grote [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 6:03 AM
 To: [EMAIL PROTECTED]
 Subject: Re: how to hand over parameter to an url?
 
 
 sorry, but that doesn't work.
 
 maybe i should explain my prob a little bit more precisely. the url i want
 to reach per link is: 
 
 http://localhost:8080/cocoon/newly/Create.jsp?:coded=872898000
 
 map:match pattern=*.jsp type=wildcard
 map:generate
 src=http://localhost:8080/other-servlet/mydir/{1}.jsp;
 type=html
 /map:generate   
 map:serialize/
 /map:match
 
 my sidemap entry tries to reach another servlet than cocoon, the
 'other-servlet' servlet. this other-servlet generate out of a jsp page a
 html page
 (independent of cocoon), handles it over to cocoon and cocoon handels it
 over to
 tomcat. it works fine, if i the *.jsp page i request through the client do
 not
 need any parameters. in this case the response is resource not found.
 
 in other, if i use javascript and form, the requested output is not shown
 (the response is empty). 
 
 your solution doesn't work in any of this two cases.
 
 greetings
 
 jens
 
 
  I guess the following sitemap would work,,,
  
  
  map:match pattern=*.jsp type=wildcard
   map:generate
  
  src=http://localhost:8080/not-cocoon/mydir/{1}.jsp{requestQuery};
   type=html
   /map:generate   
   map:serialize/
   /map:match 
  
  
  Kavitha
  
  
  
  
  --- Jens Grote [EMAIL PROTECTED] wrote:  hi,
   
   i have a webpage, where one link opens a new
   webpage. this link is a url
   with a parameter including. 
   
   it seems, that cocoon cut the parameter off. the
   page can not be shown. (the
   parameter is something like a session number.)
   
   my sidemap entry is:
   
   
   map:match pattern=*.jsp type=wildcard
   map:generate
   src=http://localhost:8080/not-cocoon/mydir/{1}.jsp;
   type=html
   /map:generate   
   map:serialize/
   /map:match
   
   the .jsp sides are generated into xml by an other
   servlet. therefore i need
   the whole url. 
   
   can i hand over dynamic parameters?
   
   i tried something like this:
   
   map:parameter name=* value={2}/
   in the generator tag, but it doesn't work.
   
   error message is 'resource not found' strange to
   say. 
   
   thanks and greets
   
   jens
   
   
   
   -- 
   GMX - Die Kommunikationsplattform im Internet.
   http://www.gmx.net
   
   
  
  -
   Please check that your question  has not already
   been answered in the
   FAQ before posting.
   http://xml.apache.org/cocoon/faq/index.html
   
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:  
   [EMAIL PROTECTED]

  
  
  Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
 visit http://in.autos.yahoo.com
  
  -
  Please check that your question  has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
  
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]
  
 
 -- 
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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

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




Re: Problems installing Cocoon 2.0.3 [xerces to be updated]

2002-08-22 Thread Vadim Gritsenko

Derek Hohls wrote:

A quick follow-up - I took everything off again - reinstalled TC and
Cocoon - this time I found the xercesImpl-2.0.0 file !? and so I 
followed your procedure again.

If its of any additional use - below the 

javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
threw exception

error, I get:

- Root Cause -
java.lang.NoSuchMethodError
   at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init(DefaultConfigurationBuilder.java:97)

Any ideas what this means??


Derek,

Follow install guide. Java 1.3.1, Tomcat 4.0.4, Cocoon 2.0.3, this 
*does* work without fiddling with libraries. If it does *not* work - 
this just means that you don't have clean (freshly installed) Java or 
Tomcat.

Vadim


Thanks
Derek
  




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

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





Re: Q: resin cocoon crashes continously!!!

2002-08-22 Thread Vadim Gritsenko

Raúl Wild-Spain wrote:

Hi! I've installed latest Resin and Cocoon with java 1.4 and crashes at
all!!. Previously I had detected some explicit cases (SVG and catalog-demo)
but definitively my installation doesn't work properly.

I've followed the installation instructions for cocoon and java 1.4 and
Resin and as strange way when I copy xerces*.jar and xalan*.jar to the
/usr/local/java*/jre/lib/endorsed and try to initialize resin then it
crashes and says me (at the boot process):

- Server died unexpectedly.

Still more stranger: if I remove xerces and xalan from /lib/endorsed then my
resin work properly and I can launch some applications-example of  Cocoon
(the rest of examples launch java exceptions, but this is another way)
  


Do you have:

  servlet-classloader-hacktrue/servlet-classloader-hack

In your resin.conf?

Vadim


In the first case Into the log files I can see lines like these:

-- stderr.log ---

[2002-08-20 13:01:28.733] initializing application http://localhost:8080/cmp
java.io.FileNotFoundException:
/org/apache/cocoon/components/language/markup/xsp/java/logicsheet-util.xsl
(No such file or directory)


[2002-08-21 15:51:39.419] initializing application http://localhost:8080/cmp
java.lang.NoClassDefFoundError


[2002-08-21 17:02:42.433] initializing application http://localhost:8080/cmp
java.io.FileNotFoundException:
/org/apache/cocoon/components/language/markup/xsp/java/xscript-lib.xsl (No
such file or directory)

-- err.log --

[2002/08/16 15:35:26] java.io.FileNotFoundException: default.xsl
java.io.FileNotFoundException: default.xsl


extra data: In my Resin the HOME_RESIN AND SERVER_RESIN are not equal but
it's indicated into the resin.sh boot file (into the init.d). My OS is a
linux Debian.

What says your experience? I don't know what to do!!!

Best regards,

Raúl
[EMAIL PROTECTED]
  





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

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




Re: possible bug in 2.1 map:mount src attribute?

2002-08-22 Thread Vadim Gritsenko

Simon Price wrote:

 I'm using tomcat 4.0.1 with java 1.3.1

 Simon Price wrote:

 I'm moving an app from 2.03 to 2.1-dev (cvs head, 21 Aug 02) and the 
 sitemap engine no longer seems to support alternative names for the 
 .xmap file.

 The following fragment used to work fine in 2.03 but only works if I 
 rename sitemap_tal.xmap as sitemap.xmap. (ie. the engine appears to 
 always look for a file called sitemap.xmap irrespective of what the 
 src attribute says - although it does look in the right directory).

 map:match pattern=tal/**
   map:mount check-reload=yes reload-method=synchron 
 src=tal/sitemap_tal.xmap uri-prefix=tal//
 /map:match

 Is this a deliberate feature change or a bug?


It's a bug.

Vadim


 Simon




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

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




Re: Building from cvs

2002-08-22 Thread Vadim Gritsenko

Murray Cumming wrote:

I'm trying to build from cvs, hoping that the problems with the portal
are fixed, but I get this error when running build.sh. Do I need to do
anything different when building from cvs? I don't have this problem
when building the source tarball.

generate-java-code:
DEPRECATED - xslp processor is deprecated. Use trax or xalan instead.
java.lang.ClassNotFoundException:
org.apache.tools.ant.taskdefs.optional.XslpLiaison
   at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:130)
   at
org.apache.tools.ant.taskdefs.XSLTProcess.loadClass(XSLTProcess.java:395)
   at
org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProcess.java:375)


I have ant 1.5, installed from rpm, if that's relevant.
  


You should use build.sh, which will (should) ignore your ant.

Vadim



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

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




RE: how to hand over parameter to an url?

2002-08-22 Thread Jens Grote

hi,

i tried it, but it did not work. the prob is, i cannot find out where the
parameters have a problem. it just happens nothing.

searching for the key 'servlet' is no good idea. nearly every email contains
it.

greetings

jens

 Did you use the request action in the pipeline you tried?  I think you
 need that in order for {requestQuery} to have any value.  Make sure you
 change {1} to {../1} once you use the action.
 
 
 map:match pattern=*.jsp type=wildcard
   map:act type=request
 map:parameter name=parameters value=true/
 
   map:generate
 src=http://localhost:8080/not-cocoon/mydir/{../1}.jsp{requestQuery};
   type=html
   /map:generate   
   map:serialize/
   /map:act
 /map:match
 
 
 You might try searching the mailing list for servlet. I seem to remember
 this issue being discussed some months ago.
 
 -Original Message-
 From: Jens Grote [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 6:03 AM
 To: [EMAIL PROTECTED]
 Subject: Re: how to hand over parameter to an url?
 
 
 sorry, but that doesn't work.
 
 maybe i should explain my prob a little bit more precisely. the url i want
 to reach per link is: 
 
 http://localhost:8080/cocoon/newly/Create.jsp?:coded=872898000
 
 map:match pattern=*.jsp type=wildcard
 map:generate
 src=http://localhost:8080/other-servlet/mydir/{1}.jsp;
 type=html
 /map:generate   
 map:serialize/
 /map:match
 
 my sidemap entry tries to reach another servlet than cocoon, the
 'other-servlet' servlet. this other-servlet generate out of a jsp page a
 html page
 (independent of cocoon), handles it over to cocoon and cocoon handels it
 over to
 tomcat. it works fine, if i the *.jsp page i request through the client do
 not
 need any parameters. in this case the response is resource not found.
 
 in other, if i use javascript and form, the requested output is not shown
 (the response is empty). 
 
 your solution doesn't work in any of this two cases.
 
 greetings
 
 jens
 
 
  I guess the following sitemap would work,,,
  
  
  map:match pattern=*.jsp type=wildcard
   map:generate
  
  src=http://localhost:8080/not-cocoon/mydir/{1}.jsp{requestQuery};
   type=html
   /map:generate   
   map:serialize/
   /map:match 
  
  
  Kavitha
  
  
  
  
  --- Jens Grote [EMAIL PROTECTED] wrote:  hi,
   
   i have a webpage, where one link opens a new
   webpage. this link is a url
   with a parameter including. 
   
   it seems, that cocoon cut the parameter off. the
   page can not be shown. (the
   parameter is something like a session number.)
   
   my sidemap entry is:
   
   
   map:match pattern=*.jsp type=wildcard
   map:generate
   src=http://localhost:8080/not-cocoon/mydir/{1}.jsp;
   type=html
   /map:generate   
   map:serialize/
   /map:match
   
   the .jsp sides are generated into xml by an other
   servlet. therefore i need
   the whole url. 
   
   can i hand over dynamic parameters?
   
   i tried something like this:
   
   map:parameter name=* value={2}/
   in the generator tag, but it doesn't work.
   
   error message is 'resource not found' strange to
   say. 
   
   thanks and greets
   
   jens
   
   
   
   -- 
   GMX - Die Kommunikationsplattform im Internet.
   http://www.gmx.net
   
   
  
  -
   Please check that your question  has not already
   been answered in the
   FAQ before posting.
   http://xml.apache.org/cocoon/faq/index.html
   
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:  
   [EMAIL PROTECTED]

  
  
  Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
 visit http://in.autos.yahoo.com
  
  -
  Please check that your question  has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
  
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]
  
 
 -- 
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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

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




Re: Using internal paths for sendmail attachments

2002-08-22 Thread Vadim Gritsenko

Paul Pattison wrote:

Thanks for your response Vadim.  I've been looking at the util logicsheet
and trying to figure this out, but I'm not having much luck.  My page is
seems to be just hanging.  I'm not sure if it's because of the 'resolver'
line of code or where I create my URLDataSource in the code.  All the
examples I could find re sending emails with attachments said to use
FileDataSource if the attachment was a file and URLDataSource if it's a URL.
I couldn't find any examples using URLDataSource, but that's what I think I
should be using.  Does anyone have experience with this JavaMail stuff?
Which of the DataSource objects should I be using?  FileDataSource or
URLDataSource?

Is my code to resolve the uri correct?

Thanks,

Paul


Here is a snippet from the sendmail logicsheet:

String _sendmail_strSubAttachement;
BodyPart _sendmail_att_part;
DataSource _sendmail_data_source;

try {
   org.apache.excalibur.source.Source input_source =
resolver.resolve(cocoon:/newsletter.pdf);


Are you on 2.1? I was referring to 203.
In 2.1, you should use resolveURI() method.


   _sendmail_data_source = new URLDataSource(new
java.net.URL(input_source.getSystemId()));


This should fail with malformed URL exception: unknown protocol cocoon.

Vadim


   _sendmail_att_part = new MimeBodyPart();
   _sendmail_att_part.setDataHandler(new DataHandler(_sendmail_data_source));
   _sendmail_att_part.setFileName(_sendmail_data_source.getName());
   _sendmail_multipart.addBodyPart(_sendmail_att_part);
}
catch (Exception e) {
   throw new RuntimeException(e.getMessage());


Vadim wrote:

  

Hi everyone,

I'm working on a web app where I'd like to have a page send an email
to someone and attach a file to the email.  The attachment would
actually be an html or pdf document generated by Cocoon.

Right now the 'sendmail' logicsheet allows attachments, but the filename




Can't find this functionality in sendmail.xsl.


  

is an absolute path to the file.  I would like to have it so that
the path I give the attachment is acutally an internal cocoon://
path.  I've looked at the sendmail.xls logicsheet, but have not been
able to figure out how I would implement this.  Is what I describe
possible?  I am willing to work on it, but I was wondering if anyone
had any tips or clues about how I would do this and where I should
start.  Any advice is welcome.




Look into the recently modified util logicsheet to see how resolver is
used. If you use resolver, you can process any kind of URIs, relative
and absolute, and it works with all protocols.

Vadim


  

Thanks,

Paul




}

  





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

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




Re: Q: resin cocoon crashes continously!!!

2002-08-22 Thread Raúl Wild-Spain

it don't, Vadim. It's false!

- Original Message -
From: Vadim Gritsenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 22, 2002 2:02 PM
Subject: Re: Q: resin  cocoon crashes continously!!!


 Raúl Wild-Spain wrote:

 Hi! I've installed latest Resin and Cocoon with java 1.4 and crashes at
 all!!. Previously I had detected some explicit cases (SVG and
catalog-demo)
 but definitively my installation doesn't work properly.
 
 I've followed the installation instructions for cocoon and java 1.4 and
 Resin and as strange way when I copy xerces*.jar and xalan*.jar to the
 /usr/local/java*/jre/lib/endorsed and try to initialize resin then it
 crashes and says me (at the boot process):
 
 - Server died unexpectedly.
 
 Still more stranger: if I remove xerces and xalan from /lib/endorsed then
my
 resin work properly and I can launch some applications-example of  Cocoon
 (the rest of examples launch java exceptions, but this is another way)
 
 

 Do you have:

   servlet-classloader-hacktrue/servlet-classloader-hack

 In your resin.conf?

 Vadim


 In the first case Into the log files I can see lines like these:
 
 -- stderr.log ---
 
 [2002-08-20 13:01:28.733] initializing application
http://localhost:8080/cmp
 java.io.FileNotFoundException:

/org/apache/cocoon/components/language/markup/xsp/java/logicsheet-util.xsl
 (No such file or directory)
 
 
 [2002-08-21 15:51:39.419] initializing application
http://localhost:8080/cmp
 java.lang.NoClassDefFoundError
 
 
 [2002-08-21 17:02:42.433] initializing application
http://localhost:8080/cmp
 java.io.FileNotFoundException:
 /org/apache/cocoon/components/language/markup/xsp/java/xscript-lib.xsl
(No
 such file or directory)
 
 -- err.log --
 
 [2002/08/16 15:35:26] java.io.FileNotFoundException: default.xsl
 java.io.FileNotFoundException: default.xsl
 
 
 extra data: In my Resin the HOME_RESIN AND SERVER_RESIN are not equal but
 it's indicated into the resin.sh boot file (into the init.d). My OS is a
 linux Debian.
 
 What says your experience? I don't know what to do!!!
 
 Best regards,
 
 Raúl
 [EMAIL PROTECTED]
 
 




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

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



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

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




Re: how to send the parameter by POST to the servlet?

2002-08-22 Thread Jens Grote

i have the same problem. it does not work either and i do not know why.


 Hi,
 
 I would like to send the parameters to a servlet via
 the method POST,,,In this case how do my sitemap look
 like?
 
 My current sitemap is as follows:
 
 map:pipeline
 map:match pattern=login.html 
 map:act type=request
 map:parameter name=parameters value=true/
 map:generate
 src=http://pca6srv02:9083/cocoon/login.jsp{requestQuery};
 /
 map:transform src=stylesheets/krishna.xsl /
 map:transform type=i18n/
 /map:act
 map:serialize type=html/
 /map:match
  /map:pipeline
 
 If someone knows please help me,,,
 
 Kavitha Ramesh.
 
 
 Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
visit http://in.autos.yahoo.com
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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

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




Sorry for repeated mail!!! RE: how to hand over parameter to an url?

2002-08-22 Thread Jens Grote

ups,

my mailclient did a little bit too good. sorry.

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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

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




Re: Problems installing Cocoon 2.0.3 [xerces to be updated -or NOT?]

2002-08-22 Thread Derek Hohls

Vadim

Thanks - well, I do have a freshly installed Tomcat 4.0.4
AND the lastest stable Cocoon binary - OK, I did not reinstall 
Java (this was not part of the install guide and I was not 
aware that it was a prerequisite for a C2 installation??) -
 *thats* why I found it strange that, after following the 
instructions it did NOT work.  (I did not, after all, have 
any such problems with TC 4.0.1 and C2.0.0...)

Do I really have to reinstall Java?

Thanks
Derek

 [EMAIL PROTECTED] 22/08/2002 01:58:52 
Derek Hohls wrote:

A quick follow-up - I took everything off again - reinstalled TC and
Cocoon - this time I found the xercesImpl-2.0.0 file !? and so I 
followed your procedure again.

If its of any additional use - below the 

javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
threw exception

error, I get:

- Root Cause -
java.lang.NoSuchMethodError
   at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init(DefaultConfigurationBuilder.java:97)

Any ideas what this means??


Derek,

Follow install guide. Java 1.3.1, Tomcat 4.0.4, Cocoon 2.0.3, this 
*does* work without fiddling with libraries. If it does *not* work - 
this just means that you don't have clean (freshly installed) Java or 
Tomcat.

Vadim


Thanks
Derek
  




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

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


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

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




Re: Q: resin cocoon crashes continously!!!

2002-08-22 Thread Vadim Gritsenko

Raúl Wild-Spain wrote:

it don't, Vadim. It's false!
  


Then run and set it to true!

Vadim



- Original Message -
From: Vadim Gritsenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 22, 2002 2:02 PM
Subject: Re: Q: resin  cocoon crashes continously!!!


  

Raúl Wild-Spain wrote:



Hi! I've installed latest Resin and Cocoon with java 1.4 and crashes at
all!!. Previously I had detected some explicit cases (SVG and
  

catalog-demo)
  

but definitively my installation doesn't work properly.

I've followed the installation instructions for cocoon and java 1.4 and
Resin and as strange way when I copy xerces*.jar and xalan*.jar to the
/usr/local/java*/jre/lib/endorsed and try to initialize resin then it
crashes and says me (at the boot process):

- Server died unexpectedly.

Still more stranger: if I remove xerces and xalan from /lib/endorsed then
  

my
  

resin work properly and I can launch some applications-example of  Cocoon
(the rest of examples launch java exceptions, but this is another way)


  

Do you have:

  servlet-classloader-hacktrue/servlet-classloader-hack

In your resin.conf?

Vadim




In the first case Into the log files I can see lines like these:

-- stderr.log ---

[2002-08-20 13:01:28.733] initializing application
  

http://localhost:8080/cmp
  

java.io.FileNotFoundException:
  

/org/apache/cocoon/components/language/markup/xsp/java/logicsheet-util.xsl


(No such file or directory)


[2002-08-21 15:51:39.419] initializing application
  

http://localhost:8080/cmp
  

java.lang.NoClassDefFoundError


[2002-08-21 17:02:42.433] initializing application
  

http://localhost:8080/cmp
  

java.io.FileNotFoundException:
/org/apache/cocoon/components/language/markup/xsp/java/xscript-lib.xsl
  

(No
  

such file or directory)

-- err.log --

[2002/08/16 15:35:26] java.io.FileNotFoundException: default.xsl
java.io.FileNotFoundException: default.xsl


extra data: In my Resin the HOME_RESIN AND SERVER_RESIN are not equal but
it's indicated into the resin.sh boot file (into the init.d). My OS is a
linux Debian.

What says your experience? I don't know what to do!!!

Best regards,

Raúl
[EMAIL PROTECTED]

  





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

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




Re: Problems installing Cocoon 2.0.3 [xerces to be updated - or NOT?]

2002-08-22 Thread Vadim Gritsenko

Derek Hohls wrote:

Vadim

Thanks - well, I do have a freshly installed Tomcat 4.0.4
AND the lastest stable Cocoon binary - OK, I did not reinstall 
Java (this was not part of the install guide and I was not 
aware that it was a prerequisite for a C2 installation??) -
 *thats* why I found it strange that, after following the 
instructions it did NOT work.  (I did not, after all, have 
any such problems with TC 4.0.1 and C2.0.0...)

Do I really have to reinstall Java?


You see, if all three components are not modified in any way, it does 
work (under Win and Linux). This was tested before doing release. Only 
exception was FreeBSD and/or OS X platforms (archives have more on this).

May be you have something in jre/lib/ext, this could break some things.

Vadim


Thanks
Derek

  

[EMAIL PROTECTED] 22/08/2002 01:58:52 


Derek Hohls wrote:

  

A quick follow-up - I took everything off again - reinstalled TC and
Cocoon - this time I found the xercesImpl-2.0.0 file !? and so I 
followed your procedure again.

If its of any additional use - below the 

javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
threw exception

error, I get:

- Root Cause -
java.lang.NoSuchMethodError
  at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init(DefaultConfigurationBuilder.java:97)

Any ideas what this means??




Derek,

Follow install guide. Java 1.3.1, Tomcat 4.0.4, Cocoon 2.0.3, this 
*does* work without fiddling with libraries. If it does *not* work - 
this just means that you don't have clean (freshly installed) Java or 
Tomcat.

Vadim


  

Thanks
Derek 




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

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




RE: Relax NG validation for Cocoon

2002-08-22 Thread Leigh Dodds


  - also relaxng has no way for docs to identify schema, any ideas?
 
 In my experiments, Jing is told on the command-line which
 *.rng to use against a particular doc.xml, i.e. the declaration
 is external to the xml instance.

Thats by design. James Clark purposefully decided that identifying how 
a schema gets associated with an instance document is outside the 
scope of RELAX NG. So its up to the implementation.

This actually makes a lot of sense, because if you think it through 
there are many different ways in which one might want to associate 
a schema with a particular document.

Cheers,

L.


-- 
Leigh Dodds
Weblog: http://weblogs.userland.com/eclectic
Home: http://www.ldodds.com
Current Project: http://outerthought.net/wiki/Wiki.jsp
Pluralitas non est ponenda sine necessitate -- William of Ockham

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

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




Re: Q: resin cocoon crashes continously!!!

2002-08-22 Thread Raúl Wild-Spain

Ok! Vadim. I've modified resin.conf as you indicates and copied xerces* and
xalan* again from /usr/local/resin ... tools/lib/* to
/usr/local/java.../jre/lib/endorsed.

Now the server don't crash at boot process and resin and cocoon seems work
right! ... it seems ... ;-))

thank's a lot Vadim.

question about:  Don't follow the JDK spec but Servlet spec implies any
problem with my JDK 1.4? I will have surely more troubles with Java ?

regards,



- Original Message -
From: Vadim Gritsenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 22, 2002 2:37 PM
Subject: Re: Q: resin  cocoon crashes continously!!!


 Raúl Wild-Spain wrote:

 it don't, Vadim. It's false!
 
 

 Then run and set it to true!

 Vadim



 - Original Message -
 From: Vadim Gritsenko [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 22, 2002 2:02 PM
 Subject: Re: Q: resin  cocoon crashes continously!!!
 
 
 
 
 Raúl Wild-Spain wrote:
 
 
 
 Hi! I've installed latest Resin and Cocoon with java 1.4 and crashes at
 all!!. Previously I had detected some explicit cases (SVG and
 
 
 catalog-demo)
 
 
 but definitively my installation doesn't work properly.
 
 I've followed the installation instructions for cocoon and java 1.4 and
 Resin and as strange way when I copy xerces*.jar and xalan*.jar to the
 /usr/local/java*/jre/lib/endorsed and try to initialize resin then it
 crashes and says me (at the boot process):
 
 - Server died unexpectedly.
 
 Still more stranger: if I remove xerces and xalan from /lib/endorsed
then
 
 
 my
 
 
 resin work properly and I can launch some applications-example of
Cocoon
 (the rest of examples launch java exceptions, but this is another way)
 
 
 
 
 Do you have:
 
   servlet-classloader-hacktrue/servlet-classloader-hack
 
 In your resin.conf?
 
 Vadim
 
 
 
 
 In the first case Into the log files I can see lines like these:
 
 -- stderr.log ---
 
 [2002-08-20 13:01:28.733] initializing application
 
 
 http://localhost:8080/cmp
 
 
 java.io.FileNotFoundException:
 
 

/org/apache/cocoon/components/language/markup/xsp/java/logicsheet-util.xsl
 
 
 (No such file or directory)
 
 
 [2002-08-21 15:51:39.419] initializing application
 
 
 http://localhost:8080/cmp
 
 
 java.lang.NoClassDefFoundError
 
 
 [2002-08-21 17:02:42.433] initializing application
 
 
 http://localhost:8080/cmp
 
 
 java.io.FileNotFoundException:
 /org/apache/cocoon/components/language/markup/xsp/java/xscript-lib.xsl
 
 
 (No
 
 
 such file or directory)
 
 -- err.log --
 
 [2002/08/16 15:35:26] java.io.FileNotFoundException: default.xsl
 java.io.FileNotFoundException: default.xsl
 
 
 extra data: In my Resin the HOME_RESIN AND SERVER_RESIN are not equal
but
 it's indicated into the resin.sh boot file (into the init.d). My OS is
a
 linux Debian.
 
 What says your experience? I don't know what to do!!!
 
 Best regards,
 
 Raúl
 [EMAIL PROTECTED]
 
 
 




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

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



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

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




Re: Problems installing Cocoon 2.0.3 [xerces to be updated -or NOT?]

2002-08-22 Thread Derek Hohls

Vadim

Maybe its just the limits of my own knowledge
showing up rather badly here - but it worries me that Cocoon
is (perhaps like its namesake!) so fragile.  On *my* test machine
I can control the environment to a large extent... but have
less say over the live machine(s) to which the sites will get 
deployed.

Is there no way of tracking down what the root cause (file?) is
in a more specific way...?

I guess I will be reinstalling *everything* tonight

Thanks
Derek

 [EMAIL PROTECTED] 22/08/2002 02:42:04 
Derek Hohls wrote:

Vadim

Thanks - well, I do have a freshly installed Tomcat 4.0.4
AND the lastest stable Cocoon binary - OK, I did not reinstall 
Java (this was not part of the install guide and I was not 
aware that it was a prerequisite for a C2 installation??) -
 *thats* why I found it strange that, after following the 
instructions it did NOT work.  (I did not, after all, have 
any such problems with TC 4.0.1 and C2.0.0...)

Do I really have to reinstall Java?


You see, if all three components are not modified in any way, it does 
work (under Win and Linux). This was tested before doing release. Only

exception was FreeBSD and/or OS X platforms (archives have more on
this).

May be you have something in jre/lib/ext, this could break some
things.

Vadim


Thanks
Derek

  

[EMAIL PROTECTED] 22/08/2002 01:58:52 


Derek Hohls wrote:

  

A quick follow-up - I took everything off again - reinstalled TC and
Cocoon - this time I found the xercesImpl-2.0.0 file !? and so I 
followed your procedure again.

If its of any additional use - below the 

javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
threw exception

error, I get:

- Root Cause -
java.lang.NoSuchMethodError
  at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init(DefaultConfigurationBuilder.java:97)

Any ideas what this means??




Derek,

Follow install guide. Java 1.3.1, Tomcat 4.0.4, Cocoon 2.0.3, this 
*does* work without fiddling with libraries. If it does *not* work - 
this just means that you don't have clean (freshly installed) Java or

Tomcat.

Vadim


  

Thanks
Derek 




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

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


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

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




how to create an xml document with XMLForm

2002-08-22 Thread Oskar Casquero




Hi,

I would like to use XMLFormto collect data 
through a wizard andsavedata in a DOM tree (bindingforms to 
DOM nodes). How can be produced SAX events from this DOM 
tree?

Thanks,
 
Oskar


RE: XSP Best Practise Question

2002-08-22 Thread Leigh Dodds

I've been thinking along the same lines recently, and am still in two minds.
I'm intending on writing up an essay on the CocoDocoWiki when I get a few minutes.

Current musings:

Model-View-Controller is the de facto example of a 'best practice' way of
organising your web application code to allow the maximum degree of separation
between content/logic/presentation.

In servlet/JSP terms this often ends up as a Servlet that does all the work
up front (the Model, often called an Action or Handler), and then the JSP just does the
job of formatting the content to produce the desired output. Often the Model involves
complex business logic, perhaps implemented as EJBs.

When looking sat Cocoon I decided that Generators (including XSP pages) were
definitely the Model part: they hid the complicated details of the processing, and
presented their results to the pipeline for suitable presentation.

This is nice and flexible, because you can quickly wrap existing code as a Generator
or XSP page, and can then take advantage of Cocoon as a flexible publication
tool. Composing pipelines is then often a case of plugging together pre-existing
components to create the desired presentation processing.

However...

As you've noted a lot of examples, and suggested solutions to problems posted
to this list, use an alternate approach: the generators present data to the
pipeline which uses Transformers and Actions to do often complex operations.
The data itself is often wrapped in a page markup language making it easier
to transform it to other forms (HTML/PDF/etc).

This looks like its breaking MVC, and it probably is. Not sure whether this is
good or bad yet, as there are advantages, the main one being that you end
up with less logic hidden in Generators and XSP pages and more in custom
Transformers/Actions. This can be a good thing if the logic is reusable. If
its not, and the various steps in your pipeline are actually tightly coupled then
you're going to end up in a mess, IMHO.

It's at this point that you're starting to treat the sitemap as a programming
language rather than a declarative means of gluing together components.

(Aside: anyone notice how close the Sitemap is becoming to a source file?
Imports: map:components; Instance Variables: component/global params
added in 2.1; Methods: pipelines. There's a danger there in making this
environment too programmer oriented).

So my general advice is: if the logic is reusable, then make it a transformer/action
so you'll have the most reuse. If its not, hide it away.

Hope this is useful.

I've got a slew more thoughts on page markup languages, templating and
separation of concerns, but I'll save that ramble for another time.

Cheers,

L.


--
Leigh Dodds
Weblog: http://weblogs.userland.com/eclectic
Home: http://www.ldodds.com
Current Project: http://outerthought.net/wiki/Wiki.jsp
Pluralitas non est ponenda sine necessitate -- William of Ockham

 -Original Message-
 From: Michael Edge [mailto:[EMAIL PROTECTED]]
 Sent: 22 August 2002 10:20
 To: [EMAIL PROTECTED]
 Subject: XSP Best Practise Question



 Hi All

 I have a question regarding the use and purpose of XSP.  I believe that XSP is an 
attempt
 to separate content/logic from presentation, and I believe it's possible to use it in
 this way. However, in many of the samples (such as results-dept.xsp below, found in 
the
 tutorial) XSP is used to retrieve XML from a database and wrap it in some sort of
 pseudo-html, which is then processed by a logicsheet to produce proper HTML. To me 
this
 defeats the whole purpose of XSP. The XSP below mixes content and presentation, and 
if it
 contained xsp:logic sections it would be even worse, mixing content, logic and 
presentation.

 My thoughts are that, as the XSP is a generator it should generate XML in some 
suitable
 form. If logic is needed within the XSP dynamic tags can be used and translated 
using a
 logicsheet (or made part of XSP if they are not resuable). However, the actual
 presentation of this XML should be left to a stylesheet.

 I would really appreciate your comments and thoughts on this as we are trying to
 implement multiple projects here using Cocoon and want to use a consistent, 
best-practise
 approach.

 Thanks for your time :-)

 Michael

 xsp:page xmlns:xsp=http://apache.org/xsp;
   xmlns:xsp-request=http://apache.org/xsp/request/2.0;
   xmlns:esql=http://apache.org/cocoon/SQL/v2;
   document
 header
   titleSearch Results/title
 /header
 body
   s1 title=Department Search Results
 p
   You can edit a department by clicking on the edit
   button, and you can delete a department by clicking on
   the delete button.
 /p
   esql:connection
 esql:poolpersonnel/esql:pool
 esql:execute-query
   esql:query
 SELECT id, name FROM department
 WHERE name LIKE esql:parameter%xsp-request:get-parameter
 

Re: possible bug in 2.1 map:mount src attribute?

2002-08-22 Thread Simon Price

Thanks Vadim.

In case anyone wonders why on earth I changed the name of the xmap 
files: its so I can tell them apart at a glance in my text editor :-)

Vadim Gritsenko wrote:

 Simon Price wrote:
 
 I'm using tomcat 4.0.1 with java 1.3.1

 Simon Price wrote:

 I'm moving an app from 2.03 to 2.1-dev (cvs head, 21 Aug 02) and the 
 sitemap engine no longer seems to support alternative names for the 
 .xmap file.

 The following fragment used to work fine in 2.03 but only works if I 
 rename sitemap_tal.xmap as sitemap.xmap. (ie. the engine appears to 
 always look for a file called sitemap.xmap irrespective of what the 
 src attribute says - although it does look in the right directory).

 map:match pattern=tal/**
   map:mount check-reload=yes reload-method=synchron 
 src=tal/sitemap_tal.xmap uri-prefix=tal//
 /map:match

 Is this a deliberate feature change or a bug?


 
 It's a bug.
 
 Vadim
 
 
 Simon


 
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 


-- 

---
Simon Price
Institute for Learning and Research Technology
University of Bristol
8-10 Berkeley Square
Bristol BS8 1HH
United Kingdom

Direct: +44 (0)7071 226 720
Office: +44 (0)117 928 7193
Fax: +44 (0)117 928 7112
[EMAIL PROTECTED]
http://www.ilrt.bristol.ac.uk


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

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




RE: XSP Best Practise Question

2002-08-22 Thread Leigh Dodds

The XSP below mixes content and presentation, and if it 
contained xsp:logic sections it would be even worse, mixing content, logic and 
presentation.

On this point specifically, I'd consider it a best practice to have *all* logic 
moved into a logicsheet so that you're left only with your own custom tags 
in the XSP page.

If you do this correctly, and design a recently flexible *declarative* language 
to wrap you're logic, then you're left with something which isn't wildly 
different from a JSP page containing custom JSP tags.

Cheers,

L.

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

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




Re: Problems installing Cocoon 2.0.3 [xerces to be updated - or NOT?]

2002-08-22 Thread Vadim Gritsenko

Derek Hohls wrote:

Vadim

Maybe its just the limits of my own knowledge
showing up rather badly here - but it worries me that Cocoon
is (perhaps like its namesake!) so fragile.  On *my* test machine
I can control the environment to a large extent... but have
less say over the live machine(s) to which the sites will get 
deployed.


If you buy commercial solution, it always comes with Java bundled. Do 
you want same for Cocoon? ;-)


Is there no way of tracking down what the root cause (file?) is
in a more specific way...?


Go to the source code of:

- Root Cause -
java.lang.NoSuchMethodError
at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init(DefaultConfigurationBuilder.java:97)



I guess the problem is wrong (non-conforming) parser.

Vadim


I guess I will be reinstalling *everything* tonight

Thanks
Derek

  

[EMAIL PROTECTED] 22/08/2002 02:42:04 


Derek Hohls wrote:

  

Vadim

Thanks - well, I do have a freshly installed Tomcat 4.0.4
AND the lastest stable Cocoon binary - OK, I did not reinstall 
Java (this was not part of the install guide and I was not 
aware that it was a prerequisite for a C2 installation??) -
*thats* why I found it strange that, after following the 
instructions it did NOT work.  (I did not, after all, have 
any such problems with TC 4.0.1 and C2.0.0...)

Do I really have to reinstall Java?




You see, if all three components are not modified in any way, it does 
work (under Win and Linux). This was tested before doing release. Only

exception was FreeBSD and/or OS X platforms (archives have more on
this).

May be you have something in jre/lib/ext, this could break some
things.

Vadim


  

Thanks
Derek

 



[EMAIL PROTECTED] 22/08/2002 01:58:52 
   

  

Derek Hohls wrote:

 



A quick follow-up - I took everything off again - reinstalled TC and
Cocoon - this time I found the xercesImpl-2.0.0 file !? and so I 
followed your procedure again.

If its of any additional use - below the 

javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
threw exception

error, I get:

- Root Cause -
java.lang.NoSuchMethodError
 at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init(DefaultConfigurationBuilder.java:97)

Any ideas what this means??
  

Derek,

Follow install guide. Java 1.3.1, Tomcat 4.0.4, Cocoon 2.0.3, this 
*does* work without fiddling with libraries. If it does *not* work - 
this just means that you don't have clean (freshly installed) Java or


Tomcat.

Vadim



Thanks
Derek 



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

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




Re: Building from cvs

2002-08-22 Thread Murray Cumming

On Thu, 2002-08-22 at 13:07, Vadim Gritsenko wrote:
 You should use build.sh, which will (should) ignore your ant.

I _am_ using build.sh/

-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com


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

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




Re: Problems installing Cocoon 2.0.3 [xerces to be updated- or NOT?]

2002-08-22 Thread Derek Hohls

OK - I will look - which should be the correct (conforming?)
parser...?

 [EMAIL PROTECTED] 22/08/2002 03:18:58 
Derek Hohls wrote:

Vadim

Maybe its just the limits of my own knowledge
showing up rather badly here - but it worries me that Cocoon
is (perhaps like its namesake!) so fragile.  On *my* test machine
I can control the environment to a large extent... but have
less say over the live machine(s) to which the sites will get 
deployed.


If you buy commercial solution, it always comes with Java bundled. Do 
you want same for Cocoon? ;-)


Is there no way of tracking down what the root cause (file?) is
in a more specific way...?


Go to the source code of:

- Root Cause -
java.lang.NoSuchMethodError
at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init(DefaultConfigurationBuilder.java:97)



I guess the problem is wrong (non-conforming) parser.

Vadim


I guess I will be reinstalling *everything* tonight

Thanks
Derek

  

[EMAIL PROTECTED] 22/08/2002 02:42:04 


Derek Hohls wrote:

  

Vadim

Thanks - well, I do have a freshly installed Tomcat 4.0.4
AND the lastest stable Cocoon binary - OK, I did not reinstall 
Java (this was not part of the install guide and I was not 
aware that it was a prerequisite for a C2 installation??) -
*thats* why I found it strange that, after following the 
instructions it did NOT work.  (I did not, after all, have 
any such problems with TC 4.0.1 and C2.0.0...)

Do I really have to reinstall Java?




You see, if all three components are not modified in any way, it does

work (under Win and Linux). This was tested before doing release.
Only

exception was FreeBSD and/or OS X platforms (archives have more on
this).

May be you have something in jre/lib/ext, this could break some
things.

Vadim


  

Thanks
Derek

 



[EMAIL PROTECTED] 22/08/2002 01:58:52 
   

  

Derek Hohls wrote:

 



A quick follow-up - I took everything off again - reinstalled TC
and
Cocoon - this time I found the xercesImpl-2.0.0 file !? and so I 
followed your procedure again.

If its of any additional use - below the 

javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
threw exception

error, I get:

- Root Cause -
java.lang.NoSuchMethodError
 at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init(DefaultConfigurationBuilder.java:97)

Any ideas what this means??
  

Derek,

Follow install guide. Java 1.3.1, Tomcat 4.0.4, Cocoon 2.0.3, this 
*does* work without fiddling with libraries. If it does *not* work -

this just means that you don't have clean (freshly installed) Java
or


Tomcat.

Vadim



Thanks
Derek 



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

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


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

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




Re: Problems installing Cocoon 2.0.3 [xerces to be updated - or NOT?]

2002-08-22 Thread Vadim Gritsenko

Derek Hohls wrote:

OK - I will look - which should be the correct (conforming?)
parser...?
  


The one bundled with Cocoon, of course :)

Vadim


[EMAIL PROTECTED] 22/08/2002 03:18:58 


Derek Hohls wrote:

  

Vadim

Maybe its just the limits of my own knowledge
showing up rather badly here - but it worries me that Cocoon
is (perhaps like its namesake!) so fragile.  On *my* test machine
I can control the environment to a large extent... but have
less say over the live machine(s) to which the sites will get 
deployed.




If you buy commercial solution, it always comes with Java bundled. Do 
you want same for Cocoon? ;-)


  

Is there no way of tracking down what the root cause (file?) is
in a more specific way...?




Go to the source code of:

- Root Cause -
java.lang.NoSuchMethodError
   at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.init(DefaultConfigurationBuilder.java:97)



I guess the problem is wrong (non-conforming) parser.

Vadim
  

...



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

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




How to execute a command line ?

2002-08-22 Thread Ganael LAPLANCHE



Hi everybody !

I'm new to cocoon, so I'm a bit lost 
:)
I'd like to add logic code to unzip a 
filethat hasjust been uploaded through a form.
How would you do that ? Should I use actions ? 
Should I use Java orXSP to execute an
unzip command... ?

This must be a very stupid question... I know, but 
please help me :)

Thank you,
Marty.


Re: Building from cvs

2002-08-22 Thread Vadim Gritsenko

Murray Cumming wrote:

On Thu, 2002-08-22 at 13:07, Vadim Gritsenko wrote:
  

You should use build.sh, which will (should) ignore your ant.



I _am_ using build.sh/


May be, this is bug in build.sh? In build.bat, always ant from tools/ is 
chosen, any installed ant gets ignored.

PS I don't have *nix machine handy

Vadim



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

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




Re: Problems installing Cocoon 2.0.3

2002-08-22 Thread Kjetil Kjernsmo

On Wednesday 21 August 2002 16:35, Barbara Post wrote:
 try to update xerces to 2.0.2 version. I had this problem too, same
 environment.

H, I'm seeing the same error message right now. I'm trying to 
install CocoBlog, so I pulled a copy of Cocoon2.1 from CVS last night. 
Yeah, I guess I'm too adventurous, but I really need this. However, I'm 
on a Debian system, and I got xerces from testing, which is 2.0.2.

 Remove xercesImpl-2.0.0 from cocoon's WEB-INF/lib.

OTOH, I never had that... Should I really?

However, I guess it could be a different problem:
Somewhat further down the error page I'm seeing the following:
root cause

java.security.AccessControlException: access denied 
(java.util.PropertyPermission javax.xml.parsers.SAXParserFactory read)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at 
java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at 
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
at java.lang.System.getProperty(System.java:560)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:229)
[snip]

So, it seems to be some permission problem. Therefore, I created a 
tomcat-group, and made the tomcat4-user that runs the server a member 
of that group, and added the write permissions for the group to 
/var/lib/tomcat4/webapps which is where I keep the .war, but that 
didn't help. 

One concern: While I was compiling, using J2SDK1.3, it warned me that 
the build was for 1.2. Is this something I shouldn't ignore?

Help is greatly appreciated.

Best,

Kjetil
-- 
Kjetil Kjernsmo
Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
[EMAIL PROTECTED]  [EMAIL PROTECTED]  [EMAIL PROTECTED]
Homepage: http://www.kjetil.kjernsmo.net/


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

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




Re: Building from cvs

2002-08-22 Thread Murray Cumming

On Thu, 2002-08-22 at 15:09, Vadim Gritsenko wrote:
 Murray Cumming wrote:
 
 On Thu, 2002-08-22 at 13:07, Vadim Gritsenko wrote:
   
 
 You should use build.sh, which will (should) ignore your ant.
 
 
 
 I _am_ using build.sh/
 
 
 May be, this is bug in build.sh? In build.bat, always ant from tools/ is 
 chosen, any installed ant gets ignored.
 
 PS I don't have *nix machine handy

I don't believe that that's the problem because build.sh works in the
source tarball distribution.

-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com


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

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




RE: WebDav, DavFS, Slide and else ....

2002-08-22 Thread ROSSEL Olivier

At the moment, I could get davFS (Linux) to work fine as a 
local filesystem.
I tried cvsfs, but could not make it to work.
It's toio bad because it has a natural naming convention - older version
of file
mapping. Any help is welcome.

BTW, I think the newer CVS system made by GNU will have a WebDAV
interface. May be it will also implement
that naming convention system. 

 -Message d'origine-
 De: Kjetil Kjernsmo [mailto:[EMAIL PROTECTED]]
 Date: mercredi 21 août 2002 15:43
 À: ROSSEL Olivier
 Objet: Re: WebDav, DavFS, Slide and else 
 
 
 On Wednesday 21 August 2002 15:28, ROSSEL Olivier wrote:
  Here is a crazy idea I have had.
  Linux has a WebDav FileSystem.
  So accessing/updating files via WebDAV is completely transparent to
  Cocoon.
 
  WebDAV servers can have versionning, revision systems.
 
  So, without changing the way you work inside Cocoon, you can have
  WebDAV capabilities. If the WebDAV server allows to access the extra
  features (older versions,
  number of the current version,metadata) in a filesystem way, you can
  have full
  WebDAV management without doing nothing inside Cocoon.
 
  Is it dumb?
 
 _I_ really don't think so! It's really good!
 It is actually how I'd like my content contributors to 
 interact with my 
 server. I don't know how to code it, but I would be _very_ interested 
 if you get it up and running! :-) Have you looked at the 
 webdav example 
 in tomcat4, BTW?
 
 Best,
 
 Kjetil
 -- 
 Kjetil Kjernsmo
 Astrophysicist/IT 
 Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
 [EMAIL PROTECTED]  [EMAIL PROTECTED]  
 [EMAIL PROTECTED]
 Homepage: http://www.kjetil.kjernsmo.net/
 

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

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




Is it possible to do HTML-2-XHTML-2-FO-2-PDF ??

2002-08-22 Thread Florian Georg

Hello,

I'm evaluation Cocoon as a possible platform for our new website.
The contents will be entirely stored in xml files,
and (you guessed it !) be transformed into html via xslt.

So finaly I thought it would be a fine thing, to get every html - page
automagically as a
PDF, *without* the need to code that nasty DOC2FO.xsl.

I looked around the net, and found two xsl files :
html2xhtml.xsl and xhtml2fo.xsl

The considered sitemap was this :

map:match pattern=*/**.pdf
   map:generate src=xml/{2}.xml/
   map:transform src=stylesheets/{1}.xsl /
   map:transform src=stylesheets/html2xhtml.xsl /
   map:transform src=stylesheets/xhtml2fo.xsl /
   map:serialize type=fo2pdf mime-type=application/pdf /
/map:match

To make it short, it didn't work. I'm not sure if it's due to an erroneous
xslt... my xslt skills are very limited :)

Has anyone an idea on how to deal with this ?
I mean, perhaps Cocoon has a build-in html2fo - transformer I haven't
discovered yet ;)

thanks in advance for your help !

greetings
  Florian



smime.p7s
Description: application/pkcs7-signature


Re: XSP Best Practise Question

2002-08-22 Thread Jens Lorenz

- Original Message -
From: Hunsberger, Peter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 22, 2002 4:47 PM
Subject: RE: XSP Best Practise Question


  As you've noted a lot of examples, and suggested solutions to problems
 posted
  to this list, use an alternate approach: the generators present data
to
 the
  pipeline which uses Transformers and Actions to do often complex
 operations.
  The data itself is often wrapped in a page markup language making it
 easier
  to transform it to other forms (HTML/PDF/etc).
 
  This looks like its breaking MVC, and it probably is.

 Not necessarily (through it often seems to be true with XSP): Consider
the
 case where your MVC is implemented in XML and XSLT with Java just
providing
 a way to produce the XML.  In such a case you exploit the Cocoon
pipeline to
 separate things, with separate transformation passes (and separate XSLT)
 implementing each piece.  It's a little foggy on whether the XML or the
XSLT
 implements each piece, the paradigm is twisted enough that it doesn't
map
 completely cleanly.  However, you can still get good separation of
function
 if you don't mind the fact that it's a combination of rules specified in
XML
 and implemented in XSLT that end up implementing the complete MVC
pattern
 (as opposed to a single Java or JSP file).

  It's at this point that you're starting to treat the sitemap as a
 programming
  language rather than a declarative means of gluing together
components.
 
  (Aside: anyone notice how close the Sitemap is becoming to a source
file?
  Imports: map:components; Instance Variables: component/global params
  added in 2.1; Methods: pipelines. There's a danger there in making
this
  environment too programmer oriented).

 Yes, that's a good observation.  In particular, the sitemap matching
 capabilities begin to become a rule processor.  It strikes me that a
more
 generalized version of the site map would allow XPath traversal of the
 current pipeline contents, to match to a template which produces a
map.
 In other words; the pipeline would just fire off an XSLT that has the
 current Cocoon contexts available to it as parameters or document
sources.
 It would be able to parse these as it needed and directly invoke other
 Cocoon components.  Cocoon's pipeline processing becomes the equivalent
of
 running a transform on a series of XML files which specify what matching
 rules are to be fired. (The results of the transform could be fed to a
 filter that implements the current Cocoon pipeline capabilities.)  The
 default transform would be the identity transform to handle something
 isomorphic to the current version of the sitemap, but one could then
just
 plug in your own XSLT to customize the flow (you'd map various
applications
 with different XML inputs).  This way not only does Cocoon provide a way
of
 running transformations, but the rule engine for determining what
transforms
 to run is just another transform.  Perhaps, this is where flowmaps are
 headed?  I haven't had a chance to look at anything in 2.1 yet

lost you here. Flow is about letting sitemap do what sitemap is meant
for (mapping resources to urls) and defining the application logic
independantly of sitemap. Currently this is procedural JavaScript code.

  So my general advice is: if the logic is reusable, then make it a
 transformer/action
  so you'll have the most reuse. If its not, hide it away.

 My advice would be more like; stop thinking in procedural terms and stop
 thinking of using Java to implement everything.  Use XML and XSLT and
 exploit their capabilities!


XSLT is definitely the wrong place for business logic. You're missing
database access, transactions and other important things for business
logic.


Jens

--

jens.lorenz at interface-projects dot de

interface:projects GmbH \\|//
Tolkewitzer Strasse 49  (o o)
01277 Dresden   oOOo~(_)~oOOo
Germany


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

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




Re: Problems installing Cocoon 2.0.3 [xerces to be updated - or NOT?]

2002-08-22 Thread Amy Drew

Unfortunately, that version contains a bug when
serializing SAX events.  See Xerces2-J Bug#6165. 
Is Cocoon going to update its version of xerces?  
This is causing me much grief.

-Amy

 
 The one bundled with Cocoon, of course :)
 
 Vadim


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

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