java.lang.NullPointerException: Null content handler

2002-04-05 Thread Aslam Ahmed

Hello Friends, 
  First time i'm using cocoon. 
My system configration is as follows: 
I've installed JDK1.3, cocoon2.0 and Tomcat3.3a on windows 2000 server 
machine. 
 First time i ran the cocoon from my browser using the URL: 
http://localhost:8080/cocoon then i got the following error. 
Any body help me to sort out this problem. 
   My thanks in Advance. 


type internal-server-error 

message Null content handler 

description java.lang.NullPointerException: Null content handler 

sender org.apache.cocoon.servlet.CocoonServlet 

source Cocoon servlet 

request-uri 

/cocoon/ 

exception 

java.lang.NullPointerException: Null content handler 

path-info 



stacktrace 

java.lang.NullPointerException: Null content handler 
at org.xml.sax.helpers.XMLFilterImpl.setContentHandler(Unknown Source) 
at 
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.addLogicsheet(LogicsheetCodeGenerator.java:98)
 
at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogicsheetsToGenerator(AbstractMarkupLanguage.java:304)
 
at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage$TransformerChainBuilderFilter.startElement(AbstractMarkupLanguage.java:511)
 
at 
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage$SitemapTransformerChainBuilderFilter.startElement(SitemapMarkupLanguage.java:368)
 
at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source) 
at 
org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage$PreProcessFilter.startElement(SitemapMarkupLanguage.java:211)
 
at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:342) 
at 
org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:401) 
at 
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:809)
 
at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:556) 
at 
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:2678)
 
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:782) 
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
 
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
 
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:328)
 
at 
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:479)
 
at 
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:521)
 
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148) 
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:972) 
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) 
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source) 
at 
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:130)
 
at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:275)
 
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:309)
 
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:271)
 
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:188)
 
at org.apache.cocoon.sitemap.Handler.run(Handler.java:208) 
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]>




Extra namespace declarations in XML from XSP

2002-04-05 Thread Stephen Ng

[Sorry if this is being posted twice; my email is misbehaving so I'm not
sure if this went out.]

I'm running into a small nuisance with Cocoon 2.0.2 (I'm running WinXP).

After my XSP has been processed, I find the resulting xml file still has
all the namespaces from the xsp.

This is bumming me out because I have unit tests on my xml output, and I
have to update them to include these extraneous namespaces every time I
refactor my xsp's.  (Plus it's a little wasteful to pass these namespace
declarations around when they aren't needed).

To see an example of this, go to docs/samples/xsp/hello.xsp.

Change the first line to read:

http://apache.org/xsp";
xmlns:foo="http://www.bigcompany.com"; exclude-result-prefixes="foo">

Then navigate to:

http://localhost:8080/cocoon/xsp-plain/hello?cocoon-view=content

You should get:


http://apache.org/xsp"; xmlns:foo="http://lumigent.com";>
  Hello
  
This is my first Cocoon page!
With the help of XSP and Apache Cocoon 2.0.2
  


Notice how you get an xmlns:foo declaration here.

Exclude-result-prefixes doesn't seem to make a difference.  In my case,
I have quite a few namespaces, such as cinclude, esql, etc.

I went into esql.xsl and threw in exclude-result-prefixes="esql" on
xsl:stylesheet, but it didn't make a difference.

So now I'm stumped.

Anyone out there know how to fix this?

Thanks,

Stephen Ng
Lumigent


-
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]Exception in creating Transform Handler

2002-04-05 Thread Vadim Gritsenko

> From: Darko Bunic [mailto:[EMAIL PROTECTED]]

... 

> Problem is: if I made xsl non-well-formed or non-valid
> 
> for example:
> 
> change to
> 
> 
> I got following error:
> Exception in creating Transform Handler

Reasonable.
 
 
> I spent a lot of time to find and isolate where is the error.

I fixed in the CVS error reporting in the XSLT engine, now it will show
to you line number and the file containing the error (thanks goes to
Nicola!)
 

> Maybe I didn't configure cocoon well - or where I can turn on
validation of
> XSL files?

There is no such notion in the Cocoon. Either Xalan is able to
understand the XSLT file or it throws a SAXException.

 
> Please help and thanks in advance!
> 
> At the and I will attach extra info:
> 
> org.apache.cocoon.ProcessingException: Exception in creating Transform
Handler
> at

...

Vadim


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

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




RE: C2 JPEG SVG Compression

2002-04-05 Thread Vadim Gritsenko

> From: MJ Ray [mailto:[EMAIL PROTECTED]]
>
> Vadim Gritsenko wrote:
> >> Looking at the source on there (a not-too-recent CVS copy), it
seems that
> >> the JPEGTranscoder doesn't get the Hint for the compression set.
Has
> >> this been fixed and when (2.0.2? current CVS?)?  Where is it best
fixed?
> >
> > IIRC, there were NO changes in the SVG serialization area.
> > PS Send in a patch.
> 
> On second(*) inspection,
> src/java/org/apache/cocoon/serialization/SVGSerializer.java has a
> configure() method, which goes through and adds hints found in a
> configuration.  Trying to figure out where to set this configuration
option,
> http://archive.covalent.net/xml/cocoon-dev/2000/04/0240.xml suggests
that
> sitemap is the right place.  Digging around after the fact, I see a
similar
> configuration problem is dealt with in
> http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html
> 
> The form of the options has changed over time, but setting
> 
>  src="org.apache.cocoon.serialization.SVGSerializer"
mime-type="image/jpeg">
>  
> 
> 
> in the sitemap seems to work, looking at the logs.  I hope that helps
> someone else, too.  The generated error didn't seem to relate to the
sitemap
> in any way.  Perhaps the option should be set in the default
cocoon.war's
> sitemap file?

Thanks a ton. This went straight into CVS.

Vadim

> 
> --
> 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: Could not access component for hint

2002-04-05 Thread Vadim Gritsenko

Only log file and exception stack trace know the answer on this. IIRC,
the page you are citing advices to read log file.

Vadim

-Original Message-
From: Cristina Ulivi [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 05, 2002 10:56 AM
To: [EMAIL PROTECTED]
Subject: Could not access component for hint

Hi all.
I've installed Tomcat 4.0.1& Cocoon 2.0.1 on a Windows 2000 o.s.
It's all right, but now when I invoke the page
"intrasl\flussi\upload.xsp" to upload a file I have the next error:
Could not access component for hint:
org\apache\cocoon\www\intrasl\flussi\upload_xsp
 
Someone of you can tell me why, please?
 
Thank you.
  Cris
 


-
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.1 - esql stored proc problem

2002-04-05 Thread Argyn Kuketayev

I have two nested queries and one nested stored procedure call. I couldn't
get resluts from the stored procedure. Cocoon says: 
org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.ClassCastException:
oracle.jdbc.driver.OraclePreparedStatement 

here's a fragment of XSP. 

  

  select ...


 
   

 
   
 


 
  {call PKG_STUDENT.STUD_QUAL_STATUS(
  ,
  ,
  ,
  ,
  )}
 
 
   
(ResultSet)

  
  

   
 




   
 
   
 
   

I couldn't get what's wrong.

Thanks
Argyn

stack trace:
=
Original exception : java.lang.ClassCastException:
oracle.jdbc.driver.OraclePreparedStatement 
at
org.apache.cocoon.components.language.markup.xsp.EsqlQuery.getCallableStatem
ent(EsqlQuery.java:194) 
at
org.apache.cocoon.www.docs.samples.xsp.studentdata_xsp.generate(C:\JBoss-2.4
.1_Tomcat-3.2.3\tomcat\work\localhost_8080%2Fargyn\cocoon-files\org/apache/c
ocoon/www/docs/samples/xsp\studentdata_xsp.java:820) 
at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
tor.java:260) 
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:251) 
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399) 
at
org.apache.cocoon.www.sitemap_xmap.matchN1057A(C:\JBoss-2.4.1_Tomcat-3.2.3\t
omcat\work\localhost_8080%2Fargyn\cocoon-files\org/apache/cocoon/www\sitemap
_xmap.java:7078) 
at
org.apache.cocoon.www.sitemap_xmap.process(C:\JBoss-2.4.1_Tomcat-3.2.3\tomca
t\work\localhost_8080%2Fargyn\cocoon-files\org/apache/cocoon/www\sitemap_xma
p.java:3056) 
at
org.apache.cocoon.www.sitemap_xmap.process(C:\JBoss-2.4.1_Tomcat-3.2.3\tomca
t\work\localhost_8080%2Fargyn\cocoon-files\org/apache/cocoon/www\sitemap_xma
p.java:2519) 
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) 
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) 
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)

at org.apache.cocoon.Cocoon.process(Cocoon.java:575) 
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:983) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) 
at org.apache.tomcat.core.Handler.service(Handler.java:287) 
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) 
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2) 
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) 
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213) 
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) 
at java.lang.Thread.run(Unknown Source) 




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




Unable to determine servlet context URL

2002-04-05 Thread Jordi Guijarro


Hi!
We are installing cocoon 2.0.2 on jakarta tomcat 3.3a (as a war file),
all on a netware server. The JVM version is 1.3.1 (recently upgraded
from 1.1.7b). When we are trying to access cocoon servlet to test it at
the URL http://host:8080/cocoon/ we get this message:

javax.servlet.ServletException: Unable to determine servlet context URL.

 at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:269)

 at org.apache.tomcat.facade.ServletHandler.doInit(Unknown Source)
 at org.apache.tomcat.facade.ServletHandler.init(Unknown Source)
 at
org.apache.tomcat.facade.LoadOnStartupInterceptor.contextInit(Unknown
Source)
 at org.apache.tomcat.core.Context.init(Unknown Source)
 at org.apache.tomcat.core.ContextManager.init(Unknown Source)
 at org.apache.tomcat.startup.EmbededTomcat.initContextManager(Unknown
Source)
 at org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source)
 at org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown Source)
 at
org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Unknown
Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Unknown
Source)
 at org.apache.tomcat.startup.EmbededTomcat.execute(Unknown Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.tomcat.util.IntrospectionUtils.execute(Unknown Source)
 at org.apache.tomcat.startup.Main.execute(Unknown Source)
 at org.apache.tomcat.startup.Main.main(Unknown Source)
Root cause:
java.net.MalformedURLException: unknown protocol: sys
 at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:264)

 at org.apache.tomcat.facade.ServletHandler.doInit(Unknown Source)
 at org.apache.tomcat.facade.ServletHandler.init(Unknown Source)
 at
org.apache.tomcat.facade.LoadOnStartupInterceptor.contextInit(Unknown
Source)
 at org.apache.tomcat.core.Context.init(Unknown Source)
 at org.apache.tomcat.core.ContextManager.init(Unknown Source)
 at org.apache.tomcat.startup.EmbededTomcat.initContextManager(Unknown
Source)
 at org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source)
 at org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown Source)
 at
org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Unknown
Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Unknown
Source)
 at org.apache.tomcat.startup.EmbededTomcat.execute(Unknown Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.tomcat.util.IntrospectionUtils.execute(Unknown Source)
 at org.apache.tomcat.startup.Main.execute(Unknown Source)
 at org.apache.tomcat.startup.Main.main(Unknown Source)

We get the source code of "CocoonServlet.java" at lines 264 and 269, and
the code is :
try {
   if (path.indexOf(':') > 1) {
   this.servletContextURL = new URL(path);
   } else {
   this.servletContextURL = (new File(path)).toURL();
   }
}
 catch (java.net.MalformedURLException me) {
   throw new ServletException("Unable to determine servlet context
URL.", me);
}

When we inspect the log file "access.log" it has the line:

DEBUG   (2002-04-04) 18:23.13:178   [access](Unknown-URI)
Unknown-thread/CocoonServlet: getRealPath for /:
SYS:\jakarta-tomcat-3.3a\webapps\cocoon\

Finally, and having all this information, it seems cocoon is unable of
translate the real path to a context URL.
You know how we can solve this? The problem is caused by "netware and
its caracteristic path"?
May we install an old version of cocoon, as a servlet on tomcat, insteat
of a web application ?

Thanx a lot!


--
Adolfo Amo
Tècnic Mitjà
Serveis Informàtics Distribuïts
Facultat de Ciències



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




[HELP]Exception in creating Transform Handler

2002-04-05 Thread Darko Bunic

Description:org.apache.cocoon.ProcessingException: Exception in creating 
Transform Handler

Hi to all!

My configuration:
Cocoon  - 2.0.2-dev  
tomcat 3.3
jdk 1.3.1
rh6.2 (kernel 2.4.12)

Here is very simple example:

 XSP page looks like:


http://apache.org/xsp";>
  
   Hello
  


- and XSL looks like:


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



... ok this example works 
(I maped this xsl to this xsp page inside sitemap)

Problem is: if I made xsl non-well-formed or non-valid

for example:
 
change to


I got following error:
Exception in creating Transform Handler

More precisely:
org.apache.cocoon.ProcessingException: Exception in creating Transform Handler

I spent a lot of time to find and isolate where is the error. 

Maybe I didn't configure cocoon well - or where I can turn on validation of 
XSL files?

Please help and thanks in advance!

At the and I will attach extra info:

org.apache.cocoon.ProcessingException: Exception in creating Transform Handler
at 
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:271)
at 
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:204)
at 
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:295)
at 
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:215)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:279)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:142)
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:320)
at 
org.apache.cocoon.www.sitemap_xmap.matchN101A3(/var/spool/tomcat3/DEFAULT/ROOT/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1690)
at 
org.apache.cocoon.www.sitemap_xmap.process(/var/spool/tomcat3/DEFAULT/ROOT/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1159)
at 
org.apache.cocoon.www.sitemap_xmap.process(/var/spool/tomcat3/DEFAULT/ROOT/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1070)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java)
at org.apache.tomcat.core.Handler.invoke(Handler.java)
at org.apache.tomcat.core.Handler.service(Handler.java)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java)
at 
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java)
at java.lang.Thread.run(Thread.java:484)

