how to run 2 weblogic instance in the same machine

is it possible to run 2 weblogic instance in the same machine ?

I have created 2 domains ...domain-1 and domain-2in my hard disk and both of them have startWeblogic.cmd in them..

but i cant run them simultaneously though individually they run.

they differ by HTTP port and Debug portbut still they dont run simultaneously

can you please comment ?

[377 byte] By [Unknown_Citizena] at [2007-11-27 9:38:07]
# 1
the reason i want , is i have 2 EAR file ...one is old and another is new .i want to deploy both of them and would like to test both of them .
Unknown_Citizena at 2007-7-12 23:10:51 > top of Java-index,Java Essentials,Java Programming...
# 2
Why not just run a single instance of weblogic, but with the two applications deployed...
macrules2a at 2007-7-12 23:10:51 > top of Java-index,Java Essentials,Java Programming...
# 3
You should be able to. Can you post the error from the weblogic log file here?ram.
Madathil_Prasada at 2007-7-12 23:10:51 > top of Java-index,Java Essentials,Java Programming...
# 4

yea...i thought about it .

but as both of them are same application and they are using the same DB connection pool , JMS queue ....i just dont want to mix all these.

so i have created two seperate domian . and i run them individually and they work fine.

However , they are having different ports though .

But when i run the second one while the first one is running ....the second one does not starts up

here is the error when i click on startsWeblogic.cmd when the other is already running.

java version "1.4.2_08"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)

