JNDI error Please help.

I'm developing an J2EE based web application which uses JSP and EJB's.
When I'm trying to access one EJB from a JSP page I get the following errors:
javax.naming.NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance foun
for the ejb-ref 'ejb/MasterFacade', an EJB with matching home and remote name was found, but it was an Entity, not a Session
java.lang.reflect.InvocationTargetException: javax.ejb.EJBException
at thinksol.hms.action.cptAction.execute(cptAction.java:105)
at java.lang.reflect.Method.invoke(Native Method)
at thinksol.hms.controller.Controller.processRequest(Controller.java:74)
at thinksol.hms.controller.Controller.doGet(Controller.java:95)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:696)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:195)
at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:188)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
at __jspPage0_cptmasterForm_jsp._jspService(__jspPage0_cptmasterForm_jsp.java:39)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:696)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
The corresponding entry in my "web.xml" file is
          <ejb-ref>
          <ejb-ref-name>ejb/MasterFacade</ejb-ref-name>
          <ejb-ref-type>Session</ejb-ref-type>
          <home>thinksol.hms.facade.MasterFacadeHome</home>
          <remote>thinksol.hms.facade.MasterFacade</remote>
          </ejb-ref>
and the entry in "ejb-jar.xml" file is:
          <session>
          <ejb-name>MasterFacadeEJB</ejb-name>
          <home>thinksol.hms.facade.MasterFacadeHome</home>
          <remote>thinksol.hms.facade.MasterFacade</remote>
          <ejb-class>thinksol.hms.facade.MasterFacadeEJB</ejb-class>
          <session-type>Stateless</session-type>
          <transaction-type>Container</transaction-type>
     </session>
Please advice where I'm going wrong.
Thanks.
-Vaskar
[email protected]
--------------------           