-- 
Darko Bunic - [EMAIL PROTECTED], Bell & Bandack

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




Installing Cocoon on Mac OSX with Tomcat

2002-04-05 Thread Randy Smith

Hi gang,

I'm trying to install Cocoon v2.0.2 with Tomcat v4.0.3 on Mac OSX v10.1.3
and I'm having some problems. I'm sure the main problem is that I'm new at
all this but I had to start somewhere so I leapt in.

I have Tomcat installed and working and I was told by someone on the
[EMAIL PROTECTED] list that all I had to do was put the cocoon.war
file in the tomcat/webapps directory, restart tomcat and that was it. Seemed
too easy and it naturally it didn't work for me. I was wondering if I still
had to follow some of the steps listed at
http://xml.apache.org/cocoon/installing/index.html? Such as replacing the
xalan-XXX.jar, xercesImpl-XXX.jar and xml-apis.jar files in the Tomcat
installed files with the ones from the Cocoon package and also editing the
cocoon/src/webapp/WEB-INF/web.xml file?

The Cocoon package I started with was "cocoon-2.0.2-bin.tar.gz"

Also I'm wondering exactly where the Cocoon directory should go or does the
cocoon.war file cover it all. I've installed Tomcat in ...

/usr/local/jakarta-tomcat-4.0.3
/usr/local/jakarta-tomcat-4.0.3/webapps/cocoon.war

Maybe I should put the cocoon directory in ...

/usr/local/jakarta-tomcat-4.0.3/cocoon/

As you can probably tell I'm new to Unix and its environment and I was
hoping I could get XML transforming without having to do all the clean
builds etc.

Many thanks in advance,
Randy




-
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: Validating an XSL-FO

2002-04-05 Thread J.Pietschmann

Hahn Kurt (CHA) wrote:
> I'm trying to produce PDF-documents, and I'm really desperate. For a while,
> I tried to apply some minor changes to a previously working XSL, and all I
> get since then is the Acrobat message "The file is damaged and could not be
> repaired". However, if I choose xml as ouput instead, everything looks fine
> to me, I get a well-formed document. Is there a way I can validate such a
> document? I mean something similar to a compiler, that tells me at least
> WHERE in the document the error occurred?

Does "if I choose xml as ouput instead, everything looks fine" mean you
get a well-formed FO document? If so, save it to disk and run it through
the commandline FOP application. This won't catch all problems due to
bugs in FOP, but you'll get error messages for most.
There has been various attempts at providing a DTD and a XSchema for
an FO file containing only features understood by FOP, search the
fop-dev archive at http://marc.theaimsgroup.com/?l=fop-dev&r=1&w=2#
which you can use for additional validation (insert a DOCTYPE into
the FO file and feed it to a Xerces sample program, for example the
word counter).

J.Pietschmann



-
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: Is anyone working on a book? Was: Why isn't Cocoon making into the commerical world?

2002-04-05 Thread Jeremy Aston

Actually this book is being written by myself.  For one reason or another
the listing on Amazon was a false start but things are moving along quite
nicely now - teething baby allowing! Hopefully we will see it in the later
summer/early autumn.

Best regards,

Jeremy

 -Original Message-
From:   Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
Sent:   04 April 2002 20:12
To: '[EMAIL PROTECTED]'
Subject:RE: Is anyone working on a book?  Was: Why isn't Cocoon making into
the commerical world?

http://www.amazon.com/exec/obidos/ASIN/0672322579/qid=1017947412/sr=8-7/ref=
sr_8_67_7/102-7961812-4500953

Cocoon Developer's Handbook by Sue Spielman

the lack of dicumentation is a major obstacle on the way to a commercial
success. it also send a message to potential users that developers are not
really committed to the product. the wrong message, actually :)

> -Original Message-
> From: Steven Punte [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 2:09 PM
> To: [EMAIL PROTECTED]
> Subject: Is anyone working on a book? Was: Why isn't Cocoon
> making into
> the commerical world?
>
>
> Cocoon User Group:
>
>It seems like the primary reason people feel
>Cocoon is being held back from entering
>into prime time is documentation.
>
>Just out of interest, is anyone working on
>a full book for Cocoon?
>
> Steve Punte
> [EMAIL PROTECTED]
> By Candlelight If Necessary
>
>
>
> __
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>

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

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



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

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




Re: Load test with ab

2002-04-05 Thread Horst Rutter

Frustrating, I also have to communicate with a MS SQL 2000 db server.
Not having started on the JDBC work I would be interested to know:
a) what kind of experiences people have made using JDBC in a Cocoon 2.x
environment talking to MS SQL 2000
b) any pointers to alternative (other than MS) JDBC drivers, if that's the
bottleneck.

Thanks,
Horst

- Original Message -
From: "Nicola Ken Barozzi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 04, 2002 11:57 PM
Subject: Re: Load test with ab
> "
> Out of all the drivers we used, Microsoft's new JDBC driver had the most
> problems. It's still a beta driver in the form distributed on Microsoft's
> Web site, but it's not a new product per se, because it's based on code
> licensed from DataDirect Technologies Inc., which has had the leading
> third-party SQL Server JDBC driver for some years now.
> Providing and supporting its own JDBC driver is a very welcome move, and
> Microsoft officials informed us last month that they had 70,000 downloads
of
> the driver so far, so there is considerable customer interest in it.
> However, the driver, in both Beta 1 and Beta 2 forms (we tested both), has
> serious performance and stability problems.
> Using the driver, we were unable to get more than about
200-page-per-second
> throughput, and the problem was clearly the driver-the database was only
at
> about 15 percent to 20 percent CPU utilization at this load. The driver
also
> has memory leaks: We could see on WebLogic's administration console that
> less memory was freed each time the Java virtual machine did a garbage
> collection. Because of these leaks, the Microsoft JDBC driver was unable
to
> run for 8 hours straight.
> "
>
> You should change driver (see 3rd party) od DB ;-)
>
> --
> Nicola Ken Barozzi   [EMAIL PROTECTED]
> - verba volant, scripta manent -
>(discussions get forgotten, just code remains)
> -
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>



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

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




Logicsheet Woes with Esql and XSP Logic

2002-04-05 Thread Sharat Koya

Hi help on this problem would be much appreciated since I have been stuck
with it for a few days of coding.
I have a logicsheet that runs mysql statments and returns values from the
database.

In my logic (in the file using the logic sheet) I have the statment that
trys to assign a value from the database. I have tested my logicsheet on its
own and it works fine, however Cocoon returns the error below when I try to
assign the value to a java variable. can anyone help?

thanks

Sharat Koya

Calling code
mercurySun = ;
--
Error:
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
register_xsp:
Line 1652, column 4:  illegal start of expression
Line 0, column 0:
1 error
--
This is the segment of code where the error occurs:

line 1652:
  mercurySun =
if (_esql_connection != null)
 {_esql_connections.push(_esql_connection);

 }
