RE: Time to go back to JSP. Cocoon just isnt ready.

2003-01-30 Thread Artur Bialecki

Cocoon is ready and it has been for a while. We've been using cocoon
for interface to our application for last 2 years and deploying it in *very*
large companies. We have 1000+ XSP talking to EJBs and I never encountered
the problem described in the bug you pointed out (1.7.3 - 2.0.3 releases).
JSPs are like a toy car that’s "simple" to push across your living room, but
if
you want to get somewhere real you have to invest time in learning to drive
and get behind the wheel of cocoon.

I do agree that the docs need improvement. They are much better though then
in the olden days.

Artur...


-Original Message-
From: Robert Simmons [mailto:[EMAIL PROTECTED]] 
Sent: January 30, 2003 6:22 AM
To: Cocoon Users
Subject: Time to go back to JSP. Cocoon just isnt ready.


I have reluctantly come to the conclusion that cocoon is not ready for
professional development. Unlike tomcat, or Ant, this product has serious
things blocking its use in production systems. I personally am completely
and utterly stopped by the classpath bug indicated here:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16580. Just another
symptom of a product that needs more work to be used in professional
products. That coupled with the lack of documentation makes the package
difficult at best. I will possibly be back in a year or so when this
technology has gone somewhere. This is assuming it is still alive by then. I
have seen a plethora of new people come on this list and then just vanish.
That doesn't bode well for its reputation. I don't want to take this step
and throw away two weeks of work but the fact is that I also don't have time
to wait for such massive bugs to be fixed and to spend another two weeks
swimming through poor debugging tools. Its a massive bummer to me but in
order to be true to myself I cant see alternatives. The fact is that however
flawed JSPs are, I can crack together JSP pagers 40 times faster than cocoon
pages. When it comes to deadlines, major bugs like this just stop a product
cold. Anyway, Ill stop rambling now.

Comments are invited.

-- Robert



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

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




RE: XSP : control structures

2003-01-20 Thread Artur Bialecki
There is nothing like that in XSP. I'm sure most people here
will tell you to use transformers, actions, or better yet flow
from 2.1. Since I had XSPs left over from 1.x version and
I like having data access, logic and error handling in the same
place (the XSP) I developed my own logicsheet to that has several
control structures. There quite specific (in error handling) to
our product so it would take some work to make them generic.
Also don't know if the dev people would accept it since: "XSP
should at most be used to transfer data from request attributes
into to the SAX stream." 

Also you should be able to use the xslt control structues in your 
XSP (with its xsl: namespace and declaration in xsp:page)
but I haven't tried this.

Artur...

> -Original Message-
> From: Pierrick Brihaye [mailto:[EMAIL PROTECTED]] 
> Sent: January 18, 2003 4:31 AM
> To: [EMAIL PROTECTED]
> Subject: XSP : control structures
> 
> 
> Hi,
> 
> Are there control structures in XSP ? Here is what I mean (taken from
> http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html) :
> 
> http://apache.org/xsp";>
>   
>   Hello, world! 
>   
>
>  
> 
>   
>   
>
> 
> 
> Got it ? The like for  / , ...
> 
> Such things would be useful, wouldn't hey ?
> 
> Cheers,
> 
> p.b.
> 
> 
> 
> 
> 
> 
> -
> 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: xinclude performance issues,

2003-01-17 Thread Artur Bialecki


The XIncludeTransformer parses the included file into DOM,
and then streams the included part back into SAX. In my case
I have 1000 pages including parts of 10 others so I hacked
the XIncludeTransformer to keep the DOMs of those 10 pages in
memory. This is not the best solution but it's fastee, 
you should probably look at aggregators instead
(I had to deal with legacy XSP from Cocoon 1.x).

Artur...

> -Original Message-
> From: icewind [mailto:[EMAIL PROTECTED]] 
> Sent: January 16, 2003 6:12 PM
> To: [EMAIL PROTECTED]
> Subject: xinclude performance issues, 
> 
> 
> Let me describe what I am doing:
> 
> I have a directory that contains .xml files. In my
> sitemap, I have a pipeline that starts with a
> DirectoryGenerator on this directory. I then have a
> transformation that takes the directorygenerator's
> output and puts some xi:include tags with xpointers to
> some tags in the xml files I am interested in. I then
> run the xinclude transformation and serialize to html.
> This is exactly what is described in this email to the
> list (i was involved in that original email):
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102617106411067&w=2
> 
> There is a link to this email in the Cocoon XSLT FAQ
> question titled: "What's "wrong" with use of the
> document() function in Cocoon?"
> 
> So, I'm using that method, and it works. The result is
> that I get an html page with the tags I pulled out
> with xinclude for each xml file. It works, but the
> performance is pretty terrible. I have approximately
> 30 xml files in the said directory, and the size that
> most of the files is around 30K. (there are a couple
> that are around 200K) I am pulling out 4 tags with
> xinclude. I have Cocoon version 2.0.3 and its running
> with tomcat on a dual 1ghz processor server with 1gb
> ram and raid disks. 
> 
> The time for the pipeline to execute is just under 14
> seconds, which is too long. (i measured using a
> stopwatch from the time I requested the page until the
> time i could see it).
> 
> So, I have the usual questions:
> 
> 1) If anyone else is using a similar setup, do you
> have similar issues?
> 
> 2) What can I do to improve performance?
> 
> Thanks for any suggestions.
> 
> 
> 
> 
>  
> 
> __
> 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]>
> 


-
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 encoding UTF-8 / ISO-8859-1

2003-01-16 Thread Artur Bialecki
I looked at the javadoc for java.lang package (jdk1.3.1)
and java.nio.charset.Charset (jdk1.4.1) and it
looks like the UTF-8 is the correct name.

I have a feeling setting the container encoding to ISO-8859-1
is what fixed your problem.

Another word of caution is the java.net.URLEncoder class that
doesn't play nice with UTF-8 in pre 1.4 jdk version.

Artur...


> -Original Message-
> From: Murad Jura [mailto:[EMAIL PROTECTED]] 
> Sent: January 16, 2003 6:55 AM
> To: [EMAIL PROTECTED]
> Subject: Re: form encoding UTF-8 / ISO-8859-1
> 
> 
> Martin Koeppe wrote:
> > Hello,
> > 
> > I'm using a recent developer version of cocoon 2.1 (Jan 9 2003),
> > tomcat 4.1.12 on SuSE Linux 8.0 Kernel 2.4.20,
> > and I found a problem with parsing the request parameters from a GET
> > request:
> > 
> > The browser (both Mozilla and IE) sends them as UTF-8, but cocoon
> > interprets them as ISO-8859-1. The problem can be seen e.g. 
> with form
> > validator: if you enter a non-ASCII7 character, and there 
> is something not
> > correct for the form validator within ANOTHER field, you 
> get the first
> > field back changed.
> > 
> > I have enabled "container-encoding" and "form-encoding" in 
> web.xml, and
> > set both to "utf-8", but with no success (no change in behaviour).
> > 
> > 1) Can someone help?
> > 
> > 
> > I looked at the source, too:
> > org.apache.cocoon.environment.http.HttpRequest
> > 
> > There are getCharacterEncoding() and setCharacterEncoding().
> > Whereas get...() is mapped to the servlet engine function,
> > set...() seems to be implemented within cocoon.
> > 
> > In my experiments a call to set...("UTF-8") directly before 
> reading the
> > parameters within a flow script didn't work, either. (no change)
> > get...() always returned null.
> > 
> > 2) Can someone explain the idea of the set...() function, 
> in combination
> > with decode(), i.e. why that should work? Or: what should 
> be done to get
> > it work?
> > 
> > 3) Why doesn't get...() return the value that was set before with
> > set...(), i.e. why is the servlet value returned, whereas the cocoon
> > internal value seems to be used?
> > 
> > 
> > Thanks in advance
> > 
> > Martin Koeppe
> > 
> > 
> -
> > Please check that your question  has not already been 
> answered in the
> > FAQ before posting. 
>  dex.html>
> > 
> > To 
> unsubscribe, e-mail: 
> <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   
> <[EMAIL PROTECTED]>
> > 
> 
> Hello Martin,
> 
> I want to inform you that I solved such problem by setting 
> the web.xml's 
> "container-encoding" parameter to ISO-8859-1 and the "form-encoding" 
> parameter to "UTF8" (not "UTF-8" because "UTF8" is the 
> internal Java's 
> name of this encoding type, see Java Documentation).
> 
> 
> -
> 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: Looking for help in the upcomming release

2002-11-30 Thread Artur Bialecki
The "build docs" seems to work fine. I got
"BUILD SUCCESSFUL" and all the docs seem to 
be there. 

As to the installation there are no instruction for
installing with Tomcat 4.1 so I just dropped
the cocoon.war into tomcat's webapp directory
(as specified by 4.0.1b1 instructions)

Artur...

> -Original Message-
> From: David Crossley [mailto:[EMAIL PROTECTED]] 
> Sent: November 30, 2002 10:39 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: Looking for help in the upcomming release
> 
> 
> Thanks Artur. Do you get the same documents build errors
> when you use the "build docs" target?
> 
> I do not get any of your problems:
> Environment:
> Linux 2.4.18-4 i686
> jakarta-tomcat-4.0.1
> Cocoon 2.0.3 branch 2002-12-01
> Java Blackdown-1.3.1-02b-FCS
> 
> You seem to have some serious problem related to your
> specific machine. It would be excellent if you can
> start afresh and follow the installation.html page
> explicitly.
> 
> If you notice any documentation flaws on the way, then
> please tell.
> 
> --David
> 
> Artur Bialecki wrote:
> > 
> > I tried all samples that didn't require scrachpad stuff.
> > Following is the result. I've also submitted couple of 
> > patches against the 2.0.3 branch for other problems that
> > are not included here.
> > 
> > Enviroment:
> > Win2k SP3 (5.00.2195)
> > Tomcat 4.1
> > Cocoon 2.0.3 branch (Nov 30)
> > JDK 1.3.1_02-b02
> > 
> > Pages with problems:
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-
> > Page:
> > http://127.0.0.1:8080/cocoon/documents/index.html
> > there were other pages with the same error.
> > -
> > Error(s): NO TITLE
> > Excepion:
> > ERROR   (2002-11-30) 12:35.43:870   [core.manager]
> > (/cocoon/documents/index.html) Thread-2/sitemap_xmap: Sitemap
> > org.apache.cocoon.ProcessingException: Exception during 
> processing of
> > file:/C:/Program Files/Apache Group/Tomcat
> > 4.1/webapps/cocoon/documentation/xdocs/index.xml:
> > java.net.MalformedURLException: no protocol: characters.ent
> > at
> > 
> org.apache.cocoon.components.source.AbstractStreamSource.toSAX
> (AbstractS
> > treamSource.java:214)
> > at
> > 
> org.apache.cocoon.generation.FileGenerator.generate(FileGenera
> tor.java:1
> > 43)
> > 
> > Pages with problems:
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-
> > Page:
> > http://127.0.0.1:8080/cocoon/slides/slides
> > -
> > ERROR   (2002-11-30) 12:45.09:604   [sitemap.transformer.xslt]
> > (/cocoon/slides/slides) Thread-4/TraxTransformer: Error 
> setting Browser
> > info
> > java.lang.NullPointerException
> > at
> > 
> org.apache.cocoon.components.browser.BrowserImpl.getMedia(Brow
> serImpl.ja
> > va:406)
> > at
> > 
> org.apache.cocoon.transformation.TraxTransformer.getLogicSheet
> Parameters
> > (TraxTransformer.java:481)
> > at
> > 
> org.apache.cocoon.transformation.TraxTransformer.generateKey(T
> raxTransfo
> > rmer.java:321)
> > at
> > 
> org.apache.cocoon.components.pipeline.CachingEventPipeline.set
> up(Caching
> > EventPipeline.java:310)
> > at
> > 
> org.apache.cocoon.components.pipeline.CachingEventPipeline.gen
> erateKey(C
> > achingEventPipeline.java:141)
> > at
> > 
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
> ocess(Cach
> > ingStreamPipeline.java:313)
> > at org.apache.cocoon.www.sitemap_xmap.resource_slides(C:\Program
> > Files\Apache Group\Tomcat
> > 
> 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/c
> ocoon/www\
> > sitemap_xmap.java:1895)
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-
> > Page:
> > http://127.0.0.1:8080/cocoon/search/statistic
> > -
> > ERROR   (2002-11-30) 12:48.32:706   [core.manager]
> > (/cocoon/search/statistic) Thread-3/sitemap_xmap: Sitemap
> > org.apache.cocoon.ProcessingException: Exception in init()!:
> > java.io.IOException: C:\Program Files\Apache Group\Tomcat
> > 4.1\work\Standalone\localhost\cocoon\cocoon-files\index not 
> a directory
> > at
> > org.apache.cocoon.www.search.statistic_index_xsp.init(C:\Program
> > Files\Apache Group\Tomcat
> > 
> 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apac

RE: Looking for help in the upcomming release

2002-11-30 Thread Artur Bialecki

I tried all samples that didn't require scrachpad stuff.
Following is the result. I've also submitted couple of 
patches against the 2.0.3 branch for other problems that
are not included here.

Enviroment:
Win2k SP3 (5.00.2195)
Tomcat 4.1
Cocoon 2.0.3 branch (Nov 30)
JDK 1.3.1_02-b02

Pages with problems:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-
Page:
http://127.0.0.1:8080/cocoon/documents/index.html
there were other pages with the same error.
-
Error(s): NO TITLE
Excepion:
ERROR   (2002-11-30) 12:35.43:870   [core.manager]
(/cocoon/documents/index.html) Thread-2/sitemap_xmap: Sitemap
org.apache.cocoon.ProcessingException: Exception during processing of
file:/C:/Program Files/Apache Group/Tomcat
4.1/webapps/cocoon/documentation/xdocs/index.xml:
java.net.MalformedURLException: no protocol: characters.ent
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractS
treamSource.java:214)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:1
43)

