Re: Error running Current CVS and Development Snapshot Versions

2002-11-29 Thread Antonio Gallardo
copy the jars: Xalan-???.jar, Xerces-???.jar and xml-apis.jar
from $CVS/lib/core
to $JAVA_HOME/jre/lib/endorsed.
copy the same to $TOMCAT_HOME/common/endorsed.

Note: if the directories endorsed are not found, create it.

Regards,

Antonio Gallardo


Richard Reyes dijo:
 Hi Guys,

 I have been trying somethings on the portal samples. And I have
 downloaded the latest cvs versions ( through wincvs ). After I have
 built it using

 build -Dinclude.webapp.libs=yes -Dinclude.scratchpad.libs=yes
 -Dinstall.war=C:\ApacheGroup\Tomcat4.1\webapps webapp

 targeted for 1.4 JVM, Erased all my working cocoon intallations. I have
 copied the war file into the tomcat webapps, then point the browser to
 localhost:8080/cocoon.

 I got this error..

 org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
 org.apache.cocoon.CascadingIOException:
 org.apache.xml.utils.WrappedRuntimeException: The output format must
 have a '{http://xml.apache.org/xslt}content-handler' property!:
 org.apache.xml.utils.WrappedRuntimeException: The output format must
 have a '{http://xml.apache.org/xslt}content-handler' property!

 Any ideas..?

 Configurations:
 Windows 2000 Advance Server
 j2sdk1.4.0_03
 Apache Tomcat/4.1.12-LE-jdk14


 Thanks
 Richard




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




[HELP]Exception in ServerPagesGenerator.generate()

2002-11-29 Thread LEBRETON Philippe


I want include a String with a content XML in my XML and i used :
util:include-expr>util:expr>xsp:expr>Car.toString()/xsp:expr>/util:expr>/util:include-expr>
Car is declared :
StringBuffer Car = new StringBuffer();
Car content :
bdo>
Pac>1/Pac>
TP>1/TP>
/bdo>
Description:org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate():

java.lang.RuntimeException: Could not include page Content is not allowed in prolog.
Help me.
Whereis the problem.
This expression work with Cocoon 2.0.2 and not with Cocoon 2.0.3
Thanks
Philippe LEBRETON
-
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: Workflow

2002-11-29 Thread Ugo Cei
[EMAIL PROTECTED] wrote:

Hello,
I have heard from OSWorkflow, do you know if it's easy to adapt it for
cocoon? Because we use xsl stylesheets and other cocoon functions, but
OSWorkflow is just a workflow management concept using java and a web
server.


As I said, I haven't written a single line of code yet. However, since 
you're just dealing with Java objects, I can't see how it would be a 
problem using it from Cocoon. I'm actually planning to use OSWorkflow 
classes from Cocoon's flowscript.

	Ugo

--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - 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]



Réf:Re: Workflow

2002-11-29 Thread Rano, Didier


What is it Cocoon's flowscript ? 


Didier Rano
Serv'N Data

Séparateur de messages
Objet : Re: Workflow
Auteur :[EMAIL PROTECTED]
Date :  29/11/2002 11:46

[EMAIL PROTECTED] wrote:
 Hello,
 I have heard from OSWorkflow, do you know if it's easy to adapt it for
 cocoon? Because we use xsl stylesheets and other cocoon functions, but
 OSWorkflow is just a workflow management concept using java and a web
 server.

As I said, I haven't written a single line of code yet. However, since
you're just dealing with Java objects, I can't see how it would be a
problem using it from Cocoon. I'm actually planning to use OSWorkflow
classes from Cocoon's flowscript.

 Ugo

--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - 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: Réf:Re: Workflow

2002-11-29 Thread Ugo Cei
Rano, Didier wrote:


What is it Cocoon's flowscript ? 

It is Cocoon's 2.1 framework for controlling the flow of web 
applications. Think Actions, but simpler, more powerful and more elegant.

References:

http://marc.theaimsgroup.com/?l=xml-cocoon-devm=103128978404439w=2
http://www.webweavertech.com/ovidiu/weblog/archives/42.html
http://outerthought.net/gettogether/ (download Ovidiu Predescu's 
presentation).

	Ugo

--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - 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]



with Cocoon 2.0.3 include-expr does'nt work

2002-11-29 Thread LEBRETON Philippe
With cocoon 2.0.2, i use include-expr to include string with XML data
in my XML:
util:include-exprutil:exprSortieXML/util:expr/util:include-expr
and it work.