_esql_connection = new EsqlConnectionCocoon2();
   try {
try {
_esql_connection.datasource = (DataSourceComponent)
_esql_selector.select(String.valueOf( "" + (database) ));
_esql_connection.connection =
_esql_connection.datasource.getConnection();
  } catch (Exception _esql_exception_N10170) {
getLogger().error("Could not get the
datasource",_esql_exception_N10170);
throw new RuntimeException("Could not get the datasource
"+_esql_exception_N10170);
  }






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




Extra namespace declarations in XML from XSP

2002-04-05 Thread Stephen Ng

I'm running into a small nuisance with Cocoon 2.0.2 (I'm running WinXP).

After my XSP has been processed, I find the resulting xml file still has
all the namespaces from the xsp.

This is bumming me out because I have unit tests on my xml output, and I
have to update them to include these extraneous namespaces every time I
refactor my xsp's.  (Plus it's a little wasteful to pass these namespace
declarations around when they aren't needed).

To see an example of this, go to docs/samples/xsp/hello.xsp.

Change the first line to read:

http://apache.org/xsp";
xmlns:foo="http://www.bigcompany.com"; exclude-result-prefixes="foo">

Then navigate to:

http://localhost:8080/cocoon/xsp-plain/hello?cocoon-view=content

You should get:

 
http://apache.org/xsp"; xmlns:foo="http://lumigent.com";>
  Hello 
  
This is my first Cocoon page! 
With the help of XSP and Apache Cocoon 2.0.2 
  


Notice how you get an xmlns:foo declaration here.

Exclude-result-prefixes doesn't seem to make a difference.  In my case,
I have quite a few namespaces, such as cinclude, esql, etc. 

I went into esql.xsl and threw in exclude-result-prefixes="esql" on
xsl:stylesheet, but it didn't make a difference.

So now I'm stumped.

Anyone out there know how to fix this?

Thanks,

Stephen Ng
Lumigent


-
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 Cocoon on Mac OSX with Tomcat

2002-04-05 Thread Moritz Petersen

hi randy,

> I have Tomcat installed and working and I was told by someone on the
> [EMAIL PROTECTED] list that all I had to do was put the cocoon.war
> file in the tomcat/webapps directory, restart tomcat and that was
> it. Seemed
> too easy and naturally it didn't work for me. I was wondering if

could you please tell us exactly what the error was, that you've got?


> I still had
> to follow some of the other install steps listed at
> http://xml.apache.org/cocoon/installing/index.html? Such as replacing the
> xalan-XXX.jar, xercesImpl-XXX.jar and xml-apis.jar files in the Tomcat
> installed files with the ones from the Cocoon package and also editing the
> cocoon/src/webapp/WEB-INF/web.xml file?

yes, sure, you have to do that.


> /usr/local/jakarta-tomcat-4.0.3
> /usr/local/jakarta-tomcat-4.0.3/webapps/cocoon.war

that is correct!

> /usr/local/jakarta-tomcat-4.0.3/cocoon/

not, if you didn't configure the server.xml file in the config directory
(don't do that).

> One last question just to confirm my rookie status ... do I need
> the JDK and
> ANT installed for any of this? If so, what versions do I need with OSX?

the jdk is default on osx, you don't need any more than that. you can use
ant for development (i would appreciate that), but it is not a must.


i don't know about your mac, but if you are not connected to the internet,
you might encounter some problems with "localhost". try to use the following
url, to access the cocoon webapp:

http://127.0.0.1:8080/cocoon/


hope it helps,

moritz.


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

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




"http status 503 Servlet Cocoon2 is currently unavailable" after I install and

2002-04-05 Thread Siu Wong

Hi:


I installed cocoon after I started tomcat 4.03 I got this error message. I 
did follow the instruction copied and renamed jar files, and copied 
cocoon.war file to catalina_home/webapps directory, modified server.xml of 
tomcat, modified web.xml of cocoon.

Please Help

Siu Man Wong
>>>
Apache Tomcat/4.0.3 - HTTP Status 503 - Servlet Cocoon2 is currently 
unavailable



type Status report

message Servlet Cocoon2 is currently unavailable

description The requested service (Servlet Cocoon2 is currently unavailable) 
is not currently available.




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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

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




Re: Basic cocoon app for newbies

2002-04-05 Thread Eric de Groot

>> CHello is a minimal cocoon application.
>> 
>> http://chello.sf.net
>> 
>> HTH,
>> -Tom
> Hi
> It has not been updated in quite a while
> with the newer version of either the JDK, Tomcat
> nor Cocoon-2.0.2.
> 
> Regards
> Joseph Rajkumar

Plus chello introduces a bunch of other stuff like Cruise Control, Junit,
HTTPUnit and some other doc tool.  The basic structure I posted was for a
newbie.  Adding other stuff into the mix is not bare minimum.

-Eric de Groot
mailto:[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: Basic cocoon app for newbies

2002-04-05 Thread Joseph Rajkumar

> "von Schwerdtner, Thomas (GXS, FPI)" wrote:
> 
> CHello is a minimal cocoon application.
> 
> http://chello.sf.net
> 
> HTH,
> -Tom
Hi
It has not been updated in quite a while
with the newer version of either the JDK, Tomcat
nor Cocoon-2.0.2.

Regards
Joseph Rajkumar
email: [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: Basic cocoon app for newbies

2002-04-05 Thread von Schwerdtner, Thomas (GXS, FPI)
Title: RE: Basic cocoon app for newbies






CHello is a minimal cocoon application.


http://chello.sf.net


HTH,
-Tom



It would be nice there were 2 cocoon distributions, a bare bones "I mean business" version as a base for deploying new and existing applications, and a "Cocoon 2?  Yeah, that movie sucked, the first one was way better" full of examples version for the newbie.  The examples, once you don't need them, infect the directory structure and all the conf files like a disease.  It takes a lot of work to remove it all.

-Eric de Groot
mailto:[EMAIL PROTECTED]





Basic cocoon app for newbies

2002-04-05 Thread Eric de Groot
Title: Basic cocoon app for newbies



After struggling for a few days trying to figure cocoon out, this is what I came up with as a basic starter cocoon application.  It’s the same basic structure as the cocoon webapp, but only including the required stuff for cocoon-2.0.2.jar ( also, I just took all the jars from lib, you can pick and choose if you only use certain components.. ).  This is an ant project, so if you don’t use ant... everything in /src will go to /tomcat/webapps/myapp.cocoon/WEB-INF/classes, everything in /web will go to /tomcat/webapps/myapp.cocoon/, etc..  Read below for a few details on the conf files.

myapp.cocoon/
myapp.cocoon/build.xml
myapp.cocoon/docs
myapp.cocoon/src
myapp.cocoon/src/CatalogManager.properties
myapp.cocoon/web
myapp.cocoon/web/sitemap.xmap
myapp.cocoon/web/stylesheets
myapp.cocoon/web/stylesheets/system
myapp.cocoon/web/stylesheets/system/directory2html.xsl
myapp.cocoon/web/stylesheets/system/error2html.xsl
myapp.cocoon/web/stylesheets/system/profile2html.xsl
myapp.cocoon/web/stylesheets/system/status2html.xsl
myapp.cocoon/web/test.html
myapp.cocoon/web/test.xml
myapp.cocoon/web/test.xsl
myapp.cocoon/web/WEB-INF
myapp.cocoon/web/WEB-INF/cocoon.xconf
myapp.cocoon/web/WEB-INF/lib
myapp.cocoon/web/WEB-INF/lib/avalon-excalibur-4.1.jar
myapp.cocoon/web/WEB-INF/lib/avalon-excalibur-scratchpad-20020212.jar
myapp.cocoon/web/WEB-INF/lib/avalon-framework-4.1.2.jar
myapp.cocoon/web/WEB-INF/lib/batik-all-1.5b1.jar
myapp.cocoon/web/WEB-INF/lib/bsf-2.2.jar
myapp.cocoon/web/WEB-INF/lib/castor-0.9.3.9-xml.jar
myapp.cocoon/web/WEB-INF/lib/cocoon-2.0.2.jar
myapp.cocoon/web/WEB-INF/lib/cocoon-scratchpad.jar
myapp.cocoon/web/WEB-INF/lib/commons-collections-1.0.jar
myapp.cocoon/web/WEB-INF/lib/commons-httpclient-20011012.jar
myapp.cocoon/web/WEB-INF/lib/commons-JXPath-20020320.jar
myapp.cocoon/web/WEB-INF/lib/commons-logging-1.0.jar
myapp.cocoon/web/WEB-INF/lib/deli-0.50.jar
myapp.cocoon/web/WEB-INF/lib/fop-0.20.3rc.jar
myapp.cocoon/web/WEB-INF/lib/hsqldb-1.61.jar
myapp.cocoon/web/WEB-INF/lib/jakarta-poi-1.5-dev-20020315.jar
myapp.cocoon/web/WEB-INF/lib/jakarta-regexp-1.2.jar
myapp.cocoon/web/WEB-INF/lib/jena-1.3.0.jar
myapp.cocoon/web/WEB-INF/lib/jimi-1.0.jar
myapp.cocoon/web/WEB-INF/lib/jisp_1_0_2.jar
myapp.cocoon/web/WEB-INF/lib/jstyle.jar
myapp.cocoon/web/WEB-INF/lib/jtidy-04aug2000r7-dev.jar
myapp.cocoon/web/WEB-INF/lib/logkit-1.0.1.jar
myapp.cocoon/web/WEB-INF/lib/lucene-1.2-rc2.jar
myapp.cocoon/web/WEB-INF/lib/maybeupload_1-0-5pre3.jar
myapp.cocoon/web/WEB-INF/lib/pizza-1.1.jar
myapp.cocoon/web/WEB-INF/lib/rdffilter.jar
myapp.cocoon/web/WEB-INF/lib/resolver-20020130.jar
myapp.cocoon/web/WEB-INF/lib/rhino-1.5r3.jar
myapp.cocoon/web/WEB-INF/lib/velocity-1.2.jar
myapp.cocoon/web/WEB-INF/lib/xalan-2.3.1.jar
myapp.cocoon/web/WEB-INF/lib/xercesImpl-2.0.0.jar
myapp.cocoon/web/WEB-INF/lib/xml-apis.jar
myapp.cocoon/web/WEB-INF/lib/xmldb-api-2001.jar
myapp.cocoon/web/WEB-INF/lib/xt-19991105.jar
myapp.cocoon/web/WEB-INF/logkit.xconf
myapp.cocoon/web/WEB-INF/logs
myapp.cocoon/web/WEB-INF/web.xml

CatalogManager.properties: No changes made, just steal it from an expanded cocoon.war.

sitemap.xmap: Removed all the sun example junk.  Removed all views, resources, action-sets and pipelines.  Left everything in components as was.  Added my own test pipeline so the bottom of my sitemap looks like:

...
 



 



 



 



 
     

  



 
 
 

     
 



cocoon.xconf: Removed all the sun example junk.  Removed all the hsqldb (used by the examples) stuff.

logkit.xconf: Left as it was in cocoon.war.

web.xml: Left basically as it was in cocoon.war, you just have to make sure your cocoon stuff gets routed through the Cocoon2 servlet (which is in cocoon-2.02.jar), and everything you can route to your own servlets and jsps.

Deploy all that to tomcat and you should be in business.

It would be nice there were 2 cocoon distributions, a bare bones “I mean business” version as a base for deploying new and existing applications, and a “Cocoon 2?  Yeah, that movie sucked, the first one was way better” full of examples version for the newbie.  The examples, once you don’t need them, infect the directory structure and all the conf files like a disease.  It takes a lot of work to remove it all.

-Eric de Groot
mailto:[EMAIL PROTECTED]






Re: Validating an XSL-FO

2002-04-05 Thread Stijn Van Vreckem

Kurt,

I've posted a work around to your problem a few days ago. 
You must change the fop jar from cocoon version 
0.20.3rc with the latest version 0.20.3.

Stijn

On Fri, 5 Apr 2002, Hahn Kurt (CHA) wrote:

> I'm trying to produce PDF-documents, and I'm really desperate. For a while,
> I tried to apply some minor changes to a previously working XSL, and all I
> get since then is the Acrobat message "The file is damaged and could not be
> repaired". However, if I choose xml as ouput instead, everything looks fine
> to me, I get a well-formed document. Is there a way I can validate such a
> document? I mean something similar to a compiler, that tells me at least
> WHERE in the document the error occurred?
> 
> Thanks
> 
> -
> 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]>
> 
> 

-- 

Stijn Van Vreckem





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

2002-04-05 Thread Nicola Ken Barozzi

From: "Nicola Ken Barozzi" <[EMAIL PROTECTED]>

> From: "Sozonnik Andrew" <[EMAIL PROTECTED]>
> > Have you already put your charting things somewhere ?
> > Where can I find it ?
>
> I'm *very* time constrained these days, so please be patient.
> I will post them ASAP.
>
> Thank you very much for interesting, I'm really happy for it :-)

Ok, so I've managed to import the charting classes on sourceforge, under my
krysalis.org project.
The code for Cocoon is *not* there yet, I will commit it in Cocoon
scratchpad tomorrow I think with a small wings jar.

There in no announcement yet, only the crude code.
There is an Applet example under src/examples.

The CVS module is krysalis-wings

Here is the cvsview:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/krysalis/krysalis-wings/

To build, use the build scripts.

--
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: [OT] HTML email (RE: [docs] Suggestions about and/or in the docs)

2002-04-05 Thread MJ Ray

von Schwerdtner, Thomas (GXS, FPI) wrote:
> [...] Does ANYONE know of a way to shut this off or to whip Outlook into
> shape?

Yes.  Shut off Outlook.

> [...] I'm forced to use Outlook at work due to the Exchange server.

Complain until the person "forcing" you fixes it, or allows you to use
something else for email.  It's making you and your employer look dumb. 
Until that happens, you could take easier steps like not top-posting and
trimming quotes, so at least the amount of data being double-posted in text
and HTML is reduced.
-- 
MJR

-
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: Putting the esql:get-ascii inside CDATA block

2002-04-05 Thread Steven Sedlmeyer

Sorry, forgot the java file.  It's attached here along with the xsp it came
from, the resulting xml and the xml as I wanted it to appear.

Steve

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 2:33 AM
To: [EMAIL PROTECTED]
Subject: Re: Putting the esql:get-ascii inside CDATA block


On 04.Apr.2002 -- 12:06 PM, Steven Sedlmeyer wrote:
> I'm trying to place the results of an  tag
> into a cdata
> block.  I've been able to get close, with the <> ending up in the text
node
> as <
> and > but I can't get them inserted as an actual CDATA block.  Is there
> some simple
> solution I've missed or baring that, a hard one...?

I presume that you want the data inside the CDATA block for the sake
of the client? Since printing out the data would create a text node
for the internal processing and wouldn't be touched by Cocoon at all.

I think it should be possible to print the CDATA instruction
("").

> 1.  
> 
> 
> 

Effectively escapes the esql-tag from being replaced by the required
java code.

> 2.
> 
> 
>   
>   String cdClose = "]]>";
> 
> 
> 
> cdOpen column="foo"/>cdClose
> 
> 
> //with various combinations of CDATA blocks and escaped characters in the
> // block 

Mmmh, that _should_ work. Could you please provide us with the java
code produced by this? You'll find it in the work directory of your
servlet engine (e.g. $CATALINA_HOME/work/localhost/cocoon/)

> 3.  
>   
>   
>   bodyText.append();
>   
>   
>>bodyText.toString()
> 
> // Same results except that the surrounding  node is now also
> escaped and
> // appears as part of the text node

Wait -- that sounds like a correct result. What are you trying to
achieve exactly?

Chris.

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

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

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




test1.tar.gz
Description: Binary data

-
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 Cocoon on Mac OSX with Tomcat

2002-04-05 Thread Carlos

Here's Apple's way to do it

http://developer.apple.com/internet/macosx/tomcat1.html

On 04/05/02 5:46, "Randy Smith" <[EMAIL PROTECTED]> wrote:

> Hi gang,
> 
> 
> I'm trying to install Cocoon v2.0.2 with Tomcat v4.0.3 on Mac OSX v10.1.3
> and I'm having some problems. I'm sure the main problem is that I'm new at
> all this but I had to start somewhere so I've simply leapt in.
> 
> I have Tomcat installed and working and I was told by someone on the
> [EMAIL PROTECTED] list that all I had to do was put the cocoon.war
> file in the tomcat/webapps directory, restart tomcat and that was it. Seemed
> too easy and naturally it didn't work for me. I was wondering if I still had
> to follow some of the other install steps listed at
> http://xml.apache.org/cocoon/installing/index.html? Such as replacing the
> xalan-XXX.jar, xercesImpl-XXX.jar and xml-apis.jar files in the Tomcat
> installed files with the ones from the Cocoon package and also editing the
> cocoon/src/webapp/WEB-INF/web.xml file?
> 
> The Cocoon package I started with was "cocoon-2.0.2-bin.tar.gz"
> 
> Also I'm wondering, with the cocoon.war file in place, exactly where should
> the Cocoon directory should go? Or does the cocoon.war file cover it all?
> I've installed Tomcat in ...
> 
> /usr/local/jakarta-tomcat-4.0.3
> /usr/local/jakarta-tomcat-4.0.3/webapps/cocoon.war
> 
> Maybe I should put the cocoon directory in ...
> 
> /usr/local/jakarta-tomcat-4.0.3/cocoon/
> 
> One last question just to confirm my rookie status ... do I need the JDK and
> ANT installed for any of this? If so, what versions do I need with OSX?
> 
> I'm probably putting the horse before the carriage but I was hoping I could
> get XML transforming without having to do all the clean builds etc. and get
> up to speed with everything else as I go along. I should probably asking for
> the name of a good book to get me going. I hope Matthew and Carsten are
> dedicating several chapters to installing Cocoon!
> 
> 
> 
> Many thanks in advance,
> Randy
> 
> 
> -
> 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]>
> 

-- 
Carlos E. Araya
---+ WebCT Administrator/Trainer
 P | California Virtual Campus
 - | C/O De Anza College
 G | 21250 Stevens Creek Blvd
---+ Cupertino, CA 95014

email   [EMAIL PROTECTED]
web http://www.cvc1.org/ (work)
http://www.silverwolf-net.net (personal)
phone   408 257 0420 (work)
PGP Fingerprint:E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756

Hey! It compiles! Ship it!


-
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 JPEG SVG Compression

2002-04-05 Thread MJ Ray

Vadim Gritsenko wrote:
>> Looking at the source on there (a not-too-recent CVS copy), it seems that
>> the JPEGTranscoder doesn't get the Hint for the compression set.  Has
>> this been fixed and when (2.0.2? current CVS?)?  Where is it best fixed?
> 
> IIRC, there were NO changes in the SVG serialization area.
> PS Send in a patch.

On second(*) inspection,
src/java/org/apache/cocoon/serialization/SVGSerializer.java has a
configure() method, which goes through and adds hints found in a
configuration.  Trying to figure out where to set this configuration option,
http://archive.covalent.net/xml/cocoon-dev/2000/04/0240.xml suggests that
sitemap is the right place.  Digging around after the fact, I see a similar
configuration problem is dealt with in
http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html

The form of the options has changed over time, but setting


 


in the sitemap seems to work, looking at the logs.  I hope that helps
someone else, too.  The generated error didn't seem to relate to the sitemap
in any way.  Perhaps the option should be set in the default cocoon.war's
sitemap file?

-- 
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: form-validation and utf-8

2002-04-05 Thread Montier Patrick


hi,

Thanks for your advises but it still doesn't work.

1. UNIX: LOCALE=...
I try to change the LC_CTYPE to utf_8 but it doesn't change anything.

>>>2. For Sun JVM, this is -Dfile.encoding option (I might be wrong
though...)

2) I try to change system settings but it"s the same thing, i also try to
change the default encoding under tomcat 4.0 but i only find many users with
the same request without any response.

>>>Also, you have third option - it was here on the list recently - you
need to set encoding of the request object before invoking action
(setCharacterEncoding method).

3) Ok but i'm not using a getparameter request into a xsp or a java source,
i'm using the "
  
  
  


Today thousands Japanese people can't enter a login and password in Kanji
code (UTf-8) on our web site, the utf-8 record is input in the postgres
database without any problem but the form-validator don't let them to
connect, it doesn't recognize no iso data.

4) I try to undestand a patch regarding a form enhancement
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5593) but i'not so expert
to change directly the java source of cocoon.

