• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

My jnlp didn't work with multipl jars in the ressource section

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please help!

I want to integrate a game editor in my website so i used the web start .This editor is written in java and it is free . when i execute the jnlp file i get the follwing exception :

///////////////////////////////
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(Unknown Source)
at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
//////////////////////////////////////


and this is my jnlp:



////////////////////////////////////////
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for e-Adventure Editor -->
<jnlp
spec="6.0+"
codebase="http://localhost/jnlp/" href="jnlptest.jnlp">
<information>
<title>e-Adventure</title>
<vendor>e-UCM</vendor>
<homepage href=http:”/e-adventure.e-ucm.es/”>
<description>e-Adventure Demo Application</description>
<description kind="short"> The e-Adventure platform is a research project aiming to facilitate the integration of educational games and game-like simulations in educational processes in general and Virtual Learning Environments (VLE) in particular.</description>

<icon kind="shortcut" href="icon.png"/>
<icon kind="splash" href="icon.png"/>
<icon href="icon.png"/>
<offline-allowed/>

</information>

<security>
<all-permissions/>
</security>

<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="eadventure-editor.jar" download="eager" main="true"/>
<jar href="jars/eadventure-common.jar"/>
<jar href="jars/activation.jar"/>
<jar href="jars/cmu_time_awb.jar"/>
<jar href="jars/cmu_us_kal.jar"/>
<jar href="jars/cmudict04.jar"/>
<jar href="jars/cmulex.jar"/>
<jar href="jars/cmutimelex.jar"/>
<jar href="jars/eadventure-comm.jar"/>
<jar href="jars/en_us.jar"/>
<jar href="jars/freetts.jar"/>
<jar href="jars/gnu-regexp-1.1.4.jar"/>
<jar href="jars/jffmpeg-1.1.0.jar"/>
<jar href="jars/jl1.0.jar"/>
<jar href="jars/jmf.jar"/>
<jar href="jars/kafenio-config.jar"/>
<jar href="jars/kafenio-icons.jar"/>
<jar href="jars/kafenio.jar"/>
<jar href="jars/mailapi.jar"/>
<jar href="jars/mp3spi1.9.4.jar"/>
<jar href="jars/plugin.jar"/>
<jar href="jars/smtp.jar"/>
<jar href="jars/tritonus_share.jar"/>
<jar href="jars/truezip-6.jar"/>

</resources>

<application-desc main-class="es.eucm.eadventure.editor.AdventureEditor"/>
</jnlp>
///////////////////////////////

The jar of editor to be executed needs other jars, files and folders .


please hwo can tell me how to integrate all those files in the jnlp and how shall me procede ?

(I signed all the jars with the same certificat)


 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it should work...

sign the jar on which your jar is dependent and prefix j before the new name of jar..

refer to all the dependency jars with j prefix in jnlp...
 
Ranch Hand
Posts: 334
2
Netbeans IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not so sure this has anything to do with the jnlp.

the error:

java.net.ConnectException: Connection refused: connect

Suggests to me that either the server is not running, at least not on the port specified, or a firewall (including Windows software firewall) is interfering with the connection.

Joe
 
olfa mechi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
that is true the server was not running
this problem is solved

thank you for you all
reply
    Bookmark Topic Watch Topic
  • New Topic