RE: [HELP]SAXException JspGenerator.generate() - Using Tom Cat 4.0.1 and released cocoon 2.0.2

2002-03-26 Thread Piroumian, Konstantin

Hi!

> 
> Hello Konstantin...
>   I downloaded the binary of 2.0.2 and tested the JSP 
> generator and the exception's still there Did you do the fixes ?
>   If yes, is there any configuration that needs to be 
> done to get the JSP's working...

Unfortunately, I hadn't much time to investigate the problem (there were
other problems with i18n and I focused on them). But something weird
happened to JSP support somewhere last week, cause my previous version of
Cocoon works fine with JSP.

There were no changes in JSPEngine (nor in JspGenerator or JSPReader), so
the problem should be somewhere in the core or the sitemap. I'll take a look
at it today and hope will solve the problem.

--
Konstantin Piroumian 
[EMAIL PROTECTED]

> 
> Thanks in advance,
> Chiths
> 
> 
> 
> -Original Message-
> From: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, March 25, 2002 2:38 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [HELP]SAXException JspGenerator.generate() - 
> Using Tom Cat 4.0.1 and latest Cocoon build JDK 1.3.1
> 
> Now I see this error too.
> I'll try to resolve it before release.
> 
> --
> Konstantin Piroumian 
> [EMAIL PROTECTED]
> 
> > -Original Message-
> > From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 23, 2002 1:08 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [HELP]SAXException JspGenerator.generate() - 
> > Using Tom Cat 4.0.1 and latest Cocoon build JDK 1.3.1
> > 
> > 
> > Copied the jasper-compiler.jar from TomCat\lib to 
> \WEB-INF\lib
> > 
> > Same result.
> > 
> > You are right, there is no compiled jSP's under TOMCAT/work/cocoon
> > 
> > 
> > JSP reader:
> > I used the jsp reader , same result, no JSP generated
> > I get a page not found error in my browser, No 
> exception or error at 
> > any of the 3 log files (sitemap, core and error)
> > 
> > The following is the listing from sitemap.log
> > -->
> > DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
> > HttpProcessor[8080][4]/sitemap_xmap: Matched wildcard pattern
> > jsp/*.htm
> > DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
> > HttpProcessor[8080][4]/AbstractSitemap: 
> > Current Sitemap Parameters:
> > PARAM: '1' VALUE: 'hello'
> > PARAM: '0' VALUE: 'jsp/hello.htm'
> > 
> > DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
> > HttpProcessor[8080][4]/sitemap_xmap: Component
> > reader:jsp(Parameters.EMPTY_PARAMETERS)
> > DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
> > HttpProcessor[8080][4]/AbstractSitemap: Substitute evaluated
> > value for 1
> > as hello
> > DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
> > HttpProcessor[8080][4]/sitemap_xmap: Source= 
> > /docs/samples/jsp/hello.jsp
> > DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
> > HttpProcessor[8080][4]/sitemap_xmap: Mime-type= text/html
> > DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
> > HttpProcessor[8080][4]/AbstractSitemap: Substitute evaluated 
> > value for 1
> > as hello
> > DEBUG   (2002-03-22) 13:57.43:517   [sitemap](/cocoon/jsp/hello.htm)
> > HttpProcessor[8080][4]/sitemap_xmap: Matched wildcard pattern 
> > jsp/*.htm
> > >
> > 
> > There is no JSP compilation that takes place even for the 
> JSP reader.
> > 
> > 
> > 
> > Old Build:
> > The same Hello.jsp, works with the older build for both jsp 
> reader and 
> > Generator. Also there is no jasper-compiler.jar in the 
> WEB-INF/lib of 
> > the old Build of Cocoon.
> > 
> > 
> > Konstantin, does JSP's work for you in the latest build If yes, 
> > what version of TomCat are you running
> > 
> > My environment is Cocoon (build as of 2 days back) and TomCat 4.0.1.
> > 
> > The url to test is  (assumption webApp is cocoon and port is 8080) 
> > http://localhost:8080/cocoon/jsp/hello
> > 
> > for JSP reader:
> > 
> > http://localhost:8080/cocoon/jsp/hello.htm
> > 
> > Thanks and regds,
> > Chiths
> > 
> > 
> > 
> > 
> > 
> > accordia, inc
> > 34347 Maybird Circle
> > Fremont, CA 94555
> > 650 279 1137
> > [EMAIL PROTECTED]
> > š
> > The information contained in this communication is intended 
> solely for 
> > the use of the individual or entity to whom it is addressed 
> and others 
> > authorized to receive it. It may contain confidential or legally 
> > privileged information. If you are not the intended 
> recipient you are 
> > hereby notified that any disclosure, copying, distribution 
> or taking 
> > any action in reliance on the contents of this information 
> is strictly
> > prohibited and may be unlawful. If you have received this 
> > communication
> > in error, please notify us immediately by responding to 
> this email and
> > then delete it from your system. Accordia Inc. is neither 
> > liable for the
> > proper and incomplete transmission of the information 
> > contained in this
> > communication nor for any delay in its receipt
> > 
> > 
> > -Original Messag

RE: Database connection problem

2002-03-26 Thread Sozonnik Andrew

Tell us, version of Cocoon and JDK.
Have you compiled Cocoon by yourself and under what JDK ?

-Original Message-
From: Derek Hohls [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 27, 2002 8:39 AM
To: [EMAIL PROTECTED]
Subject: Re: Database connection problem


1) The jdbc driver file is loaded under:  WEB-INF/classes/

2) The xconf file contains:

  

  
  true
  jdbc:mysql://localhost:3306/mydbase
  foo
  bar
 
  

3) I am not sure what you mean by "access.log" - I only have 
cocoon.log and root.log in my WEB-INF/logs directory?

The first enty in the cocoon.log has the line:

FATAL_E (2002-03-26) 15:31.06:158   [cocoon  ]
 (Unknown-URI) Unknown-thread/JdbcConnectionPool: 
Excalibur could not create any connections.  
Examine your settings to make sure they are correct.  
Make sure you can connect with the same settings on your machine.

The root.log has no entries in it at all...


Thanks for responding - any comments on the above??

Derek

>>> [EMAIL PROTECTED] 26/03/2002 05:11:18 >>>
1) You must have jdbc driver file in classpath
2) Check your cocoon.xconf
for ... for pool configuration
3) See access.log for message like this
 DEBUG   (2002-03-26) 17:04.45:713   [access] (Unknown-URI)
Unknown-thread/Cocoon
Servlet: Trying to load class: org.gjt.mm.mysql.Driver

- Original Message -
From: "Derek Hohls" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 4:43 PM
Subject: Database connection problem


> When trying to connect to a mySQL database, I get:
>
> Could not get the datasource java.sql.SQLException: There are no 
> connections in the pool, check your settings.
>
> I already have the setting for the driver in the web.xml;
> 
>   load-class
>   org.gjt.mm.mysql.Driver
> 
>
> I can also connect to, and 'see' the database with another,
front-end
> program.
>
> In fact, the connection AND database were working previously - does 
> anyone know if a mod_rewrite for the site in the Apache server would 
> affect this??  (seems strange, but thats the only major change that
has
> happened on the server that I know about) I have also checked the 
> connection without using the VirtualHost and get the same results...
>
> Any ideas as to what else to check?
>
> Thanks
> Derek
>
>
-
> Please check that your question has not already been answered in the 
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


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

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


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

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



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

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




Re: XSL-question: sort with parameter

2002-03-26 Thread Bartomeu Adrover

It's not a very good solution if you have a lot of values for sort,
because you need to put one xsl:if tag for any possible value.


http://www.w3.org/1999/XSL/Transform";>
 

 
  
   
 
  
  
  
   
 
  
  
 

 
  
 



Axel Honfi wrote:

> Hi!
>
> I passed a parameter to a stylesheet and I can get the value with
> .
>
> But I need to sort data by the value of the parameter like
>
> .
>
> But with this nothing happens and all other forms I tried also failed.
>
> Does anyone know how to work this?
>
> Thanks a lot
>
> Axel
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


begin:vcard 
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de Càlcul i Informatizació
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard



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

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


Re: XSL-question: sort with parameter

2002-03-26 Thread KOZLOV Roman

Hi Axel,

You can use something like following:

  

Best regards
Roman



Axel Honfi wrote:

> Hi!
>
> I passed a parameter to a stylesheet and I can get the value with
> .
>
> But I need to sort data by the value of the parameter like
>
> .
>
> But with this nothing happens and all other forms I tried also failed.
>
> Does anyone know how to work this?
>
> Thanks a lot
>
> Axel
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


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

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




RE: Database connection problem

2002-03-26 Thread Hahn Kurt (CHA)

I'm still a Cocoon beginner, and I just got my db connection working
yesterday, and my dburl in datasources looks a bit different, like this:
jdbc:oracle:thin:@pallas6:1521:PAIG
I don't know whether you should replace the "//localhost" by "@localhost"?
Maybe it's worth a try

Regards
Kurt

-Message d'origine-
De: Derek Hohls [mailto:[EMAIL PROTECTED]]
Date: mercredi, 27. mars 2002 07:39
À: [EMAIL PROTECTED]
Objet: Re: Database connection problem


1) The jdbc driver file is loaded under:  WEB-INF/classes/

2) The xconf file contains:

  

  
  true
  jdbc:mysql://localhost:3306/mydbase
  foo
  bar
 
  

3) I am not sure what you mean by "access.log" - I only have 
cocoon.log and root.log in my WEB-INF/logs directory?

The first enty in the cocoon.log has the line:

FATAL_E (2002-03-26) 15:31.06:158   [cocoon  ]
 (Unknown-URI) Unknown-thread/JdbcConnectionPool: 
Excalibur could not create any connections.  
Examine your settings to make sure they are correct.  
Make sure you can connect with the same settings on your machine.

The root.log has no entries in it at all...


Thanks for responding - any comments on the above??

Derek

>>> [EMAIL PROTECTED] 26/03/2002 05:11:18 >>>
1) You must have jdbc driver file in classpath
2) Check your cocoon.xconf
for ... for pool configuration
3) See access.log for message like this
 DEBUG   (2002-03-26) 17:04.45:713   [access] (Unknown-URI)
Unknown-thread/Cocoon
Servlet: Trying to load class: org.gjt.mm.mysql.Driver

- Original Message -
From: "Derek Hohls" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 4:43 PM
Subject: Database connection problem


> When trying to connect to a mySQL database, I get:
>
> Could not get the datasource java.sql.SQLException: There are no
> connections in the pool, check your settings.
>
> I already have the setting for the driver in the web.xml;
> 
>   load-class
>   org.gjt.mm.mysql.Driver
> 
>
> I can also connect to, and 'see' the database with another,
front-end
> program.
>
> In fact, the connection AND database were working previously - does
> anyone know if a mod_rewrite for the site in the Apache server would
> affect this??  (seems strange, but thats the only major change that
has
> happened on the server that I know about) I have also checked the
> connection without using the VirtualHost and get the same results...
>
> Any ideas as to what else to check?
>
> Thanks
> Derek
>
>
-
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


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

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


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

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

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

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




Re: Database connection problem

2002-03-26 Thread Derek Hohls

1) The jdbc driver file is loaded under:  WEB-INF/classes/

2) The xconf file contains:

  

  
  true
  jdbc:mysql://localhost:3306/mydbase
  foo
  bar
 
  

3) I am not sure what you mean by "access.log" - I only have 
cocoon.log and root.log in my WEB-INF/logs directory?

The first enty in the cocoon.log has the line:

FATAL_E (2002-03-26) 15:31.06:158   [cocoon  ]
 (Unknown-URI) Unknown-thread/JdbcConnectionPool: 
Excalibur could not create any connections.  
Examine your settings to make sure they are correct.  
Make sure you can connect with the same settings on your machine.

The root.log has no entries in it at all...


Thanks for responding - any comments on the above??

Derek

>>> [EMAIL PROTECTED] 26/03/2002 05:11:18 >>>
1) You must have jdbc driver file in classpath
2) Check your cocoon.xconf
for ... for pool configuration
3) See access.log for message like this
 DEBUG   (2002-03-26) 17:04.45:713   [access] (Unknown-URI)
Unknown-thread/Cocoon
Servlet: Trying to load class: org.gjt.mm.mysql.Driver

- Original Message -
From: "Derek Hohls" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 4:43 PM
Subject: Database connection problem


> When trying to connect to a mySQL database, I get:
>
> Could not get the datasource java.sql.SQLException: There are no
> connections in the pool, check your settings.
>
> I already have the setting for the driver in the web.xml;
> 
>   load-class
>   org.gjt.mm.mysql.Driver
> 
>
> I can also connect to, and 'see' the database with another,
front-end
> program.
>
> In fact, the connection AND database were working previously - does
> anyone know if a mod_rewrite for the site in the Apache server would
> affect this??  (seems strange, but thats the only major change that
has
> happened on the server that I know about) I have also checked the
> connection without using the VirtualHost and get the same results...
>
> Any ideas as to what else to check?
>
> Thanks
> Derek
>
>
-
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


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

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


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

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




Re: [Announcement] Apache Cocoon 2.0.2 Release

2002-03-26 Thread Derek Hohls

Wasn't this is:

> *) New implementation of the sitemap engine based on an evaluation
tree.
> This provides super-fast load times (no more compilation), and a
slight gain
> in request processing speed compared to the compiled engine thanks to
the
> HotSpot VM. [SW]

or, at least, that was what it seemed to me?

>>> [EMAIL PROTECTED] 27/03/2002 12:51:13 >>>
Congratulations to all for all the work, and to Carsten for putting it
together!

I noticed there was no mention of the interpreted sitemap in the
announcement. Was it on purpose to not confuse people?

Ovidiu

On Tue, 26 Mar 2002 09:51:19 +0100, "Carsten Ziegeler"
<[EMAIL PROTECTED]> wrote:

> Apache Cocoon 2.0.2 Released
> 
> 
>The Apache Cocoon team is proud to announce the new release
>of Apache Cocoon.
> 
> 
> Apache Cocoon is an XML framework that raises the usage of
> XML and XSLT technologies for server applications to a new
level.
> Designed for performance and scalability around pipelined SAX
> processing, Cocoon offers a flexible environment based on the
> separation of concerns between content, logic and style.
> A centralized configuration system and sophisticated caching
> top this all off and help you to create, deploy and maintain
> rock-solid XML server applications.
> 
> 
> 
> Today, most web engineers consider XML as the key for an
improved
> web model and web site managers see XML as a way to reduce costs
> and ease production. In an era where services rather than
software
> will be key for economic success, a better and less expensive
model
> for web publishing will be a winner, especially one based on
open
> standards.
> 
> 
> 
> This release of Cocoon is a maintainance release focusing on
> improved performance and robustness. In addition some bugs were
> fixed and new features were added. See the following changes
list
> for more information.
> 
> 
> 
> For more information about Apache Cocoon 2.0.2, please go to
> http://xml.apache.org/cocoon 
> 
> Changes with Apache Cocoon 2.0.2
> 
> *) New BootstrapServlet to allow Cocoon torun in non-compliant
servlet
> engines that don't handle correctly servlet contexts. This servlet
builds a
> class loader with the contents of WEB-INF/classes and WEB-INF/lib
and
> manages resource resolution. [SW]
> 
> *) Updated error reporting to add line, column and location
attributes
> specified in SAXException and TransformerException. The error page in
the
> webapp examples shows the new extra info. [NKB]
> 
> *) Added new "gump" target to the build, to be used as a general test
of
> Cocoon code. To be used by Gump. It calls docs, javadocs, test and
package.
> Gump descriptor has been modified to use it; now we also have
automatic
> javadoc creation. [NKB]
> 
> *) cocoon.xconf is moved in WEB-INF for security reasons. The
documentation
> has been updated to reflect the change. [NKB]
> 
> *) Partial commit of new samples structure. Samples go in samples/
dir with
> theit own sitemap. All scratchpad samples that are in the samples/
subdir
> are copied in webapp samples automatically by installscratchpadwar
target.
> [NKB]
> 
> *) New "set-content-length" configuration for FOPSerializer to allow
> streaming of large PDFs (default is true for backwards
compatibility). [SW]
> 
> *) The docs now have svg stuff removed and these enhancements: menu
items
> are in text, page title is in text, pages have new clean style
courtesy of
> Stefano, added Stefano's explanation on how to write mails, the docs
are
> generated with the TreeProcessor, the docs generation uses JispStore.
[NKB]
> 
> *) Added new targets: "installwar" asks for the directory in which to
put
> the war and makes it. "installscratchpadwar" does the same but
incudes
> scratchpad libs ans samples. [NKB]
> 
> *) New POI HSSF Serializer; outputs to the .xls (not .xsl) file
format.
> Added samples as legacy file format support. [NKB]
> 
> *) New module structure for input, output, and database specifica in
> scratchpad. Thus it is possible to write generic components for one
task and
> replace input and output dynamically. As an example a generic version
of a
> WildcardMatcher is provided as well as a sample action that uses it.
> DatabaseActions in scratchpad use this structure as well. [CH]
> 
> *) Moved ModularDatabase*Actions to new home in scratchpad and
reworked
> them. They now use new module structure. For sample application, copy
mod-db
> directory to cocoon/mount. [CH]
> 
> *) Changed jdbc datasource to ResourceLimitingJdbcDataSource because
it does
> not require to be able to contact the datasource on startup. Thus
race
> condition with HSQLDB startup is eliminated. [CH]
> 
> *) Added new Jisp based persistence cache, to improve (1) performance
and
> (2) to solve the problem with long filenames on Windows OS flavours.
[VG,GF]
> 
> *) Removed explicit System.gc() call from StoreJanitor, because this
caused
> performance leaks. [GF]

Re: [Announcement] Apache Cocoon 2.0.2 Release

2002-03-26 Thread Ovidiu Predescu

Congratulations to all for all the work, and to Carsten for putting it
together!

I noticed there was no mention of the interpreted sitemap in the
announcement. Was it on purpose to not confuse people?

Ovidiu

On Tue, 26 Mar 2002 09:51:19 +0100, "Carsten Ziegeler" <[EMAIL PROTECTED]> wrote:

> Apache Cocoon 2.0.2 Released
> 
> 
>The Apache Cocoon team is proud to announce the new release
>of Apache Cocoon.
> 
> 
> Apache Cocoon is an XML framework that raises the usage of
> XML and XSLT technologies for server applications to a new level.
> Designed for performance and scalability around pipelined SAX
> processing, Cocoon offers a flexible environment based on the
> separation of concerns between content, logic and style.
> A centralized configuration system and sophisticated caching
> top this all off and help you to create, deploy and maintain
> rock-solid XML server applications.
> 
> 
> 
> Today, most web engineers consider XML as the key for an improved
> web model and web site managers see XML as a way to reduce costs
> and ease production. In an era where services rather than software
> will be key for economic success, a better and less expensive model
> for web publishing will be a winner, especially one based on open
> standards.
> 
> 
> 
> This release of Cocoon is a maintainance release focusing on
> improved performance and robustness. In addition some bugs were
> fixed and new features were added. See the following changes list
> for more information.
> 
> 
> 
> For more information about Apache Cocoon 2.0.2, please go to
> http://xml.apache.org/cocoon
> 
> Changes with Apache Cocoon 2.0.2
> 
> *) New BootstrapServlet to allow Cocoon torun in non-compliant servlet
> engines that don't handle correctly servlet contexts. This servlet builds a
> class loader with the contents of WEB-INF/classes and WEB-INF/lib and
> manages resource resolution. [SW]
> 
> *) Updated error reporting to add line, column and location attributes
> specified in SAXException and TransformerException. The error page in the
> webapp examples shows the new extra info. [NKB]
> 
> *) Added new "gump" target to the build, to be used as a general test of
> Cocoon code. To be used by Gump. It calls docs, javadocs, test and package.
> Gump descriptor has been modified to use it; now we also have automatic
> javadoc creation. [NKB]
> 
> *) cocoon.xconf is moved in WEB-INF for security reasons. The documentation
> has been updated to reflect the change. [NKB]
> 
> *) Partial commit of new samples structure. Samples go in samples/ dir with
> theit own sitemap. All scratchpad samples that are in the samples/ subdir
> are copied in webapp samples automatically by installscratchpadwar target.
> [NKB]
> 
> *) New "set-content-length" configuration for FOPSerializer to allow
> streaming of large PDFs (default is true for backwards compatibility). [SW]
> 
> *) The docs now have svg stuff removed and these enhancements: menu items
> are in text, page title is in text, pages have new clean style courtesy of
> Stefano, added Stefano's explanation on how to write mails, the docs are
> generated with the TreeProcessor, the docs generation uses JispStore. [NKB]
> 
> *) Added new targets: "installwar" asks for the directory in which to put
> the war and makes it. "installscratchpadwar" does the same but incudes
> scratchpad libs ans samples. [NKB]
> 
> *) New POI HSSF Serializer; outputs to the .xls (not .xsl) file format.
> Added samples as legacy file format support. [NKB]
> 
> *) New module structure for input, output, and database specifica in
> scratchpad. Thus it is possible to write generic components for one task and
> replace input and output dynamically. As an example a generic version of a
> WildcardMatcher is provided as well as a sample action that uses it.
> DatabaseActions in scratchpad use this structure as well. [CH]
> 
> *) Moved ModularDatabase*Actions to new home in scratchpad and reworked
> them. They now use new module structure. For sample application, copy mod-db
> directory to cocoon/mount. [CH]
> 
> *) Changed jdbc datasource to ResourceLimitingJdbcDataSource because it does
> not require to be able to contact the datasource on startup. Thus race
> condition with HSQLDB startup is eliminated. [CH]
> 
> *) Added new Jisp based persistence cache, to improve (1) performance and
> (2) to solve the problem with long filenames on Windows OS flavours. [VG,GF]
> 
> *) Removed explicit System.gc() call from StoreJanitor, because this caused
> performance leaks. [GF]
> 
> *) Added support for input type=image buttons [TC]
> 
> *) Deprecated the old cocoon-action=ACTION syntax in favor of the new
> cocoon-action-[ACTION]=whatever. Still supported though. [TC]
> 
> *) Added encodeURL transformer for encoding URIs. [BH]
> 
> *) Using migrated XPath Processor from Avalon Excalibur instead of own
> component. [CZ]
> 
> *) Fi

XSL-question: sort with parameter

2002-03-26 Thread Axel Honfi

Hi!

I passed a parameter to a stylesheet and I can get the value with
.

But I need to sort data by the value of the parameter like

.

But with this nothing happens and all other forms I tried also failed.

Does anyone know how to work this?

Thanks a lot

Axel

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

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




RE: build error: cocoon-2.0.2, jdk-1.4, Win2000

2002-03-26 Thread Faulkner, Perry

Hi Neil,

I've had the same problem. I don't completely understand the build.xml, but
I assume that it looks for the "java.sql.Savepoint" class, in the classpath.
I've checked it and that should be the case with my setup, same as you! It
then replaces JDBC3_START and _END in any source, I suppose, with "". That
would remove the comments around the JDBC 3.0 methods in EsqlConnection.
However, there aren't any JDBC3_xxx tags in any source files, so maybe it's
an oversight, or as I said, I don't understand the functionality.

Anyway, manually removing the offending comments in EsqlConnection.java (the
one in %COCOON_HOME%\src\java\org\apache\...) got me past the build errors
and 2.0.2 now runs under Tomcat 4.0.3 and JDK 1.4 - mind you Esql could be
broken, I'll discover that later!

Perry

-Original Message-
From: neil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 27 March 2002 14:09
To: [EMAIL PROTECTED]
Subject: build error: cocoon-2.0.2, jdk-1.4, Win2000


In a dos box:
  set PATH=C:\WINNT\system32;C:\WINNT
  set CLASSPATH=
  build clean
  build

First error:

C:\Neil\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\language\
mark
up\xsp\EsqlConnection.java:66: class
org.apache.cocoon.components.language.marku
p.xsp.EsqlConnection must be declared abstract. It does not define int
getHoldability() from interface java.sql.Connection.
public class EsqlConnection implements Connection {

followed by 11 more.

An earlier post:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101622718100348&w=2
suggested to ensure that no older jdk's are in the PATH or CLASSPATH,
but I think I've taken care of that.

Some s I've added to build.xml seem to show that jdbc3.present is
properly set:
filter-jdbc:
nofilter-jdbc:
 [echo] in nofilter-jdbc



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

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

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

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




build error: cocoon-2.0.2, jdk-1.4, Win2000

2002-03-26 Thread neil

In a dos box:
  set PATH=C:\WINNT\system32;C:\WINNT
  set CLASSPATH=
  build clean
  build

First error:

C:\Neil\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\language\
mark
up\xsp\EsqlConnection.java:66: class
org.apache.cocoon.components.language.marku
p.xsp.EsqlConnection must be declared abstract. It does not define int
getHoldability() from interface java.sql.Connection.
public class EsqlConnection implements Connection {

followed by 11 more.

An earlier post:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101622718100348&w=2
suggested to ensure that no older jdk's are in the PATH or CLASSPATH,
but I think I've taken care of that.

Some s I've added to build.xml seem to show that jdbc3.present is
properly set:
filter-jdbc:
nofilter-jdbc:
 [echo] in nofilter-jdbc



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

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




RE: related problem?

2002-03-26 Thread Sreedhar Chintalapaty
Title: Glacier



Found the answer to my problem in the news 
group archives, actually. I was looking for nearly a day without knowing -what- 
I should search for; finally today it clicked! (veterans, please don't get 
annoyed, I am new to the list too :))
 
After duly 'importing' the Util style sheet, 
I did the following in my logic sheet:

  
      
      
  
      
  
      
  SingerHelper.getAllSingers().asXML()
      
  xsp:expr>
      
  util:expr>
      util:include-expr>
  xsl:template>
I 
guess Cocoon sees SingerHelper.getAllSingers().asXML() 
as XML-to-be-parsed only if  it is used to fire off SAX 
events!
 
Sreedhar

  -Original Message-From: Sreedhar Chintalapaty 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, March 26, 2002 7:26 
  PMTo: Cocoon UsersSubject:  related 
  problem?
  Hi,
   
  This is going to be rather long-winded, 
  please bear with me. :)
   
  I have a java class that returns a result 
  set as XML. I am calling it in a logic sheet like so:
  
 
     
    
SingerHelper.getAllSingers().asXML() 
    xsp:expr>    
    Singers> 
xsl:template>
  The value of 
  SingerHelper.getAllSingers().asXML() is
      
  
      
  
      
  
      
  Singers>
   
  I have a singers.xsl style sheet that 
  takes the ... and formats them as a table. The 
  matcher in sitemap applies the style sheet:
  
 
     
     
     
map:match>
   
  My problem is: the stuff returned within 
   is coming not transformed by singers.xsl, but the the XML 
  fragment Singers> is. How come?
  
  

This is a song written and set to music by >            
Nametd>   Borntd>   Diedtd>     tr>    
GHItd>   1900-10-29td>   1980-11-09td>     tr>     table> article>    I would greatly appreciate -any- help in solving this, I cannot move forward in my project without getting this done!   Best Regards, Sreedhar Chintalapaty __ A computer is like an Old Testament god, with a lot of rules and no mercy - Joseph Campbell  

Re: 4 Suite Server


Anthony W. Marino wrote:
> Anyone have any experiences with "4 Suite Server "http://fourthought.com"; 
> compared to cocoon2?

They were developing a fairly nippy XSLT engine last I saw, but I've not
tried the recent 4SS releases.  I think they are at a similar level of
"working the bugs out and tuning for performance" to Cocoon 2.  How things
are going to shake out will be interesting to see.

-- 
MJR ,
| Q. Do you need a net-based application developing, 
|or advice and training about web technology?
| A. I suggest you try http://www.luminas.co.uk/

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

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




RE: C2.0.2: ClassCastException


Try deleting work directory. Might help, I'm not sure what you have got
(you cut the stacktrace too short)

Vadim

> From: Jozsa Kristof [mailto:[EMAIL PROTECTED]]
> 
> Hi,
> 
> I've downloaded Cocoon 2.0.2, compiled, replaced the libs in my
project and
> deployed successfully. It works, however, I keep getting spammed in
the
> error.log with messages like these:
> 
> ERROR   (2002-03-26) 14:13.28:463   [core.manager] (/list/mainlist)
> SocketListener-0/XMLResourceBundle: cannot obtain XPathProcessor
> java.lang.ClassCastException:
> org.apache.cocoon.components.xpath.XPathProcessorImpl
> 
> followed by a full trace. What causes this, and how can I get rid of
that?
> 
> thanks,
> Christopher
> --
> .Digital.Yearning.for.Networked.Assassination.and.Xenocide
> 


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

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




RE: Turning XSPs into Generators (Why?)


> From: Artur Bialecki [mailto:[EMAIL PROTECTED]]
> 
> Can you explain how this makes things faster, I assume
> XSPs are not convereted to Java and complied each time
> I access given XSP. Is the performance difference in
> sitemap processing, cache lookups, etc.

One is serverpages generator overhead (which is not huge), and another
is that the XSP pages are compiled into poolable generators, and pool is
created with default values for minimum and maximum sizes. If you want
to size pool for your particular XSP, you turn it into generator.

> If so how much.

Measure and tell us.

Vadim

 
> Thanks,
> 
> Artur...
> 
> > -Original Message-
> > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 26, 2002 2:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Turning XSPs into Generators
> >
> >
> > > From: Michael Zehrer [mailto:[EMAIL PROTECTED]]
> > >
> > > Hi list,
> > >
> > > reading the Performance Guide Draft, it sems to me that turning
XSPs
> > > into Generators is a good idea, is there some general way how to
do
> > > this? Any tips, templates?
> >
> > Once you run XSP once, Cocoon will compile them into Java classes
(see
> > tomcat/work//org/apache/cocoon/www/my_xsp.class). After that,
add
> > generator to the sitemap:
> >
> > 
> >
> > And use it:
> >
> > 
> >
> > Vadim
> >
> > >
> > > Cheers, Michael


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

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




RE: [C2] Sitemap questions


> From: Erwin [mailto:[EMAIL PROTECTED]]
> 
> Hello,
> 
...
> 
> I downloaded the latest release (2.0.2) and have studied the sitemap
dtd
> and the sitemap schema
> dtd: src/documentation/xdocs/dtd/sitemap-v02.dtd
> schema: /src/documentation/xdocs/drafts/sitemap-working-draft.xsd
> but I havent found an answer to my questions.
> 
> 
> Question 1
> 
> In the dtd I found the following:
>  | map:transform | map:serialize | map:read | map:aggregate | map:act |
> map:match)*>
> 
> Do I misinterpret the dtd if I read it as follows (without the
> map-namespace): a match element can have multiple generate child
elements
> as well as multiple serialize elements?

Only one generate and serialize child directly nested into match is
allowed.


> (I also looked it up in the schema, but imho the schema is not yet
> complete)
> If I read it correctly, then could someone give me an example of how
you
> could have multiple generate elements as direct children of a match
> element. (or this it a somewhat unlucky formulation due to the
limitations
> of dtd?).

I would say that this is dtd limitations plus the fact that dtd defines
just some of the sitemap rules, and plus the fact that this dtd is not
up to date.

 
> Question 2
> 
> Also from the dtd:
> 
> 

This one is also not correct. It should be something like:




> (the schema formulation is equivalent - not quite 100% the same, but
close
> enough for my question)
> 
> As far as I have understood everything, the actual pipeline is defined
> within the match-elements (although the element-names suggest
otherwise).

See above. 


> So my question is: why do the match-elements have to be children of
the
> pipeline element and can't they be children of the pipelines-element?
I
> see no use for such an architecture, aside from having different
> error-handlers per pipeline (but that is the only use is see for
having
> this construction). Or is this defined in this way, because of these
error
> handlers?

Yes. Also, map:pipeline has internal-only attribute.

 
> Also, if you have two pipeline elements as children of the
> pipelines element and inside each pipeline element you have a match
for
> e.g. index.html, then what choice does C2 make? Does it choes the
first
> one defined or what is its behaviour?

In the current implementation, it will execute sitemap linearly till
complete pipeline is being assembled. If first match does not have
serializer (pipeline with generator must always be completed with
serializer), it will proceed and execute second match also.

Vadim
 
> That are my questions for now.
> I would also like to thank everybody in advance.


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

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




RE: [C2] DeltaTimeCacheValidity?


> From: Rune Sandnes [mailto:[EMAIL PROTECTED]]
> 
> I have set up caching in an XSP page with several ESQL statements.
> One version bases the CacheValidity object on a timestamp that it gets
from
> the database, like this:
> 
>  public CacheValidity generateValidity() {
>   return new TimeStampCacheValidity(documentTimestamp);
>  }
> 
> 
> But in some cases I just want to base the caching on a simple timeout,
like
> this:
> 
>  public CacheValidity generateValidity() {
>   return new DeltaTimeCacheValidity(10);
>  }
> 
> If I am not mistaken, the ESQL statements will be performed anyway in
both
> cases.

You are mistaken. XSP will be executed only when returned validity is
null or not valid anymore (for the same key), or this is the first
execution.

Vadim

> Is there any way to trigger the cache mechanism before the ESQL
statements to
> save computing time in the second example?
> 
> Regards,
> Rune,
> Trondheim,
> Norway
> 


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

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




related problem?

Title: Glacier



Hi,
 
This is going to be rather long-winded, 
please bear with me. :)
 
I have a java class that returns a result 
set as XML. I am calling it in a logic sheet like so:

  
      
      
  SingerHelper.getAllSingers().asXML()
      xsp:expr>    
      Singers>
  xsl:template>
The value of 
SingerHelper.getAllSingers().asXML() is
    

    

    

    
Singers>
 
I have a singers.xsl style sheet that takes 
the ... and formats them as a table. The matcher 
in sitemap applies the style sheet:

  
      
      
      
  map:match>
 
My problem is: the stuff returned within 
 is coming not transformed by singers.xsl, but the the XML 
fragment Singers> is. How come?


  
  
This is a song written and set to music by >            
Nametd>   Borntd>   Diedtd>     tr>    
GHItd>   1900-10-29td>   1980-11-09td>     tr>     table> article>    I would greatly appreciate -any- help in solving this, I cannot move forward in my project without getting this done!   Best Regards, Sreedhar Chintalapaty __ A computer is like an Old Testament god, with a lot of rules and no mercy - Joseph Campbell  

RE: Turning XSPs into Generators (Why?)


Can you explain how this makes things faster, I assume
XSPs are not convereted to Java and complied each time
I access given XSP. Is the performance difference in
sitemap processing, cache lookups, etc. If so how much.

Thanks,

Artur...

> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 26, 2002 2:11 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Turning XSPs into Generators
> 
> 
> > From: Michael Zehrer [mailto:[EMAIL PROTECTED]]
> > 
> > Hi list,
> > 
> > reading the Performance Guide Draft, it sems to me that turning XSPs
> > into Generators is a good idea, is there some general way how to do
> > this? Any tips, templates?
> 
> Once you run XSP once, Cocoon will compile them into Java classes (see
> tomcat/work//org/apache/cocoon/www/my_xsp.class). After that, add
> generator to the sitemap:
> 
> 
> 
> And use it:
> 
> 
> 
> Vadim
> 
> > 
> > Cheers, Michael
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: XML namespaces and result of RequestGenerator


Hi Matthieu,

I don't find this a silly question, because I have exactly this problem and
I'm searching a solution for hours. Please tell me the solution.

Best regards
- Volker -

-Original Message-
From: Matthieu Benéteau [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 21. März 2002 19:10
To: Cocoon-Users
Subject: RE: XML namespaces and result of RequestGenerator


Sorry, this was a silly question, and I found the answer in the archives.
My mistake.

Matthieu



> -Message d'origine-
> De : Matthieu Benéteau [mailto:[EMAIL PROTECTED]]
> Envoyé : jeudi 21 mars 2002 18:46
> À : Cocoon-Users
> Objet : XML namespaces and result of RequestGenerator
>
>
> Hi,
>
> I have a little but annoying problem with the result of the
> RequestGenerator : during the XSL transformation I can't match
> any of the request elements (I can't even match the root
> "request" element).
>
>
> For instance :
>
>   
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>
> 
>   
> 
>  select="request/requestParameters/parameter"/>
> 
>   
> 
>
> 
>   inside parameter body
> 
>
>   
>
> will result in an empty element : .
>
>
> But on the other hand, if I use the following template :
>
> 
> 
>   
> 
>   
> 
>
> the "one" element contains the whole request.
>
>
> I suppose it's a namespace problem. The transformer doesn't seem
> to match elements with the
> xmlns="http://xml.apache.org/cocoon/requestgenerator/2.0";
> namespace declaration.
>
> Has anyone an idea ?
>
>
> Matthieu
>


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

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


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

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




RE: 4 Suite Server


> -Original Message-
> From: Anthony W. Marino [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, March 26, 2002 4:32 PM
> To: '[EMAIL PROTECTED]'
> Subject: 4 Suite Server
> 
> 
> Anyone have any experiences with "4 Suite Server 
> "http://fourthought.com"; 
> compared to cocoon2?


No, but if their site is any indication of its performance,
I'm not interested.  The 4Suite.org site is the official home
for the software, but it is painfully slow.


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

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




Re[2]: Parsing a Request Stream


Hello Jeremy,

Thursday, March 21, 2002, 11:20:25 AM, you wrote:

JQ> At 2:22 pm +0100 19/3/02, Michael Raffenberg wrote:
>>Hi,
>>
>>i like to receive a post input stream with the following sitemap
>>definitions:
>> 
>>   
>> 
>>   
>>   
>> 
>>This works ok.
>>The input will contain some xml-data with a dtd.
>>Is it possible to get this input parsed again the dtd?

JQ> Not sure, you can validate it against a Schematron though.

JQ> Look in  in CVS:

JQ> xml-cocoon2/src/scratchpad/webapps/mount/editor/editor.xmap

>>How can i track down any errors if the input is not valid?

JQ> Valid, or well formed?

JQ> There is little you can do to catch mal-formed XML in a form field using
JQ> the StreamGenerator, it was designed for inter-application usage, the
JQ> assumption was that all XML transferred, would already be well-formed..

>>After parsing the input, i like to transform it with some
>>xslt-stylesheets, how do i have to configure the sitemap for this?

JQ>  
JQ>
JQ>  
JQ>
-->>  
JQ>
JQ>  

JQ> Hope this helps

JQ> regards Jeremy

Sorry for this stupid question again, but i didn't find a solution right
now.
All i wanna do is to check an xml-file (or input through the
StreamGenerator) against its DTD.
Is the Parser configuration in the cocoon.xconf the right place to
start ()?

Thanks in advance

-- Michael



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

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




4 Suite Server


Anyone have any experiences with "4 Suite Server "http://fourthought.com"; 
compared to cocoon2?

Thank You,
Anthony

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

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




RE: [C2] Sitemap questions


> Also, if you have two pipeline elements as children of the
> pipelines element and inside each pipeline element you have a 
> match for
> e.g. index.html, then what choice does C2 make? Does it choes 
> the first
> one defined or what is its behaviour?

C2 takes first in the list

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

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




[C2] Sitemap questions



Hello,

for my thesis I have studied Cocoon 2 and am now writing a chapter about
it. At the moment I am writing a section about the sitemap, but I still
have some (theoretical) questions about it.
(as this is my first post to the list, I hope this is the right place to
ask)

I downloaded the latest release (2.0.2) and have studied the sitemap dtd
and the sitemap schema
dtd: src/documentation/xdocs/dtd/sitemap-v02.dtd
schema: /src/documentation/xdocs/drafts/sitemap-working-draft.xsd
but I havent found an answer to my questions.


Question 1

In the dtd I found the following:


Do I misinterpret the dtd if I read it as follows (without the
map-namespace): a match element can have multiple generate child elements
as well as multiple serialize elements?
(I also looked it up in the schema, but imho the schema is not yet
complete)
If I read it correctly, then could someone give me an example of how you
could have multiple generate elements as direct children of a match
element. (or this it a somewhat unlucky formulation due to the limitations
of dtd?).


Question 2

Also from the dtd:


(the schema formulation is equivalent - not quite 100% the same, but close
enough for my question)

As far as I have understood everything, the actual pipeline is defined
within the match-elements (although the element-names suggest otherwise).
So my question is: why do the match-elements have to be children of the
pipeline element and can't they be children of the pipelines-element? I
see no use for such an architecture, aside from having different
error-handlers per pipeline (but that is the only use is see for having
this construction). Or is this defined in this way, because of these error
handlers?

Also, if you have two pipeline elements as children of the
pipelines element and inside each pipeline element you have a match for
e.g. index.html, then what choice does C2 make? Does it choes the first
one defined or what is its behaviour?



That are my questions for now.
I would also like to thank everybody in advance.



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

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




RE: XSL question


> As I've said
> before, you can use an action to get params from whereever 
> you need then
> expose them to sitemap (using returning map in an action). 
> Then you can
> simply set those params in your trasformer call:
> 
> 
>   
> 
> 
> --
> Konstantin Piroumian 
> [EMAIL PROTECTED]

can you give a complete example of how to do that?

I have a similar issue, I need to pass parameters from the request into the
stylesheet.

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

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




Re: breadcrumb navigation


>If you mean to show a "navigation-path" like subdirectories, I would
>enable
>sitemap-parameters in the XSLT-Transformer and use the request-url of
>the
>user as name(I think they did the same at yahoo changing the '_' to a
>blank
>space).
>
>Maybe that helped you
>
>Axel


>I included the breadcrumb stylesheet and the sitemap that I use for
>cocooncenter.org. It's not documented, but maybe it helps.
>
>Greetings,
>Andreas


fantastich! vielen Dank, Charles







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

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




RE: installing problems cocoon 2.0.1


RTFM http://xml.apache.org/cocoon/installing/index.html

Vadim

> From: Diego Lluna [mailto:[EMAIL PROTECTED]]
> 
> Dear friends,
> 
> I'm stuck trying to install cocoon 2.0.1.
> 
> The details are:
> 
> W2000 professional
> tomcat 4.0.3 installed and working fine
> cocoon copied under webapps directory
> listening to 8080 port
> .war file copied and automatically decompressed under webapps
> JAVA_HOME path set ok to jdk1.3
> what I get is:
> > type Exception report
> > message Internal Server Error
> > description The server encountered an internal error (Internal
Server Error)
> that prevented it from fulfilling this request.
> > exception
> > javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
threw
> exception
> > at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:935)
> > ...
> 
> anybody can help?
> 
> Thanks many
> 
> --
> Diego Lluna Berlato
> Centro de Tecnologías de la Información
> 
> Instituto Catalán de Tecnología
> C/Ciutat de Granada, 131 - 08018 Barcelona
> Tel/ 0034.93.485.85.85
> Fax/ 0034.93.485.85.88
> http://www.ictnet.es


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

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




RE: Cannot install: latest snapshot, Java 1.4, Tomcat 4.0.3LE


DELETE WORKING DIRECTORY

PS: RTFM http://xml.apache.org/cocoon/installing/index.html

Vadim

> -Original Message-
> From: Rob Jellinghaus [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 26, 2002 2:36 AM
> To: [EMAIL PROTECTED]
> Subject: Cannot install: latest snapshot, Java 1.4, Tomcat 4.0.3LE
> 
> I am trying to install and run Cocoon under JDK 1.4 with Tomcat
4.0.3LE for
> Java 1.4.
> 
> I am able to download and build the latest Cocoon development snapshot
> (xml-cocoon2_20020326051833.tar.gz), doing "build dist-bin".
> 
> I then copy cocoon.war to %CATALINA%/webapps, and xml-apis.jar and
> xercesImpl-2.0.0.jar to %CATALINA%/lib (otherwise I get an "class
> org.w3c.dom.ranges.DocumentRange not found" error when starting).
> 
> I start Tomcat, and it expands cocoon.war.  I go to
> http://localhost:8080/cocoon and I get:
> 
> Cocoon 2 - Internal server error
> type fatal
> message Error compiling sitemap
> description org.apache.cocoon.ProcessingException: Error compiling
sitemap:
> java.lang.NoSuchFieldError: manager
> 
> Why am I getting this error?
> 
> (I'm not even going to mention all the troubles I had trying to get
Cocoon
> 2.0.1 to work under Java 1.4)
> 
> I rolled back to Java 1.3.1 and Tomcat 4.0.1 and Cocoon 2.0.1 (built
from
> source) and it works.  Still, it is disappointing that I was totally
unable
> to get Cocoon to work under the latest version of Java.  Will Cocoon
2.0.2
> improve matters?  Or was there some other way to deal with this
> "NoSuchFieldError" I encountered?
> 
> Thanks very much for any hints.
> Cheers,
> Rob
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


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

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




RE: Problems with Cocoon 2.0.2


Two advices:

1. use plain text emails
2. RTFM http://xml.apache.org/cocoon/installing/index.html

Vadim

-Original Message-
From: Mike Ahlers [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 26, 2002 6:44 AM
To: [EMAIL PROTECTED]
Subject: Re: Problems with Cocoon 2.0.2

Tx, that solved it.
- Original Message - 
From: Diego Lluna 
To: [EMAIL PROTECTED] 
Sent: Tuesday, March 26, 2002 12:41 PM
Subject: RE: Problems with Cocoon 2.0.2

Hi,
 
I was having a similar problem a while ago. My versions do not exactly
match, still,
I would try this:
 
Then you have to copy the batik...jar and xml-apis.jar file to the
common/lib directory and restart tomcat again.
 
it worked for me, and i couldn't find it in the documentation.
 
Diego
-Mensaje original-
De: Mike Ahlers [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 26 de marzo de 2002 12:31
Para: [EMAIL PROTECTED]
Asunto: Problems with Cocoon 2.0.2
 
Hi,
 
I use java 1.4, Tomcat 4.0.3 and Cocoon 2.0.2. Copied the cocoon.war to
webapps and was hoping of a smooth lift-off. Error I am getting is:
 
org.apache.cocoon.ProcessingException: Error compiling sitemap:
java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGPaint
at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGPaint
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCla
ssLoader.java:1631)
at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader
.java:926)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1360)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1243)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
[ -- snipped rest of stack-trace -- ]
 
Do I miss something here?
 
Thanks in advance,
Mike


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

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




RE: Turning XSPs into Generators


> From: Michael Zehrer [mailto:[EMAIL PROTECTED]]
> 
> Hi list,
> 
> reading the Performance Guide Draft, it sems to me that turning XSPs
> into Generators is a good idea, is there some general way how to do
> this? Any tips, templates?

Once you run XSP once, Cocoon will compile them into Java classes (see
tomcat/work//org/apache/cocoon/www/my_xsp.class). After that, add
generator to the sitemap:



And use it:



Vadim

> 
> Cheers, Michael


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

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




RE: problems installing cocoon 2.0.1


Thanks to Carsten who uploaded new website... Now I can say:

RTFM: http://xml.apache.org/cocoon/installing/index.html

It has all you need to know about tomcat 4.0.3

Vadim

> -Original Message-
> From: Diego Lluna [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 26, 2002 5:12 AM
> To: [EMAIL PROTECTED]
> Subject: problems installing cocoon 2.0.1
> 
> 
> Dear friends,
> 
> I'm stuck trying to install cocoon 2.0.1.
> 
> The details are:
> 
> W2000 professional
> tomcat 4.0.3 installed and working fine
> cocoon copied under webapps directory
> listening to 8080 port
> .war file copied and automatically decompressed under webapps
> JAVA_HOME path set ok to jdk1.3
> what I get is:
> > type Exception report
> > message Internal Server Error
> > description The server encountered an internal error (Internal
Server Error)
> that prevented it from fulfilling this request.
> > exception
> > javax.servlet.ServletException: Servlet.init() for servlet Cocoon2
threw
> exception
> > at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:935)
> > ...
> 
> anybody can help?
> 
> Thanks many
> 
> --
> Diego Lluna Berlato
> Centro de Tecnologías de la Información
> 
> Instituto Catalán de Tecnología
> C/Ciutat de Granada, 131 - 08018 Barcelona
> Tel/ 0034.93.485.85.85
> Fax/ 0034.93.485.85.88
> http://www.ictnet.es
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


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

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




cocoon-users@xml.apache.org





Has anyone ever seen THIS TAG :
 
/C:/final 
latest/cocoon/docs/samples/showroom1/showroomXSP2.xsldependency> 
 
this is output.
The file being fed into the serverpages generator has a namespace tag 
 : apparelshow 
the namespace is defined in xconf (builtin logicsheet & works) whose 
href="file://C:/final 
latest/cocoon/docs/samples/showroom1/showroomXSP2.xsl
 
- this href is displayed as value of dependency element 
above !! 
 
nothing else displayed !!
 
Q1. Does builtin logicsheet namespace have to be displayed in xsp:page tag 
for serverpage generator to get it ? 
If I do this i get the above dependency tag(no error no other 
output) , if I dont the namespace dont get resolved but whole file 
output.
 
Pls if anyone has any ideas.
 
Sandhu


Re: Include Pipeline output in XSP.


Dear Roman / Vadim

Thanks for the replies - yes could feed xindice o/p into XSP pipeline - but
only the namespace is not getting resolved in the XSP pipeline - which
brings me to the next question :

Has anyone ever seen THIS :

http://apache.org/xsp";
xmlns:apparelshow="http://www.apparelxml.net/apparelshow";>/C:/final
latest/cocoon/docs/samples/showroom1/showroomXSP2.xsl

this is output.
The file being fed into the serverpages generator has a namespace tag  :
apparelshow
the namespace is defined in xconf (builtin logicsheet & works) whose
href=file://C:/final latest/cocoon/docs/samples/showroom1/showroomXSP2.xsl

- this href is displayed as value of dependency element above !!

nothing else displayed !!

Q1. Does builtin logicsheet namespace have to be displayed in xsp:page tag
for serverpage generator to get it ?
If I do this i get the above dependency tag(no error no other output) ,
if I dont the namespace dont get resolved but whole file output.

Pls if anyone has any ideas.

Sandhu


- Original Message -
From: "KOZLOV Roman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 1:41 PM
Subject: Re: Include Pipeline output in XSP.


> Hi Sandhu,
>
> As it was already described in the list, you can generate in separate
pipeline
> (or match)  your XSP as XML first, aggregating with or transforming from
your
> Xindice query results. Then you can refer to this pipeline as to a source
for
> XSP generator in other pipeline.
>
> Best regards
> Roman
>
> "sandhu@terra-firma" wrote:
>
> > Reasons to do this :
> >
> > 1.I need to extract XML from Xindice using Pseudo-Protocol.
> > 2. The extracted xml has namespaces pointing to builtin logicsheets .
> > 3. The namespace has to be resolved in XSP - generator.
> > (Is there any other way w/o type="serverpages" generator to resolve
> > namespace).
> >
> > Therefore the need to somehow include external(pipeline generated) xml
in
> > serverpages generator.
> >
> > Thanks
> >
> > Sandhu
> >
> > - Original Message -
> > From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, March 26, 2002 9:58 AM
> > Subject: RE: Include Pipeline output in XSP.
> >
> > > Hm, why do you want to do this?
> > >
> > > Anyway, take a look at the sub sitemaps samples then to get an idea
what
> > > Cocoon can do.
> > >
> > > Vadim
> > >
> > > > From: sandhu@terra-firma [mailto:[EMAIL PROTECTED]]
> > > >
> > > >
> > > > CInclude transformer can do the job. See samples.
> > > >
> > > > Dear Vadim,
> > > >
> > > >
> > > > i've tried that , but the transformer works after the generate bit -
> > > i.e xml
> > > > gets included in the transformer stage- i need to work on included
xml
> > > in
> > > > xsp generator itself - before transform stage.
> > > >
> > > > basically need to call a pipeline from within xsp page and work on
the
> > > > included xml .
> > > >
> > > > Any pointers ?
> > > >
> > > > tks.
> > > >
> > > > -Original Message-
> > > > From: sandhu@terra-firma [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, March 25, 2002 12:41 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Include Pipeline output in XSP.
> > > >
> > > > Hi users,
> > > >
> > > > I need to include cocoon pipeline output into an XSP page - has
anyone
> > > > done this using the pseudo protocol "xmldb:xindice:// " .
> > > >
> > > > XSP page to have something like :
> > > >
> > > > 
> > > >
> > > > or include or import etc. I need to work on the incoming xml in the
> > > XSP
> > > > itself.
> > > >
> > > > Appreciate any help.
> > > >
> > > > Rgds,
> > > > -S
> > > >
> > >
> > >
> > > -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. 
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > >
> > >
> > >
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>



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

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




RE: [HELP]SAXException JspGenerator.generate() - Using Tom Cat 4.0.1 and released cocoon 2.0.2



Hello Konstantin...
I downloaded the binary of 2.0.2 and tested the JSP generator
and the exception's still there
Did you do the fixes ?
If yes, is there any configuration that needs to be done to get
the JSP's working...

Thanks in advance,
Chiths



-Original Message-
From: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 25, 2002 2:38 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [HELP]SAXException JspGenerator.generate() - Using Tom Cat
4.0.1 and latest Cocoon build JDK 1.3.1

Now I see this error too.
I'll try to resolve it before release.

--
Konstantin Piroumian 
[EMAIL PROTECTED]

> -Original Message-
> From: Chitharanjan Das [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, March 23, 2002 1:08 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [HELP]SAXException JspGenerator.generate() - 
> Using Tom Cat 4.0.1 and latest Cocoon build JDK 1.3.1
> 
> 
> Copied the jasper-compiler.jar from TomCat\lib to \WEB-INF\lib
> 
> Same result.
> 
> You are right, there is no compiled jSP's under TOMCAT/work/cocoon
> 
> 
> JSP reader:
> I used the jsp reader , same result, no JSP generated
>   I get a page not found error in my browser, No exception or
> error at any of the 3 log files (sitemap, core and error)
> 
> The following is the listing from sitemap.log 
> -->
> DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
> HttpProcessor[8080][4]/sitemap_xmap: Matched wildcard pattern 
> jsp/*.htm
> DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
> HttpProcessor[8080][4]/AbstractSitemap: 
> Current Sitemap Parameters:
> PARAM: '1' VALUE: 'hello'
> PARAM: '0' VALUE: 'jsp/hello.htm'
> 
> DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
> HttpProcessor[8080][4]/sitemap_xmap: Component
> reader:jsp(Parameters.EMPTY_PARAMETERS)
> DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
> HttpProcessor[8080][4]/AbstractSitemap: Substitute evaluated 
> value for 1
> as hello
> DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
> HttpProcessor[8080][4]/sitemap_xmap: Source= 
> /docs/samples/jsp/hello.jsp
> DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
> HttpProcessor[8080][4]/sitemap_xmap: Mime-type= text/html
> DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
> HttpProcessor[8080][4]/AbstractSitemap: Substitute evaluated 
> value for 1
> as hello
> DEBUG   (2002-03-22) 13:57.43:517   [sitemap](/cocoon/jsp/hello.htm)
> HttpProcessor[8080][4]/sitemap_xmap: Matched wildcard pattern 
> jsp/*.htm
> >
> 
> There is no JSP compilation that takes place even for the JSP reader.
> 
> 
> 
> Old Build:
> The same Hello.jsp, works with the older build for both jsp reader and
> Generator. Also there is no jasper-compiler.jar in the WEB-INF/lib of
> the old Build of Cocoon.
> 
> 
> Konstantin, does JSP's work for you in the latest build
> If yes, what version of TomCat are you running
> 
> My environment is Cocoon (build as of 2 days back) and TomCat 4.0.1.
> 
> The url to test is  (assumption webApp is cocoon and port is 8080)
> http://localhost:8080/cocoon/jsp/hello 
> 
> for JSP reader:
> 
> http://localhost:8080/cocoon/jsp/hello.htm
> 
> Thanks and regds,
> Chiths
> 
> 
> 
> 
> 
> accordia, inc 
> 34347 Maybird Circle
> Fremont, CA 94555
> 650 279 1137
> [EMAIL PROTECTED]
>  
> The information contained in this communication is intended solely for
> the use of the individual or entity to whom it is addressed and others
> authorized to receive it. It may contain confidential or legally
> privileged information. If you are not the intended recipient you are
> hereby notified that any disclosure, copying, distribution or 
> taking any
> action in reliance on the contents of this information is strictly
> prohibited and may be unlawful. If you have received this 
> communication
> in error, please notify us immediately by responding to this email and
> then delete it from your system. Accordia Inc. is neither 
> liable for the
> proper and incomplete transmission of the information 
> contained in this
> communication nor for any delay in its receipt
> 
> 
> -Original Message-
> From: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, March 22, 2002 1:50 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [HELP]SAXException JspGenerator.generate() - 
> Using Tom Cat
> 4.0.1 and latest Cocoon build JDK 1.3.1
> 
> > -Original Message-
> > From: Chitharanjan Das [mailto:[EMAIL PROTECTED]] 
> > 
> > Hello Peter,
> > 
> > Interestingly there are no errors in the core.log., whatsoever...
> > There are no errors in error.log
> > The only error was in sitemap.log***
> 
> Does Cocoon JSP samples work? Try to use JSPReader to see if you get
> _any_
> output from your JSP. Check if your JSP is compiled (see work
> directory). 
> 
> Did you copy jasper-compiler.jar to /WEB-INF/lib? JSPEngine
> won't
> work without that.
> 
> Regards,
>

RE: getRootContext in Action


1. From Object Model get the request object
2. String ctxRoot = request.getContextPath()

-Original Message-
From: Andrey Demchenko [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 26, 2002 5:49 AM
To: [EMAIL PROTECTED]
Subject: getRootContext in Action

Hi,
How can I get RootContext in action?

---
Andrey Demchenko.



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

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




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

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




Re: SourceWritingTransformer : Cannot get 'xml' serializer


At 6:18 pm +0100 26/3/02, Matthieu Benéteau wrote:
>Hi,
>
>I've just installed Cocoon 2.0.2 on Tomcat 4.0.1, and it works perfectly :).
>But I've encountered a problem using the scratchpad's
>SourceWritingTransformer.
>
>I used to use revision 1.6 of the old FileWritingTransformer.
>I've just changed "xfwt" into "source" and tested it, and I've received the
>following error :
>
>   action: none
>   result: failed
>   error message : "could not get a ContentHandler and failed to cancel"

May I see the setup you used?

1. Declaration of SourceWritingTransformer in the SiteMap
2. Usage of the SourceWritingTransformer in the SiteMap
3. The actual tag you generate to trigger SourceWritingTransformer

>Here are the 2 exceptions of the sitemap.log :
>
>WARN(2002-03-26) 17:40.48:760
>[sitemap.transformer.tofile](/myproject/request)
>HttpProcessor[8080][0]/SourceWritingTransformer: failed, could not get a
>ContentHandler
>org.apache.cocoon.ProcessingException: Cannot get 'xml' serializer

Do you have a serializer set up called 'xml', maybe you removed the default
from the main sitemap?


>Thanks in advance,
>Matthieu

Thanks for trying this out.

regards Jeremy
--
   ___

   Jeremy Quinn   Karma Divers
   webSpace Design
HyperMedia Research Centre

   


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

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




SourceWritingTransformer : Cannot get 'xml' serializer


Hi,

I've just installed Cocoon 2.0.2 on Tomcat 4.0.1, and it works perfectly :).
But I've encountered a problem using the scratchpad's
SourceWritingTransformer.

I used to use revision 1.6 of the old FileWritingTransformer.
I've just changed "xfwt" into "source" and tested it, and I've received the
following error :

   action: none
   result: failed
   error message : "could not get a ContentHandler and failed to cancel"


Here are the 2 exceptions of the sitemap.log :

WARN(2002-03-26) 17:40.48:760
[sitemap.transformer.tofile](/myproject/request)
HttpProcessor[8080][0]/SourceWritingTransformer: failed, could not get a
ContentHandler
org.apache.cocoon.ProcessingException: Cannot get 'xml' serializer
at
org.apache.cocoon.components.source.AbstractStreamWriteableSource.getContent
Handler(AbstractStreamWriteableSource.java:168)
at
org.apache.cocoon.transformation.SourceWritingTransformer.startElement(Sourc
eWritingTransformer.java:293)
at
org.apache.xalan.transformer.ResultTreeHandler.flushElem(ResultTreeHandler.j
ava:858)
[...]

WARN(2002-03-26) 17:40.48:810
[sitemap.transformer.tofile](/myproject/request)
HttpProcessor[8080][0]/SourceWritingTransformer: failed to cancel:
file:/D:/path/to/myfile.xml
java.lang.IllegalArgumentException: The handler is not associated to this
source
at
org.apache.cocoon.components.source.AbstractStreamWriteableSource.cancel(Abs
tractStreamWriteableSource.java:137)
at
org.apache.cocoon.transformation.SourceWritingTransformer.startElement(Sourc
eWritingTransformer.java:299)
at
org.apache.xalan.transformer.ResultTreeHandler.flushElem(ResultTreeHandler.j
ava:858)
[...]


Does anyone know what mistake I've made ?


Thanks in advance,
Matthieu


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

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




Re: [CL] Following links doesn't work




On Tue, 26 Mar 2002, Stephan Michels wrote:

> Hi,
>
> I have some problems using cocoon in the commandline. The option
> "following links" won't work with my documents.
>
> In the project Krysalis from Nicola Barozzi everything works. In the
> log file appears following line:
>  [java] INFO10171   [] ():   Link translated: images/logo.png
>
> But in my example these debug info doesn't appear.
>
> The result page is correct. Have I something forgotten?
>
> Thank you, Stephan Michels.
>
> result:
> 
> 
> 
> Trajectory
> 
> 
> 
> 
> Beispiele
> 
> 
> Block-Beispiele
> [...]
>

Okay it seems that I must use the following lines in the sitemap. But
there is no doku for that.


 
  
   
  

  
   
  
 

Doku:

Link Serializer

.

* Name : links
* Class: org.apache.cocoon.serialization.LinkSerializer
* Cacheable: .




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

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




[CL] Following links doesn't work


Hi,

I have some problems using cocoon in the commandline. The option
"following links" won't work with my documents.

In the project Krysalis from Nicola Barozzi everything works. In the
log file appears following line:
 [java] INFO10171   [] ():   Link translated: images/logo.png

But in my example these debug info doesn't appear.

The result page is correct. Have I something forgotten?

Thank you, Stephan Michels.

result:



Trajectory




Beispiele


Block-Beispiele
[...]




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

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




logic sheet help

Title: logic sheet help





Hi 


I am trying to get a session variable in a logic sheet AND assign values to variable in esql so if they match I can display extra features

I have a database table with training details in and am displaying all but restricting some of the functions a user can perform according to if the logged on user is the training owner

logic snippet:


 this matches session var and I have  in sitemap 
    
    


    
 xcpt
 
    a chunk of sql
     
   
  
        bum

        
    
     
    


         I can do the comparison here
            show summink here
        


         I can do the comparison here
            show summink else here
        
    ...
    


I have seen some articles in the archives but they do not specifically help


I appreciate any help


Cheers


Geoff Parrott
Web Developer
KnowledgePool
42 Bond Street
Brighton BN1 1RD
Tel: 01273 827728
Fax: 01273 321152
Email: [EMAIL PROTECTED]

This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information if you are not, or suspect that you are not, the named addressee or the person responsible for delivering the message to the named addressee, please telephone us immediately. Please note that we cannot guarantee that this message or any attachment is virus free or has not been intercepted and amended. The views of the author may not necessarily reflect those of the Company. 

KnowledgePool Limited, Registered in England no 2478959, Registered Office 26, Finsbury Square, London, EC2A 1SL





Geoff Parrott
Web Developer
KnowledgePool
42 Bond Street
Brighton BN1 1RD
Tel: 01273 827728
Fax: 01273 321152
Email: [EMAIL PROTECTED]

This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information if you are not, or suspect that you are not, the named addressee or the person responsible for delivering the message to the named addressee, please telephone us immediately. Please note that we cannot guarantee that this message or any attachment is virus free or has not been intercepted and amended. The views of the author may not necessarily reflect those of the Company. 

KnowledgePool Limited, Registered in England no 2478959, Registered Office 26, Finsbury Square, London, EC2A 1SL






Re: Database connection problem


1) You must have jdbc driver file in classpath
2) Check your cocoon.xconf
for ... for pool configuration
3) See access.log for message like this
 DEBUG   (2002-03-26) 17:04.45:713   [access] (Unknown-URI)
Unknown-thread/Cocoon
Servlet: Trying to load class: org.gjt.mm.mysql.Driver

- Original Message -
From: "Derek Hohls" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 4:43 PM
Subject: Database connection problem


> When trying to connect to a mySQL database, I get:
>
> Could not get the datasource java.sql.SQLException: There are no
> connections in the pool, check your settings.
>
> I already have the setting for the driver in the web.xml;
> 
>   load-class
>   org.gjt.mm.mysql.Driver
> 
>
> I can also connect to, and 'see' the database with another, front-end
> program.
>
> In fact, the connection AND database were working previously - does
> anyone know if a mod_rewrite for the site in the Apache server would
> affect this??  (seems strange, but thats the only major change that has
> happened on the server that I know about) I have also checked the
> connection without using the VirtualHost and get the same results...
>
> Any ideas as to what else to check?
>
> Thanks
> Derek
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


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

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




Re: cocoon 2.0.2 and mod_webapp


what about changing the location of your work directory to something 
like /WEB-INF/work (relative to the context path of the servlet) ?
/Leo

> I had assumed that deleting cocoon, shutting down tomcat pasting in the
> new cocoon war and firing up tomcat would force a complete redeploy
> instead of a kind of half redeploy :-(
>
> You live and learn
>
> -Original Message-
> From: Peter Jacobs [mailto:[EMAIL PROTECTED]]
> Sent: 26 March 2002 13:41
> To: [EMAIL PROTECTED]
> Subject: RE: cocoon 2.0.2 and mod_webapp
>
> did you delete the Tomcat work directory for cocoon?
>
> (don't trust me, i am just a beginner :-)
>
> Peter Jacobs
>
>
>> -Original Message-
>> From: caleb racey [mailto:[EMAIL PROTECTED]]
>> Sent: dinsdag 26 maart 2002 14:11
>> To: [EMAIL PROTECTED]
>> Subject: cocoon 2.0.2 and mod_webapp
>>
>>
>> Jdk=suns jdk1.3.1_02
>> Os=redhat 7.2 (headless)
>> Servlet container = tomcat 4.0.1
>> Cocoon= cocoon 2.0.2
>> Webserver = apache 1.3.23
>>
>>
>> I have just upgraded from cocoon 2.0.1 too 2.0.2 on my server
>>
>> Previously I had cocoon 2.0.1 running fine through apache + mod_webapp
> +
>> tomcat on my headless redhat box (I'm using the pja headless stuff).
> So
>> when I visited my server http://myserver/cocoon cocoon appeared.
>>
>> Now when I try it I get a cocoon error message (see at bottom of
> page).
>> Cocoon 2.0.2 is working when accessed solely though tomcat
>> http://myserver:8080/cocoon. The problem only arrises  when accessed
> via
>> apache+mod_webapp+tomcat, the error message displayed in the browser
> is:
>>
>> Cocoon 2 - Internal server error
>>
>>
> 
>>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


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

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




Database connection problem


When trying to connect to a mySQL database, I get:

Could not get the datasource java.sql.SQLException: There are no
connections in the pool, check your settings.

I already have the setting for the driver in the web.xml; 

  load-class
  org.gjt.mm.mysql.Driver


I can also connect to, and 'see' the database with another, front-end
program.

In fact, the connection AND database were working previously - does
anyone know if a mod_rewrite for the site in the Apache server would
affect this??  (seems strange, but thats the only major change that has
happened on the server that I know about) I have also checked the
connection without using the VirtualHost and get the same results...

Any ideas as to what else to check?

Thanks
Derek

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

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




Re: Automatic upload




Yes, I know, but I don't know how to turn off 
this feature!
 
Alex.

  - Original Message - 
  From: 
  Markus 
  Blank 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, March 26, 2002 3:07 
  PM
  Subject: Re: Automatic upload
  
  You can change the upload direcrory in the 
  web.xml of cocoon


Re: Automatic upload




You can change the upload direcrory in the web.xml 
of cocoon

  - Original Message - 
  From: 
  Alexander Kruth 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, March 26, 2002 2:57 
  PM
  Subject: Automatic upload
  
  Hi!
  How can I turn off the automatic upload of files 
  sent by an
   ?
   
  I dont know if Tomcat or Cocoon saves all the 
  files to 
  %TOMCAT_HOME%\work\localhost\cocoon\cocoon-files\upload-dir
   
  I think Cocoon does this, but why?
   
   
  Thanks,
  Alex.


Automatic upload




Hi!
How can I turn off the automatic upload of files 
sent by an
 ?
 
I dont know if Tomcat or Cocoon saves all the files 
to 
%TOMCAT_HOME%\work\localhost\cocoon\cocoon-files\upload-dir
 
I think Cocoon does this, but why?
 
 
Thanks,
Alex.


RE: cocoon 2.0.2 and mod_webapp


Thanks peter its working now :-)

I had assumed that deleting cocoon, shutting down tomcat pasting in the
new cocoon war and firing up tomcat would force a complete redeploy
instead of a kind of half redeploy :-(

You live and learn 

-Original Message-
From: Peter Jacobs [mailto:[EMAIL PROTECTED]] 
Sent: 26 March 2002 13:41
To: [EMAIL PROTECTED]
Subject: RE: cocoon 2.0.2 and mod_webapp

did you delete the Tomcat work directory for cocoon?

(don't trust me, i am just a beginner :-)

Peter Jacobs


> -Original Message-
> From: caleb racey [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 26 maart 2002 14:11
> To: [EMAIL PROTECTED]
> Subject: cocoon 2.0.2 and mod_webapp
> 
> 
> Jdk=suns jdk1.3.1_02
> Os=redhat 7.2 (headless)
> Servlet container = tomcat 4.0.1
> Cocoon= cocoon 2.0.2
> Webserver = apache 1.3.23
> 
> 
> I have just upgraded from cocoon 2.0.1 too 2.0.2 on my server
> 
> Previously I had cocoon 2.0.1 running fine through apache + mod_webapp
+
> tomcat on my headless redhat box (I'm using the pja headless stuff).
So
> when I visited my server http://myserver/cocoon cocoon appeared.
> 
> Now when I try it I get a cocoon error message (see at bottom of
page).
> Cocoon 2.0.2 is working when accessed solely though tomcat
> http://myserver:8080/cocoon. The problem only arrises  when accessed
via
> apache+mod_webapp+tomcat, the error message displayed in the browser
is:
> 
> Cocoon 2 - Internal server error
> 
>

> 

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

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


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

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




getRootContext in Action


Hi,
How can I get RootContext in action?

---
Andrey Demchenko.



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

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




RE: cocoon 2.0.2 and mod_webapp


did you delete the Tomcat work directory for cocoon?

(don't trust me, i am just a beginner :-)

Peter Jacobs


> -Original Message-
> From: caleb racey [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 26 maart 2002 14:11
> To: [EMAIL PROTECTED]
> Subject: cocoon 2.0.2 and mod_webapp
> 
> 
> Jdk=suns jdk1.3.1_02
> Os=redhat 7.2 (headless)
> Servlet container = tomcat 4.0.1
> Cocoon= cocoon 2.0.2
> Webserver = apache 1.3.23
> 
> 
> I have just upgraded from cocoon 2.0.1 too 2.0.2 on my server
> 
> Previously I had cocoon 2.0.1 running fine through apache + mod_webapp +
> tomcat on my headless redhat box (I'm using the pja headless stuff). So
> when I visited my server http://myserver/cocoon cocoon appeared.
> 
> Now when I try it I get a cocoon error message (see at bottom of page).
> Cocoon 2.0.2 is working when accessed solely though tomcat
> http://myserver:8080/cocoon. The problem only arrises  when accessed via
> apache+mod_webapp+tomcat, the error message displayed in the browser is:
> 
> Cocoon 2 - Internal server error
> 
> 
> 

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

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




Power using the sitemap.


Here is my problem:
i have several similar directories structures containing XML datas, for 
each customers I have (customer1/, customer2/, customer3/)
I need to apply the same pipeline on one directory tree, depending on a 
request parameter:
when I have "URL?customer=IBM", i need my pipeline to get infos from 
somewhere inside the customer1/ directory
when I have "URL?customer=Microsoft", i need my pipeline to get infos 
from somewhere inside the customer2/ directory.

I wonder how I can get that.

I tought about an action that sets a variable {customerRoot} depending 
on the request parameter "customer".
And my pipeline builds all its URLs using this variable.

Or a pipeline that matches any pattern, tests the requestparameter with 
a selector and makes a "map:read" to
an internal pipeline, and with a "src" containing the good customerRoot 
string

Or a session-parameter set by I do now know who :-)

I presume that pointing to a different directory structure depending on 
a parameter is classic.
I just would like to know which option you would use.




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

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




RE: help on jvm_bind error


Hi Marco,

sorry it wasn't web.xml but cocoon.xconf.

Best regards
- Volker -

-Original Message-
From: marco [mailto:[EMAIL PROTECTED]]
Sent: Montag, 18. Marz 2002 03:45
To: [EMAIL PROTECTED]
Subject: help on jvm_bind error


I am using cocoon 2.00, jdk1.3.1_01, tomcat4.0.1 in Windows 98. The cocoon
was looking good.

Yesterday, I updated the JVIEW version to 5.00.3805 by downloading the exe
file from http://www.microsoft.com/java/vm/dl_vm40.htm, because of the
security news
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/
bulletin/ms02-013.asp . After that, the comcat and cocoon was started with
no problem, but once I use a browser to request a cocoon page, then the
following error message was displayed on the tomcat command prompt.

Please help.


Loading catalog: /localhost/cocoon/resources/entities/catalog
Server.run/init: java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
at java.net.ServerSocket.(ServerSocket.java:170)
at java.net.ServerSocket.(ServerSocket.java:82)
at org.hsqldb.Server.run(Server.java:131)
at org.hsqldb.Server.main(Server.java:78)
at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:10
1)
at java.lang.Thread.run(Thread.java:484)
Loading catalog: /localhost/cocoon/resources/entities/catalog
Server.run/init: java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
at java.net.ServerSocket.(ServerSocket.java:170)
at java.net.ServerSocket.(ServerSocket.java:82)
at org.hsqldb.Server.run(Server.java:131)
at org.hsqldb.Server.main(Server.java:78)
at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:10
1)
at java.lang.Thread.run(Thread.java:484)

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

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


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

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




RE: help on jvm_bind error


Hi Marco,

now I found a workaround for your (and my) problem. Take a look into
cocoon's web.xml file:





If you don't need the samples, then you can comment the above section and
you will get rid of the problem. Puuuh !

Best regards,
- Volker -


-Original Message-
From: marco [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 19. Marz 2002 03:26
To: [EMAIL PROTECTED]
Subject: Re: help on jvm_bind error


I had restarted the computer and then started cocoon and viewed the web
pages, but the same error occurs.

Any hints for solving the problem about the Microsoft Jview update listed
below?

Please help!

- Original Message -
From: "Volker Schneider" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 18, 2002 5:05 PM
Subject: RE: help on jvm_bind error


> Hi Marco,
>
> I have the same with Cocoon 2.0.1 an WebSphere 4.0.1 and Tomcat 4.0.3.
Maybe
> the reason is, that after stopping cocoon TCP does not not free the port
> immediately but in a few minutes. If you wait a few minutes before you
> restart cocoon this does not happen. But I don't know how to fix this.
>
> - Volker -
>
> -Original Message-
> From: marco [mailto:[EMAIL PROTECTED]]
> Sent: Montag, 18. Marz 2002 03:45
> To: [EMAIL PROTECTED]
> Subject: help on jvm_bind error
>
>
> I am using cocoon 2.00, jdk1.3.1_01, tomcat4.0.1 in Windows 98. The cocoon
> was looking good.
>
> Yesterday, I updated the JVIEW version to 5.00.3805 by downloading the exe
> file from http://www.microsoft.com/java/vm/dl_vm40.htm, because of the
> security news
>
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/
> bulletin/ms02-013.asp . After that, the comcat and cocoon was started with
> no problem, but once I use a browser to request a cocoon page, then the
> following error message was displayed on the tomcat command prompt.
>
> Please help.
>
>
> Loading catalog: /localhost/cocoon/resources/entities/catalog
> Server.run/init: java.net.BindException: Address in use: JVM_Bind
> java.net.BindException: Address in use: JVM_Bind
> at java.net.PlainSocketImpl.socketBind(Native Method)
> at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
> at java.net.ServerSocket.(ServerSocket.java:170)
> at java.net.ServerSocket.(ServerSocket.java:82)
> at org.hsqldb.Server.run(Server.java:131)
> at org.hsqldb.Server.main(Server.java:78)
> at
> org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:10
> 1)
> at java.lang.Thread.run(Thread.java:484)
> Loading catalog: /localhost/cocoon/resources/entities/catalog
> Server.run/init: java.net.BindException: Address in use: JVM_Bind
> java.net.BindException: Address in use: JVM_Bind
> at java.net.PlainSocketImpl.socketBind(Native Method)
> at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
> at java.net.ServerSocket.(ServerSocket.java:170)
> at java.net.ServerSocket.(ServerSocket.java:82)
> at org.hsqldb.Server.run(Server.java:131)
> at org.hsqldb.Server.main(Server.java:78)
> at
> org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:10
> 1)
> at java.lang.Thread.run(Thread.java:484)
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>

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

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


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

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




C2.0.2: ClassCastException


Hi,

I've downloaded Cocoon 2.0.2, compiled, replaced the libs in my project and
deployed successfully. It works, however, I keep getting spammed in the
error.log with messages like these:

ERROR   (2002-03-26) 14:13.28:463   [core.manager] (/list/mainlist)
SocketListener-0/XMLResourceBundle: cannot obtain XPathProcessor
java.lang.ClassCastException: org.apache.cocoon.components.xpath.XPathProcessorImpl 

followed by a full trace. What causes this, and how can I get rid of that?

thanks,
Christopher
-- 
.Digital.Yearning.for.Networked.Assassination.and.Xenocide

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

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




cocoon 2.0.2 and mod_webapp


Jdk=suns jdk1.3.1_02
Os=redhat 7.2 (headless)
Servlet container = tomcat 4.0.1
Cocoon= cocoon 2.0.2
Webserver = apache 1.3.23


I have just upgraded from cocoon 2.0.1 too 2.0.2 on my server

Previously I had cocoon 2.0.1 running fine through apache + mod_webapp +
tomcat on my headless redhat box (I'm using the pja headless stuff). So
when I visited my server http://myserver/cocoon cocoon appeared.

Now when I try it I get a cocoon error message (see at bottom of page).
Cocoon 2.0.2 is working when accessed solely though tomcat
http://myserver:8080/cocoon. The problem only arrises  when accessed via
apache+mod_webapp+tomcat, the error message displayed in the browser is:

Cocoon 2 - Internal server error




type fatal

message Error compiling sitemap

description org.apache.cocoon.ProcessingException: Error compiling
sitemap: java.lang.NoSuchFieldError: generators

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Error compiling sitemap:
java.lang.NoSuchFieldError: generators
at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
at java.lang.Thread.run(Thread.java:484)
java.lang.NoSuchFieldError: generators
at
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:402)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(DefaultComponentFactory.java:172)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial
ize(ThreadSafeComponentHandler.java:84)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGen
erator(GeneratorSelector.java:170)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(ProgramGeneratorImpl.java:248)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:484)


request-uri

/cocoon/

path-info





The error logs is attached to this email if that helps


I don't know why cocoon 2.0.2 is objecting mod_webapp. I haven't changed
anything form the default cocoon2.0.2  build (./build.sh
-Dinclude.webapp.libs=yes webapp) apart from putting the php servlet jar
in th lib/optional directory and deleting cocoon.war after tomcat has
unpacked it into the webapps/cocoon directory


Thanks in advance



error.log
Description: error.log

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

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


Re: AW: cocoon & Websphere 3.55



yes ... it's ok with a relative unix-style path for the properties
param.
(at least for cocoon 1.8.2 - we would use cocoon 2.x when our
application will be full servlet2.2/JSP1.1
compliant).
I have now to resolve some problems with FOP usage but the simple cocoon
samples are ok.

Michael, many thankx for your help ;-)

Michael.

Michael Zehrer a écrit :
> 
> Hi Michael,
> 
> try defining the properties param as a relativ unix-style path, where
> your current directory is the web directory (like
> ../servlets/cocoon.properties)
> 
> Michael
> 
> -Ursprüngliche Nachricht-
> Von: Souillard M Ext DvSI/SICoR
> [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 26. März 2002 11:35
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: AW: cocoon & Websphere 3.55
> 
> > There are install instructions for Cocoon 1 on the website
> > http://xml.apache.org/cocoon1/install.html
> 
> Yes, I already used these instructions, with and without the properties
> param to indicate where to find the cocoon.properties file. But I have
> the following problems (of course I've checked all the paths) :
> 
> 
> --
> - I put the library in my application server classpath (bsf.jar,
> bsfengines.jar, turbine-pool.jar, xerces_1_2.jar, xalan_1_2_D02.jar,
> fop_0_15_0.jar, tools.jar, cocoon.jar)
> - I defined a cocoon web application and a cocoon servlet in it with the
> "properties" param :
> - and I got the following error trying to get
> http://localhost/cocoon/index.xml
> ==>
> Cocoon 1.8.2
> Unable to open resource:
> d:\users\prodx\03p\lib\cocoon\1.8.2\cocoon.properties
>  java.lang.NullPointerException
>  at org.apache.cocoon.Cocoon.init(Cocoon.java:131)
>  at
> com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManage
> r.java:622)
>  at
> com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecyc
> leServlet.java:136)
>  at
> com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLife
> cycleServlet.java:244)
> 
> - I also tried without "properties" param and I got :
> http://localhost/cocoon/index.xml
> ==>
> A recursive error was detected.
> Original Error:
>  Error Message: Server caught unhandled exception from servlet [cocoon]:
>  null
>  Error Code: 500
>  Target Servlet: cocoon
>  Error Stack:
>  Root Error-1:
>  java.lang.NullPointerException
>   at org.apache.cocoon.Utils.getStackTraceAsString(Utils.java:325)
>   at org.apache.cocoon.Frontend.error(Frontend.java:89)
>   at org.apache.cocoon.Cocoon.service(Cocoon.java:172)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 
> > Do you have all jar files from the Cocoon 2.0.1 install in your
> > classpath? It looks like you missed some...
> 
> I made a listing of all the jar file under cocoon/servlet, and put them
> in the classpath of my server application ... so I have all the jar
> files.
> 
> Any other idea ?
> 
> Do you have Cocoon running on WAS3.5x ?
> If yes, could you export your WAS configuration and send it to me by
> mail ...
> 
> thanx,
> Michael.
> 
> > Cheers, Michael
> >
> > -Ursprüngliche Nachricht-
> > Von: Souillard M Ext DvSI/SICoR
> > [mailto:[EMAIL PROTECTED]]
> > Gesendet: Dienstag, 26. März 2002 08:29
> > An: [EMAIL PROTECTED]
> > Betreff: Re: AW: cocoon & Websphere 3.55
> >
> > I deployed Cocoon 2.0.1 (the war file) within WAS3.55, and added the
> jar
> > file in the classpath of my application server containing the cocoon
> web
> > application, and I got the same error (errors included bellow)
> >
> > Any other tip / idea ? ?
> >
> > Does anybody work with WAS3.5x and Cocoon 1.x ?
> >
> > Michael.
> >
> > *** STDERR
> > Logging Error: Could not set up Cocoon Logger, will use screen instead
> > org.xml.sax.SAXParseException: File "" not found.
> >  at
> > org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1219)
> >  at
> >
> org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(
> > DefaultEntityHandler.java:501)
> >  at
> >
> org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:314)
> >  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1097)
> >  at
> >
> org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.bu
> > ild(DefaultConfigurationBuilder.java:187)
> >  at
> >
> org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.bu
> > ild(DefaultConfigurationBuilder.java:166)
> >  at
> >
> org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:58
> > 3)
> >  at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:165)
> >  at
> >
> com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManage
> > r.java:622)
> >
> > *** STDOUT
> > [02.03.25 11:57:56:410 GMT+00:00] d5dc3a6f ServletHost   A Loading
> > group: "cocoon"
> > [02.03.25 11:57:58:103 GMT+00:00] d5dc3a6f ServletInstan A SRVE0048I:
> > Loading servlet: "Cocoon2"
> > [02.03.25 11:57:58:183 GMT+00:00] d5dc3a6f WebGroup  A SR

Re: Another problem with Cocoon 2.0.2


I use C2.0.2 with JDK1.3.1_02 from Sun.

I try to generate the xjavadocs.
I use the command ./build.sh xjavadocs.
It complains that:
"Cannot find com.sun.xml.XmlDoclet"

I wonder if this class is available by default with JDK1.3?
And if this is the correct command to have the javadocs
generated correctly for inclusion in the "documentation/" directory.

I think a HOWTO about javadocs integration into the C2 samples would be 
nice.



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

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




Re: Problems with Cocoon 2.0.2




Tx, that solved it.

  - Original Message - 
  From: 
  Diego Lluna 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, March 26, 2002 12:41 
  PM
  Subject: RE: Problems with Cocoon 
  2.0.2
  
  Hi,
   
  I was having a similar problem a while ago. My versions do not exactly 
  match, still,
  I would try this:
   
  
  Then you have to copy the batik...jar and xml-apis.jar file to 
  the common/lib directory and restart tomcat again.
   
  it worked for me, and i couldn't find it in the 
  documentation.
   
  Diego
  
-Mensaje original-De: Mike Ahlers 
[mailto:[EMAIL PROTECTED]]Enviado el: martes, 26 de marzo de 2002 
12:31Para: [EMAIL PROTECTED]Asunto: Problems 
with Cocoon 2.0.2
 
Hi,
 
I use java 1.4, Tomcat 4.0.3 and Cocoon 2.0.2. 
Copied the cocoon.war to webapps and was hoping of a smooth lift-off. Error 
I am getting is:
 
org.apache.cocoon.ProcessingException: Error compiling sitemap: 
java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGPaintat 
org.apache.cocoon.sitemap.Handler.run(Handler.java:295)at 
java.lang.Thread.run(Thread.java:536)Caused by: 
java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGPaintat 
java.lang.ClassLoader.defineClass0(Native Method)at 
java.lang.ClassLoader.defineClass(ClassLoader.java:509)at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1631)at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:926)at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243)at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
[ -- snipped rest of stack-trace -- 
]
 
Do I miss something here?
 
Thanks in advance,
Mike


Re: HTML Output Issues


XSL:  you can also use   to force spaces

Placing JavaScript inside XSLT should *not* cause any 
problems - use the 

RE: Problems with Cocoon 2.0.2




Hi,
 
I was having a similar problem a while ago. My versions do not exactly 
match, still,
I would try this:
 

Then you have to copy the batik...jar and xml-apis.jar file to 
the common/lib directory and restart tomcat again.
 
it worked for me, and i couldn't find it in the 
documentation.
 
Diego

  -Mensaje original-De: Mike Ahlers 
  [mailto:[EMAIL PROTECTED]]Enviado el: martes, 26 de marzo de 2002 
  12:31Para: [EMAIL PROTECTED]Asunto: Problems 
  with Cocoon 2.0.2
   
  Hi,
   
  I use java 1.4, Tomcat 4.0.3 and Cocoon 2.0.2. 
  Copied the cocoon.war to webapps and was hoping of a smooth lift-off. Error I 
  am getting is:
   
  org.apache.cocoon.ProcessingException: Error compiling sitemap: 
  java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGPaintat 
  org.apache.cocoon.sitemap.Handler.run(Handler.java:295)at 
  java.lang.Thread.run(Thread.java:536)Caused by: 
  java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGPaintat 
  java.lang.ClassLoader.defineClass0(Native Method)at 
  java.lang.ClassLoader.defineClass(ClassLoader.java:509)at 
  java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)at 
  org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1631)at 
  org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:926)at 
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)at 
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243)at 
  java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
  [ -- snipped rest of stack-trace -- 
]
   
  Do I miss something here?
   
  Thanks in advance,
  Mike


Problems with Cocoon 2.0.2




 
Hi,
 
I use java 1.4, Tomcat 4.0.3 and Cocoon 2.0.2. 
Copied the cocoon.war to webapps and was hoping of a smooth lift-off. Error I am 
getting is:
 
org.apache.cocoon.ProcessingException: Error compiling sitemap: 
java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGPaint	at 
org.apache.cocoon.sitemap.Handler.run(Handler.java:295)	at 
java.lang.Thread.run(Thread.java:536)Caused by: 
java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGPaint	at 
java.lang.ClassLoader.defineClass0(Native Method)	at 
java.lang.ClassLoader.defineClass(ClassLoader.java:509)	at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)	at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1631)	at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:926)	at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)	at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243)	at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
[ -- snipped rest of stack-trace -- ]
 
Do I miss something here?
 
Thanks in advance,
Mike


AW: cocoon & Websphere 3.55


and be sure that your Servlet Engine ist in full servlet2.2/JSP1.1
compliance mode...

-Ursprüngliche Nachricht-
Von: Michael Zehrer 
Gesendet: Dienstag, 26. März 2002 12:19
An: [EMAIL PROTECTED]
Betreff: AW: cocoon & Websphere 3.55


Hi Michael,

try defining the properties param as a relativ unix-style path, where
your current directory is the web directory (like
../servlets/cocoon.properties)

Michael

-Ursprüngliche Nachricht-
Von: Souillard M Ext DvSI/SICoR
[mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. März 2002 11:35
An: [EMAIL PROTECTED]
Betreff: Re: AW: AW: cocoon & Websphere 3.55



> There are install instructions for Cocoon 1 on the website
> http://xml.apache.org/cocoon1/install.html

Yes, I already used these instructions, with and without the properties
param to indicate where to find the cocoon.properties file. But I have
the following problems (of course I've checked all the paths) :


--
- I put the library in my application server classpath (bsf.jar,
bsfengines.jar, turbine-pool.jar, xerces_1_2.jar, xalan_1_2_D02.jar,
fop_0_15_0.jar, tools.jar, cocoon.jar)
- I defined a cocoon web application and a cocoon servlet in it with the
"properties" param :
- and I got the following error trying to get
http://localhost/cocoon/index.xml
==>
Cocoon 1.8.2
Unable to open resource:
d:\users\prodx\03p\lib\cocoon\1.8.2\cocoon.properties
 java.lang.NullPointerException
 at org.apache.cocoon.Cocoon.init(Cocoon.java:131)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManage
r.java:622)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecyc
leServlet.java:136)
 at
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLife
cycleServlet.java:244)

- I also tried without "properties" param and I got :
http://localhost/cocoon/index.xml
==>
A recursive error was detected.
Original Error:
 Error Message: Server caught unhandled exception from servlet [cocoon]:
 null
 Error Code: 500
 Target Servlet: cocoon
 Error Stack:
 Root Error-1:
 java.lang.NullPointerException
  at org.apache.cocoon.Utils.getStackTraceAsString(Utils.java:325)
  at org.apache.cocoon.Frontend.error(Frontend.java:89)
  at org.apache.cocoon.Cocoon.service(Cocoon.java:172)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


> Do you have all jar files from the Cocoon 2.0.1 install in your
> classpath? It looks like you missed some...

I made a listing of all the jar file under cocoon/servlet, and put them
in the classpath of my server application ... so I have all the jar
files.

Any other idea ?

Do you have Cocoon running on WAS3.5x ?
If yes, could you export your WAS configuration and send it to me by
mail ...

thanx,
Michael.


> Cheers, Michael
> 
> -Ursprüngliche Nachricht-
> Von: Souillard M Ext DvSI/SICoR
> [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 26. März 2002 08:29
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: cocoon & Websphere 3.55
> 
> I deployed Cocoon 2.0.1 (the war file) within WAS3.55, and added the
jar
> file in the classpath of my application server containing the cocoon
web
> application, and I got the same error (errors included bellow)
> 
> Any other tip / idea ? ?
> 
> Does anybody work with WAS3.5x and Cocoon 1.x ?
> 
> Michael.
> 
> *** STDERR
> Logging Error: Could not set up Cocoon Logger, will use screen instead
> org.xml.sax.SAXParseException: File "" not found.
>  at
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1219)
>  at
>
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(
> DefaultEntityHandler.java:501)
>  at
>
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:314)
>  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1097)
>  at
>
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.bu
> ild(DefaultConfigurationBuilder.java:187)
>  at
>
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.bu
> ild(DefaultConfigurationBuilder.java:166)
>  at
>
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:58
> 3)
>  at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:165)
>  at
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManage
> r.java:622)
> 
> *** STDOUT
> [02.03.25 11:57:56:410 GMT+00:00] d5dc3a6f ServletHost   A Loading
> group: "cocoon"
> [02.03.25 11:57:58:103 GMT+00:00] d5dc3a6f ServletInstan A SRVE0048I:
> Loading servlet: "Cocoon2"
> [02.03.25 11:57:58:183 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
> [Servlet LOG]: "Cocoon2: init"
> [02.03.25 11:58:00:376 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
> [Servlet LOG]: "DEBUG   (2002-03-25) 11:58.00:376   []
> (Unknown-URI) Unknown-thread/LogKitLogger: Logger for category access
> not defined in configuration. New Logger created and returned
> "
> [02.03.25 11:58:00:416 GMT+00:00] d5dc3a6f WebGroup  A SRVE

AW: cocoon & Websphere 3.55


Hi Michael,

try defining the properties param as a relativ unix-style path, where
your current directory is the web directory (like
../servlets/cocoon.properties)

Michael

-Ursprüngliche Nachricht-
Von: Souillard M Ext DvSI/SICoR
[mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. März 2002 11:35
An: [EMAIL PROTECTED]
Betreff: Re: AW: AW: cocoon & Websphere 3.55



> There are install instructions for Cocoon 1 on the website
> http://xml.apache.org/cocoon1/install.html

Yes, I already used these instructions, with and without the properties
param to indicate where to find the cocoon.properties file. But I have
the following problems (of course I've checked all the paths) :


--
- I put the library in my application server classpath (bsf.jar,
bsfengines.jar, turbine-pool.jar, xerces_1_2.jar, xalan_1_2_D02.jar,
fop_0_15_0.jar, tools.jar, cocoon.jar)
- I defined a cocoon web application and a cocoon servlet in it with the
"properties" param :
- and I got the following error trying to get
http://localhost/cocoon/index.xml
==>
Cocoon 1.8.2
Unable to open resource:
d:\users\prodx\03p\lib\cocoon\1.8.2\cocoon.properties
 java.lang.NullPointerException
 at org.apache.cocoon.Cocoon.init(Cocoon.java:131)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManage
r.java:622)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecyc
leServlet.java:136)
 at
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLife
cycleServlet.java:244)

- I also tried without "properties" param and I got :
http://localhost/cocoon/index.xml
==>
A recursive error was detected.
Original Error:
 Error Message: Server caught unhandled exception from servlet [cocoon]:
 null
 Error Code: 500
 Target Servlet: cocoon
 Error Stack:
 Root Error-1:
 java.lang.NullPointerException
  at org.apache.cocoon.Utils.getStackTraceAsString(Utils.java:325)
  at org.apache.cocoon.Frontend.error(Frontend.java:89)
  at org.apache.cocoon.Cocoon.service(Cocoon.java:172)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


> Do you have all jar files from the Cocoon 2.0.1 install in your
> classpath? It looks like you missed some...

I made a listing of all the jar file under cocoon/servlet, and put them
in the classpath of my server application ... so I have all the jar
files.

Any other idea ?

Do you have Cocoon running on WAS3.5x ?
If yes, could you export your WAS configuration and send it to me by
mail ...

thanx,
Michael.


> Cheers, Michael
> 
> -Ursprüngliche Nachricht-
> Von: Souillard M Ext DvSI/SICoR
> [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 26. März 2002 08:29
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: cocoon & Websphere 3.55
> 
> I deployed Cocoon 2.0.1 (the war file) within WAS3.55, and added the
jar
> file in the classpath of my application server containing the cocoon
web
> application, and I got the same error (errors included bellow)
> 
> Any other tip / idea ? ?
> 
> Does anybody work with WAS3.5x and Cocoon 1.x ?
> 
> Michael.
> 
> *** STDERR
> Logging Error: Could not set up Cocoon Logger, will use screen instead
> org.xml.sax.SAXParseException: File "" not found.
>  at
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1219)
>  at
>
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(
> DefaultEntityHandler.java:501)
>  at
>
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:314)
>  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1097)
>  at
>
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.bu
> ild(DefaultConfigurationBuilder.java:187)
>  at
>
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.bu
> ild(DefaultConfigurationBuilder.java:166)
>  at
>
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:58
> 3)
>  at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:165)
>  at
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManage
> r.java:622)
> 
> *** STDOUT
> [02.03.25 11:57:56:410 GMT+00:00] d5dc3a6f ServletHost   A Loading
> group: "cocoon"
> [02.03.25 11:57:58:103 GMT+00:00] d5dc3a6f ServletInstan A SRVE0048I:
> Loading servlet: "Cocoon2"
> [02.03.25 11:57:58:183 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
> [Servlet LOG]: "Cocoon2: init"
> [02.03.25 11:58:00:376 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
> [Servlet LOG]: "DEBUG   (2002-03-25) 11:58.00:376   []
> (Unknown-URI) Unknown-thread/LogKitLogger: Logger for category access
> not defined in configuration. New Logger created and returned
> "
> [02.03.25 11:58:00:416 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
> [Servlet LOG]: "DEBUG   (2002-03-25) 11:58.00:416   [access  ]
> (Unknown-URI) Unknown-thread/CocoonServlet: getRealPath for /:
> D:\WebSphere\AppServer\hosts\default_host\cocoon\web
> "
> [02.03.25 11:58:00:446 GMT+00:00] d5dc3a6f We

Re: AW: AW: cocoon & Websphere 3.55



> There are install instructions for Cocoon 1 on the website
> http://xml.apache.org/cocoon1/install.html

Yes, I already used these instructions, with and without the properties
param to indicate where to find the cocoon.properties file. But I have
the following problems (of course I've checked all the paths) :

--
- I put the library in my application server classpath (bsf.jar,
bsfengines.jar, turbine-pool.jar, xerces_1_2.jar, xalan_1_2_D02.jar,
fop_0_15_0.jar, tools.jar, cocoon.jar)
- I defined a cocoon web application and a cocoon servlet in it with the
"properties" param :
- and I got the following error trying to get
http://localhost/cocoon/index.xml
==>
Cocoon 1.8.2
Unable to open resource:
d:\users\prodx\03p\lib\cocoon\1.8.2\cocoon.properties
 java.lang.NullPointerException
 at org.apache.cocoon.Cocoon.init(Cocoon.java:131)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:622)
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:136)
 at
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:244)

- I also tried without "properties" param and I got :
http://localhost/cocoon/index.xml
==>
A recursive error was detected.
Original Error:
 Error Message: Server caught unhandled exception from servlet [cocoon]:
 null
 Error Code: 500
 Target Servlet: cocoon
 Error Stack:
 Root Error-1:
 java.lang.NullPointerException
  at org.apache.cocoon.Utils.getStackTraceAsString(Utils.java:325)
  at org.apache.cocoon.Frontend.error(Frontend.java:89)
  at org.apache.cocoon.Cocoon.service(Cocoon.java:172)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


> Do you have all jar files from the Cocoon 2.0.1 install in your
> classpath? It looks like you missed some...

I made a listing of all the jar file under cocoon/servlet, and put them
in the classpath of my server application ... so I have all the jar
files.

Any other idea ?

Do you have Cocoon running on WAS3.5x ?
If yes, could you export your WAS configuration and send it to me by
mail ...

thanx,
Michael.


> Cheers, Michael
> 
> -Ursprüngliche Nachricht-
> Von: Souillard M Ext DvSI/SICoR
> [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 26. März 2002 08:29
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: cocoon & Websphere 3.55
> 
> I deployed Cocoon 2.0.1 (the war file) within WAS3.55, and added the jar
> file in the classpath of my application server containing the cocoon web
> application, and I got the same error (errors included bellow)
> 
> Any other tip / idea ? ?
> 
> Does anybody work with WAS3.5x and Cocoon 1.x ?
> 
> Michael.
> 
> *** STDERR
> Logging Error: Could not set up Cocoon Logger, will use screen instead
> org.xml.sax.SAXParseException: File "" not found.
>  at
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1219)
>  at
> org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(
> DefaultEntityHandler.java:501)
>  at
> org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:314)
>  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1097)
>  at
> org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.bu
> ild(DefaultConfigurationBuilder.java:187)
>  at
> org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.bu
> ild(DefaultConfigurationBuilder.java:166)
>  at
> org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:58
> 3)
>  at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:165)
>  at
> com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManage
> r.java:622)
> 
> *** STDOUT
> [02.03.25 11:57:56:410 GMT+00:00] d5dc3a6f ServletHost   A Loading
> group: "cocoon"
> [02.03.25 11:57:58:103 GMT+00:00] d5dc3a6f ServletInstan A SRVE0048I:
> Loading servlet: "Cocoon2"
> [02.03.25 11:57:58:183 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
> [Servlet LOG]: "Cocoon2: init"
> [02.03.25 11:58:00:376 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
> [Servlet LOG]: "DEBUG   (2002-03-25) 11:58.00:376   []
> (Unknown-URI) Unknown-thread/LogKitLogger: Logger for category access
> not defined in configuration. New Logger created and returned
> "
> [02.03.25 11:58:00:416 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
> [Servlet LOG]: "DEBUG   (2002-03-25) 11:58.00:416   [access  ]
> (Unknown-URI) Unknown-thread/CocoonServlet: getRealPath for /:
> D:\WebSphere\AppServer\hosts\default_host\cocoon\web
> "
> [02.03.25 11:58:00:446 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
> [Servlet LOG]: "DEBUG   (2002-03-25) 11:58.00:446   [access  ]
> (Unknown-URI) Unknown-thread/CocoonServlet: URL for Root:
> file:/D:/WebSphere/AppServer/hosts/default_host/cocoon/web/
> "
> [02.03.25 11:58:00:476 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
> [Servlet LOG]: "DEBUG   (2002-03-25) 11:58.00:476   [access  ]
> (Unknown-URI) Unknown-thr

Re: Turning XSPs into Generators


From: "Michael Zehrer" <[EMAIL PROTECTED]>

> reading the Performance Guide Draft, it sems to me that turning XSPs
> into Generators is a good idea, is there some general way how to do
> this? Any tips, templates?

tip: use the .java file that results from the XSP; look in the work dir
template: look in the org.apache.cocoon.generation source files

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



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

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




Re: HTML Output Issues


I had the same problem.  Adding


right under the root node solved the problem.  Every image sticks correctly 
to the previous one in the browser.  All the tags follow one another.  It's 
also a very good way to compress the HTML output.  There's one drawback 
though: all the leading spaces are stripped too.  So if you are relying on 
a space to separate text from an image you have to add a space using the 
xsl:text element.
Make sure you don't have any JavaScript in your page or the lines from your 
code will be placed on 1 line too.  Use external javascript files and 
everything is solved.
Bert


At 01:49 26/03/2002 -0800, you wrote:
>Rookie cocoon user. Asked this question about a week ago and got no
>answer, trying to rephrase it.
>
>I have very simple XML documents. I'm using a simple XSL to insert
>content (from the XML) into an XHTML skin. Works well except the
>resulting HTML is modified which breaks browser display compatibility
>(menu layout spacing is drastically, and incorrectly, changed). Example:
>
>Input:
> 
>
>
>Output:
>
>
>
>
>
>
>
>
>
>Is there some way to keep the XHTML that is embedded in my XSL from
>being reformatted this way. I've tried messing with a variety of XML and
>XSL whitespace control techniques, but none with the desired result.
>
>Any help would be appreciated.
>
>Corey
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>


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

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




Turning XSPs into Generators


Hi list,

reading the Performance Guide Draft, it sems to me that turning XSPs
into Generators is a good idea, is there some general way how to do
this? Any tips, templates?

Cheers, Michael

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

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




RE: Problems accessing database,


Thanks,
I changed a number of configurations, including the Web.xml file, and now
it's working!


-Message d'origine-
De: Sozonnik Andrew [mailto:[EMAIL PROTECTED]]
Date: mardi, 26. mars 2002 11:22
À: [EMAIL PROTECTED]
Objet: RE: Problems accessing database,


First you have to load Oracle driver in WEB-INF/web.xml


  load-class
  
   
oracle.jdbc.driver.OracleDriver
  
  




-Original Message-
From: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 26, 2002 11:56 AM
To: '[EMAIL PROTECTED]'
Subject: TR: Problems accessing database,


Now I found an additional entry in the access log:

DEBUG   (2002-03-26) 10:48.43:410   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: parent-component-manager was not set -
defaulting to null.
DEBUG   (2002-03-26) 10:48.43:430   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Trying to load class:
oracle.jdbc.driver.OracleDriver
WARN(2002-03-26) 10:48.43:440   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Could not force-load class:
oracle.jdbc.driver.OracleDriver
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)


Does anybody why Cocoon can't load the class while the same is working
in a Java program? 

-Message d'origine-
De: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] 
Date: mardi, 26. mars 2002 10:16
À: [EMAIL PROTECTED]
Objet: Problems accessing database,


Cocoon 2.01, Tomcat 4.01, Oracle db

I can't access my Oracle db, no errors, just this entry in the core log:
WARN(2002-03-26) 09:11.01:401   [core]
(/cocoon/Kurt/testsxml/HD/base/query.xml)
HttpProcessor[8080][3]/LogKitLogger: Could not return Connection
java.lang.IllegalStateException: There are no connections in the pool,
check your settings.

I defined my connection in the sitemap:
 
  



where the connection name points to the following datasource in
cocoon.xconf:


  
  true
  jdbc:oracle:thin:@pallas6:1521:PAIG
  verbalix
  xml


If I try to execute a test query based on this entries, nothing happens,
but Cocoon seems to be working in the background (very high CPU usage by
java.exe), and I have to force Tomcat to shutdown. The settings in xconf
return data when used in a regular Java program.

Any ideas what's going wrong?


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

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

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

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



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

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

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

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




RE: Problems accessing database,


First you have to load Oracle driver in WEB-INF/web.xml


  load-class
  
   
oracle.jdbc.driver.OracleDriver
  
  




-Original Message-
From: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 26, 2002 11:56 AM
To: '[EMAIL PROTECTED]'
Subject: TR: Problems accessing database,


Now I found an additional entry in the access log:

DEBUG   (2002-03-26) 10:48.43:410   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: parent-component-manager was not set -
defaulting to null.
DEBUG   (2002-03-26) 10:48.43:430   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Trying to load class:
oracle.jdbc.driver.OracleDriver
WARN(2002-03-26) 10:48.43:440   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Could not force-load class:
oracle.jdbc.driver.OracleDriver
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)


Does anybody why Cocoon can't load the class while the same is working
in a Java program? 

-Message d'origine-
De: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] 
Date: mardi, 26. mars 2002 10:16
À: [EMAIL PROTECTED]
Objet: Problems accessing database,


Cocoon 2.01, Tomcat 4.01, Oracle db

I can't access my Oracle db, no errors, just this entry in the core log:
WARN(2002-03-26) 09:11.01:401   [core]
(/cocoon/Kurt/testsxml/HD/base/query.xml)
HttpProcessor[8080][3]/LogKitLogger: Could not return Connection
java.lang.IllegalStateException: There are no connections in the pool,
check your settings.

I defined my connection in the sitemap:
 
  



where the connection name points to the following datasource in
cocoon.xconf:


  
  true
  jdbc:oracle:thin:@pallas6:1521:PAIG
  verbalix
  xml


If I try to execute a test query based on this entries, nothing happens,
but Cocoon seems to be working in the background (very high CPU usage by
java.exe), and I have to force Tomcat to shutdown. The settings in xconf
return data when used in a regular Java program.

Any ideas what's going wrong?


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

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

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

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



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

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




RE: problems installing cocoon 2.0.1


Hi Diego,

I have the same configuration and I didn't copy cocoon under webapps
directory, but the cocoon.war file. Then I restarted Tomcat so that the war
file can be unpacked.

Then you have to copy the batik...jar and xml-apis.jar file to the
common/lib directory and restart tomcat again.

Maybe that helps.

- Volker -

-Original Message-
From: Diego Lluna [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 26. März 2002 11:12
To: [EMAIL PROTECTED]
Subject: problems installing cocoon 2.0.1



Dear friends,

I'm stuck trying to install cocoon 2.0.1.

The details are:

W2000 professional
tomcat 4.0.3 installed and working fine
cocoon copied under webapps directory
listening to 8080 port
.war file copied and automatically decompressed under webapps
JAVA_HOME path set ok to jdk1.3
what I get is:
> type Exception report
> message Internal Server Error
> description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.
> exception 
> javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
exception
>   at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
5)
> ...

anybody can help?

Thanks many

--
Diego Lluna Berlato
Centro de Tecnologías de la Información

Instituto Catalán de Tecnología
C/Ciutat de Granada, 131 - 08018 Barcelona
Tel/ 0034.93.485.85.85
Fax/ 0034.93.485.85.88
http://www.ictnet.es

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

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

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

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


problems installing cocoon 2.0.1



Dear friends,

I'm stuck trying to install cocoon 2.0.1.

The details are:

W2000 professional
tomcat 4.0.3 installed and working fine
cocoon copied under webapps directory
listening to 8080 port
.war file copied and automatically decompressed under webapps
JAVA_HOME path set ok to jdk1.3
what I get is:
> type Exception report
> message Internal Server Error
> description The server encountered an internal error (Internal Server Error) that 
>prevented it from fulfilling this request.
> exception 
> javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception
>   at 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> ...

anybody can help?

Thanks many

--
Diego Lluna Berlato
Centro de Tecnologías de la Información

Instituto Catalán de Tecnología
C/Ciutat de Granada, 131 - 08018 Barcelona
Tel/ 0034.93.485.85.85
Fax/ 0034.93.485.85.88
http://www.ictnet.es

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

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




RE: [Announcement] Apache Cocoon 2.0.2 Release


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 26, 2002 10:38 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [Announcement] Apache Cocoon 2.0.2 Release
>
>
> Dear Cocoon Dev Team,
>
> Congratulations - I look forward eagerly to my download completing!.
> - I'm in the UK and BT haven't got ADSL working in my exchange so
> it'll take
> a while at 56k ;-{
>

Hi, thanks!

> Just a couple of nitpicks ...
>
> 1)The cocoon homepage still referds to 2.0.1 :-
>
Yes, i'm currently updating it, so in some time it will be showing the new
release.

> ===
> Apache Cocoon 2.0.1 is the latest release of the XML publishing framework.
> If you are looking for Cocoon 1 go here.
>
> This documentation is not complete because documentation is never complete
> anyway. However the current release is stable and tested thoroughly and
> you'll find lots of samples which show and explain the power of Apache
> Cocoon 2.0.1. We welcome you into this new world of XML wonders :-)
> ===
>
> 2)There appears to be no source .zip in the distribution download
> directory.
> There's a src.tar.gz which will probably work for me - though
> tar.gz worries
> my antivirus.
> There's even a src.zip.sig !
>
Yes, thanks - the src.zip dist is currently uploading on the server, It
should be there in 5 minutes.

> Just to say again, the above are just nitpicks.
>
> I look forward to exploring the latest wonders of a wonderful
> piece of work!
>
Thanks

Carsten


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

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




AW: AW: cocoon & Websphere 3.55


Hi Michael.

There are install instructions for Cocoon 1 on the website
http://xml.apache.org/cocoon1/install.html

Do you have all jar files from the Cocoon 2.0.1 install in your
classpath? It looks like you missed some...

Cheers, Michael

-Ursprüngliche Nachricht-
Von: Souillard M Ext DvSI/SICoR
[mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. März 2002 08:29
An: [EMAIL PROTECTED]
Betreff: Re: AW: cocoon & Websphere 3.55



I deployed Cocoon 2.0.1 (the war file) within WAS3.55, and added the jar
file in the classpath of my application server containing the cocoon web
application, and I got the same error (errors included bellow)

Any other tip / idea ? ?

Does anybody work with WAS3.5x and Cocoon 1.x ?

Michael.


*** STDERR
Logging Error: Could not set up Cocoon Logger, will use screen instead
org.xml.sax.SAXParseException: File "" not found.
 at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1219)
 at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(
DefaultEntityHandler.java:501)
 at
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:314)
 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1097)
 at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.bu
ild(DefaultConfigurationBuilder.java:187)
 at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.bu
ild(DefaultConfigurationBuilder.java:166)
 at
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:58
3)
 at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:165)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManage
r.java:622)

*** STDOUT
[02.03.25 11:57:56:410 GMT+00:00] d5dc3a6f ServletHost   A Loading
group: "cocoon"
[02.03.25 11:57:58:103 GMT+00:00] d5dc3a6f ServletInstan A SRVE0048I:
Loading servlet: "Cocoon2"
[02.03.25 11:57:58:183 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
[Servlet LOG]: "Cocoon2: init"
[02.03.25 11:58:00:376 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
[Servlet LOG]: "DEBUG   (2002-03-25) 11:58.00:376   []
(Unknown-URI) Unknown-thread/LogKitLogger: Logger for category access
not defined in configuration. New Logger created and returned
"
[02.03.25 11:58:00:416 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
[Servlet LOG]: "DEBUG   (2002-03-25) 11:58.00:416   [access  ]
(Unknown-URI) Unknown-thread/CocoonServlet: getRealPath for /:
D:\WebSphere\AppServer\hosts\default_host\cocoon\web
"
[02.03.25 11:58:00:446 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
[Servlet LOG]: "DEBUG   (2002-03-25) 11:58.00:446   [access  ]
(Unknown-URI) Unknown-thread/CocoonServlet: URL for Root:
file:/D:/WebSphere/AppServer/hosts/default_host/cocoon/web/
"
[02.03.25 11:58:00:476 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
[Servlet LOG]: "DEBUG   (2002-03-25) 11:58.00:476   [access  ]
(Unknown-URI) Unknown-thread/CocoonServlet: work-directory was not set -
defaulting to
d:\WebSphere\AppServer\temp\default_host\cocoon\cocoon-files
"
[02.03.25 11:58:00:697 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
[Servlet LOG]: "DEBUG   (2002-03-25) 11:58.00:697   [access  ]
(Unknown-URI) Unknown-thread/CocoonServlet: upload-directory was not set
- defaulting to
d:\WebSphere\AppServer\temp\default_host\cocoon\cocoon-files\upload-dir
"
[02.03.25 11:58:00:727 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
[Servlet LOG]: "DEBUG   (2002-03-25) 11:58.00:727   [access  ]
(Unknown-URI) Unknown-thread/CocoonServlet: cache-directory was not set
- defaulting to
d:\WebSphere\AppServer\temp\default_host\cocoon\cocoon-files\cache-dir
"
[02.03.25 11:58:00:757 GMT+00:00] d5dc3a6f WebGroup  A SRVE0091I:
[Servlet LOG]: "DEBUG   (2002-03-25) 11:58.00:757   [access  ]
(Unknown-URI) Unknown-thread/CocoonServlet: Using configuration file:
/cocoon.xconf
"
[02.03.25 11:58:00:787 GMT+00:00] d5dc3a6f ServletInstan X Uncaught
init() exception thrown by servlet {0}: {1}
  "Cocoon2"
  javax.servlet.ServletException
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManage
r.java:635)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecyc
leServlet.java:136)
at
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLife
cycleServlet.java:244)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycl
eServlet.java:102)
at
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:2
95)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)




Michael Zehrer a écrit :
> 
> Hi Michael,
> 
> with Cocoon 2.0.1+ you can use the import WAR wizard in WAS 3.5.5,
> additonally you only have to put all jar-files in the classpath
argument
> of the application server (-classpath foo.jar;bar.jar etc)
> 
> Then it just works...
> 
> Cheers, Michael
> 
> -Ursprüngliche Nachricht-
> Von: Souillard M Ext DvSI/SICoR
> [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 25. März 2002 12:59
> An: Cocoon User-L

TR: Problems accessing database,


Now I found an additional entry in the access log:

DEBUG   (2002-03-26) 10:48.43:410   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: parent-component-manager was not set -
defaulting to null.
DEBUG   (2002-03-26) 10:48.43:430   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Trying to load class:
oracle.jdbc.driver.OracleDriver
WARN(2002-03-26) 10:48.43:440   [access] (Unknown-URI)
Unknown-thread/CocoonServlet: Could not force-load class:
oracle.jdbc.driver.OracleDriver
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)


Does anybody why Cocoon can't load the class while the same is working in a
Java program? 

-Message d'origine-
De: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]] 
Date: mardi, 26. mars 2002 10:16
À: [EMAIL PROTECTED]
Objet: Problems accessing database,


Cocoon 2.01, Tomcat 4.01, Oracle db

I can't access my Oracle db, no errors, just this entry in the core log:
WARN(2002-03-26) 09:11.01:401   [core]
(/cocoon/Kurt/testsxml/HD/base/query.xml)
HttpProcessor[8080][3]/LogKitLogger: Could not return Connection
java.lang.IllegalStateException: There are no connections in the pool, check
your settings.

I defined my connection in the sitemap:
 
  



where the connection name points to the following datasource in
cocoon.xconf:


  
  true
  jdbc:oracle:thin:@pallas6:1521:PAIG
  verbalix
  xml


If I try to execute a test query based on this entries, nothing happens, but
Cocoon seems to be working in the background (very high CPU usage by
java.exe), and I have to force Tomcat to shutdown. The settings in xconf
return data when used in a regular Java program.

Any ideas what's going wrong?


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

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

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

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




RE: HTML Output Issues


> -Original Message-
> From: Corey Jewett [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, March 26, 2002 12:50 PM
> To: [EMAIL PROTECTED]
> Subject: HTML Output Issues
> 
> 
> Rookie cocoon user. Asked this question about a week ago and got no
> answer, trying to rephrase it.
> 
> I have very simple XML documents. I'm using a simple XSL to insert
> content (from the XML) into an XHTML skin. Works well except the
> resulting HTML is modified which breaks browser display compatibility
> (menu layout spacing is drastically, and incorrectly, 
> changed). Example:
> 
> Input:
> 

Are you using separate templates for  and its contents? Could you post
the part of your XSLT that formats this string?

Regards,
Konstantin Piroumian

> 
> 
> Output:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Is there some way to keep the XHTML that is embedded in my XSL from
> being reformatted this way. I've tried messing with a variety 
> of XML and
> XSL whitespace control techniques, but none with the desired result.
> 
> Any help would be appreciated.
> 
> Corey
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




HTML Output Issues


Rookie cocoon user. Asked this question about a week ago and got no
answer, trying to rephrase it.

I have very simple XML documents. I'm using a simple XSL to insert
content (from the XML) into an XHTML skin. Works well except the
resulting HTML is modified which breaks browser display compatibility
(menu layout spacing is drastically, and incorrectly, changed). Example:

Input:



Output:









Is there some way to keep the XHTML that is embedded in my XSL from
being reformatted this way. I've tried messing with a variety of XML and
XSL whitespace control techniques, but none with the desired result.

Any help would be appreciated.

Corey


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

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




RE: [Announcement] Apache Cocoon 2.0.2 Release


Dear Cocoon Dev Team,

Congratulations - I look forward eagerly to my download completing!.
- I'm in the UK and BT haven't got ADSL working in my exchange so it'll take
a while at 56k ;-{

Just a couple of nitpicks ...

1)  The cocoon homepage still referds to 2.0.1 :-

===
Apache Cocoon 2.0.1 is the latest release of the XML publishing framework.
If you are looking for Cocoon 1 go here.

This documentation is not complete because documentation is never complete
anyway. However the current release is stable and tested thoroughly and
you'll find lots of samples which show and explain the power of Apache
Cocoon 2.0.1. We welcome you into this new world of XML wonders :-)
===

2)  There appears to be no source .zip in the distribution download
directory.
There's a src.tar.gz which will probably work for me - though tar.gz worries
my antivirus.
There's even a src.zip.sig !

Just to say again, the above are just nitpicks.

I look forward to exploring the latest wonders of a wonderful piece of work!

Chris Watson

> -Original Message-
> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
> Sent: 26 March 2002 08:51
> To: Cocoon-Dev; Cocoon-Users
> Subject: [Announcement] Apache Cocoon 2.0.2 Release
>
>
> Apache Cocoon 2.0.2 Released
> 
>
>The Apache Cocoon team is proud to announce the new release
>of Apache Cocoon.
>
>
> Apache Cocoon is an XML framework that raises the usage of
> XML and XSLT technologies for server applications to a new level.
> Designed for performance and scalability around pipelined SAX
> processing, Cocoon offers a flexible environment based on the
> separation of concerns between content, logic and style.
> A centralized configuration system and sophisticated caching
> top this all off and help you to create, deploy and maintain
> rock-solid XML server applications.
>
>
>
> Today, most web engineers consider XML as the key for an improved
> web model and web site managers see XML as a way to reduce costs
> and ease production. In an era where services rather than software
> will be key for economic success, a better and less
> expensive model
> for web publishing will be a winner, especially one based on open
> standards.
>
>
>
> This release of Cocoon is a maintainance release focusing on
> improved performance and robustness. In addition some bugs were
> fixed and new features were added. See the following changes list
> for more information.
>
>
>
> For more information about Apache Cocoon 2.0.2, please go to
> http://xml.apache.org/cocoon
>
> Changes with Apache Cocoon 2.0.2
>
> *) New BootstrapServlet to allow Cocoon torun in non-compliant servlet
> engines that don't handle correctly servlet contexts. This
> servlet builds a
> class loader with the contents of WEB-INF/classes and WEB-INF/lib and
> manages resource resolution. [SW]
>
> *) Updated error reporting to add line, column and location attributes
> specified in SAXException and TransformerException. The error
> page in the
> webapp examples shows the new extra info. [NKB]
>
> *) Added new "gump" target to the build, to be used as a
> general test of
> Cocoon code. To be used by Gump. It calls docs, javadocs,
> test and package.
> Gump descriptor has been modified to use it; now we also have
> automatic
> javadoc creation. [NKB]
>
> *) cocoon.xconf is moved in WEB-INF for security reasons. The
> documentation
> has been updated to reflect the change. [NKB]
>
> *) Partial commit of new samples structure. Samples go in
> samples/ dir with
> theit own sitemap. All scratchpad samples that are in the
> samples/ subdir
> are copied in webapp samples automatically by
> installscratchpadwar target.
> [NKB]
>
> *) New "set-content-length" configuration for FOPSerializer to allow
> streaming of large PDFs (default is true for backwards
> compatibility). [SW]
>
> *) The docs now have svg stuff removed and these
> enhancements: menu items
> are in text, page title is in text, pages have new clean
> style courtesy of
> Stefano, added Stefano's explanation on how to write mails,
> the docs are
> generated with the TreeProcessor, the docs generation uses
> JispStore. [NKB]
>
> *) Added new targets: "installwar" asks for the directory in
> which to put
> the war and makes it. "installscratchpadwar" does the same but incudes
> scratchpad libs ans samples. [NKB]
>
> *) New POI HSSF Serializer; outputs to the .xls (not .xsl)
> file format.
> Added samples as legacy file format support. [NKB]
>
> *) New module structure for input, output, and database specifica in
> scratchpad. Thus it is possible to write generic components
> for one task and
> replace input and output dynamically. As an example a generic
> version of a
> WildcardMatcher is provided as well as a sample action that uses it.
> DatabaseActions in scratchpad use this structure as well. [CH]
>
> *) Moved ModularDatabase*A

Problems accessing database,


Cocoon 2.01, Tomcat 4.01, Oracle db

I can't access my Oracle db, no errors, just this entry in the core log:
WARN(2002-03-26) 09:11.01:401   [core]
(/cocoon/Kurt/testsxml/HD/base/query.xml)
HttpProcessor[8080][3]/LogKitLogger: Could not return Connection
java.lang.IllegalStateException: There are no connections in the pool, check
your settings.

I defined my connection in the sitemap:
 
  



where the connection name points to the following datasource in
cocoon.xconf:


  
  true
  jdbc:oracle:thin:@pallas6:1521:PAIG
  verbalix
  xml


If I try to execute a test query based on this entries, nothing happens, but
Cocoon seems to be working in the background (very high CPU usage by
java.exe), and I have to force Tomcat to shutdown. The settings in xconf
return data when used in a regular Java program.

Any ideas what's going wrong?


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

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




[Announcement] Apache Cocoon 2.0.2 Release


Apache Cocoon 2.0.2 Released


   The Apache Cocoon team is proud to announce the new release
   of Apache Cocoon.


Apache Cocoon is an XML framework that raises the usage of
XML and XSLT technologies for server applications to a new level.
Designed for performance and scalability around pipelined SAX
processing, Cocoon offers a flexible environment based on the
separation of concerns between content, logic and style.
A centralized configuration system and sophisticated caching
top this all off and help you to create, deploy and maintain
rock-solid XML server applications.



Today, most web engineers consider XML as the key for an improved
web model and web site managers see XML as a way to reduce costs
and ease production. In an era where services rather than software
will be key for economic success, a better and less expensive model
for web publishing will be a winner, especially one based on open
standards.



This release of Cocoon is a maintainance release focusing on
improved performance and robustness. In addition some bugs were
fixed and new features were added. See the following changes list
for more information.



For more information about Apache Cocoon 2.0.2, please go to
http://xml.apache.org/cocoon

Changes with Apache Cocoon 2.0.2

*) New BootstrapServlet to allow Cocoon torun in non-compliant servlet
engines that don't handle correctly servlet contexts. This servlet builds a
class loader with the contents of WEB-INF/classes and WEB-INF/lib and
manages resource resolution. [SW]

*) Updated error reporting to add line, column and location attributes
specified in SAXException and TransformerException. The error page in the
webapp examples shows the new extra info. [NKB]

*) Added new "gump" target to the build, to be used as a general test of
Cocoon code. To be used by Gump. It calls docs, javadocs, test and package.
Gump descriptor has been modified to use it; now we also have automatic
javadoc creation. [NKB]

*) cocoon.xconf is moved in WEB-INF for security reasons. The documentation
has been updated to reflect the change. [NKB]

*) Partial commit of new samples structure. Samples go in samples/ dir with
theit own sitemap. All scratchpad samples that are in the samples/ subdir
are copied in webapp samples automatically by installscratchpadwar target.
[NKB]

*) New "set-content-length" configuration for FOPSerializer to allow
streaming of large PDFs (default is true for backwards compatibility). [SW]

*) The docs now have svg stuff removed and these enhancements: menu items
are in text, page title is in text, pages have new clean style courtesy of
Stefano, added Stefano's explanation on how to write mails, the docs are
generated with the TreeProcessor, the docs generation uses JispStore. [NKB]

*) Added new targets: "installwar" asks for the directory in which to put
the war and makes it. "installscratchpadwar" does the same but incudes
scratchpad libs ans samples. [NKB]

*) New POI HSSF Serializer; outputs to the .xls (not .xsl) file format.
Added samples as legacy file format support. [NKB]

*) New module structure for input, output, and database specifica in
scratchpad. Thus it is possible to write generic components for one task and
replace input and output dynamically. As an example a generic version of a
WildcardMatcher is provided as well as a sample action that uses it.
DatabaseActions in scratchpad use this structure as well. [CH]

*) Moved ModularDatabase*Actions to new home in scratchpad and reworked
them. They now use new module structure. For sample application, copy mod-db
directory to cocoon/mount. [CH]

*) Changed jdbc datasource to ResourceLimitingJdbcDataSource because it does
not require to be able to contact the datasource on startup. Thus race
condition with HSQLDB startup is eliminated. [CH]

*) Added new Jisp based persistence cache, to improve (1) performance and
(2) to solve the problem with long filenames on Windows OS flavours. [VG,GF]

*) Removed explicit System.gc() call from StoreJanitor, because this caused
performance leaks. [GF]

*) Added support for input type=image buttons [TC]

*) Deprecated the old cocoon-action=ACTION syntax in favor of the new
cocoon-action-[ACTION]=whatever. Still supported though. [TC]

*) Added encodeURL transformer for encoding URIs. [BH]

*) Using migrated XPath Processor from Avalon Excalibur instead of own
component. [CZ]

*) Fixed endless loop bug in IncludeXMLConsumer. [CZ]

*) Added  attribute now processed correctly, as
described in the xsp-session logicsheet documentation. Variable 'session'
declared and could be used in XSP page code. [VG]

*) New implementation of the sitemap engine based on an evaluation tree.
This provides super-fast load times (no more compilation), and a slight gain
in request processing speed compared to the compiled engine thanks to the
HotSpot VM. [SW]

*) Added matchers: HeaderMatcher, Parameter