I think many people should have the same problem, the main interrest of
cocoon is managing multi-languages pages.

I hope someone will send me information, it becomes urgent.

Thank you very much !!

Patrick



> From: Montier Patrick [mailto:[EMAIL PROTECTED]]
>
> Thank you for the response but how to change the encoding of the
servlet
> container ?
> that is what i want to do !

Two options:
1. UNIX: LOCALE=...
   Win: Control Panel - Regional Options - Locale

2. For Sun JVM, this is -Dfile.encoding option (I might be wrong
though...)

Also, you have third option - it was here on the list recently - you
need to set encoding of the request object before invoking action
(setCharacterEncoding method).

Vadim

>
> Best regards
>
> Patrick
>
> >>IIRC, form validator works on encoding of the servlet container. You
> >>>have two options:
> >>1. Patch form validator
> >>2. Change encoding of the servlet container
>
>
>
>
>
> > Hi,
>
> Patrick,
>
> > I can't resolve my problem : i try to make the form-validation works
> with
> > utf-8 data, it only works with Iso-
>
>
> > In my sitemap.xmap, i try the form-encoding as described in an email
> but
> > it's still the same, when login or password input is in Utf-8
> caracters, the
> > form-validator reject.
> >
> >
> >  
> > 
> > 
> >> value="context://test/descriptors/params.xml"/>
> >> form-encoding="UTF-8"/>
>
> This (form-encoding attribute) is *not* valid syntax for parameter.
> Parameter element understands *only* name and value attributes.
>
> Vadim
>
> >   
> >   
> >  > value="context://test/descriptors/auth.xml"/>
> > 
> > 
> >   
> > 
> > 
> > 
> >   
> >
> > Any idea ?
> >
> > Thanks
> >
> > Patrick


-
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: Putting the esql:get-ascii inside CDATA block

2002-04-05 Thread Steven Sedlmeyer

I'm pulling out a CLOB that may or may not have embeded HTML which may or
may not be XHTML...  

I then need to pass it on through a couple of stylesheets to format the
results for a browser.  I'm trying to put the text into a CDATA block so
that the embeded tags will not get processed by later stylesheets.

My thought to date has been that I need the text data to be inserted into
the CDATA block without having the "<" and ">" chars escaped so that any
HTML tags arrive at the end of the pipeline intact.  Additionally, in all
three methods, the "<" and ">" of any XML tags I attempt to insert around
the text ("" and in the last case "" end up also
escaped and thus treated as text by later stylesheets.

Thanks

Steve

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 2:33 AM
To: [EMAIL PROTECTED]
Subject: Re: Putting the esql:get-ascii inside CDATA block


On 04.Apr.2002 -- 12:06 PM, Steven Sedlmeyer wrote:
> I'm trying to place the results of an  tag
> into a cdata
> block.  I've been able to get close, with the <> ending up in the text
node
> as <
> and > but I can't get them inserted as an actual CDATA block.  Is there
> some simple
> solution I've missed or baring that, a hard one...?

I presume that you want the data inside the CDATA block for the sake
of the client? Since printing out the data would create a text node
for the internal processing and wouldn't be touched by Cocoon at all.

I think it should be possible to print the CDATA instruction
("").

> 1.  
> 
> 
> 

Effectively escapes the esql-tag from being replaced by the required
java code.

> 2.
> 
> 
>   
>   String cdClose = "]]>";
> 
> 
> 
> cdOpen column="foo"/>cdClose
> 
> 
> //with various combinations of CDATA blocks and escaped characters in the
> // block 

Mmmh, that _should_ work. Could you please provide us with the java
code produced by this? You'll find it in the work directory of your
servlet engine (e.g. $CATALINA_HOME/work/localhost/cocoon/)

> 3.  
>   
>   
>   bodyText.append();
>   
>   
>>bodyText.toString()
> 
> // Same results except that the surrounding  node is now also
> escaped and
> // appears as part of the text node

Wait -- that sounds like a correct result. What are you trying to
achieve exactly?

Chris.

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

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

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: Greetings, and question

2002-04-05 Thread Brent Eades

On 4 Apr 2002 at 19:36, Vadim Gritsenko wrote:

> Test it, and continue from this to next step:
> 
> 
>  http://www.yahoo.com";>
>   
>  
>  
> 
> 
> Test it, see the result, go further. Say, use xpath
> value="/html/body/table".

Ah. Should have thought of changing the serializer to "xml"... this 
showed me where there were problems in the source document, even 
after being tidied. Which in turn allowed me to fine-tune the xpath 
statement. I have it working now, somewhat anyway. (I suspect the 
page may simply be too complex to pull out *exactly* what I want, but 
I'm getting closer at least.)

Thanks.

-
Brent Eades, Almonte, Ontario
 http://www.almonte.com
 http://www.bankofcanada.ca


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




Could not access component for hint

2002-04-05 Thread Cristina Ulivi



Hi all.
I've installed Tomcat 
4.0.1& Cocoon 2.0.1 on a Windows 2000 o.s.
It's all right, but now when I invoke the page "intrasl\flussi\upload.xsp" to upload a 
file I have the next error:
Could not access component for hint: 
org\apache\cocoon\www\intrasl\flussi\upload_xsp

 
Someone of you can tell me why, 
please?
 
Thank you.
  Cris
 


Help needed to install and run Cocoon 2.0.1 on WebSphere 4.0

2002-04-05 Thread Ali, Farhan

Hi,
 I have installed Cocoon2.0 on WebSphere. How can i test out whether the
Cocoon application is running or not. The steps whatever i did for the
installation of Cocoon on WebSphere 4.0 is as,

I created an application Server and installed the cocoon.war on the newly
created Application Server. While installing Cocoon i gave Context root as
/Apache.

It looks like that application is installed properly. Server is running

So while i go using http://localhost/Apache/. It gives me this type of
screen as shown in attachment.

Plz have a look at it and help me out to make it run.

Thanks
Farhan
 <> 



Index of -Apache-.htm
Description: Binary data

-
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 Cocoon on Mac OSX with Tomcat

2002-04-05 Thread Marina Sturino

At 09.39 05/04/2002 -0500, you wrote:
>ALL NEWBIES READ THIS: Use Tomcat 4.0.1!

Last week I've successfully installed Cocoon 2.0.2 with Tomcat 4.0.3  on 
Mac OS X 10.1.3

To prevent this error:

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

copy the batik-libs-1.1.1.jar and xml-apis.jar file to the common/lib 
directory


http://localhost:8080/cocoon works even if you are not connect to internet 
(if you don't use MS Internet Explorer)

Ciao
Marina



>Vadim
>
> > From: Randy Smith [mailto:[EMAIL PROTECTED]]
> >
> > Hi gang,
> >
> > 
> > I'm trying to install Cocoon v2.0.2 with Tomcat v4.0.3 on Mac OSX
>v10.1.3
> > and I'm having some problems. I'm sure the main problem is that I'm
>new at
> > all this but I had to start somewhere so I've simply leapt in.
> >
> > I have Tomcat installed and working and I was told by someone on the
> > [EMAIL PROTECTED] list that all I had to do was put the
>cocoon.war
> > file in the tomcat/webapps directory, restart tomcat and that was it.
>Seemed
> > too easy and naturally it didn't work for me. I was wondering if I
>still had
> > to follow some of the other install steps listed at
> > http://xml.apache.org/cocoon/installing/index.html? Such as replacing
>the
> > xalan-XXX.jar, xercesImpl-XXX.jar and xml-apis.jar files in the Tomcat
> > installed files with the ones from the Cocoon package and also editing
>the
> > cocoon/src/webapp/WEB-INF/web.xml file?
> >
> > The Cocoon package I started with was "cocoon-2.0.2-bin.tar.gz"
> >
> > Also I'm wondering, with the cocoon.war file in place, exactly where
>should
> > the Cocoon directory should go? Or does the cocoon.war file cover it
>all?
> > I've installed Tomcat in ...
> >
> > /usr/local/jakarta-tomcat-4.0.3
> > /usr/local/jakarta-tomcat-4.0.3/webapps/cocoon.war
> >
> > Maybe I should put the cocoon directory in ...
> >
> > /usr/local/jakarta-tomcat-4.0.3/cocoon/
> >
> > One last question just to confirm my rookie status ... do I need the
>JDK and
> > ANT installed for any of this? If so, what versions do I need with
>OSX?
> >
> > I'm probably putting the horse before the carriage but I was hoping I
>could
> > get XML transforming without having to do all the clean builds etc.
>and get
> > up to speed with everything else as I go along. I should probably
>asking for
> > the name of a good book to get me going. I hope Matthew and Carsten
>are
> > dedicating several chapters to installing Cocoon!
> >
> > 
> >
> > Many thanks in advance,
> > Randy
> >
> >
> > -
> > 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]>

---
L'unico modo per accelerare windows 9.x/2K/XP e' a 9,8 m/s^2 ;-)

Utente Linux registrato: #218195 (http://counter.li.org)


-
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 Cocoon on Mac OSX with Tomcat

2002-04-05 Thread Vadim Gritsenko

ALL NEWBIES READ THIS: Use Tomcat 4.0.1!

Vadim

> From: Randy Smith [mailto:[EMAIL PROTECTED]]
> 
> Hi gang,
> 
> 
> I'm trying to install Cocoon v2.0.2 with Tomcat v4.0.3 on Mac OSX
v10.1.3
> and I'm having some problems. I'm sure the main problem is that I'm
new at
> all this but I had to start somewhere so I've simply leapt in.
> 
> I have Tomcat installed and working and I was told by someone on the
> [EMAIL PROTECTED] list that all I had to do was put the
cocoon.war
> file in the tomcat/webapps directory, restart tomcat and that was it.
Seemed
> too easy and naturally it didn't work for me. I was wondering if I
still had
> to follow some of the other install steps listed at
> http://xml.apache.org/cocoon/installing/index.html? Such as replacing
the
> xalan-XXX.jar, xercesImpl-XXX.jar and xml-apis.jar files in the Tomcat
> installed files with the ones from the Cocoon package and also editing
the
> cocoon/src/webapp/WEB-INF/web.xml file?
> 
> The Cocoon package I started with was "cocoon-2.0.2-bin.tar.gz"
> 
> Also I'm wondering, with the cocoon.war file in place, exactly where
should
> the Cocoon directory should go? Or does the cocoon.war file cover it
all?
> I've installed Tomcat in ...
> 
> /usr/local/jakarta-tomcat-4.0.3
> /usr/local/jakarta-tomcat-4.0.3/webapps/cocoon.war
> 
> Maybe I should put the cocoon directory in ...
> 
> /usr/local/jakarta-tomcat-4.0.3/cocoon/
> 
> One last question just to confirm my rookie status ... do I need the
JDK and
> ANT installed for any of this? If so, what versions do I need with
OSX?
> 
> I'm probably putting the horse before the carriage but I was hoping I
could
> get XML transforming without having to do all the clean builds etc.
and get
> up to speed with everything else as I go along. I should probably
asking for
> the name of a good book to get me going. I hope Matthew and Carsten
are
> dedicating several chapters to installing Cocoon!
> 
> 
> 
> Many thanks in advance,
> Randy
> 
> 
> -
> 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]>




