NetBeans needs liblogkit-java dependency for web application development

Bug #509255 reported by Lou Ruppert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netbeans (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: netbeans

Netbeans 6.7.1 in Karmic fails to complete the process of creating a Servlet file once the Web Applications plugins are installed. Looking at the IDE Log, one can see a ClassNotFoundException for org.apache.log.Hierarchy. Some Google searching shows that this is part of the liblogkit-java package. Here is the workaround that gets NetBeans to work in Karmic:

sudo apt-get install liblogkit-java
bash$ cd .netbeans/6.7/lib
bash$ ln -s /usr/share/java/logkit.jar .

The problem should be able to be reproduced with the following steps:

(Install netbeans package from Karmic repository obviously)
Open netbeans and open Tools and Modules.
Add the modules for web applications.
Restart Netbeans.
Open netbeans and create a new web project.
Once the project is created, create a new file and choose Servlet.
You will notice that when you complete Finish, the window doesn't close, no template is inserted in the new file, and there is a flashing error icon in the statusbar of the main Netbeans window.

Since Sun's bundle of Netbeans doesn't exhibit this problem, I'm assuming someone missed this dependency in testing. I don't know how to add the liblogkit-java jar to Netbeans' default system-wide classpath, hence my sloppy hack. But whoever is packaging Netbeans should probably include this dependency and make whatever arrangements are necessary to include it in the classpath.

ProblemType: Bug
Architecture: amd64
Date: Mon Jan 18 12:36:04 2010
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: netbeans 6.7.1-0ubuntu1
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 LANG=fr_FR.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
SourcePackage: netbeans
Uname: Linux 2.6.31-17-generic x86_64

Revision history for this message
Lou Ruppert (louferd) wrote :
Revision history for this message
Yulia Novozhilova (yulia-novozhilova) wrote :

Thank you for catching!
Will be fixed in NetBeans 6.8 packages.

Revision history for this message
Lou Ruppert (louferd) wrote :

Latest 6.8 doesn't seem to include liblogkit-java. I'm trying to confirm it is fixed, but it seems to hang on the stage where I add module for web applications.

Revision history for this message
Yulia Novozhilova (yulia-novozhilova) wrote :

I couldn't reproduce the issue on 6.8 so didn't add the dependency. Wil try again.

Revision history for this message
Yulia Novozhilova (yulia-novozhilova) wrote :

I can't reproduce the issue on NetBeans 6.8. Please let me know if you can.

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.