This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 44552 - Errors loading servletapi23
Summary: Errors loading servletapi23
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: Radko Najman
URL:
Keywords: REGRESSION
: 44612 (view as bug list)
Depends on:
Blocks: 44461
  Show dependency tree
 
Reported: 2004-06-08 16:47 UTC by Jesse Glick
Modified: 2007-08-03 09:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-06-08 16:47:23 UTC
Besides these errors, thrown during startup of a
fresh dev build in a fresh user dir, the
servletapi is marked as an eager module for some
bizarre reason. It should be autoload, not eager.

Note that the failure of the module to be enabled
does not affect anything else since no other
module depends on it anyway; so if it were
autoload, it would be disabled for the time being.

[org.netbeans.core.modules #4] Warning: module
org.netbeans.modules.servletapi does not declare
OpenIDE-Module-Public-Packages in its manifest, so
all packages are considered public by default:
http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#3.4-public-packages
[org.netbeans.core.modules #4] WARNING: Class-Path
value ../ext/servlet-2.3.jar from
/space/nb/curr/ide4/modules/eager/servletapi23.jar
is illegal according to the Java Extension
Mechanism: must be relative and not move up
directories
[org.netbeans.core.modules #4] Warning: Class-Path
value ../ext/servlet-2.3.jar from
/space/nb/curr/ide4/modules/eager/servletapi23.jar
cannot be found at
/space/nb/curr/ide4/modules/eager/../ext/servlet-2.3.jar
[org.netbeans.core.modules] INFORMATIONAL
*********** Exception occurred ************ at
11:44 AM on Jun 8, 2004
java.lang.ClassNotFoundException:
javax.servlet.Servlet
	at
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at
java.security.AccessController.doPrivileged(Native
Method)
	at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at
java.lang.ClassLoader.loadClass(ClassLoader.java:290)
	at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:279)
	at
java.lang.ClassLoader.loadClass(ClassLoader.java:236)
	at
org.netbeans.ProxyClassLoader.loadInOrder(ProxyClassLoader.java:556)
	at
org.netbeans.ProxyClassLoader.smartLoadClass(ProxyClassLoader.java:508)
	at
org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:148)
	at
java.lang.ClassLoader.loadClass(ClassLoader.java:236)
[catch] at
org.netbeans.core.modules.Util.checkPackageDependency(Util.java:235)
	at
org.netbeans.core.modules.ModuleManager.enable(ModuleManager.java:793)
	at
org.netbeans.core.modules.ModuleList.installNew(ModuleList.java:350)
	at
org.netbeans.core.modules.ModuleList.trigger(ModuleList.java:284)
	at
org.netbeans.core.modules.ModuleSystem.restore(ModuleSystem.java:253)
	at org.netbeans.core.NonGui.run(NonGui.java:369)
	at org.netbeans.core.Main.run(Main.java:168)
	at
org.netbeans.core.NbTopManager.getNbTopManager(NbTopManager.java:232)
	at
org.netbeans.core.NbTopManager.get(NbTopManager.java:187)
	at org.netbeans.core.Main.start(Main.java:310)
	at
org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90)
	at java.lang.Thread.run(Thread.java:595)
[org.netbeans.core.modules] INFORMATIONAL
*********** Exception occurred ************ at
11:44 AM on Jun 8, 2004
org.netbeans.core.modules.InvalidException:
Module:org.netbeans.modules.servletapi23:
Dependency failed on package [javax.servlet.Servlet]
	at
org.netbeans.core.modules.ModuleManager.enable(ModuleManager.java:795)
[catch] at
org.netbeans.core.modules.ModuleList.installNew(ModuleList.java:350)
	at
org.netbeans.core.modules.ModuleList.trigger(ModuleList.java:284)
	at
org.netbeans.core.modules.ModuleSystem.restore(ModuleSystem.java:253)
	at org.netbeans.core.NonGui.run(NonGui.java:369)
	at org.netbeans.core.Main.run(Main.java:168)
	at
org.netbeans.core.NbTopManager.getNbTopManager(NbTopManager.java:232)
	at
org.netbeans.core.NbTopManager.get(NbTopManager.java:187)
	at org.netbeans.core.Main.start(Main.java:310)
	at
org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90)
	at java.lang.Thread.run(Thread.java:595)
Warning - could not install module Servlet 2.3 API
- The package containing the class
javax.servlet.Servlet was not loaded.
Comment 1 Jesse Glick 2004-06-08 16:49:13 UTC
Making it an eager module is not an appropriate solution to #44461. If
it provides some user-visible service you might wish to turn on or
off, it should be a regular module. Or the web/project module may wish
to depend on it.
Comment 2 Radko Najman 2004-06-09 08:50:22 UTC
*** Issue 44612 has been marked as a duplicate of this issue. ***
Comment 3 Radko Najman 2004-06-09 13:56:12 UTC
Fixed. Autoload module again.

OpenIDE-Module-Requires: org.netbeans.modules.servletapi23 was added
to web/project/manifest.mf
  
OpenIDE-Module-Provides: org.netbeans.modules.servletapi23 was added
to web/servletapi23/manifest.mf
Comment 4 Dan Kolar 2007-08-03 09:50:49 UTC
v