Re: converting HTML to PDF

2003-02-07 Thread Mike Haarman

On Fri, 7 Feb 2003, Afshartous, Nick wrote:

>
> Hi,
>
> I was wondering if anyone has experience in converting HTML to
> PDF ?  For instance does anyone have a stylesheet to handle
> the formatting of nested tables and CSS ?
>
> Thanks for any tips or pointers to resources.
>
> --
>   Nick
>

Antennae House, home of a famous formatting objects processor, has an
HTML2FO.xsl on their site which is a good starting point for a stylesheet
to handle this transformation.

Provided you are beginning with something well-formed, this is pretty
garden-variety problem to solve.  Do it yourself.

If you do it right, your nested tables will nest themselves.

Mike


Mike Haarman
[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 NOT REPLY [PATCH QUEUE] Summary February 8 2003

2003-02-07 Thread nicolaken
---
 This mail is generated automatically using
 Jakarta Ant. Contents are automatically
 downloaded from Apache's Bugzilla.
---
 Please do not reply to this mail.
---

***
COCOON PATCH QUEUE UPDATE
 
patches in queue:  30 
***


---
9728:[PATCH] CocoonServlet getClassPath() enhancements Tomcat4
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9728

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
11533:[PATCH] Replacement for AvalonToCocoonSource
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11533

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
11549:[PATCH] Replace LogKitManageable through LoggerManageable
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11549

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
12173:[PATCH] SQLTransformer Query object prematurely closes conne
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12173

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
12235:[PATCH] XPathTransformer
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12235

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
12993:[PATCH] New version of CastorTransformer (includes marshalli
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12993

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14117:[PATCH] AuthAction fails in sub-requests
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14117

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14144:[Patch] add CompressionFilter declaration to web.xml
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14144

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14327:[PATCH] JSPEngineImpl response charset should be specified w
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14327

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14803:[PATCH] cacheable.xsp for new AbstractServerPages
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14803

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14845:[PATCH] Patch to generate a key with new resources in XMLDBT
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14845

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14986:[PATCH] Enables velocitygenerator to get objects from reques
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14986

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
15100:[patch]/[donation] Sample app xml form popup with sourcewrit
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15100

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
15150:[PATCH]: HSSFSerializer Support for Gnumeric MergedRegions
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15150

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
15350:[PATCH] BufferedOutputStream, Tomcat >= 4.1.15
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15350

REVIEWER:[EM

Cinclude issues...

2003-02-07 Thread Ben Young
I've recently attempted to use the cinclude to aggregate some files that I'm
currently aggregating with the map:aggregate command, but I've run into some
"issues" that I'm not sure how to resolve.

My current map:match section looks like this:


  
   
  
  
   
  
  


  
  


I use an "internal-only" pipeline to find the nearest _navigation.xml file
in existence.


  

   
   
   


  


I'd like to move the aggregation step after the shell.xsl is applied. The
plan is to have the shell.xsl output a cinclude tag that uses the
"cocoon://" psuedo-protocol in the appropriate place using the $path
parameter plus "_navigation.xml"

My current trouble is that the cinclude only runs through the internal
pipeline once.

Thank you for any help you might be able to give,
Ben


-
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 and unique or primary keys

2003-02-07 Thread Antonio Gallardo
Hi,

Today morning I told you about the MODULAR Database Actions, also I
pointed you to:

http://wiki.cocoondev.org/Wiki.jsp?page=ModularDatabaseActions

There you can find ALL the info about how to do what you mean. Also I can
work with sequence (you told before you use PostgreSQL 7.2).

Sheraz Sharif dijo:
> Hello all,
>
> I have been working on a website for a while.  Here is my problem - I
> can easily verify user input through forms and return any error messages
> through the xsp-formval tags.  After validation, the input is passed to
> the database.  However, I get an SQL exception :
>
> ProcessingException: Could not add record: java.sql.SQLException: ERROR:
> Cannot insert a duplicate key into unique index category_name_key
>
> This is happening because I am attempting to insert a value into a key
> column where that value already exists.  I am looking for a solution
> where cocoon will connect to the database and attempt to retreive the
> key value before the insert.  If it does not exist, it will insert it,
> otherwise it will fail and I can notify the user of the error.

I think you can do a select before and check for the result of the select.
Sorry, I use XSP, but maybe the example will work:


 
SELECT the_key
FROM the_table
WHERE the_key=
  
  


  
INSERT INTO the_table(the_key, the_data1, the_data2) ..
  
  

  
  

  


Best Regards,

Antonio Gallardo



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




[ANN] - Tomcat /status information disclosure

2003-02-07 Thread Antonio Gallardo
Title: Tomcat /status information disclosure
 ID: 11218
 Category: Misc.
 URL: http://www.securityspace.com/smysecure/catid.html?id=11218
 Summary: Makes a request like http://www.example.com/server-status



-
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: Can someone help this problem!

2003-02-07 Thread Tony Collen
On Fri, 7 Feb 2003, Rice Yeh wrote:

> Hi,
>   I posted this problem few days ago. Someone also has
> the same problem. But it seems no solution util now.
> This should be a easy for you gurus but frustrate me a
> lot. My jvm is 1.4.1. I repeated my problem as follows

Hello,

Your problem can be solved by taking the stuff from cocoon's lib/endorsed/
dir and replace the contents of tomcat's common/endorsed/ directory... I
run into this problem when installing Tomat and Cocoon from scratch
lately.. this should help.

tony


-
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: Configuring Cocoon to run under Apache/Tomcat virtualhost?

2003-02-07 Thread Geoff Howard
I've mentioned this once before on the list I think, but I have a simple
action
that checks container based roles.  I can send you more information this
weekend
from home if you're interested.

Geoff
-Original Message-
From: Derek Hohls [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 1:16 AM
To: [EMAIL PROTECTED]
Subject: Re: Configuring Cocoon to run under Apache/Tomcat virtualhost?


Hussayn

Thanks for the reply  - I need to do a number of things:

1. Protect the whole site so it cannot be accessed at all
(except through single login screen) while under development.

2. Create an alias (virtual host) - as seen on many Cocoon
sites - that is easier to remember & work with

3.  I am using form-based authentification for restricted access
*within* the site itself (certain users having access to certain
parts)


For 1 and 2 above, I think its most effective to use Apache/Tomcat
services - and for 3 use Cocoon.

If you could supply any code snippets that you think are relevant, I
would appreciate it.

Derek

>>> [EMAIL PROTECTED] 06/02/2003 04:58:06 >>>
i am running an apache/tomcat/cocoon combination with authentication
driven by tomcat (just setting the correct security-constraints within
the web.xml and adding the right REALM in tomcat/server.xml ...

i did never touch the apache server itself for authentification
issues...

And i'm using form based authentification.

regards, hussayn


Derek Hohls wrote:
> Hi
>
> I am looking for help with configuring an Apache/Tomcat
> setup, trying to support a password-protected Cocoon
> site that must be accessed by a virtual host name.
>
> The UNIX support has tried to set it up (see below),
> but trying to access the site results in an error 302,
> which just repeats over and over in the log file:
> 111.11.1.1 - - [06/Feb/2003:14:11:00 -0200] "GET /cocoon/myapp/index
> HTTP/1.1" 302 0
> and of course the site is not accessible.
>
> Any help with this is *much* appreciated; maybe
> a small help file can be added to the Wiki.
>
> Thanks
> Derek
>
> ***
>
> The configuration entry looks as follows:
>
> 
>
> ServerAdmin joe@mydomain 
> ServerName myapp.csir.co.za:80
> DocumentRoot /usr/local/tomcat/webapps
>
> 
> AuthType Basic
> AuthName "myappis a restricted area !"
> AuthUserFile /usr/local/apache/users
> Require valid-user
> 
>
> RewriteEngine   on
> RewriteRule ^/(.*)  /cocoon/appdir [PT]
> WebAppConnection appdirConnection warp server.host.com:8008
> WebAppDeploy cocoon appdirConnection /cocoon/
>
> 
>
> --
> This message has been scanned for viruses and dangerous content by
> *MailScanner* , and is believed to be clean.
>
> "The CSIR exercises no editorial control over E-mail messages and/or
> attachments thereto/links referred to therein originating in the
> organisation and the views in this message/attachments thereto are
> therefore not necessarily those of the CSIR and/or its employees.
> The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
> of Service, subject to compliance with the CSIR's internal E-mail and
> Internet Policy."

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
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]>



--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy."


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

2003-02-07 Thread Geoff Howard
pretty sure you place it anywhere you want - you just need to reference it
properly from within the src attribute of map:act

Geoff

-Original Message-
From: Olivier GUCKERT [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 8:34 AM
To: Cocoon-user
Subject: XSPAction


Hello

I read the Wiki how-to about XSPAction, and think it's a good idea.

But i stil have a question : where should i put the my-xsp-action.xsp
file

Do i have to write a map:match for it and if yes, how (serialize xml ?)


Thanks


Olivier Guckert

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




Can someone help this problem!

2003-02-07 Thread Rice Yeh
Hi, 
  I posted this problem few days ago. Someone also has
the same problem. But it seems no solution util now.
This should be a easy for you gurus but frustrate me a
lot. My jvm is 1.4.1. I repeated my problem as follows

I checked out cocoon2 from cvs and build a webapp
> with the folloing command 
> 
> .\build.bat -Dinclude.webapp.libs=yes
> -Dexclude.webapp.javadocs=yes
> webapp
> 
> I installed the web ap on tomcat 4.1.18 and access
> the firt page with url
http://localhost:8080/cocoon/,
> then the error responed as shown in the following, 
> what is wrong?

type fatal

message Failed to execute pipeline.

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

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

cause

org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!

request-uri

/cocoon/documents/index.html

full exception chain stacktrace

Original exception :
org.apache.cocoon.CascadingIOException:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!
at
org.apache.cocoon.serialization.HTMLSerializer.setOutputStream(HTMLSerializer.java:92)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:277)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:485)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:145)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:131)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at org.apache.cocoon.Cocoon.process(Cocoon.java:600)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1074)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.c

