Re: Error : 500 Internal Servlet Error

2002-02-13 Thread Brian Blakeley

As I understand it Java does not allow methods larger than 65535 bytes and
therefore you need to break up things a bit.

Brian


- Original Message -
From: "Shailendra Vasale" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 2:07 AM
Subject: Error : 500 Internal Servlet Error



hi All,


   I'm running c2 on tomcat3.2.3.When I call my xml file in c2 using
serverpages generator.I get the following error.

Error: 500
Location: /cocoon/show123/style.xml
Internal Servlet Error:

java.lang.ClassFormatError:
org/apache/cocoon/www/docs/samples/styles/style_xml (Code of a method longer
than 65535 bytes)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.loadClass(Cl
assLoaderManagerImpl.java:64)
at
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProg
ram(JavaLanguage.java:121)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:144)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:320)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:271)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:188)
at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator
.java:170)
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:146)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:239)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
ngEventPipeline.java:99)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:277)
at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40049C(sitemap_xmap.java:64
99)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2990)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2551)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:591)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)



   Can anyone help me out.

   TIA.

Regards,
SHAILENDRA.





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




Error : 500 Internal Servlet Error

2002-02-13 Thread Shailendra Vasale


hi All,


   I'm running c2 on tomcat3.2.3.When I call my xml file in c2 using serverpages 
generator.I get the following error.

Error: 500
Location: /cocoon/show123/style.xml
Internal Servlet Error:

java.lang.ClassFormatError: org/apache/cocoon/www/docs/samples/styles/style_xml (Code 
of a method longer than 65535 bytes)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at 
org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.loadClass(ClassLoaderManagerImpl.java:64)
at 
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProgram(JavaLanguage.java:121)
at 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:144)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:320)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:271)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:188)
at 
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:170)
at 
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:146)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:239)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99)
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:277)
at 
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40049C(sitemap_xmap.java:6499)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2990)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2551)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:591)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)



   Can anyone help me out.

   TIA.

Regards,
SHAILENDRA.


 


-
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: PDF Table Template?

2002-02-13 Thread Perry Molendijk

This is not a Cocoon error it's a fundamental XSLT error. Constructs like:





are bad.

If you want to use a named template for a table do this









or

use an  so you can set all the attributes for your tables
in the one spot.
200px








BTW this is probably off topic for this list. Use
[EMAIL PROTECTED]
(http://www.mulberrytech.com/xsl/xsl-list/index.html)  for XSL related
questions.




- Original Message -
From: "Ryan Howe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 7:14 AM
Subject: PDF Table Template?


> Hello,
>
> I am attempting to use the stylesheet included below
> to transform an XML file to PDF using Cocoon 2.0.1. My
> hope to build multiple tables in the PDF file. I have
> created two templates in the stylesheet for opening
> and closing a table.
>
> When running this through Cocoon, I get a
> NullPointerException in Xalan
> (TransformerImpl.run(TransformerImpl.java:3174)). If I
> uncomment the  tags in the stylesheet
> comment the call to the two templates, it runs fine
> through Cocoon.
>
> Since I will create about 6 tables in this file, I
> would like to have a template to open the table and
> setup the columns instead of coding the same thing
> several times.
>
> Would anyone have any ideas how to get around this?
>
>
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:fo="http://www.w3.org/1999/XSL/Format";>
>  encoding="UTF-8" indent="yes"/>
> 
>  xmlns:fo="http://www.w3.org/1999/XSL/Format";>
> 
>  page-height="600pt" page-width="850pt">
>  margin-left="25pt" margin-top="25pt"
> margin-right="25pt" margin-bottom="25pt"/>
> 
>  master-name="table-sequence">
>  master-reference="table-page"/>
> 
> 
>
>  master-reference="table-sequence">
> 
> 
> 
> 
>  column-width="80pt"/>
>  column-width="80pt"/>
> 
> 
>  number-columns-spanned="2" padding="2pt"
> background-color="#003366">
> Total Mechandise
> Discounts & Adjustments
> 
> 
> 
> 
> 
>  border-style="solid" padding="2pt">
> 9099
> 
>  border-style="solid" padding="2pt">
> NTB - SOUTH
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
>  table-omit-header-at-break="true">
> 
> 
>
> 
> 
> 
> 
> 
>
> 
>
>
> __
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.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]>




Installing Cocoon 2.0.1 on Websphere App Server 4.0.1AE

2002-02-13 Thread Edwin M. Cruz

Are there any warnings i should know about before designing my app around
this framework?
Has anyone used it for an exterprise application?


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


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

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




RE: [Action] Best practices for authentication

2002-02-13 Thread Vadim Gritsenko

> From: Pascal Davoust [mailto:[EMAIL PROTECTED]]
> 
> Mmh, I probably missed something here... I tried what you proposed,
but I
> get a compilation error. Here's what I did at first, which works
correctly:
> 
> 
>   
> 
> 
>   value="file://config/session-params.xml"/>
>   
> 
>   
> 
>   
> 
> 
> (login is in another pipeline... does it matter?)

(no, but order might be of importance: pipelines are executed one by
one)

 
> And then I tried to reverse the pattern, like this:

Congratulations, you found a bug :)
Remove :

> 
>   
>   
> 
> 
>   
> 
>   
> 
> 
> And I get an error, which is :
> Error compiling sitemap_xmap: Line 901, column 6: Undefined variable:
param

And it will compile.

 
> I had a look to the source code, it's obviously missing the variable
> declaration. Did I forget something here?
> 
> By the way, I found that the "context://..." specifier as a parameter
value
> for the action descriptor doesn't work

Don't remember action sources... It just might be they do not use
resolver to get descriptor.


> (did I correctly understand that this
> sub-protocol is related to the sitemap?),

Any (sub) protocol can be used throughout the system if using resolver.

PS: Grab CVS version of sitemap.xsl - it has the bug fixed.

Regards,
Vadim

> whereas "file://" does the
> trick (I want to specify a path relative to the sitemap its written
into).
> 
> Thanks,
> 
>   Pascal.


-
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 v2 article @ xml.com by Stefano

2002-02-13 Thread Peter Royal

http://www.xml.com/pub/a/2002/02/13/cocoon2.html
-pete

-- 
peter royal -> [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: StreamGenerator: Could not get parser

2002-02-13 Thread Steven Caswell

I did the search on your name and did not find what looked like the
posting.  I did get things working yesterday but I'd still be interested
in seeing your solution.  My problem was with how I was building the
form field content.

TIA

-Original Message-
From: Joseph Jupin [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 12, 2002 11:58 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: StreamGenerator: Could not get parser


Hi, Steve...

I did detail the solution out in another post to this 
newsgroup.  I don't have a reference to the exact post - 
but search for my last name and see if it returns from 
that.  If not, I'll search the archives tonite and forward 
it to you.  In it, I detail what I did with the sitemap 
and what I had to write in my servlet to get this to work.

cool.

peace.  JOe...
ps -> last name is :  jupin

On Mon, 11 Feb 2002 12:36:32 -0500
  "Steven Caswell" <[EMAIL PROTECTED]> wrote:
>Joe, could you share your solution.  I am having the same
>problem.
>  
>TIA
>
>-Original Message-
>From: Steven Caswell [mailto:[EMAIL PROTECTED]]
>Sent: Monday, February 11, 2002 12:07 PM
>To: [EMAIL PROTECTED]
>Subject: 
>
>
>
>Actually, that was a fat-finger on my part, Kinga...  I
>typed in the sitemap by hand - but it really is going to 
>request2...  Also, I changed the variable name in the 
>sitemap and form accordingly - removed the 
>capitalization...  it appears that when setting a request 
>attribute on the URLConnection class - it converts it all 
>to lower case on the way out - thus, I had to make the 
>change... 
>
>But, I solved my problem which I'll detail in another
>message... 
>
>many thanx for your help!
>
>peace.  JOe...
>
>On Thu, 31 Jan 2002 06:03:12 -0800 
>   "DZIEMBOWSKI,KINGA (HP-NewJersey,ex2)"
><[EMAIL PROTECTED]> wrote: 
>> 
>>Hi,
>>The expected form name is "Foo" it looks like you have 
>>"foo". 
>>I assume you are sending the xml document using the form 
>>similar to 
>>OrderPage. 
>>I like point to you that the request you are sending is 
>>REQUEST: 
>>/cocoon/request2 and the sitemap entry you are showing 
>>references request1. 
>>Kinga 
>



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


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

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




RE: problems with StreamGenerator...

2002-02-13 Thread Steven Caswell

Thanks for the info.  Will try out the updated class soon.

-Original Message-
From: giacomo [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 11, 2002 3:48 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: problems with StreamGenerator...


On Mon, 11 Feb 2002, Steven Caswell wrote:

> Greetings.  I am having the same problem Joe described below. 
> Basically, I'm trying to use the StreamGenerator with a stream of XML 
> (content-type of text/xml).  I've tried the sample code posted by 
> Kinga, but the web server just takes over the CPU and never responds.
>
> I'm trying this on Cocoon 2.0.1, Tomcat 4.0.1, on Windows XP.  Any 
> help diagnosing the problem is appreciated.

There has been a bug in a class which generates a loop under Tomcat 4.x.
It is fixed in the Cocoon CVS. The class in question can be found here:

http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/java/org/apache/cocoon
/util/PostInputStream.java

Giacomo

> >
> > Hi,
> > the expected contents of the postData is a xml document. You can add
> to your
> > client application sending POST request the ability to read the
> external xml
> > document. Find any well formed xml doc and experiment. Consider 
> > adding to your client: ...
> [snip]
> >> -Original Message-
> >> From: Joseph Jupin [mailto:[EMAIL PROTECTED]]
> >> Sent: Wednesday, January 30, 2002 4:36 PM
> >> To: [EMAIL PROTECTED]
> >> Subject: Re: problems with StreamGenerator...
> >>
> >>
> >> Hi, Kinga...
> >>
> >> Thanx for taking time to talk about this.  But so far, that 
> >> solution's not working either.  Just a quick question
> >> - does the contents of the postData need to be of the form 
> >> "?foo=data" and does the data segment need to be url encoded?
> >>
> >> I've put your suggestions in and so far, the server hangs
> >> - it never responds back - and doesn't even act like it's been 
> >> queried...  kinda strange...
> >>
> >> again, many thanx...
> >>
> >> peace.  JOe...
>
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> -
> Please check that your question has not already been answered in the 
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
>


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

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



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


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

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




RE: [Action] Best practices for authentication

2002-02-13 Thread Pascal Davoust

Mmh, I probably missed something here... I tried what you proposed, but I
get a compilation error. Here's what I did at first, which works correctly:


  


  
  

  

  


(login is in another pipeline... does it matter?)

And then I tried to reverse the pattern, like this:


  
  




  

  


And I get an error, which is :
Error compiling sitemap_xmap: Line 901, column 6: Undefined variable: param

I had a look to the source code, it's obviously missing the variable
declaration. Did I forget something here?

By the way, I found that the "context://..." specifier as a parameter value
for the action descriptor doesn't work (did I correctly understand that this
sub-protocol is related to the sitemap?), whereas "file://" does the
trick (I want to specify a path relative to the sitemap its written into).

Thanks,

Pascal.

-Original Message-
From: Pascal Davoust [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 10:13 PM
To: [EMAIL PROTECTED]
Subject: RE: [Action] Best practices for authentication


Ok, it was too simple and too obvious for me! That's the way I like problems
to be solved. :)

Thanks!

Pascal.

-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 8:37 PM
To: [EMAIL PROTECTED]
Subject: RE: [Action] Best practices for authentication


> From: Pascal Davoust [mailto:[EMAIL PROTECTED]]
>
> Hi all,
>
> I've been experimenting with Cocoon 2.0.1 (and before that with Cocoon
1,
> but didn't do much with it because of the lack of features more than
> available in C2 now, mainly actions).
> And now I'm wondering about the 'protected' sample in the distro.
>
> Basically, having a page protected by authentication involves an
action
> (DatabaseAuthenitcatorAction, in this case) to check that
authentication was
> successful before serving the resource (understand: page), or redirect
to
> login if authentication failed.
> The pattern for this is basically:
>
>   
> 
>   
> 
>   
>
> And if I correctly understand, it means that I've got to specify that
schema
> for *every* match I want to protect, right? Seems a bit of overhead to
me
> (may increase the maintenance cost for the sitemap)...
>
> Is there a "smarter" way of doing this? Quite frankly, that's the only
one I
> see (I came to that conclusion myself *before* seing the protected
> sample)... but you guys have zillion times more experience than me
with this
> topic! :)
>

Reverse this, action before match:

 
 
...
 

 
   

   
  ...
   

   
  ...
   

 
 
 

(this is supported since 2.0.1)