Pages with problems:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-
Page:
http://127.0.0.1:8080/cocoon/slides/slides
-
ERROR   (2002-11-30) 12:45.09:604   [sitemap.transformer.xslt]
(/cocoon/slides/slides) Thread-4/TraxTransformer: Error setting Browser
info
java.lang.NullPointerException
at
org.apache.cocoon.components.browser.BrowserImpl.getMedia(BrowserImpl.ja
va:406)
at
org.apache.cocoon.transformation.TraxTransformer.getLogicSheetParameters
(TraxTransformer.java:481)
at
org.apache.cocoon.transformation.TraxTransformer.generateKey(TraxTransfo
rmer.java:321)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(Caching
EventPipeline.java:310)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(C
achingEventPipeline.java:141)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
ingStreamPipeline.java:313)
at org.apache.cocoon.www.sitemap_xmap.resource_slides(C:\Program
Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\
sitemap_xmap.java:1895)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-
Page:
http://127.0.0.1:8080/cocoon/search/statistic
-
ERROR   (2002-11-30) 12:48.32:706   [core.manager]
(/cocoon/search/statistic) Thread-3/sitemap_xmap: Sitemap
org.apache.cocoon.ProcessingException: Exception in init()!:
java.io.IOException: C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\cocoon\cocoon-files\index not a directory
at
org.apache.cocoon.www.search.statistic_index_xsp.init(C:\Program
Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/
search\statistic_index_xsp.java:99)
at
org.apache.cocoon.www.search.statistic_index_xsp.generate(C:\Program
Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/
search\statistic_index_xsp.java:214)
at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGe
nerator.java:258)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi
ngEventPipeline.java:250)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
ingStreamPipeline.java:395)

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-
Page:
http://127.0.0.1:8080/cocoon/catalog-demo
-
Original exception : java.net.MalformedURLException: no protocol:
testovr.xml
at java.net.URL.(URL.java:468)
at java.net.URL.(URL.java:371)
at java.net.URL.(URL.java:325)
at
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.jav
a:796)
at
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.jav
a:725)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEntityReferenc
e(XMLDocumentFragmentScannerImpl.java:1073)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1489)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
cumentFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
24)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
80)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-
Page: Simple Internationalization
http://127.0.0.1:8080/cocoon/i18n/simple.xml?locale=[anything]
-
None of the locale specific pages work. Only 'NO TITLE' is 
displayed. 

The XSP Internationalization works well.



> -Original Message-
> From: Carst

UTF-8 character encoding

2002-11-21 Thread Artur Bialecki

It seems that the only way to output request parameters
encoded with UTF-8 is to call request.setCharacterEncoding("utf-8");
on **every** request. Is there a better (simpler) way of achieving
end-to-end UTF-8 for the whole site?
Also, setting encoding will call the decode() method
on every access to request parameter which for me is overkill
since my container alredy does the decoding.

The problem manifests itself by replacing single Ü character
with Ü. 

JDK 1.3.1, C2.0.3, win2k, Saxon 6.5.2

Thanks,

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: esql - dynamic result table

2002-11-19 Thread Artur Bialecki

I never actually used the esql logicsheet but did you
try  tag. For example,


 x


Artur...

-Original Message-
From: Kazmír, Jaroslav [mailto:[EMAIL PROTECTED]] 
Sent: November 19, 2002 2:04 PM
To: '[EMAIL PROTECTED]'
Subject: esql - dynamic result table


Hello,
 
Does someone know how generate dynamical result table, without using
?
I would like to get column, where in the first line will be label's of
column and another lines will be
Generated directly from result.
 
I am in this way:
 
 

   int columns =
;
   

   
 #AA
 
 for (int x=1; x
< columns+1; x++) {


   
 

 

   

 }
   
   
   
 

 for (int x=1; x
< columns+1; x++) {


 

 

 }
   
 
   

 
 
Everything is fine, but I don't know how I could change attributes
number COLUMN in tags
 and  and remove value "1" by
value of variable "x".
 
Thanx for some suggestion and help.
 
JayKay
 

-
  Jaroslav Kazmir
  Institute of Information Systems & Information Management
  JOANNEUM RESEARCH Forschungsgesellschaft mbH
  Steyrergasse 17, A-8010 Graz, AUSTRIA
 
  phone:  +43-316-876-1140 fax: +43-316-876-1191
  web:http://iis.joanneum.at
  e-mail: 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: Redirect in XSP

2002-11-08 Thread Artur Bialecki

> Who should close the  element? The transformer can not send an 
> endElement() until everything inside is processed. Of course you have
to 

Ofcourse, I don't know what I was thinking.

> Does this make it a bit clearer? Everybody can of course improve my 

This makes it very clear.

Thanks Joerg,

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: Redirect in XSP

2002-11-08 Thread Artur Bialecki

Hi Joerg,

I was under the impression that once generation started
sax events go through tarnsformers and a serializer and
data is sent back to the browser. So if the 
is emitted after the tags that caused  to be sent
to the browser this would not work.

Would it?

Artur...

> -Original Message-
> From: Joerg Heinicke [mailto:joerg.heinicke@;gmx.de] 
> Sent: November 8, 2002 7:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Redirect in XSP
> 
> 
> Hi Artur,
> 
> where is the problem?
> 
> Instead of  you create a own 
> element like  in the XML. This is processed by a 
> transformer to  and 
> sent to the browser. Even if it's a very poor solution, there 
> shell be 
> no problem with it. I prefer the test while setting up the pipeline.
> 
> Regards,
> 
> Joerg
> 
> Artur Bialecki wrote:
> >>-Original Message-
> >>From: Ilya A. Kriveshko [mailto:ilya@;kaon.com] 
> >>Sent: November 8, 2002 10:41 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: Redirect in XSP
> >>
> >>
> >>If you want to redirect the browser to a new URL after the
> >>pipeline has been constructed and the generation has (possibly)
> >>started, you can do that by outputting the  tag in the
> >>output HTML.
> >>
> >>
> >>or
> >>http://some.com/other/url"/>
> >>
> >>"0" means no delay.
> > 
> > 
> > How would this work if half of my page has already been
> > sent to the browser including the  tag?
> > Please clarify.
> > 
> > 
> > Artur...
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> 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. <http://xml.apache.org/cocoon/faq/index.html>

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




RE: Redirect in XSP

2002-11-08 Thread Artur Bialecki
> -Original Message-
> From: Ilya A. Kriveshko [mailto:ilya@;kaon.com] 
> Sent: November 8, 2002 10:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Redirect in XSP
> 
> 
> If you want to redirect the browser to a new URL after the
> pipeline has been constructed and the generation has (possibly)
> started, you can do that by outputting the  tag in the
> output HTML.
> 
> 
> or
> http://some.com/other/url"/>
> 
> "0" means no delay.

How would this work if half of my page has already been
sent to the browser including the  tag?
Please clarify.


Artur...






> --
> Ilya
> 
> Artur Bialecki wrote:
> 
> >Witold,
> >
> >First of all processing of XSP is done by a Generator
> >which is part of pipeline *execution*. This means that
> >it's too late to redirect at that point since some data
> >might already been sent back to the browser (depends 
> >on the size of your serializer buffer).
> >
> >You should only redirect during pipeline *setup*,
> >before any generators are called.
> >
> >Assuming you using Cocoon 2.0.x you probably want write
> >and Action that checks for condition that might cause
> >redirection and return it as a sitemap parameter
> >and use  before generation of your
> >XSP.
> >
> >Witold & Neil
> >
> >Look at ServerPagesAction.java and action.xsl
> >in cocoon source.
> >
> >Artur...
> >
> >
> >  
> >
> >>-Original Message-
> >>From: Neil A [mailto:mylists@;neilabraham.co.uk] 
> >>Sent: November 8, 2002 10:16 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: Redirect in XSP
> >>
> >>
> >>Hi all
> >>
> >>I joined the cocoon users list today to ask a very similar question.
> >>
> >>I have a list of external URLs held in XML and I have a pipeline to 
> >>pick the right one.  I want to use  within the 
> >>sitemap, but I can't find a way to get the URL out of XML and 
> >>make it a 
> >>sitemap parameter for  to use.
> >>
> >>Can anyone help us both?
> >>
> >>Thanks,
> >>
> >>Neil.
> >>
> >>
> >>On Friday, November 8, 2002, at 09:41 AM, Witold Treliñski wrote:
> >>
> >>
> >>
> >>>Hi!
> >>>
> >>>I have a question. How to make o redirection in XSP from 
> >>>  
> >>>
> >>one page to 
> >>
> >>
> >>>other
> >>>depeneding on some code in ? I tried 
> >>> >>>url="any"/> and it doesn't work.
> >>>
> >>>WT
> >>>
> >>>
> >>>
> >>>  
> >>>
> >>
> -
> >>
> >>
> >>>Please check that your question  has not already been 
> >>>  
> >>>
> >>answered in the
> >>
> >>
> >>>FAQ before posting. 
> >>>  
> >>>
> >><http://xml.apache.org/cocoon/faq/in> dex.html>
> >>
> >>
> >>>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. 
> <http://xml.apache.org/cocoon/faq/in> dex.html>
> >>
> >>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. <http://xml.apache.org/cocoon/faq/index.html>
> >
> >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. <http://xml.apache.org/cocoon/faq/index.html>
> 
> 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. <http://xml.apache.org/cocoon/faq/index.html>

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




RE: Redirect in XSP

2002-11-08 Thread Artur Bialecki

Witold,

First of all processing of XSP is done by a Generator
which is part of pipeline *execution*. This means that
it's too late to redirect at that point since some data
might already been sent back to the browser (depends 
on the size of your serializer buffer).

You should only redirect during pipeline *setup*,
before any generators are called.

Assuming you using Cocoon 2.0.x you probably want write
and Action that checks for condition that might cause
redirection and return it as a sitemap parameter
and use  before generation of your
XSP.

Witold & Neil

Look at ServerPagesAction.java and action.xsl
in cocoon source.

Artur...


> -Original Message-
> From: Neil A [mailto:mylists@;neilabraham.co.uk] 
> Sent: November 8, 2002 10:16 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Redirect in XSP
> 
> 
> Hi all
> 
> I joined the cocoon users list today to ask a very similar question.
> 
> I have a list of external URLs held in XML and I have a pipeline to 
> pick the right one.  I want to use  within the 
> sitemap, but I can't find a way to get the URL out of XML and 
> make it a 
> sitemap parameter for  to use.
> 
> Can anyone help us both?
> 
> Thanks,
> 
> Neil.
> 
> 
> On Friday, November 8, 2002, at 09:41 AM, Witold Treliñski wrote:
> 
> > Hi!
> >
> > I have a question. How to make o redirection in XSP from 
> one page to 
> > other
> > depeneding on some code in ? I tried 
> >  > url="any"/> and it doesn't work.
> >
> > WT
> >
> >
> > 
> -
> > Please check that your question  has not already been 
> answered in the
> > FAQ before posting. 
>  dex.html>
> >
> > 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: ForwardRedirector ???

2002-11-07 Thread Artur Bialecki
> From: Nicola Ken Barozzi [mailto:nicolaken@;apache.org] 

> Artur Bialecki wrote:
> > 
> > Is there a way to redirect internally (without going back 
> to the browser)
> > from an action? Actions get a Redirector but it is a 
> SitemapRedirector
> > that calls HttpEnvironment.redirect(). Is there any way
> > I can get a ForwardRedirector in my action.
> 
> The best way is to exit the action and redirect in the 
> sitemap, so that 
> you can easily modify it later, and your Action becomes more reusable.
> 
> All URL contracts /should/ be in the sitemap.

Unfortunately (well not really) I started with Cocoon 1
and had *lots* of man-hours invested in XSP pages that
talk to EJBs and have lost of logic (in logicsheets).
When I moved to Cocoon 2.0.3 I did not want to redo
all of the XSPs because: 1. I had no time, 2. Cocoon 2.1 is
coming and it has cool new things as well as it changes
some other things again.
So now I have an action that processes XSP and stores
results in request attribute. This action does many things
including handling any errors which involves redirection.

Currently I use external redirection from that action
but I would like to redirect internally instead. So if
there is a way of doing internal redirection from the 
act() method please let me know.

Thanks,

Artur...






-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




ForwardRedirector ???

2002-11-04 Thread Artur Bialecki


Is there a way to redirect internally (without going back to the browser)
from an action? Actions get a Redirector but it is a SitemapRedirector
that calls HttpEnvironment.redirect(). Is there any way
I can get a ForwardRedirector in my action.

Thanks,


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: dynamically choosing an action at runtime

2002-11-04 Thread Artur Bialecki
Check out the   "Calling resources" on this page
http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html
Maybe you can organize the 'meat' of your pipeline as
as a resource and just map:call it from your main pipeline.

Artur...

> -Original Message-
> From: Josema Alonso [mailto:alonso@;aafunky.com] 
> Sent: November 4, 2002 12:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: dynamically choosing an action at runtime
> 
> 
> > Just use appropriate selector:
> > http://xml.apache.org/cocoon/userdocs/selectors/selectors.html
> >
> I already tried but haven't found a nice way of using them 
> for this purpose.
> I can make something like the pipeline below, but i have 
> dozens of similar
> cases and it doesn't seem like a good approach. Maybe I 
> haven't understood
> selectors well...
> 
> 
> --
>   
>   
>
> 
>  
>  
>  
>   
>
> value="http://www.ascc.net/xml/schematron"/>
> value="{1}/schematron/{1}-validator.xml"/>
>
>
> value="net.josema.xmtrader.forms.xmldb.recordings.equipment.{1}Bean"/>
>
>
>
>
>
>
>
>
>
>
>   
>  
>  
>  
>   
>
> value="http://www.ascc.net/xml/schematron"/>
> value="{1}/schematron/{1}-validator.xml"/>
>
>
> value="net.josema.xmtrader.forms.xmldb.recordings.equipment.{1}Bean"/>
>
>
>
>
>
>
>
>
>
>
>   
>  
> 
>
>   
> 
> 
> 
> -
> 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: dynamically choosing an action at runtime

2002-11-04 Thread Artur Bialecki
Just use appropriate selector:
http://xml.apache.org/cocoon/userdocs/selectors/selectors.html

Artur...

> -Original Message-
> From: Josema Alonso [mailto:alonso@;aafunky.com] 
> Sent: November 4, 2002 11:39 AM
> To: Cocoon-Users
> Subject: dynamically choosing an action at runtime
> 
> 
> Hello, all.
> 
> Is it possible to choose what an action perform at runtime 
> based on sitemap
> parameters? I have the pipeline below for processing 
> XMLForms. It is working
> just nice for one form if I do not use the {1} param but hard code the
> Action name. I would like to make it work as described so I could
> dynamically choose what actions to apply to every form based 
> on parameter.
> 
> Any ideas?
> 
> thanks
> 
> --
>   
>   
>
> 
>  
>   value="http://www.ascc.net/xml/schematron"/>
>   value="schematron/equipment-type-sch-report.xml"/>
>  
>  
>   value="net.josema.xmtrader.forms.xmldb.recordings.equipment.{1}Bean"/>
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> 
>
>   
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 


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

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




RE: Cocoon task scheduler

2002-10-28 Thread Artur Bialecki

Try Jcrontab

http://jcrontab.sourceforge.net/index.shtml