DatabaseAddAction and unique or primary keys

2003-02-07 Thread Sheraz Sharif
Hello all,

I have been working on a website for a while.  Here is my problem - I
can easily verify user input through forms and return any error messages
through the xsp-formval tags.  After validation, the input is passed to
the database.  However, I get an SQL exception :

ProcessingException: Could not add record: java.sql.SQLException: ERROR:
Cannot insert a duplicate key into unique index category_name_key

This is happening because I am attempting to insert a value into a key
column where that value already exists.  I am looking for a solution
where cocoon will connect to the database and attempt to retreive the
key value before the insert.  If it does not exist, it will insert it,
otherwise it will fail and I can notify the user of the error.  Have I
been verbose enough?  If no solution exists, I am thinking I can either
extend or rewrite the DatabaseAddAction class to do this.  Or should I
abandon logicsheets all together and move to xforms?  Thanks.

Sheraz
-- 
[EMAIL PROTECTED]
m3b Consulting
www.m3b.net
832.573.0937



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




Installation of tomcat 3.2.3 and cocoon 2.0.2 in MAC G4

2003-02-07 Thread M.Haq
Hi,
Is there anyone who can help me to install tomcat 3.2.3 and cocoon 
2.0.2 in my MAC G4. No matter what i do I can not get tomcat to 
startup. I have already tried to follow the UNIX installation but it 
does not work, as it says that the commands not found. I cannot get a 
bash cell as bash is not installed in my computer to apply the commands 
that has mentioned in UNIX installation instruction. My cell is called 
Darwin. I don't know how to install tomcat 3.2.3 and cocoon 2.0.2 in my 
MAC G4 from a darwin cell and set up the environment path for tomacat 
and jJAVA_HOME environment.
- Mahbub 


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



custom generator not working on a fresh install

2003-02-07 Thread peter riegersperger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all!

We reactivated a Cocoon-based project that I haven't touched for a while, and 
I try to get Cocoon (and that project) running on my notebook.
Included in this project is a custom generator, and this seems to be a bit of 
a problem.

On the development server, all is running fine, but as soon as I add the 
custom generator to the sitemap on my notebook, I get the following error:

org.apache.cocoon.ProcessingException: Error compiling sitemap: 
java.lang.NoClassDefFoundError: 
org/apache/cocoon/generation/AbstractGenerator