Installing Cocoon on Mac OSX with Tomcat

2002-04-05 Thread Moritz Petersen

hi randy,

> I have Tomcat installed and working and I was told by someone on the
> [EMAIL PROTECTED] list that all I had to do was put the cocoon.war
> file in the tomcat/webapps directory, restart tomcat and that was
> it. Seemed
> too easy and naturally it didn't work for me. I was wondering if

could you please tell us exactly what the error was, that you've got?


> I still had
> to follow some of the other install steps listed at
> http://xml.apache.org/cocoon/installing/index.html? Such as replacing the
> xalan-XXX.jar, xercesImpl-XXX.jar and xml-apis.jar files in the Tomcat
> installed files with the ones from the Cocoon package and also editing the
> cocoon/src/webapp/WEB-INF/web.xml file?

yes, sure, you have to do that.


> /usr/local/jakarta-tomcat-4.0.3
> /usr/local/jakarta-tomcat-4.0.3/webapps/cocoon.war

that is correct!

> /usr/local/jakarta-tomcat-4.0.3/cocoon/

not, if you didn't configure the server.xml file in the config directory
(don't do that).

> One last question just to confirm my rookie status ... do I need
> the JDK and
> ANT installed for any of this? If so, what versions do I need with OSX?

the jdk is default on osx, you don't need any more than that. you can use
ant for development (i would appreciate that), but it is not a must.


i don't know about your mac, but if you are not connected to the internet,
you might encounter some problems with "localhost". try to use the following
url, to access the cocoon webapp:

http://127.0.0.1:8080/cocoon/


hope it helps,

moritz.


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

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




RE: form-validation and utf-8

2002-04-05 Thread Vadim Gritsenko

> From: Montier Patrick [mailto:[EMAIL PROTECTED]]
> 
> Thank you for the response but how to change the encoding of the
servlet
> container ?
> that is what i want to do !

Two options:
1. UNIX: LOCALE=...
   Win: Control Panel - Regional Options - Locale

2. For Sun JVM, this is -Dfile.encoding option (I might be wrong
though...)

Also, you have third option - it was here on the list recently - you
need to set encoding of the request object before invoking action
(setCharacterEncoding method).

Vadim

> 
> Best regards
> 
> Patrick
> 
> >>IIRC, form validator works on encoding of the servlet container. You
> >>>have two options:
> >>1. Patch form validator
> >>2. Change encoding of the servlet container
> 
> 
> 
> 
> 
> > Hi,
> 
> Patrick,
> 
> > I can't resolve my problem : i try to make the form-validation works
> with
> > utf-8 data, it only works with Iso-
> 
> 
> > In my sitemap.xmap, i try the form-encoding as described in an email
> but
> > it's still the same, when login or password input is in Utf-8
> caracters, the
> > form-validator reject.
> >
> >
> >  
> > 
> > 
> >> value="context://test/descriptors/params.xml"/>
> >> form-encoding="UTF-8"/>
> 
> This (form-encoding attribute) is *not* valid syntax for parameter.
> Parameter element understands *only* name and value attributes.
> 
> Vadim
> 
> >   
> >   
> >  > value="context://test/descriptors/auth.xml"/>
> > 
> > 
> >   
> > 
> > 
> > 
> >   
> >
> > Any idea ?
> >
> > Thanks
> >
> > Patrick


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




Problem with Pizza

2002-04-05 Thread "Ehms, Jürgen"

Hallo,

i installed  
cocoon2.0.3-dev
tomcat-4.03
on jdk1.4.0

it worked proberly bat after I realized, that database-poolining is not
running with jdk1.4.0 I stepped
back to jdk1.3.1.

cocoon2.0.3-dev
tomcat-4.03
on jdk1.3.1

It is running now, and the simple-database is now working

but if I start the xsp-Sample or search, the I get only this Error.
this Error was not under jdk1.4.0

pizza.jar is in classpath but what have I to do 


How can help me ?

Juergen Ehms

Mail: [EMAIL PROTECTED]

2002-04-05 15:13:41 WARN(2002-04-05) 15:13.41:923   [sitemap.]
(/cocoon/search/welcome) HttpProcessor[8080][4]/ServerPagesGenerator:
setup()
java.lang.NullPointerException
at
net.sf.pizzacompiler.compiler.Namer.findMethod(C:\pizza\main\src\net\sf\pizz
acompiler\compiler\Namer.pizza:306)
at
net.sf.pizzacompiler.compiler.Namer.resolveSelectFromType(C:\pizza\main\src\
net\sf\pizzacompiler\compiler\Namer.pizza:648)
at
net.sf.pizzacompiler.compiler.Attr.attribSelect(C:\pizza\main\src\net\sf\piz
zacompiler\compiler\Attr.pizza:1572)
at
net.sf.pizzacompiler.compiler.Attr.attribExpr(C:\pizza\main\src\net\sf\pizza
compiler\compiler\Attr.pizza:1359)
at
net.sf.pizzacompiler.compiler.Attr.attribExpr(C:\pizza\main\src\net\sf\pizza
compiler\compiler\Attr.pizza:1113)
at
net.sf.pizzacompiler.compiler.Attr.attribStat(C:\pizza\main\src\net\sf\pizza
compiler\compiler\Attr.pizza:692)
at
net.sf.pizzacompiler.compiler.Attr.attribStats(C:\pizza\main\src\net\sf\pizz
acompiler\compiler\Attr.pizza:750)
at
net.sf.pizzacompiler.compiler.Attr.attribDef(C:\pizza\main\src\net\sf\pizzac
ompiler\compiler\Attr.pizza:472)
at
net.sf.pizzacompiler.compiler.Attr.attribDef(C:\pizza\main\src\net\sf\pizzac
ompiler\compiler\Attr.pizza:424)
at
net.sf.pizzacompiler.compiler.Attr.attribute(C:\pizza\main\src\net\sf\pizzac
ompiler\compiler\Attr.pizza:355)
at
net.sf.pizzacompiler.compiler.Main.process(C:\pizza\main\src\net\sf\pizzacom
piler\compiler\Main.pizza:228)
at
net.sf.pizzacompiler.compiler.Main.compile(C:\pizza\main\src\net\sf\pizzacom
piler\compiler\Main.pizza:309)
at
org.apache.cocoon.components.language.programming.java.Pizza.compile(Pizza.j
ava:114)
at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(
JavaLanguage.java:225)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:207)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:383)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:328)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:291)
at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator
.java:203)
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:202)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:279)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
ngEventPipeline.java:142)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:320)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:85)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:156)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:140)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:144)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:323)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:293)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:131)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:85)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:156)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
at
org.apache.cocoon.components.tr

RE: Error compiling sitemap

2002-04-05 Thread Rajput, Ashish S

We currently have 16 bits on our display setting.

Ashish

-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 5:33 PM
To: [EMAIL PROTECTED]
Subject: RE: Error compiling sitemap



Shot in the dark: how many colors your display currently have? Make sure
you have at least 256 colors (8 bit).

Vadim

> From: Rajput, Ashish S [mailto:[EMAIL PROTECTED]]
> 
> I did copy over the appropriate files, however, I'm still getting the
same
> error as earlier.  Interestingly, the first time I restart Tomcat and
bring
> up the browser, the error message in the log is something about the
"Display
> Settings".  The following times I try to bring up Cocoon in the
browser I
> still get the "java.lang.NoClassDefFoundError".  Please refer the
error
> message at the bottom for details.  Thanks!
> 
> Ashish Rajput
> 
> 
> -Original Message-
> From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 03, 2002 9:09 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Error compiling sitemap
> 
> 
> Copy batiks*.jar xmlapis.jar and xercer*.jar into TomCat's library
from
> Cocoon/WEB-INF/lib directory
> And then restart
> Regds,
> Chiths
> 
> 
> -Original Message-
> From: Rajput, Ashish S [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 03, 2002 12:34 PM
> To: '[EMAIL PROTECTED]'
> Subject: Error compiling sitemap
> 
> ENVIRONMENT:
> NT Server 4; JDK1.3.1; Tomcat4.0.1; Cocoon2.0
> 
> 
> Tomcat installed fine, and I'm able to bring up the default homepage
for
> Tomcat.  I'm receiving an "Error compiling sitemap" error when I try
to
> launch Cocoon in the web browser http://localhost:8080/cocoon/
> 
> Listed below is the error I get in the log.  TIA for your time and
> efforts!
> 
> Ashish Rajput
> (PS - I was able to successfully install Cocoon on my desktop with the
> same
> instructions)
> 
> 
>

> 
> *
> 
> ERROR   (2002-04-03) 14:16.40:204   [cocoon  ] (/cocoon/)
> HttpProcessor[8080][3]/Handler: Error compiling sitemap
> java.lang.NoClassDefFoundError
>   at
>
org.apache.batik.dom.svg.SAXSVGDocumentFactory.(SAXSVGDocumentFact
> ory.
> java:59)
>   at
> org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:44)
>   at
>
org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:
> 53)
>   at java.lang.Class.newInstance0(Native Method)
>   at java.lang.Class.newInstance(Class.java:232)
>   at
>
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
> e(Un
> known Source)
>   at
> org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(Unknown
> Source)
>   at
> org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(Unknown
> Source)
>   at
> org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(Unknown
> Source)
>   at
>
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(Unk
> nown
> Source)
>   at
>
org.apache.avalon.excalibur.component.PoolableComponentHandler.initializ
> e(Un
> known Source)
>   at
>
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComp
> onen
> t(Unknown Source)
>   at
>
org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(S
> item
> apComponentSelector.java:91)
>   at
>
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap
> .jav
> a:232)
>   at
>
org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(sitemap_
> xmap
> .java:950)
>   at
> org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:365)
>   at
>
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
> e(Un
> known Source)
>   at
>
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial
> ize(
> Unknown Source)
>   at
>
org.apache.cocoon.components.language.generator.GeneratorSelector.addGen
> erat
> or(GeneratorSelector.java:135)
>   at
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.add
> Comp
> iledComponent(ProgramGeneratorImpl.java:345)
>   at
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
> d(Pr
> ogramGeneratorImpl.java:179)
>   at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
>   at java.lang.Thread.run(Thread.java:479)
>

> 
> ***


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

Installing Cocoon on Mac OSX with Tomcat

2002-04-05 Thread Randy Smith

Hi gang,


I'm trying to install Cocoon v2.0.2 with Tomcat v4.0.3 on Mac OSX v10.1.3
and I'm having some problems. I'm sure the main problem is that I'm new at
all this but I had to start somewhere so I've simply leapt in.

I have Tomcat installed and working and I was told by someone on the
[EMAIL PROTECTED] list that all I had to do was put the cocoon.war
file in the tomcat/webapps directory, restart tomcat and that was it. Seemed
too easy and naturally it didn't work for me. I was wondering if I still had
to follow some of the other install steps listed at
http://xml.apache.org/cocoon/installing/index.html? Such as replacing the
xalan-XXX.jar, xercesImpl-XXX.jar and xml-apis.jar files in the Tomcat
installed files with the ones from the Cocoon package and also editing the
cocoon/src/webapp/WEB-INF/web.xml file?

The Cocoon package I started with was "cocoon-2.0.2-bin.tar.gz"

Also I'm wondering, with the cocoon.war file in place, exactly where should
the Cocoon directory should go? Or does the cocoon.war file cover it all?
I've installed Tomcat in ...

/usr/local/jakarta-tomcat-4.0.3
/usr/local/jakarta-tomcat-4.0.3/webapps/cocoon.war

Maybe I should put the cocoon directory in ...

/usr/local/jakarta-tomcat-4.0.3/cocoon/