Artur...

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:Sylvain.Thevoz@;swisscom.com] 
> Sent: October 28, 2002 8:47 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Cocoon task scheduler
> 
> 
> I completely agree with you and Bertrand: Cocoon have already 
> so much stuffs and it wouldn't be a good solution to add this 
> type of feature.
> 
> So I need a scheduler app writing in Java because I want to 
> keep independance with OS (my server runs on Windows but I 
> could change this). This scheduler have to provide a way to 
> call an URL.
> 
> Any suggestions or experiences?
> Thank you
> Sylvain
> 
> -Message d'origine-
> De: Robert Ellis Parrott [mailto:parrott@;fas.harvard.edu]
> Date: lundi, 28. octobre 2002 14:34
> À: [EMAIL PROTECTED]
> Objet: Re: Cocoon task scheduler
> 
> 
> 
> 
> How about cron and a python script, which executes a 
> localhost HTTP query?
> Python has very good support for HTTP.
> 
> I'm not convinced that Cocoon needs such a beast, when so much mature
> functionality is available at the OS level.
> 
> 
> On Mon, 28 Oct 2002 [EMAIL PROTECTED] wrote:
> 
> > Hello everybody,
> >
> > I'm writing application with Cocoon which include Cocoon 
> portal, authentication, etc..
> > All you need when you use an application server.
> >
> > But I think about a functionnality which would be very 
> useful on a app server: a scheduler (like the Cron in Unix).
> >
> > So my question is: what the solution with Cocoon if I want 
> to automate and execute tasks without a HTTP request (for 
> example to execute a task every sunday at 12 o'clock)??
> > Could I use an independant software in my server or is 
> there a concept in Cocoon?
> >
> > Thank you
> > Sylvain
> >
> > 
> -
> > Please check that your question  has not already been 
> answered in the
> > FAQ before posting. 
>  dex.html>
> >
> > To 
> unsubscribe, e-mail: 
> <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   
> <[EMAIL PROTECTED]>
> >
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 


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

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




RE: Cocoon and EJB

2002-10-25 Thread Artur Bialecki
I've been using Cocoon 1 and 2 with EJBs for last
2.5 year for enterprise size application. One advantage
I had was that I decided to use cocoon from the beginning.
so my EJBs can present themselves as XML which makes for
easy insertion into the XML stream.
The biggest problem I had was handling of errors that
EJB methods can throw and are handeled by
redirecting to another page. The way I handle this
is that I have an action that processes the XSP
and store it in a request attribute. The XSP contains
tags that access my EJBs and define error handlers.
Once XSP is processed without errors I call a simple
generator that reads the resulting XML from the 
attribute. 
I only use transormes for xincludes, i18n, and
changing data centric XML representation to GUI
centric representation for complex data models.

This might not be the best way of doing things
but it works for me.

Artur...



> -Original Message-
> From: Bruno Collet [mailto:b_collet@;yahoo.com] 
> Sent: October 25, 2002 6:07 AM
> To: [EMAIL PROTECTED]
> Subject: Cocoon and EJB
> 
> 
> Hi
> I'm investigating the possibility to use Cocoon 2 for
> a big corporate app.
> I have a doubt whether it is possible (and easy :) to
> fetch data from EJB (connected to a DB) and produce
> HTML pages from both XML/XSL documents and these data.
> 
> Does it fit into the Cocoon pipeline architecture
> concept?
> Would it imply writing my own transformers/generators?
> Thx!
> Bruno
> 
> __
> Do you Yahoo!?
> Y! Web Hosting - Let the expert host your web site
> http://webhosting.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]>




RE: Can anybody solve this?

2002-10-15 Thread Artur Bialecki

> -Original Message-
> From: Werner Guttmann [mailto:[EMAIL PROTECTED]] 
> Sent: October 15, 2002 2:42 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: Can anybody solve this?
> 
> 
> Now, where would one find documentation on the  
> tag, iima ?
> I've been using Cocoon for 2+yrs now (in production 
> environments, that is),
> and I've never come across this ...

 usefull when you write your own logicsheets. 
It's contents are the first thing in the generate() method
of generated page.
I found it by looking at xsp.xsl and
session.xsl in cocoon source.

Artur...

> 
> Werner
> 
> Artur Bialecki wrote:
> 
> > Can you move your  before the  tag?
> > Or try this
> > 
> >String productId = request.getParameter("productid");
> > 
> >
> > although the init-page tag might only work as a child
> > of .
> >
> > Artur...
> >
> > > -Original Message-
> > > From: Sonny Sukumar [mailto:[EMAIL PROTECTED]]
> > > Sent: October 15, 2002 1:58 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Can anybody solve this?
> > >
> > >
> > >
> > > Hi guys,
> > >
> > > I sent the following message (below the line) yesterday and
> > > got one good suggestion to use
> > >
> > > 
> > > String productId = request.getParameter("productid");
> > > 
> > >
> > > instead of
> > >
> > > 
> > > String productId =  name="productid"/>;
> > > 
> > >
> > > However, it did not work..same problem with the ordering of
> > > the generated Java code for the XSP which causes productId to
> > > try to be used (to create an attribute value for the root
> > > element) before it is declared.  I would REALLY appreciate
> > > any insight into this.
> > >
> > > Thanks. :-)
> > > __
> > > 
> > > Using: Cocoon 2.0.3 with Tomcat 4.1.12 on Redhat 7.3
> > >
> > > My problem is this:  I'm writing an XSP and trying to insert
> > > an attribute
> > > in the root element of my document.  The root element is
> > > , as this
> > > doc stores product info.
> > >
> > > Anyhow, a logicsheet inserts an
> > > 
> > >   products.getCategory(productId)
> > > 
> > >
> > > into my XSP within the  element.  Now, the productId
> > > variable is
> > > declared like this *right* below the root  element
> > > in the XSP:
> > >
> > > 
> > >   
> > > String productId =  > > name="productid" default=""/>;
> > >   
> > >  ...
> > >
> > > The problem is that in the Java class generated for the XSP
> > > declares productId
> > > AFTER the attribute code tries to call products.getCategory
> > > using productId
> > > as a parameter.  This is the ONLY thing causing the error as
> > > far as I can
> > > tell, as the code works fine without putting in the attribute.
> > >
> > > Note that NO MATTER WHERE the
> > > .. code gets
> > > inserted within the  block, the generated
> > > Java code still
> > > has the same ordering problem.
> > >
> > > Does anybody know how to fix this?  I would have put the
> > > productId declaration
> > > above the root element (i.e. made it a class member of the
> > > generated Java
> > > class), but apparently one can't use the xsp-request
> > > logicsheet tags at the
> > > class level.  I don't know why this is the case either.
> > >
> > > Thanks for the help!
> > >
> > > Sonny
> > >
> > > _
> > > Conserve wilderness with a click (free!) and get your own
> > > EcologyFund.net email (free!) at http://www.ecologyfund.com.
> > >
> > > _
> > > Select your own custom email address for FREE! Get
> > > [EMAIL PROTECTED] w/No Ads, 6MB, POP & more!
> > > http://www.everyone.net/selectmail?> campaign=tag
> > >
> > >
> > >
> > > 
> -
> > > Please check that your question  has not already been 
> answered 

RE: Can anybody solve this?

2002-10-15 Thread Artur Bialecki


Can you move your  before the  tag?
Or try this

   String productId = request.getParameter("productid");


although the init-page tag might only work as a child
of .

Artur...

> -Original Message-
> From: Sonny Sukumar [mailto:[EMAIL PROTECTED]] 
> Sent: October 15, 2002 1:58 PM
> To: [EMAIL PROTECTED]
> Subject: Can anybody solve this?
> 
> 
> 
> Hi guys,
> 
> I sent the following message (below the line) yesterday and 
> got one good suggestion to use 
> 
> 
> String productId = request.getParameter("productid");
> 
> 
> instead of 
> 
> 
> String productId = ;
> 
> 
> However, it did not work..same problem with the ordering of 
> the generated Java code for the XSP which causes productId to 
> try to be used (to create an attribute value for the root 
> element) before it is declared.  I would REALLY appreciate 
> any insight into this.
> 
> Thanks. :-)
> __
> 
> Using: Cocoon 2.0.3 with Tomcat 4.1.12 on Redhat 7.3
> 
> My problem is this:  I'm writing an XSP and trying to insert 
> an attribute
> in the root element of my document.  The root element is 
> , as this
> doc stores product info.  
> 
> Anyhow, a logicsheet inserts an
> 
>   products.getCategory(productId)
> 
> 
> into my XSP within the  element.  Now, the productId 
> variable is
> declared like this *right* below the root  element 
> in the XSP:
> 
> 
>   
> String productId =  name="productid" default=""/>;
>   
>  ...
> 
> The problem is that in the Java class generated for the XSP 
> declares productId
> AFTER the attribute code tries to call products.getCategory 
> using productId
> as a parameter.  This is the ONLY thing causing the error as 
> far as I can
> tell, as the code works fine without putting in the attribute.
> 
> Note that NO MATTER WHERE the 
> .. code gets
> inserted within the  block, the generated 
> Java code still
> has the same ordering problem.
> 
> Does anybody know how to fix this?  I would have put the 
> productId declaration
> above the root element (i.e. made it a class member of the 
> generated Java
> class), but apparently one can't use the xsp-request 
> logicsheet tags at the
> class level.  I don't know why this is the case either.
> 
> Thanks for the help!
> 
> Sonny
> 
> _
> Conserve wilderness with a click (free!) and get your own 
> EcologyFund.net email (free!) at http://www.ecologyfund.com.
> 
> _
> Select your own custom email address for FREE! Get 
> [EMAIL PROTECTED] w/No Ads, 6MB, POP & more! 
> http://www.everyone.net/selectmail?> campaign=tag
> 
> 
> 
> -
> 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: Master-Detail form using Cocoon

2002-09-28 Thread Artur Bialecki



> -Original Message-
> From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] 
> Sent: September 28, 2002 11:20 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Master-Detail form using Cocoon
> 
> 
> 
> forms:
> 
> http://xml.apache.org/cocoon/userdocs/concepts/xmlform.html
> 
> (follow the howto link for examples)
> 
> databases:
> http://xml.apache.org/cocoon/userdocs/concepts/databases.html
> 
> 
> - Original Message -
> From: "Antonio Gallardo Rivera" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, September 28, 2002 2:27 AM
> Subject: Master-Detail form using Cocoon
> 
> 
> Hi folks,
> 
> Can someone provide an example of a lets said a invoice or 
> something similar
> using Cocoon and database?
> 
> 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]>
> 
> 
> 
> -
> 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]>




Pool statistics

2002-09-24 Thread Artur Bialecki


Is there any way to obtain statistics on component pools
used by cocoon (2.0.3). Also, are component pools soft or
hard limit by default?

Thanks,

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





Is internal redirection from Actions possible?

2002-09-20 Thread Artur Bialecki


Is there a way to redirect internally (without going back to the browser)
from an action? Actions get a Redirector but it is a SitemapRedirector
that calls HttpEnvironment.redirect(). Is there any way
I can get a ForwardRedirector in my action.

Thanks,


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: [ANN] Another article on Cocoon - Web Syndication

2002-08-29 Thread Artur Bialecki


That article was published on January 1, 1970
only few days before I was born. 

Can't believe cocoon is older than I am :)

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




action return params broken ?

2002-08-28 Thread Artur Bialecki


Sitemap parameters that are returned by an actions
are not available when  doesn't have any
child nodes other than .

So the following doesn't work:
   
 
 
 
 
   

but this does:

   
 
   
 
 
 
   

Any reason for this ??

Thanks,

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: Problems when upgrading to Cocoon 2.0.3 from 2.0.1

2002-08-15 Thread Artur Bialecki

Your mistake was using cocoon.xconf from src/webapp/WEB-INF.
For some reason it doesn't define the compiler parameter for
. 

Someone should fix this.

Artur...

> -Original Message-
> From: Werner Guttmann [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 5:40 AM
> To: [EMAIL PROTECTED]
> Subject: Problems when upgrading to Cocoon 2.0.3 from 2.0.1
> 
> 
> Hi,
> 
> I am just in the process of upgrading an existing web application to use
> Cocoon 2.0.3 rather than 2.0.1 (running on Solaris 8, JDK 1.3.1). When
> starting Tomcat 4.0.1, I am getting the following ComponentException in
> e.g. core.log:
> 
> I have searched the logs already (incl. the FAQ), but most entries seem
> to relate to missing components within the sitemap, such as custom
> actions, etc.
> 
> All I have done is to copy sitemap, cocoon.xconf and logkit.xconf from
> the Cocoon webapp shipped with the binaries, and mades ome minor chnages
> in the pipeline section that are application specific.
> 
> Any idea what might be going wrong ?
> 
> W..
> 
> ERROR   (2002-08-15) 10:34.14:581   [core.manager] (Unknown-URI)
> Unknown-thread/ExcaliburComponentSelector: Could not set up Component
> for hint: java
> org.apache.avalon.framework.parameters.ParameterException: The parameter
> 'compiler' does not contain a value
> at
> org.apache.avalon.framework.parameters.Parameters.getParameter(Parameters.java:157)
> 
> at
> 
>org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.parameterize(CompiledProgrammingLanguage.java:92)
> 
> at
> 
>org.apache.cocoon.components.language.programming.java.JavaLanguage.parameterize(JavaLanguage.java:118)
> 
> at
> 
>org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:190)
> 
> at
> 
>org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
> 
> at
> 
>org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:537)
> 
> at
> 
>org.apache.avalon.excalibur.component.ExcaliburComponentSelector.configure(ExcaliburComponentSelector.java:353)
> 
> at
> 
>org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:185)
> 
> at
> 
>org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
> 
> at
> 
>org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:380)
> 
> at
> 
>org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:167)
> 
> at
> 
>org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy.lookup(DefaultComponentFactory.java:314)
> 
> at
> 
>org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.compose(ProgramGeneratorImpl.java:168)
> 
> at
> 
>org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:170)
> 
> at
> 
>org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
> 
> at
> 
>org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:158)
> 
> at org.apache.cocoon.Cocoon.initialize(Cocoon.java:270)
> at
> org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1237)
> 
> at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)
> 
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
> 
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:388)
> 
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
> 
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> ERROR   (2002-08-15) 10:34.14:593   [core.manager] (Unknown-URI)
> Unknown-thread/ExcaliburComponentSelector: The component instance for
> 'java' is not valid.
> org.apache.avalon.framework.component.C

RE: sexy open source

2002-08-15 Thread Artur Bialecki


If it Portgresql supported the CONNECT BY statement
I would move to it today.

Artur...