Our custom generator extends AbstractGenerator, but why can't Cocoon find it? 
On our server, there's no problem with the custom generator.
(The rest of cocoon is running excellent, as is everything else I modified. 
It's just the mention of the generator)

The server is running on cocoon-2.0.3, I'm using 2.0.4 (Source distribution) 
on my notebook.
All in all, I'm running:
Linux
Tomcat 4.0.4
Cocoon 2.0.4 (the binary distribution)
j2sdk1.4.1_01

First, I built Cocoon with
./build.sh  -Dinclude.webapp.libs=yes -Dinstall.war=$TOMCAT_HOME/webapps 
webapp

Then, I copied it to /tomcat/webapps

I copied the following files to tomcat/common/lib:
xalan-2.3.1.jar
xercesImpl-2.0.0.jar
these two where present:
xercesImpl.jar
xmlParserAPIs.jar

I copied the following files to jdk1.4-home/jre/endorsed:
xalan-2.3.1.jar
xercesImpl-2.0.0.jar
xml-apis.jar

The jar with our custom generator is in
cocoon/WEB-INF/lib
and
tomcat/common/lib

I've been fiddling around with this the whole day, and obviously I've 
forgotten something.

I hope anyone can help me, and that this mail makes any sense (after 13 hours 
of copying, deleting and modifying files on a 12"-screen),

rick

ps: In my desperation, I even tried copying the complete cocoon-directory from 
our server, but the error is exactly the same.

- -- 
|-
| peter riegersperger  <[EMAIL PROTECTED]>
|-
| ein windows switcher tagebuch:
| http://forum.subnet.at/viewforum.php?f=22
|-
| subnet
| platform for media art and experimental technologies
|-
| http://www.subnet.at/
|-
| muehlbacherhofweg 5 // 5020 salzburg // austria
|-
| fon/fax +43/662/842 897
|- 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+RCqZIMP39JYOy9IRAprvAJ0VZEyUTXWrsZyf7fu2xYFLgQTY4wCgnMjo
8a1+kufRaUL4Jgv2FwizdCk=
=mXC4
-END PGP SIGNATURE-


-
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: Consultants in San Diego, CA Area

2003-02-07 Thread jeffrey abbott
Chris,
 I'm in the San Diego area and would like to talk with you. You can
call me at 619-933-6630.

Jeffrey


- Original Message -
From: "Chris Dietz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 06, 2003 3:36 PM
Subject: Consultants in San Diego, CA Area


>
> I am interested in talking to any consultants who live
> around San Diego, CA  USA
>
> I am working with cocoon and looking for
> others doing the same.
>
> If so, send me an e-mail
> 
> Chris
> [EMAIL PROTECTED]
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


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

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




Running cocoon2.0.4 on weblogic7.0 with JSPs

2003-02-07 Thread Girish Bhakta
Hi,
i am facing problems with respect to JSPs of Cocoon on
Weblogic 7.0 . I have successfully setup the Cocoon
2.0.4 on weblogic 7.0 and can see all the samples
running but it gives folloing error when trying to run
the hello jsp page of cocoon sample.

org.apache.cocoon.ProcessingException: Exception
JspGenerator.generate(): java.lang.ClassCastException:
weblogic.utils.classloaders.ChangeAwareClassLoader 

I have setup the classpath to have xml-apis,xalan
parsers in the beginning.
Anybody facing the same problem?R there any
alternatives ?

GB. 

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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: status quo: cocoon with xsltc

2003-02-07 Thread Robert Sösemann
Thank your VERY much for your help. Yes, I guess it's better to stay with
Xalan.
Rob
- Original Message -
From: "Brian Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 07, 2003 4:48 PM
Subject: Re: status quo: cocoon with xsltc


I can't find anything wrong with your stylesheets, but your problem is
almost definitely related to saxon generating error messages in your
pipeline during transformation. I can't test your setup because I don't
have the itemdata generator, so you'll have to do some stylesheet
debugging to track down the root cause. Sorry I can't give you anything
more to go on. If you're not experiencing a performance increase with
Saxon, maybe you'll be better off going back to plain old Xalan.
Brian


On Wednesday, February 5, 2003, at 04:12  PM, Robert Sösemann wrote:

> Thats the content of include-basepath.xsl
> My problems right now happen with saxon. I already said goodbye to
> xsltc ;-)
> And even saxon doesn't to be a great deal. The pages that work, are not
> faster than before.
>
> Strange, isn't it?
>
> 
>
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>
> 
> 
> /development/
> 
>
> 
> - Original Message -
> From: "Brian Johnson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 05, 2003 4:41 PM
> Subject: Re: status quo: cocoon with xsltc
>
>
> Can you also post the include-basepath.xsl? Are there any other
> messages in the sitemap or error log?
> BTW - I am pretty sure xsltc has a bug and does not handle xsl:include
> relative paths properly. This doesn't affect Saxon.
> Brian
>
>
> On Wednesday, February 5, 2003, at 10:29  AM, Robert Sösemann wrote:
>
>> Thanks for answering that quick.
>>
>> here are snippets
>>
>> sitemap:cinclude
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> > src="transform/dynamic/{stylesheet-name}.xsl" type="saxon"/>
>> 
>> 
>> 
>> 
>>
>> xsl:
>> 
>> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>>
>> 
>>
>> 
>> 
>> 
>> 
>> 
>>
>> 
>>
>>  
>> 
>> 
>> 
>> 
>> 
>> 
>> > href="{$basepath}{@OBERRUBRIK}/{@UNTERRUBRIK}/
>> item_{@ID}.html">> select="UEBERSCHRIFT"/>
>> 
>> 
>> 
>> 
>> > src="{$basepath}/abstractgrafik/{BILD/@SRC}" />
>> 
>> 
>> 
>> 
>>  > href="{$basepath}{@OBERRUBRIK}/{@UNTERRUBRIK}/
>> item_{@ID}.html">mehr...
>> 
>> 
>> 
>> 
>> 
>>
>> 
>>
>>> select="UEBERSCHRIFT"/>
>>> select="TEXT"/>
>>
>> ...
>>
>> - Original Message -
>> From: "Brian Johnson" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Wednesday, February 05, 2003 4:25 PM
>> Subject: Re: status quo: cocoon with xsltc
>>
>>
>> It looks like there might be a problem with your stylesheet. Can you
>> post a copy? Thanks.
>> Brian
>>
>> On Wednesday, February 5, 2003, at 10:20  AM, Robert Sösemann wrote:
>>
>>> No I am using 6.5.2. The problem is that when it comes to resolving a
>>> cinclude I get this message:
>>>
>>> STACKTRACE= org.apache.cocoon.ProcessingException: Failed to execute
>>> pipeline.: org.apache.cocoon.ProcessingException: Exception during
>>> processing of cocoon://item_50-view_ABSTRACT:
>>> javax.xml.transform.TransformerException: org.xml.sax.SAXException:
>>> Invalid
>>> processing instruction name (saxon:warning)
>>>
>>> Any ideas?
>>>
>>> Thanks for your help.
>>> Rob
>>> - Original Message -
>>> From: "Brian Johnson" <[EMAIL PROTECTED]>
>>> To: <[EMAIL PROTECTED]>
>>> Sent: Wednesday, February 05, 2003 1:24 PM
>>> Subject: Re: status quo: cocoon with xsltc
>>>
>>>
>>> I'm using the latest stable version of Saxon with no problems at all.
>>> I've used it under both 2.0.x and 2.1. Are you using one of the
>>> experimental releases?
>>>
>>> On Wednesday, February 5, 2003, at 07:14  AM, Beat De Martin wrote:
>>>
 I'm using Saxon as well, it seems faster than Xalan. And with Xalan
 I
 always
 had problems with the normalize-space function.
 The only problem I have with Saxon is the compiling of the sitemap.
 I'm using Cocoon 2.0.2.

 Did you have the same problem comipiling the sitemap with Cocoon ?
 Cheers
 Beat De Martin

> On Wed, 2003-02-05 at 20:04, [EMAIL PROTECTED] wrote:
>> Dear listmembers,
>>
>> after a frustrating night trying to use xsltc as a faster

XMLForm: Form nodes should not be nested

2003-02-07 Thread Ryan Hofschneider
Howdy:

I'm attempting to create a shopping-cart style table using XMLForm,
where each row represents an instance of a child JavaBean that is stored
in a HashMap of a parent bean.

At the end of each row, I'd like to put a "delete" submit button that
would indicate to my action class that it should remove the child bean
from the HashMap. 

Typically, I would implement this by having an inner form for each row,
and within it put a hidden field (containing the child bean's HashMap
key) and a "delete" submit button.

However, when I do that I get an IllegalStateException: "Form nodes
should not be nested...". 

I guess I could implement the same functionality in a couple of
different ways...

1) Put a radio button next to each row and have a single "delete" submit
button.

2) Maybe butcher "cocoon-action-delete" by tacking on the child bean's
HashMap Key; e.g. "cocoon-action-deleteSomeUniqueId".

...but I'd really like to figure out the proper Cocoon/XMLForm way to
implement my first approach. :)

Thanks for any pointers,
Ryan

Configuration:
Cocoon 2.1 (xml-cocoon-2.1-20030204102824.tar.gz)
Tomcat 4.1.18
Java SDK 1.4.1_01
RedHat 8.0











-
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: no source in the page after two transformation

2003-02-07 Thread Lionel Crine
OK!!
I was sure there was no error, now It's working..
Sorry for the question, I should have found this error myself.



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

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




Re: AW: Session problems