One last question just to confirm my rookie status ... do I need the JDK and
ANT installed for any of this? If so, what versions do I need with OSX?

I'm probably putting the horse before the carriage but I was hoping I could
get XML transforming without having to do all the clean builds etc. and get
up to speed with everything else as I go along. I should probably asking for
the name of a good book to get me going. I hope Matthew and Carsten are
dedicating several chapters to installing Cocoon!



Many thanks in advance,
Randy


-
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: Dynamically transform a generators output

2002-04-05 Thread KOZLOV Roman

Hi Chris,

Look at request selector usage in cocoon's default sitemap. Also, have a look at the 
very good tutorial 
http://www.cocooncenter.de/cc/documents/resources/request-params/requestselector.html

Best regards
Roman

"Shaw, Chris" wrote:

> Hi
>
> I have the following scenario...
>
> The user choses, on an HTML Form, for which format they want the output
> (e.g. PDF, XML, HTML, etc)...and the parameter called 'format' gets set as
> to whatever they chose
> ...eg format=pdf.
>
> A generator is called which executes a database query and returns all the
> data as XML...
>
> The problem?
> I want to use a different transformer depending on what the 'format'
> parameter was set to
>
> I searched the docs and mailing archives alreadybut couldn't find the
> answer
>
> This is what I have so far.but the variable 'format' seems to get lost
> along the way.
>
> 
> 
> 
> 
> 
> 
>
> I did also discover from the docs the following tag:
>
> but this states that the parameters are "available in the XSLT stylesheet" -
> and I need it before then (also I couldn't get it to work in the XSLT
> stylesheet anyway).
>
> Can someone point me in the right direction to overcoming this...
>
> Many TIA
>
> Chris
> -=-=-=
>
> 
> Chris Shaw
> > European Central Bank
> > DG Information Systems
> > * [EMAIL PROTECTED]
> 
>
> Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
>shall neither be binding nor construed as constituting a commitment by the ECB except 
>where provided for in a written agreement.
> This e-mail is intended only for the use of the recipient(s) named above. Any 
>unauthorised disclosure, use or dissemination, either in whole or in part, is 
>prohibited.
> If you have received this e-mail in error, please notify the sender immediately via 
>e-mail and delete this e-mail from your system.
>
> -
> 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]>




Dynamically transform a generators output

2002-04-05 Thread Shaw, Chris

Hi

I have the following scenario...

The user choses, on an HTML Form, for which format they want the output
(e.g. PDF, XML, HTML, etc)...and the parameter called 'format' gets set as
to whatever they chose
...eg format=pdf.

A generator is called which executes a database query and returns all the
data as XML...

The problem?
I want to use a different transformer depending on what the 'format'
parameter was set to

I searched the docs and mailing archives alreadybut couldn't find the
answer

This is what I have so far.but the variable 'format' seems to get lost
along the way.
   







I did also discover from the docs the following tag:
   
but this states that the parameters are "available in the XSLT stylesheet" -
and I need it before then (also I couldn't get it to work in the XSLT
stylesheet anyway).

Can someone point me in the right direction to overcoming this...

Many TIA

Chris
-=-=-=


Chris Shaw
> European Central Bank
> DG Information Systems
> * [EMAIL PROTECTED]



Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.


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




Pipeline Usage

2002-04-05 Thread David LAGARDERE

Hello.

I'm new on this list, so I hope you will pardon
this question if it has already been asked.

My question is :

Without using XSP, I would like to introduce dynamic 
XML depending on each document of my site. Is it
better using a pipeline for each page with an
appropriate transformer adding my dynamic content
at the right place or should I use only one
pipeline for all pages with one transformer managing
all dynamic generation depending on the SAX events it
receives ?

Thanks in advance.

David LAGARDERE

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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

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




RE: Load test with ab

2002-04-05 Thread Carsten Ziegeler

> -Original Message-
> From: Bert Van Kets [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 05, 2002 2:51 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Load test with ab
> 
> 
> Carsten,
> does this mean that the latest CVS build can be trusted under 
> heavy loads, 
> say 50 to 100 concurrent users?
> Bert
> 
We had no problems with the average of 80 (and more) simulated 
concurrent users.

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




RE: Load test with ab

2002-04-05 Thread Bert Van Kets

Carsten,
does this mean that the latest CVS build can be trusted under heavy loads, 
say 50 to 100 concurrent users?
Bert

At 14:12 5/04/2002 +0200, you wrote:
>We had the same problem, and it had to do with the MRUStore which is
>not thread safe in 2.0.1 and 2.0.2.
>
>I suggest you try the latest cvs version which is (paranoid) synchronized.
>This solved our problem with a hanging (dead) Cocoon.
>
>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]>




Re: Load test with ab

2002-04-05 Thread Michael Wechner

Sorry, didn't see your email. Ok, then I won't try 2.0.2 but rather
try the latest CVS version.

Thanks a lot for your help

Michael



Carsten Ziegeler wrote:

> We had the same problem, and it had to do with the MRUStore which is
> not thread safe in 2.0.1 and 2.0.2.
> 
> I suggest you try the latest cvs version which is (paranoid) synchronized.
> This solved our problem with a hanging (dead) Cocoon.
> 
> Carsten
> 
> 
>>-Original Message-
>>From: Michael Wechner [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, April 05, 2002 2:08 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: Load test with ab
>>
>>
>>Where do I find sitemap_xmap.java? Within the work directory of Tomcat?
>>If so, then I can't tell, because I deleted it unfortunately.
>>But I can do another load test!
>>
>>Thanks for your help
>>
>>Michael
>>
>>
>>
>>Vadim Gritsenko wrote:
>>
>>
>>>What is in these lines?
>>>
>>>org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2099)
>>>org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2071)
>>>
>>>Vadim
>>>
>>>
>>>
-Original Message-
From: Michael Wechner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 9:37 AM
To: [EMAIL PROTECTED]
Subject: Load test with ab

Hi

We did a load test of Cocoon 2.0.1 with "ab" from Apache.

Everything is fine when we do Concurrency 1 or 3
(ab -n 10 -c 3)
and performance looks good (pretty much the same as Zope).

But when we set Concurrency 10 we run into trouble.
Cocoon seems to stop running after a certain time and is throwing
various Exceptions. And it doesn't recover (to recover we have to
restart Tomcat).

But Tomcat is still running perfectly althought Cocoon doesn't work
anymore.

So I guess it must have something to do with Caching in the memory!

Any help is very much appreciated.

Thanks

Michael






==> error.log.03 <==
ERROR   (2002-04-04) 16:33.01:693   [access] (/wyona-cms/)
HttpProcessor[8080][2]/CocoonServlet: Problem with servlet
java.lang.NullPointerException
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2099)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2071)
at


>>>org.apache.cocoon.sitemap.Handler.process(Handler.java:173)
>>>
>>>
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:115)
at



>>>org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144
>>>)
>>>
>>>
at org.apache.cocoon.Cocoon.process(Cocoon.java:605)
at



>>>org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795)
>>>
>>>
at


>>>javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>>
>>>
at



>>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
>>>
>>>
Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown


>>>Source)
>>>
>>>
at


>>>org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
>>>
>>>
Source)
at


>>>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>>>
>>>
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown


>>>Source)
>>>
>>>
at org.apache.catalina.core.ContainerBase.invoke(Unknown


>>>Source)
>>>
>>>
at


>>>org.apache.catalina.core.StandardContextValve.invoke(Unknown
>>>
>>>
Source)
at


>>>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>>>
>>>
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown


>>>Source)
>>>
>>>
at org.apache.catalina.core.ContainerBase.invoke(Unknown


>>>Source)
>>>
>>>
at org.apache.catalina.core.StandardContext.invoke(Unknown


>>>Source)
>>>
>>>
at org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)
at


>>>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>>>
>>>
Source)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
at


>>>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>>>
>>>
Source)
at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
Source)
at


>>>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>>>
>>>
Source)
at org.apache.catalina.valves.AccessLogValve.invoke(Unknown


>>>Source)
>>>
>>>
at


>>>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>>>
>>>
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown


>>>Source)
>>>
>>>
at org.apache.catalina.core.Co

Re: Load test with ab

2002-04-05 Thread Michael Wechner

There must be another reason in our case. We don't use Microsoft
and we don't use a database. In the case of our load test, everything 
was retrieved from the filesystem.

I will try Cocoon 2.0.2 over the weekend. Maybe that helps.

Michael



Nicola Ken Barozzi wrote:

> From: "Chris Warr" <[EMAIL PROTECTED]>
> 
>>Hi, I'm a bit of a newbie so go easy on me if I get things wrong.
>>
>>We're also having trouble with with cocoon under load.  We're running
>>
> under
> 
>>NT4 SP6a, Tomcat 4.0.3, Cocoon 2.0.2, and JDK 1.3.1.  We've got a webapp
>>that connects to an MSSQL Server 2000 db using Microsoft's jdbc driver, it
>>reads some XML from the db then uses FOP to generate a PDF.  The app works
>>fine under low load however once we beef it up to say 20 processes
>>
> querying
> 
>>concurrently  bad things happen.  Firstly we were using cocoon 2.0.1 as
>>
> you
> 
>>are and found after about 1500 hits cocoon would hang, as you found,
>>
> Tomcat
> 
>>was still okay, and even the sample webapps still run.  So it's our webapp
>>only that hangs.  THe last few days I've upgraded to Cocoon 2.0.2 and
>>haven't encountered the hang-up problem.  However I have a new problem,
>>after a random amount of time (the furthest I've got is 2500 hits, the
>>quickest was 100 hits) the jvm crashes.  I'm running Tomcat standalone in
>>
> a
> 
>>command prompt.  The error comes in a message box, something about a
>>reference to a null pointer (0x00), sorry I don't have the exact
>>
> message
> 
>>handy, trying to replicate but it takes a while to get to the problem
>>numbers.  Anyone else seen this, would upgrading to Tomcat 4.0.4b2 or JVM
>>1.4 help at all.  To use 1.4 do I need to rebuild cocoon, or just run it
>>
> all
> 
>>with jvm 1.4?
>>
> 
> I've had the same problems with many versions of Tomcat, Cocoon, and JDK.
> The problem is the Microsoft drivers and (in the case of Access) the
> JDBC-ODBC bridge driver.
> 
> Never use the bridge in a production environment; we had crashes when simply
> closing connections!
> 
> Also, Microsofts driver limits in some way the performance:
> http://www.eweek.com/article/0,3658,s=708&a=23115,00.asp
> 
> "
> Out of all the drivers we used, Microsoft's new JDBC driver had the most
> problems. It's still a beta driver in the form distributed on Microsoft's
> Web site, but it's not a new product per se, because it's based on code
> licensed from DataDirect Technologies Inc., which has had the leading
> third-party SQL Server JDBC driver for some years now.
> Providing and supporting its own JDBC driver is a very welcome move, and
> Microsoft officials informed us last month that they had 70,000 downloads of
> the driver so far, so there is considerable customer interest in it.
> However, the driver, in both Beta 1 and Beta 2 forms (we tested both), has
> serious performance and stability problems.
> Using the driver, we were unable to get more than about 200-page-per-second
> throughput, and the problem was clearly the driver-the database was only at
> about 15 percent to 20 percent CPU utilization at this load. The driver also
> has memory leaks: We could see on WebLogic's administration console that
> less memory was freed each time the Java virtual machine did a garbage
> collection. Because of these leaks, the Microsoft JDBC driver was unable to
> run for 8 hours straight.
> "
> 
> You should change driver (see 3rd party) od DB ;-)
> 
> --
> Nicola Ken Barozzi   [EMAIL PROTECTED]
> - verba volant, scripta manent -
>(discussions get forgotten, just code remains)
> -
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 



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

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




RE: Load test with ab

2002-04-05 Thread Carsten Ziegeler

We had the same problem, and it had to do with the MRUStore which is
not thread safe in 2.0.1 and 2.0.2.

I suggest you try the latest cvs version which is (paranoid) synchronized.
This solved our problem with a hanging (dead) Cocoon.

Carsten