BEA WebLogic JRockit(TM) 1.4.2_08 JVM R24.5.0-61 (build ari-49095-20050826-1856-win-ia32, Native Threads, GC strategy: pa

Starting WLS with line:

d:\bea\JROCKI~1\bin\java -jrockit -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.

=== Debugging ===

This window is necessary for debugging code using WebLogic Workshop

ERROR: Proxy already running...

weblogic.debugging.comm.TransportException

at weblogic.debugging.comm.ServerConnectInfo.createTransport()Lweblogic/debugging/comm/CommTransport;(ServerConne

at weblogic.debugging.engine.ProxyThread.run()V(ProxyThread.java:77)

at java.lang.Thread.run()V(Unknown Source)

at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)

Caused by: java.net.BindException: Address in use

at jrockit.net.SocketNativeIO.bind(ILjava/net/InetAddress;I)I(Unknown Source)

at jrockit.net.SocketNativeIO.bind(Ljava/io/FileDescriptor;Ljava/net/InetAddress;I)I(Unknown Source)

at java.net.AbstractSocketImpl.bind(Ljava/net/InetAddress;I)V(Unknown Source)

at java.net.PlainSocketImpl.bind(Ljava/net/InetAddress;I)V(Unknown Source)

at java.net.ServerSocket.bind(Ljava/net/SocketAddress;I)V(ServerSocket.java:318)

at java.net.ServerSocket.<init>(IILjava/net/InetAddress;)V(ServerSocket.java:185)

at java.net.ServerSocket.<init>(I)V(ServerSocket.java:97)

at weblogic.debugging.comm.ServerConnectInfo.createTransport()Lweblogic/debugging/comm/CommTransport;(ServerConne

... 3 more

Could not bind to Weblogic server (Error attaching to Weblogic Server.).

Message was edited by:

Unknown_Citizen

Unknown_Citizena at 2007-7-12 23:10:51 > top of Java-index,Java Essentials,Java Programming...
# 5

changed the debug port 8453 to 8451 but still the same start up error.

HTTP port already chaged to 7001 to 7003 .

error

Starting WLS with line:

d:\bea\JROCKI~1\bin\java -jrockit -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8451,server=y,suspend=n -Djava.compiler=NONE -Xms

=== Debugging ===

This window is necessary for debugging code using WebLogic Workshop

ERROR: Proxy already running...

weblogic.debugging.comm.TransportException

at weblogic.debugging.comm.ServerConnectInfo.createTransport()Lweblogic/debugging/comm/CommTransport;(ServerConnectInfo.java:63)

at weblogic.debugging.engine.ProxyThread.run()V(ProxyThread.java:77)

at java.lang.Thread.run()V(Unknown Source)

at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)

Caused by: java.net.BindException: Address in use

at jrockit.net.SocketNativeIO.bind(ILjava/net/InetAddress;I)I(Unknown Source)

at jrockit.net.SocketNativeIO.bind(Ljava/io/FileDescriptor;Ljava/net/InetAddress;I)I(Unknown Source)

at java.net.AbstractSocketImpl.bind(Ljava/net/InetAddress;I)V(Unknown Source)

at java.net.PlainSocketImpl.bind(Ljava/net/InetAddress;I)V(Unknown Source)

at java.net.ServerSocket.bind(Ljava/net/SocketAddress;I)V(ServerSocket.java:318)

at java.net.ServerSocket.<init>(IILjava/net/InetAddress;)V(ServerSocket.java:185)

at java.net.ServerSocket.<init>(I)V(ServerSocket.java:97)

at weblogic.debugging.comm.ServerConnectInfo.createTransport()Lweblogic/debugging/comm/CommTransport;(ServerConnectInfo.java:58)

... 3 more

Could not bind to Weblogic server (Error attaching to Weblogic Server.).

Unknown_Citizena at 2007-7-12 23:10:51 > top of Java-index,Java Essentials,Java Programming...
# 6
The problem isn't the ports your application is using, the problem is that weblogic is trying to use the same resources that the first instance is using...Just create new datasources for your second application, or get a second machine.
macrules2a at 2007-7-12 23:10:51 > top of Java-index,Java Essentials,Java Programming...
# 7
Caused by: java.net.BindException: Address in use
Unknown_Citizena at 2007-7-12 23:10:51 > top of Java-index,Java Essentials,Java Programming...
# 8
Which WL server you use (version?). Do you start both the admin server and managed server on both instances? If yes there are 4 ports which need to be defined (one each for admin and managed server * 2 instances). Can you post the config.xml for both instances ?ram.
Madathil_Prasada at 2007-7-12 23:10:51 > top of Java-index,Java Essentials,Java Programming...
# 9
I dont have managed servers.version WL 8.1I have created two integration domian seperately in two different folder...thats it .when i start them seperately they work fine .i dont have cluster ...managed server nothing.
Unknown_Citizena at 2007-7-12 23:10:51 > top of Java-index,Java Essentials,Java Programming...
# 10
post the config.xml for both
Madathil_Prasada at 2007-7-12 23:10:51 > top of Java-index,Java Essentials,Java Programming...
# 11
i cant ....it contains project settings .....connection pool name , queues etc .i cantdetail it here .do you want to see some specific settings ? please post which portion you want it to be posted and important ......i'll manage for that .thanks
Unknown_Citizena at 2007-7-12 23:10:51 > top of Java-index,Java Essentials,Java Programming...
# 12

Assuming that you would know that the listen port shouldnt be the same for the 2 instances, be aware that this is not the only port usage that has to be unique for the 2 instances. There's ssl and if you have configured the instances to listen on https, then the https listen port should be unique. If you have enabled remote debugging for the application running on both instances, the listen port for this should be different for the 2 instances. It's difficult to debug without the config.xml and probably even the startup batch (or sh) file.

ram.

Madathil_Prasada at 2007-7-12 23:10:51 > top of Java-index,Java Essentials,Java Programming...
# 13

> Assuming that you would know that the listen port

> shouldnt be the same for the 2 instances, be aware

> that this is not the only port usage that has to be

> unique for the 2 instances. There's ssl and if you

> have configured the instances to listen on https,

> then the https listen port should be unique.

hmm...ok .....but i think i already have changed that also.

domain-1's config.xml filehas the entry as

<SSL Enabled="true" IdentityAndTrustLocations="KeyStores"

ListenPort="7004" Name="cgServer"/>

domian-2's config.xml has the entry as

<SSL Enabled="true" IdentityAndTrustLocations="KeyStores"

ListenPort="7002" Name="cgServer"/>

it seems i am in the right track .

If you

> have enabled remote debugging for the application

> running on both instances, the listen port for this

> should be different for the 2 instances.

yes ...i do remote debugging through eclipse ...eclipse needs only remote debug port which i also changed in both of them .

they are 8453 and 8451

>It's

> difficult to debug without the config.xml and

> probably even the startup batch (or sh) file.

>

> ram.

Have i understood you correctly ?

Unknown_Citizena at 2007-7-12 23:10:51 > top of Java-index,Java Essentials,Java Programming...
# 14
any updates ?
Unknown_Citizena at 2007-7-12 23:10:51 > top of Java-index,Java Essentials,Java Programming...
# 15

Took a look at your error again and it looks like there's a proxy that's started up, listening on a port and the other instance too tries to use the same port for it's proxy. Are you starting the WL debugger on your machine - the WL debugger has 2 parts - the debugger and the proxy and eaxch listens on its own port as specified in setDomainEnv.cmd of your domain.

Look [url http://support.bea.com/application_content/product_portlets/support_patterns/wlw/WLW81WorkshopDebuggerDoesNotWorkPattern.html] here [/url] for more info.

ram.

Madathil_Prasada at 2007-7-21 23:05:04 > top of Java-index,Java Essentials,Java Programming...
# 16

> Took a look at your error again and it looks like

> there's a proxy that's started up, listening on a

> port and the other instance too tries to use the same

> port for it's proxy. Are you starting the WL debugger

> on your machine - the WL debugger has 2 parts - the

> debugger and the proxy and eaxch listens on its own

> port as specified in setDomainEnv.cmd of your

> domain.

yea, but i already changed that port (debug) in setDomainEnv.cmd and posted that already here .

do you mean any other specific ports need to be changed in setDomainEnv.cmd apart from debug port ?

please let me know so that i can give it a try .

Thanks for the response.

> Look [url

> http://support.bea.com/application_content/product_por

> tlets/support_patterns/wlw/WLW81WorkshopDebuggerDoesNo

> tWorkPattern.html] here [/url] for more info.

>

> ram.

Unknown_Citizena at 2007-7-21 23:05:04 > top of Java-index,Java Essentials,Java Programming...
# 17
So you spent nearly a week trying to get this done, when it would take you 10-15 minutes to create new datasources, queues, topics, etc.
macrules2a at 2007-7-21 23:05:04 > top of Java-index,Java Essentials,Java Programming...
# 18

> So you spent nearly a week trying to get this done,

> when it would take you 10-15 minutes to create new

> datasources, queues, topics, etc.

where ?

my objective is somewhat different . i am trying to do it because it is convenient to do R&D and switching.

old_code-->old_domain-old_eclipse workspace->debugging

new_code->new domian-new_eclipse workspace->debugging

Unknown_Citizena at 2007-7-21 23:05:04 > top of Java-index,Java Essentials,Java Programming...