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 / CORBA / April 2006

Tip: Looking for answers? Try searching our database.

jvmargs (again)

Thread view: 
Jeffrey Spoon - 23 Apr 2006 22:58 GMT
Hello, I'm just checking I have used the right syntax for my jvmargs as
I'm having some problems (although this may be a config problem).

I'm running this command for an application:

java -classpath C:\politse\j2ee.jar;C:\politse\appserv-rt.jar;
UberClient
-client jvmarg value = "-Dorg.omg.CORBA.ORBInitialHost=${192.168.1.1}"
jvmarg value = "-Dorg.omg.CORBA.ORBInitialPort=${3700}"

Is this the correct syntax (obviously it isn't wrapped)?

The reason I ask is because I get a CORBA COMM FAILURE and it gives the
InitialHost as localhost and the port as 3700, even when I set the port
to another value, so I'm not sure if the jvmarg values are being used,
as it seems to default to those values. This even happens when the
server is off so I think it is a client problem, it seems to be ignoring
the jvmargs. Any ideas?

Cheers

Signature

Jeffrey Spoon

Roland de Ruiter - 24 Apr 2006 14:31 GMT
> Hello, I'm just checking I have used the right syntax for my jvmargs as
> I'm having some problems (although this may be a config problem).
[quoted text clipped - 7 lines]
> Is this the correct syntax (obviously it isn't wrapped)?
> ...

The commandline seems to be incorrect (unless the class UberClient
parses the remaining commandline parameters). Java specific parameters
(-D, -client, -classpath) should appear before the main class (i.e. the
class to be invoked, UberClient in your case). Any parameters following
the main class are passed to this class, which should handle and/or
parse them.

It probably should be like this (all on a single line):

java -client -Dorg.omg.CORBA.ORBInitialHost=192.168.1.1
-Dorg.omg.CORBA.ORBInitialPort=3700 -classpath
C:\politse\j2ee.jar;C:\politse\appserv-rt.jar UberClient

See also <http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html>
Signature

Regards,

Roland

Jeffrey Spoon - 24 Apr 2006 17:37 GMT
>The commandline seems to be incorrect (unless the class UberClient
>parses the remaining commandline parameters). Java specific parameters
[quoted text clipped - 10 lines]
>
>See also <http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html>

Yeah I was taking the instructions a bit too literally. I found a good
example here
http://developers.sun.com/prodtech/appserver/reference/techart/mgmt_monit
oring.html after posting this.

The reason I tried the jvmargs at the end was because initially it
wouldn't work at the beginning, but that's because I was being stupid :/

Thanks for the help.

Signature

Jeffrey Spoon



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.