Hello to all.
I am totally desperate and confused so you are my hope to have some sleep tonight. I jave simple page in Seam (JBOSS) and I am loading an applet into.
I have JNLP file like this
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="" href="">
<information>
<title>Game Client</title>
<vendor>Szabo</vendor>
</information>
<resources>
<!-- Application Resources -->
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se" />
<jar href="/client/MmorpgClient.jar" main="true" />
</resources>
<applet-desc
name="Game Client"
main-class="cz.mmorpg.client.ClientMain"
width="1024"
height="768">
</applet-desc>
<update check="background"/>
</jnlp>
and then page like this
<s:div styleClass="centerAligned">
<script src="http://www.java.com/js/deployJava.js"></script>
<script>
var attributes = { code:'cz.mmorpg.client.ClientMain', width:1024, height:768} ;
var parameters = {jnlp_href: 'gameClient.jnlp'} ;
deployJava.runApplet(attributes, parameters, '1.6');
</script>
</s:div>
Then I have appropriate .jar archive in my web/client directory and problem is that browser cannot load that applet and I see in console this error
Unable to load resource: http://localhost/client/MmorpgClient.jar BUT if I paste this URL into browser then server returns me the correct jar archive.
Another error in console says that confusing info : java.util.zip.ZipException: invalid entry size (expected 1358954496 but got 76 bytes).
It seems to be a problem .. but I really dont know what could it mean because I think that I have done everything well because I can download jar file from URL which is mentioned in the exception as a source of my applet
Comments