> -Original Message-
> From: Michael Wechner [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 05, 2002 2:08 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Load test with ab
>
>
> Where do I find sitemap_xmap.java? Within the work directory of Tomcat?
> If so, then I can't tell, because I deleted it unfortunately.
> But I can do another load test!
>
> Thanks for your help
>
> Michael
>
>
>
> Vadim Gritsenko wrote:
>
> > What is in these lines?
> >
> > org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2099)
> > org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2071)
> >
> > Vadim
> >
> >
> >>-Original Message-
> >>From: Michael Wechner [mailto:[EMAIL PROTECTED]]
> >>Sent: Thursday, April 04, 2002 9:37 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: Load test with ab
> >>
> >>Hi
> >>
> >>We did a load test of Cocoon 2.0.1 with "ab" from Apache.
> >>
> >>Everything is fine when we do Concurrency 1 or 3
> >>(ab -n 10 -c 3)
> >>and performance looks good (pretty much the same as Zope).
> >>
> >>But when we set Concurrency 10 we run into trouble.
> >>Cocoon seems to stop running after a certain time and is throwing
> >>various Exceptions. And it doesn't recover (to recover we have to
> >>restart Tomcat).
> >>
> >>But Tomcat is still running perfectly althought Cocoon doesn't work
> >>anymore.
> >>
> >>So I guess it must have something to do with Caching in the memory!
> >>
> >>Any help is very much appreciated.
> >>
> >>Thanks
> >>
> >>Michael
> >>
> >>
> >>
> >>
> >>
> >>
> >>==> error.log.03 <==
> >>ERROR   (2002-04-04) 16:33.01:693   [access] (/wyona-cms/)
> >>HttpProcessor[8080][2]/CocoonServlet: Problem with servlet
> >>java.lang.NullPointerException
> >> at
> >>org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2099)
> >> at
> >>org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2071)
> >> at
> >>
> > org.apache.cocoon.sitemap.Handler.process(Handler.java:173)
> >
> >> at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:115)
> >> at
> >>
> >>
> > org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144
> > )
> >
> >> at org.apache.cocoon.Cocoon.process(Cocoon.java:605)
> >> at
> >>
> >>
> > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795)
> >
> >> at
> >>
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >
> >> at
> >>
> >>
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
> >
> >>Source)
> >> at
> >>org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
> >>
> > Source)
> >
> >> at
> >>
> > org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
> >
> >>Source)
> >> at
> >>
> > org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >>Source)
> >> at org.apache.catalina.core.StandardPipeline.invoke(Unknown
> >>
> > Source)
> >
> >> at org.apache.catalina.core.ContainerBase.invoke(Unknown
> >>
> > Source)
> >
> >> at
> >>
> > org.apache.catalina.core.StandardContextValve.invoke(Unknown
> >
> >>Source)
> >> at
> >>
> > org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >>Source)
> >> at org.apache.catalina.core.StandardPipeline.invoke(Unknown
> >>
> > Source)
> >
> >> at org.apache.catalina.core.ContainerBase.invoke(Unknown
> >>
> > Source)
> >
> >> at org.apache.catalina.core.StandardContext.invoke(Unknown
> >>
> > Source)
> >
> >> at org.apache.catalina.core.StandardHostValve.invoke(Unknown
> >>Source)
> >> at
> >>
> > org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >>Source)
> >> at
> >>org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
> >> at
> >>
> > org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >>Source)
> >> at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
> >>Source)
> >> at
> >>
> > org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >>Source)
> >> at org.apache.catalina.valves.AccessLogValve.invoke(Unknown
> >>
> > Source)
> >
> >> at
> >>
> > org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >>Source)
> >> at org.apache.catalina.core.StandardPipeline.invoke(Unknown
> >>
> > Source)
> >
> >> at org.apache.catalina.core.ContainerBase.invoke(Unknown
> >>
> > Source)
> >
> >> at
> >>
> > org.apache.catalina.core.StandardEngineValve.invoke(Unknown
> >
> >>Source)
> >> at
> >>
> > org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >>Source)
> >> at org.apache.catalina.core.StandardPipeline.invoke(Unknown
> >>

Re: Load test with ab

2002-04-05 Thread Michael Wechner

Where do I find sitemap_xmap.java? Within the work directory of Tomcat?
If so, then I can't tell, because I deleted it unfortunately.
But I can do another load test!

Thanks for your help

Michael



Vadim Gritsenko wrote:

> What is in these lines?
> 
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2099)
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2071)
> 
> Vadim
> 
> 
>>-Original Message-
>>From: Michael Wechner [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, April 04, 2002 9:37 AM
>>To: [EMAIL PROTECTED]
>>Subject: Load test with ab
>>
>>Hi
>>
>>We did a load test of Cocoon 2.0.1 with "ab" from Apache.
>>
>>Everything is fine when we do Concurrency 1 or 3
>>(ab -n 10 -c 3)
>>and performance looks good (pretty much the same as Zope).
>>
>>But when we set Concurrency 10 we run into trouble.
>>Cocoon seems to stop running after a certain time and is throwing
>>various Exceptions. And it doesn't recover (to recover we have to
>>restart Tomcat).
>>
>>But Tomcat is still running perfectly althought Cocoon doesn't work
>>anymore.
>>
>>So I guess it must have something to do with Caching in the memory!
>>
>>Any help is very much appreciated.
>>
>>Thanks
>>
>>Michael
>>
>>
>>
>>
>>
>>
>>==> error.log.03 <==
>>ERROR   (2002-04-04) 16:33.01:693   [access] (/wyona-cms/)
>>HttpProcessor[8080][2]/CocoonServlet: Problem with servlet
>>java.lang.NullPointerException
>> at
>>org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2099)
>> at
>>org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2071)
>> at
>>
> org.apache.cocoon.sitemap.Handler.process(Handler.java:173)
> 
>> at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:115)
>> at
>>
>>
> org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144
> )
> 
>> at org.apache.cocoon.Cocoon.process(Cocoon.java:605)
>> at
>>
>>
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795)
> 
>> at
>>
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 
>> at
>>
>>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
> 
>>Source)
>> at
>>org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
>>
> Source)
> 
>> at
>>
> org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
> 
>>Source)
>> at
>>
> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> 
>>Source)
>> at org.apache.catalina.core.StandardPipeline.invoke(Unknown
>>
> Source)
> 
>> at org.apache.catalina.core.ContainerBase.invoke(Unknown
>>
> Source)
> 
>> at
>>
> org.apache.catalina.core.StandardContextValve.invoke(Unknown
> 
>>Source)
>> at
>>
> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> 
>>Source)
>> at org.apache.catalina.core.StandardPipeline.invoke(Unknown
>>
> Source)
> 
>> at org.apache.catalina.core.ContainerBase.invoke(Unknown
>>
> Source)
> 
>> at org.apache.catalina.core.StandardContext.invoke(Unknown
>>
> Source)
> 
>> at org.apache.catalina.core.StandardHostValve.invoke(Unknown
>>Source)
>> at
>>
> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> 
>>Source)
>> at
>>org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
>> at
>>
> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> 
>>Source)
>> at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
>>Source)
>> at
>>
> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> 
>>Source)
>> at org.apache.catalina.valves.AccessLogValve.invoke(Unknown
>>
> Source)
> 
>> at
>>
> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> 
>>Source)
>> at org.apache.catalina.core.StandardPipeline.invoke(Unknown
>>
> Source)
> 
>> at org.apache.catalina.core.ContainerBase.invoke(Unknown
>>
> Source)
> 
>> at
>>
> org.apache.catalina.core.StandardEngineValve.invoke(Unknown
> 
>>Source)
>> at
>>
> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> 
>>Source)
>> at org.apache.catalina.core.StandardPipeline.invoke(Unknown
>>
> Source)
> 
>> at org.apache.catalina.core.ContainerBase.invoke(Unknown
>>
> Source)
> 
>> at
>>org.apache.catalina.connector.http.HttpProcessor.process(Unknown
>>
> Source)
> 
>> at
>>
> org.apache.catalina.connector.http.HttpProcessor.run(Unknown
> 
>>Source)
>> 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 t

logicsheet

2002-04-05 Thread Sharat Koya

hi, i have been trying to implemnet a logicsheet as follows

in the logicsheet contains a function (calcs cords for an object)
paramaeters of which are  object="car" and cord="
" <--x or y depending on what i want returned
This function then runs some esql to grab the data of the car and calculates
its position.

I have another function in the logicsheet that calculates the distance
between two objects
 parameters of which are object1="car1" and
object2="car2"
I obviously need calc-distance to run calc-cords but when I try to call it
using xsl:match template or xsl:call-template with params it fails saying
that the wrapped java file has an error in it and it seems to miss call the
esql can anyone help. Perhaps show me the best way of calling this
calc-cords from calc-distance. I had also thought that a second logicsheet
may help here by getting something:calc-distnace to call
something-lib:calc-distance. Would that work?

Thanks for your time.
Sharat Koya

WinXP Pro, Cocoon 2.0.2, Tomcat 4.0.3, MySQL 3.23






-
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: Running Cocoon on Bea 6.1SP2

2002-04-05 Thread Matthew Langham

Ok, I can answer my own question :-).

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

That fixes our problem.

Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
   Weblogging at: http://www.need-a-cake.com
=




-Original Message-
From: Matthew Langham [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 1:31 PM
To: [EMAIL PROTECTED]
Subject: Running Cocoon on Bea 6.1SP2


Hi,

we are having problems running Cocoon 2.0.2 on Bea 6.1SP2. We get the
following exception:

>>
Cocoon 2 - Internal server error


type fatal
message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap: Line 0, column 0: error: java.io.IOException: read error 1
error

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 0, column 0:
error: java.io.IOException: read error
1 error

at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:335)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:291)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:484)
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 0, column 0:
error: java.io.IOException: read error
1 error

at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(
JavaLanguage.java:243)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:197)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:383)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:328)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:291)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:484)


request-uri

/cocoon/welcome

path-info

welcome
>>

The sitemap_xmap.java has 0 bytes - so it looks as though it is not being
written.

Any ideas?


Thanks

Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
   Weblogging at: http://www.need-a-cake.com
=



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

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


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

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




Running Cocoon on Bea 6.1SP2

2002-04-05 Thread Matthew Langham

Hi,

we are having problems running Cocoon 2.0.2 on Bea 6.1SP2. We get the
following exception:

>>
Cocoon 2 - Internal server error


type fatal
message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap: Line 0, column 0: error: java.io.IOException: read error 1
error

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 0, column 0:
error: java.io.IOException: read error
1 error

at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:335)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:291)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:484)
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 0, column 0:
error: java.io.IOException: read error
1 error

at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(
JavaLanguage.java:243)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:197)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:383)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:328)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:291)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:484)


request-uri

/cocoon/welcome

path-info

welcome
>>

The sitemap_xmap.java has 0 bytes - so it looks as though it is not being
written.

Any ideas?


Thanks

Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
   Weblogging at: http://www.need-a-cake.com
=



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

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




Re: Charting

2002-04-05 Thread Nicola Ken Barozzi

From: "Sozonnik Andrew" <[EMAIL PROTECTED]>

> Hello Nicola !

:-)

> Have you already put your charting things somewhere ?
> Where can I find it ?

I'm *very* time constrained these days, so please be patient.
I will post them ASAP.

Thank you very much for interesting, I'm really happy for it :-)

-- 
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: build problems with JDK 1.4.0

2002-04-05 Thread Conny Pemfors

the problem is that you have to put phpsrvlt.jar and the other jar file into
lib directory.
Then it will not complain. make sure that you don't miss xml-apis.jar,
xalan-XXX.jar, Xerces-XXX.jar


kind regards
Conny

- Original Message -
From: "Adnan Zelkanovic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Matthias Fischer" <[EMAIL PROTECTED]>; "Jörg Flotho"
<[EMAIL PROTECTED]>
Sent: Wednesday, March 13, 2002 10:53 AM
Subject: AW: build problems with JDK 1.4.0


My "JAVA_HOME" is set to "d:\java\jdk140".
I've run "build clean" then "build".

But, I'm still getting the following output from the "build.bat":

Buildfile: build.xml

init:
 [echo] --
 [echo] Apache Cocoon 2.0.1 [1999-2002]
 [echo] --
 [echo] Building with Ant version 1.4.1 compiled on October 11 2001
 [echo] using build file D:\cocoon-2.0.1\build.xml
 [echo] --

optional-tests:

bsf-warn:

jfor-warn:

op-warning:
 [echo] **
 [echo] *
 [echo] *  Classes of the optional package JFOR are not
 [echo] *  available. Apache Cocoon builds without them.
 [echo] *
 [echo] *  JFOR is required for the fo2rtf serializer.
 [echo] *
 [echo] *  Recovery:
 [echo] *  Get the JFOR package from http://www.jfor.org/ and place the
jar in the lib/optional dir
 [echo] *
 [echo] ***
 [echo]

xmldb-warn:

xt-warn:

php-warn:

op-warning:
 [echo] **
 [echo] *
 [echo] *  Classes of the optional package PHP are not
 [echo] *  available. Apache Cocoon builds without them.
 [echo] *
 [echo] *  PHP is required for the php generator.
 [echo] *
 [echo] *  Recovery:
 [echo] *  Get the PHP servlet (phpsrvlt.jar) and place the jar in the
lib/optional dir
 [echo] *
 [echo] ***
 [echo]

naming-warn:

op-warning:
 [echo] **
 [echo] *
 [echo] *  Classes of the optional package JNDI are not
 [echo] *  available. Apache Cocoon builds without them.
 [echo] *
 [echo] *  JNDI is required for the ldap generator and the parentcm
