5 Replies Latest reply on Aug 15, 2006 1:43 PM by majcarweah

    How to change port in SOAP Address Location

    kamra

      Hi ,
      Default port for JBOSS is 8080, but this port conflicts with Oracle XML Database, so I have changed the default port of the JBOSS to 8081, I did this change by changing

      Connector port="8081" in server.xml file which is at location

      jboss404GA_HOME\server\default\deploy\jbossweb-tomcat55.sar\servler.xml.

      With this change, JBoss starting working on 8081 port instead of 8080 port, but the problem is when ever I create Webservice in the generated WSDL SOAP address location is still always on port 8080

      ex
      <soap:address location="http://STPLT087:8080/RefDataEJBWebServiceModuleApplication-ejb/RefDataEJBWS" />

      due to this my client is not able to communicate with the webservice.

      Can anyone pls tell me what and where should I change so that port is the WSDL also points to 8081.

      For your ref I m using
      Application server = jboss404GA
      EJB Container = jboss-EJB-3.0_RC8-FD
      JBoss WS = jbossws-1.0.1.GA

        • 1. Re: How to change port in SOAP Address Location
          ruilazaro

          hi,
          Try this:

          %JBOSS_HOME%\server\all\deploy\jboss-ws4ee.sar\META-INF\jboss-service.xml

          and change WebServicePort to the value you want.
          [8081]??

          Don´t know if this is what u want but if it works, tell me something.

          thanks
          Rui

          • 2. Re: How to change port in SOAP Address Location
            kamra

            Hi Rui,
            Thanx for the reply,

            I have already done that change

            "attribute name="WebServicePort">8081</attribute"
            in the file
            %jboss404GAHome%\server\default\deploy\jbossws14.sar\META-INF\jboss-service.xml

            but it does not work. Looks like JBoss is not picking up the port number from this jboss-service.xml file.

            • 3. Re: How to change port in SOAP Address Location
              acxjbertr

              I run OracleXE on my machine for testing purposes and it runs on port 8080 by default. However, rather than changing JBoss, I changed OracleXE with this SQL command:

              begin dbms_xdb.sethttpport('7979'); end;


              • 4. Re: How to change port in SOAP Address Location
                kamra

                Hi Acxjbertr

                Thanx for your reply,
                Changing port for OracleXE is only a temporary workaround, not the right solution.
                And in my case I have other application accessing Oracle XML DB, so I will have to change the setting in those applications too, which is more difficult.

                • 5. Re: How to change port in SOAP Address Location
                  majcarweah

                  try unjarring deploy/jbossws15.sar/jbossws.beans

                  there is a file in there META-INF/jboss-beans.xml

                  in there, change the webServicePort value from 8080 to whatever you want.

                  you will have to rejar it probably and put the new jboss-beans.xml into the jbossws15.sar directory