RE: AW: Compression in HTML Serializer ?

2002-03-11 Thread SANSONE, AARON M [Non-Pharmacia/1000]
FYI, we are using Apache 1.3.9, with MOD_GZIP running Cocoon under the JRun servlet engine and we are seeing 85%-95% compression ratios! We are returning large data sets to the user so needless to say this is a huge performance boost for us. -Aaron > -Original Message- > From: Alex McLi

Setting the SQL Prefetch...

2002-03-07 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Is there a way to set the SQL Prefetch value when using the Cocoon datasources? Example Java code would be: Statement sql = connection.createStatement(); sql.setFetchSize(100); ResultSet rs = sql.executeQuery("Select * from table"); I would imagine a parameter passed to

RE: writing xml to file

2002-02-14 Thread SANSONE, AARON M [Non-Pharmacia/1000]
I wrote a custom Transformer that writes it out to disk and passes the SAX Events through (for serialization or other transformation, very useful for debugging). If anyone is really interested in this I can contribute it to the codebase. -Aaron -Original Message- From: Bert Van Kets [ma

RE: More on Cocoon 2 generated SAX Exception

2002-02-13 Thread SANSONE, AARON M [Non-Pharmacia/1000]
age- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 5:41 PM To: [EMAIL PROTECTED] Subject: RE: More on Cocoon 2 generated SAX Exception > From: SANSONE, AARON M [Non-Pharmacia/1000] > > Cocoon 2.0 - Running on P3-500 NT 4.0 SP6 with JRun 3.1 > > Here

RE: Cocoon 2.0.1 Problem changing default parser to Xerces...

2002-02-13 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Vadim, I got the Feb 13, CVS Snapshot and this is working now. Thanks. However, I am still having the Problem with the AbstractDOMTransformer that I've implemented. See the "More on Cocoon 2 generated SAX Exception" Thread. Thanks, Aaron (P.S. here is the exception from the thread I'm talki

RE: MySQL Insert

2002-02-13 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Ferran, Yes you can do any SQL statement using the transformer. An insert may look like this: http://apache.org/cocoon/SQL/2.0";> http://apache.org/cocoon/SQL/2.0";> insert into tablex ( username, password, activeFlag ) values ('', '', 'Y') Then process this throught the SQL

Cocoon 2.0.1 Problem changing default parser to Xerces...

2002-02-12 Thread SANSONE, AARON M [Non-Pharmacia/1000]
According to documentation, to change the default XML Parser to user Xerces (as opposed to JAXP), the following two steps must be taken: 1) Add "-Dorg.apache.cocoon.components.parser.Parser=org.apache.cocoon.components.p arser.XercesParser" to the JVM Startup args for your servlet engine. 2) Pla

RE: More on Cocoon 2 generated SAX Exception

2002-02-12 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Exception > From: SANSONE, AARON M [Non-Pharmacia/1000] > > Cocoon 2.0 - Running on P3-500 NT 4.0 SP6 with JRun 3.1 > > Here is some extra exception information from root.log I didn't include > before: > > org.xml.sax

RE: from session-attribute to xsl-variable

2002-01-14 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Uwe, I think what you are looking for is passing request parameters to the stylesheet. To do that you must pass the paramters in the sitemap. For example: This declares that all the request parameters will be passed to the Stylesheet. Then in the stylesheet you must declare the va

RE: How to call an external Servlet?

2002-01-14 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Andreas, Just a random thought but: I believe that if you use the request-parameter action, you can actually retrieve the query string as a sitemap parameter. Then you could use that string as your GET parameter set (which would forward all parameters that were passed in). Check the source cod

RE: authorization of a subproject

2002-01-11 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Pino, We control access to our entire project using nested match patters like this: ... other matchers... The * match pattern is the first filtered match

XSLT Pipeline Transformation Inconsitencies (bugs?)

2001-12-19 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Sorry for the cross post, but I don't know where this belongs. I am using what appears to be an A=B=C situation with pipelines but I am seeing three completely different results. I am using the default XSLT Transfomer: org.apache.cocoon.transformation.TraxTransformer and below you will find th

