Connecting to network with wifi shield
In the loop:

// attempt to connect to Wifi network:
  while ( status != WL_CONNECTED) { 
    Serial.print("Attempting to connect to WPA SSID: ");
    Serial.println(ssid);
    // Connect to WPA/WPA2 network:    
    status = WiFi.begin(ssid, pass);

    // wait 10 seconds for connection:
    delay(10000);
  }


Can you add Serial.print(status); before the delay so you can see if any of these arise:


WL_IDLE_STATUS = 0
WL_NO_SSID_AVAIL 
WL_CONNECT_FAILED 
WL_CONNECTION_LOST
WL_DISCONNECTED


They are defined in wl_definitions.h