1 Reply Latest reply on Jun 9, 2005 8:16 PM by giscard_aioba

    Simeple J2EE client error.....

    giscard_aioba

      Hi guys...

      First of all, I wanna thanks all that help me with the another question, very thanks, here is another simple one......

      I create a simple client to access my session bean (using a web client everything is work properly, but when I try to use a simple java application client I am get an error).

      //My JNDI file has the follow client
      j2ee.Client=ConverterClient
      


      //My jboss-client.xml
      <jndi-name>ConverterClient</jndi-name>
      <ejb-ref>
       <ejb-ref-name>ejb/SimpleConverter</ejb-ref-name>
       <jndi-name>ClientConverter</jndi-name>
      </ejb-ref>
      


      //My application-client.xml
      //...
      <ejb-ref>
       <ejb-ref-name>ejb/SimpleConverter</ejb-ref-name>
       </ejb-ref>
       //...
      </ejb-ref>
      


      My application was packaged into a JAR file as follow:
      META-INF/
      MANIFEST.MF
      jboss-client.xml
      application-client.cml
      jndi.properties
      client/
      ConverterClient

      When I try to run with java -jar ConverterClient.jar I am getting an
      javax.naming.NameNotFoundException: ConverterClient not bound

      could anyone help me?!?! Thanks

        • 1. Re: Simeple J2EE client error.....
          giscard_aioba

          Hi guys!!! I really fix the problem, but unhappy I don't know why it means......

          I just get the j2ee.clientName=AnyName, and erase it!!!!!

          My jboss-client.xml and application-client.xml continues the same last one, but the j2ee.clientName is just "" nothing!!!!!!!!

          What is going on?!?! Why I need to put the j22.clientName into a Web Client and not to put it on a "Desktop Client"?!?!?!

          Thanks all!!!!!!