Invalid State Exception using SQLTransfomer and AbstractDOMTransformer (WAS: Problem Implementing AbstractDOMTransformer...)

2001-12-19 Thread SANSONE, AARON M [Non-Pharmacia/1000]
e any ideas? Thanks, Aaron -Original Message- From: SANSONE, AARON M [Non-Pharmacia/1000] Sent: Tuesday, December 18, 2001 5:10 PM To: Cocoon-Users (E-mail) Subject: Problem Implementing AbstractDOMTransformer... Hi, I'm trying to create an implementation that extends AbstractDOMT

RE: Cocoon Logging Issue...

2001-12-19 Thread SANSONE, AARON M [Non-Pharmacia/1000]
ne ? > > -- > Sylvain Wallez > Anyware Technologies - http://www.anyware-tech.com > }//Unquote > > I am experiencing the same problem. Currently I am trying earlier avalon > builds but nothing is a fix yet. > > Anyone else with this problem? > > Roger > > -

Problem Implementing AbstractDOMTransformer...

2001-12-18 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Hi, I'm trying to create an implementation that extends AbstractDOMTransformer. I have a piece of java code that takes a document, does some work and returns a new document that is to be streamed back to the pipeline. According to the javadocs all I have to do is implement the transform method. I

RE: starting Xvfb for Cocoon

2001-12-18 Thread SANSONE, AARON M [Non-Pharmacia/1000]
g it for use with Cocoon is > questionable as GNU does not consider the Apache license to be compatible > with the GPL. > > > -Original Message- > > From: SANSONE, AARON M [Non-Pharmacia/1000] > > [mailto:[EMAIL PROTECTED]] > > Sent: Monday, December 17, 2001 7

RE: starting Xvfb for Cocoon