i upgrade my cocoon to 2.0.3 and i have a exception :


Original exception : java.lang.RuntimeException: Could not include page
Content is not allowed in prolog.
  at
org.apache.cocoon.components.language.markup.xsp.XSPUtil.includeInputSource(XSPUtil.java:359)

  at
org.apache.cocoon.components.language.markup.xsp.XSPUtil.includeString(XSPUtil.java:336)

  at
org.apache.cocoon.www.pac.etatpac_PROD_xsp.ExecCmd(/var/cache/tomcat4/localhost/cocoon/cocoon-files/org/apache/cocoon/www/pac/etatpac_PROD_xsp.java:142)

Where is the problem?

Help me.

Thanks

Philippe LEBRETON


-
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: Error running Current CVS and Development Snapshot Versions

2002-11-29 Thread Gal Nitzan
I have the same problem, posted the question yesterday Newbie Question
- Sunshine sample problem but no answers yet :(

Regards.


On Fri, 2002-11-29 at 09:11, Richard Reyes wrote:
 Hi Guys,
 
 I have been trying somethings on the portal samples. And I have downloaded the 
latest cvs versions ( through wincvs ).
 After I have built it using 
 
 build -Dinclude.webapp.libs=yes -Dinclude.scratchpad.libs=yes 
-Dinstall.war=C:\ApacheGroup\Tomcat4.1\webapps webapp
 
 targeted for 1.4 JVM, Erased all my working cocoon intallations. I have copied the 
war file into the tomcat webapps, then point the browser to localhost:8080/cocoon.
 
 I got this error..
 
 org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
org.apache.cocoon.CascadingIOException: org.apache.xml.utils.WrappedRuntimeException: 
The output format must have a '{http://xml.apache.org/xslt}content-handler' 
property!: org.apache.xml.utils.WrappedRuntimeException: The output format must have 
a '{http://xml.apache.org/xslt}content-handler' property!
 
 Any ideas..?
 
 Configurations:
 Windows 2000 Advance Server
 j2sdk1.4.0_03
 Apache Tomcat/4.1.12-LE-jdk14
 
 
 Thanks
 Richard
 



-
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: with Cocoon 2.0.3 include-expr does'nt work

2002-11-29 Thread Christian Haul
On 29.Nov.2002 -- 01:50 PM, LEBRETON Philippe wrote:
 With cocoon 2.0.2, i use include-expr to include string with XML data
 in my XML:
 util:include-exprutil:exprSortieXML/util:expr/util:include-expr
 and it work.

Although the error message does not fit the diagnosis, please add
xsp:expr/ around SortieXML.

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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




Including static images into SVG files

2002-11-29 Thread Derek Hohls



I know this isperhaps off-topic for Cocoon, but it does relate 
(somewhat) and I hope
there is a 'guru' somewhere that can answer a relatively (?) 
straightforward question.

I need to include and display a static image (its a logo) on all the SVG 
images I produce;
the only syntax I have managed to get to work is:

svg:image xlink:href=""http://myserver/">http://myserver/
then it simply does not work - is there a Cocoon "substitute" (protocol?) I 
can use
to get the image processed correctly, *regardless* ofwhat machine the 
app. is
loaded on??

Thanks
Derek


sitemap - save file ?

2002-11-29 Thread Jessica Niewint
I generate a PDF -File via XSP - XSL:FO . Now I got the problem, that I 
have no idea how to store the generated pdf-file. I do not want to do it on 
the client side (with the acrobat-reader) I want to stay on the server 
site. How can I move the content of the generate PDF in the browser to my 
server ? Or better, do not even want the the file will be displayed in the 
browser. Is there a way to save the content before the browser , maybe 
with the help of the sitemap ? or a script ? 


-
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: Sessions (read please!)

2002-11-29 Thread Mauro Daniel Ardolino
Hi! third time.  I'm still stuck.  May be the subject is not interesting,
or may be no one is working with cocoon, servlets and session attributes.
HELP! (read below).

Thanks, and sorry for insisting.

-- Mauro

On Fri, 22 Nov 2002, Mauro Daniel Ardolino wrote:

 Hi again!  I'm still stuck.  I've tried a lot of things without success.
 Does anyone work with cocoon and servlets, and session attributes?
 If so, please read below (my previous mail)! thanks!
 
 -- Mauro
 
 On Mon, 18 Nov 2002, Mauro Daniel Ardolino wrote:
 
  Hi! I have a problem using cocoon with other servlets.
  I have a servlet that outputs a xml and then in a pipeline I apply a xsl
  transformation.  This works well, but this servlet needs a session
  parameter.
  
  Inside the servlet I wrote:
  
  HttpSession session= request.getSession();
  TreeMap cart= (TreeMap) session.getAttribute(cart)
  
  But I cannot obtain the cart parameter.  If I put the false parameter
  to the request.getSession(), I obtain an exception.
  
  So I have to think that cocoon is not passing the session to this servlet.
  I have to say that other servlet adds the cart parameter to the session,
  of course.
  
  Here's a copy of the pipeline:
  
  map:match pattern=CheckoutPage.html
  map:generate src=http://delta:18080/ProductSelectionDemo1/checkoutPage/ 
  map:transform src=style/CheckoutPage_html.xsl type=xslt/
  map:serialize type=html/
  /map:match
  
  Must I do something special to pass the session to this servlet?
  (the servlet url is http://delta:18080/ProductSelectionDemo1/checkoutPage;)
  
  Thanks in advance.
  
  -- Mauro
  
  
 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


-
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: sitemap - save file ?

2002-11-29 Thread Eisert, Wolfram (ext.)
Jessica,

maybe you could use the SourceWritingTransformer.

See
http://xml.apache.org/cocoon/userdocs/transformers/sourcewriting-transformer
.html

Wolfram

 -Original Message-
 From: Jessica Niewint [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 29, 2002 2:45 PM
 To: [EMAIL PROTECTED]
 Subject: sitemap - save file ?
 
 
 I generate a PDF -File via XSP - XSL:FO . Now I got the 
 problem, that I 
 have no idea how to store the generated pdf-file. I do not 
 want to do it on 
 the client side (with the acrobat-reader) I want to stay on 
 the server 
 site. How can I move the content of the generate PDF in the 
 browser to my 
 server ? Or better, do not even want the the file will be 
 displayed in the 
 browser. Is there a way to save the content before the 
 browser , maybe 
 with the help of the sitemap ? or a script ? 
 
 
 -
 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]




java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/DefaultSVGContext

2002-11-29 Thread Ludovic de Beaurepaire
Hi All,

I have a stylesheet using SVG, it is working fine with FOP to generate PDF.
Now, I want Cocoon to use it and i have the following Exception (in the
console):

java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/DefaultSVGContext
...

I am using Cocoon 2.0.3, and in the file batik-all-1.5b2.jar the package
org.apache.batik.dom.svg is present but doesn't contain
DefaultSVGContext.class file

Someone knows a solution ?

Thanks in advance,

Ludovic




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




Antw: Re: Sessions (read please!)

2002-11-29 Thread Martin Geissler
Hello,
i don t use servlets but JSPs

have the following code:

1. xsp Document
  xsp:structure
xsp:includeorg.apache.cocoon.environment.Session/xsp:include
  /xsp:structure
...
Session session = request.getSession (false);
if (session != null) {
// delet od session
session.invalidate ();
}
// create new session
session = request.getSession (true);
session.setAttribute (props, properties);
session.setAttribute (user, user);
session.setMaxInactiveInterval(3600); // 1 houer

...
2. Session in JSP page or xsp page
HTTPSession is a default class in a JSP page!(?)
%
  HttpSession session = request.getSession (false);
  // When there's no session and no user object tell person in front of
the screen so
if (session != null  session.getAttribute (user) != null) 
{

User user = (User)session.getAttribute (user);
}
else
{
...
}  

JSP in sitemap as JSPreader, not JSPgenerator, cause i first developed
JSPs and then changed to cocoon

hth

Martin Geißler

 [EMAIL PROTECTED] Freitag, 29. November 2002 15:15:10 
Hi! third time.  I'm still stuck.  May be the subject is not
interesting,
or may be no one is working with cocoon, servlets and session
attributes.
HELP! (read below).

Thanks, and sorry for insisting.

-- Mauro

On Fri, 22 Nov 2002, Mauro Daniel Ardolino wrote:

 Hi again!  I'm still stuck.  I've tried a lot of things without
success.
 Does anyone work with cocoon and servlets, and session attributes?
 If so, please read below (my previous mail)! thanks!
 
 -- Mauro
 
 On Mon, 18 Nov 2002, Mauro Daniel Ardolino wrote:
 
  Hi! I have a problem using cocoon with other servlets.
  I have a servlet that outputs a xml and then in a pipeline I apply
a xsl
  transformation.  This works well, but this servlet needs a session
  parameter.
  
  Inside the servlet I wrote:
  
  HttpSession session= request.getSession();
  TreeMap cart= (TreeMap) session.getAttribute(cart)
  
  But I cannot obtain the cart parameter.  If I put the false
parameter
  to the request.getSession(), I obtain an exception.
  
  So I have to think that cocoon is not passing the session to this
servlet.
  I have to say that other servlet adds the cart parameter to the
session,
  of course.
  
  Here's a copy of the pipeline:
  
  map:match pattern=CheckoutPage.html
  map:generate
src=http://delta:18080/ProductSelectionDemo1/checkoutPage/ 
  map:transform src=style/CheckoutPage_html.xsl type=xslt/
  map:serialize type=html/
  /map:match
  
  Must I do something special to pass the session to this servlet?
  (the servlet url is
http://delta:18080/ProductSelectionDemo1/checkoutPage;)
  
  Thanks in advance.
  
  -- Mauro
  
  
 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED] 
website: http://www.altersoft.com.ar 


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




util:include-file fails to include in .xsp

2002-11-29 Thread Marko NIINIMAKI

Hello,

I'm trying to include a xsp:logic-block from another file.

The application works _without_ the include as follows:

?xml version=1.0?

xsp:page language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:session=http://apache.org/xsp/session/2.0;
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;
  xmlns:util=http://www.apache.org/1999/XSP/Util;


xsp:structure
  xsp:includejava.util.*/xsp:include
  ..

/xsp:structure

!--INCLUDE STARTS HERE--
![CDATA[
public String outputboo() { return boo; }
]] 
/xsp:logic
!--INCLUDE FINISHES HERE--

page
  titleGB default page/title
  content
  xsp:logic
![CDATA[
System.out.println(outputboo());
]]
  /xsp:logic
/content

/page
/xsp:page


However, if I replace
!--INCLUDE STARTS
..FINISHES HERE--
with
util:include-file name=boo.xsp/

where boo.xsp is
xsp:logic
![CDATA[
public String outputboo() { return boo; }
]] 
/xsp:logic

I get no output. Is there some trick?
This is cocoon-2.0.3 with tomcat-4.1.10

Yours,
Marko


-
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: Including static images into SVG files

2002-11-29 Thread Andrew Savory

Hi Derek,

On Fri, 29 Nov 2002, Derek Hohls wrote:

 the only syntax I have managed to get to work is:

 svg:image xlink:href=http://myserver/path/logo.jpg /  (plus height,
 width)

I've had the same problem (relative URLs not working). The only way I've
got it to work is to hardwire myserver. Sorry that's not much help, but
thought you might like to know others are suffering too!


Andrew.

-- 
Andrew SavoryEmail: [EMAIL PROTECTED]
Managing Director  Tel:  +44 (0)870 741 6658
Luminas Internet Applications  Fax:  +44 (0)700 598 1135
This is not an official statement or order.Web:www.luminas.co.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]