> By the way, C2 rocks! :)

Thanks!

Vadim



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

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


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


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

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


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


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

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




PDF Table Template?

2002-02-13 Thread Ryan Howe

Hello,

I am attempting to use the stylesheet included below
to transform an XML file to PDF using Cocoon 2.0.1. My
hope to build multiple tables in the PDF file. I have
created two templates in the stylesheet for opening
and closing a table. 

When running this through Cocoon, I get a
NullPointerException in Xalan
(TransformerImpl.run(TransformerImpl.java:3174)). If I
uncomment the  tags in the stylesheet
comment the call to the two templates, it runs fine
through Cocoon. 

Since I will create about 6 tables in this file, I
would like to have a template to open the table and
setup the columns instead of coding the same thing
several times. 

Would anyone have any ideas how to get around this? 



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


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



















Total Mechandise
Discounts & Adjustments







9099


NTB 
- SOUTH


























__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.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]>




Error handling design question

2002-02-13 Thread Alexander Smirnoff

After playing with cocoon for few month I found that it quite
strong and bold to be used in production environment. But
there are some weak points which I've noticed.

One of those is abnormal situation handling in XSP files. So
far I've tried few approaches.

The requirement is :

In the case of error present XML message containing the 
error number and the reason of error occurred.

First straight-forward approach was to use
request.sendRedirect(messagepage) method. But this in
some cases will result in IllegalStateException.

Second (which we are using in our application) is embedded
message approach. In the case of error message is 
embedded in XSP and later in the pipeline is filtered from
excessive tags. The only drawback of this approach is that
in some cases the execution of XSP must be terminated
with "return" statement or throwing an exception, which 
means all open SAX events must be consistently 
closed. Using  will cause 
additional CPU load.

Maybe there are better solutions?

I'll appreciate to get some new opinion about this issue.

Thanks,
Alex.



-
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, XForms, ExFormula, Chiba, Struts, etc

2002-02-13 Thread Ivanov, Ivelin


That sounds good.

We've used Castor for successfully binding heavy XML traffic. 
Have you coordinated efforts with the folks that started ExFormula. 
I see that Chris is still active on the Cocoon list.

The reason why I am opening this subject again is 
because I think it can add significant value to Cocoon.
I am prepared to put some time working on this.

Please let me know if we should keep this discussion in the dev mailing
list.

So, as briefly as I can, I'll share my experience and ideas:

For those who haven't used Struts:
It is a succesful Apache project (http://jakarta.apache.org/struts) which
automates the task of mapping html forms to value objects used in an
application domain.
It's expected to influence directly the following JSRs:
JavaServer Faces JSR: http://jcp.org/jsr/detail/127.jsp
JSP 1.4 JSR: http://jcp.org/jsr/detail/152.jsp

If it's so good, why are you posting on this list ?

Struts is great with HTML forms. However it doesn't deal nor it plans
to deal with any other sort of media.

It doesn't take into perspective web services for example.
We want to reuse the interface layer for SOAP clients as well.
For some time now our project had pending requirements for web services
support.
We want to let other companies integrate with our portal. 
A reason why we keep pushing this requirement off
is that it can't happen easy. All our external interface have been tied to
JSP+Struts. Since we want to allow customers to do through web services 
what they could do through the regular Web UI, we'll need to write a brand
new 
interface layer. We won't be able to reuse the automatic population and
validation
that we have for the HTML interface.

Being a Cocoon newbie, I might be totally wrong, but
it appears that the current Cocoon architecture is
also focused towards HTML form validation (through
rules for HTTP POST/GET params), but it also does not
try to deal with other media like SOAP.

Last October there has been an interesting discussion
on the Cocoon mailing list about integrating server
side XForms. 
I found it quite interesting, because based on my
experience I do believe there is a farely good chance
that XForms (or some limited version) can be
successfully integrated in Cocoon so that data
validation and java binding code (two way: web client
<-> XML <-> Java domain objects) can be easily reused
for clients ranging from HTML to SOAP. I also believe
that this can be achieved with a sufficiently high
performance (in many cases the WebClient <->
JavaObjects transformation can be achieved without
necessarily going through naive XML representation. 
Instead using SAX events and JAXB ).

Additionally data validation can be probably achieved elegantly
through parser (xerces2) validation against XML Schema.

Berin, Chris, Torsten and others seem to have made similar observation 
and have therefore started ExFormula last year. 
Chiba looks promising too. 


Can we try to unify and finish the job started, so that Cocoon moves to the
next level.


I'm all ears !



-= Ivelin =-

-Original Message-
From: Thorsten Mauch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 7:49 AM
To: '[EMAIL PROTECTED]'
Subject: AW: Cocoon, XForms, ExFormula,, Struts, etc


Hi
we are working on a integeration from 
cocoon chiba and castor-xml
http://sourceforge.net/projects/chiba/

we like to use castor to perform
the data exchange automaticly.
Beside this we wrote some basic
actions to handle Xforms request.

I hope that you will see a basic
version of that in the Chiba CVS



-Ursprüngliche Nachricht-
Von: Ivanov, Ivelin [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 13. Februar 2002 06:49
An: '[EMAIL PROTECTED]'
Betreff: Cocoon, XForms, ExFormula,, Struts, etc



Hi,

After using successfully JSPs+Struts for a relatively big enterprise
project, I've grown to appreciate the MVC model, but have also found some
places where it can be improved.

Before starting a long discussion, I'm first just looking for a short answer
to the following question:

Does Cocoon 2 have a mechanism for achieving automatic Form population and
validation, similar to Struts ?

I've noticed that in the project archive XForms and ExFormula have been
discussed on a number of ocasions, but they've been integrated in C2. Am I
wrong?

I will appreciate a prompt response.

Thank you.

-= Ivelin Ivanov =-




-
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: [Action] Best practices for authentication

2002-02-13 Thread Pascal Davoust

Ok, it was too simple and too obvious for me! That's the way I like problems
to be solved. :)

Thanks!

Pascal.

-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 8:37 PM
To: [EMAIL PROTECTED]
Subject: RE: [Action] Best practices for authentication


> From: Pascal Davoust [mailto:[EMAIL PROTECTED]]
>
> Hi all,
>
> I've been experimenting with Cocoon 2.0.1 (and before that with Cocoon
1,
> but didn't do much with it because of the lack of features more than
> available in C2 now, mainly actions).
> And now I'm wondering about the 'protected' sample in the distro.
>
> Basically, having a page protected by authentication involves an
action
> (DatabaseAuthenitcatorAction, in this case) to check that
authentication was
> successful before serving the resource (understand: page), or redirect
to
> login if authentication failed.
> The pattern for this is basically:
>
>   
> 
>   
> 
>   
>
> And if I correctly understand, it means that I've got to specify that
schema
> for *every* match I want to protect, right? Seems a bit of overhead to
me
> (may increase the maintenance cost for the sitemap)...
>
> Is there a "smarter" way of doing this? Quite frankly, that's the only
one I
> see (I came to that conclusion myself *before* seing the protected
> sample)... but you guys have zillion times more experience than me
with this
> topic! :)
>

Reverse this, action before match:

 
 
...
 

 
   

   
  ...
   

   
  ...
   

 
 
 

(this is supported since 2.0.1)


> By the way, C2 rocks! :)

Thanks!

Vadim



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

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


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


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

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




Re: Cocoon1 -> Cocoon2

2002-02-13 Thread Joseph Jupin

In our design, we were trying to keep a clear delineation 
(sp?) from our transforming engine (cocoon) and our 
requestor - in the case of the code I provided, this was 
to show how a servlet from another web server could call 
cocoon and get the transformed results - we also have a 
swing client that calls the cocoon server to help 
dynamically generate our user interfaces (cocoon generates 
our version of XUL)...  you get idea...

We never meant for everything to be contained within one 
sole process/webserver...  just my $0.02 (US)

peace.  JOe...

On Wed, 13 Feb 2002 15:20:29 +0100
  <[EMAIL PROTECTED]> wrote:
>> But you have to look at the memory aspect too...
>> A new instance of the generator is created at each 
>>request and so the 
>> amount of memory allocated keeps increasing.
>
>:( Too bad. 
>
>> With cocoon2 you can also use a servlet as a generator. 
>>It's 
>> certainly not 
>> the best solution neither but since you have already a 
>>servlet...
>
>How can I do that ? Should I implement the Generator 
>interface too
>in my servlet, or do the HTTP request thing what Jupin 
>suggested ? 
>Or is there any other way to do that ? I saw plenty of 
>exapmles 
>which use JSP, HTML, XSP and other thing as a generator, 
>but nowhere
>a simple Java (servlet) code. 
>
>-
>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: Installing Cocoon 2.0.1 on Tomcat-Standalone 4.0.2 with JDK1.3.1_02 and Windows 2K Pro

2002-02-13 Thread Vadim Gritsenko

> From: Barnaby Shearer [mailto:[EMAIL PROTECTED]]
> 
> I have just downloaded a binary distribution of Cocoon 2.0.1 and
cannot get
> it to run.
> 
> I have am running Windows 2000 professional with Sun's JDK 1.3.1_02
and
> Jakarta-tomcat-4.0.2 in standalone mode. These all appear to be
working
> correctly.

Stick with Tomcat 4.0.1 which is known to work with cocoon, watch on
this list for info when issue with tomcat 4.0.2 is resolved.

Vadim

> 
> I have copied the cocoon.war file into tomcat's directory and
restarted
> tomcat. This successfully unpacked the .war file and created the
cocoon
> directory.
> 
> When I try and access cocoon (via http://localhost:8080/cocoon/) I get
the
> following message:
>


> Apache Tomcat/4.0.2 - HTTP Status 500 - Internal Server Error
> 



> root cause
> 
> java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
>  at java.lang.ClassLoader.defineClass0(Native Method)
>  at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
>  at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
>  at




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

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




Re: Installing Cocoon 2.0.1 on Tomcat-Standalone 4.0.2 with JDK1.3.1_02 and Windows 2K Pro

2002-02-13 Thread Joseph Rajkumar

Hi
This problem has been posted by me and many
others on this mailing list. Depends on what you wish to
do.
If you want to get TC+Cocoon to work, go to
version TC-4.0.1 and Cocoon-2.0.1 with everything else
as you have it. Then you will be fine.

Regards
Joseph Rajkumar

Barnaby Shearer wrote:
> 
> I have just downloaded a binary distribution of Cocoon 2.0.1 and cannot get
> it to run.
> 
> I have am running Windows 2000 professional with Sun's JDK 1.3.1_02 and
> Jakarta-tomcat-4.0.2 in standalone mode. These all appear to be working
> correctly.
> 
> I have copied the cocoon.war file into tomcat's directory and restarted
> tomcat. This successfully unpacked the .war file and created the cocoon
> directory.
> 
> When I try and access cocoon (via http://localhost:8080/cocoon/) I get the
> following message:
> 
> Apache Tomcat/4.0.2 - HTTP Status 500 - Internal Server Error
> 
> type Exception report
> 
> message Internal Server Error
> 
> description The server encountered an internal error (Internal Server Error)
> that prevented it from fulfilling this request.
> 
> exception
> 
> javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
> exception

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

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




Installing Cocoon 2.0.1 on Tomcat-Standalone 4.0.2 with JDK1.3.1_02 and Windows 2K Pro

2002-02-13 Thread Barnaby Shearer

I have just downloaded a binary distribution of Cocoon 2.0.1 and cannot get
it to run.

I have am running Windows 2000 professional with Sun's JDK 1.3.1_02 and
Jakarta-tomcat-4.0.2 in standalone mode. These all appear to be working
correctly.

I have copied the cocoon.war file into tomcat's directory and restarted
tomcat. This successfully unpacked the .war file and created the cocoon
directory.

When I try and access cocoon (via http://localhost:8080/cocoon/) I get the
following message:

Apache Tomcat/4.0.2 - HTTP Status 500 - Internal Server Error

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
exception
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
5)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
 at java.lang.Thread.run(Thread.java:484)

root cause

java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
 at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1631)
 at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:926)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1360)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
 at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.configure(Ex
caliburComponentManager.java:408)
 at org.apache.cocoon.Cocoon.configure(Cocoon.java:406)
 at org.apache.cocoon.Cocoon.initialize(Cocoon.java:267)
 at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:991)
 at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
6)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerB

RE: [Action] Best practices for authentication

2002-02-13 Thread Vadim Gritsenko

