Re: Fixes for the X11 problem are failing!!!

2001-10-04 Thread Ugo Cei

Olivier Rossel wrote:


 Solution 2: removing any reference to SVG and PDF.
 This should disable any call to Batik, which is the problematic library, 
 requiring the X11 display
 ***
 
 Removing anything concerning SVG does not solve the problem, in the 
 sitemap.xmap and the WEB-INF/.
 May be I missed something.
 But I still have a SVGBuilder trying to instanciate a batik 
 SVGDOMImplementation, which requires a X11 display.
 Note that serializer related to SVG, PDF and XML are disabled!!!

Stop your servlet container, remove all work directories and restart. Be 
sure to remove any references to svg in the sitemap, besides the 
serializers there are samples referring to it.

I have C2 running on a Solaris server without any display or X server, 
using Tomcat 3.2.3, so it must work.

Solution 3: use Xvfb if it is available on your platform. I use it on my 
development Linux box because, even though I have an X11 display, 
whenever I logout the X server is restarted and Tomcat just crashes. 
Took a while to figure out why I had to restart Tomcat every morning :).

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - 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: Cocoon2 with no batik at all.

2001-10-04 Thread aaldridg

I totally agree in principle, however, I work in a tightly controlled
environment where such decisions are not mine to make!

I'll keep trying to find a way around the problem.

Regards,

Anthony Aldridge
Lead Application developer

Managed Intranet Hosting
CSC
JPMorganChase
Personal GDP: 325-8338
MIH Hotline: 876-1300





Gregory Steuck [EMAIL PROTECTED] on 03/10/2001 18:42:43

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Cocoon2 with no batik at all.


 aaldridg == aaldridg  [EMAIL PROTECTED] writes:

aaldridg If I manage to solve the problem, I'll get back to you,
aaldridg if not - has anyone got a solution - no way I can
aaldridg install X on our servers.

You should consider installing Xvfb. Properly protected Xvfb
(i.e. with tcp port filtered out by the host firewall) is not a threat
to the system security.

Don't get me wrong, getting rid of the dependency is much better, but
if I had to choose between scrapping the work I've done to move my
application and installing and running Xvfb I would choose the latter.

And yes, I used to run Xvfb for months to automate InstallAnywhere
builds.

-
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: Fixes for the X11 problem are failing!!!

2001-10-04 Thread aaldridg

I experience the same behaviour as below, having removed the svg and pdf
references in sitemap. I also removed them from the cocoon.properties file
just in case - still no joy. H.



 **
 Solution 2: removing any reference to SVG and PDF.
 This should disable any call to Batik, which is the problematic
library,
 requiring the X11 display
 ***

 Removing anything concerning SVG does not solve the problem, in the
 sitemap.xmap and the WEB-INF/.
 Note that serializer related to SVG, PDF and XML are disabled!!!

Doesn't look like that:
 Thread-17/Handler: Error compiling sitemap
 java.lang.InternalError: Can't connect to X11 window server using
 'localhost:0.0' as the value of the DISPLAY variable.
[...]

org.apache.batik.dom.svg.SAXSVGDocumentFactory.init(SAXSVGDocumentFact
ory.java:59)
 at
org.apache.cocoon.xml.dom.SVGBuilder.init(SVGBuilder.java:44)
 at

org.apache.cocoon.serialization.SVGSerializer.init(SVGSerializer.java:
46)

Here an SVG serializer is instantiated, and this causes the problem.
Since svg2jpeg is next to the latest one who was instantiated
correctly in the default sitemap, can you please double check that you
removed that one too?





Gianugo Rabellino [EMAIL PROTECTED] on 03/10/2001 23:44:12

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Fixes for the X11 problem are failing!!!


Olivier,

 **
 Solution 1 : using PJA as an alternative to built-in AWT.
 PJA does not require a X server to launch
 ***

 Problem:
 java.lang.ExceptionInInitializerError: java.lang.ClassCastException:

I understand that PJA is quite old, so I'm not surprides to see this.


 **
 Solution 2: removing any reference to SVG and PDF.
 This should disable any call to Batik, which is the problematic
library,
 requiring the X11 display
 ***

 Removing anything concerning SVG does not solve the problem, in the
 sitemap.xmap and the WEB-INF/.
 Note that serializer related to SVG, PDF and XML are disabled!!!

Doesn't look like that:
 Thread-17/Handler: Error compiling sitemap
 java.lang.InternalError: Can't connect to X11 window server using
 'localhost:0.0' as the value of the DISPLAY variable.
[...]

org.apache.batik.dom.svg.SAXSVGDocumentFactory.init(SAXSVGDocumentFact
ory.java:59)
 at
org.apache.cocoon.xml.dom.SVGBuilder.init(SVGBuilder.java:44)
 at

org.apache.cocoon.serialization.SVGSerializer.init(SVGSerializer.java:
46)

Here an SVG serializer is instantiated, and this causes the problem.
Since svg2jpeg is next to the latest one who was instantiated
correctly in the default sitemap, can you please double check that you
removed that one too?

I'll do some tests tomorrow too, and let you know.

Ciao,

--
Gianugo Rabellino


-
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: Fixes for the X11 problem are failing!!!

2001-10-04 Thread Karl Oie

you really don't have to kick out all the nice batik and pdf stuff, if you
run unix/linux you can use xvfb which simulates a screen, you'll have to
install xfree, xfree-lib and xvfb, goto http://www.xfree86.org and get the
xvfb package

then make a script that starts Xvfb and set your DISPLAY variable to :1
before you start cocoon. this solves the awt problem without running x11 on
the server

example:

if [ $1 = stop ] ; then
# kill off any framebuffer running, kill kill kill :-)
kill -TERM `/sbin/pidof Xvfb`
elif [ $1=start -o $1=run ] ; then
# start up a virtual framebuffer for cocoon2's rendering
Xvfb :1 -screen 0 320x240x24 
fi

this setsup a virtual framebuffer for x to run in, now all the batik and
svg stuff works without running a real x server.

mvh karl oie





-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 4. oktober 2001 11:37
To: [EMAIL PROTECTED]
Subject: Re: Fixes for the X11 problem are failing!!!


I experience the same behaviour as below, having removed the svg and pdf
references in sitemap. I also removed them from the cocoon.properties file
just in case - still no joy. H.



 **
 Solution 2: removing any reference to SVG and PDF.
 This should disable any call to Batik, which is the problematic
library,
 requiring the X11 display
 ***

 Removing anything concerning SVG does not solve the problem, in the
 sitemap.xmap and the WEB-INF/.
 Note that serializer related to SVG, PDF and XML are disabled!!!

Doesn't look like that:
 Thread-17/Handler: Error compiling sitemap
 java.lang.InternalError: Can't connect to X11 window server using
 'localhost:0.0' as the value of the DISPLAY variable.
[...]

org.apache.batik.dom.svg.SAXSVGDocumentFactory.init(SAXSVGDocumentFact
ory.java:59)
 at
org.apache.cocoon.xml.dom.SVGBuilder.init(SVGBuilder.java:44)
 at