> -Original Message-
> From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 14, 2002 11:17 PM
> To: [EMAIL PROTECTED]
> Subject: Re: sexy open source
>
>
>
> My experience also shows that Postgresql is a good database.
>
>
> - Original Message -
> From: "Antonio Gallardo Rivera" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 14, 2002 8:22 AM
> Subject: Re: sexy open source
>
>
> I recommend you try PostgreSQL.
>
> El Miércoles, 14 de Agosto de 2002 07:11, Argyn Kuketayev escribió:
> > subj was "sexy open source". I don't think that there's "sexy open source"
> > RDBMS comparing to Oracle, or even MS SQL Server.
> >
> > Ok, Apache is sexy, comparing to IIS indeed.
> >
> > business doesn't care about opennes as much as about performance and
> > features.
> >
> > Cocoon is sexy too, btw
> > jBoss is not.
> >
> > -Original Message-
> > From: Manos Batsis [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 14, 2002 9:09 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: sexy open source
> >
> >
> > Argyn,
> >
> > Err... the subject says "open source".
> >
> > I don't think there is a point in arguing about what sucks and what
> > doesn't, so I just won't.
> >
> > Manos
> >
> > -Original Message-
> > From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 14, 2002 4:05 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: sexy open source
> >
> >
> >
> > RDBMS must be Oracle. no other options, imho.
> > cost is not a problem. it's negligeable comparing to the cost of one DBA.
> > while at the same time performance and other features of Oracle are far
> > better than anything.
> >
> > > 4) Business Logic Persistence
> > > Proposal: Firebird RDBMS as JBoss service
> >
> > jBoss sucks, imho.
>
> -
> 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: sexy open source

2002-08-14 Thread Artur Bialecki

Was Directory service mentioned ?
If not than http://openldap.org.

Artur...

> -Original Message-
> From: Hochsteger Andreas /INFO-MA [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 14, 2002 11:32 AM
> To: '[EMAIL PROTECTED]'
> Subject: AW: sexy open source
>
>
> I don't know, if you're interested in that, but I've got some additions to
> your suggestions:
>
> * CRM/ERP System:
>   Compiere (http://www.compiere.org/)
> * XML Editor for Content Editing:
>   Xopus 2 (http://www.xopus.org/)
> * Content Management System:
>   Wyona (http://www.wyona.org/)
> * SVG Editing:
>   Kontour (KDE KOffice Application, http://www.koffice.org/kontour/)
> * eBusiness Integration
>   Open3 Projects and Components (http://www.open3.org/)
> * Enterprise Network Management:
>   OpenNMS (http://www.opennms.org/)
> * Single-Sign-On:
>   Liberty Alliance Standard (no products yet?)
> * Central User Management: ?
> * Workflow Management:
>   OpenFlow (http://www.openflow.it/EN/)
>   Open Business Engine (http://www.openbusinessengine.org/)
>   Open For Business (http://www.ofbiz.org/)
> * Instant Messaging:
>   Jabber (http://www.jabber.org/)
> * Shop/eCommerce
>   Open For Business (http://www.ofbiz.org/)
>
> I could imagine even more business areas, where a complete open source based
> integration would be like heaven.
> Please give comments, I'm interesting in your suggestions.
>
>
> > -Ursprüngliche Nachricht-
> > Von: Vegan Portal [mailto:[EMAIL PROTECTED]]
> > Gesendet: Mittwoch, 14. August 2002 14:53
> > An: [EMAIL PROTECTED]
> > Betreff: sexy open source
> >
> >
> > Hi cocooners,
> > Now that I have your attention, I would like to
> > discuss the ideal of non-compromised development of
> > full-blown, stable, scallable and manageable
> > applications with open-source only and how far one
> > could get to fulfill this. It is probably little OT on
> > this list, but I think a bunch of very open-minded and
> > progressive folks is here, so I hope I could get some
> > discussion going.
> > I think many of you have reached some status quo which
> > could be of great service to all the newcomers.
> > Nevertheless, everybody is probably tired of yet
> > another bugs, yet another unanswered questions, yet
> > another everyday technology-related problems and there
> > is no end to this. But I have a faith that there is
> > some solution that could be achieved with open source
> > and it waits to be discovered.
> > It starts with what one wants to achieve. For me, it
> > is secure content-centric multi-user roles web portal,
> > with professional design, able to serve without
> > interruption even by ongoing changes and high user
> > traffic. But I think the framework I'd like to propose
> > here may be universal enough to be equally worth also
> > for many other means.
> > If you got so far with me, I'd like to start being
> > concrete:
> > 1) Operating system
> > Proposal: Linux
> > Remarks: One could discuss the distributions or other
> > Unix derivates here, but I think it's irrelevant for
> > further points.
> > 2) Programming language
> > Proposal: pure Java 1.3.1x
> > Remarks: I know many of you are trying 1.4 out, but it
> > may still take some time to be able to be used for
> > production sites. Moreover, many open source
> > technologies were still not ported to 1.4. Correct me
> > if I'm wrong.
> > 3) Application framework
> > Proposal: JBoss 3.x
> > Remarks: This is worth discussion, as many of you use
> > iPlanet or don't use any J2EE or related technologies
> > at all. I think JBoss is good for achieving
> > scallability for the site. What concrete parts of
> > JBoss are involved, is very OT here.
> > 4) Business Logic Persistence
> > Proposal: Firebird RDBMS as JBoss service
> > Remarks: I personally think it is most evolved
> > open-source database now. The problem is, almost
> > nobody uses it, the JDBC driver is beta etc. Next good
> > candidate could be PostgreSQL - with more user
> > support, so maybe better solution. Any ideas?
> > 5) Web container
> > Proposal: Jetty as JBoss service
> > Remarks: I know Tomcat is more used, but Jetty is
> > easier to be integrated into JBoss and both offer
> > similar if not same functionality. This is a point I
> > would like to discuss further.
> > 6) Content Persistence
> > Proposal: stand-alone XIndice
> > Remarks: This component should be used only for
> > content without business logic, outside J2EE, for
> > example for simple static content editing templates
> > and external content syndicate subscription. Simply
> > for everything that's too light to be served by deep
> > application logic. Did anybody use it already? That's
> > a question.
> > 7) Content Framework
> > Proposal: Cocoon, what else :)
> > Remarks: The task of Cocoon is to separate Logic from
> > Design, what it should be good at. I want to get more
> > detailed here: Starting with structured XSP,
> > xincluding or transforming (what is better?) parts of
> > final site together, usi

RE: sexy open source

2002-08-14 Thread Artur Bialecki


-Original Message-
From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 10:05 AM
To: '[EMAIL PROTECTED]'
Subject: RE: sexy open source

> -Original Message----- 
> From: Artur Bialecki [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, August 14, 2002 10:02 AM 
> To: [EMAIL PROTECTED] 
> Subject: RE: sexy open source 
> Cocoon right now (2.0.3) has no good way to handle 
> errors generated by J2EE business logic. 
can you elaborate this in a little more details? I don't quite get what you mean by 
that, sorry 


All I'm saying is that logicsheets which are used during
generation of server pages are not the best palce to
call J2EE business logic. EJBs can throw many exceptions
and by the time you get to generation all you can 
do is transform on your errors so in the simplest form
your stylesheet must be able to handle all possible errors
generated on the given page. I consider an internal redirection
much better approach to handling errors, e.g. On error I can
redirect back to the original form. Gets even worse if you
EJBs have input on which stylesheet to use, e.g. If inventory item
foo (business object) has stylehseet hint then use it, otherwise
use default_inventory_item.xsl.
Way I can get around this is to process my XSP which uses logicsheets
with calls to J2EE beans before generation starts.

Artur...


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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




RE: sexy open source

2002-08-14 Thread Artur Bialecki



> -Original Message-
> From: Vegan Portal [mailto:[EMAIL PROTECTED]]
> 
>
> 7) Content Framework
> Proposal: Cocoon, what else :)
> Remarks: The task of Cocoon is to separate Logic from
> Design, what it should be good at. I want to get more
> detailed here: Starting with structured XSP,
> xincluding or transforming (what is better?) parts of
> final site together, using taglib logicsheets for
> access to business logic that is delegated to J2EE
> (did anybody here got it working?), other taglib for

Cocoon right now (2.0.3) has no good way to handle 
errors generated by J2EE business logic. I have 
logicsheets that access J2EE beans but I have
to process my XSP with action before the generation
starts so I can do something real whith errors.

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: XPath selector or XPath matcher

2002-08-12 Thread Artur Bialecki


If you want to do it with the current system you
can:
1 - create an action that processes you XSP and stores
  it as DOM on the request, similar to ServerPagesAction
2 - create an action that given XPath will find the
  node/attribute in a stored DOM and return it's value
  as a sitemap parameter.
3 - use the sitemap parameter for your logic.
4 - have a generator that serializes the stored DOM
into sax events, similar to SessionAttributeGenerator.

Artur...

> -Original Message-
> From: Michael Wechner [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 12, 2002 9:49 AM
> To: [EMAIL PROTECTED]
> Subject: XPath selector or XPath matcher
> 
> 
> Hi
> 
> Is anybody working on a XPath selector or XPath matcher?
> 
> I have situations where I would like to select the pipeline or
> at least the XSLT depending on the value of an attribute within the 
> generated XML.
> 
> Thanks
> 
> Michael
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

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




RE: Problems with 2.0.3

2002-08-12 Thread Artur Bialecki

> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > From: Artur Bialecki [mailto:[EMAIL PROTECTED]]
> > 
> > 
> > I'm upgrading from 2.0.2 to 2.0.3 and now I get the following error:
> > 
> > ERROR   (2002-08-09) 11:15.00:338   [sitemap]
> > (/NASApp/dfc/common/controlpanel.xml) Thread-39/Handler: Error
> compiling
> > sitemap
> > java.io.FileNotFoundException: /WEB-
> > INF/work/org/apache/cocoon/www/sitemap_xmap.java (No such file or
> directory)
> > at java.io.FileOutputStream.open(Native Method)
> > at java.io.FileOutputStream.(FileOutputStream.java:102)
> > at java.io.FileOutputStream.(FileOutputStream.java:62)
> > at java.io.FileOutputStream.(FileOutputStream.java:132)
> > at java.io.FileWriter.(FileWriter.java:63)
> > at
> org.apache.cocoon.util.IOUtils.serializeString(IOUtils.java:96)
> > at
> org.apache.cocoon.util.IOUtils.serializeString(IOUtils.java:83)
> > at
> >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.gen
> erateR
> > esource(ProgramGeneratorImpl.java:385)
> > at
> >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.cre
> ateRes
> > ource(ProgramGeneratorImpl.java:333)
> > at
> >
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
> d(Prog
> > ramGeneratorImpl.java:292)
> > at org.apache.cocoon.sitemap.Handler.run(Handler.java:265)
> > at java.lang.Thread.run(Thread.java:484)
> > 
> > Is the / in front of WEB-INF what's causing the problem?
> > Any ideas how to fix this?
> 
> If it were some other servlet engine, I would suggest following
> checklist:
> 
> 1. Clean work directory
> 2. Set incremental processing to false (should help with Xalan error
> reporting)
> 3. Restart engine
> 4. Try some url, if fails check sitemap_xmap.java: If file is absent,
> something is wrong with the XSLT processing; if file is 0 size, search
> for the message from the stylesheet; if file is more then 0 bytes, try
> compiling it.
> 
> My bet would be on some invalid syntax in the sitemap.
> 
> 
> But because you are using iPlanet, were it is miracle when it works, I
> don't know what to suggest to you. May be (if above does not help) you
> should try launching your app under Tomcat 4.0.4, just to try it out?
> 
> Vadim

To solve the problem I had to change my web.xml so the work-directory
is set to WEB-INF/work instead of /WEB-INF/work. The upload-directory
and cache-directory work fine the old way.

And yes iPlanet == BIG SUCKAGE

Artur...

> 
> 
> > I also noticed that src/webapp/WEB-INF/cocoon.xconf
> > is missing "compiler" parameter for 
> > 
> > (iAS6.5, win/solaris, jdk1.3.1, cocoon is one of many servlets in
> ear(war))
> > 
> > Thanks,
> > 
> > Artur...
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> 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. <http://xml.apache.org/cocoon/faq/index.html>

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




Problems with 2.0.3

2002-08-09 Thread Artur Bialecki


I'm upgrading from 2.0.2 to 2.0.3 and now I get the following error:

ERROR   (2002-08-09) 11:15.00:338   [sitemap] (/NASApp/dfc/common/controlpanel.xml) 
Thread-39/Handler: Error compiling sitemap
java.io.FileNotFoundException: /WEB-INF/work/org/apache/cocoon/www/sitemap_xmap.java 
(No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:102)
at java.io.FileOutputStream.(FileOutputStream.java:62)
at java.io.FileOutputStream.(FileOutputStream.java:132)
at java.io.FileWriter.(FileWriter.java:63)
at org.apache.cocoon.util.IOUtils.serializeString(IOUtils.java:96)
at org.apache.cocoon.util.IOUtils.serializeString(IOUtils.java:83)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:385)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:333)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:292)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:265)
at java.lang.Thread.run(Thread.java:484)

Is the / in front of WEB-INF what's causing the problem?
Any ideas how to fix this?

I also noticed that src/webapp/WEB-INF/cocoon.xconf
is missing "compiler" parameter for 

(iAS6.5, win/solaris, jdk1.3.1, cocoon is one of many servlets in ear(war))

Thanks,

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: Problems running cocoon 2.0.2 on iPlanet application server 6.5

2002-07-12 Thread Artur Bialecki



> -Original Message-
> From: Kulkarni, Mohan (GEL, MSX) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 12, 2002 11:27 AM
> To: '[EMAIL PROTECTED]'
> Cc: Brown, Wes (GEL, MSX)
> Subject: Problems running cocoon 2.0.2 on iPlanet application server 6.5
> 
> 
> Has anyone configured cocoon 2.0.2 on iPlanet Application server 6.5. Is it
> stable on iPlanet server 6.5 on windows 2000? Does any one have guidelines
> or steps for this installation?

I have cocoon 2.0.2 runing on iAS6.5 and Cocoon is stable.

> I have configured cocoon 2.0.2 on iAS 6.5 (tried on NT and 2000). I could
> get it to work, but performance is bad. Plus this morning cocoon servlet
> crashed giving following message:
> 
> SERVLET-execution_failed: Error in executing servlet
> org.apache.cocoon.servlet.CocoonServlet: java.lang.InternalError: assertion
> failed.

I've never seen this and my performance seems to be OK.

> 
> I recycled iPlanet to fix this issue. We are using cocoon in apache-tomcat
> for current production environment and trying to migrate to iAS 6.5 on
> window 2000.

I found many problems with the iAS stability and compliance. I would suggest
moving to something else if you can. 

Artur...

> 
> Software versions used:
> IAS 65.
> JDK 1.3.1
> OS: Windows 2000 Server
> Cocoon 2.0.2
> 
> Thanks
> 
> Mohan
> 
> 
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

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




RE: Cocoon status page ??

2002-07-11 Thread Artur Bialecki


I don't use the cocoon.war, I define cocoon as one of the servlets within
my application and throw all cocoon related jars in my WEB-INF/lib.

Cocoon is working fine I just can't get to the status page using
/cocoon/status because of my mappings.
Someone mentioned a "status" generator which I'm looking into
maping to something like cocoonstatus.xml

