JSF webapp works with Java 1.4, but not Java EE 5

Hello
I am having a really weird problem with internationalizing my JavaServer Faces web application.
I am using Netbeans 6.0, Tomcat 6.0.10, JSF 1.2, and JTSL 1.1....
If I use Java 1.4 to run the webapp, everything works fine!
If I use Java EE 5 then it fails to execute internationalization of my choosen locale.
I could just use Java 1.4 and have my site working fine, but I would really like to use Java EE 5 since it can do more. Also I don't see why it can work on one version of Java but not another. My locales are English (en) and Korean (ko).
This is my index.jsp
<%--
    Document   : index
    Created on : 2/05/2008, 01:33:01
    Author     : Steve
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<html>
    <f:view locale="#{localeBean.language}">
        <f:loadBundle basename="resources.messages" var="msg"/>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
            <h2>Hello <h:outputText value="#{localeBean.country}"/>!</h2>
            <br>
            <h4><h:outputText value="#{msg.language}"/>:</h4>
            <h:form id="languageForm">
                <h:selectOneMenu   onchange="this.form.submit();" valueChangeListener="#{localeBean.dropdown1_processValueChange}">
                    <f:selectItem itemLabel="English" itemValue="en"/>
                    <f:selectItem itemLabel="������" itemValue="ko"/>
                </h:selectOneMenu>
            </h:form>
            <h:outputText value="#{localeBean.language}"/>
        </body>
    </f:view>