2003-02-07 Thread Roberto Cipollini
> that means, that the JSP and the cocoon stuff live in seperate (webapp)
> contexts (you can of course let cocoon handle JSPs). thus, the
> encodeRedirectURL can't work, of course. note though that the
> encodeRedirectURL should be done when redirecting within your webapp. for
> url rewriting based sessions, this appends the ';JSESSIONID=...' to the
url.
> so, not doing this causes losing the session then.
>
> so what can you do? from the top of my head two ideas:
>
> 1. let cocoon handle the JSPs
> 2. deliver the parameters (username/pw) via request parameters/attributes
> (don't know if the latter works, though).
>

Well, the second idea works fine as i've already tested it and...guess what?
there are 2 different indipendent session.
I put user/pwd values in the session first in the check_login.jsp page, and
then send them via form/action/post/submit to the cocoon environment to let
them be stored in the session of coccon. In this way, i got two session with
the same values that i can retrieve in tomcat or cocoon as for my needs.
This system looks like a bit "non pro". it's just a way of getting round the
obstacle. i don't know if this is the right way.

The first idea seems likely the most useful, but i really CANT have my jsp
be compiled inside the cocoon env.
Just to understand my system i use redhat8, tomcat 4.0.4 and cocoon 2.0.3
I've tryed to have a jsp page be served by cocoon but i got a 505 server
error pagewhat a tricky situation :)

ill keep on trying

see ya later
thanks.
Roberto



-
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: no source in the page after two transformation

2003-02-07 Thread Brian Johnson
I meant to say the name template does not end with an end tag... 
 instead of 

On Friday, February 7, 2003, at 11:19  AM, Brian Johnson wrote:

You have an error in your stylesheet. The name template does not end 
with a name tag. Also, I believe you need the identity template at the 
top, so it has the lowest priority.
Brian

On Friday, February 7, 2003, at 11:14  AM, Lionel Crine wrote:

I made a query in my XMLDB :

In the sitemap :


  
  
  
  
  
  
  
  
  
  
  


the stylesheet :



   

   
  




http://apache.org/xsp"; 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
























   

   
  


When i look the source of the documents in my browser i found :



http://apache.org/xsp";> --> this line has no link 
with my question









MY QUESTION IS : Where are the elements in table ?
When I match name I have a nullpointerexception!!!
Why my elements disappear betwean the two transformer ?





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

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





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

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






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

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




Re: no source in the page after two transformation

2003-02-07 Thread Brian Johnson
You have an error in your stylesheet. The name template does not end 
with a name tag. Also, I believe you need the identity template at the 
top, so it has the lowest priority.
Brian

On Friday, February 7, 2003, at 11:14  AM, Lionel Crine wrote:

I made a query in my XMLDB :

In the sitemap :


  
  
  
  
  
  
  
  
  
  
  


the stylesheet :



   

   
  




http://apache.org/xsp"; 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
























   

   
  


When i look the source of the documents in my browser i found :



http://apache.org/xsp";> --> this line has no link 
with my question









MY QUESTION IS : Where are the elements in table ?
When I match name I have a nullpointerexception!!!
Why my elements disappear betwean the two transformer ?





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




AW: AW: Session problems

2003-02-07 Thread Marco Rolappe


> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Im
> Auftrag von SAXESS - Hussayn Dabbous
> Gesendet: Donnerstag, 6. Februar 2003 21:07
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: Session problems
>



>
> If your servlet runs in the same context as cocoon, then i can't see
> at the moment, why you loose your session. from the standard
> behaviour of a servlet container i would expect, that once a session
> is created within one context, this session is kept. I dont think,

my point here was url encoding based session tracking. if cookies are
switched off url encoding is used to keep track of the session (via the
appended ';JSESSIONID=...'). so if you don't encode your urls correctly you
lose your session (in case of url based...).

> that xsp will always create new sessions. if create-session="true"
> I would expect, it creates a session, if none is existing, but once a

well, it does (non-believer ;-), at least in 2.0.4. here the snippet from
the session logicsheet:

...
  

  true
  false
  true

  
  
Session session = request.getSession();
  
...


> session is created it should be keep living for subsequent requests...
>
> After having saying this, i bet you cross webapp boundaries ...
>
> regards, hussayn
>
> Marco Rolappe wrote:
>
> > hi roberto,
> >




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




no source in the page after two transformation

2003-02-07 Thread Lionel Crine
I made a query in my XMLDB :

In the sitemap :


  
  
  
  
  
  
  
  
  
  
  


the stylesheet :



   

   
  




http://apache.org/xsp"; 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
























   

   
  


When i look the source of the documents in my browser i found :



http://apache.org/xsp";> --> this line has no link with my 
question









MY QUESTION IS : Where are the elements in table ?
When I match name I have a nullpointerexception!!!
Why my elements disappear betwean the two transformer ?





-
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: webserviceproxy working in snapshots?

2003-02-07 Thread AWR
OK, I got this working (thanks Art!). Since then, I
have been trying to figure out a way to use it with
any URL. This has come up before on the list:

"If you need to retrieve arbitrary html content it
would be safer to use HTMLGenerator, which can
retrieve remote sources via http, and runs the input
through Tidy before sending the sax events through the
pipeline, guaranteeing [?] that you get wellformed
xml." from
.

Can a generator, like webserviceproxy, receive content
from another generator, in this case, HTMLGenerator? 

AWR

 --- AWR <[EMAIL PROTECTED]> wrote: > I have tried
several, including the latest, but
> there
> seems to be a problem passing the remote site
> information, and the examples always result in
> "Error
> invoking remote service:
> java.lang.IllegalArgumentException: host parameter
> is
> null". The stack trace is below.
> 
> Does anyone have webserviceproxy working in a recent
> dev snapshot?
> 
> AWR
> 
> Original exception :
> java.lang.IllegalArgumentException: host parameter
> is
> null 
> at
>
org.apache.commons.httpclient.HttpConnection.(HttpConnection.java:175)
> 
=== message truncated === 

__ 
Post your free ad now! http://personals.yahoo.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]>




AW: AW: Session problems

2003-02-07 Thread Marco Rolappe
hi roberto, please see bottom of mail.

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Im
> Auftrag von Roberto Cipollini
> Gesendet: Freitag, 7. Februar 2003 10:16
> An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Betreff: Re: AW: Session problems
>
>
> Unfortunatly the "encodeRedirectURL" did not work :(
>
> It may sounds good i have crossing webapplications.
>
> My goal is to have a single deployment of cocoon under the
> jakarta dir, and
> store all the file of multiple virtualhosts in another directory
> (/usr/webapps/.).
>
> I got it working  [maybe it's wrong] configuring the tomcat server.xml to
> redirct some requests to the cocoon container and then let cocoon do the
> job.
> Just to understand the prefix/suffix:
> "pfw" is my cocoon environment. it stands for Publishing Frame Work and in
> all my virtual hosts uri i know that when calling the pfw i invoke the
> cocoon entity.
> ex: myvh.com/index.jsp --> tomcat
> myvh.com/pfw/myvh/read.pfw -->cocoon [where pfw is a page generated from
> sitemap.xmap stored in /usr/webapps/myvh/pfw/sitemap.xmap virtual host
> directory]
> This is a pice of my server.xml:
>
> 
>  docBase="/opt/jakarta-tomcat-4.0.4/webapps/cocoon" debug="0">
>  docBase="/opt/jakarta-tomcat-4.0.4/webapps/cocoon" debug="0">
> 
>
> When i invoke something in the url like
> myvh.com/pfw/myvh/page.pfw , tomcat
> redirect the request to cocoon to process the request.
> Cocoon knows what to do :) in the master subsitemap.xmap there's this
> fragment code:
> 
> 
>  src=file:///usr/webapps/myvh/pfw/sitemap.xmap" uri-prefix="myvh" />
> 
>
>
> In the sub sitemap.xamp stored in the myvh dir there's this fragment code:
>
> 
> 
> 
> 
> 
> 
> 
>
> 
>
>
>
> So, after all, do you think i cross? I don't know if this call/over-call
> procedure is fine and if this is the cause of my session failure.
>
> Can anyone help?
>
> bye.
> Roberto
>
>
>
> -
> 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]>
>

