Re: [OS-X] Serious Encoding Problems (VM Bug?)
Le Vendredi, 5 mars 2004, à 16:22 Europe/Zurich, Alexander Schatten a écrit : ...Has anyone an idea, how I could fix this encoding problem on OS X ? Most probably, you need to make sure the JVM is started with the correct encoding definition, like "-Dfile.encoding=iso-8859-1" -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
Bertrand Delacretaz wrote: Le Vendredi, 5 mars 2004, à 16:22 Europe/Zurich, Alexander Schatten a écrit : ...Has anyone an idea, how I could fix this encoding problem on OS X ? Most probably, you need to make sure the JVM is started with the correct encoding definition, like "-Dfile.encoding=iso-8859-1" thank you, but how do I set this one? I just tried to edit the cocoon.sh file and made the following entry on top: JAVA_OPTIONS='-Dfile.encoding=iso-8859-1' but this does not have any effect either. thank you! Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
Alexander Schatten wrote: JAVA_OPTIONS='-Dfile.encoding=iso-8859-1' I read the Sun documentation now, and extended this to: -Dfile.encoding=iso-8859-1 -Duser.language=de -Duser.country=DE -Duser.variant=MAC additionally, -- the LANG=de_DE.iso-8859-1 -- the two encoding init params in web.xml are iso-8859-1 It still does not work to send and retrieve german umlauts from Cocoon to mysql... (mentioned again: the same cocoon webapp works without problems on an english RedHat 9 server) now I really have no more ideas... please, any other comments? thanks Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
are you sure these java options are actually used when your servlet container starts up? Do an echo $JAVA_OPTIONS just before the statement you think gets exec'ed to start the container. Alexander Schatten wrote: Alexander Schatten wrote: JAVA_OPTIONS='-Dfile.encoding=iso-8859-1' I read the Sun documentation now, and extended this to: -Dfile.encoding=iso-8859-1 -Duser.language=de -Duser.country=DE -Duser.variant=MAC additionally, -- the LANG=de_DE.iso-8859-1 -- the two encoding init params in web.xml are iso-8859-1 It still does not work to send and retrieve german umlauts from Cocoon to mysql... (mentioned again: the same cocoon webapp works without problems on an english RedHat 9 server) now I really have no more ideas... please, any other comments? thanks Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
I use Jetty. java -Xmx256M -Xms128M -Xss128K -Dfile.encoding=UTF-8 -jar start.jar etc/jetty.xml Then it works fine. teru - Original Message - From: "Jorg Heymans" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 06, 2004 2:34 AM Subject: Re: [OS-X] Serious Encoding Problems (VM Bug?) > are you sure these java options are actually used when your servlet > container starts up? Do an echo $JAVA_OPTIONS just before the statement > you think gets exec'ed to start the container. > > Alexander Schatten wrote: > > > Alexander Schatten wrote: > > > >> > >> JAVA_OPTIONS='-Dfile.encoding=iso-8859-1' > >> > > I read the Sun documentation now, and extended this to: > > > > -Dfile.encoding=iso-8859-1 -Duser.language=de -Duser.country=DE > > -Duser.variant=MAC > > > > > > additionally, > > > > -- the LANG=de_DE.iso-8859-1 > > -- the two encoding init params in web.xml are iso-8859-1 > > > > > > It still does not work to send and retrieve german umlauts from Cocoon > > to mysql... (mentioned again: the same cocoon webapp works without > > problems on an english RedHat 9 server) > > > > > > now I really have no more ideas... > > > > > > please, any other comments? > > > > > > thanks > > > > > > Alex > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
I had a similar problem storing German text in a Postgresql database under Mac OS X. I discovered that 1) Java stored data in the database in UTF-8; 2) Java does not necessarily read Strings in the format you would expect. I populated the database from a Microsoft Excel source using a Java program and POI. I converted the strings from POI to whatever Java uses internally using the following function: private static String toJava( String cp1252 ) { try { return new String( cp1252.getBytes(), "Cp1252" ); } catch( Exception e ) { e.printStackTrace( System.err ); } return cp1252; //dummy value to keep the compiler happy: we never get here } The Postgresql JDBC put the stuff into the database in UTF-8 format. Perhaps the MySQL JDBC does something similar. The Mac seems to prefer something called Mac OS Roman to ISO 8859-1. I have decided to use UTF-8 as "lingua franca" and hope that Deli or something similar will allow me to generate whatever the client actually wants. I didn't have to fiddle with the JVM parameters. Perhaps this helps you... Cheers Steve On 5 Mar 2004, at 17:42, Alexander Schatten wrote: Alexander Schatten wrote: JAVA_OPTIONS='-Dfile.encoding=iso-8859-1' I read the Sun documentation now, and extended this to: -Dfile.encoding=iso-8859-1 -Duser.language=de -Duser.country=DE -Duser.variant=MAC additionally, -- the LANG=de_DE.iso-8859-1 -- the two encoding init params in web.xml are iso-8859-1 It still does not work to send and retrieve german umlauts from Cocoon to mysql... (mentioned again: the same cocoon webapp works without problems on an english RedHat 9 server) now I really have no more ideas... please, any other comments? thanks Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OS-X] Serious Encoding Problems (VM Bug?)
My problem (see: Bug in ServerPages Generator ??) could be related to this. If I declare some string in Java within XSP, I have to use unicode for (in my case) french characters. I now experience the same problems with data coming from my database. I think it could also be VM related (I'm using 1.4.2_03 *i think*) or the JDBC driver. I do not have the problem on OSX, but I connect to the database using the mydatabase?charSet=iso-8859-1 dburl. -Original Message- From: Stephen Winnall [mailto:[EMAIL PROTECTED] Sent: zaterdag 6 maart 2004 23:15 To: [EMAIL PROTECTED] Subject: Re: [OS-X] Serious Encoding Problems (VM Bug?) I had a similar problem storing German text in a Postgresql database under Mac OS X. I discovered that 1) Java stored data in the database in UTF-8; 2) Java does not necessarily read Strings in the format you would expect. I populated the database from a Microsoft Excel source using a Java program and POI. I converted the strings from POI to whatever Java uses internally using the following function: private static String toJava( String cp1252 ) { try { return new String( cp1252.getBytes(), "Cp1252" ); } catch( Exception e ) { e.printStackTrace( System.err ); } return cp1252; //dummy value to keep the compiler happy: we never get here } The Postgresql JDBC put the stuff into the database in UTF-8 format. Perhaps the MySQL JDBC does something similar. The Mac seems to prefer something called Mac OS Roman to ISO 8859-1. I have decided to use UTF-8 as "lingua franca" and hope that Deli or something similar will allow me to generate whatever the client actually wants. I didn't have to fiddle with the JVM parameters. Perhaps this helps you... Cheers Steve On 5 Mar 2004, at 17:42, Alexander Schatten wrote: > Alexander Schatten wrote: > >> >> JAVA_OPTIONS='-Dfile.encoding=iso-8859-1' >> > I read the Sun documentation now, and extended this to: > > -Dfile.encoding=iso-8859-1 -Duser.language=de -Duser.country=DE > -Duser.variant=MAC > > > additionally, > > -- the LANG=de_DE.iso-8859-1 > -- the two encoding init params in web.xml are iso-8859-1 > > > It still does not work to send and retrieve german umlauts from Cocoon > to mysql... (mentioned again: the same cocoon webapp works without > problems on an english RedHat 9 server) > > > now I really have no more ideas... > > > please, any other comments? > > > thanks > > > Alex > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
Yves Vindevogel wrote: My problem (see: Bug in ServerPages Generator ??) could be related to this. If I declare some string in Java within XSP, I have to use unicode for (in my case) french characters. I now experience the same problems with data coming from my database. I think it could also be VM related (I'm using 1.4.2_03 *i think*) or the JDBC driver. I do not have the problem on OSX, but I connect to the database using the mydatabase?charSet=iso-8859-1 dburl. well, thanks for the comments, so it is probably not me beeing too stupid, because I tried all tips, but no one worked so far: and to mention it again: it already worked with the JDK version before the update; so meanwhile I really assume, that this is a JDK bug! btw.: what do you mean with mydatabase?charSet=iso-8859-1 dburl. ? thanks alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OS-X] Serious Encoding Problems (VM Bug?)
btw.: what do you mean with mydatabase?charSet=iso-8859-1 dburl. In your configuration of the datasources: I use this to force Postgresql to send my everything in ISO-8859-1. This works under Tomcat / Cocoon 2.0.x on Mac OSX 10.2 (no panther yet on that machine) jdbc:postgresql://myserver/mydatabase?charSet=iso-8859-1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OS-X] Serious Encoding Problems (VM Bug?)
What JDK are you using, anyway ? I need to track this down, so I'm gonna do this 1) Copy my Tomcat directory (on Osx) to my Slackware server. This check allows me to see if it's only a problem in cocoon 2.1 since my Tomcat uses 2.0 2) Then I will copy my postgresql-jdbc jar from 2.0 to 2.1. Could also be a problem in it. I'm not sure whether I need to specify options, but the .jar was build by me without options in Postgresql 3) Then I will downgrade my JDK to 1.4.x where x < 2. I'm pretty sure it's not Postgresql, because both Cocoons are connecting to the same database on the same server, with the same datasource settings. -Original Message- From: Alexander Schatten [mailto:[EMAIL PROTECTED] Sent: zondag 7 maart 2004 2:29 To: [EMAIL PROTECTED] Subject: Re: [OS-X] Serious Encoding Problems (VM Bug?) Yves Vindevogel wrote: >My problem (see: Bug in ServerPages Generator ??) could be related to this. > >If I declare some string in Java within XSP, I have to use unicode for (in >my case) french characters. I now experience the same problems with data >coming from my database. > >I think it could also be VM related (I'm using 1.4.2_03 *i think*) or the >JDBC driver. >I do not have the problem on OSX, but I connect to the database using the >mydatabase?charSet=iso-8859-1 dburl. > > > well, thanks for the comments, so it is probably not me beeing too stupid, because I tried all tips, but no one worked so far: and to mention it again: it already worked with the JDK version before the update; so meanwhile I really assume, that this is a JDK bug! btw.: what do you mean with mydatabase?charSet=iso-8859-1 dburl. ? thanks alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
Yves Vindevogel wrote: jdbc:postgresql://myserver/mydatabase?charSet=iso-8859-1 hm, thank you; did not know this one; looks like a specific postgresql feature, no? will this work on mysql too? thanks alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OS-X] Serious Encoding Problems (VM Bug?)
I have no idea at all but, I do think this is jdbc related and not postgres -Original Message- From: Alexander Schatten [mailto:[EMAIL PROTECTED] Sent: zondag 7 maart 2004 17:03 To: [EMAIL PROTECTED] Subject: Re: [OS-X] Serious Encoding Problems (VM Bug?) Yves Vindevogel wrote: > > jdbc:postgresql://myserver/mydatabase?charSet=iso-8859-1 > > > hm, thank you; did not know this one; looks like a specific postgresql feature, no? will this work on mysql too? thanks alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
Yves Vindevogel wrote: btw.: what do you mean with mydatabase?charSet=iso-8859-1 dburl. In your configuration of the datasources: I use this to force Postgresql to send my everything in ISO-8859-1. This works under Tomcat / Cocoon 2.0.x on Mac OSX 10.2 (no panther yet on that machine) jdbc:postgresql://myserver/mydatabase?charSet=iso-8859-1 all right; to complete the story, I tried this one too; encoding is still not working. meanwhile I think I have really set everything that is mentioned in the documentation, the wiki or the mailinglist: -- LANG system variable -- JAVA_OPTIONS on startup -- this encoding in the driver still the öäüÄÖÜ are not transferred correctly from the database; I really believe now, this is a VM bug, but I am curious, that there seem to be no other OS X user, that have upgraded the Java VM and did not recognize this problem. (again: the application works fine and without problems on Linux). Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
Le Mardi, 9 mars 2004, à 10:31 Europe/Zurich, Alexander Schatten a écrit : ...I think I have really set everything that is mentioned in the documentation, the wiki or the mailinglist: -- LANG system variable -- JAVA_OPTIONS on startup -- this encoding in the driver still the öäüÄÖÜ are not transferred correctly from the database; This might have been suggested already, but did you try from a small java program talking JDBC directly to your database? If it's not working at that level it will never work. -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OS-X] Serious Encoding Problems (VM Bug?)
I really believe now, this is a VM bug, but I am curious, that there seem to be no other OS X user, that have upgraded the Java VM and did not recognize this problem. (again: the application works fine and without problems on Linux). YV: I have the opposite. Running an old VM on my Mac (Jaguar still there) with no problems. Brand new Linux Slackware 9.1, with problem. My characters are coming back nicely on OSX, and even in Access when I use postgresODBC to the database. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
Yves Vindevogel wrote: I really believe now, this is a VM bug, but I am curious, that there seem to be no other OS X user, that have upgraded the Java VM and did not recognize this problem. (again: the application works fine and without problems on Linux). YV: I have the opposite. Running an old VM on my Mac (Jaguar still there) with no problems. Brand new Linux Slackware 9.1, with problem. as I mentioned already: with the Old VM on OS X it worked! it seems to be an issue of the JVM upgrade! alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OS-X] Serious Encoding Problems (VM Bug?)
Yes, could be I use 1.4.2_03 What I also noticed ... I use swaret to keep my system up-to-date. Swaret wanted me to install XFree86 4.xx to run J2Sdk. I think this is no longer needed (since 1.4), so I did not install it. Could there be a problem there ? -Original Message- From: Alexander Schatten [mailto:[EMAIL PROTECTED] Sent: dinsdag 9 maart 2004 12:59 To: [EMAIL PROTECTED] Subject: Re: [OS-X] Serious Encoding Problems (VM Bug?) Yves Vindevogel wrote: >I really believe now, this is a VM bug, but I am curious, that there >seem to be no other OS X user, that have upgraded the Java VM and did >not recognize this problem. (again: the application works fine and >without problems on Linux). > >YV: I have the opposite. Running an old VM on my Mac (Jaguar still there) >with no problems. Brand new Linux Slackware 9.1, with problem. > > as I mentioned already: with the Old VM on OS X it worked! it seems to be an issue of the JVM upgrade! alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
Yves Vindevogel wrote: Yes, could be I use 1.4.2_03 What I also noticed ... I use swaret to keep my system up-to-date. Swaret wanted me to install XFree86 4.xx to run J2Sdk. I think this is no longer needed (since 1.4), so I did not install it. Could there be a problem there ? really, I have no idea: I use the Apple Software Update mechanism... there was no suggestion for X; alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
Ok, I got my database going again on a different machine. I now use Panther with the JVM that comes with it. I use the driver compiled by postgresql, and have already tested the one from their site. No solution. When I use a basic XSP, with strange chars, it works. So, it's only when I use the database connection from XSP. I then used the transformer instead of the generator: same problem ... Okay, so no much further. I downloaded Tomcat 4 and 5 First I installed Tomcat 4. It runs nicely. I downloaded Cocoon 2.0.4 (latest from 2.0 series) with VM 1.4 I dropped the cocoon.war in the webapps. Tomcat unpacks it. I try to open the :8080/cocoon folder and I get this error Failed to generate program code (this may happen if you use Xalan in incremental processing mode). Please check log file and/or console for errors. Okay, away went version 4 of Tomcat I unpacked Tomcat 5, started it and there it was ... Dropped the war again in the webapps. Tomcat unpacked it, but I could not connect to :8080/cocoon The requested resource (/cocoon/) is not available. Now that's strange to me The directory is there. I don't know why it's not found. Do I need to "register" it first under Tomcat 5 ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
I run Tomcat 5 under Mac OS X 10.3.3 (and 10.3.2 before that) with no problems. What I have noticed is that it takes Cocoon a long time to start up when Tomcat is (re)started, which might explain your error message. I am using Cocoon 2.1.4. Steve On 26 Mar 2004, at 20:51, Yves Vindevogel wrote: Ok, I got my database going again on a different machine. I now use Panther with the JVM that comes with it. I use the driver compiled by postgresql, and have already tested the one from their site. No solution. When I use a basic XSP, with strange chars, it works. So, it's only when I use the database connection from XSP. I then used the transformer instead of the generator: same problem ... Okay, so no much further. I downloaded Tomcat 4 and 5 First I installed Tomcat 4. It runs nicely. I downloaded Cocoon 2.0.4 (latest from 2.0 series) with VM 1.4 I dropped the cocoon.war in the webapps. Tomcat unpacks it. I try to open the :8080/cocoon folder and I get this error Failed to generate program code (this may happen if you use Xalan in incremental processing mode). Please check log file and/or console for errors. Okay, away went version 4 of Tomcat I unpacked Tomcat 5, started it and there it was ... Dropped the war again in the webapps. Tomcat unpacked it, but I could not connect to :8080/cocoon The requested resource (/cocoon/) is not available. Now that's strange to me The directory is there. I don't know why it's not found. Do I need to "register" it first under Tomcat 5 ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
Why do you use Tomcat 5 and Cocoon 2.1 together ? Cocoon 2.1.x runs with Jetty here, on both machines. I think the "slow" startup is due to the way Tomcat works, I guess. Anyway, the latest versions of both are not functioning, but maybe I should let it do its thing for 2 minutes. Are you sure you combine both ? On 27 Mar 2004, at 11:38, Stephen Winnall wrote: I run Tomcat 5 under Mac OS X 10.3.3 (and 10.3.2 before that) with no problems. What I have noticed is that it takes Cocoon a long time to start up when Tomcat is (re)started, which might explain your error message. I am using Cocoon 2.1.4. Steve On 26 Mar 2004, at 20:51, Yves Vindevogel wrote: Ok, I got my database going again on a different machine. I now use Panther with the JVM that comes with it. I use the driver compiled by postgresql, and have already tested the one from their site. No solution. When I use a basic XSP, with strange chars, it works. So, it's only when I use the database connection from XSP. I then used the transformer instead of the generator: same problem ... Okay, so no much further. I downloaded Tomcat 4 and 5 First I installed Tomcat 4. It runs nicely. I downloaded Cocoon 2.0.4 (latest from 2.0 series) with VM 1.4 I dropped the cocoon.war in the webapps. Tomcat unpacks it. I try to open the :8080/cocoon folder and I get this error Failed to generate program code (this may happen if you use Xalan in incremental processing mode). Please check log file and/or console for errors. Okay, away went version 4 of Tomcat I unpacked Tomcat 5, started it and there it was ... Dropped the war again in the webapps. Tomcat unpacked it, but I could not connect to :8080/cocoon The requested resource (/cocoon/) is not available. Now that's strange to me The directory is there. I don't know why it's not found. Do I need to "register" it first under Tomcat 5 ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Met vriendelijke groeten, Bien à vous, Kind regards, Yves Vindevogel Implements Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91 Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76 Markt 18c - 9700 Oudenaarde - Tel: +32 (55) 30 55 76 Web: http://www.implements.be First they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Ghandi.
Re: [OS-X] Serious Encoding Problems (VM Bug?)
On 27 Mar 2004, at 12:57, Yves Vindevogel wrote: Why do you use Tomcat 5 and Cocoon 2.1 together ? Cocoon 2.1.x runs with Jetty here, on both machines. I use them because they are the most recent versions, and I have no reason not to use them (i.e. they work). Are you sure you combine both ? I use - Cocoon 2.1.4 - Tomcat 5.0.16 on Mac OS X 10.3.3 with Java 1.4.2_03. Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
But why do you need them ?? You can startup Cocoon 2.1 with Jetty (cocoon.sh servlet) There's no need for Tomcat On 28 Mar 2004, at 00:46, Stephen Winnall wrote: On 27 Mar 2004, at 12:57, Yves Vindevogel wrote: Why do you use Tomcat 5 and Cocoon 2.1 together ? Cocoon 2.1.x runs with Jetty here, on both machines. I use them because they are the most recent versions, and I have no reason not to use them (i.e. they work). Are you sure you combine both ? I use - Cocoon 2.1.4 - Tomcat 5.0.16 on Mac OS X 10.3.3 with Java 1.4.2_03. Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Met vriendelijke groeten, Bien à vous, Kind regards, Yves Vindevogel Implements Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91 Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76 Markt 18c - 9700 Oudenaarde - Tel: +32 (55) 30 55 76 Web: http://www.implements.be First they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Ghandi.
Re: [OS-X] Serious Encoding Problems (VM Bug?)
On 28 Mar 2004, at 12:39, Yves Vindevogel wrote: But why do you need them ?? You can startup Cocoon 2.1 with Jetty (cocoon.sh servlet) There's no need for Tomcat Ah...! No good reason really: I first used Tomcat when it was version 1.x and haven't had any reason to change. And since I am more interested in Cocoon, content and multimodal presentation than Java and its various containers, the question of Jetty or Tomcat has never been a point of interest for me. I know lots of people prefer Jetty and I respect that (the same applies to those who prefer Tomcat), but I am neutral on this issue because my focus is elsewhere. Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
I see could you please tell me how to setup Tomcat 5 so that it works with Cocoon 2.1. Or a document on line ? This way, I could set up that solution and test if my problem is Jetty related. Because ... all my previous installations were on Tomcat. Might be Jetty related ... If Alexander Schatten reads this: what do you think ? Is your problem also only on installations with Jetty ? On 28 Mar 2004, at 13:20, Stephen Winnall wrote: On 28 Mar 2004, at 12:39, Yves Vindevogel wrote: But why do you need them ?? You can startup Cocoon 2.1 with Jetty (cocoon.sh servlet) There's no need for Tomcat Ah...! No good reason really: I first used Tomcat when it was version 1.x and haven't had any reason to change. And since I am more interested in Cocoon, content and multimodal presentation than Java and its various containers, the question of Jetty or Tomcat has never been a point of interest for me. I know lots of people prefer Jetty and I respect that (the same applies to those who prefer Tomcat), but I am neutral on this issue because my focus is elsewhere. Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Met vriendelijke groeten, Bien à vous, Kind regards, Yves Vindevogel Implements Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91 Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76 Markt 18c - 9700 Oudenaarde - Tel: +32 (55) 30 55 76 Web: http://www.implements.be First they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Ghandi.
Re: [OS-X] Serious Encoding Problems (VM Bug?)
I downloaded Cocoon 2.0.4 (latest from 2.0 series) with VM 1.4 I dropped the cocoon.war in the webapps. Tomcat unpacks it. I try to open the :8080/cocoon folder and I get this error Failed to generate program code (this may happen if you use Xalan in incremental processing mode). Please check log file and/or console for errors. endorsed lib problem? Okay, away went version 4 of Tomcat I unpacked Tomcat 5, started it and there it was ... Dropped the war again in the webapps. Tomcat unpacked it, but I could not connect to :8080/cocoon The requested resource (/cocoon/) is not available. you might need to setup a context for it, not sure. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
Yves Vindevogel wrote: I see could you please tell me how to setup Tomcat 5 so that it works with Cocoon 2.1. Or a document on line ? This way, I could set up that solution and test if my problem is Jetty related. Because ... all my previous installations were on Tomcat. Might be Jetty related ... If Alexander Schatten reads this: what do you think ? Is your problem also only on installations with Jetty ? this is a good question, I also thought about this recently; unfortunately I am completly full with work and had no time to transfer everything to tomcat (not only Cocoon, but also the JDBC driver, the applications.,..) but as this is the only difference between my machines, it could be possible: on the Linux server I user tomcat, as I do not like jetty in the production environment; I think I need to test tomcat/cocoon also on OS X... Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
I am not aware of having done anything special to install Tomcat under Mac OS X. As far as I recall, I downloaded jakarta-tomcat-5.0.16.tar.gz from Apache, expanded it and started Tomcat with the bin/startup.sh which it contains. I built a WAR file from Cocoon with ant, copied it into the webapps directory and built my application on top of that. I start Tomcat automatically at startup from /System/Library/StartupItems on port 8080 (which is the Mac OS X equivalent of /etc/init.d), but this is convenience rather than functionality. Steve On 28 Mar 2004, at 23:10, Alexander Schatten wrote: Yves Vindevogel wrote: I see could you please tell me how to setup Tomcat 5 so that it works with Cocoon 2.1. Or a document on line ? This way, I could set up that solution and test if my problem is Jetty related. Because ... all my previous installations were on Tomcat. Might be Jetty related ... If Alexander Schatten reads this: what do you think ? Is your problem also only on installations with Jetty ? this is a good question, I also thought about this recently; unfortunately I am completly full with work and had no time to transfer everything to tomcat (not only Cocoon, but also the JDBC driver, the applications.,..) but as this is the only difference between my machines, it could be possible: on the Linux server I user tomcat, as I do not like jetty in the production environment; I think I need to test tomcat/cocoon also on OS X... Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OS-X] Serious Encoding Problems (VM Bug?)
Alex, I just copied my cocoon directory in a Tomcat 5 installation. The problem persists. So, it's not Jetty related either BUT ... looking into the stacktrace a bit better, i notice this Original Exception: org.apache.avalon.framework.CascadingRuntimeException: Error getting ascii data for column region at org.apache.cocoon.components.language.markup.xsp.EsqlHelper.getAscii(EsqlHelper.java:305) I use XSP as generator, and obviously, ESQL is trying to fetch ASCII values. There's no ASCII in my DB, it's French characters. Thus, could this be the reason ? How can I tell esql not to use the getAscii but to use another function that works correctly with unicode or whatever that can depict french chars (or german umlauts, right alex?) On 28 Mar 2004, at 23:10, Alexander Schatten wrote: Yves Vindevogel wrote: I see could you please tell me how to setup Tomcat 5 so that it works with Cocoon 2.1. Or a document on line ? This way, I could set up that solution and test if my problem is Jetty related. Because ... all my previous installations were on Tomcat. Might be Jetty related ... If Alexander Schatten reads this: what do you think ? Is your problem also only on installations with Jetty ? this is a good question, I also thought about this recently; unfortunately I am completly full with work and had no time to transfer everything to tomcat (not only Cocoon, but also the JDBC driver, the applications.,..) but as this is the only difference between my machines, it could be possible: on the Linux server I user tomcat, as I do not like jetty in the production environment; I think I need to test tomcat/cocoon also on OS X... Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Met vriendelijke groeten, Bien à vous, Kind regards, Yves Vindevogel Implements Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91 Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76 Markt 18c - 9700 Oudenaarde - Tel: +32 (55) 30 55 76 Web: http://www.implements.be First they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Ghandi.
Re: [OS-X] Serious Encoding Problems (VM Bug?)
Pfff, this is getting so frustrating. I now recompiled my Postgresql, to make sure my initdb had the right encoding (latin1) One simple XSP page, my output still looks like this - - Yves - éèà ç Can anyone please tell me whether this is a bug, a mistake, ... ? Something. Damn, I start to miss the M$ days where you at least had Technet to find out what was wrong. On 30 Mar 2004, at 17:43, Yves Vindevogel wrote: Alex, I just copied my cocoon directory in a Tomcat 5 installation. The problem persists. So, it's not Jetty related either BUT ... looking into the stacktrace a bit better, i notice this Original Exception: org.apache.avalon.framework.CascadingRuntimeException: Error getting ascii data for column region at org.apache.cocoon.components.language.markup.xsp.EsqlHelper.getAscii(EsqlHelper.java:305) I use XSP as generator, and obviously, ESQL is trying to fetch ASCII values. There's no ASCII in my DB, it's French characters. Thus, could this be the reason ? How can I tell esql not to use the getAscii but to use another function that works correctly with unicode or whatever that can depict french chars (or german umlauts, right alex?) On 28 Mar 2004, at 23:10, Alexander Schatten wrote: Yves Vindevogel wrote: I see could you please tell me how to setup Tomcat 5 so that it works with Cocoon 2.1. Or a document on line ? This way, I could set up that solution and test if my problem is Jetty related. Because ... all my previous installations were on Tomcat. Might be Jetty related ... If Alexander Schatten reads this: what do you think ? Is your problem also only on installations with Jetty ? this is a good question, I also thought about this recently; unfortunately I am completly full with work and had no time to transfer everything to tomcat (not only Cocoon, but also the JDBC driver, the applications.,..) but as this is the only difference between my machines, it could be possible: on the Linux server I user tomcat, as I do not like jetty in the production environment; I think I need to test tomcat/cocoon also on OS X... Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Met vriendelijke groeten, Bien à vous, Kind regards, Yves Vindevogel Implements Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91 Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76 Markt 18c - 9700 Oudenaarde - Tel: +32 (55) 30 55 76 Web: http://www.implements.be First they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Ghandi.Met vriendelijke groeten, Bien à vous, Kind regards, Yves Vindevogel Implements Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91 Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76 Markt 18c - 9700 Oudenaarde - Tel: +32 (55) 30 55 76 Web: http://www.implements.be First they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Ghandi.
Re: [OS-X] Serious Encoding Problems (VM Bug?)
Ok, now I installed SQL4J on OSX. The same problem occurs there. So it's not a Cocoon specific error. How can I test if it's my JVM or my DB that is wrong ? For the DB part: I tried to connect through ms Access and everything is okay. For the JVM part: I have it on both Linux as OSX. On 30 Mar 2004, at 17:43, Yves Vindevogel wrote: Alex, I just copied my cocoon directory in a Tomcat 5 installation. The problem persists. So, it's not Jetty related either BUT ... looking into the stacktrace a bit better, i notice this Original Exception: org.apache.avalon.framework.CascadingRuntimeException: Error getting ascii data for column region at org.apache.cocoon.components.language.markup.xsp.EsqlHelper.getAscii(EsqlHelper.java:305) I use XSP as generator, and obviously, ESQL is trying to fetch ASCII values. There's no ASCII in my DB, it's French characters. Thus, could this be the reason ? How can I tell esql not to use the getAscii but to use another function that works correctly with unicode or whatever that can depict french chars (or german umlauts, right alex?) On 28 Mar 2004, at 23:10, Alexander Schatten wrote: Yves Vindevogel wrote: I see could you please tell me how to setup Tomcat 5 so that it works with Cocoon 2.1. Or a document on line ? This way, I could set up that solution and test if my problem is Jetty related. Because ... all my previous installations were on Tomcat. Might be Jetty related ... If Alexander Schatten reads this: what do you think ? Is your problem also only on installations with Jetty ? this is a good question, I also thought about this recently; unfortunately I am completly full with work and had no time to transfer everything to tomcat (not only Cocoon, but also the JDBC driver, the applications.,..) but as this is the only difference between my machines, it could be possible: on the Linux server I user tomcat, as I do not like jetty in the production environment; I think I need to test tomcat/cocoon also on OS X... Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Met vriendelijke groeten, Bien à vous, Kind regards, Yves Vindevogel Implements Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91 Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76 Markt 18c - 9700 Oudenaarde - Tel: +32 (55) 30 55 76 Web: http://www.implements.be First they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Ghandi.Met vriendelijke groeten, Bien à vous, Kind regards, Yves Vindevogel Implements Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91 Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76 Markt 18c - 9700 Oudenaarde - Tel: +32 (55) 30 55 76 Web: http://www.implements.be First they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Ghandi.
Re: [OS-X] Serious Encoding Problems (VM Bug?)
This article could be a hint why I'm stuck for weeks now. Anybody facing the same thing ? http://archives.postgresql.org/pgsql-jdbc/2003-09/msg00189.php On 30 Mar 2004, at 17:43, Yves Vindevogel wrote: Alex, I just copied my cocoon directory in a Tomcat 5 installation. The problem persists. So, it's not Jetty related either BUT ... looking into the stacktrace a bit better, i notice this Original Exception: org.apache.avalon.framework.CascadingRuntimeException: Error getting ascii data for column region at org.apache.cocoon.components.language.markup.xsp.EsqlHelper.getAscii(EsqlHelper.java:305) I use XSP as generator, and obviously, ESQL is trying to fetch ASCII values. There's no ASCII in my DB, it's French characters. Thus, could this be the reason ? How can I tell esql not to use the getAscii but to use another function that works correctly with unicode or whatever that can depict french chars (or german umlauts, right alex?) On 28 Mar 2004, at 23:10, Alexander Schatten wrote: Yves Vindevogel wrote: I see could you please tell me how to setup Tomcat 5 so that it works with Cocoon 2.1. Or a document on line ? This way, I could set up that solution and test if my problem is Jetty related. Because ... all my previous installations were on Tomcat. Might be Jetty related ... If Alexander Schatten reads this: what do you think ? Is your problem also only on installations with Jetty ? this is a good question, I also thought about this recently; unfortunately I am completly full with work and had no time to transfer everything to tomcat (not only Cocoon, but also the JDBC driver, the applications.,..) but as this is the only difference between my machines, it could be possible: on the Linux server I user tomcat, as I do not like jetty in the production environment; I think I need to test tomcat/cocoon also on OS X... Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Met vriendelijke groeten, Bien à vous, Kind regards, Yves Vindevogel Implements Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91 Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76 Markt 18c - 9700 Oudenaarde - Tel: +32 (55) 30 55 76 Web: http://www.implements.be First they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Ghandi.Met vriendelijke groeten, Bien à vous, Kind regards, Yves Vindevogel Implements Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91 Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76 Markt 18c - 9700 Oudenaarde - Tel: +32 (55) 30 55 76 Web: http://www.implements.be First they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Ghandi.