> From: Pascal Davoust [mailto:[EMAIL PROTECTED]]
> 
> Hi all,
> 
> I've been experimenting with Cocoon 2.0.1 (and before that with Cocoon
1,
> but didn't do much with it because of the lack of features more than
> available in C2 now, mainly actions).
> And now I'm wondering about the 'protected' sample in the distro.
> 
> Basically, having a page protected by authentication involves an
action
> (DatabaseAuthenitcatorAction, in this case) to check that
authentication was
> successful before serving the resource (understand: page), or redirect
to
> login if authentication failed.
> The pattern for this is basically:
> 
>   
> 
>   
> 
>   
> 
> And if I correctly understand, it means that I've got to specify that
schema
> for *every* match I want to protect, right? Seems a bit of overhead to
me
> (may increase the maintenance cost for the sitemap)...
>
> Is there a "smarter" way of doing this? Quite frankly, that's the only
one I
> see (I came to that conclusion myself *before* seing the protected
> sample)... but you guys have zillion times more experience than me
with this
> topic! :)
>

Reverse this, action before match:

 
 
...
 

 
   

   
  ...
   

   
  ...
   

 
 
 

(this is supported since 2.0.1)

 
> By the way, C2 rocks! :)

Thanks!

Vadim



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

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




Re: New release 2.0.1 woes. Continue.

2002-02-13 Thread Alexander Smirnoff


- Original Message - 
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 13, 2002 2:18 PM
Subject: RE: New release 2.0.1 woes. Continue.


> > From: Alexander Smirnoff [mailto:[EMAIL PROTECTED]]
> > 
> > OK. I've got it. Thanks.
> 
> Welcome.
> 
> 
> > I understand the motivation to exlude autocomplete is
> > to speed up the pipeline process. So XSP developer
> > must be responsible of consistent closing of his elements
> > if he or she wants to return somewhere from the middle of
> > XSP logic.
> 
> Exactly.

Sounds like good motivation for new  tag.

> 
> > General note: it seems 2.0.1 compared with 2rc1 is
> > significally slower for more or less complicated XSP.
> 
> Can you pinpoint the reason of slowdown? I'm not sure that there are
> significant changes in the XSP machinery between these two versions.

It is just first impression. I dont want to speculate on this until I 
will play enough with cocoon.

> Vadim
> 
> > 
> > Alex.
> > 
> > 
> > - Original Message -
> > From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, February 13, 2002 1:04 PM
> > Subject: RE: New release 2.0.1 woes. Continue.
> > 
> > 
> > > > From: Alexander Smirnoff [mailto:[EMAIL PROTECTED]]
> > > >
> > > > Sorry for misleading about the "global" method, - it works fine.
> > > >
> > > > The problem actually is different:
> > > >
> > > > If I put "return" between open and close tags it results in empty
> > > document.
> > > > Look at example:
> > > >
> > > > http://apache.org/xsp";>
> > > > 
> > > > 
> > > > if(true)
> > > > return;
> > > > 
> > > > 
> > > > 
> > > >
> > > > Quite important feature I would say.
> > >
> > > Return is prohibited in the main method of the XSP. Use it in own
> > > methods if you want, but with care. And even if you use it in the
> main
> > > XSP method (despite the fact that it is not recommended), XSP engine
> can
> > > cover your mistakes if you set autocomplete-documents to true. Of
> course
> > > this feature isn't for free, performance of you system will degrade.
> > >
> > > PS See ServerPagesGenerator javadoc or source for details.
> > >
> > > Vadim
> > >
> > > >
> > > > Alex.
> > > >
> 
> 
> -
> 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]>




[Action] Best practices for authentication

2002-02-13 Thread Pascal Davoust

Hi all,

I've been experimenting with Cocoon 2.0.1 (and before that with Cocoon 1,
but didn't do much with it because of the lack of features more than
available in C2 now, mainly actions).
And now I'm wondering about the 'protected' sample in the distro.

Basically, having a page protected by authentication involves an action
(DatabaseAuthenitcatorAction, in this case) to check that authentication was
successful before serving the resource (understand: page), or redirect to
login if authentication failed.
The pattern for this is basically:

  

  

  

And if I correctly understand, it means that I've got to specify that schema
for *every* match I want to protect, right? Seems a bit of overhead to me
(may increase the maintenance cost for the sitemap)...

Is there a "smarter" way of doing this? Quite frankly, that's the only one I
see (I came to that conclusion myself *before* seing the protected
sample)... but you guys have zillion times more experience than me with this
topic! :)

By the way, C2 rocks! :)

Thanks,

Pascal.


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


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

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




RE: New release 2.0.1 woes. Continue.

2002-02-13 Thread Vadim Gritsenko

> From: Alexander Smirnoff [mailto:[EMAIL PROTECTED]]
> 
> OK. I've got it. Thanks.

Welcome.


> I understand the motivation to exlude autocomplete is
> to speed up the pipeline process. So XSP developer
> must be responsible of consistent closing of his elements
> if he or she wants to return somewhere from the middle of
> XSP logic.

Exactly.


> General note: it seems 2.0.1 compared with 2rc1 is
> significally slower for more or less complicated XSP.

Can you pinpoint the reason of slowdown? I'm not sure that there are
significant changes in the XSP machinery between these two versions.

Vadim

> 
> Alex.
> 
> 
> - Original Message -
> From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 13, 2002 1:04 PM
> Subject: RE: New release 2.0.1 woes. Continue.
> 
> 
> > > From: Alexander Smirnoff [mailto:[EMAIL PROTECTED]]
> > >
> > > Sorry for misleading about the "global" method, - it works fine.
> > >
> > > The problem actually is different:
> > >
> > > If I put "return" between open and close tags it results in empty
> > document.
> > > Look at example:
> > >
> > > http://apache.org/xsp";>
> > > 
> > > 
> > > if(true)
> > > return;
> > > 
> > > 
> > > 
> > >
> > > Quite important feature I would say.
> >
> > Return is prohibited in the main method of the XSP. Use it in own
> > methods if you want, but with care. And even if you use it in the
main
> > XSP method (despite the fact that it is not recommended), XSP engine
can
> > cover your mistakes if you set autocomplete-documents to true. Of
course
> > this feature isn't for free, performance of you system will degrade.
> >
> > PS See ServerPagesGenerator javadoc or source for details.
> >
> > Vadim
> >
> > >
> > > Alex.
> > >


-
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: New release 2.0.1 woes. Continue.

2002-02-13 Thread Alexander Smirnoff

OK. I've got it. Thanks.

I understand the motivation to exlude autocomplete is 
to speed up the pipeline process. So XSP developer
must be responsible of consistent closing of his elements
if he or she wants to return somewhere from the middle of
XSP logic.

General note: it seems 2.0.1 compared with 2rc1 is 
significally slower for more or less complicated XSP.

Alex.


- Original Message - 
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 13, 2002 1:04 PM
Subject: RE: New release 2.0.1 woes. Continue.


> > From: Alexander Smirnoff [mailto:[EMAIL PROTECTED]]
> > 
> > Sorry for misleading about the "global" method, - it works fine.
> > 
> > The problem actually is different:
> > 
> > If I put "return" between open and close tags it results in empty
> document.
> > Look at example:
> > 
> > http://apache.org/xsp";>
> > 
> > 
> > if(true)
> > return;
> > 
> > 
> > 
> > 
> > Quite important feature I would say.
> 
> Return is prohibited in the main method of the XSP. Use it in own
> methods if you want, but with care. And even if you use it in the main
> XSP method (despite the fact that it is not recommended), XSP engine can
> cover your mistakes if you set autocomplete-documents to true. Of course
> this feature isn't for free, performance of you system will degrade.
> 
> PS See ServerPagesGenerator javadoc or source for details.
> 
> Vadim
> 
> > 
> > Alex.
> > 
> 
> 
> -
> 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: problem with blank java files for xsp/serverpages

2002-02-13 Thread David Stenglein

Thanks a million!!  Should have asked earlier, but I wanted to research
it enough first.  

The thing that confused me terribly is that the test.xsp in the webroot
wasn't actually the same!! Somewhere, I made one with the correct
namespace reference, but never thought they were different. Oh, well.

I really appreciate the speedy response, because I'm pushing cocoon for
new development and it always helps to say that help can be as little as
15 minutes away.

-Dave



On Wed, 2002-02-13 at 13:17, Vadim Gritsenko wrote:
> This issue is fixed in the Cocoon CVS. Error message returned now looks
> like:
> 
> "This page is not valid page of this markup langugage. Root element is:
> http://www.apache.org/1999/XSP/Core:page, must be:
> http://apache.org/xsp:page";
> 
> Which means that your page's root element is
>   http://www.apache.org/1999/XSP/Core"/>
> 
> instead of
>   http://apache.org/xsp"/>
> 
> 
> Regards,
> Vadim
> 
> > -Original Message-
> > From: David Stenglein [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 13, 2002 1:04 PM
> > To: [EMAIL PROTECTED]
> > Subject: problem with blank java files for xsp/serverpages
> > 
> > Greetings,
> > 
> > I've been having a strange problem with xsps that give a
> NoClassDefFound
> > because the jave file is nearly empty (4 newlines). I've been testing
> > lots of different combinations of tomcat (3.2.3, 4.0) java (1.3.0,
> > 1.3.1) and cocoon (2.0, 2.0.1) and it doesn't work anywhere. It
> > specifically seems to be hapening when I mount a subsitemap.
> > 
> > I have attached a zip file with a sub directory containing the sitemap
> > and the xsp. I added the following to a stock 2.0.1 sitemap:
> > 
> > 
> > 
> > 
> >  > src="break/" check-reload="yes" />
> > 
> > 
> > 
> > 
> > When I request break/test it does the NoClassDefFound and leaves the
> > .java with 4 newlines in the work directory.  If you copy the sitemap
> > entries and the xsp to the top level, it seems to work fine.
> > 
> > What is this??
> > 
> > -Dave
> > 
> 
> 
> 
> -
> 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 2, XSP and Turbine

2002-02-13 Thread Vadim Gritsenko

> From: Annick Fron [mailto:[EMAIL PROTECTED]]
> 
> I,
> 
> I am using :
> - Windows NT 4
> - Tomcat 4.0.1
> - Cocoon 2.2

If it is Apache Cocoon, then there is no such version. If it something
else, let us know were did you get this ;)


> and I get problems to instantiate the engine (file use.xsl not found).

There is no such file in Apache Cocoon 2.0+

Vadim

> Yet, I wonder if I need to set the database settings, if Turbine is
> mandatory, if I can remove some xsp settings ...
> 
> --
> Annick Fron
> AFC Europe
> B.P. 111, 977 avenue du Docteur Julien Lefebvre
> 06271 Villeneuve-Loubet France
> Tél : +33 4 93 22 88 18
> Fax : +33 4 93 22 88 36
> http://www.afceurope.com


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

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




RE: servlet, generator or ... (design question)

2002-02-13 Thread Ivan Rubin Ayma

> We are evaluating C2 for a very large, public, 
> data-dissemination project
> (NHGIS.ORG).  I would like to build a few small XML 
> visualization tools in
> C2 for demonstration purposes.  For example, a facility to 
> upload an XML
> instance, associate it with a stylesheet living on the server 
> and return
> transformed XHTML.  The upload need not be saved anywhere on 
> the server;
> I'd like to hand the uploading stream directly to Cocoon.  I 
> can clearly
> see a couple ways to accomplish this but suspect there are more:

You could take a look at this:

http://xml.apache.org/cocoon/userdocs/generators/stream-generator.html

What about employing me?

Hope it helps,

> 
> a) Specify a servlet external to Cocoon which handles 
> multi-part form data
> as the src attr on my generator in the pipeline.  How does this kick
> off the pipeline's processing?  I suspect I need to bind the 
> upload stream
> to the pipeline within my servlet and make a call to Cocoon 
> but I'm not
> clear how.  Or is Cocoon waiting like a daemon for bytes to 
> show up at the
> mouth of the pipe?
> 
> b) Extend one of Cocoon's generator classes 
> (StreamGenerator?) to handle
> the multi-part form data and call it from my form.
> 
> c) Is there a way to modify the File Upload example to hand 
> the upcoming
> stream to a transformation?  It seems that example merely specifies a
> directory for uploads and does nothing with the stream itself.
> 
> d) ?
> 
> What is the cleanest manner of doing this?  I suspect there 
> is a Cocoon
> pattern lurking in this problem and would like to implement 
> the solution
> that best reflects such a pattern.
> 
> 
> Mike HaarmanMinnesota Population Center,
> [EMAIL PROTECTED]  University of Minnesota,
> 537 Heller Hall,
> Minneapolis, MN 55455
> Co-Architect, Programmer,
>   National Historical GIS -- http://www.nhgis.org/
> Maintainer,
>   DDI Codebook DTD -- http://www.icpsr.umich.edu/DDI/
> 
> 
> -
> 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]>




Cocoon 2, XSP and Turbine

2002-02-13 Thread Annick Fron

I,