org.apache.cocoon.serialization.SVGSerializer.init(SVGSerializer.java:
46)

Here an SVG serializer is instantiated, and this causes the problem.
Since svg2jpeg is next to the latest one who was instantiated
correctly in the default sitemap, can you please double check that you
removed that one too?





Gianugo Rabellino [EMAIL PROTECTED] on 03/10/2001 23:44:12

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Fixes for the X11 problem are failing!!!


Olivier,

 **
 Solution 1 : using PJA as an alternative to built-in AWT.
 PJA does not require a X server to launch
 ***

 Problem:
 java.lang.ExceptionInInitializerError: java.lang.ClassCastException:

I understand that PJA is quite old, so I'm not surprides to see this.


 **
 Solution 2: removing any reference to SVG and PDF.
 This should disable any call to Batik, which is the problematic
library,
 requiring the X11 display
 ***

 Removing anything concerning SVG does not solve the problem, in the
 sitemap.xmap and the WEB-INF/.
 Note that serializer related to SVG, PDF and XML are disabled!!!

Doesn't look like that:
 Thread-17/Handler: Error compiling sitemap
 java.lang.InternalError: Can't connect to X11 window server using
 'localhost:0.0' as the value of the DISPLAY variable.
[...]

org.apache.batik.dom.svg.SAXSVGDocumentFactory.init(SAXSVGDocumentFact
ory.java:59)
 at
org.apache.cocoon.xml.dom.SVGBuilder.init(SVGBuilder.java:44)
 at

org.apache.cocoon.serialization.SVGSerializer.init(SVGSerializer.java:
46)

Here an SVG serializer is instantiated, and this causes the problem.
Since svg2jpeg is next to the latest one who was instantiated
correctly in the default sitemap, can you please double check that you
removed that one too?

I'll do some tests tomorrow too, and let you know.

Ciao,

--
Gianugo Rabellino


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

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







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

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


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

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




Cocoon 1.8.2 compatibility with Servlets2.3,JSP1.2,WebLogic 6.1

2001-10-04 Thread Raisa, Chetan


Hi there,
 Can some body le'me know which version of cocoon is compatible
with WebLogic 6.1!! Can I use the latest stable version of cocoon1.8.2 with
for servlets2.3, JSP1.2 and for WebLogic 6.1.
Thanks
Chetan

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




build an J2EE app.

2001-10-04 Thread jose . camacho


 I want to build an enterprise app with j2ee.  It will have JDBC to
SQLServer, with tomcat + cocoon, in fact. I'd like to know how have you
done it.
   thanx, José Blas.


-
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: build an J2EE app.

2001-10-04 Thread roger . day

ummm. Maybe this should be in the FAQ as well...

At 04/10/01 11:11:39, [EMAIL PROTECTED] wrote:
#   I want to build an enterprise app with j2ee.  It will have JDBC to
#  SQLServer, with tomcat + cocoon, in fact. I'd like to know how have you
#  done it.
# thanx, José Blas.
#
#
#  -
#  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]
#
Roger



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




General framework question

2001-10-04 Thread Søren Neigaard

Hi

I would love you comment on my idea of a framework I'm planning to make.
Whether it is possible, whether you think it's a good solution. Basicly all
comments are welcome.

I want to make a business layer, that always generates some generic (home
invented) XML to the presentation layer. Then I would like to use Cocoon to
use this XML, and present it for me. The reason that I want to use my own
XML, is that I want to be able to replace Cocoon with a total different
presentation layer (maybe my own implementation, who knows). My client side
people likes the Cocoon idea, and want it to be easy to build prototypes
fast (offcourse), so I still need a lot of the smart features of Cocoon.

Can this be done? Is it a good idea?

Med venlig hilsen/Best regards
Søren Neigaard
---
Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801


-
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 have prompt for download?

2001-10-04 Thread Hewko, Doug

I think you are right, but it seems to be more complicated than I initially
thought.

In the Cocoon2 sitemap.xmap, I can designate relationships. I noticed that
on my *.doc files, it does not matter if I have a mime-type specified or
not.

In the Tomcat map.xml file, you can also define what applications go with
what extensions. Just for fun, I associated *.bin with Word and Word came
up. 

Finally, there is the lovely Windows file association which I recently was
reminded about. Even if made the definition for *.doc files in sitemap.xmap
and map.xml the same as the *.bin files, Word would still load.

I could not find the extras menu, but any application changes would be out
of my scope. I would not be able to change the application settings for all
users who access my web site. I guess that is why most Word documents are
compressed as ZIP files. And here I thought it was just to save space and
not ensure a download prompt...

As for the priorities, I suspect that first is Cocoon, then Tomcat and
finally Windows.

