WriteDOMTransformer

2002-02-25 Thread Ivan Rubin Ayma

Hello,

I have to generate some content, write it to the session and redirect to
another pipeline.

I can't do that! If I don't serialize, the events does not flow through
the pipeline and through WriteDOMSession transformer.

Do I have a way to accomplish that, or should I change my logic?

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




ReadWriteDOMsession

2002-02-22 Thread Ivan Rubin Ayma

Hello,

I have a login page. The form points to a do-login pipeline

I want do-login to authenticate the user through an action, that's ok,
and then generate an XML with a menu, write a DOM on the session and go
to the main pipeline.

The main pipeline, in between a number of things, reads the dom from the
session and makes use of it.

The problem: 


 
 
  
  
   
   
  




  
 





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




Database

2002-02-22 Thread Ivan Rubin Ayma

Hello,

My generators use to communicate with a database through JDBC and now I
have to make Windows NT authentication, so the JVM running the system
have to be running on super-user mode, but I don't like the idea of
running everything on super user. 

I would like to just run the database layer, or database+logic (pretty
complicated at this moment) on super user mode. How to communicate with
that layer? RMI? 

Can you point me to some information on this matter, I think it is a
common one in every system.

Sorry if this is not a strict Cocoon post.

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: IllegalAccessException: Object is not a Component

2002-02-14 Thread Ivan Rubin Ayma

Christian,

Remove every reference to your component everywhere but from the cocoon
classloader, as to hide it from any different classloader but that one.

To use the cocoon classloader and to pass parameters to it, you're in
the right place, the initparams at web.xml

> -Mensaje original-
> De: Schweer, Christian [mailto:[EMAIL PROTECTED]]
> Enviado el: jueves, 14 de febrero de 2002 12:05
> Para: '[EMAIL PROTECTED]'
> Asunto: IllegalAccessException: Object is not a Component
> 
> 
> 
> Hi folks,
> 
> is tried to write my own transformer but I always get the following
> exception:
> 
> java.lang.IllegalAccessException: Object 
> mcp.prototyp.cocoon.MCPLog is not a
> Component
>   at
> org.apache.cocoon.sitemap.AbstractSitemap.load_component(Abstr
actSitemap.jav
> a:222)
>   at
> org.apache.cocoon.www.mount.MCP.Start.Route.sitemap_xmap$Confi
gurer.configTr
> ansformers(sitemap_xmap.java:285)
>   at
> org.apache.cocoon.www.mount.MCP.Start.Route.sitemap_xmap.confi
> gure(sitemap_x
> map.java:167)
>   at
> org.apache.avalon.excalibur.component.DefaultComponentFactory.
> newInstance(Un
> known Source)
>   at
> org.apache.avalon.excalibur.component.ThreadSafeComponentHandl
> er.initialize(
> Unknown Source)
>   at
> org.apache.cocoon.components.language.generator.GeneratorSelec
tor.addGenerat
> or(GeneratorSelector.java:135)
>   at
> org.apache.cocoon.components.language.generator.ProgramGenerat
orImpl.addComp
> iledComponent(ProgramGeneratorImpl.java:345)
>   at
> org.apache.cocoon.components.language.generator.ProgramGenerat
orImpl.generat
> eResource(ProgramGeneratorImpl.java:323)
>   at
> org.apache.cocoon.components.language.generator.ProgramGenerat
orImpl.createR
> esource(ProgramGeneratorImpl.java:271)
>   at
> org.apache.cocoon.components.language.generator.ProgramGenerat
> orImpl.load(Pr
> ogramGeneratorImpl.java:188)
>   at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
>   at java.lang.Thread.run(Thread.java:484)
> 
> Want I did (so long):
> 
> - I took the original LogTransformer and replaced the 
> classname with MCPLog,
> changed the package, added import-statement for
> org...cocoon.transformation.*; nothing else -> compiled 
> without errors,
> should be the same functionality
> - I have the directory containing the directory "mcp" in my classpath
> - I have defined  
>
>   in my sitemap (but not used it in any pipeline)
> 
> according to the hints I found in the mail-archive of this list 
> - I added the path to the init-param "extra-classpath" and changed the
> init-param "init-classloader" to "true" (both in web.xml)
> - tried to put the class into org.apache.cocoon.transformation
> 
> But I still have the error. I have the assumption, that I 
> have a path error
> or did something wrong with the avalon-component configuration, did i?
> 
> I'm rather puzzled. Any suggestion appreciated!!
> 
> Thx in adv,
> Christian
> 
> --
> Christian Schweer mailto:[EMAIL PROTECTED]
> sd&m   AG http://www.sdm.de/
> software design & management
> Luebecker Strasse 1, 22087 Hamburg, Germany
> Tel +49 40 254491-97 Fax -11
> 
> -
> Please check that your 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: 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]>




