Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (516)
Games in Android Showcase (123)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  WebStart over a LAN  (Read 1863 times)
0 Members and 1 Guest are viewing this topic.
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Posted 2004-02-02 10:16:13 »

Hi there,

I'm trying to use WebStart over intranet at work. While it works locally, when a collegue tries it, jws reports the following error:

JNLPException[category: Download Error : Exception:
java.net.ConnectException: Connection refused: connect : LaunchDesc: null ]
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)       at
com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown
Source)       at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown
Source)       at com.sun.javaws.Launcher.downloadResources(Unknown Source)       at
com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)       at
com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)       at
com.sun.javaws.Launcher.run(Unknown Source)       at
java.lang.Thread.run(Thread.java:536)

The error occurs when it tries to download the jnlp file. The funny thing is, the path is correct (when you copy/paste the path from the error message popped up by jws in explorer, it can find it because it starts up jws).

jnlp file:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
<?xml version="1.0" encoding="utf-8"?>
<jnlp
spec="1.0+"
codebase="file://nlhrn501/workspace/SRC-EDI_Manager"
href="src-edi_c.jnlp">
<information>
<title>SRC-EDI Manager</title>
<vendor>SRC System Integrators B.V.</vendor>
<homepage href="http://www.src.nl"/>
<description>SRC-EDI Manager Client</description>
<description kind="short">SRC-EDI Manager Client</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
<jar href="src-edi_c.jar"/>
</resources>
<application-desc>
<argument>nlhrn501</argument>
</application-desc>
</jnlp>


Anybody got a hint?
Or do I really have to put it in a webserver?

Erik

Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #1 - Posted 2004-02-02 11:01:01 »

file:// <- heh it's triple slash! Wink

Quote
The funny thing is, the path is correct (when you copy/paste the path from the error message popped up by jws in explorer, it can find it because it starts up jws).


In that case it works with netbios. Well, I guess webstart tries the "usual" port 80 http stuff. So yea... a webserver would solve that problem I guess Smiley

弾幕 ☆ @mahonnaiseblog
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #2 - Posted 2004-02-02 11:12:44 »

Thanks for the reply.

Quote
file:// <- heh it's triple slash!


You have to trip-slash if you want to omit the hostname and do a C:/... path. In this case I think you have to use a double slash.
...except that it doesn't work  Grin
(I tried triple slash as well)

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

JGO Kernel


Medals: 409
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #3 - Posted 2004-02-02 12:30:12 »

Netbios names use \\ notation don't they?
Besides, what's wrong with setting up a tiny HTTP daemon to farm out the files anyway?

Cas Smiley

Offline Herkules

Senior Duke




Friendly fire isn't friendly!


« Reply #4 - Posted 2004-02-02 12:38:42 »

I confirm that a http server is not necessary. Did run my stuff locally without. But I only accessed local drives, no network drives.


HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #5 - Posted 2004-02-02 13:00:56 »

Quote

You have to trip-slash if you want to omit the hostname and do a C:/... path. In this case I think you have to use a double slash.
...except that it doesn't work  Grin
(I tried triple slash as well)


Yep. FYI, the standard has:

protocol:path1

...and the most-frequently-used path1 is:

// hostname / path

where this second path is defined as being a minimum of "/", and where ommitted defaults to "/". e.g. for http protocol, "/" and a null path are defined to be precisely the same.

(FYI if "/" is included anywhere in this path, the standard says it MUST represent hierarchical topology.)

NB: many systems use this definition of path, including netbios as observed above. (EDIT: ...if you don't mind swapping "\" for "/" and vice versa Smiley. Apart from char differences, the path definition is the same for many protocols...)

so you get

  • http://www.blah.com/some/file/on/blah
  • file:///home/user (for linux: "/home/user", on the current machine (empty hostname part, hence apparence of a triple-slash))
  • //linuxserver/home/user (netbios encoding of "/home/user" on machine "linuxserver")
  • file://linuxserver/home/user (encoding of "/home/user" on machine "linuxserver")
  • file:///home/user (encoding of "/home/user" on this machine)

malloc will be first against the wall when the revolution comes...
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #6 - Posted 2004-02-02 16:41:20 »

Quote
Besides, what's wrong with setting up a tiny HTTP daemon to farm out the files anyway?


Because I'm lazy and I hate wading through docs to find out how to set up mime types  Grin

Quote
I confirm that a http server is not necessary. Did run my stuff locally without. But I only accessed local drives, no network drives.  


Yes, locally it worked already. Anywhere else it doesn't.
Anyway, I added the jnlp mime type to apache which I had already installed anyway, so it works.
Can anyone recommend a tiny http server I can use for serving webstart apps for just a LAN? No security, performance or scaling requirements whatsoever, just serving a webstart app.

Erik

Offline cfmdobbie

Senior Duke


Medals: 1


Who, me?


« Reply #7 - Posted 2004-02-02 17:02:45 »

The last time I needed a web server quick, I used Abyss:

http://www.aprelium.com/abyssws/index.html

I've not done anything important with it, but it was practically a one-click install, and has a simple web-based config.  If you're after something hassle-free, might be worth a look.

Hellomynameis Charlie Dobbie.
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #8 - Posted 2004-02-02 17:09:40 »

Hey that looks great, thanks  Smiley

Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #9 - Posted 2004-02-03 01:27:47 »

Yea I use Abyss too. It's not secure or whatsoever... but it's nice for intranet stuff or doing some php Smiley

弾幕 ☆ @mahonnaiseblog
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

TehJavaDev (32 views)
2014-10-27 03:28:38

TehJavaDev (26 views)
2014-10-27 03:27:51

DarkCart (41 views)
2014-10-26 19:37:11

Luminem (22 views)
2014-10-26 10:17:50

Luminem (27 views)
2014-10-26 10:14:04

theagentd (33 views)
2014-10-25 15:46:29

Longarmx (61 views)
2014-10-17 03:59:02

Norakomi (58 views)
2014-10-16 15:22:06

Norakomi (47 views)
2014-10-16 15:20:20

lcass (43 views)
2014-10-15 16:18:58
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!