JDBC Problem - stumped

2002-11-29 Thread Jeff Sexton

I've had connection pooling working fine in the past, but ended up not
using it.  Today I went through setting it up again and I've hit a dead
end.

The query I've put in an XML file using esql tags is not executing.  The
only hint I have is what appears in the cocoon
webapps/cocoon/WEB-INF/logs/error.log.01 file.  These error appear on
attempt to processes the xml and not before.

I know the connection is logged into the database server, I can see it.
So I know my JDBC driver can be found and that it's parameters are
correct.  I hope someone can offer an idea as to what could be wrong,
thanks!

Tomcat 4.0.4
Cocoon 2.0.3
Java   1.3.0

Here's the cocoon error file.

ERROR   (2002-11-29) 08:45.13:024   [sitemap.generator.velocity]
(/cocoon/mp3Status.html) HttpProcessor[8080][4]/VelocityGenerator:
ResourceManager : unable to find resource 'VM_global_library.vm' in any
resource loader.
ERROR   (2002-11-29) 08:45.13:067   [sitemap.generator.velocity]
(/cocoon/mp3Status.html) HttpProcessor[8080][4]/VelocityGenerator:
ResourceManager : unable to find resource 'VM_global_library.vm' in any
resource loader.
ERROR   (2002-11-29) 08:45.13:125   [sitemap.generator.xmldb]
(/cocoon/mp3Status.html) HttpProcessor[8080][4]/XMLDBGenerator: There was
a problem setting up the connection
ERROR   (2002-11-29) 08:45.13:126   [sitemap.generator.xmldb]
(/cocoon/mp3Status.html) HttpProcessor[8080][4]/XMLDBGenerator: Make sure
that your driver is available
ERROR   (2002-11-29) 08:45.13:134   [sitemap.generator.xmldb]
(/cocoon/mp3Status.html) HttpProcessor[8080][4]/XMLDBGenerator: There was
a problem setting up the connection
ERROR   (2002-11-29) 08:45.13:135   [sitemap.generator.xmldb]
(/cocoon/mp3Status.html) HttpProcessor[8080][4]/XMLDBGenerator: Make sure
that your driver is available
ERROR   (2002-11-29) 08:45.13:150   [sitemap.generator.xmldbcollection]
(/cocoon/mp3Status.html) HttpProcessor[8080][4]/XMLDBCollectionGenerator:
There was a problem setting up the connection
ERROR   (2002-11-29) 08:45.13:151   [sitemap.generator.xmldbcollection]
(/cocoon/mp3Status.html) HttpProcessor[8080][4]/XMLDBCollectionGenerator:
Make sure that your driver is available
ERROR   (2002-11-29) 08:45.13:158   [sitemap.generator.xmldbcollection]
(/cocoon/mp3Status.html) HttpProcessor[8080][4]/XMLDBCollectionGenerator:
There was a problem setting up the connection
ERROR   (2002-11-29) 08:45.13:158   [sitemap.generator.xmldbcollection]
(/cocoon/mp3Status.html) HttpProcessor[8080][4]/XMLDBCollectionGenerator:
Make sure that your driver is available



