facebook

regional configuration not honored with tomcat [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #197403 Reply

    zabo
    Member

    Hi,

    I have encountered a bad problem with tomcat5.
    My environment is: winXP, eclipse2.1.1, myeclipse2.5 (I tried also 2.5.1 with the same result), tomcat5.0.3 and 5.0.4, same result both.
    My XP is in spanish, but in the control panel I have my regional configuration settings to English(Usa), that is decimal symbol (.). It seems that when myclipse launches tomcat, it does not honor my configuration for the decimal symbol (well maybe more, but that’s the one I am concerned about), and my webapp displays numbers with the spanish layout: 56,7 etc instead of 56.7.
    If I run tomcat from outside (the webapp was deployed by myeclise) the configuration is ok, that is, I get 56.7. So it seems myeclipse and the standalone tomcat do not start exactly in the same way concerning this??

    Any hint?

    Is that a known issue? Maybe I should add some arguments for tomcat or the jdk??

    TIA,
    zabo

    #197406 Reply

    Scott Anderson
    Participant

    Zabo,

    If I run tomcat from outside (the webapp was deployed by myeclise) the configuration is ok, that is, I get 56.7. So it seems myeclipse and the standalone tomcat do not start exactly in the same way concerning this?? … Is this a known issue?

    That’s really peculiar. It’s certainly not a known issue. All of our connectors are built to directly mimic the default configuration arguments given to each of their servers by their native startup scripts. You’ll need to compare the script you use outside of MyEclipse with our launch settings to see if there’s a differenc. To help, here are our settings for a Tomcat 5 launch:

    
    WorkingDirectory:
    <tomcat-install>/bin
    JVM Args:
    -Dcatalina.home=<tomcat-install>
    -Dcatalina.base=<tomcat-install>
    -Djava.endorsed.dirs=<tomcat-install>/bin;
        <tomcat-install>/common/endorsed
    -Djava.io.tmpdir=<tomcat-install>/temp
    -Djava.library.path=<jdk-install>/bin;
        <tomcat-install>/bin
    Classpath:
    <tomcat-install>/bin/bootstrap.jar;
        <jdk-install>/lib/tools.jar
    Launch class:
    org.apache.catalina.startup.Bootstrap
    Program Args:
    start
    

    Please compare these setting with the ones you use to launch Tomcat from outside of MyEclipse and let us know what differences you find.

    –Scott
    MyEclipse Support

    #197444 Reply

    zabo
    Member

    Scott,

    I launch Tomcat with the original scripts that come with it. I have been looking into them but I am lost very soon.

    I have posted a question in the tomcat-user list, in case someone knows about that config setting….

    thanks,

    #197448 Reply

    Scott Anderson
    Participant

    Zabo,

    One thing to try might be to set the locale options manually in the JVM arguments tab by specifying something like:
    -Duser.language=2-char-language-code
    -Duser.region=2-char-country-code

    I don’t know if this will help, but it’s worth a try. Please let us know what you determine.

    –Scott
    MyEclipse Support

    #197452 Reply

    zabo
    Member

    It DID help!!!!

    thanks a lot!

    #197453 Reply

    Scott Anderson
    Participant

    It DID help!!!!

    thanks a lot!

    Great! I’m glad I guessed. 😉

    –Scott
    MyEclipse Support

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: regional configuration not honored with tomcat [Closed]

You must be logged in to post in the forum log in