Artur...

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 11, 2002 3:09 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Cocoon status page ??
>
>
> Hello,
>
> If you deploy an Enterprise ARchive (.ear, containing the cocoon.war) you have to 
>add a "web context" in the deploy conf.
> file application.xml called "cocoon".
>
> Sylvain
>
> -Message d'origine-
> De: Artur Bialecki [mailto:[EMAIL PROTECTED]]
> Date: mardi, 9. juillet 2002 17:46
> À: [EMAIL PROTECTED]
> Objet: Cocoon status page ??
>
>
>
>
>  [ C-2.0.2, JDK1.3.1, Tomkat 4.0.4.b2 ]
>
>  I deploy the cocoon servlet as part of a j2ee application
>  which uses other servlets as well. So, I don't have the /
>  mapped to cocoon (just *.xsp and *.xml). How can I access
>  Cocoons status page normally accessed with /cocoon/status
>
>  Thanks,
>
>  Artur...
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> 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. <http://xml.apache.org/cocoon/faq/index.html>
>
> 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. <http://xml.apache.org/cocoon/faq/index.html>

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




Cocoon status page ??

2002-07-09 Thread Artur Bialecki


 
 [ C-2.0.2, JDK1.3.1, Tomkat 4.0.4.b2 ]
 
 I deploy the cocoon servlet as part of a j2ee application
 which uses other servlets as well. So, I don't have the /
 mapped to cocoon (just *.xsp and *.xml). How can I access
 Cocoons status page normally accessed with /cocoon/status
 
 Thanks,
 
 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]>




Cocoon status page

2002-07-05 Thread Artur Bialecki


[ C-2.0.2, JDK1.3.1, Tomkat 4.0.4.b2 ]

I deploy the cocoon servlet as part of a j2ee application
which uses other servlets as well. So, I don't have the /
mapped to cocoon (just *.xsp and *.xml). How can I access
Cocoons status page normally accessed with /cocoon/status

Thanks,


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: Giving up! Cocoon too big, slow and confusing

2002-06-27 Thread Artur Bialecki


> -Original Message-
> From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 27, 2002 9:32 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Giving up! Cocoon too big, slow and confusing
> 
> 
> Good post :)
> 
> Wake up, guys! John raised a real issue. You can't simply say "Don't give
> up, be patient, read mailing-list, look into sources..." and so on. If you
> want this framework to catch the train, then there must be better support
> and better documentation. 
> 
> I'm not complaining, by the way. I'd love Cocoon become a mainstream
> framework.

I agree as well. It's nice when you have time to tinker, wait
for useful replies from the mailling list or search the archives and
wade through messages that most likely talk about version you're not
using. It's nice to have time to look at source code and hope what
you learn will still hold in the next version. Unfortunately,
a lot of developers have very little time and don't want
to spend all of their "well wasted time" on Cocoon. This is not
about open-source vs closed-source, this about making Cocoon
usefull to everyone. Yes, I know I can help by pathching, writing
docs, answering questions on mailing lists (I sometimes do the last one),
but that requires time that I, and many other developers, don't have.

New features/design is nice but I'm already affraid I will have to
go through same HELL moving from 2.0.2 to 2.1 as I did when moving
from 1.8.x to 2.0.2. Please tell me that I'm crazy and that
all I'll have to do is drop in a new jar(s) and edit my cocoon.xconf.
I'm not crazy and I'll probably have to do a lot more and 
there wont be a migration guide to tell me what to do.

Cocoon is great, cocoon developers/community is great, but
I'm tired of explaining to VPs and clinets that Cocoon's
benefits outweights its lack of documentation and API stability.
These people would like to know that it will not cost them
3 months of extra development time, because their in house
Cocoon expret was hit by a bus.

So, IMO if you want Cocoon to succeed in medium/big business
all you have to do is write lots of helpful docs. The upcoming
books are a good start, but thinks like API JavaDocs with
actual comments for each package/class/method and installation
migration and user docs need to be released with each version.

Artur...

-- 
All I want is to use Cocoon.



> 
> > -Original Message-
> > From: John Austin [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 26, 2002 10:41 PM
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: Giving up! Cocoon too big, slow and confusing
> > 
> > 
> > I'm back from a short vacation in beautiful Chicago (it 
> > really is much 
> > nicer than Toronto or Montreal) and have waded back in to 
> > Cocoon for a 
> > couple of days.
> > 
> > After just a few hours of poking around I have decided that 
> > it will be 
> > much simpler for me to simply hand-code a whole hat-full of servlets 
> > than to try and pull any meaning out of Cocoon and it's documentation.
> 
> Two days is absolutely not enough to get a grasp of Cocoon, definitely.
> Unless, you are a twin brother of Stephano :)
> 
> -
> 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: Logging and Form Validation

2002-06-07 Thread Artur Bialecki


This is what we do for client side validation.
WARNING: requires javascript but my clients are not
"regular" web users.

For my app I provide validation in my XSP, eg:
  

  
   ^$|^[0-9a-zA-Z_]+$/ig
  
  


  
   ^$|^[0-9a-zA-Z.,_\\-]+\\@[0-9a-zA-Z._\\-]+\\.[a-zA-Z]+$/ig
  
 
   

so for each from field that needs to be validated I have 
 with id of the form field and one or more rules.
I also provide validation template that reads the /page/validators
and creates validateAndSubmit() javascript function that
validates all fileds specified in XSP.
Form filed name must match validator names but that's easy.
I define validators in XSP since some of them are based
on DB queries.

This works great for us.

We also validate on server side with automagic annotation
of errors and from field repopulation since not everything
can be validated on the client side (eg: does city Bumbomie
exsits?) so I our clients ask for support for javascripless
browers (which they wont) it will still work.

Just my 2 cents.

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: iPlanet iAS 6.5 + C2.0.3 - comments/CR in init-params of servlet

2002-06-07 Thread Artur Bialecki

Works fine for me.

Artur...

> -Original Message-
> From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 12:22 PM
> To: Cocoon-Users (E-mail)
> Subject: iPlanet iAS 6.5 + C2.0.3 - comments/CR in init-params of
> servlet
> 
> 
> It seems that when I deploy webapp in iPlanet 6.5, it doesn't handle
> properly the init-parameters of the servlet if they have comments or new
> lines.
> 
> did anybody see this? 
> 
> particularly, load-class init parameter in web.xml of CocoonServlet has
> comments and new lines, so it's not read properly. When I removed comments
> and new lines, it works. 
> 
> Argyn
> I wonder how Sun manages to sell iPlanet for money?
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: C2.0.3 Deployment on iPlanet 6.5 tips

2002-06-07 Thread Artur Bialecki

I found that iAS 6.x ignores contents my WEB-INF/lib,
so I have to put all cocoon/other libs in iAS's classpath
in registry

Artur...

> -Original Message-
> From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 06, 2002 7:54 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: C2.0.3 Deployment on iPlanet 6.5 tips
> 
> 
> I'm not ready for that. my iPlanet port is not stable yet.
> 
> > -Original Message-
> > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, June 06, 2002 7:38 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: C2.0.3 Deployment on iPlanet 6.5 tips
> > 
> > 
> > > From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> > > 
> > > Finally, it seems that I made it work on iPlanet 6.5 iAS (not Web
> > server).
> > 
> > Do you want to form a patch from these notes to the Cocoon's install
> > doc?
> > 
> > Vadim
> >  
> > > iPlanet comes with jaxp.jar and parser.jar files in its classpath,
> > which are
> > > located in \ias6\ias\classes\java\jaxp folder. 
> > I thought
> > that I
> > > can remove these files, but it seems that iPlanet is configured (or
> > > hardcoded) somehow, that it tries to load the particular Parser from
> > those
> > > jars. I didn't figure out yet how to change that in order to make it
> > work
> > > with any parser in the classpath. The parser they use is 
> > from Sun, it
> > > doesn't implement some methods, which breakes Cocoon with
> > NoSuchMethodError
> > > run-time error.
> > > 
> > > So, I put xercesXXX.jar and xml-apis.jar from Cocoon's 
> > WEB-INF/lib in
> > the
> > > beginning of the classpath. The iPlanet classpath is edited by
> > kregedit
> > > utility, the kay is "\SOFTWARE\iPlanet\Application
> > > Server\6.5\Java\ClassPath". The above two jars must come before
> > jaxp.jar and
> > > parser.jar, indeed.
> > > 
> > > Then I built the cocoon.war file. In addition to web.xml, iPlanet
> > needs
> > > ias-web.xml file in WEB-INF folder. You have to create it yourself,
> > here's
> > > the sample:
> > >  START ias-web.xml 
> > > 
> > > 
> > >  > > Application 1.0//EN'
> > > 'http://developer.iplanet.com/appserver/dtds/IASWebApp_1_0.dtd'>
> > > 
> > > 
> > >   
> > > Cocoon2
> > > {F3F92B34-D2D9-4FFE-A961-CC25A15FC3FA}
> > > 
> > >   false
> > >   false
> > >   10
> > >   false
> > > 
> > >   
> > >   
> > > lite
> > > dsync-distributed
> > > last-access
> > > false
> > > 
> > > 
> > > 
> > >   
> > > 
> > >  END ias-web.xml 
> > > 
> > > The most interesting thing is  element. iPlanet requires GUID
> > for
> > > every servlet to be run. There's a utility called "kguidgen", it
> > generates
> > > GUID for you.
> > > 
> > > As for the rest of the elements, I've no clue about them :) 
> > I suspect
> > they
> > > are not required at all.
> > > 
> > > To deploy Cocoon, I used the following command:
> > > iasdeploy deploymodule -verbose cocoon.war
> > > 
> > > If it's successfully deployed, then you can launch it with
> > > http://localhost/NASApp/cocoon/
> > > 
> > > In my configuration I have both iPlanet Web Server and App Server
> > installed.
> > > So, "NASApp" is the context for apps deployed on App server.
> > > 
> > > Apparently the war file name becomes the servlet's context if you
> > deploy it
> > > as a module. You can also deploy Cocoon as an application. 
> > To do that
> > you
> > > simply package it in "ear" file. Here's nothing fancy, no vendor
> > specific
> > > files, just ordinary "application.xml" in META-INF.
> > > 
> > > thanks,
> > > Argyn
> > > 
> > > I'm not an expert in iPlanet (YET), so excuse inaccuracies, if any.
> > > 
> > > 
> > -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. 
> > > 
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > 
> > 
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> > 
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: Migrating from Cocoon 1 to Cocoon 2

2002-06-03 Thread Artur Bialecki

Look through the archive. As I said in one of my post
Migrating from Cocoon1 to Cocoon2 is like converting
a gorilla to a submarine.

Took me 6 weeks to move our (complex) app from
C1 to C2 (I consider this VERY long time). I had to
hack Cocoon and Saxon since Xalan didn't work at all with my
complex XSLTs.

Good luck,

Artur...

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 03, 2002 4:52 PM
> To: [EMAIL PROTECTED]
> Subject: Migrating from Cocoon 1 to Cocoon 2
> 
> 
> 
>   Evening --
> 
>   I have an intranet application that uses Cocoon, xalan, and xerces, but it uses 
>Cocoon 1.0 - and need to upgrade to 
> Cocoon 2.0.  Does anyone have any sources for how-tos or can share their experiences?
> 
>   Thanks,
> 
>   Mike
> 
> 
> 
> Visit our website at http://www.ubswarburg.com
> 
> This message contains confidential information and is intended only 
> for the individual named.  If you are not the named addressee you 
> should not disseminate, distribute or copy this e-mail.  Please 
> notify the sender immediately by e-mail if you have received this 
> e-mail by mistake and delete this e-mail from your system.
> 
> E-mail transmission cannot be guaranteed to be secure or error-free 
> as information could be intercepted, corrupted, lost, destroyed, 
> arrive late or incomplete, or contain viruses.  The sender therefore 
> does not accept liability for any errors or omissions in the contents 
> of this message which arise as a result of e-mail transmission.  If 
> verification is required please request a hard-copy version.  This 
> message is provided for informational purposes and should not be 
> construed as a solicitation or offer to buy or sell any securities or 
> related financial instruments.
> 
> 
> -
> 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: iPlanet 6.5 + Cocoon - is there still problem with serv;et container?

2002-06-03 Thread Artur Bialecki



> -Original Message-
> From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 03, 2002 12:59 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: iPlanet 6.5 + Cocoon - is there still problem with serv;et
> container?
> 
> 
> > Don't know exactly what problem you're talking about but
> 
> I mean this: 
> "iPlanet Web Server 4.x provides the servlet 2.2 API (javax.servlet.*
> classes), but the servlet engine doesn't handle servlet contexts. This means
> there is no classloader built with the contents of WEB-INF/classes and
> WEB-INF/lib and that resolution of context resources (using
> ServletContext.getResource()) doesn't give the expected results." 
> 
> cited from http://xml.apache.org/cocoon/installing/index.html
> 

I use the servlet container that is part of iAS not the one that
comes with iWS. I know in iAS 6.0 WEB-INF/lib was ignored so I don't
have anything in there, I add my libs to the iAS classpath (using registry).
Also, I don't explicitly call ServletContext.getResource() anywhere
in my code, cocoon does most of the resource finding for me, webserver
takes care of images and static docs (for now).

