- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unable to spawn jvm 1.5 from C executable(with HPU...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 07:10 AM
тАО02-26-2009 07:10 AM
unable to spawn jvm 1.5 from C executable(with HPUX privilege)
I am trying to spawn a java(1.5) process from a C executable. The purpose of java process is to bind to a port which is less than 1023. I am running the C executable with NETPRIVPORT privilege as an ordinary user.
But, I am getting the error, "No owner" as shown in the attachment and unable to spawn the jvm. Later, I changed the owner of the C executable to root. Then, also, I am getting the same error.
secondly, I added the C executable as a privileged application using cmdprivadm. Then, also, I am getting autorization error.
I have included other relevant details in the attachment.
Can you please let me know the reason why we are not able to spawn the jvm when HPUX privileges are applied?
I am using HPUX B.11.31 U.
Thanks,
R Srinivasan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 07:34 AM
тАО02-26-2009 07:34 AM
Re: unable to spawn jvm 1.5 from C executable(with HPUX privilege)
Please provide version number of jvm.
I would suspect this is a bug with jvm, nothing to do with HP-UX.
Standard practice:
Install a recent bi-annual HP-UX patch set.
Go to http://www.hp.com/go/java
Install the latest version of JVM.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 09:23 AM
тАО02-26-2009 09:23 AM
Re: unable to spawn jvm 1.5 from C executable(with HPUX privilege)
The jvm version is 1.5
Thanks,
R Srinivasan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 09:57 AM
тАО02-26-2009 09:57 AM
Re: unable to spawn jvm 1.5 from C executable(with HPUX privilege)
You also need to repeat the executable twice for execl(2):
execl("/usr/bin/ksh", "/usr/bin/ksh", "-v" "-c", "java com.abc.def", NULL);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2009 04:04 AM
тАО02-27-2009 04:04 AM
Re: unable to spawn jvm 1.5 from C executable(with HPUX privilege)
Thanks for the your information.
As of now, I am not sourcing any classpath setting. In future, I may need to do the same.
still, I am not able to spawn the java process and bind to port less than 1023.
Thanks,
R Srinivasan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2009 01:14 PM
тАО02-27-2009 01:14 PM
Re: unable to spawn jvm 1.5 from C executable(with HPUX privilege)
Your tusc output says you aren't able to exec ksh, not java.