yes, you're crossing contexts (which I totally forgot to mention in the
beginning).

> ex: myvh.com/index.jsp --> tomcat
> myvh.com/pfw/myvh/read.pfw -->cocoon [where pfw is a page generated from
> sitemap.xmap stored in /usr/webapps/myvh/pfw/sitemap.xmap virtual host
> directory]
> This is a pice of my server.xml:
>
> 
>  docBase="/opt/jakarta-tomcat-4.0.4/webapps/cocoon" debug="0">
>  docBase="/opt/jakarta-tomcat-4.0.4/webapps/cocoon" debug="0">
> 

that means, that the JSP and the cocoon stuff live in seperate (webapp)
contexts (you can of course let cocoon handle JSPs). thus, the
encodeRedirectURL can't work, of course. note though that the
encodeRedirectURL should be done when redirecting within your webapp. for
url rewriting based sessions, this appends the ';JSESSIONID=...' to the url.
so, not doing this causes losing the session then.

so what can you do? from the top of my head two ideas:

1. let cocoon handle the JSPs
2. deliver the parameters (username/pw) via request parameters/attributes
(don't know if the latter works, though).



-
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: status quo: cocoon with xsltc

2003-02-07 Thread Brian Johnson
I can't find anything wrong with your stylesheets, but your problem is  
almost definitely related to saxon generating error messages in your  
pipeline during transformation. I can't test your setup because I don't  
have the itemdata generator, so you'll have to do some stylesheet  
debugging to track down the root cause. Sorry I can't give you anything  
more to go on. If you're not experiencing a performance increase with  
Saxon, maybe you'll be better off going back to plain old Xalan.
Brian


On Wednesday, February 5, 2003, at 04:12  PM, Robert Sösemann wrote:

Thats the content of include-basepath.xsl
My problems right now happen with saxon. I already said goodbye to  
xsltc ;-)
And even saxon doesn't to be a great deal. The pages that work, are not
faster than before.

Strange, isn't it?




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



/development/



- Original Message -
From: "Brian Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 4:41 PM
Subject: Re: status quo: cocoon with xsltc


Can you also post the include-basepath.xsl? Are there any other
messages in the sitemap or error log?
BTW - I am pretty sure xsltc has a bug and does not handle xsl:include
relative paths properly. This doesn't affect Saxon.
Brian


On Wednesday, February 5, 2003, at 10:29  AM, Robert Sösemann wrote:

Thanks for answering that quick.

here are snippets

sitemap:cinclude

















xsl:

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











 
















 mehr...







   
   
   
   
...

- Original Message -
From: "Brian Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 4:25 PM
Subject: Re: status quo: cocoon with xsltc


It looks like there might be a problem with your stylesheet. Can you
post a copy? Thanks.
Brian

On Wednesday, February 5, 2003, at 10:20  AM, Robert Sösemann wrote:


No I am using 6.5.2. The problem is that when it comes to resolving a
cinclude I get this message:

STACKTRACE= org.apache.cocoon.ProcessingException: Failed to execute
pipeline.: org.apache.cocoon.ProcessingException: Exception during
processing of cocoon://item_50-view_ABSTRACT:
javax.xml.transform.TransformerException: org.xml.sax.SAXException:
Invalid
processing instruction name (saxon:warning)

Any ideas?

Thanks for your help.
Rob
- Original Message -
From: "Brian Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 1:24 PM
Subject: Re: status quo: cocoon with xsltc


I'm using the latest stable version of Saxon with no problems at all.
I've used it under both 2.0.x and 2.1. Are you using one of the
experimental releases?

On Wednesday, February 5, 2003, at 07:14  AM, Beat De Martin wrote:


I'm using Saxon as well, it seems faster than Xalan. And with Xalan  
I
always
had problems with the normalize-space function.
The only problem I have with Saxon is the compiling of the sitemap.
I'm using Cocoon 2.0.2.

Did you have the same problem comipiling the sitemap with Cocoon ?
Cheers
Beat De Martin

On Wed, 2003-02-05 at 20:04, [EMAIL PROTECTED] wrote:

Dear listmembers,

after a frustrating night trying to use xsltc as a faster way to
process
xsls, browsing hundreds of archieve threads, the xsltc wiki I was
not
successfull.


I was able to make it work for a subset of my xslts (those that
didn't
use parameters).


Has anybody succesfully integrated xsltc (or any other  fast xsl

compiler

into cocoon? Does anybody know about the status of integrating
xsltc

into

cocoon? Or maybe you can just give an alternative for speeding up

transfomation.

(BUT i don't want to write custom transformers by hand)


We switched our default xslt processor to saxon (the last of the 6
releases) and have been very happy with it.


Your help is very welcome!

Robert


-k.

--
If you don't test then your code is only a collection of bugs which
apparently behave like a working program.

Website: http://www.rocketred.com.au/blogs/kevin/


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


To unsubscribe, e-mail:

converting HTML to PDF

2003-02-07 Thread Afshartous, Nick
Title: converting HTML to PDF






Hi,


I was wondering if anyone has experience in converting HTML to
PDF ?  For instance does anyone have a stylesheet to handle
the formatting of nested tables and CSS ?  


Thanks for any tips or pointers to resources.


--
  Nick






caching

2003-02-07 Thread arturl
Hi,

Is is possible to cache the output of FileGenerator for specified time, not
by the last modification date of the source file?
I'm trying to cache content generated from external urls - how can I achieve
that?

--
Artur




-
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: matcher of a request

2003-02-07 Thread Nesto
Dear Hussayn,
sorry, but this more generic matcher doesn't works!
The same matcher with the parameters explicitly written works!
I don't know why.
Your solution is better and the sitemap would be shorter...
If you can tell me if there is a difference... thank you!
Nesto

- Original Message -
From: "SAXESS - Hussayn Dabbous" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 06, 2003 12:36 PM
Subject: Re: matcher of a request


> You can make this even more generic:
>
> 
>
>   src="http://anotherhost:8080/anotherApp{../1}.jsp{requestQuery}";
>mime-type="text/xml"/>
>   
>   
> 
> 
>
> This will simply copy the GET-parameters from your original request ;-)
> and i think it's slightly more performant ...
> regards, Hussayn
>
> Nesto wrote:
> > Thank you Jan for your help!!
> > Finally I wrote a matcher that works fine!
> > I post it to the group because it could be interesting.
> >
> > I wanted to write a matcher for an URI of this type:
> > http://myhost.com:8080/cocoon/myApp/list.jsp?user=tom&password=tom
> >
> > The matcher is:
> >
> > 
> >   
> >  
> >   >
src="http://anotherhost:8080/anotherApp{../1}.jsp?username={username}&pa
ssword={password}"
> > mime-type="text/xml"/>
> >  
> >  
> >
> > 
> >
> > Hope this helps someone else!
> >
> > Nesto!
> >


-
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 the "Protected Area" example

2003-02-07 Thread Vit The Bit
Hi,

I have a coocon installation with the following configuration:

Linux- Java 1.3
Apache 1.3.27 - Tomcat 4.1.18 - Cocoon 2.0.4

When I try to login into the "Web Application-Protected Area"
example I get an error page on the browser:
 
 "The page cannot be displayed"



and an error (java.io.Exception: The stream has been closed) into the error.log file:

  ERROR   (2003-02-07) 15:30.17:545   [access] (Unknown-URI)
Unknown-thread/CocoonServlet:   Cocoon servlet threw an Exception while trying to close
stream.
  java.io.IOException: The stream has been closed
  at 
org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:238)
..