I am using :
- Windows NT 4
- Tomcat 4.0.1
- Cocoon 2.2
and I get problems to instantiate the engine (file use.xsl not found).
Yet, I wonder if I need to set the database settings, if Turbine is
mandatory, if I can remove some xsp settings ...

-- 
Annick Fron
AFC Europe
B.P. 111, 977 avenue du Docteur Julien Lefebvre
06271 Villeneuve-Loubet France
Tél : +33 4 93 22 88 18
Fax : +33 4 93 22 88 36
http://www.afceurope.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]>




servlet, generator or ... (design question)

2002-02-13 Thread Mike Haarman


We are evaluating C2 for a very large, public, data-dissemination project
(NHGIS.ORG).  I would like to build a few small XML visualization tools in
C2 for demonstration purposes.  For example, a facility to upload an XML
instance, associate it with a stylesheet living on the server and return
transformed XHTML.  The upload need not be saved anywhere on the server;
I'd like to hand the uploading stream directly to Cocoon.  I can clearly
see a couple ways to accomplish this but suspect there are more:

a) Specify a servlet external to Cocoon which handles multi-part form data
as the src attr on my generator in the pipeline.  How does this kick
off the pipeline's processing?  I suspect I need to bind the upload stream
to the pipeline within my servlet and make a call to Cocoon but I'm not
clear how.  Or is Cocoon waiting like a daemon for bytes to show up at the
mouth of the pipe?

b) Extend one of Cocoon's generator classes (StreamGenerator?) to handle
the multi-part form data and call it from my form.

c) Is there a way to modify the File Upload example to hand the upcoming
stream to a transformation?  It seems that example merely specifies a
directory for uploads and does nothing with the stream itself.

d) ?

What is the cleanest manner of doing this?  I suspect there is a Cocoon
pattern lurking in this problem and would like to implement the solution
that best reflects such a pattern.


Mike HaarmanMinnesota Population Center,
[EMAIL PROTECTED]  University of Minnesota,
537 Heller Hall,
Minneapolis, MN 55455
Co-Architect, Programmer,
  National Historical GIS -- http://www.nhgis.org/
Maintainer,
  DDI Codebook DTD -- http://www.icpsr.umich.edu/DDI/


-
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: calling a HTML-file from an XSL-file

2002-02-13 Thread Luca Morandini



Richards,
 
what 
might be happening is that .htm files are not passed to Cocoon... 

 
Maybe 
you setup Tomcat (or wathever servlet container you're using) to process only 
.xml files and ignore the .htm ones (which are, hence, processed by the 
web-server).
 
Best 
regards,
-   
Luca 
Morandini   
GIS 
Consultant  
[EMAIL PROTECTED]http://utenti.tripod.it/lmorandini/index.html-  


  -Original Message-From: Richard Korthuis 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, February 13, 2002 
  12:44 PMTo: [EMAIL PROTECTED]Subject: calling 
  a HTML-file from an XSL-file
  Hello,
   
  I have created an XML-file together with an 
  XSL-file. In the XSL-file I create a frameset with frames. In the frames I 
  want to display plain HTML-files, but when I use: 
  
  I get a HTTP 500 error: The page cannot be 
  displayed. When I change contents.htm into an XML-file (i.e. 
  "../cocoon/welcome") it works perfectly. What am I doing wrong?
   
  Regards
   
  Richard 
Korthuis


ANNOUNCE: jfor/Cocoon HOWTO - generating RTF with Cocoon

2002-02-13 Thread Bertrand Delacretaz

To all RTF fans: hot off the virtual presses, a new technote 

"jfor/Cocoon 2 HOWTO: dynamic generation of RTF documents from XML with 
Cocoon 2 and jfor"

Is now available at http://www.jfor.org/jfor-cocoon-howto.html

It explains how to activate the RTFSerializer that is part of the 
Cocoon 2 source tree, but not activated in the standard Cocoon 
distribution.

As always, feedback is most welcome (even if it works ;-)
-- 
 -- Bertrand Delacrétaz, www.codeconsult.ch
 -- jfor.org lead developer

-
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: problem with blank java files for xsp/serverpages

2002-02-13 Thread Vadim Gritsenko

This issue is fixed in the Cocoon CVS. Error message returned now looks
like:

"This page is not valid page of this markup langugage. Root element is:
http://www.apache.org/1999/XSP/Core:page, must be:
http://apache.org/xsp:page";

Which means that your page's root element is
  http://www.apache.org/1999/XSP/Core"/>

instead of
  http://apache.org/xsp"/>


Regards,
Vadim

> -Original Message-
> From: David Stenglein [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 13, 2002 1:04 PM
> To: [EMAIL PROTECTED]
> Subject: problem with blank java files for xsp/serverpages
> 
> Greetings,
> 
> I've been having a strange problem with xsps that give a
NoClassDefFound
> because the jave file is nearly empty (4 newlines). I've been testing
> lots of different combinations of tomcat (3.2.3, 4.0) java (1.3.0,
> 1.3.1) and cocoon (2.0, 2.0.1) and it doesn't work anywhere. It
> specifically seems to be hapening when I mount a subsitemap.
> 
> I have attached a zip file with a sub directory containing the sitemap
> and the xsp. I added the following to a stock 2.0.1 sitemap:
> 
> 
> 
> 
>  src="break/" check-reload="yes" />
> 
> 
> 
> 
> When I request break/test it does the NoClassDefFound and leaves the
> .java with 4 newlines in the work directory.  If you copy the sitemap
> entries and the xsp to the top level, it seems to work fine.
> 
> What is this??
> 
> -Dave
> 



-
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: New release 2.0.1 woes. Continue.

2002-02-13 Thread Vadim Gritsenko

> From: Alexander Smirnoff [mailto:[EMAIL PROTECTED]]
> 
> Sorry for misleading about the "global" method, - it works fine.
> 
> The problem actually is different:
> 
> If I put "return" between open and close tags it results in empty
document.
> Look at example:
> 
> http://apache.org/xsp";>
> 
> 
> if(true)
> return;
> 
> 
> 
> 
> Quite important feature I would say.

Return is prohibited in the main method of the XSP. Use it in own
methods if you want, but with care. And even if you use it in the main
XSP method (despite the fact that it is not recommended), XSP engine can
cover your mistakes if you set autocomplete-documents to true. Of course
this feature isn't for free, performance of you system will degrade.

PS See ServerPagesGenerator javadoc or source for details.

Vadim

> 
> Alex.
> 


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

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




problem with blank java files for xsp/serverpages

2002-02-13 Thread David Stenglein

Greetings,

I've been having a strange problem with xsps that give a NoClassDefFound
because the jave file is nearly empty (4 newlines). I've been testing
lots of different combinations of tomcat (3.2.3, 4.0) java (1.3.0,
1.3.1) and cocoon (2.0, 2.0.1) and it doesn't work anywhere. It
specifically seems to be hapening when I mount a subsitemap.

I have attached a zip file with a sub directory containing the sitemap
and the xsp. I added the following to a stock 2.0.1 sitemap:









When I request break/test it does the NoClassDefFound and leaves the
.java with 4 newlines in the work directory.  If you copy the sitemap
entries and the xsp to the top level, it seems to work fine.

What is this??

-Dave





break.zip
Description: Zip archive

-
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: More on Cocoon 2 generated SAX Exception

2002-02-13 Thread SANSONE, AARON M [Non-Pharmacia/1000]

More info:

RE: SAX to DOM Pipeline with an AbstractDOMTransformer

In an attempt to determine what was causing this exception, I dug into the
code and started to low-tech debug (aka System.out.println).  I found
something interesting.  The content handler is NULL when trying to process
the SAX Events through the AbstractDOMTransformer.  I added a series of
printlns in the AbstractXMLPipe on start and end document and the start and
end element methods.  In each case the contentHandler is NULL.  

Hopefully this will help in debugging.

-Aaron


-Original Message-
From: SANSONE, AARON M [Non-Pharmacia/1000] 
Sent: Tuesday, February 12, 2002 10:30 AM
To: '[EMAIL PROTECTED]'
Subject: RE: More on Cocoon 2 generated SAX Exception


Per Vadim's suggession, I've upgraded to Cocoon 2.0.1.  However I am still
having a problem with this pipeline.  Here is the error now:

DEBUG   (2002-02-12) 10:21.36:390   [core] (/showTree) web-5/SQLTransformer:
RECEIVED CHARACTERS: 

FATAL_E (2002-02-12) 10:21.36:450   [core.xslt-processor] (/showTree)
web-5/TraxErrorHandler: Error in TraxTransformer:
javax.xml.transform.TransformerException: java.lang.NullPointerException
javax.xml.transform.TransformerException: java.lang.NullPointerException
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1230)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3139)
at java.lang.Thread.run(Thread.java:484)
-
java.lang.NullPointerException
at
org.apache.cocoon.xml.dom.DOMBuilder.getDocument(DOMBuilder.java:119)
at
org.apache.cocoon.xml.dom.DOMBuilder.notifyListener(DOMBuilder.java:144)
at
org.apache.cocoon.xml.dom.DOMBuilder.endDocument(DOMBuilder.java:136)
at
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler
.java:190)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1186)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3139)
at java.lang.Thread.run(Thread.java:484)
DEBUG   (2002-02-12) 10:21.36:460   [core] (/showTree) web-5/LogKitLogger:
Returning a org.apache.cocoon.components.sax.XMLByteStreamInterpreter to the
pool


Please reference the original email for the sitemap and transformer code.

Thanks,
Aaron

-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 5:41 PM
To: [EMAIL PROTECTED]
Subject: RE: More on Cocoon 2 generated SAX Exception


> From: SANSONE, AARON M [Non-Pharmacia/1000]
> 
> Cocoon 2.0 - Running on P3-500 NT 4.0 SP6 with JRun 3.1
> 
> Here is some extra exception information from root.log I didn't
include
> before:
> 
> org.xml.sax.SAXException: Invalid state
>   at
> org.apache.cocoon.xml.dom.DOMBuilder.characters(DOMBuilder.java:462)
>   at


This class was refactored in Cocoon 2.0.1. Can you upgrade to 2.0.1? It
might not have the issue you are describing.

Vadim


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

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

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

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

-
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: UnnamedSelector: ComponentSelector could not find the component on custom Action

2002-02-13 Thread Lewis, Andrew J

ok...I was right - it was something stupid.

I was inheriting from ConfigurableComposerAction but then masking the
ComponenetManager variable in my class, and not providing an implementation
of compose() to correspond. Looking up componenets off of a null
ComponenetManager doesn't appear to work very well.

That said, Things like NullPointer exceptions thrown during configure() ever
make it to the stack trace in the result, which made finding this a bit
harder, and even made it look a bit like my Action was not even being found.

> --
> From: Lewis, Andrew  J
> Sent: Wednesday, February 13, 2002 11:31 AM
> To:   '[EMAIL PROTECTED]'
> Subject:  RE: UnnamedSelector: ComponentSelector could not find the
> component on custom Action
> 
> I sent this to the wrong list earlier...sorry...
> 
>   --
>   From:   Lewis, Andrew  J
>   Sent:   Wednesday, February 13, 2002 10:22 AM
>   To: '[EMAIL PROTECTED]'
>   Subject:UnnamedSelector: ComponentSelector could not find
> the component on custom Action
> 
> 
>   I'm using Cocon 2.0.1 release, and developing a custom action. I
> have functionality of the Action embedded in a Generator, and working, but
> I need to extract it. I am currently passing it two parameters in the
> sitemap, just as I was with the Generator, but with the Action I am
> getting the following exception when attempting to retrieve the parameters
> within configure().
> 
>   Probably a stupid mistake on my part, but not having any luck with
> it
> 
>   org.apache.avalon.framework.component.ComponentException:
> UnnamedSelector: ComponentSelector could not find the component for hint:
> manipulator 
> 
>   Any help would be appreciated...Thanks!
> 
> 
> 
> 

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

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




RE: calling a HTML-file from an XSL-file

2002-02-13 Thread Chitharanjan Das

Hello 
Please make the corresponding entry in your site-map for your
pipeline and then try it should work. Please make appropriate change for
the path...





Regds,
Chiths


