[Bug 687] New: BasicService.getCodeBase() returns null for IcedTea6 1.9.7 + OSGI
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Thu Apr 7 03:04:07 PDT 2011
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=687
Summary: BasicService.getCodeBase() returns null for IcedTea6
1.9.7 + OSGI
Product: IcedTea-Web
Version: unspecified
Platform: all
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P5
Component: NetX
AssignedTo: omajid at redhat.com
ReportedBy: adalbert.prokop at gmx.de
CC: unassigned at icedtea.classpath.org
Created an attachment (id=507)
--> (http://icedtea.classpath.org/bugzilla/attachment.cgi?id=507)
Eclipse plugin and feature source
Calling BasicService.getCodeBase() always returns null if a webstart
application uses OSGI.
Sun/Oracle's (1.6.0_24) implementation behaves differently, they return the
code base as defined in the JNLP file.
I suspect the problem in the method JNLPSecurityManager.
getApplication(Class[], int). The code iterates over all classes on the stack,
retrieving their class loaders and checking their types. But in case of OSGI
the method getClassLoader() will return null.
System:
Linux localhost 2.6.35-28-generic #49-Ubuntu SMP Tue Mar 1 14:40:58 UTC 2011
i686 GNU/Linux
Java version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1)
OpenJDK Client VM (build 19.0-b09, mixed mode, sharing)
javaws version reports NetX 0.5
Steps to reproduce:
To ways.
1. Unzip application from dummy.zip to /tmp
2. cd /tmp/features
3. run "javaws start.jnlp"
With IcedTea6 1.9.7 you should see
Hello World!!
BasiceService.getCodeBase() returned: null
or
1. Install both project in dummy_projects.tgz into eclipse
2. Run "File->Export" on dummy.feature
3. Select "Deployable features"
4. Tab "Destination": set directory to /tmp
5. Tab "Options": Select "Package as individual JARS archives"
6. Tab "JAR Signing": Use keystore from dummy plugin, alias: "dummy",
passwords: "password"
7. Tab "Java Web Start": Check "Create JNLP manifest", set site URL to
"file:/tmp"
8. Copy start.jnlp to /tmp/features
9. In /tmp/features run "javaws start.jnlp"
Source code is contained in dummy_projects.tgz
--
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the distro-pkg-dev
mailing list