This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes changing port number of server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "changing port number of server" Watch "changing port number of server" New topic
Author

changing port number of server

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
I googled and found that in <domain-name>/config/config.xml file, you can change <listen-port> tag to change port number.

But I can't see <listen-port> tag in my config.xml file. What can be the reason? And in such case, how to change port number?

Thanks.
krishnamoorthy kitcha
Ranch Hand

Joined: Feb 04, 2006
Posts: 96
Hi rathi

Just see the under the Domain Name , there is a file name config.xml

In that file see the tag like <Server ListenAddress="" ListenPort="7001" Name="myserver"

Then change your settings restart the server will change affect.
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by krishnamoorthy kitcha:
Hi rathi

Just see the under the Domain Name , there is a file name config.xml

In that file see the tag like <Server ListenAddress="" ListenPort="7001" Name="myserver"

Then change your settings restart the server will change affect.


Nope. There is no file with name config.xml just under <domain-name> folder.

In fact I searched for 7001 string (word inside files) as my server is running on 7001 port but didn't find 7001 string in any XML file. It's in 2-3 bat files but that's not important.

Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8843
    
    7

It would be useful to know which version of Weblogic you are using, as configuration options vary from version to version.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Pawan Choure
Greenhorn

Joined: May 11, 2008
Posts: 27

You can change the Port Number by Editing the Config.xml file is your user project.
Given below is the sample location

C:\Oracle\Middleware\user_projects\domains\base_domain\config\config.xml

Edit that file.

<server>
<name>AdminServer</name>
<listen-port>7007</listen-port> change this to the desired Port Number you want.
<listen-address></listen-address>
</server>


Pawan Choure
 
 
subject: changing port number of server
 
Similar Threads
How to change the default port of weblogic (7001)
Eclipse plug-in for JBOSS
How to Configure Apache HTTp Server with Tomcat
LocalHost Start up Error
weblogic server startup problem