-Original Message-
From: Richard Korthuis [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 13, 2002 5:48 AM
To: [EMAIL PROTECTED]
Subject: Re: calling a HTML-file from an XSL-file

Well that seems pretty obvious to me, but there seems to be an other
problem, but what

- Original Message -
From: "Ruth, Thomas {PDBI~Basel}" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 13, 2002 1:31 PM
Subject: RE: calling a HTML-file from an XSL-file


> You have to use the correct path for contents.htm ...
>
>
> -Original Message-
> From: Richard Korthuis [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 13, 2002 12:44 PM
> To: [EMAIL PROTECTED]
> Subject: calling a HTML-file from an XSL-file
>
>
> Hello,
>
> I have created an XML-file together with an XSL-file. In the XSL-file
I
create a frameset with frames. In the frames I want to display plain
HTML-files, but when I use:
> 
> I get a HTTP 500 error: The page cannot be displayed. When I change
contents.htm into an XML-file (i.e. "../cocoon/welcome") it works
perfectly.
What am I doing wrong?
>
> Regards
>
> Richard Korthuis
>
>
> -
> 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]>




Solved: Re: Benchmarking aggregations

2002-02-13 Thread Jozsa Kristof

On Mon, Feb 11, 2002 at 04:44:13PM -0500, Vadim Gritsenko wrote:
> > From: Jozsa Kristof [mailto:[EMAIL PROTECTED]]
> > 
> > On Mon, Feb 11, 2002 at 02:35:19PM -0500, Vadim Gritsenko wrote:
> > > Suggestion:
> > > Save results of these three blocks (0.055s, 0.160s and 0.045s) into
> a
> > > files and change second aggregation to aggregate these files, then
> > > benchmark again. Thus, you will get time of the second aggregation
> > > without other pipelines.
> > >
> > > I wonder what results you will get with this :)
> > >
> > > Vadim
> > >
> > 
> > Let me see if I get you right: I've saved the results of the first
> > aggregation (3 files), into static xml files, and wrote a sitemap
> rule,
> > which just aggregates these three files. The avarage
> > read+aggregation+serialization time of this is 11 milliseconds.
> ('Dodge
> > this' =)
> > 
> > I've migrated to Apache JMeter meanwhile, and verified my rough wget
> > results. They're so-so correct (a few ms higher sometimes, a few ms
> lower
> > otherwise, but generally they were ok).
> > 
> > So what do you think?
> 
> Can you post your sitemap snippet - with both aggregations? May be after
> watching at it some ideas appear. Right now I don't have any, except may
> be usual "tune your pools" advice.
> 
> PS I have several level aggregations, and it works well for me. 
> 
> Vadim

Shortly: it wasn't about aggregation, nor my new sitemap structure. It all
happened, cos I switched from C2.0 to Cocoon 2.0.1 meanwhile, and it has
really expansive logging, switched on by default.. I've turned it off, and
average page processing time dropped from 1200ms (even 2200 on some pages!)
to 200-300.

Sorry, my fault - seems I've missed the release note about that :)

Christopher
-- 
.Digital.Yearning.for.Networked.Assassination.and.Xenocide

-
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: New release 2.0.1 woes. Continue.

2002-02-13 Thread Alexander Smirnoff

Sorry for misleading about the "global" method, - it works fine.

The problem actually is different:

If I put "return" between open and close tags it results in empty document. 
Look at example:

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


if(true)
return;




Quite important feature I would say.

Alex.

- Original Message - 
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 6:55 PM
Subject: RE: New release 2.0.1 woes. Continue.


> Send in simple test file, couple of lines.
> 
> Vadim
> 
> > -Original Message-
> > From: Alexander Smirnoff [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 12, 2002 6:26 PM
> > To: [EMAIL PROTECTED]
> > Subject: New release 2.0.1 woes. Continue.
> > 
> > Hi,
> > 
> > I'm stuck big time with integration of new 2.0.1 release with my old
> 2rc1
> > server implementation. I had some problems with sitemap, but with the
> > help of Vadim I've got it more or less working. Thanks. Now problem
> > arised with xsp files...
> > 
> > It appears that if you put "global" method in your XSP file (before
> the
> > first element), which does some  output - it results in
> > empty document. No errors in logfiles or system output - nothing what
> > could get me a glue about the reason.
> > 
> > I was comparing old translated java sources with new - it seems no
> > differens. It looks like it happens on basic cocoon implementation
> level.
> > 
> > Any help?
> > 
> > Thanks,
> > Alex.
> 
> 
> -
> 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]>




Cocoon + Lucene + Xindice

2002-02-13 Thread Yaser Al Masri

Hi,

I've been looking to the implementation of Lucene inside Cocoon, and it's 
great what this combo is able to deliver.  Things will continue to work 
perfectly until database shows.  The 'like' and 'contains' functions in SQL 
and XPATH queries respectively cannot make much use of the indexing supplied 
by the corresponding database because they're a sub-string search, while 
search engines will help here because of the implementation of full-text 
string searches, so I guess the justification for using search engines 
rather than query statements for this case is valid.

The problem here ASAIK is that to use lucene you have to supply it with 
Directory object that points to the location of your data files, which 
doesn't exist here in case of database. I thought I could mimic the 
implementation of Lucene inside cocoon but for the Xindice database instead 
of the spreading files, so I started studying the crawler behavior and if it 
could be attained with the help of the pseudo protocol implementation for 
Xindice, but I stuck there with the fact that I'm only mapping URLs to 
underlying database not to actual directories and files seen to the indexer.

On more problem appeared to be there is the information retrieved from the 
searcher.  For many cases that native XML databases help in, it would be of 
no use to the use to get a URL for his search rather that a brief 
description to the document he searched (like in searching for items in 
catalog where the description and the image matters more than the URL that 
links to it).  So I thought if Lucene could be adapted to retrieve documents 
inside collections rather than URL.

Can anybody give me an insight on this issue? Are there any future plans to 
include search support for XML and other databases?  How do you think the 
support of XQuery language will help in the search process?

Thanks.





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


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

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




RE: UnnamedSelector: ComponentSelector could not find the component on custom Action

2002-02-13 Thread Lewis, Andrew J

I sent this to the wrong list earlier...sorry...

> --
> From: Lewis, Andrew  J
> Sent: Wednesday, February 13, 2002 10:22 AM
> To:   '[EMAIL PROTECTED]'
> Subject:  UnnamedSelector: ComponentSelector could not find the
> component on custom Action
> 
> 
> I'm using Cocon 2.0.1 release, and developing a custom action. I have
> functionality of the Action embedded in a Generator, and working, but I
> need to extract it. I am currently passing it two parameters in the
> sitemap, just as I was with the Generator, but with the Action I am
> getting the following exception when attempting to retrieve the parameters
> within configure().
> 
> Probably a stupid mistake on my part, but not having any luck with it
> 
> org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
> ComponentSelector could not find the component for hint: manipulator 
> 
> Any help would be appreciated...Thanks!
> 
> 
> 

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

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




RE: servlet, generator or ... (design question)

2002-02-13 Thread Vadim Gritsenko

> From: Mike Haarman [mailto:[EMAIL PROTECTED]]
> 
> We are evaluating C2 for a very large, public, data-dissemination
project
> (NHGIS.ORG).  I would like to build a few small XML visualization
tools in
> C2 for demonstration purposes.  For example, a facility to upload an
XML
> instance, associate it with a stylesheet living on the server and
return
> transformed XHTML.  The upload need not be saved anywhere on the
server;
> I'd like to hand the uploading stream directly to Cocoon.  I can
clearly
> see a couple ways to accomplish this but suspect there are more:
> 
> a) Specify a servlet external to Cocoon which handles multi-part form
data
> as the src attr on my generator in the pipeline.  How does this kick
> off the pipeline's processing?  I suspect I need to bind the upload
stream
> to the pipeline within my servlet and make a call to Cocoon but I'm
not
> clear how.  Or is Cocoon waiting like a daemon for bytes to show up at
the
> mouth of the pipe?

Not possible.


> b) Extend one of Cocoon's generator classes (StreamGenerator?) to
handle
> the multi-part form data and call it from my form.

Way to go. Yes, StreamGenerator.


> c) Is there a way to modify the File Upload example to hand the
upcoming
> stream to a transformation?  It seems that example merely specifies a
> directory for uploads and does nothing with the stream itself.

It has different purpose; it supposed usage is to upload binary
resources, not the XML which requires further processing.

Vadim

> d) ?
> 
> What is the cleanest manner of doing this?  I suspect there is a
Cocoon
> pattern lurking in this problem and would like to implement the
solution
> that best reflects such a pattern.
> 
> 
> Mike HaarmanMinnesota Population Center,
> [EMAIL PROTECTED]  University of Minnesota,
> 537 Heller Hall,
> Minneapolis, MN 55455
> Co-Architect, Programmer,
>   National Historical GIS -- http://www.nhgis.org/
> Maintainer,
>   DDI Codebook DTD -- http://www.icpsr.umich.edu/DDI/



-
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: Apache Tomcat/4.0.2 - Error report with Cocoon-2.0.1

2002-02-13 Thread Joseph Rajkumar

Todd Densmore wrote:
> 
> Ran into the same problem. I just uninstalled :(
> 
Hi
The best solution right now is to stay
with Tomcat-4.0.1 and Cocoon-2.0.1 and they work
just fine with or without the display.

Joseph Rajkumar

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

2002-02-13 Thread Gustavo Nalle Fernandes

 Hello C2 Users,
How can I deploy C2 in two separate jars/wars ? In one of them,I´d like to
put C2 core (as it comes from Apache site) and in the other I´d like to put
my xsp,xml and xsl,so I need not to recompile the entire aplication when I
change one of my xsp.

Gustavo


-
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: Apache Tomcat/4.0.2 - Error report with Cocoon-2.0.1

2002-02-13 Thread Todd Densmore


Ran into the same problem. I just uninstalled :(

-Original Message-
From: Joseph Rajkumar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 7:04 PM
To: cocoon-users
Subject: Apache Tomcat/4.0.2 - Error report with Cocoon-2.0.1


> Apache Tomcat/4.0.2 - HTTP Status 500 - Internal Server Error
Hi Folks

I upgraded to Tomcat-4.0.2 and Cocoon-2.0.1 and
I am running into this problem.

I searched the aimsgroup and found a couple of
other people mentioning the same, but I could not find
any solution.

I am using stock tomcat and cocoon files with
no changes at all.

Joseph Rajkumar

> 
> type Exception report
> 
> message Internal Server Error
> 
> description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.
> 
> exception
> 
> javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
exception
> at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
5)
> at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
> at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
> at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
> at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
> at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
> at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
> at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
> at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
> at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
> at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
> at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
> at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
> at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
> at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
> at java.lang.Thread.run(Thread.java:484)
> 
> root cause
> 
> java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
> at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
> at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1631)
> at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:926)
> at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1360)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.configure(Ex
caliburComponentManager.java:408)
> at org.apache.cocoon.Cocoon.configure(Cocoon.java:406)
> at org.apache.cocoon.Cocoon.initialize(Cocoon.java:267)
> at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:991)
> at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308)
> at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
6)
> at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
> at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
> at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
> at
org.ap

RE: session attributes in XSL Transformer

2002-02-13 Thread Vadim Gritsenko

> From: Lorenzo De Sio [mailto:[EMAIL PROTECTED]]
> 
> Hi all,
> 
> I tried hard but got somewhat confused with the documentation.
> How can I make session attribute values available to a XSLT
transformation?
> 
> In fact, does something like
> 
> 
>   
> 
> 
> exist for session attributes?

Nope. Use matchers/selectors/actions to get them and pass to the
transformer manually, one by one (using map:parameter).

Vadim


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

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




RE: Cocoon2 and LDAP

2002-02-13 Thread MarcB

I downloaded JNDI and created the cocoon war package as described in
http://xml.apache.org/cocoon/installing/index.html.  I do not have errors
related to LDAP when starting tomcat/cocoon.

My sitemap has:


I am using JNDI 1.2.2, Cocoon 2.0, Tomcat 3.2.1

Now if you want to ask me if I actually have any working LDAP functionality
in my cocoon implementation, well I'm still working on that. 

Marc

-Original Message-
From: Ruth, Thomas {PDBI~Basel} [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 8:49 AM
To: '[EMAIL PROTECTED]'
Subject: Cocoon2 and LDAP


Hi
we tried to install LDAP in our Cocoon 2.0 environment. 
I downloaded jndi1.2.2 and put the jar file in the lib directory.
In the sitemap.xmap we included the line 


After the restart we got the error message: 
ERROR   (2002-02-13) 07:36.19:802   [cocoon  ]
(/cocoon/pathfinder/index.xml) ExecuteThread: '10' for queue:
'default'/GeneratorSelector: Could not set up Component for hint:
org/apache/cocoon/www/sitemap_xmap
org.apache.avalon.framework.configuration.ConfigurationException: Error in
sitemap configuration : org.apache.cocoon.transformation.ldapTransformer
...
java.lang.ClassNotFoundException:
org.apache.cocoon.transformation.ldapTransformer
...

When we removed the line in the sitemap.xmap the error was still there, -->
the sitemap did not compile.
It only did work again when we deleted the
\cocoon\WEB-INF\_tmp_war_wld3server_wld3server_cocoon\cocoon-files\org\a
pache\cocoon\www\*.* class and java files.

So the question is still open: How to use Cocoon2 and LDAP?

Thnaks
Thomas

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




servlet, generator or ... (design question)

2002-02-13 Thread Mike Haarman


We are evaluating C2 for a very large, public, data-dissemination project
(NHGIS.ORG).  I would like to build a few small XML visualization tools in
C2 for demonstration purposes.  For example, a facility to upload an XML
instance, associate it with a stylesheet living on the server and return
transformed XHTML.  The upload need not be saved anywhere on the server;
I'd like to hand the uploading stream directly to Cocoon.  I can clearly
see a couple ways to accomplish this but suspect there are more:

a) Specify a servlet external to Cocoon which handles multi-part form data
as the src attr on my generator in the pipeline.  How does this kick
off the pipeline's processing?  I suspect I need to bind the upload stream
to the pipeline within my servlet and make a call to Cocoon but I'm not
clear how.  Or is Cocoon waiting like a daemon for bytes to show up at the
mouth of the pipe?

