jsvc fails to find JVM jvm.cfg file and shared objects due to wrong path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
commons-daemon (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
---Problem Description---
jsvc, an application to launch a java daemon, on ppc64 and ppc64le looks for jvm.cfg and JVM shared objects in the wrong path. Be it used with IBM Java or OpenJDK (where the problem was first encountered), there is no dir called power64 or power64le. Instead ppc64 and ppc64le are used. In doing so, it fails with "Cannot find any VM in Java Home"
---uname output---
Linux vm 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:38:24 UTC 2016 ppc64le ppc64le ppc64le GNU/Linux
Machine Type = pKVM
---Debugger---
A debugger is not configured
---Steps to Reproduce---
# apt-get install libcommons-
# cat MyClass.java
public class MyClass {
public void init(String[] args) {
System.
}
public void start() {
System.
}
public void stop() {
System.
}
public void destroy() {
System.
}
}
# javac MyClass.java
# jar cvf my.jar MyClass.class
# sudo jsvc -debug -user root -java-home /usr/lib/
Then:
+-- DUMPING PARSED COMMAND LINE ARGUMENTS --------------
| Detach: True
| Show Version: No
| Show Help: No
| Check Only: Disabled
| Stop: False
| Wait: 0
| Run as service: No
| Install service: No
| Remove service: No
| JVM Name: "null"
| Java Home: "/usr/lib/
| PID File: "/var/run/jsvc.pid"
| User Name: "root"
| Extra Options: 1
| "-Djava.
| Class Invoked: "MyClass"
| Class Arguments: 1
| "-start"
+------
No need to change user to 'root'!
User 'root' validated
Attempting to locate Java Home in /usr/lib/
Attempting to locate VM configuration file /usr/lib/
Attempting to locate VM configuration file /usr/lib/
Attempting to locate VM configuration file /usr/lib/
Attempting to locate VM configuration file /usr/lib/
VM configuration file not found
Attempting to locate VM library /usr/lib/
Attempting to locate VM library /usr/lib/
Attempting to locate VM library /usr/lib/
Attempting to locate VM library /usr/lib/
...
Dear maintainer,
The fix is already upstream (backport is trivial):
https:/
The upstream ticket for reference: https:/
tags: | added: architecture-ppc64le bugnameltc-149188 severity-medium targetmilestone-inin1610 |
Changed in ubuntu: | |
assignee: | nobody → Taco Screen team (taco-screen-team) |
affects: | ubuntu → commons-daemon (Ubuntu) |
This package is supported by the community. It would require a community effort to find a resolution to this issue.