How to use Jfor with Cocoon 1.8.2 ?

2001-08-28 Thread Sébastien Lefebvre

Hi,
I'd like to use jfor in order to produce RTF file format.
The last version of jfor runs on FOP 0.19.
Cocoon 1.8.2 comes with Fop 0.15

FOP 0.19 also runs with newer version of Xerces and Xalan.

What do I have to do in order to upgrade the FO processing part of 
Cocoon 1.8.2?

Thanks

Sébastien




-
Please check that your 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 do you create dynamic XML content under Cocoon?

2001-08-28 Thread Piroumian, Konstantin

>
> Sorry if this is easily answered, or has been answered many times but I
> couldn't find any answers in the mailing list logs.

For dynamic XML content Cocoon uses XSP (eXtensible Server Pages). Look at
the C2 site: http://xml.apache.org/cocoon2 and you will see a lot of links
to XSP stuff.

If you are not restricted to use JSP then XSP is the best way for dynamic
content generation. Otherwise, you can use either JspGenerator to generate
XML with JSP engine or wait until I will finish a JSPReader which I am
working on. JSPReader will allow you to use JSP output from sitemap without
need to use redirects.

>
> I have Tomcat serving *.xml files through Cocoon ok.
>
>   If I add
><%@ page language="java" %>
>   to the top of the .xml pages, I get a Cocoon error so apparently
>   I can't have JSP in a Cocoon-handled XML page.. ?
>
>
> Do I have to use servlet chaining with the Cocoon servlet..?  Thanks -T
>
>
>
> -
> Please check that your 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]>




Cocoon2 + SSL.

2001-08-28 Thread jose . camacho

 I use Tomcat with Cocoon2. But now i need SSL. I've tried with tomcat
but i can't. Someone can tell me how to do it properly.
 I've done all with tomcat papers but it doesn't work well. Some
questions:
   1) is 8443 is the port to get into.?
   2) How can i access to ssl ? https://myhost:8443 or 8080 (
is the port i use in tomcat ).
   3) where may i deploy my cert ?

 thanx in advance. José Blas.



-
Please check that your 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: DB-password clear text - what alternatives?

2001-08-28 Thread Bertrand Delacretaz

On Wednesday 29 August 2001 08:21, Derek Hohls wrote:
> What is a ' localhost loopback' 

I assume that means connecting to the same host using "localhost" (with 
Cocoon and DB running on the same server).

Most (hopefully all) network stacks will in such case send IP packets 
"internally" without making them visible on the network.

IMHO encrypting the passwords in the config files wouldn't help much, unless 
there is a way to guarantee that only your app is able to decrpyt them (using 
a hardware key maybe?).

-- 
 -- Bertrand Delacrétaz, www.codeconsult.ch
 -- web technologies consultant - OO, Java, XML, C++



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

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




DB-password clear text - what alternatives?

2001-08-28 Thread Derek Hohls



Please expand on the hints below... there are few areas that are not 
clear to me yet - at the moment all my passwords are stored in the xml file that 
makes the calls to the db  e.g. 
 
  String DBPass = "password";
...
  
DBPass
 
and I am worried that as the xml file is readable (normally, 
indirectly, but there are no guarantees here), that someone could find a way of 
displaying its contents.
 
What is a ' localhost loopback' and what/where is the 'cocoon.xconf' and 
how would you use either/both to replace the above system?  Please include 
code snippets if at all possible...
 
Thanks
Derek>>> [EMAIL PROTECTED] 28/08/2001 10:38:55 
>>>On Tue, Aug 28, 2001 at 11:21:45AM +0200, Enke Michael 
wrote:> Hi!> Is there a possibility or would it be> easy to 
implement to have the DB password> encrypted in some kind (in *.xsp or 
cocoon.xconf)?as long as the direct JDBC connection requires plaintext 
passwords (and yesall existing JDBC driver implementations require 
plaintext) it's absolutelyuseless to add encryption to another 
layer.anyway passwords are stored in a file on the server and JDBC 
connection isusually made via localhost loopback, therefore password 
sniffing is almostimpossible and cocoon.xconf or whichever file the password 
actually containsis not readable by ordinary users via 
web...> This doesn't mean a state of the art> encryption 
(too complicated!?), but only> that not everybody can have direct 
access> to the database.don't get this, if there is a password that 
only admin knows, thenanyone who does not know it does not have the access 
to the database or am I wrong ??? > > Regards,> 
Michael> rgds,martin-- 
---"Only 
dead fish swims with a 
stream" 
Malcolm Muggeridgegpg_key_available: http://globales.cz/~mman/martin.man.gpggpg_key_fingerprint: 
2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 
0223-Please 
check that your question has not already been answered in theFAQ before 
posting. To 
unsubscribe, e-mail: <[EMAIL PROTECTED]>For 
additional commands, e-mail: 
<[EMAIL PROTECTED]>


timestamps in log !

2001-08-28 Thread Sumit Ranjan

hi !
   can anybody please tell me how can i put timestamps in my log entries( in
the std. format ! ) ?

thanx ,

Sumit Ranjan



-
Please check that your 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: One More Cocoon Powered Website!

2001-08-28 Thread Bertrand Delacretaz

On Tuesday 28 August 2001 08:06, Derek Hohls wrote:

> > Neat site!  Out of interest... which process did you use to produce the
> .rtf file report?

Shameless plug: jfor, an Open-Source XSL-FO to RTF converter, could be used 
for this. It doesn't have a Cocoon 2 adaptor yet, but implementing one has a 
high priority on our list (and should'nt be hard as jfor uses SAX events as 
input).

See www.jfor.org for more info!
-- 
 -- Bertrand Delacrétaz, www.codeconsult.ch
 -- web technologies consultant - OO, Java, XML, C++



-
Please check that your 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: Another successful story about Cocoon C2b2 (with Tomcat4 on W2KPro)

2001-08-28 Thread Bernie Lee

yeah. T4 installation was suprisingly seamless and C2 ran on the first
try...




-Original Message-
From: Matt Jezorek [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:30 AM
To: [EMAIL PROTECTED]
Subject: Re: Another successful story about Cocoon C2b2 (with Tomcat4 on
W2KPro)


I am getting these same errors Tomcat 4 fixed these problems? from what i
gather?
- Original Message -
From: "Bernie Lee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 11:18 PM
Subject: Another successful story about Cocoon C2b2 (with Tomcat4 on W2KPro)


> hi all.
>
> after a few days of messing around trying to get C2 working with tomcat
> 3.2.2 and 3.2.3 to no avail (i kept getting SAX and sitemap errors on all
3
> machines i tried - 2 at work and 1 at home), i've finally managed to
install
> C2 successfully. i think the problem is with T3.
>
> so... i decided to try T4. i downloaded the T4 executable(!), edited
> web.xml, and built cocoon.war, and the C2 welcome page loaded and the
> samples worked! so for any of u who are still having trouble setting up
T3,
> i suggest trying T4 instead for a hassle-free install. i've done it twice
> already and it has worked both times.
>
> my config is below:
>
> - w2kpro
> - tomcat 4b7
> - c2 b2
> - soap 2.2
>
> (this is just my 2c for the w2k platform)
>
>
>
>
> -Original Message-
> From: Walter G. da Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, August 25, 2001 1:42 PM
> To: cocoon-users
> Subject: A successful story about Cocoon C2b2
>
>
>
> After _several_ tries, building Cocoon from scratch, and reading
> most of the
> e-mails from the newsgroup/Java Guru/Web site documentation, I finally
> managed to
> make Cocoon work on my Personal Web site!
> Thank you very much Steffano and the Cocoon team for this wonderful
> servlet!  Here
> is my configuration:
>
> RedHat Linux 7.1 Kernel 2.4.1 i386 architecture.
> SUN JDK 1.3.1 b24
> Jakarta-Tomcat 3.2.3
> SOAP 2.2 (just in case somebody need it).
>
> Here are some notes I came across during the installation:
> 1. run dos2unix bin/ant and dos2unix bin/antRun
> 2. rerun build.sh.
> 3. rename jaxp.jar for jaxp.jar.old (according to the documentation)
> 4. rename parser.jar for zparser.jar
> 5. Copy the xerces-1.4.1 into $TOMCAT_HOME/lib/
>
> Then, I started getting:
>
> type internal-server-error
>
> message The sitemap handler's sitemap is not available. Please check
> /opt/java/jakarta-tomcat-3.2.2/webapps/cocoon/WEB-INF/logs/cocoon.log for
> the exact error.
>
> This problem went away after I installed jakarta-tomcat-3.2.3 (and
> rebuild ed
> cocoon from scratch).
>
> 6. The next error message I received was: (from
> $TOMCAT_HOME/logs/servlet.log or
> from the Http://localhost:8080/cocoon/):
>
> org.xml.sax.SAXException: Could not get valid parserNamespace not
supported
> by
> SAXParser
>
> path="/cocoon" :ERROR   99871   [cocoon  ] (main): Cannot produce a valid
> parser
> javax.xml.parsers.ParserConfigurationException: Namespace not supported by
> SAXParser
>
>
> 7. Now, the problem is the parser.  I remember,back of the time I
> was trying to
> install Cocoon 1.8.x, that xerces had to be the first .jar that is loaded
> from the
> $TOMCAT_HOME/lib directory.  Therefore, I renamed xerces-1.4.1.jar as
> aaxerces-1.4.1.jar (a dirty solution, but it works).
>
> 8. Then, I received another error message: The sitemap can not open
> the display
> (0,0) (from
> /opt/java/jakarta-tomcat-3.2.2/webapps/cocoon/WEB-INF/logs/cocoon.log).  I
> was
> connecting to my machine remotely using ssh.  The error message suggests
> that
> sitemap was trying to open a window in the local display.  So I wait until
I
> went
> home and run the program locally.
>
> 9. Went I tried at home, to my enjoy, Cocoon started.  After I was
> able to fired up
> cocoon from my local machine, I was able to connect from other machines.
I
> guess,
> the first time you try to run Cocoon, you have to try in the machine
itself.
> If
> you want to take a look at it:
>
> http://63.195.86.146:8080/cocoon/welcome
>
> Again, thank you Steffano and the Cocoon team for this,
>
> Walter
>
>
> --
>
>   "If we were logical, the future would be bleak indeed. But |
(408)294-4750
>   we are more than logical. We are human beings, and we have |
> [EMAIL PROTECTED]
> faith, and we have hope, and we can work" -Jacques Cousteau |
> http://wdacruz.com
> |-
--
> --
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 

Re: Another successful story about Cocoon C2b2 (with Tomcat4 on W2KPro)

2001-08-28 Thread Matt Jezorek

I am getting these same errors Tomcat 4 fixed these problems? from what i
gather?
- Original Message -
From: "Bernie Lee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 11:18 PM
Subject: Another successful story about Cocoon C2b2 (with Tomcat4 on W2KPro)


> hi all.
>
> after a few days of messing around trying to get C2 working with tomcat
> 3.2.2 and 3.2.3 to no avail (i kept getting SAX and sitemap errors on all
3
> machines i tried - 2 at work and 1 at home), i've finally managed to
install
> C2 successfully. i think the problem is with T3.
>
> so... i decided to try T4. i downloaded the T4 executable(!), edited
> web.xml, and built cocoon.war, and the C2 welcome page loaded and the
> samples worked! so for any of u who are still having trouble setting up
T3,
> i suggest trying T4 instead for a hassle-free install. i've done it twice
> already and it has worked both times.
>
> my config is below:
>
> - w2kpro
> - tomcat 4b7
> - c2 b2
> - soap 2.2
>
> (this is just my 2c for the w2k platform)
>
>
>
>
> -Original Message-
> From: Walter G. da Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, August 25, 2001 1:42 PM
> To: cocoon-users
> Subject: A successful story about Cocoon C2b2
>
>
>
> After _several_ tries, building Cocoon from scratch, and reading
> most of the
> e-mails from the newsgroup/Java Guru/Web site documentation, I finally
> managed to
> make Cocoon work on my Personal Web site!
> Thank you very much Steffano and the Cocoon team for this wonderful
> servlet!  Here
> is my configuration:
>
> RedHat Linux 7.1 Kernel 2.4.1 i386 architecture.
> SUN JDK 1.3.1 b24
> Jakarta-Tomcat 3.2.3
> SOAP 2.2 (just in case somebody need it).
>
> Here are some notes I came across during the installation:
> 1. run dos2unix bin/ant and dos2unix bin/antRun
> 2. rerun build.sh.
> 3. rename jaxp.jar for jaxp.jar.old (according to the documentation)
> 4. rename parser.jar for zparser.jar
> 5. Copy the xerces-1.4.1 into $TOMCAT_HOME/lib/
>
> Then, I started getting:
>
> type internal-server-error
>
> message The sitemap handler's sitemap is not available. Please check
> /opt/java/jakarta-tomcat-3.2.2/webapps/cocoon/WEB-INF/logs/cocoon.log for
> the exact error.
>
> This problem went away after I installed jakarta-tomcat-3.2.3 (and
> rebuild ed
> cocoon from scratch).
>
> 6. The next error message I received was: (from
> $TOMCAT_HOME/logs/servlet.log or
> from the Http://localhost:8080/cocoon/):
>
> org.xml.sax.SAXException: Could not get valid parserNamespace not
supported
> by
> SAXParser
>
> path="/cocoon" :ERROR   99871   [cocoon  ] (main): Cannot produce a valid
> parser
> javax.xml.parsers.ParserConfigurationException: Namespace not supported by
> SAXParser
>
>
> 7. Now, the problem is the parser.  I remember,back of the time I
> was trying to
> install Cocoon 1.8.x, that xerces had to be the first .jar that is loaded
> from the
> $TOMCAT_HOME/lib directory.  Therefore, I renamed xerces-1.4.1.jar as
> aaxerces-1.4.1.jar (a dirty solution, but it works).
>
> 8. Then, I received another error message: The sitemap can not open
> the display
> (0,0) (from
> /opt/java/jakarta-tomcat-3.2.2/webapps/cocoon/WEB-INF/logs/cocoon.log).  I
> was
> connecting to my machine remotely using ssh.  The error message suggests
> that
> sitemap was trying to open a window in the local display.  So I wait until
I
> went
> home and run the program locally.
>
> 9. Went I tried at home, to my enjoy, Cocoon started.  After I was
> able to fired up
> cocoon from my local machine, I was able to connect from other machines.
I
> guess,
> the first time you try to run Cocoon, you have to try in the machine
itself.
> If
> you want to take a look at it:
>
> http://63.195.86.146:8080/cocoon/welcome
>
> Again, thank you Steffano and the Cocoon team for this,
>
> Walter
>
>
> --
>
>   "If we were logical, the future would be bleak indeed. But |
(408)294-4750
>   we are more than logical. We are human beings, and we have |
> [EMAIL PROTECTED]
> faith, and we have hope, and we can work" -Jacques Cousteau |
> http://wdacruz.com
> |-
--
> --
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


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

Another successful story about Cocoon C2b2 (with Tomcat4 on W2KPro)

2001-08-28 Thread Bernie Lee

hi all.

after a few days of messing around trying to get C2 working with tomcat
3.2.2 and 3.2.3 to no avail (i kept getting SAX and sitemap errors on all 3
machines i tried - 2 at work and 1 at home), i've finally managed to install
C2 successfully. i think the problem is with T3.

so... i decided to try T4. i downloaded the T4 executable(!), edited
web.xml, and built cocoon.war, and the C2 welcome page loaded and the
samples worked! so for any of u who are still having trouble setting up T3,
i suggest trying T4 instead for a hassle-free install. i've done it twice
already and it has worked both times.

my config is below:

- w2kpro
- tomcat 4b7
- c2 b2
- soap 2.2

(this is just my 2c for the w2k platform)




-Original Message-
From: Walter G. da Cruz [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 25, 2001 1:42 PM
To: cocoon-users
Subject: A successful story about Cocoon C2b2



After _several_ tries, building Cocoon from scratch, and reading
most of the 
e-mails from the newsgroup/Java Guru/Web site documentation, I finally
managed to 
make Cocoon work on my Personal Web site!
Thank you very much Steffano and the Cocoon team for this wonderful
servlet!  Here 
is my configuration:

RedHat Linux 7.1 Kernel 2.4.1 i386 architecture.
SUN JDK 1.3.1 b24
Jakarta-Tomcat 3.2.3
SOAP 2.2 (just in case somebody need it).

Here are some notes I came across during the installation:
1. run dos2unix bin/ant and dos2unix bin/antRun
2. rerun build.sh.
3. rename jaxp.jar for jaxp.jar.old (according to the documentation)
4. rename parser.jar for zparser.jar
5. Copy the xerces-1.4.1 into $TOMCAT_HOME/lib/

Then, I started getting:

type internal-server-error

message The sitemap handler's sitemap is not available. Please check
/opt/java/jakarta-tomcat-3.2.2/webapps/cocoon/WEB-INF/logs/cocoon.log for
the exact error.

This problem went away after I installed jakarta-tomcat-3.2.3 (and
rebuild ed 
cocoon from scratch).

6. The next error message I received was: (from
$TOMCAT_HOME/logs/servlet.log or 
from the Http://localhost:8080/cocoon/):

org.xml.sax.SAXException: Could not get valid parserNamespace not supported
by 
SAXParser

path="/cocoon" :ERROR   99871   [cocoon  ] (main): Cannot produce a valid
parser
javax.xml.parsers.ParserConfigurationException: Namespace not supported by
SAXParser


7. Now, the problem is the parser.  I remember,back of the time I
was trying to 
install Cocoon 1.8.x, that xerces had to be the first .jar that is loaded
from the 
$TOMCAT_HOME/lib directory.  Therefore, I renamed xerces-1.4.1.jar as 
aaxerces-1.4.1.jar (a dirty solution, but it works).

8. Then, I received another error message: The sitemap can not open
the display 
(0,0) (from 
/opt/java/jakarta-tomcat-3.2.2/webapps/cocoon/WEB-INF/logs/cocoon.log).  I
was 
connecting to my machine remotely using ssh.  The error message suggests
that 
sitemap was trying to open a window in the local display.  So I wait until I
went 
home and run the program locally.

9. Went I tried at home, to my enjoy, Cocoon started.  After I was
able to fired up 
cocoon from my local machine, I was able to connect from other machines.  I
guess, 
the first time you try to run Cocoon, you have to try in the machine itself.
If 
you want to take a look at it:

http://63.195.86.146:8080/cocoon/welcome

Again, thank you Steffano and the Cocoon team for this,

Walter


-- 

  "If we were logical, the future would be bleak indeed. But | (408)294-4750
  we are more than logical. We are human beings, and we have |
[EMAIL PROTECTED]
faith, and we have hope, and we can work" -Jacques Cousteau |
http://wdacruz.com
|---
--



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

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

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

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




How do you create dynamic XML content under Cocoon?

2001-08-28 Thread Tim Darling


Sorry if this is easily answered, or has been answered many times but I
couldn't find any answers in the mailing list logs.

I have Tomcat serving *.xml files through Cocoon ok.

  If I add 
   <%@ page language="java" %>
  to the top of the .xml pages, I get a Cocoon error so apparently
  I can't have JSP in a Cocoon-handled XML page.. ?


Do I have to use servlet chaining with the Cocoon servlet..?  Thanks -T



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

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




Re: Can't run under JBoss2.4/Tomcat3.2.3

2001-08-28 Thread Gianugo Rabellino

> Hmmm, on Jboss 2.4 with latest coccon-2 build and IBM jdk1.3 I get this
> little surprise:
>
> java.lang.InternalError: Can't connect to X11 window server using ':0.0'
> as the value of the DISPLAY variable.
> Why on earth does this thing want to connect to an X-server?  Anybody
> got a fix for this?

This is another good candidate for Cocoon FAQs. Batik (used by FOP for image
rendering) is using AWT to do some of his work, and AWT under *nix needs to
connect to an X server. You might want to look for Xvfb, a "virtual"  X
server who does not need any graphic hardware and provides access to X to
AWT applications. As an alternative if you don't need Batik or FOP you can
take the components out from the sitemap.

Ciao,

--
Gianugo Rabellino


-
Please check that your 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: Q: DB-password clear text?

2001-08-28 Thread Martin Man

On Tue, Aug 28, 2001 at 11:21:45AM +0200, Enke Michael wrote:
> Hi!
> Is there a possibility or would it be
> easy to implement to have the DB password
> encrypted in some kind (in *.xsp or cocoon.xconf)?
as long as the direct JDBC connection requires plaintext passwords (and yes
all existing JDBC driver implementations require plaintext) it's absolutely
useless to add encryption to another layer.

anyway passwords are stored in a file on the server and JDBC connection is
usually made via localhost loopback, therefore password sniffing is almost
impossible and cocoon.xconf or whichever file the password actually contains
is not readable by ordinary users via web...


> This doesn't mean a state of the art
> encryption (too complicated!?), but only
> that not everybody can have direct access
> to the database.
don't get this, if there is a password that only admin knows, then
anyone who does not know it does not have the access to 
the database or am I wrong ??? 


> 
> Regards,
> Michael
> 

rgds,
martin
-- 
---
"Only dead fish swims with a stream" Malcolm Muggeridge
gpg_key_available: http://globales.cz/~mman/martin.man.gpg
gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223

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

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




cocoon: class not defined error

2001-08-28 Thread Raghavan srinivasan

hello
I run Tomcat-3.2.3 and installed Cocoon2.0b1. I did
build and moved over the coccon.war file to
webapps dir of Tomcat. Then I restarted the Tomcat
and tried http://localhost:8080/coccon.
I get the folowing class not defined error, could
you help me which jar file i am missing in my
CLASSPATH? (except for cocoon rest of Tomcat works
ok).

001-08-27 22:09:27 - Ctx( /cocoon
): Exception in: R( /cocoon + / + null) -
java.lang.NoClassDefFoundError:
org/apache/log/format/PatternFormatter
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
at
org.apache.tomcat.core.Handler.service(Handler.java:254)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)


thanks
-rags

=
---
Checkout my web page http://www.poruththam.com
for Tamil connection.

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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

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




Re: A successful story about Cocoon C2b2

2001-08-28 Thread Walter G. da Cruz

Kris:

Thank you for your support.  I don't know much about SVG to answer your 
question, 
but I hope I can help you installing Cocoon in case that you need it.

Thank you, Walter

K wrote:

> HEY!!! Congrats on your install!! :-)
> looks good, and your email may have helped me figure out where my install is
> choking...
> I'll let you and the list know the results (when I can get back to figuring
> it out).
> I noticed your SVG link spits out a JPG image--is this standard with cocoon
> 2? Is there a way to  script the serializer (ie. to show SVG content or an
> image depending on whether the user has/doesn't have an SVG plugin?) Is this
> documented somewhere?
> Thanks,
> Kris
> 
> 
> - Original Message -
> From: "Walter G. da Cruz" <[EMAIL PROTECTED]>
> To: "cocoon-users" <[EMAIL PROTECTED]>
> Sent: Friday, August 24, 2001 10:42 PM
> Subject: A successful story about Cocoon C2b2
> 
> 
> 
>>After _several_ tries, building Cocoon from scratch, and reading most of
>>
> the
> 
>>e-mails from the newsgroup/Java Guru/Web site documentation, I finally
>>
> managed to
> 
>>make Cocoon work on my Personal Web site!
>>Thank you very much Steffano and the Cocoon team for this wonderful
>>
> servlet!  Here
> 
>>is my configuration:
>>
>>RedHat Linux 7.1 Kernel 2.4.1 i386 architecture.
>>SUN JDK 1.3.1 b24
>>Jakarta-Tomcat 3.2.3
>>SOAP 2.2 (just in case somebody need it).
>>
>>Here are some notes I came across during the installation:
>>1. run dos2unix bin/ant and dos2unix bin/antRun
>>2. rerun build.sh.
>>3. rename jaxp.jar for jaxp.jar.old (according to the documentation)
>>4. rename parser.jar for zparser.jar
>>5. Copy the xerces-1.4.1 into $TOMCAT_HOME/lib/
>>
>>Then, I started getting:
>>
>>type internal-server-error
>>
>>message The sitemap handler's sitemap is not available. Please check
>>/opt/java/jakarta-tomcat-3.2.2/webapps/cocoon/WEB-INF/logs/cocoon.log for
>>the exact error.
>>
>>This problem went away after I installed jakarta-tomcat-3.2.3 (and rebuild
>>
> ed
> 
>>cocoon from scratch).
>>
>>6. The next error message I received was: (from
>>
> $TOMCAT_HOME/logs/servlet.log or
> 
>>from the Http://localhost:8080/cocoon/):
>>
>>org.xml.sax.SAXException: Could not get valid parserNamespace not
>>
> supported by
> 
>>SAXParser
>>
>>path="/cocoon" :ERROR   99871   [cocoon  ] (main): Cannot produce a valid
>>
> parser
> 
>>javax.xml.parsers.ParserConfigurationException: Namespace not supported by
>>
> SAXParser
> 
>>
>>7. Now, the problem is the parser.  I remember,back of the time I was
>>
> trying to
> 
>>install Cocoon 1.8.x, that xerces had to be the first .jar that is loaded
>>
> from the
> 
>>$TOMCAT_HOME/lib directory.  Therefore, I renamed xerces-1.4.1.jar as
>>aaxerces-1.4.1.jar (a dirty solution, but it works).
>>
>>8. Then, I received another error message: The sitemap can not open the
>>
> display
> 
>>(0,0) (from
>>/opt/java/jakarta-tomcat-3.2.2/webapps/cocoon/WEB-INF/logs/cocoon.log).  I
>>
> was
> 
>>connecting to my machine remotely using ssh.  The error message suggests
>>
> that
> 
>>sitemap was trying to open a window in the local display.  So I wait until
>>
> I went
> 
>>home and run the program locally.
>>
>>9. Went I tried at home, to my enjoy, Cocoon started.  After I was able to
>>
> fired up
> 
>>cocoon from my local machine, I was able to connect from other machines.
>>
> I guess,
> 
>>the first time you try to run Cocoon, you have to try in the machine
>>
> itself.  If
> 
>>you want to take a look at it:
>>
>>http://63.195.86.146:8080/cocoon/welcome
>>
>>Again, thank you Steffano and the Cocoon team for this,
>>
>>Walter
>>
>>
>>--
>>
>>  "If we were logical, the future would be bleak indeed. But |
>>
> (408)294-4750
> 
>>  we are more than logical. We are human beings, and we have |
>>
> [EMAIL PROTECTED]
> 
>>faith, and we have hope, and we can work" -Jacques Cousteau |
>>
> http://wdacruz.com
> 
>>|-
>>
> 
> 
>>
>>
>>-
>>Please check that your question has not already been answered in the
>>FAQ before posting. 
>>
>>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>>For additional commands, e-mail: <[EMAIL PROTECTED]>
>>
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 


-- 

  "If we were logical, the future would be bleak indeed. But | (408)294-4750
  we are more than logical. We are human beings, and we have | [EMAIL PROTECTED]
faith, and we have hope, and we can work" -Jacques Cousteau | http://wdacruz.com
|-




Re: Can't run under JBoss2.4/Tomcat3.2.3

2001-08-28 Thread IBrandt


Hi,

> Argh. Cygwin, Cocoon 2, JDK 1.4 beta... now *this* is what I
> call bleeding edge :))

Yeah, I'm just having fun checking out what's coming down the pipe.  ;-)

I tried jdk1.3.1 without specifying the
javax.xml.parsers.DocumentBuilderFactory and
javax.xml.parsers.SAXParserFactory properties.  The tomcat-test.ear still
failed to deploy (so this is apparently as you said, an incompatibility with
Xerces).  Cocoon deployed again successfully (as it did with 1.4beta), but
it also works now.  The failure under 1.4 apparently has to do with a class
loading problem of some sort.  Now that I am confident that it runs under
1.3, I'm going to try to figure out the specifics behind why it won't go
under the 1.4 rt.jar.  I'll keep you posted (because hey, cocoon is going to
need to run in this configuration someday right?).

Thanks again,

Ian


- Original Message -
From: "Gianugo Rabellino" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 12:28 AM
Subject: Re: Can't run under JBoss2.4/Tomcat3.2.3


> On Tue, Aug 28, 2001 at 11:52:44AM -0400, [EMAIL PROTECTED] wrote:
> > I verified everything you listed.  I am using jdk1.4beta.  A little
fishing
> > around and I realized that Crimson was still being used from rt.jar
> >
(http://java.sun.com/j2se/1.4/docs/relnotes/features.html#xmlprocessing)!
>
>
> > tried to use a modified "run.sh" to attempt to force the use of Xerces,
but
> > this caused more errors that it fixed (jboss failed to deploy the
> > tomcat-test.ear,
>
> This seems to be the reason:
>
> The encoding "Cp1252" is not supported., Cause:org.xml.sax.SAXException:
> Stopping after fatal error: The encoding "Cp1252" is not supported
>
> > and cocoon gave a new reason for not starting).
>
> And this is the reason for Cocoon not to start:
>
> org.apache.avalon.framework.configuration.ConfigurationException:
> AbstractMarkupLanguage: SAX2 driver class
org.apache.xerces.parsers.SAXParser
> not found
>
> They both look like Xerces related problems, yet the run script
> looks fine. Have you tried with any 1.3 JDK to see if it's a
> java problem?
>
> Ciao,
>
> --
> Gianugo Rabellino
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>

.


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

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




Re: Can't run under JBoss2.4/Tomcat3.2.3

2001-08-28 Thread Nicolai P Guba

On 28 Aug 2001 19:04:36 +0200, Gianugo Rabellino wrote:
> On Tue, Aug 28, 2001 at 11:52:44AM -0400, [EMAIL PROTECTED] wrote:
> > I verified everything you listed.  I am using jdk1.4beta.  A little fishing
> > around and I realized that Crimson was still being used from rt.jar
> > (http://java.sun.com/j2se/1.4/docs/relnotes/features.html#xmlprocessing)!  
> 
> Argh. Cygwin, Cocoon 2, JDK 1.4 beta... now *this* is what I
> call bleeding edge :))
> 
> > tried to use a modified "run.sh" to attempt to force the use of Xerces, but
> > this caused more errors that it fixed (jboss failed to deploy the
> > tomcat-test.ear, 
> 

Hmmm, on Jboss 2.4 with latest coccon-2 build and IBM jdk1.3 I get this
little surprise:


DEBUG   (2001-08-28) 15:56.10:987   [cocoon  ] (/cocoon/)
Thread-22/ExcaliburComponentSelector: Adding
org.apache.cocoon.serialization.XMLSerializer for svgxml
ERROR   (2001-08-28) 15:56.11:822   [cocoon  ] (/cocoon/)
Thread-22/Handler: Error compiling sitemap
java.lang.InternalError: Can't connect to X11 window server using ':0.0'
as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:63)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java(Compiled Code))
at 

===

Why on earth does this thing want to connect to an X-server?  Anybody
got a fix for this?

-- 
  Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708

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

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




Re: Can't run under JBoss2.4/Tomcat3.2.3

2001-08-28 Thread Gianugo Rabellino

On Tue, Aug 28, 2001 at 11:52:44AM -0400, [EMAIL PROTECTED] wrote:
> I verified everything you listed.  I am using jdk1.4beta.  A little fishing
> around and I realized that Crimson was still being used from rt.jar
> (http://java.sun.com/j2se/1.4/docs/relnotes/features.html#xmlprocessing)!  

Argh. Cygwin, Cocoon 2, JDK 1.4 beta... now *this* is what I
call bleeding edge :))

> tried to use a modified "run.sh" to attempt to force the use of Xerces, but
> this caused more errors that it fixed (jboss failed to deploy the
> tomcat-test.ear, 

This seems to be the reason:

The encoding "Cp1252" is not supported., Cause:org.xml.sax.SAXException: Stopping 
after fatal error: The encoding "Cp1252" is not supported

> and cocoon gave a new reason for not starting).

And this is the reason for Cocoon not to start:

org.apache.avalon.framework.configuration.ConfigurationException: 
AbstractMarkupLanguage: SAX2 driver class org.apache.xerces.parsers.SAXParser not found

They both look like Xerces related problems, yet the run script
looks fine. Have you tried with any 1.3 JDK to see if it's a
java problem?

Ciao,

-- 
Gianugo Rabellino

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

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




Re: Can't run under JBoss2.4/Tomcat3.2.3

2001-08-28 Thread IBrandt


Hi.

I think I found the problem...

I verified everything you listed.  I am using jdk1.4beta.  A little fishing
around and I realized that Crimson was still being used from rt.jar
(http://java.sun.com/j2se/1.4/docs/relnotes/features.html#xmlprocessing)!  I
tried to use a modified "run.sh" to attempt to force the use of Xerces, but
this caused more errors that it fixed (jboss failed to deploy the
tomcat-test.ear, and cocoon gave a new reason for not starting).

The cocoon error is below.  The logs and startup script (which I renamed to
"jboss") are attached (I hope that isn't improper net-equite for this list).

Thanks!

Ian

Cocoon 2 - Internal server error




type internal-server-error

message Exception in Handler

description org.apache.cocoon.ProcessingException: Exception in
Handler:org.apache.avalon.framework.component.ComponentException:
markup-languages: ComponentSelector could not access the Component for hint:
sitemap

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

embedded exception

org.apache.avalon.framework.component.ComponentException: markup-languages:
ComponentSelector could not access the Component for hint: sitemap

embedded exception stacktrace

org.apache.avalon.framework.component.ComponentException: markup-languages:
ComponentSelector could not access the Component for hint: sitemap
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca
liburComponentSelector.java:253)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:176)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:204)
at java.lang.Thread.run(Thread.java:579)
Caused by: org.apache.avalon.framework.configuration.ConfigurationException:
AbstractMarkupLanguage: SAX2 driver class
org.apache.xerces.parsers.SAXParser not found
at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.configur
e(AbstractMarkupLanguage.java:141)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:108)
at
org.apache.avalon.excalibur.component.DefaultComponentHandler.get(DefaultCom
ponentHandler.java:92)
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca
liburComponentSelector.java:246)
... 3 more
Caused by: java.lang.ClassNotFoundException:
org/apache/xerces/parsers/SAXParser
at
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:1
18)
at
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:9
6)
at
org.apache.cocoon.components.language.markup.Logicsheet.setInputSource(Logic
sheet.java:99)
at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.createLo
gicsheet(AbstractMarkupLanguage.java:182)
at
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.configur
e(AbstractMarkupLanguage.java:113)
... 6 more


exception

org.apache.cocoon.ProcessingException: Exception in
Handler:org.apache.avalon.framework.component.ComponentException:
markup-languages: ComponentSelector could not access the Component for hint:
sitemap

path-info



stacktrace

org.apache.cocoon.ProcessingException: Exception in
Handler:org.apache.avalon.framework.component.ComponentException:
markup-languages: ComponentSelector could not access the Component for hint:
sitemap
at
org.apache.cocoon.sitemap.Handler.throwEventualException(Handler.java:239)
at org.apache.cocoon.sitemap.Handler.regenerate(Handler.java:153)
at org.apache.cocoon.sitemap.Manager.getHandler(Manager.java:174)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:100)
at org.apache.cocoon.Cocoon.process(Cocoon.java:423)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:489)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:579)
Caused by: org.apache.avalon.framework.component.ComponentException:
markup-languages: ComponentSelector could not access the Component for hint:
sitemap
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca
liburComponentSelector.java:253)
at
org.apache.cocoon.component

Re: MacRoman text encoding and C2

2001-08-28 Thread Gianugo Rabellino

On Tue, Aug 28, 2001 at 05:19:24PM +0200, Fulvio Picecchi wrote:
> $XMLdoc_Latin1   = "Some characters: òàùèéì";
>$XMLdoc_UTF-8= iconv("ISO-8859-1", "UTF-8", $XMLdoc_Latin1);
>$XMLdoc_MacRoman = iconv("ISO-8859-1", "MacRoman", $XMLdoc_Latin1);
> ?>
> Docs here: http://www.php.net/manual/en/ref.iconv.php
> I can try to find some solutions in C2 but I'm really a newbie.
> I'm really sorry Jesse to not be able to help you. And for speaking 
> about PHP in a wrong place ...

Might not be that wrong. While I do think that there might be a 
much better solution, there should be a sort of quick and dirty 
way to use PHP right inside Cocoon. Look at the PHP generator 
(it does not get compiled by default, it needs the PHP libraries).

Hope it helps,

-- 
Gianugo Rabellino

-
Please check that your 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: MacRoman text encoding and C2

2001-08-28 Thread Fulvio Picecchi

Well, I'm really sorry but I can't really help you 'cause I'm absolutely 
new to Cocoon. I'm just learning, for the moment. I come from PHP 
development and this operation in PHP is done in an extremely fast way 
with the iconv() function:

Docs here: http://www.php.net/manual/en/ref.iconv.php
I can try to find some solutions in C2 but I'm really a newbie.
I'm really sorry Jesse to not be able to help you. And for speaking 
about PHP in a wrong place ...
Sincerely,

--
Fulvio Picecchi


Jesse Reynolds wrote:
> Thanks Fulvio
> 
> Looks like the JDK's native2ascii is what I want, only i'd need to make 
> my own Generator out of it or something in order to perform the 
> translation live, yeah?
> 
> And that scares me!
> 
> Do you think a Generator is the right way to go here? (That basically 
> does the same as the xml file generator, or the serverpages generator, 
> but performs the translation to utf-8 beforehand)
> 
> Cheers
> 
> Jesse
> 


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

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




RE: [c2] jdbc connection problem (solved)

2001-08-28 Thread Klaus Bertram

Hi christoph

I work also with pooling but on mySQL without a password and it works fine!

Klaus

> -Original Message-
> From: Christoph Kliemt [mailto:[EMAIL PROTECTED]]On Behalf Of
> Christoph Kliemt
> Sent: Tuesday, August 28, 2001 4:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [c2] jdbc connection problem (solved)
> 
> 
> Hi!
> 
>  Problem solved:
> 
> DEBUG   (2001-08-28) 16:29.20:649   [cocoon  ] (Unknown-URI) 
> Unknown-thread/AbstractPool: 
> org.apache.avalon.excalibur.datasource.JdbcConnection: could not 
> be instantiated.  
> The password property is missing. It is mandatory.
> 
>  cocoon.xconf had an empty password... i provided a dummypassword, and
>  now everything works fine.
> 
>  Maybe it is a good idea to add a hint in cocoon.xconf towards this?
> 
>  \\// christoph
> 
>  ps : thanks for your help! 
> 
> -
> Please check that your 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: MacRoman text encoding and C2

2001-08-28 Thread Piroumian, Konstantin

Maybe another solution will be to post a message to Xerces or Xalan Dev mail
list with your problem? If C1 supports that encoding then I think that
Xerces/Xalan does the job and there must be either a reason that support was
removed or they simply didn't add it at all until somebody will ask them
about it.

