RE: Version Hell

2002-06-13 Thread Darrell Cumming

Have a look at your $COCOON_DIR/WEB-INF/cocoon.xconf 

Under the sitemap section. :)

It explains something like this;


The reload-method specifies the method for the regeneration:
asynchron: If the sitemap changes, the sitemap is regenerated at the
   next request in the background and the incoming request is
   served with the old sitemap. All subsequent requests are
   served with the old sitemap until the regeneration in the
   background has finished.
synchron: If the sitemap changes, the sitemap is regenerated at the
  next request. When the regeneration is finished, the request
  (and all subsequent ones) is served with the new sitemap.



So set the reload-method to syncron and your problem will go away.

FYI: I searched the archives and found this response from Vadim Gritsenko 

http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102379851819365&w=2

He states that the _DEFAULT_ asynchron reload-method is broken and will be
removed from > 2.03. 

Good luck.


Darrell

> -Original Message-
> From: daniel robinson [mailto:[EMAIL PROTECTED]] 
> Sent: June 13, 2002 3:06 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Version Hell
> 
> 
> Oh, one more thing.  The error reported when I go to the Cocoon page 
> stops occurring after a minute or two.  In other words, make 
> a change in 
> the sitemap, save, get error, wait a minute, error all gone. (repeat 
> process because you think you've done something wrong).  What 
> is THAT about?
> 
> daniel robinson wrote:
> 
> > I was running fine under Tomcat 4.0.3 and Cocoon 2.0.0.  As part of
> > migrating to an ISP I needed to switch to c 2.0.2.  so:
> >
> > I downgraded to Tomcat 3.3.1 (because the install was going to be
> > easier and I had had trouble with 4.0.3)
> > It is working fine, so I installed c 2.0.2
> > It was ok so I installed my app (I placed the 2.0.2 libs in my lib 
> > directory and then created a WAR)
> > I got this error:
> >
> > java.lang.RuntimeException: No compiler found in your 
> classpath. Make
> > sure you added 'tools.jar'
> >at 
> > 
> org.apache.cocoon.components.language.programming.java.Javac.(
> Javac.java:91) 
> >
> >
> > I couldn't figure out what was going on as my classpath seems to be
> > fine and I haven't changed ANYTHING in my system while I was doing 
> > this upgrade, I though it might be some problem with 
> environment space 
> > (Windows98) so I tried to force the cocoon installation to 
> compile the 
> > sitemap.  I put a couple of spaces in that file (in an inoffensive 
> > location) and now cocoon reports:
> >
> > java.lang.NullPointerException
> >at
> > 
> org.apache.cocoon.www.sitemap_xmap.process(D:\Programs\Tomcat4
> \work\DEFAULT\cocoon\cocoon-files\org/apache/cocoon/www\sitema
> p_xmap.java:3088) 
> >
> >at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
> >
> >
> > When I restarted Tomcat this error went away, but came 
> right back when
> > I edited the sitemap file.
> >
> > I'm lost.
> >
> > Dan
> >
> >
> >
> > 
> -
> > Please check that your 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: C2/Solaris8/Jakarta 4.0.3

2002-05-30 Thread Darrell Cumming

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

Goto the section on installing cocoon in tomcat 4.03.

Maybe you might have more luck with 4.04beta. 

Good Luck.

Darrell

> -Original Message-
> From: Zack Angelo [mailto:[EMAIL PROTECTED]] 
> Sent: May 30, 2002 1:37 PM
> To: [EMAIL PROTECTED]
> Subject: C2/Solaris8/Jakarta 4.0.3
> 
> 
> I'm attempting to get C2 to run with Solaris 8, Jakarta 4.0.3 
> and JRE 1.3.1. I'm getting a class cast exception saying that 
> org.apache.xerces.parsers.SAXParser does not implement 
> XMLReader. I've copied the appropriate jars from the cocoon 
> package into Jakarta/common/lib...Any ideas? 
> 
> -Zack
> 
> 
> 
> -
> Please check that your 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: XSP Function to get URL

2002-05-16 Thread Darrell Cumming

Hi Zack,

You can get all that kind information from the request object. 

So maybe have a look at the Request Logic sheet. In the samples its
http://localhost:8080/cocoon/xsp/request

And the docs are  here.
http://xml.apache.org/cocoon/userdocs/xsp/request.html 

Hope that helps.

Darrell

> -Original Message-
> From: Zack Angelo [mailto:[EMAIL PROTECTED]] 
> Sent: May 16, 2002 8:52 PM
> To: [EMAIL PROTECTED]
> Subject: XSP Function to get URL
> 
> 
> Is there an XSP or Java class I can access that will give me 
> the URL of the current page? 
> 
> TIA,
> Zack
> 
> 
> -
> Please check that your 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: HSSF serializer/ Gnumeric file format information

2002-04-30 Thread Darrell Cumming

Hi Micheal, 

If you have a look in your COCOON_HOME/samples/poi/ 
there is some sample xml docuemnts and stylesheets to get started with. =)