You can find the complete exception at the end of the file.

I followed the standard configuration instructions and now I have no idea
about what to do.

Has anybody met this problem before? 
or better...
Has anybody a solution to this problem?

Which kind of configuration (jdk-apache-tomcat-cocoon)
is experience to work with the "portal" framework? 

Thanks,
Vittorio

Here's the complete error:

ERROR   (2003-02-07) 15:30.17:545   [access] (Unknown-URI) 
Unknown-thread/CocoonServlet:
Cocoon servlet threw an Exception while trying to close stream.
java.io.IOException: The stream has been closed
at org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:238)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1166)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
at java.lang.Thread.run(Thread.java:484)




__
Yahoo! Cellulari: loghi, suonerie, picture message per il tuo telefonino
http://it.yahoo.com/mail_it/foot/?http://it.mobile.yahoo.com/index2002.html

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




XSP's don't use catalogs?

2003-02-07 Thread Stephen Ng
I'm trying to resolve some entities inside an xsp file, but it appears
that xsp's don't use entity catalogs the way other xml files do.

(I'm using Cocoon 2.0.3).

For example, in the standard cocoon distribution, if I modify
cocoon\docs\samples\xsp\hello.xsp to be:




 %ISOnum;
]>
http://apache.org/xsp";>
  
Hello

  This is my first Cocoon page! ½
  
With the help of XSP! and
Constants.COMPLETE_NAME
  

  


and go to http://localhost:8080/cocoon/xsp/hello,

I get "java.net.MalformedURLException: no protocol: ISOnum.pen".

But this works fine if I modify, say, sample-apps.xml.

How can I define and reference external entities in an XSP?

Thanks,

Steve

Stephen Ng
Software Engineer
Lumigent Technologies, Inc
 
 

-
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] The Cocoon Drinking Game

2003-02-07 Thread Derek Hohls



%-}   hic
 
ps - the last one does have me worried tho' - 
what work where?  please elushidate...>>> 
[EMAIL PROTECTED] 06/02/2003 07:50:20 >>>The Cocoon Drinking 
GameTake a drink when you first realize how much Cocoon 
rules.Whenever someone asks about a stripped-down sitemap, take a 
drink.Take a drink when a Cocoon get-together is organized overseas, and 
you can't fly across the ocean to go.Whenever someone flames Cocoon for 
being too complex, take two drinks.If someone insists Cocoon isn't ready 
for primetime, take five drinks.Whenever someone asks if Cocoon supports 
XML, take three drinks.Take a drink when you realize the power of the 
Flowscript.Drink twice when you realize all the work you just put into 
Cocoon has already been done by Forrest.There's probably tons more 
I'm missing 
:)Tony-Please 
check that your question  has not already been answered in theFAQ 
before posting. To 
unsubscribe, e-mail: 
<[EMAIL PROTECTED]>For additional commands, 
e-mail:   
<[EMAIL PROTECTED]>-- 
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy."



Re: Configuring Cocoon to run under Apache/Tomcat virtualhost?

2003-02-07 Thread Derek Hohls



Hussayn
 
Thanks for the reply  - I need to do a number of things:
 
1. Protect the whole site so it cannot be accessed at all
(except through single login screen) while under development.
 
2. Create an alias (virtual host) - as seen on many Cocoon
sites - that is easier to remember & work with
 
3.  I am using form-based authentification for restricted access
*within* the site itself (certain users having access to certain
parts)
 
 
For 1 and 2 above, I think its most effective to use Apache/Tomcat
services - and for 3 use Cocoon.
 
If you could supply any code snippets that you think are relevant, I 
would appreciate it.
 
Derek>>> [EMAIL PROTECTED] 06/02/2003 04:58:06 
>>>i am running an apache/tomcat/cocoon combination with 
authenticationdriven by tomcat (just setting the correct 
security-constraints withinthe web.xml and adding the right REALM in 
tomcat/server.xml ...i did never touch the apache server itself for 
authentificationissues...And i'm using form based 
authentification.regards, hussaynDerek Hohls wrote:> 
Hi>  > I am looking for help with configuring an 
Apache/Tomcat> setup, trying to support a password-protected 
Cocoon> site that must be accessed by a virtual host name.>  
> The UNIX support has tried to set it up (see below),> but trying 
to access the site results in an error 302,> which just repeats over and 
over in the log file:> 111.11.1.1 - - [06/Feb/2003:14:11:00 -0200] "GET 
/cocoon/myapp/index > HTTP/1.1" 302 0> and of course the site is 
not accessible.>  > Any help with this is *much* appreciated; 
maybe> a small help file can be added to the Wiki.>  > 
Thanks> Derek>  > ***>  > The 
configuration entry looks as follows:>  > > > ServerAdmin joe@mydomain > ServerName 
myapp.csir.co.za:80> DocumentRoot /usr/local/tomcat/webapps> 
> > AuthType 
Basic> AuthName "myappis a restricted area !"> AuthUserFile 
/usr/local/apache/users> Require valid-user> 
> > RewriteEngine   on> 
RewriteRule ^/(.*)  /cocoon/appdir [PT]> 
WebAppConnection appdirConnection warp server.host.com:8008> WebAppDeploy 
cocoon appdirConnection /cocoon/> > > 
> -- > This message has been scanned for viruses and dangerous 
content by> *MailScanner* , and is 
believed to be clean.> > "The CSIR exercises no editorial control 
over E-mail messages and/or> attachments thereto/links referred to 
therein originating in the> organisation and the views in this 
message/attachments thereto are> therefore not necessarily those of the 
CSIR and/or its employees.> The sender of this e-mail is, moreover, in 
terms of the CSIR's Conditions> of Service, subject to compliance with 
the CSIR's internal E-mail and> Internet Policy."-- Dr. 
Hussayn DabbousSAXESS Software Design GmbHNeuenhöfer Allee 12550935 
KölnTelefon: +49-221-56011-0Fax: 
+49-221-56011-20E-Mail:  
[EMAIL PROTECTED]-Please 
check that your question  has not already been answered in theFAQ 
before posting. To 
unsubscribe, e-mail: 
<[EMAIL PROTECTED]>For additional commands, 
e-mail:   
<[EMAIL PROTECTED]>-- 
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy."



Re: Problem with SQL Transformer[Sol]

2003-02-07 Thread Cedric Claus
Martin Holz wrote:


Cedric Claus <[EMAIL PROTECTED]> writes:
 

This pipeline doesn't work : After SQL transformation the sort and
replace.xsl does wrong. But if I copy the xml result of the SQL
transform and then apply the same xsl , no problem (with xalan and
MSXML)



My configuration : cocoon 2.0  - tomcat 4.0.5 - JDK 1.4.03 et xalan 2.3.1

What 's wrong??? Is it in configuration??
   


Your configuration looks okay.

If something goes wrong in pipeline, but works when copying
the intermediate result, this is almost always a namespace
problem. Namespace handling in SAX is sometimes strange
(its even stranger in DOM). 
The information in the "namespace" argument and 
the localname argument of the method org.sax.ContentHandler.startElement
should be redundant to the qname argument and calls to ContentHandler.startPrefixMapping.
But if there is a bug somewhere in the pipeline, this might not be the case. The bug 
might be undetected for a long time, because many components including the Serializer
use only a part of the information. The XMLSerialzer has the tendency to silently
correct a mismatch between the qname and the namespace.

Carsten Ziegler fixed a bug in namespace handling of SQLTransformer at 2002/11/14
cocoon 2.0 is older. Maybe you should try a  newer version of cocoon.


Martin


 

It was really a problem with the namespace, I had changed my XSL depends 
on the Namespace and it does well

Thanks vm for your help

this is the modified file :



   
   
   
   




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



XSPAction

2003-02-07 Thread Olivier GUCKERT
Hello

I read the Wiki how-to about XSPAction, and think it's a good idea.

But i stil have a question : where should i put the my-xsp-action.xsp
file

Do i have to write a map:match for it and if yes, how (serialize xml ?)


Thanks


Olivier Guckert

-
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 and unique or primary keys

2003-02-07 Thread Antonio Gallardo
Hi!

The problem is solved using Modular Database Actions. More info at:

http://wiki.cocoondev.org/Wiki.jsp?page=ModularDatabaseActions

Antonio Gallardo

Sheraz Sharif dijo:
> I am using postgresql 7.2..
>
> I am not sure what you mean.  Are you talking about making the database
> run a trigger before the insert happens?  If so, I do not think that
> will solve my problem.  I want cocoon to realize that there already
> exists that specific value in the table, and notify the user to try
> again. I think what I am trying to say is this.
>
> 1. User sends form to cocoon.
> 2. Cocoon processes form values.
> 3. Form values are ok, check the database to make sure primary keys and
> unique keys do not already exist
> 4. on success, insert values into database
> 5. on failure, return failure
>
> I am thinking that I need make some additions to the DatabaseAddAction
> class to make this happen.
>
> Sheraz
>
> On Fri, 2003-02-07 at 05:43, Kazmir, Jaroslav wrote:
>> Which type of database you use? Isn't it easily to use before insert
>> trigger?
>>
>> JayKay
>>
>> -Original Message-
>> From: Sheraz Sharif [mailto:[EMAIL PROTECTED]]
>> Sent: Freitag, 07. Februar 2003 12:19
>> To: [EMAIL PROTECTED]
>> Subject: DatabaseAddAction and unique or primary keys
>>
>> Hello all,
>>
>> Sorry if this gets double-posted...
>>
>> I have been working on a website for a while.  Here is my problem - I
>> can easily verify user input through forms and return any error
>> messages through the xsp-formval tags.  After validation, the input is
>> passed to the database.  However, I get an SQL exception :
>>
>> ProcessingException: Could not add record: java.sql.SQLException:
>> ERROR: Cannot insert a duplicate key into unique index
>> category_name_key
>>
>> This is happening because I am attempting to insert a value into a key
>> column where that value already exists.  I am looking for a solution
>> where cocoon will connect to the database and attempt to retreive the
>> key value before the insert.  If it does not exist, it will insert it,
>> otherwise it will fail and I can notify the user of the error.  Have I
>> been verbose enough?  If no solution exists, I am thinking I can
>> either extend or rewrite the DatabaseAddAction class to do this.  Or
>> should I abandon logicsheets all together and move to xforms?  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]>