-
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: Sessions (read please!)

2002-11-29 Thread Mauro Daniel Ardolino
First of all, thanks for answering!

Well, I'm using servlets, not XSPs (I know this are servlets too, but not
HttpServlets).  So, I'm using HttpServlets.  I'm doing just as you say to
put something in a session.  Then I try to restore this parameter from
another servlet.  This is the snip of the configuration of the second
servlet extracted from the sitemap:

map:match pattern=CheckoutPage.html
map:generate
src=http://delta:18080/ProductSelectionDemo1/checkoutPage/ 
map:transform src=style/CheckoutPage_html.xsl type=xslt/
map:serialize type=html/
/map:match

It works fine (the servlet), but it cannot retrieve the cart from
the session.  Also I think it cannot retrieve the session.

The answer is:
Must I do something special in the sitemap to pass the session to 
this servlet?

Thanks a lot and ask me for anything you do not understand of my poor
explanation.

-- Mauro



On Fri, 29 Nov 2002, Kazmír, Jaroslav wrote:

 I don't know, how it's with the servlets, but I use for the session this:
 
 private Session session;
 ...
 session = request.getSession();
 session.setAttribute(cart, true);
 
 But I don't understand, where you would like to check this session in your
 next step. I check my session in another java class or in XSP file.
 
 JayKay
 
 -Original Message-
 From: Mauro Daniel Ardolino [mailto:[EMAIL PROTECTED]] 
 Sent: Freitag, 29. November 2002 15:15
 To: [EMAIL PROTECTED]
 Subject: Re: Sessions (read please!)
 
 Hi! third time.  I'm still stuck.  May be the subject is not interesting,
 or may be no one is working with cocoon, servlets and session attributes.
 HELP! (read below).
 
 Thanks, and sorry for insisting.
 
 -- Mauro
 
 On Fri, 22 Nov 2002, Mauro Daniel Ardolino wrote:
 
  Hi again!  I'm still stuck.  I've tried a lot of things without success.
  Does anyone work with cocoon and servlets, and session attributes?
  If so, please read below (my previous mail)! thanks!
  
  -- Mauro
  
  On Mon, 18 Nov 2002, Mauro Daniel Ardolino wrote:
  
   Hi! I have a problem using cocoon with other servlets.
   I have a servlet that outputs a xml and then in a pipeline I apply a xsl
   transformation.  This works well, but this servlet needs a session
   parameter.
   
   Inside the servlet I wrote:
   
   HttpSession session= request.getSession();
   TreeMap cart= (TreeMap) session.getAttribute(cart)
   
   But I cannot obtain the cart parameter.  If I put the false
 parameter
   to the request.getSession(), I obtain an exception.
   
   So I have to think that cocoon is not passing the session to this
 servlet.
   I have to say that other servlet adds the cart parameter to the
 session,
   of course.
   
   Here's a copy of the pipeline:
   
   map:match pattern=CheckoutPage.html
 map:generate
 src=http://delta:18080/ProductSelectionDemo1/checkoutPage/ 
 map:transform src=style/CheckoutPage_html.xsl type=xslt/
 map:serialize type=html/
   /map:match
   
   Must I do something special to pass the session to this servlet?
   (the servlet url is
 http://delta:18080/ProductSelectionDemo1/checkoutPage;)
   
   Thanks in advance.
   
   -- Mauro
   
   
  
  
 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar



-
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: Invoking a Servlet directly!!!

2002-11-29 Thread Joerg Heinicke
You can implement the servlet as Cocoon generator: 
http://xml.apache.org/cocoon/developing/extending.html.

Joerg

Kavitha Ramesh wrote:
Hi,

Normally we invoke a servlet like below:

map:generate
src=http://localhost:8080/cocoon/myservlet{requestQuery};
/

But I would like to invoke the servlet directly like
below:

If the servlet is stored  in a directory
Web-Inf/Classes/Servlet/myservlet.class, then I would
like to invoke as

map:generate src=Servlet.myservlet /

Is this possible?Please help me!

Kavitha



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




Transformer

2002-11-29 Thread lbrasseur
I want to change the XSL file of a transformer according a element of the
input XML. There is any way to do this?

Thanks

Lautaro

__

Obtenga gratis su cuenta @Argentina.com con AntiVirus, 20mb de espacio,

acceso POP3 y SMTP en 24 ciudades www.Argentina.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]