Hope that helps.

Darrell

> -Original Message-
> From: Michael Aracic [mailto:[EMAIL PROTECTED]] 
> Sent: April 30, 2002 1:55 PM
> To: [EMAIL PROTECTED]
> Subject: HSSF serializer/ Gnumeric file format information
> 
> 
> Please forgive me for asking somewhat basic questions, but 
> I'm new to the list, and to cocoon. I've read a lot of the 
> online documentation, and I can't find anything detailed or 
> up to date about the HSSF serializer. I'm developing a 
> hands-off way to generate reports in excel format without 
> necessarily depending on windows hosted code. From what I've 
> read, the most platform-independent, flexible way of doing 
> this is currently using Cocoon's HSSF serializer. It sounds 
> like the simplest approach is to create an XSL stylesheet 
> that will transform our reporting program's XML output into 
> Gnumeric style XML, then run cocoon in command line mode, 
> reading in the XML reports. Cocoon will be configured to do 
> the transformation, then use the HSSF serializer to output 
> excel files. My questions are: 1. Have I overlooked anything 
> huge? 2. Where can I find information on HSSF or the Gnumeric 
> file format? I've used all the major search engines and 
> looked at all relevant project pages, and I haven't been able 
> to find what I need, which would include a description of the 
> Gnumeric file format, and exactly how the HSSF serializer 
> needs to be fed its input. 3. I imagine that the differences 
> between the XML that comes out of my reports program, and the 
> XML that is required by the serializer will be quite 
> profound. Are there any tools or resources that can help me 
> write the XSL stylesheet? I've read dozens of explanations of 
> how to transform different kinds of XML documents into HTML, 
> but very few about how to transform it into anything else. 
> Thanks, Michael Aracic
> 
> -
> Please check that your 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]>




Cocoon2 and mssql server

2002-03-19 Thread Darrell Cumming

Hi 

I'm working with cocoon2 and trying to access MSSQL stored procedures and
having not so much luck. I tried The SQLTransformer which works great with
queries, but stored procedures return nothing. Looking around the archives
this appears to be the SQLTransformer doesn't expect result sets from Stored
Procedures and should just be out parameters. And there is a patch even for
a really old version of SQLTransformer.java.

http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101316887401395&w=2

 So from what I had read it seems people should use esql, so I tried the
esql logicsheet, and more specifically I tried it with the j-netdirect
JSQLConnect jdbc driver and the MS jdbc driver (beta2). Now with esql I can
get ouput from stored procedures just fine, but when having to supply
parameters the ms jdbc driver gives

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error executing
prepared statement: usp_Report_CustomerReport(?): java.sql.SQLException:
[Microsoft][SQLServer JDBC Driver][SQLServer]Line 1: Incorrect syntax near
'usp_Report_CustomerReport'. 

But if I change the datasource to the JSQLConnect driver, it works fine
until the second to last row (there is about 1600 rows returned) and then I
get a NullPointerException.

Not trying other stored procedures , I get mixed results, or none where
there should be some has anyone had any luck with mssql stored procedures
(that return resultsets) and cocoon2 ?

Any input would be appreciated.

Thanks.

Darrell.

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

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