RE: Serving wbmp images in cocoon

2002-02-07 Thread Ivan Rubin Ayma

check the logs on cocoon to see if it is serving it.

do you have a  in your sitemap?

-Mensaje original-
De: Sean Malone [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 07 de febrero de 2002 17:38
Para: [EMAIL PROTECTED]
Asunto: Serving wbmp images in cocoon


Hi, I am using cocoon to deliver wml, in one of my stylesheets i have

this does not seem to work from cocoon, I always get the alt text. Any
ideas
?

Thanking you in anticipation


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

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


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

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




RE: Simple XSL question

2002-02-05 Thread Ivan Rubin Ayma

Simone,

Just for the record, I went on using this template.


  

  


I still wonder if it is not a bad design to generate a base xml at the
begining of the pipeline, aggregate other generated xml data and then go
into a number of transformations for each specific section of the base
xml, transforming them with the other generated data, and copying all
the unused data, in each transformation, for the rest of the pipeline,
basically in terms of performance. By now, that's what I'm doing.

Thanks,

-Mensaje original-
De: Simone Gianni [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 28 de enero de 2002 12:50
Para: [EMAIL PROTECTED]
Asunto: Re: Simple XSL question


At 12.37 28/01/2002 -0300, you wrote:
>Hello,
>
>How can I make a XSLT transformation of just a couple of elements,
>leaving the rest untouched, without having to select everything and
>passing it through?

You can create a "catch all" template with lower priority, for example :


 something



 


This means that if "something" is found, it will be processed by the
first 
template, if "else" is found it will be processed by the second
template, 
which does a copy. The lower priority is an optional, since the XSLT 
processor should use the first template since it's more specific, but
I've 
had some strange results, and forcing it is a good idea.

I'm not sure about the  ... it could cause some 
duplications, you could try a  and see which one works better
...

Ciao

Simone


-
Please check that your 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]>




Generators

2002-01-31 Thread Ivan Rubin Ayma

It would be useful for me to use more than one generator at the
beggining of a pipeline, as I have to generate pretty different things
(in logic) and use the sum of them at the transformations stage.

There's a way to do it?

Thanks,

Ivan

-
Please check that your 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: how to add extra classes into cocoon's classpath?

2002-01-30 Thread Ivan Rubin Ayma

I'm on the same environment.

These are the two parameters I modified on
webapps/cocoon/WEB-INF/web.xml


  init-classloader
  true



  extra-classpath
  c:\Zeus


for using my own cocoon components.

I think the status page of cocoon shows the classpath cocoon is using,
and if it is ok, it have to be the way you invoke the classloader.

-Mensaje original-
De: Tsui, Alban [mailto:[EMAIL PROTECTED]]
Enviado el: miércoles, 30 de enero de 2002 13:28
Para: [EMAIL PROTECTED]
Asunto: RE: how to add extra classes into cocoon's classpath?


I have tried the instruction in web.xml but it doesn't seem to work. 

>From what I have seen, cocoon can only pick up classes from the WEB-INF
folder regardless to what I put in the class path section of web.xml. Is
this a bug?

I am running cocoon on tomcat 4.0.1 on winNT.

> -Original Message-----
> From: Ivan Rubin Ayma [mailto:[EMAIL PROTECTED]]
> Sent: 30 January 2002 16:08
> To: [EMAIL PROTECTED]
> Subject: RE: how to add extra classes into cocoon's classpath?
> 
> 
> With Tomcat WEB-INF/web.xml there's an init-param, commented with de
> default distribution, to add classes to the cocoon's classpath. 
> 
> You should check the class-loader param for Cocoon to use its 
> own class
> loader if you keep on having problemas loading classes.
> 
> -Mensaje original-
> De: Tsui, Alban [mailto:[EMAIL PROTECTED]]
> Enviado el: miércoles, 30 de enero de 2002 12:57
> Para: [EMAIL PROTECTED]
> Asunto: how to add extra classes into cocoon's classpath?
> 
> 
> Hi
> 
> I have no idea add extra classes into cocoon's classpath. Any help?
> 
> Alban
> 
> This message may contain privileged and/or confidential 
> information.  If
> you
> have received this e-mail in error or are not the intended recipient,
> you
> may not use, copy, disseminate or distribute it; do not open any
> attachments, delete it immediately from your system and notify the
> sender
> promptly by e-mail that you have done so.  Thank you.
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

This message may contain privileged and/or confidential information.  If
you
have received this e-mail in error or are not the intended recipient,
you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the
sender
promptly by e-mail that you have done so.  Thank you.

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

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


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

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




RE: how to add extra classes into cocoon's classpath?

2002-01-30 Thread Ivan Rubin Ayma

With Tomcat WEB-INF/web.xml there's an init-param, commented with de
default distribution, to add classes to the cocoon's classpath. 

You should check the class-loader param for Cocoon to use its own class
loader if you keep on having problemas loading classes.

-Mensaje original-
De: Tsui, Alban [mailto:[EMAIL PROTECTED]]
Enviado el: miércoles, 30 de enero de 2002 12:57
Para: [EMAIL PROTECTED]
Asunto: how to add extra classes into cocoon's classpath?


Hi

I have no idea add extra classes into cocoon's classpath. Any help?

Alban

This message may contain privileged and/or confidential information.  If
you
have received this e-mail in error or are not the intended recipient,
you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the
sender
promptly by e-mail that you have done so.  Thank you.

-
Please check that your 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: Object X is not a component error

2002-01-29 Thread Ivan Rubin Ayma

I solved it.

Sorry for bothering with environment questions.

. First of all I changed to Sun's VM, invoking Tomcat 4.0.1 with it.

. I added the classpath of my own Cocoon Components into the web.xml of
Cocoon, on the  named extra-classpath

. And I needed to set the  named init-classloader on the
same web.xml to true, for cocoon to use his own classloader.

Thanks,

-Mensaje original-
De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 29 de enero de 2002 12:09
Para: [EMAIL PROTECTED]
Asunto: RE: Object X is not a component error


> From: Ivan Rubin Ayma [mailto:[EMAIL PROTECTED]]
> 
> Vadim,
> 
> It helps me a lot. But I'm still a wandering rock! And keep on walking
> as follows:
> 
> I instanciated my class outside cocoon, in the same project (same
> parameters to the VM), and checked for instance of Component and it's
> ok, it's an instance of:
> 
> org.apache.avalon.framework.component.Component

This explains everything. Yes, it is instance of *this* particular
instance of the Component class, but *not* the instance of the Component
class loaded by Cocoon. You have got *two* instances of the Component
class. Avoid instantiating of the action outside of Cocoon, or do it
using Cocoon's class loader. Any of these two should help.


> On my sitemap, if I replace my action for, for example,
> org.apache.cocoon.acting.HelloAction, sitemap compilation goes ok.
> 
> So the problem should be my environment, which is not the best, but is
> simple.
> I'm using JBuilder to run Tomcat and Cocoon with jars.
> I've included on the project all the tomcat jars and the
> web-apps/cocoon/WEB-INF/lib/*.jar, where the avalon framework is
> located.
> 
> I think the compilation of my component can't be the cause. I'm
> compiling it with JBuilder's compiler.
> 
> More than one Component class? from where? I'm just using tomcat 4
jars
> and cocoon 2 jars...
> 
> Different ClassLoaders? I don't quietly understand that, doesn't
Cocoon
> use the Java ClassLoader of the virtual machine running it?

Java might have more then one *instance* of class loader. Even *same*
class file loaded by two different instances of the class loader is
*different*.

Try System.getIdentityHashcode() on your Component.getClass() and
Cocoon's Component.getClass() - this will be two *different* classes.

> I see a
> components.classloader package in cocoon, that's the class loader it
> uses? Can the cause be that that classloader is not compatible with
the
> class loader of the virtual machine (JBuilder's VM) running it?

No.

Vadim

> 
> Thanks,
> 
> -Mensaje original-
> De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Enviado el: martes, 29 de enero de 2002 11:16
> Para: [EMAIL PROTECTED]
> Asunto: RE: Object X is not a component error
> 
> 
> This exception is thrown when your object does not implement Component
> interface:
>  if (!(jSessionLogin instanceof Component)) throw
> IllegalAccessException();
> 
> Usually this happens when your component does not implement (IIRC)
> org.apache.avalon.component.Component. Also it happens when you have
> *more* then one class Component loaded by Java due to use of different
> ClassLoadrers and/or several class files for the same Component class.
> 
> I'm not sure that this could help you, but I don't know what's going
> wrong on your system and can't suggest you anything right now.
> 
> Vadim
> 
> > -Original Message-
> > From: Ivan Rubin Ayma [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 29, 2002 9:06 AM
> > To: [EMAIL PROTECTED]
> > Subject: Object X is not a component error
> >
> > I tried to put the component in the package org.apache.cocoon.acting
> > wondering what IllegalAccessException could be, but nothing.
> >
> > I'm posting the complete java source, subsitemap and the cocoon
error.
> >
> > Thanks,
> >
> > -Mensaje original-
> > De: Ivan Rubin Ayma
> > Enviado el: lunes, 28 de enero de 2002 18:05
> > Para: [EMAIL PROTECTED]
> > Asunto: Object X is not a component error
> >
> >
> > I wrote the simplest component I could and at sitemap-compilation
> cocoon
> > keeps on giving me:
> >
> > Error in sitemap configuration : Object
Zeus.core.cocoon.JSessionLogin
> > is not a Component
> >
> > Why?
> >
> > The component:
> >
> > public class JSessionLogin extends
> > org.apache.cocoon.acting.ComposerAction implements ThreadSafe {
> >
> > public Map act( Redirector redirector, SourceResolver resolver,
> > Map objectModel, String source, Par

Sitemap reloading

2002-01-29 Thread Ivan Rubin Ayma

My root sitemap does automatic reloading when I change it, synchronious,
as specified on cocoon.xconf, but my sub-sitemap behaves completly
different, it does reloading when he wants, or something like that.

Any hints?

Thanks,

Ivan

-
Please check that your 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: Object X is not a component error

2002-01-29 Thread Ivan Rubin Ayma

Vadim,

It helps me a lot. But I'm still a wandering rock! And keep on walking
as follows:

I instanciated my class outside cocoon, in the same project (same
parameters to the VM), and checked for instance of Component and it's
ok, it's an instance of:

org.apache.avalon.framework.component.Component

On my sitemap, if I replace my action for, for example,
org.apache.cocoon.acting.HelloAction, sitemap compilation goes ok.

So the problem should be my environment, which is not the best, but is
simple.
I'm using JBuilder to run Tomcat and Cocoon with jars.
I've included on the project all the tomcat jars and the
web-apps/cocoon/WEB-INF/lib/*.jar, where the avalon framework is
located.

I think the compilation of my component can't be the cause. I'm
compiling it with JBuilder's compiler.

More than one Component class? from where? I'm just using tomcat 4 jars
and cocoon 2 jars...

Different ClassLoaders? I don't quietly understand that, doesn't Cocoon
use the Java ClassLoader of the virtual machine running it? I see a
components.classloader package in cocoon, that's the class loader it
uses? Can the cause be that that classloader is not compatible with the
class loader of the virtual machine (JBuilder's VM) running it?

Thanks,

-Mensaje original-
De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 29 de enero de 2002 11:16
Para: [EMAIL PROTECTED]
Asunto: RE: Object X is not a component error


This exception is thrown when your object does not implement Component
interface:
 if (!(jSessionLogin instanceof Component)) throw
IllegalAccessException();

Usually this happens when your component does not implement (IIRC)
org.apache.avalon.component.Component. Also it happens when you have
*more* then one class Component loaded by Java due to use of different
ClassLoadrers and/or several class files for the same Component class.

I'm not sure that this could help you, but I don't know what's going
wrong on your system and can't suggest you anything right now.

Vadim

> -Original Message-
> From: Ivan Rubin Ayma [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 29, 2002 9:06 AM
> To: [EMAIL PROTECTED]
> Subject: Object X is not a component error
> 
> I tried to put the component in the package org.apache.cocoon.acting
> wondering what IllegalAccessException could be, but nothing.
> 
> I'm posting the complete java source, subsitemap and the cocoon error.
> 
> Thanks,
> 
> -Mensaje original-
> De: Ivan Rubin Ayma
> Enviado el: lunes, 28 de enero de 2002 18:05
> Para: [EMAIL PROTECTED]
> Asunto: Object X is not a component error
> 
> 
> I wrote the simplest component I could and at sitemap-compilation
cocoon
> keeps on giving me:
> 
> Error in sitemap configuration : Object Zeus.core.cocoon.JSessionLogin
> is not a Component
> 
> Why?
> 
> The component:
> 
> public class JSessionLogin extends
> org.apache.cocoon.acting.ComposerAction implements ThreadSafe {
> 
>   public Map act( Redirector redirector, SourceResolver resolver,
> Map objectModel, String source, Parameters par )
> throws Exception {
> 
>   return null;
>   }
> }
> 
> It's well compiled and in the right place.
> 
> Any hints?
> 
> Thanks,
> 
> -Mensaje original-
> De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Enviado el: lunes, 28 de enero de 2002 13:51
> Para: [EMAIL PROTECTED]
> Asunto: RE: one of those "The sitemap handler's sitemap is not
> available" errors
> 
> 
> > From: tom blondeau [mailto:[EMAIL PROTECTED]]
> >
> > btw. what's the problem with hsqldb. it only works fine if i
overwrite
> the
> > files in the WEB-INF/db with the original files everytime i restart
> the
> > servlet engine?
> 
> 
> Try ServerImpl from the CVS. Should work Ok now.
> 
> Vadim
> 
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>



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

Object X is not a component error

2002-01-29 Thread Ivan Rubin Ayma

I tried to put the component in the package org.apache.cocoon.acting
wondering what IllegalAccessException could be, but nothing.

I'm posting the complete java source, subsitemap and the cocoon error.

Thanks,

-Mensaje original-
De: Ivan Rubin Ayma 
Enviado el: lunes, 28 de enero de 2002 18:05
Para: [EMAIL PROTECTED]
Asunto: Object X is not a component error


I wrote the simplest component I could and at sitemap-compilation cocoon
keeps on giving me:

Error in sitemap configuration : Object Zeus.core.cocoon.JSessionLogin
is not a Component

Why?

The component:

public class JSessionLogin extends
org.apache.cocoon.acting.ComposerAction implements ThreadSafe {

public Map act( Redirector redirector, SourceResolver resolver,
Map objectModel, String source, Parameters par )
  throws Exception {

return null;
}
}

It's well compiled and in the right place.

Any hints?

Thanks,

-Mensaje original-
De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 28 de enero de 2002 13:51
Para: [EMAIL PROTECTED]
Asunto: RE: one of those "The sitemap handler's sitemap is not
available" errors


> From: tom blondeau [mailto:[EMAIL PROTECTED]]
> 
> btw. what's the problem with hsqldb. it only works fine if i overwrite
the
> files in the WEB-INF/db with the original files everytime i restart
the
> servlet engine?


Try ServerImpl from the CVS. Should work Ok now.

Vadim



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

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


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

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



Cocoon 2 - Internal server error



type internal-server-error

message Error in sitemap configuration : Object org.apache.cocoon.acting.JSessionLogin 
is not a Component

description org.apache.avalon.framework.configuration.ConfigurationException: Error in 
sitemap configuration : Object org.apache.cocoon.acting.JSessionLogin is not a 
Component

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/zeus/

exception

org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap 
configuration : Object org.apache.cocoon.acting.JSessionLogin is not a Component

path-info

zeus/

stacktrace

org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap 
configuration : Object org.apache.cocoon.acting.JSessionLogin is not a Component
at org.apache.cocoon.Cocoon.process(Cocoon.java:509)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
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.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
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:2344)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache

Object X is not a component error

2002-01-28 Thread Ivan Rubin Ayma

I wrote the simplest component I could and at sitemap-compilation cocoon
keeps on giving me:

Error in sitemap configuration : Object Zeus.core.cocoon.JSessionLogin
is not a Component

Why?

The component:

public class JSessionLogin extends
org.apache.cocoon.acting.ComposerAction implements ThreadSafe {

public Map act( Redirector redirector, SourceResolver resolver,
Map objectModel, String source, Parameters par )
  throws Exception {

return null;
}
}

It's well compiled and in the right place.

Any hints?

Thanks,

-Mensaje original-
De: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 28 de enero de 2002 13:51
Para: [EMAIL PROTECTED]
Asunto: RE: one of those "The sitemap handler's sitemap is not
available" errors


> From: tom blondeau [mailto:[EMAIL PROTECTED]]
> 
> btw. what's the problem with hsqldb. it only works fine if i overwrite
the
> files in the WEB-INF/db with the original files everytime i restart
the
> servlet engine?


Try ServerImpl from the CVS. Should work Ok now.

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




Simple XSL question

2002-01-28 Thread Ivan Rubin Ayma

Hello,

How can I make a XSLT transformation of just a couple of elements,
leaving the rest untouched, without having to select everything and
passing it through?

I'm trying to create pipelines involving a number of transformations
with a specific task each.

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




It's a way?

2002-01-25 Thread Ivan Rubin Ayma

Hello,

I have to make a web interface to an existing database java application.

The app is divided in a number of Data clases, that represent a table in
the DB, Win classes to show that data in differente ways in a swing
window, and Form classes to add-modify registers.

I think Cocoon is a good way to do this, my idea is to use those Win
classes and Form classes as generators, generating the XML
representation of the data and the information requiered to show it in a
window and as a form, and then use XSL transformations to convert that
to HTML and apply all the navigation issues.

Do you think is a viable approach?

Thanks,

Ivan

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

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




RE: Help me....

2002-01-09 Thread Ivan Rubin Ayma

Check out the site map, sitemap.xmap, and the documentation for it.

You have to specify there the structure for your application.

An improvment (!) on cocoon 2. A headache, but an improvment, I assure
you. Centralization.

-Mensaje original-
De: Malathi Rao [mailto:[EMAIL PROTECTED]]
Enviado el: miércoles, 09 de enero de 2002 7:58
Para: [EMAIL PROTECTED]
Asunto: Help me


Hi ,

 I have installed Cocoon 2.0 on Tomcat 4.0 i.e Catalina. I am able to
get
the required page when I give:
  http://localhost:8080/cocoon/

But one thing I could not understand is, Where to put the applications
that
we have developed i.e I have a set of XML ,XSL's . In which folder
should I
put them in order to view them in the browser ?
   I have created a folder called 'wap' in 
  %Tomcat%webapps/cocoon/wap and put them in that folder. When I give
the
url :
  http://localhost:8080/cocoon/wap/stock.xml 
  I am getting the error ..." The page can not be found " .

My doubts are:
 The way I have followed is correct or not ?
 Do I need to put them in Cocoon  and give  path to that
folder
 in Tomcat server.xml?
 If so where should I put them in Cocoon.? 
>From where can I get the examples using Cocoon and how to run them with
Tomcat 4.0 ?
  
Please help me in this matter.

  Thanks in advance..

regards
Malathi

-
Please check that your 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]>