> > I have Cocoon 2.0.2 (with Saxon 6.5.2, jexen) running under iAS 6.5
> > on w2k and Sol8. I don't remember running into any problems.
> 
> nice to hear it. many thanks.
> 
> unfortunately, C2 installation document doesn't say anything about iPlanet
> 6.5 :(
> is the following statement still true? 
> 
> "To be able to run on such non-compliant engines, Cocoon provides a
> bootstrap servlet in org.apache.cocoon.BootstrapServletthat handles all the
> servlet context related behaviours needed for proper functioning. " from the
> above doc.

It very well may be. Again, other than putting all cocoon related libraties at
the beginning of the iAS classpath I didn't have to do anything special.
It's possible that cocoon detects this resource problem and uses the 
BootstarServlet automagically.

Artur...


> 
> 
> thanks,
> Argyn
> 
> -
> 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: iPlanet 6.5 + Cocoon - is there still problem with serv;et container?

2002-06-03 Thread Artur Bialecki


iPlanet DOES suck, but so does every other j2ee container.
As with all infants you have to do exactly what they want
or they will cry/barf and don't forget to clean up their shit.

Don't know exactly what problem you're talking about but
I have Cocoon 2.0.2 (with Saxon 6.5.2, jexen) running under iAS 6.5
on w2k and Sol8. I don't remember running into any problems.

Artur...


> -Original Message-
> From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 03, 2002 11:54 AM
> To: Cocoon-Users (E-mail)
> Subject: iPlanet 6.5 + Cocoon - is there still problem with serv;et
> container?
> 
> 
> I've read that there was an issue with iPlanet and Cocoon. So, Cocoon had a
> special servlet to fix iPlanet's weird behaviour.
> 
> Does that same problem persist for iPlanet 6.5 and Cocoon 2.0.x? I plan to
> use Coconn 2.0.1 or 2.0.3.
> 
> Thanks,
> Argyn
> 
> (iPlanet sucks)
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: help with XSP, maybe actions

2002-05-31 Thread Artur Bialecki


In your pipe ine you need to specify serverpages type for the
generator, otherwise it will use the straight file generator.
So try this 
Also you don't seem to have any transformes to convert the 
generated xml to html/xhtml before you serialize it, you may
want to add that too.

Artur...


> -Original Message-
> From: gorillacommunications [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 31, 2002 12:49 PM
> To: [EMAIL PROTECTED]
> Subject: help with XSP, maybe actions
> 
> 
> Hi All,
> 
> I am having trouble getting some XSP to run. I have a small login form:
> 
> 
>   
> 
>   
>   
> 
>   UserID:
>   Password:
>   
>   
> 
>   
> 
> 
> and a pipleline:
> 
>   
> 
>   
>   
> 
>   
> 
> and a login.xml page (stripped down to show essentials):
> 
> 
>   xmlns:xsp="http://apache.org/xsp";
>  xmlns:util="http://www.apache.org/1999/XSP/Util";
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>  xmlns:xalan="http://xml.apache.org/xslt.extensions.Redirect";
>  extension-element-prefixes="xalan"
>  xmlns:lxslt="http://xml.apache.org/xslt";
>  version="1.0">
> 
>   
> java.lang.*
> java.util.*
> java.io.*
> 
>   
>   
>
>   String strUserID;
>   String strPwd;
> 
>   strUserID = request.getParameter("userID");
>   strPwd = request.getParameter("pwd");
> 
>   try
> 
> 
> // some code for validating the userID and pwd
>   }
>   catch (Exception e)
>   {
> e.printStackTrace(System.err);
>   }
> 
>   // redirect to login page or summary
>  String strHttp;
>   if (// login failed)
>   {
> strHttp = "http://localhost:8080/GS/gs.xml?fail=true";;
>   }
>   else
>   {
> strHttp = "http://localhost:8080/GS/gs.xml?pagename=summary";;
>   }
>   try
> 
> 
> response.sendRedirect(strHttp);
>   }
>   catch (Exception e)
>   {
> e.printStackTrace(System.err);
>   }
> 
>   
> 
> 
> The problem is that when I enter a userID and pwd and click on "Login", the
> Java code is not executed, rather it is just displayed in the browser like:
> 
> java.lang.* java.util.* java.io.* String strUserID; String strPwd; strUserID
> = request.getParameter("userID");strPwd = request.getParameter("pwd");
> try{// some code for validating the userID and pwd) catch (Exception e)
> 
> and so on.
> 
> Can anyone tell me what I'm doing wrong? I've read in the docs and archives
> that
> maybe I should be doing this with actions, but the sample I found for a
> login page
> uses the FormValidator, and I don't think I need that.
> 
> The reason I am doing it this way, is because I have this application
> running in
> C1 and would like to reuse much of the XSP. In that version my form
> action="login.xml"
> and it works just fine.
> 
> Also, if anyone knows of a good tutorial for actions, I would love to see
> it. To me, this
> is the most confusing part of C2 so far. I have done extensive searches and
> come up
> with little.
> 
> Many thanks,
> Leona Slepetis
> 
> 
> 
> -
> 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: cannot deploy on JBoss 3

2002-05-27 Thread Artur Bialecki


I've tried using cocoon2 with JBoss 2.4.4 and Tomcat 4.0.3 and
couldn't get it to work. When I installed Tomcat 4.0.4b2 everything
worked. I think some other people on this list also had problems
with 4.0.3.

HTML mail == BAD mojo

Artur...


-Original Message-
From: Charles Wishpot [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 27, 2002 6:15 AM
To: [EMAIL PROTECTED]
Subject: cannot deploy on JBoss 3


Hi,

I'm trying to drop the cocoon.war file into the deploy directory of JBoss3 RC1, which 
uses Catalina (TomCat 4.0.3).

But I get the following error (see below) - NullPointerException trying to put the 
default context.

I've tried just deploying the .war file which fails.
So I've tried the install instructions 
(http://xml.apache.org/cocoon/installing/index.html) even though JBoss 3 isn't 
mentioned, for
TomCat 4.0.3 reference but I still get the same problem.
Basically, I tried adding xerces, xalan, xml-apis, batik-libs to the 
catalina/common/lib/ directory - but no joy here, so I also
unjarred cocoon, edited WEB-INF/web.xml and added the extra-classpath param, re-jarred 
it but this made no difference.
I also tried the Catalina reference, removing crimson & jaxp, adding xml-apis to 
jboss/lib and adding it to the classpath when
starting JBoss.

I also tried adding the following to cocoon.xconf, again with no difference:


I also trawled through the mailing list archives but found nothing that worked.

Does someone have it working and can point me in the right direction? What step have I 
missed?

Many TIA...I have battled for a couple of days with this, but I am running out of 
things to try.

Charles
-=-=-=-

11:40:25,880 ERROR [Engine] StandardContext[/cocoon]: Servlet /cocoon threw load() 
exception
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception

11:40:25,885 ERROR [Engine] - Root Cause -
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:380)
at 
org.apache.avalon.framework.context.DefaultContext.put(DefaultContext.java:107)



Send and receive Hotmail on your mobile device: Click Here
- Please check 
that your question has not already been answered
in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail:


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

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




RE: cocoon actions

2002-05-27 Thread Artur Bialecki


The example you provided only declares the actions. In order
to use them you have to use them in you pipelines using
the  or using the cocoon-action request parameter
(check the action user docs).

Also, examin your generated sitemap java file sitemap_xmap.java
probably in your appservers WEB-INF/work directory.

Returning null from an action means that that action failed,
you might want to return an empty Map instead.

Artur

> -Original Message-
> From: Jim [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 27, 2002 2:31 PM
> To: [EMAIL PROTECTED]
> Subject: cocoon actions
> 
> 
> Hi,
> 
> I'm new to cocoon, and I'm having a few difficulties with actions.
> 
> I've tried writing the sample HelloWorld action, but I'm not sure what to do
> with it.  I'm able to compile it, but where do I put it?  I modified the
> code slightly - making it part of a package I call 'Security' and commenting
> out the body of the method (except for a return null;).  I'm trying to make
> a skeleton I can work from.  (And Security-related actions are what I'll be
> working on to start). 
> 
> I put it in the cocoon/WEB-INF/classes/Security subdirectory, and I added
> the following to WEB-INF/web.xml:
> 
> 
> Addons
> WEB-INF/classes
> 
> 
> Of course, I also modified my sitemap appropriately:
> 
>   src="org.apache.cocoon.acting.FormValidatorAction"/>
>  
>  
> ...
> 
>  
>   
>   
>  
> 
> 
> If it helps, here is a portion of the error I'm getting:
> 
> org.apache.cocoon.components.language.LanguageException: Error compiling
> sitemap_xmap: Line 602, column 19: variable action_set_login not found in
> class org.apache.cocoon.www.inv.sitemap_xmap Line 602, column 36: method
> actions
> 
> Thanks in advance,
> Jim Vlasblom
> 
> 
> 
> -
> 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: Question: what is {session-id} ? in a sitemap.xmap ?

2002-05-23 Thread Artur Bialecki


>From what I know, basically {name} is a representation of
a sitemap parameter which are used by sitemap components.
For example, if your pipeline wants to call another (resource)
pipeline you with a target parameter you would do it this way

 


now in your "simple-page" pipline you can access that target
paramter with {target} so you can have:
  
 
 

 
 
  

Also, if you implement actions the return of the act() method
is a map that will be added to the session paramters.
In your action of you do
sitemapParam.put("session-id", getSessionID()); then
in your pipeline you can do

  
   
...
 


Hope this helps.

Artur...

> -Original Message-
> From: John Austin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 23, 2002 5:44 PM
> To: [EMAIL PROTECTED]
> Subject: Question: what is {session-id} ? in a sitemap.xmap ?
> 
> 
> I have been using Cocoon 2.0.1 for a few months now and have run into a 
> few brick walls. The most serious limitation is the lack of 
> documentation for just about everything. I have worked through a number 
> of problems in the past but am currently frustrated by a number of 
> questions.
> 
> I have often seen expressions in the sitemap like {session-id} and 
> {target}. it is clear that these are variables substituted from 
> somewhere magical but I cannot for the life of me imagine what.
> 
> Can anyone explain where I can find the documentation for these 
> constructs ? I suspect that I can use these items to transfer 
> information in to parameter lists but need to understand this aspect of 
> Cocoon before I can do it.
> 
> 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: multiple XSLTs for the same XML

2002-05-23 Thread Artur Bialecki

Well then, I think you can use a reference
to another pipeline:

and have that pipeline aggregate your xslts
with .

I haven't tried this before, so good luck.

Artur...

> -Original Message-
> From: Robert Koberg [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 23, 2002 5:13 PM
> To: [EMAIL PROTECTED]
> Subject: Re: multiple XSLTs for the same XML
> 
> 
> Hi and thanks, but I want to do it without import or include.
> 
> -Rob
> 
> Artur Bialecki wrote:
> 
> >I use the 
> >before my first 
> >and it works.
> >
> >Artur...
> >
> >  
> >
> >>-Original Message-
> >>From: Robert Koberg [mailto:[EMAIL PROTECTED]]
> >>Sent: Thursday, May 23, 2002 5:00 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: multiple XSLTs for the same XML
> >>
> >>
> >>Hi,
> >>
> >>I am having trouble converting a set of XSLTs I have which use 
> >>xsl:include. I want to use a standard cocoon way but i am not finding 
> >>it. I have looked through the docs and searched with google through 
> >>several mailing list threads. From what i can see i have to perform 
> >>multiple transformations in a row all the while using the new result. Is 
> >>there an easier way to combine the stylesheets so they seem like one? 
> >> Here is an example of what I am trying to discuss:
> >>
> >>What is the best way to set up some thing like the following?
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>   
> >>  
> >>  
> >>
> >>
> >>   
> >>   
> >>
> >>
> >>   
> >>   
> >>   
> >>   
> >>
> >>   
> >>   
> >> 
> >> 
> >>
> >>  
> >>   
> >>
> >>
> >>Thanks for any help,
> >>-Rob
> >>
> >>
> >>-
> >>Please check that your question has not already been answered in the
> >>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >>
> >>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. <http://xml.apache.org/cocoon/faqs.html>
> >
> >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. <http://xml.apache.org/cocoon/faqs.html>
> 
> 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. <http://xml.apache.org/cocoon/faqs.html>

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




RE: multiple XSLTs for the same XML

2002-05-23 Thread Artur Bialecki

I use the 
before my first 
and it works.

Artur...

> -Original Message-
> From: Robert Koberg [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 23, 2002 5:00 PM
> To: [EMAIL PROTECTED]
> Subject: multiple XSLTs for the same XML
> 
> 
> Hi,
> 
> I am having trouble converting a set of XSLTs I have which use 
> xsl:include. I want to use a standard cocoon way but i am not finding 
> it. I have looked through the docs and searched with google through 
> several mailing list threads. From what i can see i have to perform 
> multiple transformations in a row all the while using the new result. Is 
> there an easier way to combine the stylesheets so they seem like one? 
>  Here is an example of what I am trying to discuss:
> 
> What is the best way to set up some thing like the following?
> 
> 
> 
> 
> 
> 
> 
> 
>
>   
>   
>
>  
> 
>
>
> 
> 
>
>
>
>
> 
>
>
>  
>  
> 
>   
>
> 
> 
> Thanks for any help,
> -Rob
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: Problems with Saxon (6.5.2) and resolver (Cocoon 2.0.2)

2002-05-21 Thread Artur Bialecki

I'm using 2.0.2 with couple of .xsl files from cvs head
with Saxon 6.5.2 (+ my patch).

Artur...

> -Original Message-
> From: Stephen Ng [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 21, 2002 4:52 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Problems with Saxon (6.5.2) and resolver (Cocoon 2.0.2)
> 
> 
> Artur,
> 
> What version of Cocoon are you using?  2.0.2 or something closer to
> 2.0.3?
> 
> Steve
> 
> > -Original Message-
> > From: Artur Bialecki [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, May 21, 2002 11:13 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Problems with Saxon (6.5.2) and resolver (Cocoon 2.0.2)
> > 
> > 
> > Also, saxon 6.5.2 and 7 has a bug with identity transform 
> > because of bug in DOMDriver. So, if you're using XPath (eg, 
> > xinclude transformer) things might not look the way you 
> > expect them to.
> > 
> > I told the author of Saxon how to fix this bug, but haven't 
> > heard anything back.
> > 
> > Artur...
> > 
> > > -Original Message-
> > > From: Frank Ridderbusch 
> > [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, May 21, 2002 10:58 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Problems with Saxon (6.5.2) and resolver (Cocoon 2.0.2)
> > > 
> > > 
> > > Well, here is what I've done. However I've found, that no 
> > all samples 
> > > work any more with Saxon, in particular SQL transformer and 
> > XMLforms.
> > > 
> > > - Also replaced xalan.jar with saxon.jar
> > > 
> > > - Starting the servlet-engine with the additional switch
> > > 
> > >   
> > > 
> > -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserF
> > > actoryImpl
> > > 
> > >   in TOMCAT_OPTS/CATALINA_OPTS.
> > > 
> > >   According to the saxon documentation, saxon uses/can use 
> > two XML parsers,
> > >   one for the input and the other for the XSL stylesheet, 
> > so that the input
> > >   can be validated and the XSL stylesheet not.
> > > 
> > >   In my setup, before setting the above option, I alway 
> > received exceptions
> > >   coming from the in saxon included parser Alfred 
> > (something in the realm
> > >   of resolving). Now, Xerces is used for both input and stylesheet.
> > > 
> > > - in cocoon/WEB-INF/classes/CatalogManager.properties I've set
> > > 
> > >   catalogs=/usr/lib/xemacs/packages/etc/psgml/CATALOG
> > > 
> > >   This is a catalog file, which is included with the PSGML 
> > (a XEmacs SGML/HTML
> > >   editing package) and the PSGML packages also contains a 
> > bunch of DTDs and
> > >   entity files, which saves you collecting them from the Net.
> > > 
> > > This setup works for me, even for my own custom DTDs. Although I'm 
> > > using 2.1-dev this should also work for 2.0.2. At least it 
> > works with 
> > > 2.0.3-dev for me.
> > > 
> > > Perhaps, this helps.
> > > 
> > > On Tue, 21 May 2002 10:32:04 -0400
> > > "Stephen Ng" <[EMAIL PROTECTED]> wrote:
> > > 
> > > > I've been struggling with getting Saxon 6.5.2 and Cocoon 2.0.2 
> > > > working together for a couple of days now
> > > > 
> > > > Here's what I did and what I found:
> > > > 
> > > > 1. I replaced xalan-2.3.1 with saxon.jar.
> > > > 2. I grabbed v1.9 of xsp.xsl 
> > > > 
> > (http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/c
> > > > ocoo
> > > > n/components/language/markup/xsp/java/xsp.xsl)
> > > > 
> > > > I started getting (intermittent) null pointer errors trying to 
> > > > resolve static files.  I had a sub-sitemap with:
> > > > 
> > > > "context://dir/data.xml"
> > > > 
> > > > Changing these to just
> > > > 
> > > > "dir/data.xml"
> > > > 
> > > > made a set of them go away.  (Does this make any sense?)
> > > > 
> > > > But I continue to get NPE's in the resolver code.  They came from
> > > > 
> > > > XSLTProcessorImpl::resolve() {
> > > > //...
> > > > 
> > > >   File parent = new File(base.substring(5));
> > > >   File parent2 = new File(parent.getParentFile(), href);
> > > >   xslSource =

RE: Problems with Saxon (6.5.2) and resolver (Cocoon 2.0.2)

2002-05-21 Thread Artur Bialecki

Also, saxon 6.5.2 and 7 has a bug with identity transform
because of bug in DOMDriver.
So, if you're using XPath (eg, xinclude transformer) things
might not look the way you expect them to.

I told the author of Saxon how to fix this bug, but haven't
heard anything back.

Artur...

> -Original Message-
> From: Frank Ridderbusch [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 21, 2002 10:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Problems with Saxon (6.5.2) and resolver (Cocoon 2.0.2)
> 
> 
> Well, here is what I've done. However I've found, that no all samples work
> any more with Saxon, in particular SQL transformer and XMLforms. 
> 
> - Also replaced xalan.jar with saxon.jar
> 
> - Starting the servlet-engine with the additional switch 
> 
>   -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
> 
>   in TOMCAT_OPTS/CATALINA_OPTS.
> 
>   According to the saxon documentation, saxon uses/can use two XML parsers,
>   one for the input and the other for the XSL stylesheet, so that the input
>   can be validated and the XSL stylesheet not.
> 
>   In my setup, before setting the above option, I alway received exceptions
>   coming from the in saxon included parser Alfred (something in the realm
>   of resolving). Now, Xerces is used for both input and stylesheet.
> 
> - in cocoon/WEB-INF/classes/CatalogManager.properties I've set
> 
>   catalogs=/usr/lib/xemacs/packages/etc/psgml/CATALOG
> 
>   This is a catalog file, which is included with the PSGML (a XEmacs SGML/HTML
>   editing package) and the PSGML packages also contains a bunch of DTDs and
>   entity files, which saves you collecting them from the Net.
> 
> This setup works for me, even for my own custom DTDs. Although I'm using 2.1-dev
> this should also work for 2.0.2. At least it works with 2.0.3-dev for me.
> 
> Perhaps, this helps.
> 
> On Tue, 21 May 2002 10:32:04 -0400
> "Stephen Ng" <[EMAIL PROTECTED]> wrote:
> 
> > I've been struggling with getting Saxon 6.5.2 and Cocoon 2.0.2 working
> > together for a couple of days now
> > 
> > Here's what I did and what I found:
> > 
> > 1. I replaced xalan-2.3.1 with saxon.jar.
> > 2. I grabbed v1.9 of xsp.xsl
> > (http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoo
> > n/components/language/markup/xsp/java/xsp.xsl)
> > 
> > I started getting (intermittent) null pointer errors trying to resolve
> > static files.  I had a sub-sitemap with:
> > 
> > "context://dir/data.xml"
> > 
> > Changing these to just
> > 
> > "dir/data.xml"
> > 
> > made a set of them go away.  (Does this make any sense?)
> > 
> > But I continue to get NPE's in the resolver code.  They came from
> > 
> > XSLTProcessorImpl::resolve() {
> > //...
> > 
> >   File parent = new File(base.substring(5));
> >   File parent2 = new File(parent.getParentFile(), href);
> >   xslSource = resolver.resolve(parent2.toURL().toExternalForm());
> > 
> > }
> > 
> > Turns out "resolver" was null.
> > 
> > I looked in CVS, and the whole mechanism for getting a resolver appears
> > to have been rewritten.  So, as a hack, I just check for null in
> > setSourceResolver.  (I have *no idea* what I'm doing here, folks).
> > 
> > public void setSourceResolver(SourceResolver resolver) {
> >   if (resolver!=null)
> >  this.resolver = resolver;
> > }
> > 
> > Now I have no more NPE's, but I still have a resolver problem
> > somewhere--one of my pipelines is failing because it can't locate a
> > stylesheet.  Still have to figure that one out.
> > 
> > But, now my app is running enough that I can time it.  Well,  I'm
> > getting it's between 10% to 25% faster, which is not nearly as much as
> > I'd hoped.  (A quick test showed Saxon 7 to be a tad slower, but it
> > might just be noise.)  (My app is currently taking about 2.2 seconds to
> > serve a page (1.7 Ghz P4, 512MB Ram, WinXP), of which I figure no more
> > than .5 sec is due to database access, and the rest I think is Cocoon
> > time.  I'm really gunning for sub-second response for a demo next week.)
> > 
> > Should I upgrade to CVS 2.0.3 and try again?  (I know this is a stupid
> > question, but how close is it to being soup?)  Or keep plugging at
> > 2.0.2?  Or wait for 2.0.3 to ship?  Best thing would be XSLTC!  
> > 
> > Steve
> > 
> -- 
> Mit freundlichen Gruessen / Regards
> 
> Frank Ridderbusch
> 
> Fujitsu Siemens Computers, EP SQ XS1
> Heinz Nixdorf Ring, 33106 Paderborn, Germany
> Email: frank.ridderbusch(at)fujitsu-siemens.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. 

RE: upgrading to Cocoon2 and debugging

2002-05-15 Thread Artur Bialecki


Porting from Cocoon1 to Cocoon2 is 
like converting a gorilla to a submarine.
If your project is small than I would read up
on Cocoon2, rethink your approach and start from
scratch, otherwise read on.

> -Original Message-
> From: gorillacommunications [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 4:54 PM
> To: [EMAIL PROTECTED]
> Subject: upgrading to Cocoon2 and debugging
> 
> 
> Hi all.
> 
> I am upgrading an application from Cocoon1 to Cocoon2 and am
> having some problems. I get the error "Exception in creating Transform
> Handler:
> java.lang.NullPointerException".
 
   This is not enough info

> 1. I created a pipeline in sitemap.xmap, but are there any special things I
> must do to my XML and XSL files to upgrade?

There a quite a few change you have to do to XMLs. 
tag libs request, response, etc. are now xsp-request, xsp-response,
etc. Also their namespace uris have changed so now you must have:
http://apache.org/xsp/request/2.0";>
and same for response, etc.

If you used xspCurrentNode and its friends than you have to
rewrite your XMLs to use SAX contentHandler instead.

The fp taglib is not in C2, other taglibs have changed too.

If your XMLs did redirection or changed stylesheets on the fly
than you might need to write some Actions.


> 
> 2. How do I see meaningful debugging info? I looked in the archive
> and think I have the settings correct in web.xml and logkit.xconf, but
> I see no info in any of the logs for this application (other applications
> dump output to the logs). At least Cocoon1 would write a message
> to the console telling me what the parser choked on (I read in
> the archive that this message is caused by an error in the XSL).
> 

  there are sitemap.log error.log core.log and access.log probably
in your deployed apps WEB-INF/logs. Look there.

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: iPlanet + Cocoon: did anybody try?

2002-05-15 Thread Artur Bialecki


When I'm finished the port, maybe, but probably not,
I spent too much time on the port already
so as allways docs get no time. Also I'm moving 
from C1 to C2 so it's a little different.

Artur...

> -Original Message-
> From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 5:10 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: iPlanet + Cocoon: did anybody try?
> 
> 
> > I'm currently porting our stuff to Cocoon 2.0.2
> > which will run on iPlanet 6.5.
> 
> can you post your installation documents for Cocoon 2.0.2 and iPlanet 6.5?
> 
> Thanks,
> Argyn
> 
> -
> 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: iPlanet + Cocoon: did anybody try?

2002-05-15 Thread Artur Bialecki


I've been runnig Cocoon 1.8.x on iAS 6.0 through 6.5 for last
couple of years. I'm currently porting our stuff to Cocoon 2.0.2
which will run on iPlanet 6.5.

I haven't worked much with Weblogic and Websphere but for large
applications both iPlanet and JBoss are f'ed up in their own
unique way. With JBoss you at least have the code,
with iPlanet you're very lucky if your bug gets fixed within 8 months.
iPlanet breaks J2EE in several palces so be ready to 
wrtie workarounds. I don't know about 6.5 but previous version
used some hacked version of Tomcat for the servlet container.

Artur...



> -Original Message-
> From: Lajos Moczar [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 3:28 PM
> To: [EMAIL PROTECTED]
> Subject: Re: iPlanet + Cocoon: did anybody try?
> 
> 
> I did, but something (I presume in Cocoon) kept unexpectedly bringing 
> down iPlanet. I ended up switching back to Tomcat.
> 
> Regards,
> 
> Lajos
> 
> 
> Argyn Kuketayev wrote:
> 
> > I must test my reporting module written with Cocoon on jBoss/Tomcat,
> > iPlanet, IBM WAS, BEA WLS.
> > 
> > My main concern is iPlanet, since I'm more or less confident about others.
> > Did any body deploy real-life Cocoon apps in iPlanet 6.5? Need resources.
> > 
> > Argyn
> > 
> > -
> > 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]>




Log from mounted sitemap.

2002-05-13 Thread Artur Bialecki


[ C-2.0.2, J-1.3.1, JB-2.4.4, TC-4.0.4b2, W2K, A-1.2.23]

I mount a different sitemap for each of my modules.
Do I have to do anything special to see log events
from the mouted sitemaps? The root sitemap reports
everything, but I don't see an log events from any
of the mounted sitemaps. Everything in logkit.xconf
is set to DEBUG.

Thanks,

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: Custom Database Action

2002-05-09 Thread Artur Bialecki

What exactly is the problem. The action documentation
has enough stuff the get started. Look in the source code
cocoon-2.0.2/src/java/org/apache/cocoon/acting for examples
of actions. Remember to define your actions in the sitemap
before you use them. Make sure that the classloader that
loaded cocoon can find your action class.

Artur...

> -Original Message-
> From: Matthew Hailstone [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 3:49 PM
> To: [EMAIL PROTECTED]
> Subject: Custom Database Action
> 
> 
> I'm a newbie. I've created my own version (tweaked it a little) of the 
> bonebreaker example found on the cocooncenter website : 
> http://www.cocooncenter.de/cc/documents/resources/navigation/index.html
> 
> I am still having a hard time grasping how to create actions in cocoon. I'm 
> trying to connect to a database, perform some queries, and use the 
> information from the queries in my pipelines. I've already looked at the 
> "Creating and Using Actions" section of the online User Guide : 
> http://xml.apache.org/cocoon/userdocs/concepts/actions.html  and could not 
> get that example to work.
> 
> I'm trying to not use XSP's to preserve the separation between logic, 
> content, and style. Any links to a more extended documentation on action 
> creation and also their uses in cocoon would be much appreciated. I'm 
> starting to notice that I'm spinning my wheels. :)
> 
> Matthew
> 
> 
> -
> 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]>




Saxon Xinclude problem

2002-05-07 Thread Artur Bialecki


I have a problem with Saxon 6.5.2 and Xinclude transformer.
I get the following:

java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI
at 
org.apache.avalon.excalibur.xml.xpath.XPathProcessorImpl.selectNodeList(XPathProcessorImpl.java:65)
at 
org.apache.cocoon.transformation.XIncludeTransformer.processXIncludeElement(XIncludeTransformer.java:302)
at 
org.apache.cocoon.transformation.XIncludeTransformer.startElement(XIncludeTransformer.java:155)
at org.apache.cocoon.www.oem.customer.index_xml.generate(index_xml.java:764)

Do I have to keep xalan.jar for the XPathAPI or do I use something
else. How can I get this to work.

Thanks,

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: Need to replace xalan

2002-05-06 Thread Artur Bialecki

Are there any configuraion changes I need to make to
use Saxon or do I just thow saxon jar in my CP.

Thanks,

Artur...

> -Original Message-
> From: Lai, Harry [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 06, 2002 5:19 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Need to replace xalan
> 
> 
> Hi Torsten,
> 
> This wasn't using Cocoon, but one of my co-workers did a performance
> comparison among Xalan2, Saxon (6.5, I believe), and JD (pre-1.2.5, but
> don't remember the specific version).  If I remember right, Saxon was 2-3
> times as fast as Xalan2, and JD was 2-3 times as fast as Saxon.  Sorry I
> don't remember the details, though.
> 
> Harry
> 
> PS  Just FYI, we've been using Saxon 6.5 with Cocoon 2.0.2, and it's been
> fine except for a minor bug in the sitemap.xsl that Xalan is more forgiving
> of (though everything was good once we fixed the sitemap.xsl bug).
> 
> 
> -Original Message-
> From: Torsten Curdt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 06, 2002 4:13 PM
> To: [EMAIL PROTECTED]; Vadim Gritsenko
> Subject: Re: Need to replace xalan
> 
> 
> On Monday 06 May 2002 20:11, Vadim Gritsenko wrote:
> > Try saxon-6.5.2.jar. Works for me.
> >
> > Vadim
> 
> Just wondering... how is the speed compared to Xalan?
> --
> Torsten
> 
> -
> 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]>




Need to replace xalan

2002-05-06 Thread Artur Bialecki


Ok, xalan 2.3.1 and xalan head is horribly broken and from
the number of bugs I doubt will see a working vision this year.

What other XSLT processor can I use that's JAXP compliant, has
node-set extensions and is easily integrated with Cocoon2.

Thanks,

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: {0} sitemap parameter in regexp matcher

2002-04-30 Thread Artur Bialecki


> -Original Message-
> From: Christian Haul [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 30, 2002 6:05 PM

>> but this doesn't (regexp):
>> 
>>>  pattern="product/category_(view|edit)\.xml">
>>  
>>
>>  
>>   
>>  
>>  
>>

> If so desired (and agreed), it would be trivial to add 0 to
> AbstractRegexpMatcher.
> 
> after line 127 add:
>map.put("0", match);
> 

This would make it more consistent with wildcard matcher and
help poor saps like me with move from C1 to C2.
Maybe this should be a general rule for all matchers that
parameter {0} is allways the whole matched pattern.

What is the best way to get this fixed? Bugzilla?

Thanks,

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




{0} sitemap parameter in regexp matcher

2002-04-30 Thread Artur Bialecki


Is {0} not available when using sitemap matcher?
I have a sub-sitemap where

This works (wildcard):

   
 
   
 
  
 
 
   

but this doesn't (regexp):

   
 
   
 
  
 
 
   

to make the generator find source I have to do:
src="product/category_{../1}.xml"

Any ideas ?


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




Request vs HttpServletRequest

2002-04-26 Thread Artur Bialecki



  Life is hard for people porting from C1 to C2, so
  many things have changed. Why, oh why?


Let's asume I'm a crazy person who uses Cocoon servlet
with other servlets and all these servelts share utility
classes. Some of this utilities use to take
HttpServletRequest as a parameter, but when I moved
to C2 I had to changed them to take org.apacheRequest
instead (lots of my XSPs use these utilities and doing
(HttpServletRequest)objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT)
everywhere would be a pain).

In order for my other servlets to work I have
to convert HttpServletRequest to cocoon HttpRequest,
but the constructor for HttpRequest is protected so
forget that. I guess the only option is to create
HttpEnvironment and pass it all the crap that it needs,
get the Reqeust out and throw it all away.

Is there a simpler/smarter way to get cocoon HttpRequest
from HttpServletRequest?

Thanks,

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: Cocoon use

2002-04-26 Thread Artur Bialecki


In my company cocoon is used as the only user interface
to enerprise/network management/fulfillment (OSS,BSS) system
that includes order entry/management (workflow), inventory,
activation, etc. Since we use XML at the core of our J2EE
application and we need the ability to "brand" our interfaces
Cocoon is perfect for the job. Ability to output to multiple
devices and i18n allows for future expansion. I've written
logicsheets (tag libraries) to communicate with our j2ee beans,
so now even our gui developers can create/modify our XSPs.

Also because of MVC separation, I can hand-craft XML page
and give it to gui developer so he/she can start on the XSLT
while I create and test XSPs, java, tags, whatever to generate
that XML.

Artur...


> -Original Message-
> From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 26, 2002 11:34 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Cocoon use
>
>
> Okay, but in what kind of a project is it used. I have to explain why other
> people in my company should use it and I have some ideas but I could use
> some help answering the following question:
>
> In what kind of a project is it used? In particular in what kind of a
> project do you people use it...
>
> For example a weather providing site where customers can get the information
> from the web and via other devices...
>
> Thanks already,
>
> Edgar
>
> -Oorspronkelijk bericht-
> Van: Jörn Heid [mailto:[EMAIL PROTECTED]]
> Verzonden: vrijdag 26 april 2002 11:56
> Aan: [EMAIL PROTECTED]
> Onderwerp: AW: Cocoon use
>
>
> 1. Open Standards
> 2. Output independency
> 3. True MVC
> 4. Open Source
> 5. Java (plattform independency)
> 6. Fast (regarding the points above)
>
> The question is if there's an alternative product on the market?
> I think not. Cocoon uses as much open standards as it can.
> No other product I know has those advantages.
>
> -Ursprüngliche Nachricht-
> Von: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 26. April 2002 09:45
> An: '[EMAIL PROTECTED]'
> Betreff: Cocoon use
>
>
> People,
>
> I would like to know why you use Cocoon?
>
> Thank you,
>
> Edgar
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


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

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




RE: XSP question: How to set tag attributes dynamically?

2002-04-25 Thread Artur Bialecki


Hello,

String yourString = "blah";
...

  youString
  
yourString
  


will create:




I hope ;)

For more info look in:
cocoon-2.0.2/src/java/org/apache/cocoon/components/language/xsp/java
xsp.xsl - for all xsp tags
.xsl - for how they can be used.

Artur...

> -Original Message-
> From: Volker Schneider [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 25, 2002 9:57 AM
> To: [EMAIL PROTECTED]
> Subject: XSP question: How to set tag attributes dynamically?
> 
> 
> Dear colleagues,
> 
> does anybody know how I can set a tag attribute within xsp, for example
> 
> ...
> String theLanguage = "en";
> 
> ...
> 
> How can I fill the "en" into the language attribute from the JAVA variable?
> 
> The same problem is to set dynamic tags:
> 
> ...
> 
> How can I fill the ??? from JAVA?
> 
> Thank you, best regards
> - Volker -
> 
> -
> 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: Simple installation problem?

2002-04-24 Thread Artur Bialecki


In some cases if the cocoon.jar (and its libs) are loaded from the lib directory
they cannot see classes from the applications. Try putting cocoon.jar and its
core libs in the WEB-INF/lib directory of you war. Or you can jar up your custom
classes and throw that jar in tomcat's lib (where cocoon.jar lives).

I had this problem witch C2.0.2, Tomcat 4.0.4b2 and JBoss 2.4 and since
more than one app used Cocoon I had to go with the second option.

Hope this helps.

Artur...

-Original Message-
From: Gal Nitzan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 6:33 PM
To: [EMAIL PROTECTED]
Subject: Simple installation problem?



+ Cocoon 2.2 + Tomcat 4.0.4 b2 + WIN-2K + JBuilder+


Hi,

All my setup is working fine, But when I try to call my own Java classes from XSP 
pages I get nothing, no error no content.

While debugging my page_XSP.java class I notice there is a NoClassDefFoundError 
but there is no reason for that. The classes
reside in the /WEB-INF/classes...

so what could it be !?


Thanks,

Gal.


-
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: Iteration inside xsp

2002-04-23 Thread Artur Bialecki

Look at xsp.xsl in org/apache/cocoon/components/language/xsp/java for
list of all xsp tags.

To solve your problem:

  for( Iterator iter = v.iterator; iter.hasNext();) {
   (String)iter.next()
  }


You can also use  if you don't know what the 
tag will be.

Artur...



> -Original Message-
> From: Volker Schneider [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 2:15 PM
> To: [EMAIL PROTECTED]
> Subject: Iteration inside xsp
> 
> 
> Dear colleagues,
> 
> I want to use xsp to retrieve data from the session. The only problem is,
> that I cannot put list content out to the xsp page.
> 
> If I want to write out a list of names which are stored in a vector, how can
> I produce an xsp-page like this:
> 
> ...
> Volker
> Peter
> Betty
> ...
> 
> an so on. Sure I can iterate in java, but then there must be a chance to
> select what data should be put out.
> 
> Where can I find a more detailed xsp-tutorial, where every xsp-tag is
> declared. The things I found mostly were incomplete.
> 
> Best regards
> - Volker -
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




RE: [C2] Transformer problem with endDocument()

2002-04-23 Thread Artur Bialecki

There is no errors when running w/o Xalan and there is 
no null in my collection. It happens on the very last
line of generate(). Looking at the archives some people
had similar problem when including XML in string form
but the xsp-util:include will not work here.

Any other ideas ?

Thanks,

Artur...

> -Original Message-
> From: Peter Royal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 22, 2002 7:44 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [C2] Transformer problem with endDocument()
> 
> 
> On Monday 22 April 2002 07:00 pm, Artur Bialecki wrote:
> > I get the following exception when my XSP uses
> > Collection where each object
> > in a collection is a (non-root) DOM Node.
> > The XML is generated correctly when I check using
> > cocoon-view but error apprears when xalan transformer
> > is in the pipeline.
> > I'm using Cocoon 2.0.2, with Tomcat 4.0.4b2 on w2k jdk 1.3.1_02
> >
> > Original exception : java.lang.RuntimeException:
> > java.lang.NullPointerException at
> > org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3231)
> > at
> > org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(Transformer
> >HandlerImpl.java:436) at
> > org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
> > at
> > org.apache.cocoon.www.oem.customer.editdetail_xml.generate(editdetail_xml.j
> >ava:3767)
> >
> > Thanks,
> 
> Did you check the logs after running w/o Xalan? There might be a NPE in 
> there. It sounds like there may be a null in your Collection.
> -pete
> 
> -- 
> peter royal -> [EMAIL PROTECTED]
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> 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. <http://xml.apache.org/cocoon/faqs.html>

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




[C2] Transformer problem with endDocument()

2002-04-22 Thread Artur Bialecki


Hello,

I get the following exception when my XSP uses
Collection where each object
in a collection is a (non-root) DOM Node.
The XML is generated correctly when I check using
cocoon-view but error apprears when xalan transformer
is in the pipeline.
I'm using Cocoon 2.0.2, with Tomcat 4.0.4b2 on w2k jdk 1.3.1_02

Original exception : java.lang.RuntimeException: java.lang.NullPointerException
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3231)
at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:436)
at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
at 
org.apache.cocoon.www.oem.customer.editdetail_xml.generate(editdetail_xml.java:3767) 

Thanks,

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: Migrating DOM based XML generators

2002-04-22 Thread Artur Bialecki


See if org.apache.cocoon.xml.dom.DOMStreamer will do the job for you.
It is used by org.apache.cocoon.components.language.markup.xsp.XSPObjectHelper

Artur...

> -Original Message-
> From: Simon Brooke [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 22, 2002 1:37 PM
> To: [EMAIL PROTECTED]
> Subject: Migrating DOM based XML generators
> 
> 
> Hi
> 
> Some of you may know (of) me, I'm the guy who wrote maybeupload.
> 
> I'm looking at how to migrate a lot of my stuff to Cocoon. Currently my 
> DocumentGenerator interface generates a DOM2 Document (see
> 
>  
>http://www.weft.co.uk/library/jacquard/documentation/uk/co/weft/domutil/DocumentGenerator.html
> >)
> 
> I have a *lot* of classes which implement this interface.To plug them 
> into Cocoon I need to generate SAX events and currently I don't. 
> Obviously generating SAX events as the document is being built is going 
> to be quicker than building a document tree and then tree-walking it to 
> generate the SAX events, so if I decide that Cocoon is the right road 
> to go down I've got a lot of rewriting to do. But as a quick fix, does 
> someone have a class which implements 
> org.apache.cocoon.generation.Generator, and which (in its generate() 
> method) walks a DOM tree constructed by something else? It would save 
> me a lot of grief. 
> 
> -- 
> [EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/
> 
>   [ This .sig intentionally left blank ]
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

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

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




[C2] How do I import form logicsheets ???

2002-04-11 Thread Artur Bialecki


I useto to this in C1 for imports in my logicsheets (not XSPs)


  

  


  dfc.cocoon.*
  dfc.cocoon.ErrorWrapper
  dfc.servlet.MainMenu

 
  
 

but this doesn't seem to work in C2. My generated Java
files are missing both package and class names,
and I hava dangling dependencies like this:   
 dependencies = new File[] { new File("

What is the right way to import packages in C2 logicsheets.

Thanks,


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: Why isn't Cocoon making into the commerical world?

2002-04-03 Thread Artur Bialecki


Cocoon is making into comertial world. My company uses it
for all iterfaces to our sizable product (over 1000 XSPs).
We started with 1.7.4 and moved to 1.8.1 and now I'm trying
to move to 2.0.2 (I hope performance will be better).

Where Coccon is lacking is documentation, documentation, and
documentation. I find that whenever I'm looking for something
5% of the time I find it in Cocoon docs, 40% of the time I find
it from the mailing list archives (I wish I could use deja.com
for my searches) and rest of the time is code surfing.

Also some push into comertial J2EE providers should be made.
iPlanet App Server included cacoon in one of it's version but
I think the new one (6.5) will come with Struts.

Anyways, it's a great engine I just wish I could spend less time
looking and more time developing.

Artur...

> -Original Message-
> From: Steven Punte [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 28, 2002 9:28 PM
> To: [EMAIL PROTECTED]
> Subject: Why isn't Cocoon making into the commerical world?
> 
> 
> Dear Cocoon User Group:
> 
>First of all, I LOVE the Cocoon framework,
>I'm a total believer, and expecially love
>how Cocoon2 is turning out!
> 
>Cocoon seems just awesomely powerfully, years
>ahead of the classical architectures proposed
>by Sun (i.e. JSP to ServletBeans to EJBs...).
> 
>But how come there is NO (i.e. ABSOLUTELY NO)
>demand for Cocoon expertise in the US market?
>Type in key word "java" and retrieve 3500 hits
>on www.dice.com.  Type in key word "cocoon" 
>and get ZERO!
> 
>Is it all just a dream?
> 
>Steve
> 
> PS:
>No need to reply if "your" commerical project
>is using it: congradulation.  But the bigger
>picture is my question.
> 
> 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards.
> http://movies.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]>




[C2] Best palace for redirection in case of error

2002-04-03 Thread Artur Bialecki

Hello all,

I'm in the process of migrating from C1.8 to C2 and I'm writing
some actions to save form data. If saving this data generates
exceptions I redirect to predefined (in form XSP) page based
on type/id of the exception.

My question is what is the proper way to do that redirection
form action? Should I use the Redirector(?), or just
grab the HttpServletResponse form the objectModel and use that,
or return some sitemap params and do magic there.
Since I can't find any info on what the Redirector is/does
and I'm only a student of the sitemap magic I leaning towards
the Response.

Thanks,

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: Turning XSPs into Generators (Why?)

2002-03-26 Thread Artur Bialecki

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

Thanks,

Artur...

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

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

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




RE: [Announcement] Apache Cocoon 2.0 Release

2001-11-29 Thread Artur Bialecki

Is there a migration guide (help) anywhere for
migrating from Cocoon 1.8.* to 2.0?

Thanks,

Artur...

> -Original Message-
> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 29, 2001 10:59 AM
> To: [EMAIL PROTECTED]; Cocoon-Users
> Subject: [Announcement] Apache Cocoon 2.0 Release
> 
> 
> Apache Cocoon 2.0 Released
> --
> 
>The Apache Cocoon development community is very proud to announce the
>long-awaited first stable release of the next generation of Apache
> Cocoon.
> 
>Apache Cocoon is an XML framework that raises the usage of
>XML and XSLT technologies for server applications to a new level.
>Designed for performance and scalability around pipelined SAX
>processing, Cocoon offers a flexible environment based on the
>separation of concerns between content, logic and style.
>A centralized configuration system and sophisticated caching
>top this all off and help you to create, deploy and maintain
>rock-solid XML server applications.
> 
>Today, most web engineers consider XML as the key for an improved
>web model and web site managers see XML as a way to reduce costs
>and ease production. In an era where services rather than software
>will be key for economic success, a better and less expensive model
>for web publishing will be a winner, especially one based on open
>standards.
> 
>This release of Cocoon is a complete rewrite of the first generation
>that removes all of those design constraints that emerged during
>almost three years of worldwide use.
> 
>This release is considered stable in both implementation and on the API
>it provides: this means that the Apache Cocoon development community
>is now fully committed to preserve backwards compatibility with this
> release.
> 
>We value the time and energy that our users will spend in order to deploy
>Cocoon technologies in their solutions and will make all possible effort
>to keep Cocoon a solid platform to work on.
> 
>For more information about Apache Cocoon, please go to
> 
>http://xml.apache.org/cocoon/
> 
>Thank for your interest and thanks to all who made this possible.
> 
> 
> The Apache Cocoon Worldwide Community
> 
> 
> -
> 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]>