b) Extend one of Cocoon's generator classes (StreamGenerator?) to handle
the multi-part form data and call it from my form.

c) Is there a way to modify the File Upload example to hand the upcoming
stream to a transformation?  It seems that example merely specifies a
directory for uploads and does nothing with the stream itself.

d) ?

What is the cleanest manner of doing this?  I suspect there is a Cocoon
pattern lurking in this problem and would like to implement the solution
that best reflects such a pattern.


Mike HaarmanMinnesota Population Center,
[EMAIL PROTECTED]  University of Minnesota,
537 Heller Hall,
Minneapolis, MN 55455
Co-Architect, Programmer,
  National Historical GIS -- http://www.nhgis.org/
Maintainer,
  DDI Codebook DTD -- http://www.icpsr.umich.edu/DDI/



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




session attributes in XSL Transformer

2002-02-13 Thread Lorenzo De Sio

Hi all,

I tried hard but got somewhat confused with the documentation.
How can I make session attribute values available to a XSLT transformation?

In fact, does something like





exist for session attributes?


Thanks,

L.



Lorenzo De Sio
Web For Business s.r.l.
Firenze, italy


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




[slightly OT] I really need ideas about a CMS to use with Cocoon

2002-02-13 Thread Michael Homeijer

Hi,

I am working on a project that planned to use the java CMS from arsdigita
(www.arsdigita.com). 

We noticed a news item about arsdigita that keeps us from using the product
in our project
(http://slashdot.org/article.pl?sid=02/02/08/1319206&mode=thread). We were
in the stage of evaluating how it cooperates with Cocoon 2.

Right now I could use some ideas on CMS's that integrate well with Cocoon,
are built of reusable components and provide at least some rudimentary
workflow mechanisms.
Furthermore the CMS should be able to work on a foreign database (ie. not
their own metamodel or something).

Any ideas?

TIA,
Michael Homeijer

-
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: Setting attributes of the esql tags dynamically

2002-02-13 Thread Christian Haul

On 13.Feb.2002 -- 03:43 PM, hugo burm wrote:
> 
> How can I set the "column" attribute of the tags in the esql taglib
> dynamically? xsp:attribute generates an error.
> 

> 
>
>   
>   for (ic=1; ic <= cnt; ic++)  {
>   
>   
   ic
>   
> 
>   
>  }
>   
>
> 

 adds attributes to tags that create SAX events,
e.g. those used for markup. Adding attribtues to logicsheet tags
requires support from that logicsheet. Most supplied logicsheets use
 for that.

Chris.

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

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

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




Cocoon2 and LDAP

2002-02-13 Thread Ruth, Thomas {PDBI~Basel}

Hi
we tried to install LDAP in our Cocoon 2.0 environment. 
I downloaded jndi1.2.2 and put the jar file in the lib directory.
In the sitemap.xmap we included the line 


After the restart we got the error message: 
ERROR   (2002-02-13) 07:36.19:802   [cocoon  ] (/cocoon/pathfinder/index.xml) 
ExecuteThread: '10' for queue: 'default'/GeneratorSelector: Could not set up Component 
for hint: org/apache/cocoon/www/sitemap_xmap
org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap 
configuration : org.apache.cocoon.transformation.ldapTransformer
...
java.lang.ClassNotFoundException: org.apache.cocoon.transformation.ldapTransformer
...

When we removed the line in the sitemap.xmap the error was still there, --> the 
sitemap did not compile.
It only did work again when we deleted the 
\cocoon\WEB-INF\_tmp_war_wld3server_wld3server_cocoon\cocoon-files\org\apache\cocoon\www\*.*
 class and java files.

So the question is still open: How to use Cocoon2 and LDAP?

Thnaks
Thomas

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




Setting attributes of the esql tags dynamically

2002-02-13 Thread hugo burm


How can I set the "column" attribute of the tags in the esql taglib
dynamically? xsp:attribute generates an error.

The problem:
I have simple sql query "select * from mytable".
Mytable has 5 columns.
The code below generates a Xalan transformer error in C2.0.1  (W2000, Tomcat
4.0.1):
When I replace the outdented code below the  line with:
ic the numbers 12345 are printed as expected.
(cnt=number of columns=5).
When I replace the outdented code below the  line with:
 , the name of the first column is printed
5 times as expected.
So the logic and the query are ok, it is the xsp:attribute that generates
the error.

At the end of the esql documentation of the esql tags there is a note in
documentation of "@*|node()" that the taglib expects a  tag
with the name of the column as content when there is no column attribute
(after evaluating xsp which is what I need). I experimented with this but
that didn't work either. How can I use this?

Thanks
Hugo Burm
[EMAIL PROTECTED]


code



   
  
  for (ic=1; ic <= cnt; ic++)  {
  

  
ic
  

  
 }
  
   



-
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: Cocoon1 -> Cocoon2

2002-02-13 Thread Vadim Gritsenko

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> > But you have to look at the memory aspect too...
> > A new instance of the generator is created at each request and so
the
> > amount of memory allocated keeps increasing.

Not (exactly) true - depends how you implement it. Read on Avalon or
take a look at:
http://jakarta.apache.org/avalon/excalibur/api/org/apache/avalon/excalib
ur/pool/Poolable.html

http://jakarta.apache.org/avalon/framework/lifecycle.html


> :( Too bad.
> 
> > With cocoon2 you can also use a servlet as a generator. It's
> > certainly not
> > the best solution neither but since you have already a servlet...
> 
> How can I do that ? Should I implement the Generator interface too
> in my servlet, or do the HTTP request thing what Jupin suggested ?
> Or is there any other way to do that ? I saw plenty of exapmles
> which use JSP, HTML, XSP and other thing as a generator, but nowhere
> a simple Java (servlet) code.

See http://localhost:8080/cocoon/sub/

Vadim



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

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




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

2002-02-13 Thread SANSONE, AARON M [Non-Pharmacia/1000]

Vadim,

I got the Feb 13, CVS Snapshot and this is working now.  Thanks.  However, I
am still having the Problem with the AbstractDOMTransformer that I've
implemented. See the "More on Cocoon 2 generated SAX Exception" Thread. 

Thanks,
Aaron


(P.S. here is the exception from the thread I'm talking about.  The pipeline
setup and Transformer implementation is in the thread "Cocoon 2 generated
SAX Exception").

FATAL_E (2002-02-13) 08:27.40:828   [core.xslt-processor]
(/projects/fingerprinting-app/newShowUPGMATree) web-1/TraxErrorHandler:
Error in TraxTransformer: javax.xml.transform.TransformerException:
java.lang.NullPointerException
javax.xml.transform.TransformerException: java.lang.NullPointerException
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1230)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3139)
at java.lang.Thread.run(Thread.java:484)
-
java.lang.NullPointerException
at
org.apache.cocoon.xml.dom.DOMBuilder.getDocument(DOMBuilder.java:166)
at
org.apache.cocoon.xml.dom.DOMBuilder.notifyListener(DOMBuilder.java:191)
at
org.apache.cocoon.xml.dom.DOMBuilder.endDocument(DOMBuilder.java:183)
at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:95)
at
org.apache.cocoon.components.saxconnector.LoggingSAXConnector.endDocument(Lo
ggingSAXConnector.java:135)
at
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler
.java:190)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1186)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3139)
at java.lang.Thread.run(Thread.java:484)

-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 7:27 AM
To: [EMAIL PROTECTED]
Subject: RE: Cocoon 2.0.1 Problem changing default parser to Xerces...


This error ([CONFLICT] lifestyle interfaces) was fixed after 2.0.1
release. Either get CVS version or get XercesParser.java from the CVS
(cvs.apache.org)

Vadim

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

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




RE: Cocoon1 -> Cocoon2

2002-02-13 Thread Alexandre Victoor


>How can I do that ? Should I implement the Generator interface too
>in my servlet, or do the HTTP request thing what Jupin suggested ?
>Or is there any other way to do that ? I saw plenty of exapmles
>which use JSP, HTML, XSP and other thing as a generator, but nowhere
>a simple Java (servlet) code.

Well the answer is to put the URL of your servlet in the sitemap :



 http://localhost:8080/alexcocoon/AlexServlet"; 
/>  
 
 



Good luck Geza

Alex






-
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: Cocoon1 -> Cocoon2

2002-02-13 Thread Geza.Szocs

> But you have to look at the memory aspect too...
> A new instance of the generator is created at each request and so the 
> amount of memory allocated keeps increasing.

:( Too bad. 

> With cocoon2 you can also use a servlet as a generator. It's 
> certainly not 
> the best solution neither but since you have already a servlet...

How can I do that ? Should I implement the Generator interface too
in my servlet, or do the HTTP request thing what Jupin suggested ? 
Or is there any other way to do that ? I saw plenty of exapmles 
which use JSP, HTML, XSP and other thing as a generator, but nowhere
a simple Java (servlet) code. 

-
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: Cocoon1 -> Cocoon2

2002-02-13 Thread Alexandre Victoor

You are welcome :)
But you have to look at the memory aspect too...
A new instance of the generator is created at each request and so the 
amount of memory allocated keeps increasing.
With cocoon2 you can also use a servlet as a generator. It's certainly not 
the best solution neither but since you have already a servlet...
Good luck

Alex


At 14:56 13/02/2002 +0100, you wrote:
>Thanx Alex. I guess this was exactly what I needed.
>I assume that from the performace point of view this
>is not the best solution, but I right now I already have a huge
>amount of code in a servlet. In order to make the pages
>configurable, I ported the whole thing pretty easily
>to Cocoon1. I converted my servlet into a Producer.
>Now I'm trying to do the same thing for
>Cocoon2. If I could, I would start the whole thing all
>over again, but I don't have the time. :(
>I'm also concerned about speed, so I'm doing some
>speed comparison: old servlet/C1/C2.
>Thanks again, Geza
>
> > -Original Message-
> > Here is a dummy generator that parses a string and gives the
> > sax events to  cocoon. Hope that is what you need.




-
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: Cocoon1 -> Cocoon2

2002-02-13 Thread Geza.Szocs

Thanx Alex. I guess this was exactly what I needed.
I assume that from the performace point of view this
is not the best solution, but I right now I already have a huge
amount of code in a servlet. In order to make the pages
configurable, I ported the whole thing pretty easily
to Cocoon1. I converted my servlet into a Producer.
Now I'm trying to do the same thing for
Cocoon2. If I could, I would start the whole thing all
over again, but I don't have the time. :( 
I'm also concerned about speed, so I'm doing some
speed comparison: old servlet/C1/C2. 
Thanks again, Geza

> -Original Message-
> Here is a dummy generator that parses a string and gives the 
> sax events to  cocoon. Hope that is what you need.

-
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: MySQL Insert

2002-02-13 Thread SANSONE, AARON M [Non-Pharmacia/1000]

Ferran,

Yes you can do any SQL statement using the transformer.  An insert may look
like this:



http://apache.org/cocoon/SQL/2.0";>
  http://apache.org/cocoon/SQL/2.0";>
   
  insert into tablex ( username, password, activeFlag ) values
('', '', 'Y')
   
  



Then process this throught the SQLTransformer and you should see your data
in the DB (assuming you have access to insert to this table of course!).

HTH,
Aaron

-Original Message-
From: Ferran Urgell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 7:10 AM
To: [EMAIL PROTECTED]
Subject: MySQL Insert


Note: I'm using the sql transformer for the querys.Can I use the sql
transformer for the inserts ?

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

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




AW: Cocoon, XForms, ExFormula,, Struts, etc

2002-02-13 Thread Thorsten Mauch

Hi
we are working on a integeration from 
cocoon chiba and castor-xml
http://sourceforge.net/projects/chiba/