-
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 and unique or primary keys

2003-02-07 Thread Kazmir, Jaroslav
I think, that it will help you to create a new class for checking. 
I made the same ... check and then make registration save into DB ...

  
  




... if the data are invalid, show XSP page

  



  ...  ... 



  

  

  

JayKay

-Original Message-
From: Sheraz Sharif [mailto:[EMAIL PROTECTED]] 
Sent: Freitag, 07. Februar 2003 13:07
To: [EMAIL PROTECTED]
Subject: RE: DatabaseAddAction and unique or primary keys

I am using postgresql 7.2..

I am not sure what you mean.  Are you talking about making the database
run a trigger before the insert happens?  If so, I do not think that
will solve my problem.  I want cocoon to realize that there already
exists that specific value in the table, and notify the user to try
again. I think what I am trying to say is this.

1. User sends form to cocoon.
2. Cocoon processes form values.
3. Form values are ok, check the database to make sure primary keys and
unique keys do not already exist
4. on success, insert values into database
5. on failure, return failure

I am thinking that I need make some additions to the DatabaseAddAction
class to make this happen.

Sheraz

On Fri, 2003-02-07 at 05:43, Kazmir, Jaroslav wrote:
> Which type of database you use? Isn't it easily to use before insert
> trigger? 
> 
> JayKay
> 
> -Original Message-
> From: Sheraz Sharif [mailto:[EMAIL PROTECTED]] 
> Sent: Freitag, 07. Februar 2003 12:19
> To: [EMAIL PROTECTED]
> Subject: DatabaseAddAction and unique or primary keys
> 
> Hello all,
> 
> Sorry if this gets double-posted...
> 
> I have been working on a website for a while.  Here is my problem - I
> can easily verify user input through forms and return any error messages
> through the xsp-formval tags.  After validation, the input is passed to
> the database.  However, I get an SQL exception :
> 
> ProcessingException: Could not add record: java.sql.SQLException: ERROR:
> Cannot insert a duplicate key into unique index category_name_key
> 
> This is happening because I am attempting to insert a value into a key
> column where that value already exists.  I am looking for a solution
> where cocoon will connect to the database and attempt to retreive the
> key value before the insert.  If it does not exist, it will insert it,
> otherwise it will fail and I can notify the user of the error.  Have I
> been verbose enough?  If no solution exists, I am thinking I can either
> extend or rewrite the DatabaseAddAction class to do this.  Or should I
> abandon logicsheets all together and move to xforms?  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]>

-
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 and unique or primary keys

2003-02-07 Thread Sheraz Sharif
I am using postgresql 7.2..

I am not sure what you mean.  Are you talking about making the database
run a trigger before the insert happens?  If so, I do not think that
will solve my problem.  I want cocoon to realize that there already
exists that specific value in the table, and notify the user to try
again. I think what I am trying to say is this.

1. User sends form to cocoon.
2. Cocoon processes form values.
3. Form values are ok, check the database to make sure primary keys and
unique keys do not already exist
4. on success, insert values into database
5. on failure, return failure

I am thinking that I need make some additions to the DatabaseAddAction
class to make this happen.

Sheraz

On Fri, 2003-02-07 at 05:43, Kazmir, Jaroslav wrote:
> Which type of database you use? Isn't it easily to use before insert
> trigger? 
> 
> JayKay
> 
> -Original Message-
> From: Sheraz Sharif [mailto:[EMAIL PROTECTED]] 
> Sent: Freitag, 07. Februar 2003 12:19
> To: [EMAIL PROTECTED]
> Subject: DatabaseAddAction and unique or primary keys
> 
> Hello all,
> 
> Sorry if this gets double-posted...
> 
> I have been working on a website for a while.  Here is my problem - I
> can easily verify user input through forms and return any error messages
> through the xsp-formval tags.  After validation, the input is passed to
> the database.  However, I get an SQL exception :
> 
> ProcessingException: Could not add record: java.sql.SQLException: ERROR:
> Cannot insert a duplicate key into unique index category_name_key
> 
> This is happening because I am attempting to insert a value into a key
> column where that value already exists.  I am looking for a solution
> where cocoon will connect to the database and attempt to retreive the
> key value before the insert.  If it does not exist, it will insert it,
> otherwise it will fail and I can notify the user of the error.  Have I
> been verbose enough?  If no solution exists, I am thinking I can either
> extend or rewrite the DatabaseAddAction class to do this.  Or should I
> abandon logicsheets all together and move to xforms?  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 and unique or primary keys

