4 Replies Latest reply on Mar 18, 2008 4:41 AM by Karim Mechhoure

    Lookup error

    Karim Mechhoure Newbie

      Hello,

      When I launch JBoss and try to go on JBoss Portal, I've got this error :

      15:36:10,731 ERROR [ServiceLocator] Exception during lookup of fr_mckesson_technique_ejb_parameter_jdbc
      javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]
       at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
       at javax.naming.InitialContext.lookup(InitialContext.java:351)
       at fr.mckesson.common.util.ServiceLocator.lookup(ServiceLocator.java:167)
       at fr.mckesson.common.util.ServiceLocator.getRemoteHome(ServiceLocator.java:132)
       at fr.mckesson.common.util.BusinessServiceLocator.lookupCreate(BusinessServiceLocator.java:71)
       at fr.mckesson.common.util.BusinessServiceLocator.lookupCreate(BusinessServiceLocator.java:89)
       at fr.mckesson.common.util.BusinessServiceLocator.getParameter(BusinessServiceLocator.java:113)
       at fr.mckesson.common.parameter.FacadeParameter.selectAllKey(FacadeParameter.java:48)
       at fr.mckesson.common.parameter.FacadeParameter.getValue(FacadeParameter.java:20)
       at fr.mckesson.common.parameter.FacadeParameter.getValue(FacadeParameter.java:34)
       at fr.mckesson.patient.hgpp.app.portlets.context.HWPContext.isWorklistActivated(HWPContext.java:234)
       at fr.mckesson.patient.hgpp.app.portlets.context.HWPContext.<init>(HWPContext.java:70)
       at fr.mckesson.patient.hgpp.app.portlets.context.HWPContext.getHWPContext(HWPContext.java:99)
      
      


      I tried to copy and paste jbossall-client.jar from $jboss_home/client to my classpath and it doesn't change anything.

      Where does it come from?




        • 1. Re: Lookup error
          Prabhat Jha Master

          Do you see any error on server side before you try to access JBoss Portal?

          Which portal and JBoss AS version are you using? Have you done any customization to your installation?

          • 2. Re: Lookup error
            Karim Mechhoure Newbie

            Hi,

            I'm using jboss portal 2.6.4 and jboss AS 4.2.2.GA
            The JBoss AS and portal is running on a machine with redhat OS.
            I've changed the default ports in $JBOSS_HOME/my_configuration/deploy/jboss-web.deployer :

            <Connector port="9090" address="${jboss.bind.address}"
             maxThreads="250" maxHttpHeaderSize="8192"
             emptySessionPath="true" protocol="HTTP/1.1"
             enableLookups="false" redirectPort="8443" acceptCount="100"
             connectionTimeout="20000" disableUploadTimeout="true" />
            
            <!-- Define an AJP 1.3 Connector on port 8009 -->
             <Connector port="8999" address="${jboss.bind.address}" protocol="AJP/1.3"
             emptySessionPath="true" enableLookups="false" redirectPort="8443" />
            
            



            When I first launch JBoss AS, I've got no errors.
            Then when I try to reach the portal I deployed in $JBOSS_HOME/my_configuration/deploy (not the default one), I've got this error.




            • 3. Re: Lookup error
              Prabhat Jha Master

              As per reference guide (section 3.1), changing port in your_server_config/deploy/jboss-web.deployer/server.xml should be enough. You have to make some WSRP related change as described in 14.3.1.

              From error log, it seems like you have your custom portlets deployed. Just to make sure, can you try only changing the port and revert back all other changes meaning undeploy any of your custom application etc.

              If you already done these then you should look into JBoss Portal support. :-)

              • 4. Re: Lookup error
                Karim Mechhoure Newbie

                Hello,

                Thanks for your help.
                I've changed the config of wsrp like in the guide but I'm still having the same error.

                I can't change the ports because port 8080 is already in use with an other application.
                I'll try to deploy it on my machine (Windows XP) to see if it works.