Deploying .war containing JavaFX .jar to GlassFish NoClassDefFoundError -
my javafx application requires class in jar file.
both deployed part of war file
the javafx jar not finding my-xxx.class contained in web-inf/lib/myjavafxclient.jar
the contents of war file are:
images/ meta-inf/ meta-inf/manifest.mf web-inf/ web-inf/lib/ web-inf/lib/bin/glass.dll web-inf/lib/myjavafxclient.jar ( jar javafx app requires ) web-inf/sun-web.xml web-inf/web.xml index.jsp index.html myjavafxapp.jnlp myjavafxapp.jar (my javafx app)
jnlp:
<?xml version="1.0" encoding="utf-8"?> <jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="myjavafxapp.jnlp"> <information> <title>app: testdriver</title> <vendor>demo</vendor> <description>javafx application test client</description> <homepage href="http://localhost:8080/testdriver/"/> <offline-allowed/> </information> <security> <all-permissions/> </security> <resources> <jfx:javafx-runtime version="2.2+" href="http://javadl.sun.com/webapps/download/getfile/javafx-latest/windows- i586/javafx2.jnlp"/> </resources> <resources> <j2se version="1.6+" java-vm-args="-verbose:class href="http://java.sun.com/products/autodl/j2se"/> <property name="javafx.verbose" value="true"/> <property name="java.library.path" value="web-inf/lib/bin"/> <jar href="myjavafxapp.jar" size="318607" download="eager" /> </resources> <applet-desc width="800" height="600" main-class="com.javafx.main.nojavafxfallback" name="myjavafxapp" > <param name="requiredfxversion" value="2.2+"/> </applet-desc> <jfx:javafx-desc width="800" height="600" main-class="ui.client.myjavafxmain" name="myjavafxapp" /> <update check="background"/> </jnlp>
glassfish javafx
No comments:
Post a Comment