2001-12-17 Thread SANSONE, AARON M [Non-Pharmacia/1000]
; -Original Message- > From: SANSONE, AARON M [Non-Pharmacia/1000] > [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 17, 2001 7:27 AM > To: '[EMAIL PROTECTED]' > Subject: RE: starting Xvfb for Cocoon > > There is another solution to the XVFB pro

RE: starting Xvfb for Cocoon

2001-12-17 Thread SANSONE, AARON M [Non-Pharmacia/1000]
There is another solution to the XVFB problem which we are implementing: You can use http: //www.eteks.com/pja/en which is a replacement for the Java Graphics package. It is 100% Pure Java and doesn't use any native graphics resource of the system on which the Java Virtual Machine runs. There

Cocoon Logging Issue...

2001-12-13 Thread SANSONE, AARON M [Non-Pharmacia/1000]
All, We are running C2 on JRun and seeing the following error: Logging Error: Could not set up Cocoon Logger, will use screen instead org.apache.avalon.framework.configuration.ConfigurationException: cannot find LogTargetFactory class org.apache.cocoon.util.log.CocoonTargetFactory at org

RE: Logging...

2001-12-07 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Add the following to your web.xml file (in WEB-INF) log-level DEBUG Allbeit this turns on all logging, but you could filter out everything but XIncludeTransformer with the logkit... HTH, Aaron -Original Message- From: Mitchell Christensen [mailto:[EMAIL PRO

RE: IllegalArgumentException TraxTransformer on Solaris...

2001-12-07 Thread SANSONE, AARON M [Non-Pharmacia/1000]
For the archives: I solved the issue. There was an older Xalan jar file in the classpath prior to the newer version supplied with cocoon. -Aaron -Original Message- From: SANSONE, AARON M [Non-Pharmacia/1000] Sent: Thursday, December 06, 2001 12:25 PM To: Cocoon-Users (E-mail) Subject

IllegalArgumentException TraxTransformer on Solaris...

2001-12-06 Thread SANSONE, AARON M [Non-Pharmacia/1000]
All, I am trying to deploy Cocoon to a Solaris system using JRun. We were getting an error about not having an X11 server which we resolved using the XVFB in-memory XServer. However, we are now recieving the following exception which I have not seen before: jcp-0/TraxTransformer: Problem in ge

RE: Calling C2 from command line: problem with Oracle driver

2001-12-04 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Hi Christoph, To get oracle working, you must first add a section to load the oracle driver class in the web.xml file. Be certain that the Oracle driver Jar file is in your servlet engine's classpath. Cocoon2 load-class

RE: Calling C2 from command line: problem with Oracle driver

2001-12-04 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Hi Christoph, To get oracle working, you must first add a section to load the oracle driver class in the web.xml file. Be certain that the Oracle driver Jar file is in your servlet engine's classpath. Cocoon2 load-class

RE: Can't connect to X11 window server exception...

2001-12-03 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Sorry for the post. I should know better and check the FAQ! :) -Original Message- From: SANSONE, AARON M [Non-Pharmacia/1000] Sent: Monday, December 03, 2001 12:54 PM To: Cocoon-Users (E-mail) Subject: Can't connect to X11 window server exception... All, I am trying to deploy c

Can't connect to X11 window server exception...

2001-12-03 Thread SANSONE, AARON M [Non-Pharmacia/1000]
All, I am trying to deploy cocoon to a Sun Ultra-4 Sparc runining SunOS 5.8. When trying to hit the opening page the compliation of the sitemap occurs and generates the following stacktrace: java.lang.InternalError: Can't connect to X11 window server using 'milhouse:0.0' as the value of the DISP

RE: extra-classpath

2001-12-03 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Ulli, Just place any necessary jar files in your WEB-INF/lib directory. Your servlet engine should pick it up if it is 2.2 compliant. HTH, Aaron -Original Message- From: Ulli Hoffmann [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 5:06 AM To: [EMAIL PROTECTED] Subject: extr

C2 Using Datasources for DEV, TEST, PROD...

2001-11-28 Thread SANSONE, AARON M [Non-Pharmacia/1000]
I am preparing to implement a Cocoon 2 Web Site for Production purposes. Like many organizations, we have a Development, Test and Production environment. Each environment has it's own web server and oracle database. What is the best way to automate having Cocoon 2 use the appropriate datasource d

C2 Installation on JRun 3.x...

2001-11-21 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Has anyone successfully installed C2 on a JRun Servlet engine? I have had some success but am trying to package an application as a WAR file and deploy. My problem is that Cocoon2 won't run unless the JAR files are located in the JRun server lib directory. According to the Servlet 2.2 spec, the

RE: [C2] using HTML "nowrap" in a

2001-10-26 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Mark, The reason you had problems is that the HTML is actually XHMTL which is just well formed HTML. The XHTML Documents must conform to all the rules of XML. So attributes of a tag must have the form tag=""; So in your example to get a browser to actually use the nowrap tag the way you are expe

RE: [C2] Howto ... IF in sitemap ...

2001-10-22 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Eduardo, Actions work within a block structure. If the action itself returns NULL, then the action fails and the tags within the action block are not processed. You can use this to create a type of IF logic such that IF the action fails (returns NULL) then the code within the block structure ex

JUnit Testing Actions with Logging...

2001-10-19 Thread SANSONE, AARON M [Non-Pharmacia/1000]
Hello everyone, In Cocoon2 has anyone successfully configured a JUnit test case that will run an Action (or any other class) that has logging method calls in it? For example, I have an action that I am able to Unit test with out any problem until I add the following (line 45): getLogger().

C2 Problem Rendering XHTML Files without Transformation...

2001-10-05 Thread SANSONE, AARON M [Non-Pharmacia/1000]
I am attempting to send XHTML files (as is) through C2. To do this I created a match pattern in sitemap as follows: ---excerpt from sitemap.xmap This should match any pattern of an xhtml file extension, generate it from

RE: [C2] Err-Msg: No more DTM IDs are available ????

2001-10-05 Thread SANSONE, AARON M [Non-Pharmacia/1000]
All, I have been having the same problems as Eduardo, and at one point found that hitting the main page first seemed to fix the problem. Later after starting to work through cTwIG tutorial, I was generating the error even on the main page. I found two things that I believe resolved this problem