I'm using ServiceLocator to Look up EJB's . The following is the important part of the Service Locator
------------------------<serviceLocator>-----------------
public class ServiceLocator {
private static ServiceLocator serviceLocatorRef = null;
private static Hashtable ejbHomeCache = null;
private static Hashtable     ejbLocalHomeCache = null;
private static Hashtable dataSourceCache = null;
static {
serviceLocatorRef = new ServiceLocator();
/*Private Constructor for the ServiceLocator*/
private ServiceLocator(){
ejbHomeCache      = new Hashtable();
ejbHomeCache.clear();
ejbLocalHomeCache     = new Hashtable();
ejbLocalHomeCache.clear();
dataSourceCache      = new Hashtable();
dataSourceCache.clear();
public static ServiceLocator getInstance(){
return serviceLocatorRef;
Start of Service Constants
/*Enumerating the different services available from the Service Locator*/
public static final int MasterFacade      = 1;
/*The JNDI Names used to lookup a service*/
public static final String MasterFacade_JNDINAME     ="java:comp/env/ejb/MasterFacade";
/*References to each of the different EJB Home Interfaces*/
public static final Class MasterFacadeCLASSREF           = MasterFacadeHome.class;
public String getServiceName(int pServiceId)
throws ServiceLocatorException{
String serviceName = null;
System.out.println("----------------------------------------------------------------------");
System.out.println("Inside ServiceConstants");
System.out.println("The value of pserviceId is : " +pServiceId);
switch (pServiceId){
     case Counter:           serviceName = Counter_JNDINAME;
                    break;
     case MasterFacade:           serviceName = MasterFacade_JNDINAME;
                                   break;
default: throw new ServiceLocatorException(
               "Unable to locate the service requested in " +
               "ServiceLocator.getServiceName() method. ");
     System.out.println("The value of serviceName is : " +serviceName);
     System.out.println("----------------------------------------------------------------------");
return serviceName;
public Class getEJBHomeRef(int pServiceId)
throws ServiceLocatorException{
Class homeRef = null;
switch (pServiceId){
case Counter:                homeRef = CounterCLASSREF;
                    break;
case MasterFacade:                     homeRef = MasterFacadeCLASSREF;
                         break;
default: throw new ServiceLocatorException(
               "Unable to locate the service requested in " +
               "ServiceLocator.getEJBHomeRef() method. ");
return homeRef;
End of Service Constants
public EJBHome getEJBHome(int pServiceId)
throws ServiceLocatorException{
/*Trying to find the JNDI Name for the requested service*/
String serviceName = getServiceName(pServiceId);
EJBHome ejbHome = null;
try{
/*Checking to see if I can find the EJBHome interface in cache*/
if (ejbHomeCache.containsKey(serviceName)){
               System.out.println("----------------------------------------------------------------------");
               System.out.println("Inside ServiceLocator getEJBHome <if>");
               System.out.println("The value of pserviceId is : " +pServiceId);
               System.out.println("The value of serviceName is : " +serviceName);
     System.out.println("----------------------------------------------------------------------");
               ejbHome = (EJBHome) ejbHomeCache.get(serviceName);
          return ejbHome;
else{
System.out.println("----------------------------------------------------------------------");
          System.out.println("Inside ServiceLocator getEJBHome <else>");
          System.out.println("The value of pserviceId is : " +pServiceId);
     System.out.println("The value of serviceName is : " +serviceName);
     System.out.println("----------------------------------------------------------------------");
     * If I could not find the EJBHome interface in the cache, look it
     * up and then cache it.
          System.out.println("Inside Service Locator <else> 1");
          Context ctx = new InitialContext();
          System.out.println("Inside Service Locator <else> 2");
Object jndiRef = ctx.lookup(serviceName);
System.out.println("Inside Service Locator <else> 3");
Object portableObj =
PortableRemoteObject.narrow(jndiRef, getEJBHomeRef(pServiceId));
System.out.println("Inside Service Locator <else> 4 + EJBHomeRef: "+ getEJBHomeRef(pServiceId));
ejbHome = (EJBHome) portableObj;
ejbHomeCache.put(serviceName, ejbHome);
          return ejbHome;
catch(NamingException e){
throw new ServiceLocatorException("Naming exception error in ServiceLocator.getEJBHome()" + e);
catch(Exception e){
throw new ServiceLocatorException("General exception in ServiceLocator.getEJBHome" + e);
------------------------</serviceLocator>-----------------
Then I'm looking up the EJB using the following code:
-------------------------<lookupEJB>--------------------
ServiceLocator locator = ServiceLocator.getInstance();
MasterFacadeHome home = (MasterFacadeHome) locator.getEJBHome(ServiceLocator.MasterFacade);
MasterFacade master = (MasterFacade)home.create();
-------------------------</lookupEJB>--------------------
Put simply I'm relying on the getEJBHome() method of service Locator to look up EJB.
Also I'm facing another strange problem, it goes like this:
I'have 6 Entity Beans(all CMP) and when I call them
from a Session Bean one by one i.e., serially the second Entity Bean Creation fails. But both the Entity Beans are working independently i.e., if I call only One Entity Bean and then deploy the app the Entity Bean creation succeeds. Similarly again I comment the first Entity Bean creation and call another Entity Bean then it gives no problems. But as soon as I try to call both Entity Beans from the Session Bean I start getting problems.
Thanks and Regards,
-Vaskar
[email protected]
-------------------

Similar Messages

  • JNDI Error Please help any one..Urgent

    Hi
    I'm new to Websphere. I deployed a session bean in Websphere. I have written a client program too. Client is unable to connect to the server.
    Is there any particular sequence of steps which we should folllow so that the client program can connect to server successfully. If anybody knows those steps please help me.
    I'm pasting the Client code below.
    thanx
    Ramu
    package naveen;
    import java.io.*;
    import java.util.*;
    import javax.naming.*;
    public class HelloClient{
    public static void main(String a[]) throws Exception{
    System.out.println("Hello Client Main Method Called...");
    Hashtable h=new Hashtable();
    h.put(Context.PROVIDER_URL,"iiop:///");
    h.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
    System.out.println("Hello Client before context intialization...");
    Context ctxt=new InitialContext(h);
    System.out.println("Hello Client after context initialization...");
    Object o=ctxt.lookup("HelloJndi");
    HelloHome hh=(HelloHome)o;
    HelloRemote hr=hh.create();
    System.out.println(hr.sayHello());
    This program's output is it's printing "Before context intialization"
    After that error message
    I am giving that error message also:
    WSCL0100E: Exception received: java.lang.reflect.InvocationTargetException: java
    x.naming.CommunicationException: Caught CORBA.COMM_FAILURE when resolving initia
    l reference=WsnNameService. Root exception is org.omg.CORBA.COMM_FAILURE: min
    or code: 3 completed: No
    at com.ibm.CORBA.iiop.HTTPConnection.send(HTTPConnection.java:439)
    at com.ibm.CORBA.iiop.HTTPConnection.locate(HTTPConnection.java:659)
    at com.ibm.CORBA.iiop.GIOPImpl.locate(GIOPImpl.java:172)
    at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1
    016)
    at com.ibm.CORBA.iiop.InitialNamingClient.resolve(InitialNamingClient.ja
    va:372)
    at com.ibm.CORBA.iiop.InitialNamingClient.cachedInitialReferences(Initia
    lNamingClient.java:591)
    at com.ibm.CORBA.iiop.InitialNamingClient.resolve_initial_references(Ini
    tialNamingClient.java:355)
    at com.ibm.CORBA.iiop.ORB.resolve_initial_references(ORB.java:1753)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInit
    CtxFactory.java:566)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCt
    xFactory.java:328)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtx
    Factory.java:200)
    at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(W
    snInitialContextFactory.java:80)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    69)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.InitialContext.<init>(InitialContext.java:199)
    at naveen.HelloClient.main(HelloClient.java:18)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.ibm.websphere.client.applicationclient.launchClient.createContain
    erAndLaunchApp(launchClient.java:430)
    at com.ibm.websphere.client.applicationclient.launchClient.main(launchCl
    ient.java:288)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)

    hi,
    I havent worked with WebSphere but I think you are not giving the url and port number when you mentioned the ProviderURL...

  • I am geting following error please help

    ERROR-
    RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.nature.com/principles/webservice/login" errorID=2032]. URL: http://www.nature.com/principles/webservice/login"]
    code-
    operation = new Operation(null, "login");
      operation.url = "login";
      argsArray = new Array("login_id", "login_password", "unique_machine_id");
      operation.argumentNames = argsArray;
      operation.method = "POST";
      operation.serializationFilter = filter;
      operations.push(operation);
      public function login(loginId:String, loginPassword:String, uniqueMachineId:String):AsyncToken
           trace(loginId, loginPassword, uniqueMachineId);
           var _internal_operation:AbstractOperation = _service.getOperation("login");
           var _internal_token:AsyncToken = _internal_operation.send(loginId, loginPassword, uniqueMachineId);
           return _internal_token;
    login service is being called from server that is in java-
    package com.nature.ebook.components.auth
      import com.nature.ebook.data.UserInfo;
      import com.nature.ebook.services.CallStatus;
      import com.nature.ebook.services.IEBookService;
      import com.nature.ebook.services.XMLServiceParser;
      import flash.events.EventDispatcher;
      import flash.events.IEventDispatcher;
      import mx.controls.Alert;
      import mx.rpc.AsyncToken;
      import mx.rpc.Fault;
      [ManagedEvents("authSuccess, authFail")]
      public class AuthCommand extends EventDispatcher
      public function AuthCommand(target:IEventDispatcher=null)
      [Inject]
      public var service:IEBookService;
      [Inject]
      public var auth:AuthModel;
      //  Methods
      * This command dispatches  event AuthenticationEvent.AUTH_FAIL when the service return failt
      * @param fault Fault
      public function error(fault:Fault):void
      trace(fault);
      var e:AuthenticationEvent = new AuthenticationEvent(AuthenticationEvent.AUTH_FAIL, null, null, CallStatus.getServerFaultCall());
      dispatchEvent(e);
      * This command dispatches event when the service return rezult Array
      * @param result Array
      * if cs.success <code>true </code> dispatch AuthenticationEvent.AUTH_SUCCESS
      * if cs.success <code>false</code> dispatch AuthenticationEvent.AUTH_FAIL
      public function result(result:*):void
      if (result)
      var cs:CallStatus = XMLServiceParser.getCallStatus(result);
      if (cs.success)
      var us:UserInfo = XMLServiceParser.getUserInfo(result);
      var e:AuthenticationEvent = new AuthenticationEvent(AuthenticationEvent.AUTH_SUCCESS, us, null, cs);
      dispatchEvent(e);
      else
      e = new AuthenticationEvent(AuthenticationEvent.AUTH_FAIL, null, null, cs);
      dispatchEvent(e);
      public function execute(event:AuthenticationEvent):AsyncToken
      return service.login(event.user.loginId, event.magicWord, event.user.uniqueMachineId);

    Sorry for the confusion. After starting the WLS 6.0 server, use your browser
    to launch the console, verify that the Frobable EJB is correctly deployed as
    frobtarget with the correct class path specified. The 6.0 JAAS sample is
    trying to invoke on examples.security.acl.Frobable, make sure this is the
    deployed instance. This is an error in the JAAS example SampleAction.java
    file since the JAAS sample actually builds examples.security.jaas.Frobable,
    this bug will be corrected in service pack 1 which will be available
    shortly.
    nancy coelho <[email protected]> wrote in message
    news:3a9ee0af$[email protected]..
    Hi! I am new to JAAS and also to Weblogic server6.0. I am trying to run
    JAAS sample and geting the following error . please help
    Thanks,
    Nancy
    E:\bea\wlserver6.0\samples>java examples.security.jaas.SampleClient
    t3://localho
    st:7001
    Using Configuration File: Sample.policy
    Login Module Name: examples.security.jaas.SampleLoginModule
    Login Module Flag: required
    username: ncoelho
    password: prabhala
    javax.naming.NameNotFoundException: Unable to resolve frobtarget.Resolved:
    '' U
    nresolved:'frobtarget' ; remaining name ''
    at
    weblogic.rmi.internal.AbstractOutboundRequest.sendReceive(AbstractOut
    boundRequest.java:90)
    at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
    ef.java:247)
    at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
    ef.java:225)
    at
    weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(ServerNamingNod
    e_WLStub.java:121)
    at
    weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:323)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at examples.security.jaas.SampleAction.run(SampleAction.java:61)
    at javax.security.auth.Subject.doAs(Subject.java:80)
    at examples.security.jaas.SampleClient.main(SampleClient.java:114)
    Failed to frob
    E:\bea\wlserver6.0\samples>

  • Windows - No Disk Error - Please help!

    Windows - No Disk Error - Please help!
    Hi,
    I have the following set up:
    * Lenovo T-61p
    * Windows XP Pro, SP 3
    * HP Photosmart 8250 printer (with nothing plugged into the various card readers, and USB slot in the printer)
    I am getting the following error:
    Windows - No Disk
    Exception Processing Message 0xc0000013 Parameters 0x75CE023C
    0x84C40C84 0x75CE023C
    I have done a lof experimenting and thru process of  elimination, and believe I have determined that this only happens when the HP Photosmart 8250 printer is plugged in to the USB slot of the computer.
    I can stop it from happening by safely removing hardware, and removing the drive that the 8250 creates on your computer when you plug it in.  In my case, this is drive E.  I'm guessing if there was something in the the various card readers, and USB slot in the printer, that's what those would be, but I don't those use those functions of the printer.
    I understand there is more at work than simply the printer, because I did not used to get this error, so some software changed as well, that is scanning all ports, and finding a drive that has no disk, and producing the error.
    A simple google search finds a lot people all over the world having this problem, and are solving it in different ways, because the suspected source is different: Norton, HP, etc.
    I have tried everything I have read, and the only thing that works was my own idea, of manually safely removing the drive the printer creates each time I plug in the printer.
    Anyone every any better, more permanent solutions?  Or know what the real root of the problem is?  What is scanning all the drives and being showing an error message because it found an empty drive?
    Thanks and Happy Holidays/New Year!

    I've been getting the same error on my 4G nano for the past week. I've had my nano for about a month and the first few weeks were fine. Tried it on 2 different computers (Vista and XP) and same problem. Tried it on a 3rd (XP) and it started ok. Problem started coming back after a day.
    I was able to find a quick fix though. I noticed that sometimes the message says something like "iexplore.exe... no disk..." even if I don't even use IE. What I do is end iexplore.exe on task manager before running iTunes and syncing my nano. I don't get the error whenever I do this, but one drawback is that the contents of my nano suddenly pops up in a window - even when disk use is not enabled.
    I've reset/restored my nano dozens and dozens of times to make sure it's clean. Leads me to believe it's a driver issue. Either that or I have a friggin malware problem I can't seem to find.
    I'll be posting updates every now and then. I'm no expert so I'm hoping an Apple expert also steps in to give some input.

  • My ipod generation 5 will not come out of recovery mode. i was simply updating my software and this happened. it will not let me restore it comes up with and error. please help, thanks.

    my ipod generation 5 will not come out of recovery mode. i was simply updating my software and this happened. it will not let me restore it comes up with and error. please help, thanks.

    Hey erinoneill24,
    Thanks for using Apple Support Communities.
    Sounds like you can't update your device. You don't mention an error that it gives you. Take a look at both of these articles to troubleshoot.
    iPod displays "Use iTunes to restore" message
    http://support.apple.com/kb/ts1441?viewlocale=it_it
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808?viewlocale=de_DE_1
    If you started your device in recovery mode by mistake, restart it to exit recovery mode. Or you can just wait—after 15 minutes the device will exit recovery mode by itself.
    Have a nice day,
    Mario

  • I cannot use iCloud on Windows 7, as it won't recognize my apple ID when i try to sign in to icloud it i get error saying "you can't sign in because of a server error (please help some one)

    I cannot use iCloud on Windows 7, as it won't recognize my apple ID when i try to sign in to icloud it i get error saying "you can't sign in because of a server error (please help some one)

    Although your message isn't mentioned in the symptoms, let's try the following document with that one:
    Apple software on Windows: May see performance issues and blank iTunes Store

  • HT201442 I did this but still i am getting the same error , please help me .

    I did this but still i am getting the same error , please help me .
    <Email Edited by Host>

    Look at http://support.apple.com/kb/ts4451
     Cheers, Tom

  • I am not able to update my iphone 4 ,when ever i tried to update it its show 1309 error...and at times 9006 error ,please help me ..

    i am not able to update my iphone 4 ,when ever i tried to update it its show 1309 error...and at times 9006 error ,please help me ..

    Hey alkarim2008,
    If you are having an issue with being unable to update or restore your iPhone, I would suggest that you troubleshoot using the steps in this article - 
    Resolve iOS update and restore errors in iTunes - Apple Support
    Thanks for using Apple Support Communities.
    Happy computing,
    Brett L 

  • My iphone won't pass the connect to itunes. when i try to restore is says that there is an error. please help!

    hi my iphone is broken. it won't pass the connect to itunes. when i try to restore is says that there is an error. please help!
    thanks,
    jg2013
    <Subject Edited by Host>

    Hello, 02633. 
    Thank you for visiting Apple Support Communities. 
    If your iPhone is disabled, you will need to process the steps in the article below.
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    Cheers,
    Jason H.

  • HT4623 I have updated my iphone with the current software but it is showing you need to connect to  of itunes to activate your phone, when i did that it is continuously showing an error.please help me to get through.

    I have updated my iphone with the current software but it is showing you need to connect to  of itunes to activate your phone, when i did that it is continuously showing an error.please help me to get through.
    Kindly Activate my phone.

    Rajan Gupta wrote:
    ...it is continuously showing an error.
    See here  >  http://support.apple.com/kb/TS3424
    Also see this discussion.
    https://discussions.apple.com/message/21189708

  • I need the drivers for earl 2011 macbook pro 13 inch i7 4 gigs for windows 7 64 bits i tried downloading with bootcamp butt it never completes allways ends up with an error please help

    i need the drivers for earl 2011 macbook pro 13 inch i7 4 gigs for windows 7 64 bits i tried downloading with bootcamp butt it never completes allways ends up with an error please help if any one has the drivers or knows were i can download them

    Doug...
    If you don't have it for reference, the manual might come in handy > US/Boot_Camp_Install-Setup.pdf
    After it loads, Command + F to find information regarding the drivers.

  • HT201210 hi i just bought my new iPhone 4s yesterday and when u opened it was not updated so when i tried SO MANY TIMES to update it on the devise and on my new mac it said that there was a unknown error please help me :)

    hi i just bought my new iPhone 4s yesterday and when u opened it was not updated so when i tried SO MANY TIMES to update it on the devise and on my new mac it said that there was a unknown error please help me

    Please tell us what kind of computer you have, what operating system and what version of iTunes. Not just "the latest version of iTunes", the exact version number.

  • I can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi

    i can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi.

    i switched off all the security settings and all the firewalls.
    i m unable to install any of the app on the ipad
    so i saw the apple support and it said to update the older version of my ipad.
    and niether am i able to download the update nor am i able to download any app and install it in my ipad2
    i also tried to download an .ipsw file (ios5 update) from torrentz bt i am also unable to install from that as itunes rjects that file and gives an error. and also tries to delete that file. plz anyone help urgently.

  • I have update my 3g software to 4.21 but its not working when it come to restoring firmware its show a error please help me out

    i have update my 3g software to 4.21 but its not working when it come to restoring firmware its show a error please help me out

    That error shows up when a phone is jailbroken or you are trying to downgrade the iOS version. Neither of which is supported by apple.

  • HT201210 cont contact apple server error please help with ipad touch 4. im just fed up with apple please help me because why is it only apple with these kind of problems?

    cont contact apple server error please help with ipad touch 4. im just fed up with apple please help me because why is it only apple with these kind of problems?

    If you mean updae server
    Update Server
    Try:
    - Powering off and then back on your router.
    - iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    - Change the DNS to either Google's or Open DNS servers
    Public DNS — Google Developers
    OpenDNS IP Addresses
    - For one user uninstalling/reinstalling iTunes resolved the problem
    - Try on another computer/network
    - Wait if it is an Apple problem
    Otherwise what server are you talking about

Maybe you are looking for