"java -jar jboss-run.jar" is not running

Bug #367984 reported by Michele Renda on 2009-04-27
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
jbossas4 (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: jbossas4

Ubuntu 9.04 - Jaunty (Fresh install)
___________________________________________________________
jbossas4:
  Installato: 4.2.3.GA-1
  Candidato: 4.2.3.GA-1
  Tabella versione:
 *** 4.2.3.GA-1 0
        500 http://it.archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status
___________________________________________________________

** Other installed packages:
  jbossas4
  libjboss-server-java
  libgetopt-java

** What I expected to happen:
  It run :)

** What happened instead:
Exception in thread "main" java.lang.NoClassDefFoundError: gnu/getopt/LongOpt
 at org.jboss.Main.processCommandLine(Main.java:242)
 at org.jboss.Main.boot(Main.java:106)
 at org.jboss.Main$1.run(Main.java:508)
 at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.ClassNotFoundException: gnu.getopt.LongOpt
 at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
 ... 4 more

** Suggestions:

I am not expert in Debian packaging, but trying to get the sources with: apt-get source jbossas4 I found that one of the activities done when creating jbossas4 is to unjar the gnu-getopt.jar to be included in the main jbossas4 (this is the reason, i think, because jbossas4 doesn't need as dependency the package libgetopt-java.

The problem is that opening with file-roller the file /usr/share/java/jbossas4-run.jar I can't see any folder named "gnu". In addition, trying to add manually, the gnu folder from /usr/share/java/gnu-getopt.jar to /usr/share/java/jbossas4-run.jar the problem seem to be solver (but there are other similar problems).

It seem to be an error when building the deb package. Someone can confirm?

Thank you
Michele Renda

unchiujar (vasile-jureschi) wrote :

Also affects Karmic Koala.

+1 affects Karmic Koala

Tony Mugan (tmugan) wrote :

Also, Lucid Lynx

manso (manso-manu) wrote :

+1 affects Lucid Lynx

NeQuissimus (steinbach-tim) wrote :

Still in Maverick Meerkat

Daniele Napolitano (dnax88) wrote :

Please, improve the jboss packaging!

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in jbossas4 (Ubuntu):
status: New → Confirmed
Julien MOREAU (jmoreau) wrote :

Also affects Precise Pangolin (Ubuntu 12.04.2 LTS).

Julien MOREAU (jmoreau) wrote :

Actually, it also affects GNU/Linux debian 6:

/usr/share/java/ $ ls -F
jboss-run-4.2.3.GA.jar jboss-shutdown-4.2.3.GA.jar libgcj-4.4.5.jar@ libgcj-tools-4.4.5.jar@ libintl.jar
jboss-run.jar@ jboss-shutdown.jar@ libgcj-4.4.jar libgcj-tools-4.4.jar

/usr/share/java/ $ sudo java -jar jboss-run.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org.jboss.Main
   at java.lang.Class.initializeClass(libgcj.so.10)
Caused by: java.lang.ClassNotFoundException: gnu.getopt.LongOpt not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:jboss-run.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.10)
   at java.lang.ClassLoader.loadClass(libgcj.so.10)
   at java.lang.ClassLoader.loadClass(libgcj.so.10)
   at java.lang.Class.initializeClass(libgcj.so.10)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers