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

Bug #367984 reported by Michele Renda
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
jbossas4 (Ubuntu)
Confirmed
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

Revision history for this message
unchiujar (vasile-jureschi) wrote :

Also affects Karmic Koala.

Revision history for this message
oleksandr petrov (oleksandr-petrov) wrote :

+1 affects Karmic Koala

Revision history for this message
Tony Mugan (tmugan) wrote :

Also, Lucid Lynx

Revision history for this message
manso (manso-manu) wrote :

+1 affects Lucid Lynx

Revision history for this message
NeQuissimus (steinbach-tim) wrote :

Still in Maverick Meerkat

Revision history for this message
Daniele Napolitano (dnax88) wrote :

Please, improve the jboss packaging!

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in jbossas4 (Ubuntu):
status: New → Confirmed
Revision history for this message
Julien MOREAU (jmoreau) wrote :

Also affects Precise Pangolin (Ubuntu 12.04.2 LTS).

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.