Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

J2EE JMS problem

Thread view: 
Farshad - 05 Jan 2005 22:35 GMT
I am trying to connect to a Sun App Server from the JMS client
application: SimpleProducer from chapter 33 of
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html

It works fine when run on the same machine where the server is running.
But when I try it from a remote machine, I get the below message:

---
Could not create JNDI API context: javax.naming.CommunicationException:
Cannot connect to ORB [Root exception is org.omg.CORBA.COMM_FAILURE:
vmcid: SUN  minor code: 201  completed: No
---
Note: this is the only message I get, no other error follows!

When the server is local I run this command from the simple/build
directory:
#java SimpleProducer jms/Queue
and it works successfully.
>From a remote machine I run the below command from the simple/build
directory:
#java  -Dorg.omg.CORBA.ORBInitialHost=myservername SimpleProducer
jms/Queue

Both machines have J2EE installed and Sun App Server is running only in
"myservername" and not on the remote machine.

I have tried any suggestions found on the Internet or anything coming
to my mind but no success so far. I appreciate any clues.
thanks,
Farshad
Farshad - 06 Jan 2005 00:09 GMT
Okay, I had an App Server running on the remote machine, after stopping
it I get an infinite chain of error messages beginning with:
---
Destination name is jms/Queue
May 15, 2003 6:42:02 PM com.sun.corba.ee.spi.logging.LogWrapperBase
doLog
INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on
the specified host/port: all interfaces/34705"
May 15, 2003 6:42:03 PM
com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType:
IIOP_CLEAR_TEXT; hostname: 127.0.0.1; port: 3700"
org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed:
No
at
com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2257)
...
---

Sounds that the application is trying to connect to the localhost.
Specifying a properties file as below does not help either.

--- jndi.properties ---
java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory
java.naming.provider.url=iiop://myservername:3700
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl
---

Running those applications to access a local server works fine on both
machines. I want to have a client accessing the server remotely. Do I
need to edit/compile source code of those applications in some other
way? Isn't specifying a remote server from command line enough?
thanks,
Farshad
Farshad - 06 Jan 2005 00:14 GMT
Okay, I had an App Server running on the client machine, after stopping
it I get an infinite chain of error messages beginning with:
---
Destination name is jms/Queue
May 15, 2003 6:42:02 PM com.sun.corba.ee.spi.logging.LogWrapperBase
doLog
INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on
the specified host/port: all interfaces/34705"
May 15, 2003 6:42:03 PM
com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType:
IIOP_CLEAR_TEXT; hostname: 127.0.0.1; port: 3700"
org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed:
No
at
com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2257)
...
---

Sounds that the application is trying to connect to the localhost.
Specifying a properties file as below does not help either.

--- jndi.properties ---
java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory
java.naming.provider.url=iiop://myservername:3700
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl
---

Running those applications to access a local server works fine on both
machines. I want to have a client accessing the server remotely. Do I
need to edit/compile source code of those applications in some other
way? Isn't specifying a remote server from command line enough?
thanks,
Farshad
shahbaz - 20 Jan 2006 23:32 GMT
Farshad:

Did u find a solution to your problem.  I am curious because I am running
into the same problem.

>Okay, I had an App Server running on the client machine, after stopping
>it I get an infinite chain of error messages beginning with:
[quoted text clipped - 30 lines]
>thanks,
>Farshad
shahbaz - 20 Jan 2006 23:33 GMT
Farshad:

Did u ever find a solution to your problem.  I am curious because I am
running into the same problem.

>Okay, I had an App Server running on the client machine, after stopping
>it I get an infinite chain of error messages beginning with:
[quoted text clipped - 30 lines]
>thanks,
>Farshad
bashdrew - 27 Mar 2006 02:48 GMT
hi, i am a newbie in J2EE.  have you found the solution to this problem?   I
am facing same problem, too.  thanks.

>Farshad:
>
[quoted text clipped - 6 lines]
>>thanks,
>>Farshad
bashdrew - 27 Mar 2006 03:38 GMT
hi, i was able to make it work by changing the iiop listener ip addres from 0.
0.0.0 to the remote machine's ip address.  

>hi, i am a newbie in J2EE.  have you found the solution to this problem?   I
>am facing same problem, too.  thanks.
[quoted text clipped - 4 lines]
>>>thanks,
>>>Farshad


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.