we like to use castor to perform
the data exchange automaticly.
Beside this we wrote some basic
actions to handle Xforms request.

I hope that you will see a basic
version of that in the Chiba CVS



-Ursprüngliche Nachricht-
Von: Ivanov, Ivelin [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 13. Februar 2002 06:49
An: '[EMAIL PROTECTED]'
Betreff: Cocoon, XForms, ExFormula,, Struts, etc



Hi,

After using successfully JSPs+Struts for a relatively big enterprise
project, I've grown to appreciate the MVC model, but have also found some
places where it can be improved.

Before starting a long discussion, I'm first just looking for a short answer
to the following question:

Does Cocoon 2 have a mechanism for achieving automatic Form population and
validation, similar to Struts ?

I've noticed that in the project archive XForms and ExFormula have been
discussed on a number of ocasions, but they've been integrated in C2. Am I
wrong?

I will appreciate a prompt response.

Thank you.

-= Ivelin Ivanov =-




-
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: Cocoon1 -> Cocoon2

2002-02-13 Thread Alexandre Victoor

Hi
Here is a dummy generator that parses a string and gives the sax events to 
cocoon. Hope that is what you need.
 From my experience I can tell that it is not the best thing to do with 
cocoon2...
Regards

Alex





import  org.apache.avalon.framework.parameters.Parameters;
import  org.apache.cocoon.generation.Generator;
import  org.apache.cocoon.environment.SourceResolver;
import  org.apache.cocoon.xml.XMLConsumer;
import  org.apache.cocoon.ProcessingException;

import  org.xml.sax.XMLReader;
import  org.xml.sax.InputSource;
import  org.xml.sax.SAXException;

import  java.io.StringReader;
import  java.io.IOException;
import  java.util.Map;
import  java.util.Enumeration;



/**
 * A dummy generator for cocoon2
 */
public class DummyGenerator implements Generator {


protected XMLConsumer   _xmlConsumer;

public DummyGenerator() {
}



public void generate() throws IOException, SAXException, ProcessingException {

try {
XMLReader parser = 
(XMLReader)Class.forName("org.apache.xerces.parsers.SAXParser").newInstance();
parser.setContentHandler(_xmlConsumer);

parser.setFeature( "http://xml.org/sax/features/validation",false);

parser.parse(
new InputSource(
new StringReader(
"Hello !This is the result 
of a dummy producer!")
)
);
} catch ( Exception e ) {
throw new ProcessingException(e);
}
}
public void setConsumer(XMLConsumer consumer) {
_xmlConsumer = consumer;
}
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters 
par)
throws ProcessingException, SAXException, 
IOException {

System.out.println("setup method");


}
}



-
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: calling a HTML-file from an XSL-file

2002-02-13 Thread Richard Korthuis

Well that seems pretty obvious to me, but there seems to be an other
problem, but what

- Original Message -
From: "Ruth, Thomas {PDBI~Basel}" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 13, 2002 1:31 PM
Subject: RE: calling a HTML-file from an XSL-file


> You have to use the correct path for contents.htm ...
>
>
> -Original Message-
> From: Richard Korthuis [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 13, 2002 12:44 PM
> To: [EMAIL PROTECTED]
> Subject: calling a HTML-file from an XSL-file
>
>
> Hello,
>
> I have created an XML-file together with an XSL-file. In the XSL-file I
create a frameset with frames. In the frames I want to display plain
HTML-files, but when I use:
> 
> I get a HTTP 500 error: The page cannot be displayed. When I change
contents.htm into an XML-file (i.e. "../cocoon/welcome") it works perfectly.
What am I doing wrong?
>
> Regards
>
> Richard Korthuis
>
>
> -
> 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: org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. Please check logs for the exact error.

2002-02-13 Thread Vadim Gritsenko

Read the archive:

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

and lots of other emails.

Vadim

> -Original Message-
> From: Kubanek, Petr [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 13, 2002 8:39 AM
> To: '[EMAIL PROTECTED]'
> Subject: org.apache.cocoon.ProcessingException: The sitemap handler's
sitemap
> is not available. Please check logs for the exact error.
> 
> Hi,
> 
> got following error (WEB-INF/logs/sitemap.log) with Cocoon 2.0.1,
Tomcat
> 4.0.1, JDK 1.3.1-b24, NT Sp ? (hope >5) box. Cocoon 2.0.1 doesn´t
start, 2.0
> worked fine.
> 
> 
> DEBUG   (2002-02-13) 13:50.06:860   [sitemap] (/cocoon/)
> HttpProcessor[8080][0]/Handler: Beginning sitemap regeneration
> DEBUG   (2002-02-13) 13:50.06:860   [sitemap] (/cocoon/)
> HttpProcessor[8080][0]/DefaultRoleManager: looking up shorthand ,
returning
> null
> DEBUG   (2002-02-13) 13:50.06:870   [sitemap] (/cocoon/)
> HttpProcessor[8080][0]/DefaultRoleManager: looking up shorthand ,
returning
> null
> DEBUG   (2002-02-13) 13:50.06:870   [sitemap] (/cocoon/)
> HttpProcessor[8080][0]/DefaultRoleManager: looking up shorthand ,
returning
> null
> DEBUG   (2002-02-13) 13:50.06:870   [sitemap] (/cocoon/)
> HttpProcessor[8080][0]/DefaultRoleManager: looking up shorthand ,
returning
> null
> DEBUG   (2002-02-13) 13:50.06:870   [sitemap] (/cocoon/)
> HttpProcessor[8080][0]/DefaultRoleManager: looking up shorthand ,
returning
> null
> DEBUG   (2002-02-13) 13:50.06:870   [sitemap] (/cocoon/)
> HttpProcessor[8080][0]/DefaultRoleManager: looking up shorthand ,
returning
> null
> DEBUG   (2002-02-13) 13:50.06:870   [sitemap] (/cocoon/)
> HttpProcessor[8080][0]/DefaultRoleManager: looking up shorthand ,
returning
> null
> ERROR   (2002-02-13) 13:50.06:870   [sitemap] (/cocoon/)
> HttpProcessor[8080][0]/Handler: Error compiling sitemap
> java.lang.NoSuchFieldError: manager
>   at
> org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:344)
>   at
>
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(De
> faultComponentFactory.java:172)
>   at
>
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial
ize(
> ThreadSafeComponentHandler.java:84)
>   at
>
org.apache.cocoon.components.language.generator.GeneratorSelector.addGen
erat
> or(GeneratorSelector.java:135)
>   at
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.add
Comp
> iledComponent(ProgramGeneratorImpl.java:356)
>   at
>
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(Pr
> ogramGeneratorImpl.java:187)
>   at org.apache.cocoon.sitemap.Handler.run(Handler.java:228)
>   at java.lang.Thread.run(Unknown Source)
> 
> I also have problems with external svg graphics in fo documents fo
Cocoon -
> generation outside Cocoon works, inside Cocoon error "no base
directory
> specified" - how could I change base directory for cvg graphics?
> 
> Tried to search web, nothing found.
> 
> Thank you.
> 
> Petr Kubanek
> 
> 
> -
> 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: Cocoon1 -> Cocoon2

2002-02-13 Thread Vadim Gritsenko

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> Hi guys,
> 
>  I've had a simple java code which produced XML
> output. In Cocoon1, I had to implement some Producer
> interface, so my java code became integrated in the
> Cocoon servlet. Does anybody know how to do similar
> thing in Cocoon2 ?

Implement a generator or write an XSP page.


> I've read the code snippet written
> by Jupin, but I have something else in my mind. I don't
> want to send an other HTTP request to Cocoon, I want to
> write string

Not a string...

> XML directly into the pipeline.

... but a SAX events. If you really want to have an advantage of
skipping XML parsing, you should generate SAX events.

If you don't have knowledge of how to do this, take a look at Java code
generated out of XSP page.

Vadim

> I guess
> I would have to implement some kind of a generator.
>   Can somebody help me ? I want to port my cocoon1
> implementation to cocoon2. Thanx.



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




org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. Please check logs for the exact error.

2002-02-13 Thread Kubanek, Petr

Hi,

got following error (WEB-INF/logs/sitemap.log) with Cocoon 2.0.1, Tomcat
4.0.1, JDK 1.3.1-b24, NT Sp ? (hope >5) box. Cocoon 2.0.1 doesn´t start, 2.0
worked fine.


DEBUG   (2002-02-13) 13:50.06:860   [sitemap] (/cocoon/)
HttpProcessor[8080][0]/Handler: Beginning sitemap regeneration
DEBUG   (2002-02-13) 13:50.06:860   [sitemap] (/cocoon/)
HttpProcessor[8080][0]/DefaultRoleManager: looking up shorthand , returning
null
DEBUG   (2002-02-13) 13:50.06:870   [sitemap] (/cocoon/)
HttpProcessor[8080][0]/DefaultRoleManager: looking up shorthand , returning
null
DEBUG   (2002-02-13) 13:50.06:870   [sitemap] (/cocoon/)
HttpProcessor[8080][0]/DefaultRoleManager: looking up shorthand , returning
null
DEBUG   (2002-02-13) 13:50.06:870   [sitemap] (/cocoon/)
HttpProcessor[8080][0]/DefaultRoleManager: looking up shorthand , returning
null
DEBUG   (2002-02-13) 13:50.06:870   [sitemap] (/cocoon/)
HttpProcessor[8080][0]/DefaultRoleManager: looking up shorthand , returning
null
DEBUG   (2002-02-13) 13:50.06:870   [sitemap] (/cocoon/)
HttpProcessor[8080][0]/DefaultRoleManager: looking up shorthand , returning
null
DEBUG   (2002-02-13) 13:50.06:870   [sitemap] (/cocoon/)
HttpProcessor[8080][0]/DefaultRoleManager: looking up shorthand , returning
null
ERROR   (2002-02-13) 13:50.06:870   [sitemap] (/cocoon/)
HttpProcessor[8080][0]/Handler: Error compiling sitemap
java.lang.NoSuchFieldError: manager
at
org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:344)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:172)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:84)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java:135)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addComp
iledComponent(ProgramGeneratorImpl.java:356)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:187)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:228)
at java.lang.Thread.run(Unknown Source)

I also have problems with external svg graphics in fo documents fo Cocoon -
generation outside Cocoon works, inside Cocoon error "no base directory
specified" - how could I change base directory for cvg graphics?

Tried to search web, nothing found.

Thank you.

Petr Kubanek


-
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: Searching the Cocoon mail archives?

2002-02-13 Thread Vadim Gritsenko

Try

http://marc.theaimsgroup.com/?l=xml-cocoon-users&w=2&r=1&s=sun+svg+sitem
ap&q=b

Only 24 results.

Vadim