generator.
 [echo] *
 [echo] *  Recovery:
 [echo] *  Get the jndi.jar from Sun and place the jar in the
lib/optional dir
 [echo] *
 [echo] ***
 [echo]

svg-warn:

fop-warn:

tidy-warn:

maybeupload-warn:

lucene-warn:

deli-warn:

velocity-warn:

hsqldb-warn:

resolver-warn:

optional-warnings:

prepare:

generate-java-code-check:

generate-java-code:

filter-jdbc:

nofilter-jdbc:

prepare-jdbc:

prepare-src-main:

prepare-src-servlet:

prepare-src-22:

prepare-src-22-maybeupload:
 [copy] Copying 1 file to
D:\cocoon-2.0.1\build\cocoon\src\org\apache\cocoon\environment\http

prepare-src-23:

prepare-src-23-maybeupload:

prepare-src:

compile:
 [echo] Compiling with Java 1.4, debug on, optimize off, deprecation off
[javac] Compiling 317 source files to
D:\cocoon-2.0.1\build\cocoon\classes
[javac]
D:\cocoon-2.0.1\build\cocoon\src\org\apache\cocoon\components\language\marku
p\xsp\EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be
declared abstract. It does not define void rollback(java.sql.Savepoint) from
interface java.sql.Connection.
[javac] public class EsqlConnection implements Connection {
[javac]  ^
[javac]
D:\cocoon-2.0.1\build\cocoon\src\org\apache\cocoon\components\language\marku
p\xsp\EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be
declared abstract. It does not define int getHoldability() from interface
java.sql.Connection.
[javac] public class EsqlConnection implements Connection {
[javac]  ^
[javac]
D:\cocoon-2.0.1\build\cocoon\src\org\apache\cocoon\components\language\marku
p\xsp\EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be
declared abstract. It does not define java.sql.PreparedStatement
prepareStatement(java.lang.String, int, int, int) from interface
java.sql.Connection.
[javac] public class EsqlConnection implements Connection {
[javac]  ^
[javac]
D:\cocoon-2.0.1\build\cocoon\src\org\apache\cocoon\components\language\marku
p\xsp\EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be
declared abstract. It does not define java.sql.PreparedStatement
prepareStatement(java.lang.String, int) from interface java.sql.Connection.
[javac] public class EsqlConnection implements Connection {
[javac]  ^
[javac]
D:\cocoon-2.0.1\bui

RE: databaseaddaction...help me....

2002-04-05 Thread Rolfe Jenny
Title: RE: databaseaddaction...help me





Brilliant, thank you thank you thank you it works like a charm
jenny


-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 9:51 AM
To: [EMAIL PROTECTED]
Subject: Re: databaseaddaction...help me



On 05.Apr.2002 -- 09:26 AM, Rolfe Jenny wrote:
> HttpProcessor[8080][3]/AbstractDatabaseAction: Setting column 2 named
> key:page:pageid with value null


From this we can conclude that the value is not found. OK, the issue
is a bit complicated here. And you coudn't have known unless
inspecting the source (which I did just now):


If you happen to insert a key column like Guiseppe did, you can use
   
Where the important part is the mode attribute.


If you want to insert into a "value" column, however, this is not
supported. Instead, you need to provide the complete request attribute
name which is prefixed with "org.apache.cocoon.acting.AbstractDatabaseAction:" 
thus it would be in your case 
org.apache.cocoon.acting.AbstractDatabaseAction:key:page:pageid


The action will first try to find a request parameter with that name
and then try a request attribute of that name.


> xcpt
>   
>    
>  
>    
> 
>
>   
>   ...more values...
> 
>   
>
>   
> 
    


>   ...more values...
>    
>   


HTH


    Chris.


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


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


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





I18n and Cocoon2

2002-04-05 Thread Matthieu Sozeau

I've got some questions/feature requests for the i18n transformer:

1) When I have large chunks of data containing markup (say 
  These files are {0} encoded, a format similar to 
the mp3 but which is totally free (source code, algorithms...) and more powerful. If u 
use windows and {1} you may whish to download the {2}. Under linux, it's commonly 
installed with {3} or {4}. 

-
 http://www.vorbis.com"label="oggVorbis"vers="_new"/>
 
-
http://www.winamp.com"label="winamp"vers="_new"/>
 
-
 
 
-
http://www.xmms.org"vers="_blank"label="XMMS"/>
 
-
 http://www.freeamp.org"vers="_blank"label="FreeAmp"/>
 
 

Pipeline:




  




Translates 




Output:
-
 http://www.vorbis.com";>oggVorbis
 http://www.winamp.com";>winamp
 plugin
 http://www.xmms.org";>XMMS
 http://www.freeamp.org";>FreeAmp
These files are null encoded, a format similar to the mp3 but which is totally free 
(source code, algorithms...) and more powerful. If u use windows and null you may 
whish to download the null. Under linux, its commonly installed with {3} or {4}.
 




2)Is there any way for doing in-place translations like:

Hello
Bonjour


thus overriding catalogues?


-- 
"Black holes are where God divided by zero." - Steven Wright

MaT|TaM


msg10506/pgp0.pgp
Description: PGP signature


Re: Cocoon 1.82 + CLOBs + Oracle + esql

2002-04-05 Thread Andreas Kuehne


Hi Russell ,

>   I've had a hell of a time getting cocoon 1.82 and the esql taglib to
>   pull XML data stored in CLOB fields from Oracle 8.1.7 (using the
>   thin Oracle driver)
> 
>   I decided to fix it, and happily all I had to do was add a few things
>   to the esql.xsl file under src.
thank you for your effort ! 
Ja, I truely need *LOB-Support. Thank you !

Furthermore I have to zip the XML data, there is giant redundancy in it ...
If I'll succeed, I going to give it back.

Does anyone uses the LONGVARBINARY type ? I would prefer it because of the lack of
transactionality with *LOB types.


Greetings from Germany

Andreas Kuehne

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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

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




Re: databaseaddaction...help me....

2002-04-05 Thread Christian Haul

On 05.Apr.2002 -- 09:26 AM, Rolfe Jenny wrote:
> HttpProcessor[8080][3]/AbstractDatabaseAction: Setting column 2 named
> key:page:pageid with value null

>From this we can conclude that the value is not found. OK, the issue
is a bit complicated here. And you coudn't have known unless
inspecting the source (which I did just now):

If you happen to insert a key column like Guiseppe did, you can use
   
Where the important part is the mode attribute.

If you want to insert into a "value" column, however, this is not
supported. Instead, you need to provide the complete request attribute
name which is prefixed with "org.apache.cocoon.acting.AbstractDatabaseAction:" 
thus it would be in your case 
org.apache.cocoon.acting.AbstractDatabaseAction:key:page:pageid

The action will first try to find a request parameter with that name
and then try a request attribute of that name.

> xcpt
>   
>
>  
>
> 
>
>   
>   ...more values...
> 
>   
>
>   
> 


>   ...more values...
>
>   

HTH

Chris.

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

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

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




Validating an XSL-FO

2002-04-05 Thread Hahn Kurt (CHA)

I'm trying to produce PDF-documents, and I'm really desperate. For a while,
I tried to apply some minor changes to a previously working XSL, and all I
get since then is the Acrobat message "The file is damaged and could not be
repaired". However, if I choose xml as ouput instead, everything looks fine
to me, I get a well-formed document. Is there a way I can validate such a
document? I mean something similar to a compiler, that tells me at least
WHERE in the document the error occurred?

Thanks

-
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: databaseaddaction...help me....

2002-04-05 Thread Rolfe Jenny
Title: RE: databaseaddaction...help me





I've included the relevant section from the sitemap logs below. It looks as if the pageid is being saved as a sitemap parameter but it is not being picked up by 'key:page:pageid'. Now this database stuff is in the middle of a whole heap of things, I'm picking up some form data on an xsp page, sending some of it the the database and I'm also using the sourcewrite thingy to save and xml stream to file. So it really is quite likely that some thing is going wrong somewhere else. What I need to know is if 'key:page:pageid' is the way to pick up the previously auto incremented value from the other table or whether there is another way to do this or whether anyone with 'fresh eyes' can pick up on any obviously stupid mistakes I've made.


pagetemplates/pagestructurexsl/getpagestructure.xsl
DEBUG   (2002-04-05) 09:03.29:492   [sitemap.tutorial.action.dbAdd](/xcpt/getpagestructure1) HttpProcessor[8080][3]/AbstractComplementaryConfigurableAction: Using cached configuration for context://descriptors/dbstuff.xml

DEBUG   (2002-04-05) 09:03.29:562   [sitemap.tutorial.action.dbAdd](/xcpt/getpagestructure1) HttpProcessor[8080][3]/DatabaseAddAction: Add query: INSERT INTO page (pageid, title, pagename, templatenum, techlocation, layoutnum) VALUES (?, ?, ?, ?, ?, ?)

DEBUG   (2002-04-05) 09:03.29:582   [sitemap.tutorial.action.dbAdd](/xcpt/getpagestructure1) HttpProcessor[8080][3]/DatabaseAddAction: Manually setting key to 9

DEBUG   (2002-04-05) 09:03.29:582   [sitemap.tutorial.action.dbAdd](/xcpt/getpagestructure1) HttpProcessor[8080][3]/AbstractDatabaseAction: Setting column 2 named pagetitle with value newpage

DEBUG   (2002-04-05) 09:03.29:582   [sitemap.tutorial.action.dbAdd](/xcpt/getpagestructure1) HttpProcessor[8080][3]/AbstractDatabaseAction: Setting column 3 named pagename with value newday

DEBUG   (2002-04-05) 09:03.29:582   [sitemap.tutorial.action.dbAdd](/xcpt/getpagestructure1) HttpProcessor[8080][3]/AbstractDatabaseAction: Setting column 4 named pagestructure with value 1

DEBUG   (2002-04-05) 09:03.29:582   [sitemap.tutorial.action.dbAdd](/xcpt/getpagestructure1) HttpProcessor[8080][3]/AbstractDatabaseAction: Setting column 5 named location with value 10/xmldump/newday

DEBUG   (2002-04-05) 09:03.29:582   [sitemap.tutorial.action.dbAdd](/xcpt/getpagestructure1) HttpProcessor[8080][3]/AbstractDatabaseAction: Setting column 6 named layoutnum with value 1

DEBUG   (2002-04-05) 09:03.29:582   [sitemap.tutorial.action.dbAdd](/xcpt/getpagestructure1) HttpProcessor[8080][3]/DatabaseAddAction: Add query: INSERT INTO boalinks (parentboaid, childpageid) VALUES (?, ?)

DEBUG   (2002-04-05) 09:03.29:582   [sitemap.tutorial.action.dbAdd](/xcpt/getpagestructure1) HttpProcessor[8080][3]/AbstractDatabaseAction: Setting column 1 named parentboaid with value 6

DEBUG   (2002-04-05) 09:03.29:582   [sitemap.tutorial.action.dbAdd](/xcpt/getpagestructure1) HttpProcessor[8080][3]/AbstractDatabaseAction: Setting column 2 named key:page:pageid with value null

DEBUG   (2002-04-05) 09:03.29:582   [sitemap](/xcpt/getpagestructure1) HttpProcessor[8080][3]/sitemap_xmap: Action set action_set_dbstuff

DEBUG   (2002-04-05) 09:03.29:582   [sitemap](/xcpt/getpagestructure1) HttpProcessor[8080][3]/AbstractSitemap: 
Current Sitemap Parameters:
PARAM: 'pageid' VALUE: '9'
PARAM: '../1' VALUE: '1'
PARAM: '../0' VALUE: 'getpagestructure1'



Just in case it sheds any light here is the section from the sitemap:



  
  
  
  
    
  
  
  



and here is the actionset:




  
    
  
  
    
  




And I do appologise if it seemed I was being overly impatient but the first post was lost in a very old thread and pretty unreadable so I thought it would be a better idea make it clearer and post it again rather than hope someone was willing to wade through the messy email. 

jenny


-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 8:51 AM
To: [EMAIL PROTECTED]
Subject: Re: databaseaddaction...help me



On 04.Apr.2002 -- 04:31 PM, Rolfe Jenny wrote:
> Okay so what I want to do is use the default database add action to update
> two tables, in one I automatically generate an id then I want to also put
> this id into the second table. So here's what I do:


I think the modular database actions are stable now and they know
about autoincrement columns. So perhaps you should have a look at it.


> xcpt
>   
>        
>  
>    
> 
>    
>   
>   ...more values...
> 
>   
> 
>   
> 
>   
>   ...more values...
>    
>   
> 
> I've tried putting in a key, tried page.pageid, etc, etc, ect. Basically I'm
> randomly trying stupid things now, pissing in the wind and getting very
> angry with it.


Since you quoted the last discussion about this in your last posting,
you've seen my advice on this and the solution we reached there
already. Printout all request attributes and see what's there. It
would greatly help if yo