Also, as it's Open source, you can look at other encoder classes in Xalan,
write your own and send it to xalan-dev.

Regards,
Konstantin Piroumian.

- Original Message -
From: "Jesse Reynolds" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 5:37 PM
Subject: Re: MacRoman text encoding and C2


> Thanks Fulvio
>
> Looks like the JDK's native2ascii is what I want, only i'd need to
> make my own Generator out of it or something in order to perform the
> translation live, yeah?
>
> And that scares me!
>
> Do you think a Generator is the right way to go here? (That basically
> does the same as the xml file generator, or the serverpages
> generator, but performs the translation to utf-8 beforehand)
>
> Cheers
>
> Jesse
>
> At 3:01 PM +0200 28/8/01, Fulvio Picecchi wrote:
> >Sorry Jesse, I didn't know that C1 supports platform dependent
> >charset encodings ...
> >Anyway, if you'll ever need to do this conversion maybe this tools
> >can help you:
> >- Francois Pinard has written "recode" for Linux/Unix:
> >http://www.iro.umontreal.ca/contrib/recode/
> >- But I think you already have what you need. Look inside the bin/
> >directory in your JDK, you'll find a tool called native2ascii that
> >you can use this way:
> >native2ascii -encoding MacRoman example.xml example.jtx
> >native2ascii -reverse -encoding UTF-8 example.jtx example.xml
> >The supported encodings:
> >http://java.sun.com/j2se/1.3.0/docs/guide/intl/encoding.doc.html
> >And a little help for this tool:
> >http://java.sun.com/j2se/1.3.0/docs/tooldocs/win32/native2ascii.html
> >
> >Hope this can help you. Sincerely.
> >--
> >Fulvio Picecchi
> >
> >
> >
> >Jesse Reynolds wrote:
> >>Thanks Fulvio for your kind thoughts.
> >>
> >>I'm fully aware that it would be much better if our database could
> >>send out UTF-8, but that's alot of work that I'd rather not do.
> >>Cocoon1 has been doing a perfect job of understanding MacRoman to
> >>date, it would seem a great pity to have lost this functionality.
> >>
> >>There must be a way of doing it in a pipeline somehow. Hopefully
> >>someone has already written the code.
> >>
> >>Cheers
> >>
> >>Jesse
> >...
> >
> >
> >-
> >Please check that your question has not already been answered in the
> >FAQ before posting. 
> >
> >To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> >For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
> --
>
>Jesse Reynolds - Virtual Artists Pty Ltd - http://www.va.com.au
>   jesse (at) va.com.au
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>

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

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




Re: [c2] jdbc connection problem (solved)

2001-08-28 Thread Christoph Kliemt

Hi!

 Problem solved:

DEBUG   (2001-08-28) 16:29.20:649   [cocoon  ] (Unknown-URI) 
Unknown-thread/AbstractPool: 
org.apache.avalon.excalibur.datasource.JdbcConnection: could not be instantiated.  
The password property is missing. It is mandatory.

 cocoon.xconf had an empty password... i provided a dummypassword, and
 now everything works fine.

 Maybe it is a good idea to add a hint in cocoon.xconf towards this?

 \\// christoph

 ps : thanks for your help! 

-
Please check that your 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: MacRoman text encoding and C2

2001-08-28 Thread Jesse Reynolds

Thanks Fulvio

Looks like the JDK's native2ascii is what I want, only i'd need to 
make my own Generator out of it or something in order to perform the 
translation live, yeah?

And that scares me!

Do you think a Generator is the right way to go here? (That basically 
does the same as the xml file generator, or the serverpages 
generator, but performs the translation to utf-8 beforehand)

Cheers

Jesse

At 3:01 PM +0200 28/8/01, Fulvio Picecchi wrote:
>Sorry Jesse, I didn't know that C1 supports platform dependent 
>charset encodings ...
>Anyway, if you'll ever need to do this conversion maybe this tools 
>can help you:
>- Francois Pinard has written "recode" for Linux/Unix:
>http://www.iro.umontreal.ca/contrib/recode/
>- But I think you already have what you need. Look inside the bin/ 
>directory in your JDK, you'll find a tool called native2ascii that 
>you can use this way:
>native2ascii -encoding MacRoman example.xml example.jtx
>native2ascii -reverse -encoding UTF-8 example.jtx example.xml
>The supported encodings:
>http://java.sun.com/j2se/1.3.0/docs/guide/intl/encoding.doc.html
>And a little help for this tool:
>http://java.sun.com/j2se/1.3.0/docs/tooldocs/win32/native2ascii.html
>
>Hope this can help you. Sincerely.
>--
>Fulvio Picecchi
>
>
>
>Jesse Reynolds wrote:
>>Thanks Fulvio for your kind thoughts.
>>
>>I'm fully aware that it would be much better if our database could 
>>send out UTF-8, but that's alot of work that I'd rather not do. 
>>Cocoon1 has been doing a perfect job of understanding MacRoman to 
>>date, it would seem a great pity to have lost this functionality.
>>
>>There must be a way of doing it in a pipeline somehow. Hopefully 
>>someone has already written the code.
>>
>>Cheers
>>
>>Jesse
>...
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>


-- 

   Jesse Reynolds - Virtual Artists Pty Ltd - http://www.va.com.au
  jesse (at) va.com.au

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

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




Bugs and problems with C2

2001-08-28 Thread Andrew Answer

Hello cocoon-users,

  I use C2b2 on Resin-2.0.1/jdk1.3/Win98/Celeron 500/256Mb
  PC-100 DRAM already several months (earlier I use C2b1).
  And I have many troubles with this engine.
  First, XInclude doesn't work with XML and XSP.
  It always produce NullPointerException