</html>This is my localeBean which is under the package "resources"
* To change this template, choose Tools | Templates
* and open the template in the editor.
package resources;
* @author Steve
import java.util.Locale;
import javax.faces.event.ValueChangeEvent;
public class localeBean {
    private String language = Locale.getDefault().getLanguage();
    private String country = Locale.getDefault().getCountry();
    public String getLanguage() {
        return language;
    public void setLanguage(String newValue) {
        language = newValue;
    public String getCountry() {
        return country;
    public void setCountry(String newValue) {
        country = newValue;
    public void dropdown1_processValueChange(ValueChangeEvent vce) {
        setLanguage((String) vce.getNewValue());
}This is my faces-config file
<?xml version='1.0' encoding='UTF-8'?>
<!-- =========== FULL CONFIGURATION FILE ================================== -->
<faces-config version="1.2"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<application> 
        <locale-config>  
            <default-locale>en</default-locale>  
            <supported-locale>en</supported-locale>
            <supported-locale>ko</supported-locale>
        </locale-config>
        <message-bundle> resources.messages </message-bundle>
    </application>
    <managed-bean>
        <managed-bean-name>localeBean</managed-bean-name>
        <managed-bean-class>resources.localeBean</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
</faces-config>and lastly I have my message bundle under the "resources" package which is named "messages".
This has a key word "language" which is "Language" in the 'en' locale file and "����" in the 'ko' locale file.
Once again when using Java 1.4 this project runs fine, however with Java EE 5 it does not.
You may notice in my index.jsp that I have <h:outputText value="#{localeBean.language}"/>
I use this to display the locale that has been chosen by my select box. Even when this shows a different language has been chosen the page does still not display in the correct language. According to <f:view locale="#{localeBean.language}"> then the locale of the page should be changed.
I have looked over the web quite far for an answer to this problem. But everyone else seems to be using a similar method of loading up a message bundle and using it the same way I am. However my method does not work.
Any suggestions or clues to what is going wrong would be really appreciated.
Thanks in advance^^

it seems that the
<f:view locale="en">
only work if a ressource bundle with the locale sufix '_en' is provided.
Everything works now if I provide 3 ressouce files:
global_en.properties
global_de.properties
global.properties
global.properties and global_en.properties are identically!
But if I delete the global_en.properties file always the global_de.properties file wins before the default properties.
I did not expect such a behavior :-(

Similar Messages

  • IPod nano works with USB 1.1 but not USB 2.0

    Anyone using an iPod nano that works with USB 1.1 but not with USB 2.0? I am using Windows XP and when installing the iPod software from CD it recognizes the iPod and am able to transfer songs using iTunes but when installing SP1 or SP2 to enable USB 2.0 transfers, Windows XP only recognizes the iPod nano as a USB Mass Storage Device. This is the same with iPod Updater.

    I have a similar problem with the following configuration:
    - Dell Dimension 4100 Desktop with 2 integrated USB 1.1 ports, Windows 2000 SP 4
    - PCI 6-Ports USB 2.0 Card ("Mentor" resp. www.bona.com.tw), Model USB20-PCI/6P
    What works well?
    - All my USB add-ons (1.1 and 2.0) on the internal 1.1 ports as well as on the USB2.0 PCI card
    - iPod Nano 4GB on internal 1.1 ports (external drive in windows 2000 as well as iPod in iTunes)
    - iPod Nano works as well as on the USB 2.0 card ONLY WHEN my old 4-port USB1.1 hub is connected between Nano and USB card
    What doesn't works?
    My iPod Nano directly connected to the USB 2.0 card. Symptoms when connecting:
    - Windows is very slow, process "scvhost.exe" or "system.exe" using 99% of CPU for some minutes
    - iPod is recognised as external drive, but when I click on it, it is empty and copying files to it results in "I/O error"
    - iTunes doesn't recognise the iPod (of course, if even windows itself cannot read from it...)
    I removed all USB drivers, reinstalled iTunes, iPod (by the way, I still don't understand what "iPod update" is good for, except for updating the iPod's firmware), deactivate the internal USB1.1 ports, no result.
    Help!!!!!!!!!!!!!!!!

  • My Xbox Bluetooth headset works with my iPhone 4,but not my iPhone 4s,help please!?, My Xbox Bluetooth headset works with my iPhone 4,but not my iPhone 4s,help please!?

    Please help,my Xbox headset works with my iPhone 4,but not my 4s,any ideas why?

    make sure you disconnect it from 1 before trying to connect it with the other or it will fail

  • Nothing will print. My printer works with every other program, but not this one!

    Nothing will print. My printer works with every other program, but not this one!

    I see the printer, in blue when I click on the hardware tab. Actually there are 2 things listed that have to do with the printer.
    The first one is called:
                    HP Photosmart Prem C410 series (DOT4PRIN.... and under the Type it is listed as IEEE1284.4...
    The next is listed as:
                    HP Phototsmart Prem C410 series and under the Type heading it says Printers.
    I don't know which one to pick.  So when I choose the name highlighted in blue, what do I do to change the name?

  • Class loading works with jre1.3.1 but not with jre1.4.0

    Hello,
    My JWS application use the following line to create an XMLReader:
    XMLReader rdr = XMLReaderFactory.createXMLReader( "org.apache.xerces.parsers.SAXParser" );
    Everything works fine with jre1.3.1, but with jre1.4.0 or jre1.4.1 I experience a very strange behaviour:
    1) When my application is downloaded and executed for the first time, everthing works fine.
    2) When I quit the application and I launch it again, an Exception is thrown (the system in unable to load the Class org.apache.xerces.parsers.SAXParser).
    3) If I tell JWS to show the console, everthing works fine again. If I tell JWS not to show the console, the Class can't be loaded anymore.
    Any idea ?

    Hi.
    I have also been experiencing problems in using Java Web Start for my application. When i tried certain functions of my application like saving and updating, I will faced this problem:
    javax.xml.soap.SOAPException: Unable to create SOAP connection factory: Provider com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory not found
    In the previous email in the forum, it was said that this problem was overcame, but I do not really know to how apply the solution given below:
    /* The following code is not used for now because
    * the code in createXMLReader() which dynamically          
    * allocates the class does not work the with          
    * Web Start class loader.          
    * This can be used again once Sun starts shipping          
    * Xerces 2.x with the JRE. They have already changed          
    * the XML development pack to use Xerces 2.x instead          
    * of Crimson, but as of 1.4.1, they are not updating          
    * the JRE distribution.           
    //String className = System.getProperty("org.xml.sax.parser");     
    //if (className == null) className = "org.apache.xerces.parsers.SAXParser";          
    //try {          
    //     tParser = XMLReaderFactory.createXMLReader(className);          
    //} catch (SAXException e) {          
    //     tParser = XMLReaderFactory.createXMLReader();          
    XMLReader tParser = new org.apache.xerces.parsers.SAXParser()
    Can anyone enlighten me on how to overcome the SOAP Factory problem? Thank you.

  • 4s Hotspot tethering only works with USB and BT but not with wifi

    Hi,
    XP sp3 - iPhone 4s with ios 5.0.1 - on Three one plan
    Tethering with wifi works to a friends Samsung phone, wifi on the pc confirmed working with the apple store wifi, tethering with USB and BT works with good connection speeds on my laptop but when i try to tether with wifi it connects to the laptop at 54mbps and all appears well, even claims to have received a small amount of data packets, but no data comes to any browser. The iPhone reports 1 connection to the hotspot and stays connected with a non-pulsing blue bar after the first minute.
    In the PC i have tried this http://windows.microsoft.com/en-US/windows7/Change-the-order-of-network-protocol -bindings
    I've deleted my firewall (zone alarm) completely and turned off windows firewall to go naked surfing for a second even though they don't cause a problem with USB tethering, makes no difference
    I've deleted the network connection numerous times
    "repaired" connection
    dissabled and enabled the wifi
    turned off the wireless with a hardware switch and on again
    disabled bluetooth
    rebooted many times
    reinstalled itunes (latest)
    loads more things i can't remember
    This is causing me a nightmare. I've been through everything i can find online, been to the Apple store genius bar (genius appeared to have sub zero knowledge / interest as it involved a MS machine), been to a Three shop (legally not allowed to touch my PC apparently) and been to a Sony shop (laptop make, not their fault if my iphone doesn't work). All very frustrating.
    Please help if you can! Any suggestion will be tried unless it involves sledge hammers or lakes, and only then for a few more days at most.

    Turned off bluetooth on phone, turned off hotspot and on again, phone asked if i wanted to turn on bluetooth or go with USB and wifi only, said usb/wifi only. Still nothing. Rebooted PC and iphone. Turned on hotspot, pc seemlessly connects to network, still no data comes.
    One odd thing is zone alarm asks me to "select a security zone for the wireless network at ip address: *******.0" every time and doesn't seem to remember the setting over sessions. When i get the status of the connection the ip address is *****.2 and default gateway is same ********.1 Not sure if that's anything.
    Also getting a javascript error about an undefinded component (trustcheckermozilla) since i updated zonealarm but as i said even completely uninstalling zonealarm made no difference. I'll update firefox as well but tried with IE and still no data.

  • S-Video adapter and analog TV works with OSX 10.5 but not Boot Camp 2.1(XP)

    I bought a mini-DVI to S-video or composite adapter to use with an older analog TV. Works great with OSX 10.5 no problems. However, I currently have Windows XP running with Boot Camp 2.1 and it wont work with the TV. If I ever get an image it's three black and white fuzzy and distorted iterations of the monitor.
    Since it works with OSX but not with XP i'm thinking its some sort of boot camp issue and not a problem with the hardware or adapter. Therefore, it should be solvable, right? Does anybody know how to fix this? Will upgrading to snow leopard and boot camp 3.1 solve it?

    Perform a custom install from the Mac OS X 10.5 disks and install only that component if possible; if not, use Pacifist to install it. In either case, rerun the combo updater for your Mac OS X version afterwards.
    (38032)

  • Macbook (White 2010) works with 5GB of RAM but not 8GB

    I bought 2 x 4gb modules the other day. I tried to install them both on my macbook which although supposedly supports 4 gb of ram but others have proven it will support up to 8gb. I installed them then booted up my Mac but it would not start it merely kept beeping.
    However when i used one of the modules with one of the previous modules i.e 5gb in total, my computer turned on and is working. Why don't both of the modules work together? How come I am unable to get 8gb of RAM but I am able to get 5gb? Both modules work when i use them with a 1gb module, but they don't work together. Any Advice?

    Yeah the 4gb is being recognised, my mac is running off the 5 gb in total. True, but i've seen videos where people have the exact same mac as me and have 8gb RAM. But yeah thanks for your help guys

  • IPod works with USB 1.0 but not 2.0?

    I'm trying to get my cousins iPod Shuffle working for her but I'm not having much luck...
    When I plug it in to any port on the computer, I get "USB Device Not Recognized" and it shows up as an "Unknown Device" in Device Manager.
    However, if I disable "Intel(R) 82801EB USB2 Enhanced Host Controller - 24DD" in Device Manager it immediately detects the device and it'll work with iTunes.
    What do I need to do to get this to work with USB 2.0? What could be causing the problem? Thanks!

    No, the fact that they haven't needed to update the drivers means they work perfectly well.
    If they work perfectly well, how come they cannot pick up the iPod (which has nothing to do with iTunes)?
    Also, how do you know they haven't needed to?
    More likely they simply haven't even looked at them to see if they need updating.
    Oh, and from the first post...
    "However, if I disable "Intel(R) 82801EB USB2 Enhanced Host Controller - 24DD" in Device Manager it immediately detects the device and it'll work with iTunes."
    But enough of this.
    Good luck with your problem.
    Hope you get it fixed.

  • Left most usb port works with usb 3 devices but not with usb 2 devices

    Can someone enlighten me on this issue? I have a MBP mid 12 that seems to have issues with usb 2 devices such iPods, HHDs, etc. The same port works fine with usb 3 devices. I have tried several solutions but not avail such as resetting the SMC, PROM, disconnecting the battery and reinstalling OS X from scratch. Is there anything Im missing? I still don't believe is a hardware issue but something wrong in the firmware...

    Can someone enlighten me on this issue? I have a MBP mid 12 that seems to have issues with usb 2 devices such iPods, HHDs, etc. The same port works fine with usb 3 devices. I have tried several solutions but not avail such as resetting the SMC, PROM, disconnecting the battery and reinstalling OS X from scratch. Is there anything Im missing? I still don't believe is a hardware issue but something wrong in the firmware...

  • Time Capsule works with MacBook Pro (Mavericks) but not with IOS devices?  recent problem starting March 1, 2015.

    I have a Time Capsule version 7.7.3 (model A1470) which has worked fine for almost 2 years with all devices, Apple and otherwise.  As of beginning of this month, March 2015 - no longer works with a new IPAD mini 3 and 6-month old iPhone 6 (both updated as of last night) BUT still works fine with MacBook Pro (Mavericks 10.9.5) and Epson printer XP-600. 
    On both IOS devices Airport Utility shows the Time Capsule and shows green light connection to internet, but never does the connection. The little status circle just keeps going round and never shows the Wifi rainbow symbol. both devices work fine on other Wifi's.  Airport Utility on iPhone actually connects enough to check on Airport base station's firmware 7.7.3 and says it is up to date!  but sadly stays on LTE.
    Have tried resetting, replugging etc...
    Also, tried checking on updates.  Nothing shows in Airport Utility. When I try to go to see past updates ~/Library/Application Support/Apple/AirPort/Firmware to see if updated, there is no Airport in the Apple folder?
    A mystery...

    Reset the TC to factory and redo the setup. see details below.
    Here is the typical list of things you should try.. and if this doesn't help post again.
    Factory reset universal
    Power off the TC.. ie pull the power cord or power off at the wall.. wait 10sec.. hold in the reset button.. be gentle.. power on again still holding in reset.. and keep holding it in for another 10sec. You may need some help as it is hard to both hold in reset and apply power. It will show success by rapidly blinking the front led. Release the reset.. and wait a couple of min for the TC to reset and come back with factory settings. If the front LED doesn’t blink rapidly you missed it and simply try again. The reset is fairly fragile in these.. press it so you feel it just click and no more.. I have seen people bend the lever or even break it. I use a toothpick as tool.
    N.B. None of your files on the hard disk of the TC are deleted.. this simply clears out the router settings of the TC.
    Setup the TC again.
    ie Start from a factory reset. No files are lost on the hard disk doing this.
    Then redo the setup from the computer or perhaps it is better using iOS on the phone or ipad currently having issues.
    1. Use very short names.. NOT APPLE RECOMMENDED names. No spaces and pure alphanumerics.
    eg TCgen5 and TCwifi for basestation and wireless respectively.
    Even better if the issue is more wireless use TC24ghz and TC5ghz with fixed channels as this also seems to help stop the nonsense. But this can be tried in the second round. For iOS the fixed channels particularly for 2.4ghz has helped.
    2. Use all passwords that also comply but can be a bit longer. ie 8-20 characters mixed case and numbers.. no non-alphanumerics.
    3. Ensure the TC always takes the same IP address.. you will need to do this on the main router using dhcp reservation.. or a bit more complex setup using static IP in the TC. But this is important.. having IP drift all over the place makes for poor networking. If the TC is main router it will not be an issue. This is a problem for a TC in bridge mode.
    If this is of no help.. what modem do you have? What function other than modem does it have.. ie none or router??
    How is the TC connected into the network? What function does it have? Router or bridge for example.
    Post a few screenshots of the setup.

  • How to open .snp files with Microsoft Office 2007 installed? It works with MS Office 2003 but not with MS Office 2007!

    I have MS Office Pro Plus 2007 installed on my computer. I also have MS Office 2003 installed on another computer. Snapshot viewer is installed on both. My work snapshot files works with MS Office Access 2003 but not recognized by MS Office Access 2007. It would not allow me to save them either! Is it a problem with FireFox (3.6.8)? However, I do not have problem opening them up using IE7/8 on both computers. Any ideas? Thanks.

    Are you clicking a download link from an email message on an OWA or webmail site? Do you get the open/save dialog for the .snp files? In that case, you should be able to associate them with the Snapshot viewer. If Firefox does not remember this and you have to do it each time, it usually indicates that the server is not sending a specific content type, just the generic "this is some binary content" content type.

  • I movies work with sound in quicktime but not in imovie hd!!!

    I have clips that worked in imovie hd before but all of a sudden the sound will not work, but they will work in quicktime....any ideas?

    Welcome to iMovie Discussions.
    Some clips - which started life not as DV camcorder clips, but might be .AVI, or somesuch, downloaded from the web, or shot as movies with a digital stills camera - may have audio in QuickTime but not in iMovie.
    QuickTime understands and replays many different file formats (..see all the different file formats QuickTime Player can handle, in the right-hand column here..) ..some of which iMovie can't handle.
    If your clips "..worked in imovie hd before but all of a sudden the sound will not work.." it might be because you'd had QuickTime open in the background, previously, or because you'd altered them in some way ..or maybe you 'Extracted' their audio, but don't have the check-boxes ticked for the audio tracks at the right-hand edge of the Timeline.
    The most important question is: were these clips originally from a tape-based DV camcorder, or did you import them from something else, e.g; web, hard disc camcorder, DVD camcorder, .AVI or other iMovie-incompatible origins?

  • Accessories working with I-Pod Nano But not with I-Pod Touch 3g

    Just wondering if the I-pod touch 3rd gen should work with accessories that work with an I-pod nano 2nd gen. Can anyone help?

    Pretty dumb question i know but I'm still kinda new to the i-pod tried it on a friends dock and it works a-ok, so i guess i'll just chuck the other stuff and buy a decent one, thanks for helping guys

  • HT204406 iTunes Match worked with 11.0.1, but not with 11.0.2

    Just as the title states, Match is not working with 11.0.2. It was however working with the 11.0.1 version of iTunes. It ried turning Match off and on as the help suggested, but now Match won't turn back on at all.

    You're using the ProPhoto RGB color space for your documents, right?
    There's a known bug (Adobe would like to call it "inaccuracy") in the color-management logic in Photoshop when said logic is run in the GPU, which is the case with Normal and Advanced GPU modes.  As far as I have seen, it appears only with the ProPhoto RGB document color profile.
    I reported this back in the time of Photoshop CS5.  They have not yet seen fit to fix it.
    http://forums.adobe.com/message/3472800
    http://forums.adobe.com/message/4646490
    Your possible workarounds include:
    Switching the Graphics Processor Advanced Mode to Basic, which moves the color-management logic to the CPU from the GPU.  That produces a more accurate result.
    Using a color profile other than ProPhoto RGB for your black and white work.
    -Noel

Maybe you are looking for

  • How do I combine a group of songs into an album?

    I downloaded a group of songs from a single artist into my iTunes on my PC and created a playlist, but when I sync with my iPod, they sinc as single songs. How do I group them so that they are in a single folder and sync'd that way?

  • Blurry when going to print

    I have created a file in indesign and exported it to a pdf.  my pdf file looks crystal clear but when I send it to the place for print, (in a magazine) they send me back a file saying that its all blurry and they arent sure whats wrong either??  I am

  • Project wise Payments/Inpayments-S_ALR_87013573

    Hi , I want a report which will show me projectwise inpayments & payment.I tried this using S_ALR_87013573 but doesnt showed me correct info. For example I booked a invoice of amt Rs 100 thru fb60 & payed amt of Rs 50 thru f-53.But the above said rep

  • Java Desktop System Login to Zone?

    Hi all. I have installed Solaris 10 (Kernel version: SunOS 5.10 Generic_137138-09) for i386. I have created a single non-global zone which runs happily and that non-global zone can be accessed with SSH remotely and locally by root. Zlogin also works

  • Can I have a iPhone 6 plus for free please!

    i Want a iPhone 6 plus for free because I want that phone, any way one free phone can't do you any harm besides you guys in the last 3 months made 11 billion pound profit!