jnlps stopped working after installing JavaForMacOSX10.5Update4

9 views
Skip to first unread message

Stephen Bannasch

unread,
Jun 18, 2009, 10:58:41 PM6/18/09
to cc-dev...@googlegroups.com

After installing the JavaForMacOSX10.5Update4 on MacOS 10.5.7 on a
64-bit system clicking on a jnlp link in Safari 4.01 or FireFox
3.0.11 open up the XML editor Oxygen instead of Java Web Start.

When I select a jnlp in the file system and open the Open With ...
dialog I am not able to select the command line javaws application.
There does not appear to be another Java Web Start application on the
system. Before the update there was one located here:

/Applications/Utilities/Java

Running the downloaded jnlp from the command line directly with javaws works.

This is a bit of a problem ...

Stephen Bannasch

unread,
Jun 18, 2009, 11:11:37 PM6/18/09
to cc-dev...@googlegroups.com
At 10:58 PM -0400 6/18/09, Stephen Bannasch wrote:
>After installing the JavaForMacOSX10.5Update4 on MacOS 10.5.7 on a
>64-bit system clicking on a jnlp link in Safari 4.01 or FireFox
>3.0.11 open up the XML editor Oxygen instead of Java Web Start.

https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/112/wo/K74kkgnkKCDx2u4gW2Pbig/10.56

Scott Cytacki

unread,
Jun 19, 2009, 8:57:11 AM6/19/09
to cc-dev...@googlegroups.com
I did the update this morning and webstart is still working for me from
firefox and safari.
I noticed a comment with the update that said to quit all web browsers,
so I did that.

As you said it looks like they completely deleted the webstart app.

Before the update
/usr/bin/javaws -> /Applications/Utilities/Java/Java Web
Start.app/Contents/MacOS/Java Web Start/usr/bin/javaws
after the update:
/usr/bin/javaws ->
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javaws

The java preferences app acutally is webstart. So if I run:
javaws -viewer
or the Java preferences app I get mostly the same thing.

The difference are:
- "javaws -viewer" is running in 1.5, (for me) and Java preferences is
running in 1.6
- after running "javaws -viewer" I can see the commandline with ps and
see the actual java command used to launch webstart (might be handy)

So the question is where are the applications registered with their file
types? Firefox has a way to see this registration, but it doesn't
really provide
enough info to know where it is pointing to web start.

Scott

Seong Kim

unread,
Jun 19, 2009, 11:25:03 AM6/19/09
to Concord Consortium Developers
I've just installed the new Java and when I click on a jnlp link it
launches Parallels and tries to run web start there!

-Seong

On Jun 18, 10:58 pm, Stephen Bannasch <stephen.banna...@deanbrook.org>
wrote:

Scott Cytacki

unread,
Jun 19, 2009, 12:12:47 PM6/19/09
to cc-dev...@googlegroups.com
PLEASE, if you are having this problem don't try to fix this yourself, yet.

I found the "java web start" app that is registered on my system:
/System/Library/CoreServices/Java Web Start.app

I've got a series of steps that should help us figure this out. If you
are experiencing this issue here are few things I'd like to have you
try. Try to be systematic because we need to find the core of the
problem and the easiest way to fix it. Send me the results of this, you
don't need to do Step 3 if Step 2 fixes the problem.

Step 1 - What state did the update leave you in?
First save a dump of your LS Database:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister
-dump > ~/ls_db_dump-1.txt
And record the results of testing the 3 known user friendly ways to run
a jnlp:
- from firefox
- from safari
- from the finder
And find a .jnlp file in the finder and open "get info" on it and then
select the "open with" section, do you see "Java Web Start.app"?

Step 2 - Try logging out and back in
Now try logging out and back in and then do a second dump:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister
-dump > ~/ls_db_dump-2.txt
(the applications are supposed to be searched for each time you login)
Then test all 3 ways again.

Step 3 - Try browsing to the folder containing the app
Now try opening the folder in the Finder: /System/Library/CoreServices
do a third dump:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister
-dump > ~/ls_db_dump-3.txt
(the finder is supposed to register all applications it displays)
Then test all 3 ways again.

If this still doesn't fix it then we can go further, it seems possible
to use lsregister to register a new .app.

---------------
A little More info on lsregister

I initially found Java Web Start using XRay
http://www.brockerhoff.net/xray/
which is a share ware app which basically introspects the Launch
Services Database
http://developer.apple.com/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCIntro/LSCIntro.html

Then I started messing around with lsregister. On 10.5 it is located here:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister
It is a command line app for working with the LS database.

For me the following command:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister
-dump | grep -C 25 "Web Start"