[java.lang.NullPointerException
at 
org.apache.cocoon.transformation.XIncludeTransformer.processXIncludeElement(XIncludeTransformer.java:211)
at 
org.apache.cocoon.transformation.XIncludeTransformer.startElement(XIncludeTransformer.java:131)
at 
org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStreamInterpreter.java:82)
at 
org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:58)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:187)
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:361)
at 
org.apache.cocoon.www.mysite.sitemap_xmap.wildcardMatchN36(sitemap_xmap.java:482)
at org.apache.cocoon.www.mysite.sitemap_xmap.process(sitemap_xmap.java:267)
at org.apache.cocoon.www.mysite.sitemap_xmap.process(sitemap_xmap.java:218)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:160)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:103)
at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN1F3(sitemap_xmap.java:2602)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2118)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2079)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:160)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:103)
at org.apache.cocoon.Cocoon.process(Cocoon.java:423)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:489)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at 
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:82)
at com.caucho.server.http.Invocation.service(Invocation.java:272)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:216)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)]
  (if I transform XML, it work only once, and if I transform XSP, it's
  never work right). I can't develop nothing good without including,
  isn't it? Using of CInclude transformer isn't good idea because of
  it isn't standard solution. In addition CInclude require relative path
  from site root & don't support XPath expressions.

  Second, in C2b2 you change the caching environment and begin use
  MRUMemoryStore for event & stream cache instead of StreamMemoryCache
  and EventMemoryCache.
  cocoon.xconf (C2b2):
  
  
  
  cocoon.xconf (C2b1):
  
  
  
  Because of this my engine work too slow (speed down to 1000 times
  from 50 msec processing to 50 sec!) and cache has been never used
  when I refresh page. Then, I downgrade my system to C2b1 again and
  now use C2b2 only for small testing, not for working.

  I'm think what this system is cool, but i can't use this system
  normally... these errors stopped me.

  I want to say, what database (hsqldb) working is great, and i18n of
  source files already work too on my machine... here my hacking was
  success. Little note: i can't use other encoding except UTF-8 in
  forms because other encoding not supported by all system entirely yet.
  I setup cp1251 encoding inside database engine (MySQL), xml/xsl pages,
  sitemap, resin.conf and uncheck "Always send URL adresses as UTF-8"
  option in IE Properties, but russian chars not processed properly.
  Only one way for this processing i found: use hsqldb as database
  engine and UTF-8 as base encoding anywhere. MySQL isn't support
  UTF-8, and under Win98 i know only PostgreSQL DB through CygWIN and
  no more...
  
  And small note at end: update your docs about  tags inside
  cocoon.xconf (http://xml.apache.org/cocoon2/datasources.html).
  This tags already used in Ñ2b1, but documentation not changed.
  I try to use datasources in Resin to connect Cocoon through JNDI,
  but not found any docs on our site about this. Can I use tags 
  or ? I also must install J2EE instead of JDK on my machine,
  isn't it? If anyone can help me, please send detailed step-by-step
  instruction into this list.
  
  Thanks for a look.
-- 
Best regards,
 Andrew Answer   mailto:[EMAIL PROTECTED]



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

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

Re: MacRoman text encoding and C2

2001-08-28 Thread Fulvio Picecchi

Sorry Jesse, I didn't know that C1 supports platform dependent charset 
encodings ...
Anyway, if you'll ever need to do this conversion maybe this tools can 
help you:
- Francois Pinard has written "recode" for Linux/Unix:
http://www.iro.umontreal.ca/contrib/recode/
- But I think you already have what you need. Look inside the bin/ 
directory in your JDK, you'll find a tool called native2ascii that you 
can use this way:
native2ascii -encoding MacRoman example.xml example.jtx
native2ascii -reverse -encoding UTF-8 example.jtx example.xml
The supported encodings:
http://java.sun.com/j2se/1.3.0/docs/guide/intl/encoding.doc.html
And a little help for this tool:
http://java.sun.com/j2se/1.3.0/docs/tooldocs/win32/native2ascii.html

Hope this can help you. Sincerely.
--
Fulvio Picecchi



Jesse Reynolds wrote:
> Thanks Fulvio for your kind thoughts.
> 
> I'm fully aware that it would be much better if our database could send 
> out UTF-8, but that's alot of work that I'd rather not do. Cocoon1 has 
> been doing a perfect job of understanding MacRoman to date, it would 
> seem a great pity to have lost this functionality.
> 
> There must be a way of doing it in a pipeline somehow. Hopefully someone 
> has already written the code.
> 
> Cheers
> 
> Jesse
...


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

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




Re: [c2] jdbc connection problem

2001-08-28 Thread Arnaud Vandyck

Date: 28 Aug 2001 12:11:02 +0200
From: Christoph Kliemt <[EMAIL PROTECTED]>

> Hi!
> 
>  I still have problems connecting a postgres database.
>  ("Could not get the datasource java.sql.SQLException: You cannot get
>  a Poolable before the pool is initialized") 
> 
>  Driver is loaded ok; database is connectable (tested with a small
>  java-program without the use of cocoon), config should be ok... i
>  hope...
>
>  Hmpf.. not that much information. Any hints?
>  Is there another way to get more information?

1) are you sure the correct jar is in /WEB-INF/lib? 

2) did you modify /WEB-INF/web.xml? 

3) did you modify /cocoon.xconf? 

If everything is correct, Stop Tomcat (or your servlet engine), delete
the working directory of your servlet engine, then run it again. 

--Arnaud

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

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




Re: [c2] jdbc connection problem

2001-08-28 Thread Berin Loritsch

Christoph Kliemt wrote:
> 
> Hi!
> 
>  I still have problems connecting a postgres database.
>  ("Could not get the datasource java.sql.SQLException: You cannot get
>  a Poolable before the pool is initialized")
> 
>  Driver is loaded ok; database is connectable (tested with a small
>  java-program without the use of cocoon), config should be ok... i
>  hope...
> 
>  So i hacked the java-file (esql_xsp.java) and compiled it behind
>  cocoons back:

Check out the FAQ!  I have put ample information in there.  The next
version of Avalon Excalibur (home of the connection code) will have
much better debug messages.

> 
>  (line 319)
> 
>  System.out.println("DataSourceComponent : "
> + _esql_connection.datasource.toString() );
>  _esql_connection.connection =
>   _esql_connection.datasource.getConnection();
> 
>  This tells me:
>  DataSourceComponent :
>  org.apache.avalon.excalibur.datasource.JdbcDataSource@2f0d54
> 
>  Hmpf.. not that much information. Any hints?
>  Is there another way to get more information?
> 
>  \\// christoph
> 
>  btw : is the cvs-server down?
> 
> -
> Please check that your 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]>




FOP Upgrade with cocoon

2001-08-28 Thread Sébastien Lefebvre

Hi,

I use FOP 0.15 coming with cocoon 1.8.2
I want to upgrade to 0.19

I plan to simply put the FOP 0.19 jar into $TOMCAT_HOME/lib and restart 
tomcat.
What kind of problem can occur ?

Thanks a lot for your help

Sébastien



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

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




Re: Can't run under JBoss2.4/Tomcat3.2.3 (org.xml.sax.SAXNotSupportedException)

2001-08-28 Thread Gianugo Rabellino