xsp simple or not?

2002-11-29 Thread Cocoon User

into an .xsp file i have

..
..

xi:include href=cPlace.xml/


..
..

and work fine


the i try to put some logic

..
..
xsp:logic
String thePage= xsp-request:get-parameter name=page/;

if (thePage.equals(place)){
xi:include href=cPlace.xml/
}
/xsp:logic

..
..

i dont get any error message
but i dont see the included file ...!!



can anyone help me?

i want to include a file into an .xsp page based in a give parameter when
i call this .xsp


thnx
Stavro Kounis



-
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: version problem in AbstractGenerator class

2002-11-29 Thread Joerg Heinicke
The class was compiled by another version of the JVM than the actual 
runtime JVM. Especially JDK version 1.3.x vs. 1.4.x.

Joerg

Andreas Hefti wrote:
hello all,
 
I try to write my own Generator for Cocoon to get XML source from a EJB. 
first I try to write a simle sample to find out how it works. I found a 
sample in a how to.
 
I wrote the following simple Generator:
 
-
 
package com.ite.generators;
import java.io.IOException;
import java.io.StringReader;
import org.xml.sax.XMLReader;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.XMLReaderFactory;
import org.apache.cocoon.*;

public class TestGen extends 
org.apache.cocoon.generation.AbstractGenerator {

public TestGen() {
}
 
public void generate() throws java.io.IOException, 
org.xml.sax.SAXException, org.apache.cocoon.ProcessingException {
String message = docMy first Cocoon 2 generator!/doc;
 
XMLReader xmlreader = XMLReaderFactory.createXMLReader();
xmlreader.setContentHandler(super.xmlConsumer);
InputSource source = new InputSource(new StringReader(message));
xmlreader.parse(source);
}   
   
   
}
 

 
if I try to compile this source with Forte4Java 3.0, I get the following 
compiler error;
 

 
com/ite/generators/TestGen.java [24:1] cannot access 
org.apache.cocoon.generation.AbstractGenerator
bad class file: 
D:\I-TE\Entwicklung\itech_cvs\develop\senn\src\webMod\WEB-INF\lib\cocoon-2.0.3.jar(org/apache/cocoon/generation/AbstractGenerator.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the 
classpath.
public class TestGen extends 
org.apache.cocoon.generation.AbstractGenerator {
 ^
1 error
Errors compiling TestGen.
 
-
 
I', using the cocoon-2.0.3.jar. what is wrong with the class version and 
what can I do to solve the version problem?
 
thanks for any help,

Mit freundlichen Grüssen / Kind regards 
  
Andreas Hefti


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




Problem with cache in clients

2002-11-29 Thread Antonio Gallardo
Hi,

I currently found a problem with the cache mechanism of IE 6.0 SP1 and
Cocoon.

Concretly the problem is refered to the cration time of the documents.
When a generated document must changes, the explorer check for a new
version of the HTML document, but it does not find the new document.

The question is, how to make Cocoon to generate the correct time of
creation of the document. I think this can help to solve the problem. Can
someone tell me how to enable this.

Regards,

Antonio Gallardo



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