But thanks for your reply, it did help me figure out this out a litte
better.

 -Original Message-
 From: Jörg Heinicke [mailto:[EMAIL PROTECTED]]
 Sent: October 3, 2001 8:47 PM
 To: [EMAIL PROTECTED]
 Subject: Re: How to have prompt for download?
 
 
 I think, this is a problem of Windows not of Cocoon. Because 
 I have a German
 version of Windows I can't tell you the right way. I try to 
 explain it:
 
 In the explorer we have a menu named 'Extras', it should be 
 named similarly
 in English, there 'directory options', 'file types', search 
 for '.doc',
 modify the options of '.doc', there is an option meaning 
 'confirm opening
 before download', this must be switched to yes.
 
 Hope this helps,
 
 Joerg
 
 - Original Message -
 From: Hewko, Doug [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, October 03, 2001 8:18 PM
 Subject: How to have prompt for download?
 
 
  How would you set up Cocoon2 to download a file instead of 
 opening an
  application for it? In my sitemap.xml, I have some word 
 documents defined
 as
  follows so I can put them all in one physical path.
 map:match pattern=_documents/**.doc
  map:read src=xmldocs/{1}.doc mime-type=application/msword/
 /map:match
 
  What would I need to change if I want Windows to give the 
 open or save
  prompt instead of automatically opening Word?
 
 
 
 -
 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: General framework question

2001-10-04 Thread Gianugo Rabellino

 I want to make a business layer, that always generates some generic
(home
 invented) XML to the presentation layer. Then I would like to use
Cocoon to
 use this XML, and present it for me. The reason that I want to use my
own
 XML, is that I want to be able to replace Cocoon with a total
different
 presentation layer (maybe my own implementation, who knows).

I fail to see why using a home invented XML helps you. My personal
rule of thumb is to use, whenever possible, standard XML grammars
(Docbook for documents, DSML for LDAP data, ebXML/RosettaNet for
business layers and so on). If there is already an estabilished
DTD/Schema for a given problem, why not use it?

Ciao,

--
Gianugo Rabellino



-
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: act under map:pipeline ??

2001-10-04 Thread Vadim Gritsenko

No, you can't have an action there (sitemap.xsl, lines: 486-493).
Surround it with match like this:

 map:pipelines
   map:pipeline
 map:match pattern=**
 map:act 
   map:match ..
 ...
   /map:match
   map:match 
 ...
   /map:match

   ..

 /map:act
 /map:match
   /map:pipeline
 /map:pipelines

Vadim


 -Original Message-
 From: RamsÊs Morales [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 03, 2001 3:12 PM
 To: [EMAIL PROTECTED]
 Subject: map:act under map:pipeline ??


 Hi.

 Can I have an action directly under a pipeline?? Something like this:

 map:pipelines
   map:pipeline

 map:act 
   map:match ..
 ...
   /map:match
   map:match 
 ...
   /map:match

   ..

 /map:act

   /map:pipeline
 /map:pipelines

 I'm asking because I have an action that I want executed for every
 element inside the pipeline.

 Thanks for your help.


 -
 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 have prompt for download?

2001-10-04 Thread Vadim Gritsenko

File type associations are in windows explorer,
tools - folder options - file types (on Win2000).

But the best solution is to use right-click
and save target as options ;)

Vadim

 -Original Message-
 From: Hewko, Doug [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 04, 2001 7:21 AM
 To: '[EMAIL PROTECTED]'
 Cc: '[EMAIL PROTECTED]'
 Subject: RE: How to have prompt for download?


 I think you are right, but it seems to be more complicated than I initially
 thought.

 In the Cocoon2 sitemap.xmap, I can designate relationships. I noticed that
 on my *.doc files, it does not matter if I have a mime-type specified or
 not.

 In the Tomcat map.xml file, you can also define what applications go with
 what extensions. Just for fun, I associated *.bin with Word and Word came
 up.

 Finally, there is the lovely Windows file association which I recently was
 reminded about. Even if made the definition for *.doc files in sitemap.xmap
 and map.xml the same as the *.bin files, Word would still load.

 I could not find the extras menu, but any application changes would be out
 of my scope. I would not be able to change the application settings for all
 users who access my web site. I guess that is why most Word documents are
 compressed as ZIP files. And here I thought it was just to save space and
 not ensure a download prompt...

 As for the priorities, I suspect that first is Cocoon, then Tomcat and
 finally Windows.

 But thanks for your reply, it did help me figure out this out a litte
 better.

  -Original Message-
  From: Jörg Heinicke [mailto:[EMAIL PROTECTED]]
  Sent: October 3, 2001 8:47 PM
  To: [EMAIL PROTECTED]
  Subject: Re: How to have prompt for download?
 
 
  I think, this is a problem of Windows not of Cocoon. Because
  I have a German
  version of Windows I can't tell you the right way. I try to
  explain it:
 
  In the explorer we have a menu named 'Extras', it should be
  named similarly
  in English, there 'directory options', 'file types', search
  for '.doc',
  modify the options of '.doc', there is an option meaning
  'confirm opening
  before download', this must be switched to yes.
 
  Hope this helps,
 
  Joerg
 
  - Original Message -
  From: Hewko, Doug [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, October 03, 2001 8:18 PM
  Subject: How to have prompt for download?
 
 
   How would you set up Cocoon2 to download a file instead of
  opening an
   application for it? In my sitemap.xml, I have some word
  documents defined
  as
   follows so I can put them all in one physical path.
  map:match pattern=_documents/**.doc
   map:read src=xmldocs/{1}.doc mime-type=application/msword/
  /map:match
  
   What would I need to change if I want Windows to give the
  open or save
   prompt instead of automatically opening Word?
 
 
 
  -
  Please check that your question has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

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

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



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

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




How to install an action ...

2001-10-04 Thread Arno Illmann

I did this:

1) downloaded DatabaseSelectAction.java from CVS and compiled it to 
..\cocoon\WEB-INF\classes\org\apache\cocoon\acting.

2) added to cocoons web.xml:

init-param
param-nameextra-classpath/param-name
param-valueC:\Programme\ApacheGroup\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\classes\org\apache\cocoon\acting\DatabaseSelectAction.class/param-value
/init-param

3) added to the sitemap of the tutorial web application example:

  map:actions
   map:action name=dbSel src=org.apache.cocoon.acting.DatabaseSelectAction/ !-- 
added --
   map:action name=dbAdd src=org.apache.cocoon.acting.DatabaseAddAction/
   map:action name=dbDel src=org.apache.cocoon.acting.DatabaseDeleteAction/
   map:action name=dbUpd src=org.apache.cocoon.acting.DatabaseUpdateAction/
   map:action name=form src=org.apache.cocoon.acting.FormValidatorAction/
  /map:actions

:) the error message after invoking the tutorial is :

org.apache.cocoon.ProcessingException: Exception in Handler: 
org.apache.avalon.framework.component.ComponentException: 
Could not set up Component for hint: org\apache\cocoon\www\tutorial\sitemap_xmap

Without map:action name=dbSel src=org.apache.cocoon.acting.DatabaseSelectAction/ 
it started seriously. I then tried other paths in init param extra classpath, and 
other funny things.

Could someone please shed some light on this. Thanks in advance, Arno Illmann

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




Problems with Cocoon 1.8.2

2001-10-04 Thread Mercedes Pérez


Hello,

I've installed cocoon1.8.2 sucessfully but  when i try to view a
page xsl i get the next error:


 java.lang.NullPointerException
at org.apache.cocoon.Engine.handle(Engine.java:473)-

if (!isHead) {
 OutputStream realOut = response.getOutputStream();
473- realOut.write (content);
 if (comment != null) realOut.write (commentBytes);
 realOut.flush ();
}

Could somebody help me, please?


Thanks in advances.



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

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




[C2.0b2] - ComponentManager

2001-10-04 Thread Adrian Geissel

Hi,

We looking at migrating our application from C1.8.2 over to C2.

In C1.x, we used Turbine for connection pooling, and we need to move over to
the Avalon CoponentManager framework.

There was one real advantage in using Turbine, where there is a
singleton-access to the connection-pool, thereby allowing it to be easily
integrated with external code. Basically, we have a tried-and-tested
database access library that takes utilises an internal ConnectionFactory
that calls into Turbine for its connections.

I have not found a similar factory method for accessing either the Cocoon
object, its ComponentManager, or any managed components. Have I missed
something, or is there a preferred approach? A non-singleton access to the
connection pool will require a potentially reasonable coding change.

Also, having a little difficulty in configuring a pooled connection to
PostgreSQL - I've followed the instructions in the 'datasources' document,
but the ComponentManager complains that the named component cannot be found.
I've included the relevant bits from both cocoon.xconf, the calling code
(from within an Action) and log-file extract.

Any and all help will be greatly appreciated,
Many thanks
Adrian


== cocoon.xconf extract ==
  markup-languages
!-- Removed for clarity --
  /markup-languages

!--
  datasources
  --
  component
name=org.apache.avalon.excalibur.datasource.DataSourceComponentSelector
   class=org.apache.cocoon.CocoonComponentSelector
!-- Data source details for the ZDAM database --
component-instance name=zdam
class=org.apache.avalon.util.datasource.JdbcDataSource
  pool-controller min=2 max=10/
  auto-commitfalse/auto-commit
  dburljdbc:postgresql://193.120.120.11/zdam_test/dburl
  usersql/user
  passwordgarfield/password
/component-instance
  /component

!--
  /datasources
  --

== cocoon.xconf extract ==

== calling code extract ==

ComponentSelector selector = (ComponentSelector)
manager.lookup(org.apache.cocoon.Roles.DB_CONNECTION);
ConnectionFactory.dataSource = (DataSourceComponent)
selector.select(zdam);

== calling code extract ==

== log-file extract ==
org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
ComponentSelector could not find the component for hint: zdam
 at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca
liburComponentSelector.java:239)
 at
com.zenark.zdam.cocoon.action.DoUserLoginAction.compose(DoUserLoginAction.ja
va:102)
 at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:98)
 at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:81)
 at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponen
t(ExcaliburComponentSelector.java:383)
 at
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav
a:231)
 at
org.apache.cocoon.www.sitemap_xmap$Configurer.configActions(sitemap_xmap.jav
a:929)
 at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:276)
 at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:108)
 at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:81)
 at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java:118)
 at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addComp
iledComponent(ProgramGeneratorImpl.java:292)
 at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:273)
 at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:179)
 at org.apache.cocoon.sitemap.Handler.run(Handler.java:204)
 at java.lang.Thread.run(Thread.java:484)

== log-file extract ==



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




minimal configuration for cocoon 2

2001-10-04 Thread Guillaume Rousse

Hello.
I'm trying to find the smallest cocoon configuration for a simple xml-html 
application. I used original cocoon directory and removed everything i can 
from sitemap and configuration. This is OK.
Now i'm trying to remove useless jars, as stated in docs, and restart tomcat 
everytime to check my app still works. I succeded from many package (xt.jar 
xerces_1_4_3.jar rhino.jar bsf.jar fop-0_20_1-dev.jar batik-libs.jar 
jimi-1.0.jar jstyle.jar, junit.jar, velocity.jar), but as soon as i remove 
either hsqldb.jar or maybeupload.jar, it breaks (interupted connexion from 
the server) with nothing worth in the logs. Most curious is that just putting 
the jars back (and restart tomcat, of course) is not enough, i have to put 
back every removed jars so far.
I highly suspect they are still some configuration options related to 
database of upload lying in configuration files, but i didn't found them. Or 
are they default options ?

I use cocoon 2 rc1 on Linux, with tomcat 3.2.3. I'm joining configuration 
files.
-- 
Guillaume Rousse [EMAIL PROTECTED]
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html


?xml version=1.0?
cocoon version=2.0

!-- = General Components === --

  !-- The default parser used in the Apache Cocoon 2 system is
   org.apache.cocoon.components.parser.JaxpParser.
   Apache Cocoon 2 system requires a JAXP 1.1 parser.
   If you have problems because your servlet environment uses its own
   parser not conforming to JAXP 1.1 try using the alternative
   XercesParser instead of the JaxpParser. To activate the XercesParser
   move the line below starting with parser ... out of this comment block.
   You also than have to add a system property to your JVM
   (probably on the startup of your servlet engine like this:

   -Dorg.apache.cocoon.components.parser.Parser=org.apache.cocoon.components.parser.XercesParser

  parser class=org.apache.cocoon.components.parser.XercesParser/
  --

  hsqldb-server/

  !-- Storing:
   maxobjects: Indicates how many objects will be hold in the cache.
   When the number of maxobjects has been reached. The
   last object in the cache will be thrown out.
   threadpriority: Indicates the priority of the writer thread.
   (1 is the lowest priority and 10 is the highest).
   filesystem: Turns the filesystem storage for objects on or off.
  --
  store class=org.apache.cocoon.components.store.MRUMemoryStore logger=root.store
 parameter name=maxobjects value=100/
 parameter name=threadpriority value=5/
 parameter name=filesystem value=true/
  /store

  !-- Store Janitor:
freememory = How much free memory shall be available in the jvm
heapsize = Indicates the limit of the jvm memory consumption
cleanupthreadinterval = How often shall the cleanup thread check memory
threadpriority = Indicates the thread priority of the cleanup thread

Be carefull with the heapsize and freememory paramters. Wrong values can
cause high cpu usage.
Example configuration:
Jvm settings: 
  -Xms1 -Xmx2
store-janitor settings:
   parameter name=freememory value=5000/
   parameter name=heapsize value=15000/
  
Heapsize must be higher then the -Xms parameter and freememory
between those both.
  --
  store-janitor class=org.apache.cocoon.components.store.StoreJanitorImpl logger=root.store
 parameter name=freememory value=100/
 parameter name=heapsize value=6000/
 parameter name=cleanupthreadinterval value=10/
 parameter name=threadpriority value=5/
  /store-janitor

  xslt-processor class=org.apache.cocoon.components.xslt.XSLTProcessorImpl logger=root.xslt
 parameter name=use-store value=true/
  /xslt-processor

  !-- The url factory adds special url protocols to the system, they
   are then available inside Cocoon, e.g. as a source argument
   for one of the sitemap components --
  url-factory
protocol name=resource class=org.apache.cocoon.components.url.ResourceURLFactory/
protocol name=context  class=org.apache.cocoon.components.url.ContextURLFactory/
  /url-factory

  !-- The source handler adds special url protocols to the system, they
   are then available inside Cocoon, e.g. as a source argument
   for one of the sitemap components. --
  source-handler/

  !-- The ProgamGenerator builts programs from a XML document written in 
   a MarkupLanguage.
   auto-reload: 
   root-package: persistent code repository.
   preload:  --
  program-generator
parameter name=auto-reload value=true/
parameter name=root-package value=org.apache.cocoon.www/
parameter name=preload value=true/
  /program-generator

  !-- The JspGenerator selects a JSPEngine component. The JSPEngine component launches 
   a JSP servlet engine of your servlet container, feeds the HttpRequest into the JSP 
  

Re: [C2.0b2] - ComponentManager

2001-10-04 Thread Berin Loritsch

Adrian Geissel wrote:
 
 Hi,
 
 We looking at migrating our application from C1.8.2 over to C2.
 
 In C1.x, we used Turbine for connection pooling, and we need to move over to
 the Avalon CoponentManager framework.
 
 There was one real advantage in using Turbine, where there is a
 singleton-access to the connection-pool, thereby allowing it to be easily
 integrated with external code. Basically, we have a tried-and-tested
 database access library that takes utilises an internal ConnectionFactory
 that calls into Turbine for its connections.
 
 I have not found a similar factory method for accessing either the Cocoon
 object, its ComponentManager, or any managed components. Have I missed
 something, or is there a preferred approach? A non-singleton access to the
 connection pool will require a potentially reasonable coding change.
 
 Also, having a little difficulty in configuring a pooled connection to
 PostgreSQL - I've followed the instructions in the 'datasources' document,
 but the ComponentManager complains that the named component cannot be found.
 I've included the relevant bits from both cocoon.xconf, the calling code
 (from within an Action) and log-file extract.
 
 Any and all help will be greatly appreciated,
 Many thanks
 Adrian
 
 == cocoon.xconf extract ==
   markup-languages
 !-- Removed for clarity --
   /markup-languages

datasources
  jdbc name=zdam
pool-controller min=2 max=10/
auto-commitfalse/auto-commit
!-- Supply the correct class name.  The instructions
 tell you to place this in web.xml, but this is
 now possible --
driverorg.postgresql.driver.JDBCDriver/driver
dburljdbc:postgesql://193.120.120.11/zdam_test/dburl
usersql/user
passwordgarfield/password
  /jdbc
/datasources

 
 !--
   datasources
   --
   component
 name=org.apache.avalon.excalibur.datasource.DataSourceComponentSelector
class=org.apache.cocoon.CocoonComponentSelector
 !-- Data source details for the ZDAM database --
 component-instance name=zdam
 class=org.apache.avalon.util.datasource.JdbcDataSource
   pool-controller min=2 max=10/
   auto-commitfalse/auto-commit
   dburljdbc:postgresql://193.120.120.11/zdam_test/dburl
   usersql/user
   passwordgarfield/password
 /component-instance
   /component
 
 !--
   /datasources
   --
 
 == cocoon.xconf extract ==
 
 == calling code extract ==
 
 ComponentSelector selector = (ComponentSelector)
 manager.lookup(org.apache.cocoon.Roles.DB_CONNECTION);
 ConnectionFactory.dataSource = (DataSourceComponent)
 selector.select(zdam);
 
 == calling code extract ==
 
 == log-file extract ==
 org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
 ComponentSelector could not find the component for hint: zdam
  at
 org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca
 liburComponentSelector.java:239)
  at
 com.zenark.zdam.cocoon.action.DoUserLoginAction.compose(DoUserLoginAction.ja
 va:102)
  at
 org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
 faultComponentFactory.java:98)
  at
 org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
 ThreadSafeComponentHandler.java:81)
  at
 org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponen
 t(ExcaliburComponentSelector.java:383)
  at
 org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav
 a:231)
  at
 org.apache.cocoon.www.sitemap_xmap$Configurer.configActions(sitemap_xmap.jav
 a:929)
  at org.apache.cocoon.www.sitemap_xmap.configure(sitemap_xmap.java:276)
  at
 org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
 faultComponentFactory.java:108)
  at
 org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
 ThreadSafeComponentHandler.java:81)
  at
 org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
 or(GeneratorSelector.java:118)
  at
 org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addComp
 iledComponent(ProgramGeneratorImpl.java:292)
  at
 org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
 eResource(ProgramGeneratorImpl.java:273)
  at
 org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
 ogramGeneratorImpl.java:179)
  at org.apache.cocoon.sitemap.Handler.run(Handler.java:204)
  at java.lang.Thread.run(Thread.java:484)
 
 == log-file extract ==
 
 -
 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 

Re: minimal configuration for cocoon 2

2001-10-04 Thread Piroumian, Konstantin

Hi!

I think, that the problem comes from the build process. I suspect, that you
have hsqldb.jar and maybeupload.jar in your xml-cocoon/lib directory and
this causes the build process to use some specific classes to build the
core.

Try to make clean rebuild of C2 (with removed hsqldb.jar, maybeupload.jar,
xt.jar, batik-all.jar, etc.) and then you'll get a minimal Cocoon. The
question had been asked many times in cocoon-dev, but it seems that nobody
can decide what is the minimal Cocoon.

Regards,
Konstantin Piroumian

- Original Message -
From: Guillaume Rousse [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 6:46 PM
Subject: minimal configuration for cocoon 2


 Hello.
 I'm trying to find the smallest cocoon configuration for a simple
xml-html
 application. I used original cocoon directory and removed everything i can
 from sitemap and configuration. This is OK.
 Now i'm trying to remove useless jars, as stated in docs, and restart
tomcat
 everytime to check my app still works. I succeded from many package
(xt.jar
 xerces_1_4_3.jar rhino.jar bsf.jar fop-0_20_1-dev.jar batik-libs.jar
 jimi-1.0.jar jstyle.jar, junit.jar, velocity.jar), but as soon as i remove
 either hsqldb.jar or maybeupload.jar, it breaks (interupted connexion from
 the server) with nothing worth in the logs. Most curious is that just
putting
 the jars back (and restart tomcat, of course) is not enough, i have to put
 back every removed jars so far.
 I highly suspect they are still some configuration options related to
 database of upload lying in configuration files, but i didn't found them.
Or
 are they default options ?

 I use cocoon 2 rc1 on Linux, with tomcat 3.2.3. I'm joining configuration
 files.
 --
 Guillaume Rousse [EMAIL PROTECTED]
 GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html








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




Action - modify / add parameter to Reguest

2001-10-04 Thread Kenneth Petersen

I am trying to run the Action example from the Cocoon 2 website. My problem is that 
the action class in the example add's an Attribute named hello to the request, but 
the XSP-servlet uses a Parameter named hello. This of cause results in the 
XSP-servlet getting and using the value null.

I have tried to figure out how to add a Parameter to the request instead of a 
Attribute, but have had no luck so far. Does anyone know how to do this? Alternativly 
I would like to know how to use an Action to pass parameters/variables/values to the 
xsp-page.

Regards
KP

Versions used:
Tomcat 4.0 beta 7
JDK 1.4 beta 2
Cocoon 2 beta 2

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




iMac and IE4.5

2001-10-04 Thread Brent L Johnson

I'm having a serious issue with iMac's running IE4.5.  I just put a new site
into production which uses Cocoon.  It's been great, and we've gotten a lot
of great response (not to mention the fact that since I designed it using
Cocoon it's really easy to make content modification).

But, the only negative feedback I've received is that iMac's running IE4.5
only see the HTML code.  When the person goes to our website, the page does
not get displayed (like I said, just all the HTML code - so it's getting
transformed).  We have some macs internally, and we've tested the site and
it runs fine on regular Mac's (G4's).  It seems to be limited to just iMacs,
and just IE4.5.

Here are my formatter settings in cocoon.properties (I'm convinced it HAS to
have something to do with this).

I had it set to this:
formatter.text/html.doctype-public = -//W3C//DTD HTML 4.0//EN
formatter.text/html.doctype-system = Transitional

In an attempt to fix the iMac problem I set it to this:
formatter.text/html.doctype-public = -//W3C//DTD HTML 4.0 Transitional//EN
formatter.text/html.doctype-system =
http://www.w3.org/TR/REC-html40/loose.dtd

But neither one seemed to help.  This is a serious problem (since our site
is aimed at teachers and a lot of schools use iMacs) that I've been unable
to resolve.  Has anyone had this problem?  Does anyone have ANY ideas on how
I can fix this?  I really need some help on this.

Thanks,

- Brent


-
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: iMac and IE4.5

2001-10-04 Thread Heath Stewart

Changing the DTD of the page won't stop that kind of behavior. That has to
do with mime types. It seems that iMac+IE4.5 is getting the stream as
text/plain. Are you using the browser capacity database? There could be
something in there if the problem is limited to a specific platform. Also,
if you use a different stylesheet, make sure you have xsl:output
method=html media-type=text/html [...] / and see if that helps. In
fact, you could even include that in your regular stylesheet (or only xsl,
if you only use one) and see if that helps. I'm not sure how Xalan or Xerces
use it, but since they are both supposed to be better than MS's XML Parser
and *it* can do it, I'm sure either one of the Java solutions can, too.

Heath Stewart
Systems Administrator / Developer
EsotericRealm
http://www.esotericrealm.com/~hstewart
- Original Message -
From: Brent L Johnson [EMAIL PROTECTED]
To: Cocoon-Users [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 10:16 AM
Subject: iMac and IE4.5


 I'm having a serious issue with iMac's running IE4.5.  I just put a new
site
 into production which uses Cocoon.  It's been great, and we've gotten a
lot
 of great response (not to mention the fact that since I designed it using
 Cocoon it's really easy to make content modification).

 But, the only negative feedback I've received is that iMac's running IE4.5
 only see the HTML code.  When the person goes to our website, the page
does
 not get displayed (like I said, just all the HTML code - so it's getting
 transformed).  We have some macs internally, and we've tested the site and
 it runs fine on regular Mac's (G4's).  It seems to be limited to just
iMacs,
 and just IE4.5.

 Here are my formatter settings in cocoon.properties (I'm convinced it HAS
to
 have something to do with this).

 I had it set to this:
 formatter.text/html.doctype-public = -//W3C//DTD HTML 4.0//EN
 formatter.text/html.doctype-system = Transitional

 In an attempt to fix the iMac problem I set it to this:
 formatter.text/html.doctype-public = -//W3C//DTD HTML 4.0 Transitional//EN
 formatter.text/html.doctype-system =
 http://www.w3.org/TR/REC-html40/loose.dtd

 But neither one seemed to help.  This is a serious problem (since our site
 is aimed at teachers and a lot of schools use iMacs) that I've been unable
 to resolve.  Has anyone had this problem?  Does anyone have ANY ideas on
how
 I can fix this?  I really need some help on this.

 Thanks,

 - Brent


 -
 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: Action - modify / add parameter to Reguest

2001-10-04 Thread Piroumian, Konstantin

The answer is: use request attributes for that. Request params are immutable
by Servlet specification and you should use request attributes for such
things. Change your XSP page to use attributes and everything will be fine.

There is another - in my opinion a hacky way - of passing params: you can
just create a new request object and replace the original request by it. I'm
not sure that it can be implemented inside of an action, but it's a possible
way.

Regards,
Konstantin Piroumian

- Original Message -
From: Kenneth Petersen [EMAIL PROTECTED]
To: users [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 7:16 PM
Subject: Action - modify / add parameter to Reguest


 I am trying to run the Action example from the Cocoon 2 website. My
problem is that the action class in the example add's an Attribute named
hello to the request, but the XSP-servlet uses a Parameter named hello.
This of cause results in the XSP-servlet getting and using the value null.

 I have tried to figure out how to add a Parameter to the request instead
of a Attribute, but have had no luck so far. Does anyone know how to do
this? Alternativly I would like to know how to use an Action to pass
parameters/variables/values to the xsp-page.

 Regards
 KP

 Versions used:
 Tomcat 4.0 beta 7
 JDK 1.4 beta 2
 Cocoon 2 beta 2

 -
 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: [C2.0b2] - ComponentManager

2001-10-04 Thread Adrian Geissel


- Original Message -
From: Berin Loritsch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 3:57 PM
Subject: Re: [C2.0b2] - ComponentManager


 datasources
   jdbc name=zdam
 pool-controller min=2 max=10/
 auto-commitfalse/auto-commit
 !-- Supply the correct class name.  The instructions
  tell you to place this in web.xml, but this is
  now possible --
 driverorg.postgresql.driver.JDBCDriver/driver
 dburljdbc:postgesql://193.120.120.11/zdam_test/dburl
 usersql/user
 passwordgarfield/password
   /jdbc
 /datasources


That worked - now the connection seems to be available through the
ComponentManager
Thanks for your help,
Adrian




-
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: General framework question

2001-10-04 Thread Darren Gibbons

 I want to make a business layer, that always generates some generic (home
 invented) XML to the presentation layer.

Søren,

You might want to take a look at Maverick: http://mav.sourceforge.net

It's yet another MVC framework for Java that uses JavaBeans as a model,
although Maverick presents the model directly to XSLT to allow you to
manipulate it via the DOM without having the intermediate step of generating
XML.

If you don't want to use XSLT, you can also use JSP or Velocity with it.
The API is quite simple as well.

Darren.




--
Darren Gibbons[EMAIL PROTECTED]
OpenRoad Communications   ph: 604.681.0516
Internet Application Development fax: 604.681.0916
Vancouver, B.C. http://www.openroad.ca


-
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: [C2] Newbie: How to start a new proyect ...

2001-10-04 Thread Arno Illmann

Eduardo Godoy Vega wrote:

 How is the best way to start a new context in Tomcat+Cocoon2, I want to
 create a XSP based proyect...

In tomcat/conf/server.xml:

[... other configurations...]

ContextManager debug=0 workDir=work showDebugInfo=true 

[... other configurations...]

Context path=/cocoon 
 docBase=webapps/cocoon
 debug=0
 reloadable=true 
/Context

/ContextManager

If you want to use apache as http server with tomcat on another port you must 
configure the mod_jk file here. This is described in the installation instruction too.


 What do I have to modify in Tomcat (ver. 3.2.3)?
 What does my new WEB-INF/web.xml must include ?

You make a new subfolder in cocoons folder and have to match requests in cocoons 
sitemap.xmap file to your subfolder sitemap file and there to your files. You do not 
need the deployment descriptor web.xml in the beginning. Sitemap syntax usage is found 
a lot in itself and on the cocoon site. 

And visit http://www.pigbite.co.uk/ctwig , it is very good for starting with cocoon.


Best regards, Arno Illmann

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

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




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

2001-10-04 Thread Eduardo Godoy Vega

How to fix it ?? (I don't really understand this error msg).

Eduardo.


ERROR   (2001-10-04) 15:24.58:835   [cocoon  ] (/cocoon/unveil/)
Thread-16/Handler: Error compiling sitemap
java.lang.RuntimeException: No more DTM IDs are available
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generat
eCode(LogicsheetCodeGenerator.java:130)
at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generate
Code(AbstractMarkupLanguage.java:291)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:313)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:275)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:192)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
at java.lang.Thread.run(Thread.java:484)


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




nested stylesheets

2001-10-04 Thread Aurelien

Hi,

(sorry if this kindof a repost, I didn't see the message on the list, 
and neither did it show in my sent items...)

I've already managed to have some ejb's basically exposed as taglibs. 
Now, I'd like to be able to nest custom tags:

I have a method that checks if a user has certain rights (I do this in 
order to have a centralized session/roles mechanism so as to be able to 
have several servlet engines sharing a common set of users), for example 
with a tag like this:

gatekeeper:checkUser sessionId=... requestId=.../

And I have another bean that provides information about sport events:

infokiosk:getSoccerScore matchId=.../

I'd like to be able to nest tags, so I can delegate basic logic to XML 
authors that don't want to hear about programming. They'd do something 
like this (in an xsp document):

infokiosk:getSoccerScore matchId=...
   infokiosk:checkAccess
 gatekeeper:checkUser sessionId=... requestId=.../
   /infokiosk:checkAccess
/infokiosk:getSoccerScore

Has someone already tried this ?

I looked into util.xsl, but I couldn't understand how they implement a 
similar example which is documented in cocoon2's online help.

Any help is greatly appreciated !

Aurélien


-
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: can xsp use javabean?

2001-10-04 Thread Juergen Sonnauer

I've found a little C2-XSP Taglib to help with bean-handling. You might find it
useful to have useBean, getProperty and setProperty tags in your XSP pages.
Look at http://www.oio.de/m/taglib/beanhelp.zip

Regards

- Original Message - 
From: YANLIAN [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 5:15 PM
Subject: can xsp use javabean?


 Hi;
 
 Can xsp use javabean like jsp? If not, how to implement shopping cart using
 cocoon/xsp? Thanks.
 
 Lian
 
 
 -
 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: installing of actions

2001-10-04 Thread Arno Illmann

I forgot ... from cocoon log:

WARN(2001-10-04) 22:12.55:030   [cocoon  ] (/cocoon/xsptest/welcome) 
Thread-15/sitemap_xmap: org.apache.cocoon.acting.DatabaseSelectAction
java.lang.ClassNotFoundException: org.apache.cocoon.acting.DatabaseSelectAction
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

[... more descriptions ...]

ERROR   (2001-10-04) 22:12.55:030   [cocoon  ] (/cocoon/xsptest/welcome) 
Thread-15/GeneratorSelector: Could not set up Component for hint: 
org\apache\cocoon\www\xsptest\sitemap_xmap
org.apache.avalon.framework.configuration.ConfigurationException: Sitemap: 
org.apache.cocoon.acting.DatabaseSelectAction

[... more descriptions ...]

Package problems? The class file is found. From root.log:

DEBUG   (2001-10-04) 22:41.13:430   [root] (Unknown-URI) 
Unknown-thread/CocoonServlet: extraClassPath is absolute: 
C:\Programme\ApacheGroup\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\classes\org\apache\cocoon\acting\TestHeaderAction.class;

And its in the path. But the package org.apache.cocoon.acting should be in 
\cocoon\WEB-INF\classes\org\apache\cocoon\acting.

Or should it be If it is a pre-written action, simply include the jar in 
WEB-INF/libs. as I found now in the mail lists (mailman.realtime.com is closed till 
december)?

...

No, was the same error and after configuring the cocoon web.xml with

init-param
param-nameextra-classpath/param-name
param-valueC:\Programme\ApacheGroup\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\lib\org\apache\cocoon\acting\TestHeaderAction.class;/param-value
/init-param

it was recognized in the root.log, but the error is the same.

Next thing I tried was a test action class without packaging and I placed it in 
WEB-INF/libs. But the same error message ...


*
*  
 *
*   Any suggestions or a short overview in installing actions are very welcome, 
Arno*
*  
 *
*

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




About connecting pipelines - something is wrong.....

2001-10-04 Thread Alexander Smirnoff

Hi evryone,

The same problem still bothering me:

map:pipeline
 map:match pattern=request/messages
   map:generate src=cocoon:/req/
   map:serialize type=xml/
 /map:match
/map:pipeline
map:pipeline internal-only=true
 map:match pattern=req
   map:generate src=content/xml/cover.xml/
   map:serialize type=xml/
 /map:match
/map:pipeline

This example works fine, but when I use map:generate type=stream/ in the
second pipeline I'm getting an error: org.apache.cocoon.ProcessingException:
Exception in StreamGenerator.generate(): java.lang.ClassCastException:
org.apache.cocoon.environment.wrapper.RequestWrapper.

Is this a BUG? Or its just me?

My basic idea is to get request XML from the client, transform it with XSLT
into legal XSP, process it in the second pipeline and get it back to the
client.


Alexander Smirnoff


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




How to use the C2 Pool and/or ComponentManager for persistant objects?

2001-10-04 Thread Jan



Hello cocoon world!
I am using a managerthat reads a config file 
and provides some modules and other useful objects.
I would intend this manager object (or maybe some 
more instances can be created to increase the speed of access)to be loaded 
with cocoon and persist in memory so every instance of my generator classes can 
access it. How would I do this? In logfiles you can read abjects that are 
retrived from and returned to a pool. This would be quite what I want. But my 
investigation of that Poolable stuff didn't get far.
Thankful for any help is: 
Jan.


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

2001-10-04 Thread Faulkner, Perry

Hi Eduardo,

I had this error when cocoon.war was out of step with the contents of
{TOMCAT_HOME}\webapps\cocoon\. My solution was to stop tomcat, delete the
{TOMCAT_HOME}\webapps\cocoon tree and restart tomcat so that it rebuilds the
tree from the cocoon.war file! The DTM message comes from xalan and doesn't
appear relevant to anything, just the whole thing has gone crazy!

HTH, Perry.

-Original Message-
From: Eduardo Godoy Vega [mailto:[EMAIL PROTECTED]]
Sent: Friday, 5 October 2001 5:30
To: Cocoon-Users
Subject: [C2] Err-Msg: No more DTM IDs are available 


How to fix it ?? (I don't really understand this error msg).

Eduardo.


ERROR   (2001-10-04) 15:24.58:835   [cocoon  ] (/cocoon/unveil/)
Thread-16/Handler: Error compiling sitemap
java.lang.RuntimeException: No more DTM IDs are available
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generat
eCode(LogicsheetCodeGenerator.java:130)
at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generate
Code(AbstractMarkupLanguage.java:291)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:313)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:275)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:192)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
at java.lang.Thread.run(Thread.java:484)


-
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: [C2] Err-Msg: No more DTM IDs are available ????

2001-10-04 Thread Darren Gibbons

Eduardo,

I can't help decipher this error message (I'm new to Cocoon), but I got it
yesterday and I did get a workaround.  I'm using Tomcat4+CocoonRC1a.

I was going through the excellent CTWIG tutorial, and had cut-and-pasted the
examples from his page into the build.xml and build.xsl files.  When I tried
to run them, I got the same no more DTM ids error message.  After much
frustration, I used the downloadable example files from his site, and it has
worked fine since.

I'm guessing there's some kind character in the file that corrupted the XML
file when I cut/pasted it, but I didn't bother to track down the specific
problem after I got it working.

I realize this isn't a great explanation, but I hope it helps.

Good luck,

Darren.

--
Darren Gibbons[EMAIL PROTECTED]
OpenRoad Communicationsnew phone: 604.694.0554
Internet Application Development new fax: 604.694.0558
Vancouver, B.C. http://www.openroad.ca
__
 Please note our new phone number: 604.694.0554

 -Original Message-
 From: Eduardo Godoy Vega [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 04, 2001 12:30 PM
 To: Cocoon-Users
 Subject: [C2] Err-Msg: No more DTM IDs are available 


 How to fix it ?? (I don't really understand this error msg).

 Eduardo.


 ERROR   (2001-10-04) 15:24.58:835   [cocoon  ] (/cocoon/unveil/)
 Thread-16/Handler: Error compiling sitemap
 java.lang.RuntimeException: No more DTM IDs are available
   at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
   at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
   at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
   at
 org.apache.cocoon.components.language.markup.LogicsheetCodeGenerat
 or.generat
 eCode(LogicsheetCodeGenerator.java:130)
   at
 org.apache.cocoon.components.language.markup.AbstractMarkupLanguag
 e.generate
 Code(AbstractMarkupLanguage.java:291)
   at
 org.apache.cocoon.components.language.generator.ProgramGeneratorIm
 pl.generat
 eResource(ProgramGeneratorImpl.java:313)
   at
 org.apache.cocoon.components.language.generator.ProgramGeneratorIm
 pl.createR
 esource(ProgramGeneratorImpl.java:275)
   at
 org.apache.cocoon.components.language.generator.ProgramGeneratorIm
 pl.load(Pr
 ogramGeneratorImpl.java:192)
   at org.apache.cocoon.sitemap.Handler.run(Handler.java:208)
   at java.lang.Thread.run(Thread.java:484)


 -
 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: [C2] Err-Msg: No more DTM IDs are available ????

2001-10-04 Thread Stephan Michels



On Fri, 5 Oct 2001, Faulkner, Perry wrote:

 Hi Eduardo,

 I had this error when cocoon.war was out of step with the contents of
 {TOMCAT_HOME}\webapps\cocoon\. My solution was to stop tomcat, delete the
 {TOMCAT_HOME}\webapps\cocoon tree and restart tomcat so that it rebuilds the
 tree from the cocoon.war file! The DTM message comes from xalan and doesn't
 appear relevant to anything, just the whole thing has gone crazy!


I got a similar exception every time when I start cocoon. I uses suse 7.1
linux for ppc. The same installation runs on a i386 platform without
problems.

java.lang.RuntimeException: No more DTM IDs are available
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170)
at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
at
org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518)
at
org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518)
at
org.apache.xerces.parsers.SAXParser.endDocument(SAXParser.java:1230)
at
org.apache.xerces.validators.common.XMLValidator.callEndDocument(XMLValidator.java:1080)
at
org.apache.xerces.framework.XMLDocumentScanner$EndOfInputDispatcher.dispatch(XMLDocumentScanner.java:1499)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
[...]


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




org.apache.cocoon.ProcessingException

2001-10-04 Thread Ling Kok Choon

Hi,

  When i run a xsp, i got the error below : 

org.apache.cocoon.ResourceNotFoundException: Could not access component for hint: 
org\apache\cocoon\www\xml\aa_result_xsp:org.apache.avalon.framework.component.ComponentException:
 Could not access component for hint: org\apache\cocoon\www\xml\aa_result_xsp

May i know how to solve the error ? I tried to modified my xsp, but the error is not 
static, 
after i make some changes in the xsp, it work and i make a backup for it , then i add 
something 
to the xsp again, the error come out, so i restore back the old version of my xsp, but 
the error 
still occur.

may i know what is happening ?

Thank You.


regards,

Kok Choon.

Name: Ling Kok Choon
E-mail: Ling Kok Choon [EMAIL PROTECTED]
Date: 10/05/01
Time: 08:15:58

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions



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




:Error creating the resource

2001-10-04 Thread Joseph Rajkumar


Hi
 I have an installation using Tomcat-4.0 and Cocoon-2.0B2.
Does any one know why I am getting this error when I access
"Insert Department" and "Insert Employees" whereas the other one
"Manage Employees" link works just fine.
 These are the examples in Cocoon-2.0B2.
Thanks
Joseph Rajkumar

http://64.192.57.189/cocoon/forms/add-department

Title: :Error creating the resource






Error creating the resource


Language Exception


details


from


sourceorg.apache.cocoon.ProcessingException


descriptionorg.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error during compilation: Not enough space


extra info



org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error during compilation: Not enough space




org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error during compilation: Not enough space
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:278)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:192)
	at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:145)
	at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:146)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:243)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:103)
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:282)
	at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40048F(sitemap_xmap.java)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:116)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:495)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:534)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
	at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
	at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
	at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
	at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
	at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
	at org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown Source)
	at org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:484)
org.apache.cocoon.components.language.LanguageException: Error during compilation: Not enough space
	at org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:215)
	at org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:140)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:324)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:275)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:192)
	at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:145)
	at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:146)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:243)
	at 

Cocoon - Is it enough

2001-10-04 Thread Lakshmi Anantharaman

 
   Hi 

 Has cocoon proven successful front end architechture for major B2B
or System Application  . I am in the process of creating a modular framework
for a front end that shall involve different services .  The goal would be
to add and manage services as they come live ..Users may have different
services and levels of usage of these services are  based on roles and
permissions . The proposed model is a tree view of services(left hand )
detailed view of services or componets on the right side . 
  
 Will cocoon answer all my needs to intergrate with EJbs / JavaBeans
revert back to JSP /and usage of Javascript. I am particular inpressed with
the sitemap feature and intrigue by the different ways we could use that .
Please share your experiences and thoughts and ideas  based on your
experience with Cocoon . 

Thanks
Lakshmi  
   

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

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




[C2] standalone example?

2001-10-04 Thread Russell Castagnaro

Aloha cocoon-users,

  I'm trying to find an example of using C2 standalone.  I actually
  want to use it in an EJB, but first things first.  I've looked at
  the environment package, which seems to have the classes all set up
  to make it happen.  If somebody could just give me a simple example
  that did this, I think I'd be fine from there.

  Much Appreciated

-- 
Mahalo,
 Russell  mailto:[EMAIL PROTECTED]
Chief Mentor

4Charity - Changing the world,
 one click at a time.


-
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: [C2] standalone example?

2001-10-04 Thread Jeff Turner

On Thu, Oct 04, 2001 at 05:04:29PM -1000, Russell Castagnaro wrote:
 Aloha cocoon-users,
 
   I'm trying to find an example of using C2 standalone.  I actually
   want to use it in an EJB, but first things first.  I've looked at
   the environment package, which seems to have the classes all set up
   to make it happen.  If somebody could just give me a simple example
   that did this, I think I'd be fine from there.

Do you have CVS there? The latest Cocoon in CVS builds it's own
documentation offline. Check it out of CVS, and type ./build.sh
newdocs.

Otherwise, you should be able to type 'java -jar cocoon.jar' and have it
run. Your cocoon.jar needs to be in the same directory as the other
required jars.

As for running in an EJB, that might not be a good idea (though I don't
know your situation). Cocoon is meant to be a framework, not a library
to be used in other code.


--Jeff

   Much Appreciated
 
 -- 
 Mahalo,
  Russell  mailto:[EMAIL PROTECTED]
 Chief Mentor
 
 4Charity - Changing the world,
  one click at a time.

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