On Mon, Aug 27, 2001 at 04:15:36PM -0400, [EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> I'm trying to get Cocoon2b2 going with the JBoss2.4/Tomcat3.2.3 bundle.  To
> the best of my knowledge I followed the Cocoon install instructions for the
> JBoss2.2.2/Tomcat3.2.2 bundle to the letter, but am getting the exception
> below.  Has anyone tried to use cocoon with this new JBoss release?  I'm
> running under Cygwin.  I can view the Tomcat intro page at

Here (Linux is being run) I succeeded with almost no problem. Please 
double check that: 

1. you edited the Jboss run script and got rid of the JAXP envs and of
the crimson.jar, putting xerces in place of crimson (lines 23-24-25);
2. you moved away crimson.jar from jboss/lib and copied xerces in this
place;
3. you removed any occurence of jaxp.jar (both in jboss and tomcat) and
copied xerces in tomcat/lib;
4. you renamed parser.jar to zparser.jar in tomcat/lib.

This was enough for me. Although YMMV, it should be pretty 
straightforward: let me know if you still have problems.

Ciao,

-- 
Gianugo Rabellino

-
Please check that your 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: One More Cocoon Powered Website!

2001-08-28 Thread Gritsenko

James,

If you care at all for my advice, then

In your RTF reports:

Make headings font 3 times smaller;
When one or more tables follow each other and all of them are short enough
to fit on one page, they are placed on the same page.

Viktor


- Original Message -
From: "James Y. Wilson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 27, 2001 1:45 PM
Subject: One More Cocoon Powered Website!


> Greetings!
>
> We have been happily using Cocoon 1.8 in our production environment for
the
> last 4 months, and we are very pleased with the results.  Though Cocoon
does
> not power our primary web site, it is the basis for the implementation of
a
> back end subsystem we call the Report Engine.  The Report Engine generates
> comprehensive reports for the Fire Alarm and Life Safety industry (our
core
> market) when requested by our users.  The Cocoon architecture has given us
> the framework we needed to achieve a complete separation of our report
logic
> from the complexities of report formatting, something which we continue to
> leverage to greatly accelerate the time to market for new reports.
>
> If you would care to check it out, just go to www.buildingreports.com and
> log in as a WebGuest.  You may then view a Cocoon generated report by
> clicking on any of the report links provided in this page.
>
> Please add our name to the list of those proudly running Cocoon!
>
> Jim
> CIO
> BuildingReports.com
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


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

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




Re: MacRoman text encoding and C2

2001-08-28 Thread Jesse Reynolds

Thanks Fulvio for your kind thoughts.

I'm fully aware that it would be much better if our database could
send out UTF-8, but that's alot of work that I'd rather not do.
Cocoon1 has been doing a perfect job of understanding MacRoman to
date, it would seem a great pity to have lost this functionality.

There must be a way of doing it in a pipeline somehow. Hopefully
someone has already written the code.

Cheers

Jesse



At 12:12 PM +0200 28/8/01, Fulvio Picecchi wrote:
>Don't really know if Cocoon2 supports MacRoman, but when composing
>XML docs it would be always better to _not_ use a platform-dependent
>encoding like MacRoman (Mac) or Cp1252 (Windows).
>
>If you try writing something like this in MacRoman > a PC user would see >.
>
>In general the best way would be using UTF8 (if you have a text
>editor that supports it), the same encoding of this e-mail message,
>that contains the characters of all languages of the world or a
>Latin dialect which are ISO standards: Latin-1 (ISO 8859-1), etc.
>Sincerely.
>
>--
>Fulvio Picecchi
>
>
>Jesse Reynolds wrote:
>>Hello
>>
>>I've been using the following xml declaration in Cocoon 1 with
>>excellent results:
>>
>>
>>
>>(becuase our live XML data is coming from a database on a Mac and
>>there are some non-ascii characters we're sending out that need to
>>be recognised appropriately by cocoon)
>>
>>Anyway, Cocoon 2 doesn't seem to like this at all... I get the
>>following error:
>>
>>org.apache.cocoon.ProcessingException: Failed to execute
>>pipeline.:java.lang.RuntimeException: Problem in getTransformer:The
>>encoding "MacRoman" is not supported.
>>
>>
>>So, is the MacRoman text encoding just completely not supported by
>>Cocoon 2? or is there something I can do to make this work?
>>
>>Thanks
>>
>>-jesse
>>
>
>
>--
>Fulvio Picecchi
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>


--

   Jesse Reynolds - Virtual Artists Pty Ltd - http://www.va.com.au
  jesse (at) va.com.au

-
Please check that your 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: MacRoman text encoding and C2

2001-08-28 Thread Fulvio Picecchi

Don't really know if Cocoon2 supports MacRoman, but when composing XML 
docs it would be always better to _not_ use a platform-dependent 
encoding like MacRoman (Mac) or Cp1252 (Windows).

If you try writing something like this in MacRoman <> a PC user would see <>.

In general the best way would be using UTF8 (if you have a text editor 
that supports it), the same encoding of this e-mail message, that 
contains the characters of all languages of the world or a Latin dialect 
which are ISO standards: Latin-1 (ISO 8859-1), etc.
Sincerely.

-- 
Fulvio Picecchi


Jesse Reynolds wrote:
> Hello
> 
> I've been using the following xml declaration in Cocoon 1 with excellent 
> results:
> 
> 
> 
> (becuase our live XML data is coming from a database on a Mac and there 
> are some non-ascii characters we're sending out that need to be 
> recognised appropriately by cocoon)
> 
> Anyway, Cocoon 2 doesn't seem to like this at all... I get the following 
> error:
> 
> org.apache.cocoon.ProcessingException: Failed to execute 
> pipeline.:java.lang.RuntimeException: Problem in getTransformer:The 
> encoding "MacRoman" is not supported.
> 
> 
> So, is the MacRoman text encoding just completely not supported by 
> Cocoon 2? or is there something I can do to make this work?
> 
> Thanks
> 
> -jesse
> 
> 


-- 
Fulvio Picecchi


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

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




[c2] jdbc connection problem

2001-08-28 Thread Christoph Kliemt

Hi!

 I still have problems connecting a postgres database.
 ("Could not get the datasource java.sql.SQLException: You cannot get
 a Poolable before the pool is initialized") 

 Driver is loaded ok; database is connectable (tested with a small
 java-program without the use of cocoon), config should be ok... i
 hope...

 So i hacked the java-file (esql_xsp.java) and compiled it behind
 cocoons back:

 (line 319)
 
 System.out.println("DataSourceComponent : " 
+ _esql_connection.datasource.toString() );
 _esql_connection.connection =
  _esql_connection.datasource.getConnection();

 This tells me:
 DataSourceComponent :
 org.apache.avalon.excalibur.datasource.JdbcDataSource@2f0d54 

 Hmpf.. not that much information. Any hints?
 Is there another way to get more information?

 \\// christoph

 btw : is the cvs-server down?

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

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




Q: DB-password clear text?

2001-08-28 Thread Enke Michael

Hi!
Is there a possibility or would it be
easy to implement to have the DB password
encrypted in some kind (in *.xsp or cocoon.xconf)?
This doesn't mean a state of the art
encryption (too complicated!?), but only
that not everybody can have direct access
to the database.

Regards,
Michael

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

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




Q: restricted access possible?

2001-08-28 Thread Enke Michael

Hi,
is it possible to restrict the access to a cocoon site
or parts of the site by the IP address of the originating
request? E.g. as parameter to sitemap.xmap?

Regards,
Michael

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

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




RE: Out of memory with JDK

2001-08-28 Thread Chris Newland

Hi Stephan,

I'm using Tomcat 4.0-b6 as my servlet container so I set the CATALINA_OPTS
variable in the /bin/startup.sh script:

CATALINA_OPTS=" -Xms128m -Xmx128m "

as this environment variable is used to set the VM parameters when tomcat
starts:

java $CATALINA_OPTS ...

If you are using a different servlet container you'll need to make sure that
the VM that contains the Cocoon servlet has these parameters set when it
starts.

Hope this helps,

Chris


> -Original Message-
> From: Stephan Kassanke [mailto:[EMAIL PROTECTED]]
> Sent: 27 August 2001 10:39
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: Out of memory with JDK
>
>
> Hi chris,
>
> thanks for your quick answer. Currently we are using JVM 1.1.8
> under Linux.
> The switches are the same you mentioned below. Is this set when I
> start the
> cocoon servlet?
>
> eg. java -Xms128m -Xmx128m 
>
>
> best regards,
> Stephan
> - Original Message -
> From: "Chris Newland" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 24, 2001 5:41 PM
> Subject: RE: Out of memory with JDK
>
>
> > Hi Stephan,
> >
> > java -Xms128m -Xmx128m 
> >
> > Would set the starting and maximum heap to 128MB. Just change the values
> to
> > suit your machine.
> >
> > Which JVM version are you using? Some of the earlier VMs used a
> different
> > switch.
> >
> > Best Regards,
> >
> > Chris
> >
> > > -Original Message-
> > > From: Stephan Kassanke [mailto:[EMAIL PROTECTED]]
> > > Sent: 24 August 2001 16:33
> > > To: [EMAIL PROTECTED]
> > > Subject: Out of memory with JDK
> > >
> > >
> > > Hi,
> > >
> > > we have a problem with the JVM which has obviously not enough
> > > memory to do a
> > > trasnformation to HTML or PDF.
> > >
> > > I keep getting the error
> > >   Cocoon 1.8.2
> > >
> > >
> > >
> > >
> > >   Error found handling the request.
> > > java.lang.Exception: FATAL ERROR: the JVM ran out of memory when
> > >  processing the request. The maximum amount of memory used by your VM
> > >  can be changed at the command line (consult your JDK documentation)
> > >  and may not be at all related to the amount of physical memory
> > >  in your machine!
> > > at org.apache.cocoon.Engine.handle(Engine.java:435)
> > > at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> > > at
> > >
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> > > at org.apache.tomcat.core.Handler.service(Handler.java:286)
> > > at
> > > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> > > at
> > > org.apache.tomcat.core.ContextManager.internalService(ContextManag
> > > er.java:79
> > > 7)
> > > at
> > > org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> > > at
> > > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.process
> > > Connection
> > > (Ajp12ConnectionHandler.java:166)
> > > at
> > >
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> > > at
> > >
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> > > at java.lang.Thread.run(Thread.java)
> > >
> > >
> > >   Warning: this page has been dynamically generated.
> > >
> > >
> > > The problem i have is most probably trivial for most of you. How
> > > do I change
> > > the amount of memory available for the JVM. I searched the
> newsgroup and
> > > archives with no success yet. can somebody point me to the right
> resource.
> > >
> > > Thanks,
> > > Stephan
> > >
> > > PS.: Isn't this a candidate for the FAQ?
> > >
> > >
> > > -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. 
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > >
> > >
> > >
> >
> >
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
>
>
>



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

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