> -Original Message-
> From: Derek Hohls [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 13, 2002 4:09 AM
> To: [EMAIL PROTECTED]
> Subject: Searching the Cocoon mail archives?
> 
> Hi
> 
> A quick (and somewhat redfaced question) - how do I search the
archives
> at:
> http://www.mail-archive.com/cocoon-users@xml.apache.org
> 
> for multiple AND instances (eg. sun+svg+sitemap)
> 
> Thanks!
> Derek
> 
> -
> 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 2.0.1 Problem changing default parser to Xerces...

2002-02-13 Thread Vadim Gritsenko

This error ([CONFLICT] lifestyle interfaces) was fixed after 2.0.1
release. Either get CVS version or get XercesParser.java from the CVS
(cvs.apache.org)

Vadim

> From: SANSONE, AARON M [Non-Pharmacia/1000]
> 
> According to documentation, to change the default XML Parser to user
Xerces
> (as opposed to JAXP), the following two steps must be taken:
> 
> 1) Add
>
"-Dorg.apache.cocoon.components.parser.Parser=org.apache.cocoon.componen
ts.p
> arser.XercesParser"  to the JVM Startup args for your servlet engine.
> 2) Place the following line in the cocoon.xconf:  class="org.apache.cocoon.components.parser.XercesParser"
> logger="core.parser"/>
> 
> This worked for me in Cocoon 2.0.  However now that I  moved to 2.0.1,
this
> causes an exception and fails to initialize Cocoon.  If I remove the
above
> steps, Cocoon runs.  However I am getting other exceptions that may be
> caused by my change in parsers.  What is the appropriate way to
override the
> default parser now?
> 
> Here is the exception (notice the [CONFLICT] line):
> 
> 
> ERROR   (2002-02-12) 11:27.37:686   [core] (Unknown-URI)
> Unknown-thread/Cocoon: Could not load parser, Cocoon object not
created.
> org.apache.avalon.framework.component.ComponentException: Could not
set up
> Component for role: org.apache.cocoon.components.parser.Parser
>   at
>
org.apache.avalon.excalibur.component.ExcaliburComponentManager.addCompo
nent
> (ExcaliburComponentManager.java:546)
>   at org.apache.cocoon.Cocoon.initialize(Cocoon.java:242)
>   at
>
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:
991)
>   at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308)
>   at
>
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JR
unSe
> rvletLoader.java:203)
>   at
>
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JR
unSe
> rvletLoader.java:161)
>   at
>
allaire.jrun.servlet.JRunServletLoader.loadServlet(../servlet/JRunServle
tLoa
> der.java:149)
>   at
>
allaire.jrun.servlet.JRunSE.getServletReference(../servlet/JRunSE.java:1
705)
>   at
> allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1231)
>   at
>
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunReques
tDis
> patcher.java:89)
>   at
allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
>   at
allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
>   at
>
allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
>   at
allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
>   at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
>   at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
> java.lang.Exception: [CONFLICT] lifestyle interfaces:
> org.apache.cocoon.components.parser.XercesParser
>   at
>
org.apache.avalon.excalibur.component.ComponentHandler.getComponentHandl
er(C
> omponentHandler.java:61)
>   at
>
org.apache.avalon.excalibur.component.ExcaliburComponentManager.addCompo
nent
> (ExcaliburComponentManager.java:528)
>   at org.apache.cocoon.Cocoon.initialize(Cocoon.java:242)
>   at
>
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:
991)
>   at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308)
>   at
>
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JR
unSe
> rvletLoader.java:203)
>   at
>
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JR
unSe
> rvletLoader.java:161)
>   at
>
allaire.jrun.servlet.JRunServletLoader.loadServlet(../servlet/JRunServle
tLoa
> der.java:149)
>   at
>
allaire.jrun.servlet.JRunSE.getServletReference(../servlet/JRunSE.java:1
705)
>   at
> allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1231)
>   at
>
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunReques
tDis
> patcher.java:89)
>   at
allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
>   at
allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
>   at
>
allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
>   at
allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
>   at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
>   at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
> ERROR   (2002-02-12) 11:27.37:696   [access] (Unknown-URI)
> Unknown-thread/CocoonServlet: Exception reloading
> org.apache.avalon.framework.configuration.ConfigurationException:
Could not
> load parser org.apache.cocoon.components.parser.XercesParser
>   at org.apache.cocoon.Cocoon.initialize(Cocoon.java:245)
>   at
>
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:
991)
>   at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:308)
>   at
>
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JR
unSe
> rvletLoader.

Cocoon1 -> Cocoon2

2002-02-13 Thread Geza.Szocs

Hi guys,

 I've had a simple java code which produced XML
output. In Cocoon1, I had to implement some Producer
interface, so my java code became integrated in the
Cocoon servlet. Does anybody know how to do similar
thing in Cocoon2 ? I've read the code snippet written
by Jupin, but I have something else in my mind. I don't
want to send an other HTTP request to Cocoon, I want to
write string XML directly into the pipeline. I guess
I would have to implement some kind of a generator. 
  Can somebody help me ? I want to port my cocoon1 
implementation to cocoon2. Thanx. 

-
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: calling a HTML-file from an XSL-file

2002-02-13 Thread Ruth, Thomas {PDBI~Basel}

You have to use the correct path for contents.htm ...
 

-Original Message-
From: Richard Korthuis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 12:44 PM
To: [EMAIL PROTECTED]
Subject: calling a HTML-file from an XSL-file


Hello,
 
I have created an XML-file together with an XSL-file. In the XSL-file I create a 
frameset with frames. In the frames I want to display plain HTML-files, but when I 
use: 

I get a HTTP 500 error: The page cannot be displayed. When I change contents.htm into 
an XML-file (i.e. "../cocoon/welcome") it works perfectly. What am I doing wrong?
 
Regards
 
Richard Korthuis


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




mod_webapp info needed

2002-02-13 Thread Bert Van Kets

Can anybody tell me where I can ask questions regarding mod_webapp?  I 
installed Tomcat 4.0.1 and Apache 1.3.20 on SuSE 7.3.  I'd like to direct 
the root of my Apache site to a Cocoon webapp.  It runs fine in Win2K, but 
Apache can't seem to talk to Tomcat in SuSE Linux.  I'm getting file not 
found errors in the browser, but no errors in the log files.
I'm using mod_webapp 1.0.1-tc401.
Thanks,
Bert


-
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 2.0.1 and Tomcat 4.02

2002-02-13 Thread Jean-Philippe Courson

Joseph Rajkumar wrote:
> Hi
>   Tomcat-4.0.2 and Cocoon-2.0.1 works
> like a charm for me. I am on Linux-Mandrake-8.0
> using Sun JDK-1.3.1_02.

Are you using tomcat 4.0.2 rpms or tgz ?

JP


>   It would be easier for people to help
> if you let us know the OS and the JDK you are using.
> 
> Joseph Rajkumar
> email: [EMAIL PROTECTED]
> 
> Martin Holz wrote:
> 
>>Erik Stunkat wrote:
>>
>>>Hello,
>>>
>>>I deleted everything under \tomcat\work\localhost
>>>that went fine
>>>
>>>
>>Didn't work for me :-(. Which java version do you use?
>>
>>-
>>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: cocoon2 + headless solaris + tomcatv4 not starting

2002-02-13 Thread caleb racey








Works Thanks Bert, 4 days of frustration
fixed in 5 minutes.

 



Caleb Racey

Webteam

University Computing Service



 

-Original Message-
From: Bert Van Kets
[mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 12, 2002
4:32 PM
To: [EMAIL PROTECTED]
Subject: Re: cocoon2 + headless
solaris + tomcatv4 not starting 

 

I copied the PJA jar files to the jre/lib/ext
directory and added the following line to the catalina.sh file

CATALINA_OPTS='-Xbootclasspath/p:/usr/local/pja/lib/pja.jar
-Dawt.toolkit=com.eteks.awt.PJAToolkit -Djava2d.font.usePlatformFont=false
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
-Djava.awt.fonts=/usr/local/jdk1.3.1_02/jre/lib/fonts
-Duser.home=/usr/local/pja -cp /usr/local/jdk1.3.1_02/jre/lib/ext/pjatools.jar'

works fine on a headless SuSE 7.3 machine.  You might have
to change the paths a little.

Bert

At 16:15 12/02/2002 +, you wrote:




Apologies in advance for the long windedness of this
post, I wanted to
get all the details down.

I'm trying to install cocoon on a tomcat server on a solaris box
cocoon=2.0.1
tomcat=4.0.1
solaris=2.8
jdk=1.3 (in j2se)

I have been successful in deploying cocoon in tomcat on windows xp as a
test, but I need it on my solaris box to do actual work on.

I tried straight deployment off dropping the .war into webapps and going
to the cocoon url but got the sitemap errors in the page. 
After reading the cocoon install guide and cocoons error.log I realized
I was operating in a headless environment.

So I downloaded the pja jars and installed them in /usr/j2se/jre/lib/.

I have put the pja jars in the classpath tomcat uses by altering
bin/catalina.sh, so the classpath setting line now reads:

CP=$CP:"$JAVA_HOME/lib/tools.jar":"$JAVA_HOME/jre/lib/pja.jar":"$JAVA_HO
ME/jre/lib/pjatools.jar"


($JAVA_HOME=/usr/j2se)

I added suitable CATALINA_OPTS to bin/startup.sh and bin/shutdown.sh as
suggested on the cocoon site 


CATALINA_OPTS='
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment 
-Dawt.toolkit=com.eteks.awt.PJAToolkit 
-Djava.awt.fonts=/usr/j2se/jre/lib/fonts'
export CATALINA_OPTS


my tomcat start up confirms this 

sandpit [sparc] 14% ./startup.sh
Guessing CATALINA_HOME from catalina.sh to ./..
Setting CATALINA_HOME to ./..
Using CLASSPATH:
./../bin/bootstrap.jar:/usr/j2se/lib/tools.jar:/usr/j2se/jre/lib/pja.jar
:/usr/j2se/jre/lib/pjatools.jar
Using CATALINA_BASE: ./..
Using CATALINA_HOME: ./..
Using JAVA_HOME: /usr/j2se
Using CATALINA_OPTS: 
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment 
-Dawt.toolkit=com.eteks.awt.PJAToolkit 
-Djava.awt.fonts=/usr/j2se/jre/lib/fonts


Tomcat works as expected.

Cocoon is deployed as a war file (and has been redeployed several
times), 
but it still doesn't work I get the usual sitemap error page. 
The errors in cocoons error log to match this are are:


ERROR   (2002-02-12) 12:05.21:493  
[sitemap.generator.velocity]
(/cocoon/) Http
Processor[8080][4]/VelocityGenerator: ResourceManager : unable to find
resource 
'VM_global_library.vm' in any resource loader.
ERROR   (2002-02-12) 12:05.21:618  
[sitemap.generator.velocity]
(/cocoon/) Http
Processor[8080][4]/VelocityGenerator: ResourceManager : unable to find
resource 
'VM_global_library.vm' in any resource loader.
ERROR   (2002-02-12) 12:05.21:671  
[sitemap.generator.xmldb] (/cocoon/)
HttpPro
cessor[8080][4]/XMLDBGenerator: There was a problem setting up the
connection
ERROR   (2002-02-12) 12:05.21:673  
[sitemap.generator.xmldb] (/cocoon/)
HttpPro
cessor[8080][4]/XMLDBGenerator: Make sure that your driver is available
ERROR   (2002-02-12) 12:05.21:696  
[sitemap.generator.xmldb] (/cocoon/)
HttpPro
cessor[8080][4]/XMLDBGenerator: There was a problem setting up the
connection
ERROR   (2002-02-12) 12:05.21:698  
[sitemap.generator.xmldb] (/cocoon/)
HttpPro
cessor[8080][4]/XMLDBGenerator: Make sure that your driver is available
ERROR   (2002-02-12) 12:05.21:741  
[sitemap.generator.xmldbcollection]
(/cocoon
/) HttpProcessor[8080][4]/XMLDBCollectionGenerator: There was a problem
setting 
up the connection
ERROR   (2002-02-12) 12:05.21:746  
[sitemap.generator.xmldbcollection]
(/cocoon
/) HttpProcessor[8080][4]/XMLDBCollectionGenerator: Make sure that your
driver i
s available
ERROR   (2002-02-12) 12:05.21:763  
[sitemap.generator.xmldbcollection]
(/cocoon
/) HttpProcessor[8080][4]/XMLDBCollectionGenerator: There was a problem
setting 
up the connection
ERROR   (2002-02-12) 12:05.21:765  
[sitemap.generator.xmldbcollection]
(/cocoon/) HttpProcessor[8080][4]/XMLDBCollectionGenerator: Make sure 
that your driver is available
ERROR   (2002-02-12) 12:05.24:392   [sitemap] (/cocoon/)
HttpProcessor[8080][4]/Handler: Error compiling sitemap
java.lang.Error: Could not find class:
com.eteks.java2d.PJAGraphicsEnvironment
    at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnviron
ment.java:61)
    at
java.awt.Font.initializeFont(Font.java:264)
    at
java.awt.Font.(Fon

calling a HTML-file from an XSL-file

2002-02-13 Thread Richard Korthuis



Hello,
 
I have created an XML-file together with an 
XSL-file. In the XSL-file I create a frameset with frames. In the frames I want 
to display plain HTML-files, but when I use: 

I get a HTTP 500 error: The page cannot be 
displayed. When I change contents.htm into an XML-file (i.e. 
"../cocoon/welcome") it works perfectly. What am I doing wrong?
 
Regards
 
Richard Korthuis


Searching the Cocoon mail archives?

2002-02-13 Thread Derek Hohls

Hi

A quick (and somewhat redfaced question) - how do I search the archives
at:
http://www.mail-archive.com/cocoon-users@xml.apache.org

for multiple AND instances (eg. sun+svg+sitemap)

Thanks!
Derek

-
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, XForms, ExFormula,, Struts, etc

2002-02-13 Thread Christian Haul

On 12.Feb.2002 -- 11:48 PM, Ivanov, Ivelin wrote:
> Does Cocoon 2 have a mechanism for achieving automatic Form population and
> validation, similar to Struts ?

I don't know Struts, so I can't compare the two. Anyway:
Validation, yes. There's a FormValidatorAction that should be
sufficient for many (far from all!) purposes. Form population, I'd say, is
not really supported. Although there are mechanisms that help a lot.

> I've noticed that in the project archive XForms and ExFormula have been
> discussed on a number of ocasions, but they've been integrated in C2. Am I
> wrong?

Unfortunately, yes, you're wrong. Both projects never took off because
of lack of developer resources. Some ideas have made it in some way or
another into Cocoon, however.

Chris.

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

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

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