returns:
...
--------------------------------------------------------------------------------
bundle id: 91824
path: /System/Library/CoreServices/Java Web Start.app
name: Java Web Start
identifier: com.apple.JavaWebStart (0x8002851a)
canonical id: com.apple.javawebstart (0x80028512)
version: 12.3
mod date: 6/19/2009 8:26:12
reg date: 6/19/2009 8:32:31
type code: 'APPL'
creator code: 'jnlp'
sys version: 0
flags: apple-internal display-name relative-icon-path
ui-element
item flags: container package application extension-hidden
native-app ppc i386 x86_64
icon: Contents/Resources/WebStart.icns
executable: Contents/MacOS/Java Web Start
inode: 5085035
exec inode: 5085040
container id: 32
library:
library items:
--------------------------------------------------------
claim id: 57988
name: JNLP files
rank: Default
roles: Viewer
flags: apple-internal relative-icon-path
icon: Contents/Resources/jnlp.icns
bindings: .jnlp, application/x-java-jnlp-file
--------------------------------------------------------------------------------

Scott

Seong Kim

unread,
Jun 19, 2009, 12:16:45 PM6/19/09
to Concord Consortium Developers
Alas, I have already tried to fix it myself by downloading the dmg and
installing it again, with everything closed,
and it works now. Sorry not being able to help with the forensics.

-Seong
> I initially found Java Web Start using XRayhttp://www.brockerhoff.net/xray/
> which is a share ware app which basically introspects the Launch
> Services Databasehttp://developer.apple.com/documentation/Carbon/Conceptual/LaunchServ...

Scott Cytacki

unread,
Jun 19, 2009, 12:29:46 PM6/19/09
to cc-dev...@googlegroups.com
Thats ok, at least we have one way to fix it: reinstall the update.

Scott

Noah Paessel

unread,
Jun 19, 2009, 12:33:39 PM6/19/09
to cc-dev...@googlegroups.com

Are you still wanting people to follow this set of instructions?  I am in progress, and have a question:

Between step 1, and step 2, Was I supposed to have set "open with" for jnlp files to "Java Web Start.app" or just record weather or not I saw it in the list? (I didn't).

- n

Scott Cytacki

unread,
Jun 19, 2009, 12:38:13 PM6/19/09
to cc-dev...@googlegroups.com
Noah Paessel wrote:
>
> Are you still wanting people to follow this set of instructions? I am
> in progress, and have a question:

Yes please follow the instructions (if you can).

>
> Between step 1, and step 2, Was I supposed to have set "open with" for
> jnlp files to "Java Web Start.app" or just record weather or not I saw
> it in the list? (I didn't).

Between step 1 and 2 don't set the "open with" for jnlp files, just
record what is currently set and what is in the list.

If step 3 doesn't fix it then a good step 4 would be to set the "open
with", and change all. And then do another dump and test.

Thanks!

Scott
>>> On Jun 18, 10:58 pm, Stephen Bannasch <stephen.banna...@deanbrook.org> <mailto:stephen.banna...@deanbrook.org>

Noah Paessel

unread,
Jun 19, 2009, 12:59:50 PM6/19/09
to cc-dev...@googlegroups.com
Executive summary: Step 3 (opening coreservices folder in the finder)
solved the issue for me. See below for a more detailed report. Scott,
if you want all the dump files I can provide them to you off list.

Cheers,

- Noah


My situation:
STEP 1:
Firefox (3.0.4): jnlp files start webstart / java, as usual.
Safari (4.0.1): jnlp files open in oxygen
Finder: jnlp files open in oxygen
Get Info: Default setting is "Oxygen". Java does not show under open
with.

(log out/log in)
STEP 2:
Firefox (3.0.4): jnlp files start OXYGEN (changed)
Safari (4.0.1): jnlp files open in oxygen
Finder: jnlp files open in oxygen
Get Info: Default setting is "Oxygen". Java does not show under open
with.

After step #2 the two files are identical, except time info:

$ diff ~/ls_db_dump-1.txt ~/ls_db_dump-2.txt

12201c12201
< reg date: 6/19/2009 10:20:31
---
> reg date: 6/19/2009 12:39:21


This is what they contain regarding jnlp:

--------------------------------------------------------
type id: 3700
uti: com.sun.java-web-start
description: Java web start
flags: exported active core apple-internal
icon:
conforms to: public.xml
tags: .jnlp, application/x-java-jnlp-file,
application/jnlp
--------------------------------------------------------


STEP 3: (opening /System/Library/CoreServices)
Firefox, Safari, Finder, all open JNLPS with Java Web Start.
ls_db_dump-3 has new data in it:

path: /System/Library/CoreServices/Java Web Start.app
name: Java Web Start

identifier: com.apple.JavaWebStart (0x80031174)
canonical id: com.apple.javawebstart (0x8002bc3d)
version: 12.3
mod date: 6/19/2009 9:40:46
reg date: 6/19/2009 12:53:29


type code: 'APPL'
creator code: 'jnlp'
sys version: 0
flags: apple-internal display-name relative-icon-path
ui-element
item flags: container package application extension-hidden
native-app ppc i386 x86_64
icon: Contents/Resources/WebStart.icns
executable: Contents/MacOS/Java Web Start

inode: 22327852
exec inode: 22327857


container id: 32
library:
library items:
--------------------------------------------------------

claim id: 88732

Scott Cytacki

unread,
Jun 19, 2009, 1:18:43 PM6/19/09
to cc-dev...@googlegroups.com
Thanks Noah.

So I'd guess that Stephen and Chad still have this problem, you don't
need to do the same steps.

Stephen, could try fixing it using "get info" open with approach.
Please first follow Step 1,
so we can compare your results with Noah's.

And then after trying to fix it with the "get info", do another dump so
we can see if it is fixed
in the same way.

I'm not sure if these approaches will work in multi user environments.
Noah when you have a chance can you try logging in with another user and
see if jnlps work for that user.

Scott

Noah Paessel

unread,
Jun 19, 2009, 1:31:07 PM6/19/09
to cc-dev...@googlegroups.com
Scott Cytacki wrote:
> I'm not sure if these approaches will work in multi user environments.
> Noah when you have a chance can you try logging in with another user and
> see if jnlps work for that user.
>
I logged in as another user on my laptop, and tried opening a JNLP from
safari. The file was opened for me with dash-code.

Then I navigated to /System/Library/CoreServices and then restarted
safari, and it opened using web start.

Cheers,

- Noah

Scott Cytacki

unread,
Jun 19, 2009, 2:35:05 PM6/19/09
to cc-dev...@googlegroups.com
Re reading the launch services docs, this problem might actually be
fixed by a reboot.

Stephen or Chad have you tried rebooting after updating java?

Scott

Noah Paessel

unread,
Jun 19, 2009, 2:41:42 PM6/19/09
to cc-dev...@googlegroups.com
Scott Cytacki wrote:
> Re reading the launch services docs, this problem might actually be
> fixed by a reboot.
>
I had to reboot after my software update this morning. Actually I had
to reboot twice, because new bluetooth firmware was installed in the
same set of software updates as the new java.

I did not launch any JNLPS between the various reboots however.

- noah

Scott Cytacki

unread,
Jun 19, 2009, 2:55:12 PM6/19/09
to cc-dev...@googlegroups.com
Darn, so we are still stuck without an easy solution for network admins
with multiple student accounts.

Here is a thread on the subject:
http://discussions.apple.com/thread.jspa?messageID=9658111

Stephen I could not follow your link to an issue. I'm pretty sure apple
doesn't let people see bugs other than their own. You could post the
issue number and we could all post interrelated bugs, something like a
voting system. :)

Scott

Stephen Bannasch

unread,
Jun 19, 2009, 3:56:45 PM6/19/09
to cc-dev...@googlegroups.com
Step 1 - What state did the update leave you in?
First save a dump of your LS Database:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister
-dump > ~/ls_db_dump-1.txt

And record the results of testing the 3 known user friendly ways to run
a jnlp:

- from firefox

opens dashcode

- from safari

opens dashcode

- from the finder

opens dashcode

And find a .jnlp file in the finder and open "get info" on it and then
select the "open with" section, do you see "Java Web Start.app"?

no it lists DashCode

Step 2 - Try logging out and back in
Now try logging out and back in and then do a second dump:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister

-dump > ~/ls_db_dump-2.txt
(the applications are supposed to be searched for each time you login)
Then test all 3 ways again.

I have already logged out and in several times before collecting
these data so I didn't collect any more.

Step 3 - Try browsing to the folder containing the app
Now try opening the folder in the Finder: /System/Library/CoreServices
do a third dump:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister

-dump > ~/ls_db_dump-3.txt
(the finder is supposed to register all applications it displays)

ls_db_dump-3.txt attached

Then test all 3 ways again.

jnlps now work in Safari, FireFox, and double-clicking in the finder

Here's the diff from the first dump to the one created after step 3:

--- /Users/stephen/ls_db_dump-1.txt 2009-06-19 15:42:03.000000000 -0400
+++ /Users/stephen/ls_db_dump-3.txt 2009-06-19 15:48:20.000000000 -0400
@@ -7505,7 +7505,7 @@
canonical id: com.apple.quicklookdaemon (0x800030b6)
version: 170.9
mod date: 12/16/2008 18:02:16
- reg date: 6/19/2009 10:58:36
+ reg date: 6/19/2009 15:47:07
type code: 'APPL'
creator code: '????'
sys version: 0
@@ -11456,11 +11456,11 @@
bundle id: 14640
path: /System/Library/CoreServices/Jar Launcher.app
name: Jar Launcher
- identifier: com.apple.JarLauncher (0x8004ccee)
+ identifier: com.apple.JarLauncher (0x8004cde5)
canonical id: com.apple.jarlauncher (0x8003727d)
version: 12.3
mod date: 6/18/2009 21:44:47
- reg date: 6/18/2009 21:49:09
+ reg date: 6/19/2009 15:47:20
type code: 'APPL'
creator code: '????'
sys version: 0
@@ -66082,6 +66082,84 @@
library:
library items:
--------------------------------------------------------------------------------
+bundle id: 156464
+ path: /System/Library/CoreServices/Java Web Start.app
+ name: Java Web Start
+ identifier: com.apple.JavaWebStart (0x8004ce0e)
+ canonical id: com.apple.javawebstart (0x8004ce06)
+ version: 12.3
+ mod date: 6/18/2009 21:44:47
+ reg date: 6/19/2009 15:47:20
+ type code: 'APPL'
+ creator code: 'jnlp'
+ sys version: 0
+ flags: apple-internal display-name
relative-icon-path ui-element
+ item flags: container package application

extension-hidden native-app ppc i386 x86_64

+ icon: Contents/Resources/WebStart.icns
+ executable: Contents/MacOS/Java Web Start
+ inode: 17492693
+ exec inode: 17492698
+ container id: 32
+ library:
+ library items:
+ --------------------------------------------------------
+ claim id: 116676
+ name: JNLP files
+ rank: Default
+ roles: Viewer
+ flags: apple-internal relative-icon-path
+ icon: Contents/Resources/jnlp.icns
+ bindings: .jnlp, application/x-java-jnlp-file
+--------------------------------------------------------------------------------
+bundle id: 156592
+ path: /System/Library/CoreServices/rcd.app
+ name: rcd
+ identifier: com.apple.rcd (0x8004ce4f)
+ version: 111
+ mod date: 12/16/2008 18:02:16
+ reg date: 6/19/2009 15:47:20
+ type code: 'APPL'
+ creator code: '????'
+ sys version: 0
+ flags: apple-internal ui-element
+ item flags: container package application
extension-hidden native-app ppc i386
+ icon:
+ executable: Contents/MacOS/rcd
+ inode: 3911472
+ exec inode: 5920157
+ container id: 32
+ library:
+ library items:
+--------------------------------------------------------------------------------
+bundle id: 156720
+ path: /System/Library/CoreServices/Screen Sharing.app
+ name: Screen Sharing
+ identifier: com.apple.ScreenSharing (0x8004ce68)
+ canonical id: com.apple.screensharing (0x8004ce60)
+ version: 1.0.2
+ mod date: 5/21/2009 11:20:14
+ reg date: 6/19/2009 15:47:20
+ type code: 'APPL'
+ creator code: '????'
+ sys version: 0
+ flags: apple-internal display-name relative-icon-path
+ item flags: container package application
extension-hidden native-app scriptable ppc i386
+ icon: Contents/Resources/liaison.icns
+ executable: Contents/MacOS/Screen Sharing
+ inode: 3926195
+ exec inode: 15602450
+ container id: 32
+ library:
+ library items:
+ --------------------------------------------------------
+ claim id: 116704
+ name: vnc URL
+ rank: Default
+ roles: Viewer
+ flags: apple-internal
+ icon:
+ bindings: vnc:
+--------------------------------------------------------------------------------
volume id: 32
path: /
flags: local system system-device

Stephen Bannasch

unread,
Jun 19, 2009, 3:59:26 PM6/19/09
to cc-dev...@googlegroups.com
>Re reading the launch services docs, this problem might actually be
>fixed by a reboot.
>
>Stephen or Chad have you tried rebooting after updating java?

Yes, I rebooted last night while trying to solve the problem also
because of the bluetooth update.

Stephen Bannasch

unread,
Jun 19, 2009, 4:18:47 PM6/19/09
to cc-dev...@googlegroups.com
At 2:55 PM -0400 6/19/09, Scott Cytacki wrote:
>Darn, so we are still stuck without an easy solution for network admins
>with multiple student accounts.
>
>Here is a thread on the subject:
>http://discussions.apple.com/thread.jspa?messageID=9658111
>
>Stephen I could not follow your link to an issue. I'm pretty sure apple
>doesn't let people see bugs other than their own. You could post the
>issue number and we could all post interrelated bugs, something like a
>voting system. :)

my bug id is: 6987107

http://bugreporter.apple.com

I just added to the bugreport what I added to the last message to cc-dev

I also have a thread on the java-dev-apple mailing list with the same info.

Reply all
Reply to author
Forward
0 new messages