Help-kerberos works with spnego keytab file but not in netbeans and Metro

Hi,
Appreciate if someone can shed some light on this problem and guide on what else am I missing.
I'm trying to call .NET based WCF webservice (MS Dynamics CRM - OrganizationSvc) from a java client. Started looking at Metro framework for interoperability. I was able to generate all the proxy classes and was able to write the code to invoke web service. However the challenge was using Kerberos based authentication and related setup.
I primarily followed the link below which was very helpful but had to dig more to get more specific details.
http://blogs.sun.com/enterprisetechtips/entry/building_kerberos_based_secure_services
Tried to follow netbeans route and hit some roadblocks in verifying the setup (krb5.conf & login.conf & wsit-client.xml). So, came across SPNEGO and used their examples, made changes accordingly and after experimenting with various configuration settings(krb5.conf and login.conf), finallyI was able to run HelloKDC & HelloKeytab files successfully.
krb5.conf_
[libdefaults]
default_realm = NA.CONVERGYS.COM
[realms]
NA.CONVERGYS.COM = {
kdc = CDCWW13.na.convergys.com
admin_server = CDCWW13.na.convergys.com
[domain_realm]
.na.convergys.com = NA.CONVERGYS.COM
login.conf_
spnego-server {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
keyTab="C:/WINDOWS/orldwv705_feb03.keytab"
doNotPrompt=false
storeKey=true
principal="HOST/ORLDWV705.na.convergys.com"
debug=true;
C:\spnego-r7>klist -k C:\WINDOWS\orldwv705_feb03.keytab
Key tab: C:\WINDOWS\orldwv705_feb03.keytab, 1 entry found.
[1] Service principal: HOST/[email protected]
KVNO: 7
With these settings, I was able to successfully make the call & Hello Keytab was able to get the Ticket and authenticate.
http://spnego.sourceforge.net/index.html
http://spnego.sourceforge.net/client_keytab.html
http://spnego.sourceforge.net/troubleshoot_hellokeytab.html
However, when I run the example in Netbeans with the setup mentioned in the link below, I run into following exception...
http://metro.java.net/guide/Developing_with_NetBeans.html#wsit_example_with_nb-creating_wsit_client
http://metro.java.net/guide/_Configuring_Kerberos_for_Glassfish_and_Tomcat.html
1) noticed that sc:KerberosConfig element in wsit-client.xml does not get updated automatically in netbeans ide, so manually edited to put the entries.
2) also followed the setup required in glassfish domain.xml & login.conf xml.
3) also noticed that netbeans setup requires us to use C:\Windows\krb5.ini file which is nothing but krb5.conf file referred elsewhere.)
wsit-client.xml_
<wsp:Policy wsu:Id="ClientKerberosPolicy"
xmlns:sc="http://schemas.sun.com/2006/03/wss/client"
xmlns:wspp="http://java.sun.com/xml/ns/wsit/policy"
xmlns:scc="http://schemas.sun.com/ws/2006/05/sc/client"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsp:ExactlyOne>
<wsp:All>
<sc:KerberosConfig wspp:visibility="private"
loginModule="KerberosClient"
servicePrincipal="HOST/ORLDWV705.na.convergys.com"
credentialDelegation="true" />
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
ERROR
INFO: WSP5018: Loaded WSIT configuration from file: file:/C:/Documents%20and%20Settings/rchoppal/My%20Documents/NetBeansProjects/TestOrgSvc/build/web/WEB-INF/classes/META-INF/wsit-client.xml.
WARNING: [failed to localize] WSP_0075_PROBLEMATIC_ASSERTION_STATE({http://schemas.microsoft.com/xrm/2011/Contracts/Services}AuthenticationPolicy, UNKNOWN)
WARNING: [failed to localize] WSP_0019_SUBOPTIMAL_ALTERNATIVE_SELECTED(PARTIALLY_SUPPORTED)
INFO: >>>KinitOptions cache name is C:\Documents and Settings\rchoppal\krb5cc_rchoppal
INFO: >>> KrbCreds found the default ticket granting ticket in credential cache.
SEVERE: WSITPVD0050: Error while Securing Request Message.
com.sun.xml.wss.XWSSecurityException: Unexpected Exception in Kerberos login - unable to continue
at com.sun.xml.ws.security.impl.kerberos.KerberosLogin.login(KerberosLogin.java:94)
at com.sun.xml.wss.impl.misc.WSITProviderSecurityEnvironment.doKerberosLogin(WSITProviderSecurityEnvironment.java:3049)
at com.sun.xml.wss.provider.wsit.WSITClientAuthContext.populateKerberosContext(WSITClientAuthContext.java:911)
at com.sun.xml.wss.provider.wsit.WSITClientAuthContext.secureRequest(WSITClientAuthContext.java:318)
at com.sun.xml.wss.provider.wsit.WSITClientAuthContext.secureRequest(WSITClientAuthContext.java:291)
at com.sun.enterprise.security.webservices.ClientSecurityPipe.process(ClientSecurityPipe.java:158)
Caused by: javax.security.auth.login.LoginException: java.lang.NullPointerException
at sun.security.krb5.Credentials.acquireDefaultCreds(Credentials.java:451) (i tried to search open source code, but this line did'nt match exactly)
at sun.security.krb5.Credentials.acquireTGTFromCache(Credentials.java:272)
at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:589)
at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:542)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at com.sun.xml.ws.security.impl.kerberos.KerberosLogin.login(KerberosLogin.java:85)
SEVERE: SEC2004: Container-auth: wss: Error securing request
javax.xml.ws.WebServiceException: WSITPVD0050: Error while Securing Request Message.
at com.sun.xml.wss.provider.wsit.WSITClientAuthContext.secureRequest(WSITClientAuthContext.java:299)
at com.sun.enterprise.security.webservices.ClientSecurityPipe.process(ClientSecurityPipe.java:158)
Caused by: javax.xml.ws.soap.SOAPFaultException: Unexpected Exception in Kerberos login - unable to continue
at com.sun.xml.wss.provider.wsit.WSITAuthContextBase.getSOAPFaultException(WSITAuthContextBase.java:1617)
at com.sun.xml.wss.provider.wsit.WSITAuthContextBase.getSOAPFaultException(WSITAuthContextBase.java:1633)
... 42 more
WARNING: StandardWrapperValve[TestOrgSvcServlet]: PWC1406: Servlet.service() for servlet TestOrgSvcServlet threw exception
javax.xml.ws.WebServiceException: Cannot secure request for {http://schemas.microsoft.com/xrm/2011/Contracts}CustomBinding_IOrganizationService
at com.sun.enterprise.security.webservices.ClientSecurityPipe.process(ClientSecurityPipe.java:165)
Caused by: javax.xml.ws.WebServiceException: WSITPVD0050: Error while Securing Request Message.
at com.sun.xml.wss.provider.wsit.WSITClientAuthContext.secureRequest(WSITClientAuthContext.java:299)
at com.sun.enterprise.security.webservices.ClientSecurityPipe.process(ClientSecurityPipe.java:158)
... 40 more
Caused by: javax.xml.ws.soap.SOAPFaultException: Unexpected Exception in Kerberos login - unable to continue
at com.sun.xml.wss.provider.wsit.WSITAuthContextBase.getSOAPFaultException(WSITAuthContextBase.java:1617)
at com.sun.xml.wss.provider.wsit.WSITAuthContextBase.getSOAPFaultException(WSITAuthContextBase.java:1633)
... 42 more
Edited by: user6748004 on Feb 3, 2011 5:36 PM
Edited by: user6748004 on Feb 3, 2011 5:38 PM

Hi Gasha,
The only change I did after this, was to try and use 'KerberosServer' configuration from the wsit-client.xml. Atleast, this enabled the glassfish application to load the configuration related to keytab etc, and use it to communicate with the WCF service for negotiation.
<sc:KerberosConfig wspp:visibility="private"
loginModule="KerberosServer"
servicePrincipal="HOST/ORLDWV705.na.convergys.com"
credentialDelegation="true" />
login.conf has
KerberosServer {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
keyTab="C:/WINDOWS/orldwv705_feb03.keytab"
doNotPrompt=false
storeKey=true
principal="HOST/ORLDWV705.na.convergys.com"
debug=true;
fyi.. Used the following way to create the keytab
Keytab was created using below instructions
ktpass -princ HOST/[email protected]
-mapUser [email protected]
-mapOp set
-pass *
-crypto DES-CBC-MD5
-pType KRB5_NT_PRINCIPAL
-out orldwv705.keytab
Targeting domain controller: CDCWW13.na.convergys.com
Successfully mapped HOST/ORLDWV705.na.convergys.com to svcMSCRMDev.
Key created.
Output keytab to orldwv705.keytab:
Keytab version: 0x502
keysize 75 HOST/[email protected] ptype 1 (KRB5_NT_PRINCIPAL) vno 8 etype 0x3 (DES-CBC-MD5) keylength 8 (0x0bc27ca83891dc2a)
Also realised that we need to add 'HTTP/ORLDWV705.na.convergys.com' & 'http/ORLDWV705.na.convergys.com' using set SPN commands on the AD of the server where CRM is installed.
With these changes, the negotiate authentication seems to have happened using the Kerberos token from the keytab, but later ran into an error for which I was not able to get any clue to go forward. Someone in another post about this error suggested that it worked once they changed principal names, but when I tried I did'nt get any success.
This is where I'm struck now. What I don't know is if there is another setup from which we can try a similar interoperability example for ex.. weblogic 10.1 & eclipse which is more close to our real environment.
SEVERE: SEC2004: Container-auth: wss: Error securing request
java.lang.IllegalArgumentException: Missing argument
at javax.crypto.spec.SecretKeySpec.<init>(DashoA13*..)
at com.sun.xml.ws.security.impl.kerberos.KerberosContext.getSecretKey(KerberosContext.java:91)
at com.sun.xml.wss.impl.filter.SignatureFilter.process(SignatureFilter.java:525)
Edited by: user6748004 on Apr 8, 2011 10:39 AM

Similar Messages

  • 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

  • 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!!!!!!!!!!!!!!!!

  • 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?

  • 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.

  • HELP!  Working with an mpeg file

    Let me start out by saying I am a complete newbie when it comes to video. I know next to nothing.
    iTune, iPhoto, iWeb, and most other iLife and iWork apps I can use with ease. But videos I know nothing about.
    I need to post a video file on line (onto YouTube) for a charity I belong to. It is too long--179 MB (and the limit is 100). I can open it with VLC but not Quicktime. If I try to use Quicktime, I get the following message: "QuickTime cannot open the file: "Ucare.mpeg" it is not a file that QuickTime understands (-2048)"
    iMovie also does not recognize the file.
    I don't need to edit or change anything in the video. All I want to do is either split the video into two parts, or shrink it to under 100MB.
    Any suggestions? The simpler (and cheaper--this is charity work) the better.

    download and use for free Streamclip
    launch Streamclip
    open ucare.mpeg
    select portion you need (SC has some basic edit features..) by using the sliders under the preview window...
    choose export...
    done...
    hopefully...

  • 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.

  • InDesign CS5 causing problems with InCopy assignment file but not content files

    I'm having a strange InDesign/InCopy CS5 issue (Mac OSX 10.6.6; all system & Adobe updates are current).  In my InDesign doc I have one assignment file containing two content files. All of the InCopy pieces work fine in InDesign (i.e., I can check out/in, edit, etc.).  When I go to open the assignment file in InCopy, InCopy starts to open  it but then crashes. If I try to open each content file directly in  InCopy, no problem. I've tried deleting and recreating new assignments  in InDesign, but they all have the same result in InCopy.
    I think this actually is a problem with the InDesign file because if I export the InDesign file to IDML, then try to open the IDML file, InDesign crashes! I've trashed my InDesign preferences, made sure all cross-references are up to date, etc. Anybody have any ideas what else to look for in my InDesign file that might cause this problem?
    Thanks!
    Andrea

    Thanks John!
    1) Here are the first 10-ish lines from the crash report that is generated when I try to open the IDML file:
    Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
    0   ???                               0xa0c266f0 _XHNDL_trapback_instruction + 0
    1   com.adobe.InDesign.Indexing       0x20778192 GetPlugIn + 341394
    2   com.adobe.InDesign.Indexing       0x20779009 GetPlugIn + 345097
    3   PublicLib.dylib                   0x0129228b CScriptProvider::AccessProperties(IScriptRequestData*, IScript*) + 571
    4   com.adobe.InDesign.Scripting      0x1f4befe8 GetPlugIn + 166440
    5   com.adobe.InDesign.Scripting      0x1f4c2e31 GetPlugIn + 182385
    6   com.adobe.InDesign.INXCore        0x20641444 GetPlugIn + 45220
    7   PublicLib.dylib                   0x0142c9e8 CScriptDOMElement::GetMultipleAttributes(K2Vector<IDType<ScriptID_tag>, K2Allocator<IDType<ScriptID_tag> > > const&, adobe::version_1::vector<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue> > >&) + 280
    8   PublicLib.dylib                   0x0142bd38 CScriptDOMElement::InsertProperties(adobe::version_1::vector<KeyValuePair<IDType<ScriptID _tag>, ScriptData>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, ScriptData> > >&, adobe::version_1::vector<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue> > > const&, short, short) + 1336
    9   PublicLib.dylib                   0x0142beab CScriptDOMElement::SetSimpleAttributes(adobe::version_1::vector<KeyValuePair<IDType<Scrip tID_tag>, DOMAttributeValue>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue> > > const&, short) + 91
    10  PublicLib.dylib                   0x0142c0d3 CScriptDOMElement::SetAttributes(adobe::version_1::vector<KeyValuePair<IDType<ScriptID_ta g>, DOMAttributeValue>, adobe::version_1::capture_allocator<KeyValuePair<IDType<ScriptID_tag>, DOMAttributeValue> > > const&) + 51
    11  PublicLib.dylib                   0x0142a2ea CScriptDOMElement::SetAttribute(IDType<ScriptID_tag>, DOMAttributeValue const&) + 202
    2) That works. Moved all pages (frame threading was preserved) to a new doc, exported to IDML, opened new IDML file just fine. Woo hoo! One of my editors won't be pleased that all of the tracked changes have disappeared, but at least the file functions now
    Wish I knew what caused the problem in the first place so we could (hopefully) prevent this from happening again. Any ideas?
    Thanks again for your help!
    Cheers,
    Andrea

  • Buffalo Linkstation works with all PC's but not iMac - With Airport Extreme

    Hi. I hope someone can help. Been at this for days, even AppleCare can't help....
    We have a Buffalo linkstation hooked to a new Airport Extreme.
    All PCs can see it and view documents, iTunes, etc. My iMac cannot. Actually, I think it sees it but it's a mere file on my desktop. When I click on it, it pulls up a Finder type window, but this Buffalo icon (like network icon) can't be mounted in my normal finder main section. I can't figure out how to do that.
    When I open Finder, I don't see the buffalo at all but have to go thru many libraries to find it. When I click on it ("connect") to it, It says "Select the SMB/CIFS shared volume you want to connect to: I click on the name, but it says "the alias blablabla could not be opened because the original item cannot be found. It gives the option to fix alias so I hit that and it puts me in my "documents" area and won't let me go anywhere else.
    OMG... Can someone tell me how to get this thing working? I can see the files but they are so buried. I'd like to take this Buffalo which seems to be on my desktop and mount it? to the right area of my Finder.
    All I want to do is see the darned iTunes on the buffalo wirelessly via airport extreme. LOL All other computers (PC's) did this instantly. Help?

    Yes, I can see everything I need to see (external HD)....
    I even dragged the darned thing into the finder...
    Now my upper left box of the finder says:
    Network
    Share (that's my external buffalo HD)
    Windox XP
    iMac
    The problem with the above is that "Share" is not mounted. It has the eject button next to it. I think (maybe) I could get this functioning if I could mount this darned thing but I can't for the life of me get it to do that. Any ideas?
    EDIT: I'm not sure how to use directory access utility. Do I need to?
    Message was edited by: meagain1

  • 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

  • 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 :-(

  • 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

  • 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)

Maybe you are looking for

  • How can this be achieved in SQL???????

    Hi Guys, This is my query: SELECT  distinct iy.trial_no,        iypa.amendment_no,        iy.country_code,        iy.country_desc,        iypa.amend_reg_submission_date,        iypa.amend_reg_approval_date,        iypa.amend_reg_comments,        iyea

  • CHANGE LANGUAJE AFTER EFFECTS CS6

    How can i change the language from spanish to english in affter effects CS6 on Mac Os X 10.6.8? I have download it from Creative Cloud. Is there a quick way to do that? or i must download it again in english?

  • Tabbed Panel: First Panel Content Not From a Tab?

    I am having a go witha tabbed panel which is what the screenshot is showing.  This is experimenting so I haven't had the courage to upload it yet. I would like the default panel to not contain anything except perhaps, the instruction to click and a c

  • Forecasting Models in Demand Planning.

    Hi experts, want to know in details and also to practice various forecasting models in Demand Planning, from beginning. please suggest. Regards Bhupendra

  • Cannot update iPod to 2.0 due to "unknown error (1417)"

    Help! I cannot update my iPod (5th Generation). I keep getting a message that says it cannot be updated due to "unknown error (1417)"