2003-02-07 Thread Kazmir, Jaroslav
Which type of database you use? Isn't it easily to use before insert
trigger? 

JayKay

-Original Message-
From: Sheraz Sharif [mailto:[EMAIL PROTECTED]] 
Sent: Freitag, 07. Februar 2003 12:19
To: [EMAIL PROTECTED]
Subject: DatabaseAddAction and unique or primary keys

Hello all,

Sorry if this gets double-posted...

I have been working on a website for a while.  Here is my problem - I
can easily verify user input through forms and return any error messages
through the xsp-formval tags.  After validation, the input is passed to
the database.  However, I get an SQL exception :

ProcessingException: Could not add record: java.sql.SQLException: ERROR:
Cannot insert a duplicate key into unique index category_name_key

This is happening because I am attempting to insert a value into a key
column where that value already exists.  I am looking for a solution
where cocoon will connect to the database and attempt to retreive the
key value before the insert.  If it does not exist, it will insert it,
otherwise it will fail and I can notify the user of the error.  Have I
been verbose enough?  If no solution exists, I am thinking I can either
extend or rewrite the DatabaseAddAction class to do this.  Or should I
abandon logicsheets all together and move to xforms?  Thanks.

Sheraz
-- 
[EMAIL PROTECTED]
m3b Consulting
www.m3b.net
832.573.0937




-
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: Possible threading issues with xsltc + BCEL ???

2003-02-07 Thread Michael Melhem
On Thu, Feb 06, 2003 at 04:18:55PM -0500, Vadim Gritsenko wrote:
> Michael Melhem wrote:
> 
> >Hi Cocooners,
> >
> >Are their any other Cocoon users having Threading Issues with xsltc?
> >
> >Its seems that if you have a translat being compiled at the same time by 
> >two or more threads (instances of TraxTransformer) you will get issues 
> >because BCEL is not (by design) threadsafe as it users static methods and 
> >variables which seem to be overwriting each other???
> >
> >Once the Translets get compiled however, such threading issues disappear.
> >
> >Does anyone have expirence with this?
> >
> >Regards,
> >Michael Melhem
> >
> >Ps After locally patching 
> >org.apache.xalan.xsltc.trax.TemplatesHandlerImpl.java
> >with some synch code around the compile block, all seems OK.
> > 
> >
Hi Vadim,
> 
> Can you notify Xalan guys about this issue? Or may be sent'em a patch?

Yep, im chasing this up will talk with the Xalan guys.

Cheers,
Michael
> 
> 
> 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]>
> 

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




DatabaseAddAction and unique or primary keys

2003-02-07 Thread Sheraz Sharif
Hello all,

Sorry if this gets double-posted...

I have been working on a website for a while.  Here is my problem - I
can easily verify user input through forms and return any error messages
through the xsp-formval tags.  After validation, the input is passed to
the database.  However, I get an SQL exception :

ProcessingException: Could not add record: java.sql.SQLException: ERROR:
Cannot insert a duplicate key into unique index category_name_key

This is happening because I am attempting to insert a value into a key
column where that value already exists.  I am looking for a solution
where cocoon will connect to the database and attempt to retreive the
key value before the insert.  If it does not exist, it will insert it,
otherwise it will fail and I can notify the user of the error.  Have I
been verbose enough?  If no solution exists, I am thinking I can either
extend or rewrite the DatabaseAddAction class to do this.  Or should I
abandon logicsheets all together and move to xforms?  Thanks.

Sheraz
-- 
[EMAIL PROTECTED]
m3b Consulting
www.m3b.net
832.573.0937




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




CInclude problems on Mac 10.2.3

2003-02-07 Thread Hugh Field-Richards
Hi

Has anybody come across this problem with cinclude. I am running Cocoon
successfully on the following system

Mac OS X 10.2.3 with JDK 1.3
Tomcat 4.1.18
Cocoon 2.0.4

But ... I have a sitemap entry of

 








and I am getting the following when accessing the file nb2003.xml (which has no include statements yet)

ERROR   (2003-02-07) 10:23.11:723   [sitemap] (/notebooks/nb2003.xml) Thread-25/sitemap_xmap: Sitemap
org.apache.cocoon.ProcessingException: Could not read resource file:/Library/Tomcat/jakarta-tomcat-4.1.18/webapps/notebooks/content/nb2003.xml: java.lang.NullPointerException
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:156)
at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:395)
at org.apache.cocoon.www.sitemap_xmap.matchN1007C(/Library/Tomcat/jakarta-tomcat-4.1.18/work/Standalone/localhost/notebooks/cocoon-files/org/	apache/cocoon/www/sitemap_xmap.java:965)
at org.apache.cocoon.www.sitemap_xmap.process(/Library/Tomcat/jakarta-tomcat-4.1.18/work/Standalone/localhost/notebooks/cocoon-files/org/apache/	cocoon/www/sitemap_xmap.java:581)
at org.apache.cocoon.www.sitemap_xmap.process(/Library/Tomcat/jakarta-tomcat-4.1.18/work/Standalone/localhost/notebooks/cocoon-files/org/apache/	cocoon/www/sitemap_xmap.java:427)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)

This is all the clue that the log files give. If I remove the line



then all is well again. I have tried this is several places including a vanilla Cocoon install and I still
get the same problem. It seems to work for the main Cocoon sitemap

	






Anybody got any ideas here? I am clearly missing something vital and I have searched around
without much success so any thoughts would be gratefully received. (I think that XInclude is the
same as well, but I have not exhaustively checked this.)

TIA

Hugh F-R

Hugh S. Field-Richards
QinetiQ, St Andrew's Road, Malvern, Worcs, WR14 3PS, UK
Tel: ++1684 895075   Fax: ++1684 896113
Email: [EMAIL PROTECTED]



Re: AW: Session problems

2003-02-07 Thread Roberto Cipollini
Unfortunatly the "encodeRedirectURL" did not work :(

It may sounds good i have crossing webapplications.

My goal is to have a single deployment of cocoon under the jakarta dir, and
store all the file of multiple virtualhosts in another directory
(/usr/webapps/.).

I got it working  [maybe it's wrong] configuring the tomcat server.xml to
redirct some requests to the cocoon container and then let cocoon do the
job.
Just to understand the prefix/suffix:
"pfw" is my cocoon environment. it stands for Publishing Frame Work and in
all my virtual hosts uri i know that when calling the pfw i invoke the
cocoon entity.
ex: myvh.com/index.jsp --> tomcat
myvh.com/pfw/myvh/read.pfw -->cocoon [where pfw is a page generated from
sitemap.xmap stored in /usr/webapps/myvh/pfw/sitemap.xmap virtual host
directory]
This is a pice of my server.xml:






When i invoke something in the url like myvh.com/pfw/myvh/page.pfw , tomcat
redirect the request to cocoon to process the request.
Cocoon knows what to do :) in the master subsitemap.xmap there's this
fragment code:






In the sub sitemap.xamp stored in the myvh dir there's this fragment code:













So, after all, do you think i cross? I don't know if this call/over-call
procedure is fine and if this is the cause of my session failure.

Can anyone help?

bye.
Roberto



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