Signing JNLP file with dynamic arguments - java-web-start

I am signing a JNLP file having APPLICATION.JNLP in jar file under folder JNLP-INF. My APPLICATION.JNLP placed in the jar looks as shown below
<jnlp spec="1.0" codebase="https://www.example.com:7008/abc">
<information>
<title>XYZ</title>
<vendor>XYZ</vendor>
<description>XYZ</description>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.6+" />
<jar href="abc.jar" />
</resources>
<application-desc main-class="tempclass.Class1">
<argument>*</argument>
<argument>*</argument>
<argument>*</argument>
<argument>*</argument>
<argument>*</argument>
<argument>*</argument>
<argument>*</argument>
</application-desc>
</jnlp>
My generated JNLP file from jsp is shown below
<jnlp spec="1.0" codebase="https://www.example.com:7008/abc">
<information>
<title>XYZ</title>
<vendor>XYZ</vendor>
<description>XYZ</description>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.6+" />
<jar href="abc.jar" />
</resources>
<application-desc main-class="tempclass.Class1">
<argument>1</argument>
<argument>2</argument>
<argument>3</argument>
<argument>4</argument>
<argument>5</argument>
<argument>6</argument>
<argument>7</argument>
</application-desc>
</jnlp>
The issue I am facing is on using this APPLICATION.JNLP I am getting "Signed JNLP file do not match with the downloaded jnlp file". On adding exact argument parameters it works. I want to use dynamic launching parameters. What I am doing wrong?

Since Java 8 Update 161 you can define secure arguments within your JNLP.
Insert the property inside the resources element
<property name="jnlp.secure.argument.<argument-name>" value="true"/>
You can also use a wildcard, so that all arguments are marked secure
<property name="jnlp.secure.argument.*" value="true"/>

If I read the doc correctly, the JNLP template in the signed .jar file should be named JNLP-INF/APPLICATION_TEMPLATE.JNLP
JNLP-INF/APPLICATION.JNLP is for the no dynamic case.

Related

Migration to JBoss7.2eap from jboss5.1.2eap : java.lang.NoClassDefFoundError: Lorg/apache/commons/dbcp/BasicDataSource

I have migrated my application from jboss5.1.2-eap to jboss-7.2-eapand java6 to java8 but after migration it is starting giving me exception while starting the server.
Caused by: java.lang.NoClassDefFoundError: Lorg/apache/commons/dbcp/BasicDataSource
we have a datasource.xml file present in the classpath of the server, having the following line of code.
<bean id="beanName" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="oracle.jdbc.OracleDriver"/>
<property name="maxActive" value="10"/>
Also we have commons-dbcp-1.2.2.jar present in the classpath but it is not working for jboss-7.2-eap.
Now I am not sure if commons-dbcp-1.2.2.jar is supported by jboss7-eap. as it is present in the classpath of the application(present in the loaded module), but still spring is not able to create the bean for datasource.
I suppose that datasource in Jboss EAP should be placed in standalone.xml configuration file and looks like here:
<datasource jndi-name="java:jboss/datasources/Altis" pool-name="Altis" enabled="true">
<connection-url>jdbc:oracle:thin:#255.255.255.255:1521:sid</connection-url>
<driver-class>oracle.jdbc.OracleDriver</driver-class>
<driver>oracle</driver>
<security>
<user-name>username</user-name>
<password>passwd</password>
</security>
</datasource>
Given module information in the jboss-deployment-structure.xml inside the WEB-INF directory of the war file.
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="com.oracle.sql" export="true"/>
<module name="org.apache.commons.dbcp" export="true"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
Also the module directories should also follow the same naming convention as per the availability of your .class files inside the jar, like in my case I have created module org.apache.commons.dbcp as while opening commons-dbcp-1.2.2.jar file, .class files are present inside org/apache/commons/dbcp folder.
Note: In case of multiple modules, you need to identify there dependency if a module is dependent on other and that information will be given inside module.xml file. like
<module xmlns="urn:jboss:module:1.1" name="org.apache.commons.dbcp">
<resources>
<resource-root path="commons-dbcp-1.2.2.jar"/>
</resources>
<dependencies>
<module name="org.apache.commons.pool"/>
<module name="com.oracle.jdbc.driver"/>
</dependencies>
</module>

Config transformation special situation

I have the following config file
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<settings>
<setting name="Demo" value="true"/>
<setting name="Demo2" value="true"/>
</settings>
</sitecore>
</configuration>
And I want it transformed into this
<configuration xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/">
<sitecore role:require="Standalone OR ContentDelivery OR ContentManagement">
<settings>
<setting name="Demo" value="false"/>
<setting name="Demo2" value="true"/>
</settings>
</sitecore>
</configuration>
I have tried to use this https://fatantelopetester.apphb.com/ and obtained the following transformation config file:
<?xml version="1.0" encoding="utf-16"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:set="http://www.sitecore.net/xmlconfig/set/" xdt:Transform="SetAttributes(xmlns:role,xmlns:set)" xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<sitecore role:require="Standalone OR ContentDelivery OR ContentManagement" xdt:Transform="SetAttributes(role:require)">
<settings>
<setting name="Demo" xdt:Locator="Match(name)" value="false" xdt:Transform="SetAttributes(value)" />
</settings>
</sitecore>
</configuration>
But apparently this transformation is not good enough and not working.
Any ideas how to make it work, in conditions when under
<sitecore>
I have lots of other setting? (Here I've added just a sample)
I just ran into a similar issue myself and found a solution that worked for me. I'm not using SlowCheetah but I am using a tool that uses XDT under the hood.
The XDT would fail around xdt:Transform="SetAttributes(role:require)" because the namespace wasn't found. However, using xdt:Transform="SetAttributes" didn't seem to have the same problem and was able to set the attribute just fine.

Eclipse RCP 4 java web start - Nothing happens after equinox starts up

I'm trying to get the Eclipse RCP application I developed to work with java web start. I've followed several guides and came up with a setup that should work (apparently not since I'm making this post).
My web start structure looks like this: http://i.imgur.com/QJBy90g.png (Cant post images because of my reputation)
The plugins directory contains all my jars, and the features directory contains all my jnlp files. APPLICATION.JNLP is the jnlp file I use start everything up.
Content of APPLICATION.JNLP:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="file://localhost/home/imas/Desktop/POWER/" href="APPLICATION.JNLP" >
<information>
<title>Shipping app - ws</title>
<vendor>Imas</vendor>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<application-desc main-class="org.eclipse.equinox.launcher.WebStartMain">
<argument>-clearPersistedState</argument>
<argument>-consoleLog</argument>
<argument>-noexit</argument>
</application-desc>
<resources>
<j2se version="1.7+"/>
<jar href="plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar"/>
<extension name="wrapper feature" href="features/com.vangenechten.shipping.wrapperfeature_1.0.0.201603310945.jnlp" />
<!-- OSGI setup -->
<property name="osgi.instance.area" value="#user.home/Desktop/POWER/configuration"/>
<property name="osgi.configuration.area" value="#user.home/Desktop/POWER/configuration"/>
<property name="eclipse.application"/>
<property name="osgi.debug" value="true"/>
<property name="osgi.clean" value="true"/>
<property name="eclipse.application" value="org.eclipse.e4.ui.workbench.swt.E4Application"/>
<property name="osgi.bundles.defaultStartLevel" value="4"/>
<property name="eclipse.product" value="com.vangenechten.shipping.product"/>
<property name="osgi.console" value=""/>
<property name="osgi.bundles" value="org.eclipse.core.runtime#2:start,org.eclipse.equinox.event#3:start,org.eclipse.equinox.ds#3:start"/>
</resources>
Content of wrapper feature jnlp:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="file://localhost/home/imas/Desktop/POWER/">
<information>
<title>Wrapperfeature</title>
<vendor>VANGENECHTEN</vendor>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<component-desc/>
<resources>
<j2se version="1.7+" />
</resources>
<resources>
<extension href="features/com.vangenechten.shipping.feature_1.0.0.201603310945.jnlp" />
<jar href="plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar"/>
</resources>
Content of the feature jnlp:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="file://localhost/home/imas/Desktop/POWER/">
<information>
<title>Feature</title>
<vendor>VANGENECHTEN</vendor>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<component-desc/>
<resources>
<j2se version="1.7+" />
</resources>
<resources>
<extension href="features/org.eclipse.rcp_4.5.1.v20150904-0015.jnlp" />
<jar href="plugins/com.vangenechten.shipping_1.0.0.201603291126.jar"/>
</resources>
Content of rcp jnlp:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="file://localhost/home/imas/Desktop/POWER/">
<information>
<title>Eclipse RCP</title>
<vendor>Eclipse.org</vendor>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<component-desc/>
<resources>
<j2se version="1.7+" />
</resources>
<resources>
<extension href="features/org.eclipse.e4.rcp_1.4.0.v20150903-1804.jnlp" />
<jar href="plugins/org.eclipse.help_3.6.0.v20130326-1254.jar"/>
<jar href="plugins/org.eclipse.ui_3.107.0.v20150507-1945.jar"/>
<jar href="plugins/org.eclipse.ui.workbench_3.107.0.v20150825-2206.jar"/>
<jar href="plugins/org.eclipse.update.configurator_3.3.300.v20140518-1928.jar"/>
<jar href="plugins/org.eclipse.rcp_4.5.1.v20150904-0015.jar"/>
</resources>
<resources os="Mac">
<jar href="plugins/org.eclipse.ui.cocoa_1.1.100.v20150315-1253.jar"/>
</resources>
Content of rcp 4 jnlp:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="file://localhost/home/imas/Desktop/POWER/">
<information>
<title>Eclipse e4 Rich Client Platform</title>
<vendor>Eclipse.org</vendor>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<component-desc/>
<resources>
<j2se version="1.7+" />
</resources>
<resources>
<jar href="plugins/org.eclipse.e4.core.services_2.0.0.v20150403-1912.jar"/>
<jar href="plugins/org.eclipse.e4.ui.workbench.swt_0.13.0.v20150504-0621.jar"/>
<jar href="plugins/org.eclipse.e4.core.commands_0.11.0.v20150422-0725.jar"/>
<jar href="plugins/org.eclipse.e4.ui.bindings_0.11.0.v20150422-0725.jar"/>
<jar href="plugins/org.eclipse.e4.ui.model.workbench_1.1.100.v20150407-1430.jar"/>
<jar href="plugins/org.eclipse.e4.ui.services_1.2.0.v20150422-0725.jar"/>
<jar href="plugins/org.eclipse.e4.ui.workbench.renderers.swt_0.13.0.v20150901-1347.jar"/>
<jar href="plugins/org.eclipse.e4.ui.workbench_1.3.0.v20150531-1948.jar"/>
<jar href="plugins/org.eclipse.e4.ui.css.core_0.11.0.v20150511-1937.jar"/>
<jar href="plugins/org.eclipse.e4.ui.css.swt_0.12.0.v20150511-1003.jar"/>
<jar href="plugins/org.apache.batik.css_1.7.0.v201011041433.jar"/>
<jar href="plugins/org.w3c.css.sac_1.3.1.v200903091627.jar"/>
<jar href="plugins/org.apache.batik.util_1.7.0.v201011041433.jar"/>
<jar href="plugins/org.w3c.dom.svg_1.1.0.v201011041433.jar"/>
<jar href="plugins/org.w3c.dom.smil_1.0.1.v200903091627.jar"/>
<jar href="plugins/org.w3c.dom.events_3.0.0.draft20060413_v201105210656.jar"/>
<jar href="plugins/javax.inject_1.0.0.v20091030.jar"/>
<jar href="plugins/javax.annotation_1.2.0.v201401042248.jar"/>
<jar href="plugins/org.eclipse.e4.core.di_1.5.0.v20150421-2214.jar"/>
<jar href="plugins/org.eclipse.e4.core.contexts_1.4.0.v20150828-0818.jar"/>
<jar href="plugins/org.apache.batik.util.gui_1.7.0.v200903091627.jar"/>
<jar href="plugins/javax.xml_1.3.4.v201005080400.jar"/>
<jar href="plugins/org.eclipse.e4.core.di.extensions_0.13.0.v20150421-2214.jar"/>
<jar href="plugins/org.eclipse.e4.ui.css.swt.theme_0.10.0.v20150422-0725.jar"/>
<jar href="plugins/org.eclipse.e4.ui.di_1.1.0.v20150422-0725.jar"/>
<jar href="plugins/org.eclipse.e4.ui.widgets_1.1.0.v20150427-1751.jar"/>
</resources>
<resources os="Mac">
<jar href="plugins/org.eclipse.e4.ui.workbench.renderers.swt.cocoa_0.11.300.v20150507-1945.jar"/>
</resources>
<resources>
<jar href="plugins/org.eclipse.equinox.common_3.7.0.v20150402-1709.jar"/>
<jar href="plugins/org.eclipse.equinox.ds_1.4.300.v20150423-1356.jar"/>
<jar href="plugins/org.eclipse.equinox.event_1.3.100.v20140115-1647.jar"/>
<jar href="plugins/org.eclipse.core.commands_3.7.0.v20150422-0725.jar"/>
<jar href="plugins/org.eclipse.core.contenttype_3.5.0.v20150421-2214.jar"/>
<jar href="plugins/org.eclipse.core.databinding_1.5.0.v20150422-0725.jar"/>
<jar href="plugins/org.eclipse.core.databinding.beans_1.3.0.v20150422-0725.jar"/>
<jar href="plugins/org.eclipse.core.databinding.observable_1.5.0.v20150422-0725.jar"/>
<jar href="plugins/org.eclipse.core.databinding.property_1.5.0.v20150422-0725.jar"/>
<jar href="plugins/org.eclipse.core.expressions_3.5.0.v20150421-2214.jar"/>
<jar href="plugins/org.eclipse.core.jobs_3.7.0.v20150330-2103.jar"/>
<jar href="plugins/org.eclipse.core.runtime_3.11.1.v20150903-1804.jar"/>
<jar href="plugins/org.eclipse.equinox.app_1.3.300.v20150423-1356.jar"/>
<jar href="plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar"/>
<jar href="plugins/com.ibm.icu_54.1.1.v201501272100.jar"/>
<jar href="plugins/org.eclipse.equinox.preferences_3.5.300.v20150408-1437.jar"/>
<jar href="plugins/org.eclipse.equinox.registry_3.6.0.v20150318-1503.jar"/>
<jar href="plugins/org.eclipse.equinox.simpleconfigurator_1.1.100.v20150423-1455.jar"/>
<jar href="plugins/org.eclipse.osgi_3.10.101.v20150820-1432.jar"/>
<jar href="plugins/org.eclipse.osgi.compatibility.state_1.0.100.v20150402-1551.jar"/>
<jar href="plugins/org.eclipse.osgi.services_3.5.0.v20150519-2006.jar"/>
</resources>
<resources os="Solaris" arch="sparc">
<jar href="plugins/org.eclipse.equinox.launcher.gtk.solaris.sparc_1.1.300.v20150602-1417.jar"/>
</resources>
<resources os="Solaris" arch="x86">
<jar href="plugins/org.eclipse.equinox.launcher.gtk.solaris.x86_1.1.300.v20150602-1417.jar"/>
</resources>
<resources os="Mac" arch="x86_64">
<jar href="plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.300.v20150602-1417.jar"/>
</resources>
<resources os="Linux" arch="ppc">
<jar href="plugins/org.eclipse.equinox.launcher.gtk.linux.ppc_1.1.300.v20150602-1417.jar"/>
</resources>
<resources os="Linux" arch="ppc64">
<jar href="plugins/org.eclipse.equinox.launcher.gtk.linux.ppc64_1.0.300.v20150602-1417.jar"/>
</resources>
<resources os="Linux" arch="ppc64le">
<jar href="plugins/org.eclipse.equinox.launcher.gtk.linux.ppc64le_1.0.300.v20150602-1417.jar"/>
</resources>
<resources os="Linux" arch="x86">
<jar href="plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.300.v20150602-1417.jar"/>
</resources>
<resources os="Linux" arch="s390x">
<jar href="plugins/org.eclipse.equinox.launcher.gtk.linux.s390x_1.1.300.v20150602-1417.jar"/>
</resources>
<resources os="Linux" arch="s390">
<jar href="plugins/org.eclipse.equinox.launcher.gtk.linux.s390_1.1.300.v20150602-1417.jar"/>
</resources>
<resources os="Linux" arch="x86_64">
<jar href="plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417.jar"/>
</resources>
<resources os="AIX" arch="ppc">
<jar href="plugins/org.eclipse.equinox.launcher.gtk.aix.ppc_1.1.200.v20150602-1417.jar"/>
</resources>
<resources os="AIX" arch="ppc64">
<jar href="plugins/org.eclipse.equinox.launcher.gtk.aix.ppc64_1.1.200.v20150602-1417.jar"/>
</resources>
<resources os="HP-UX" arch="ia64">
<jar href="plugins/org.eclipse.equinox.launcher.gtk.hpux.ia64_1.0.200.v20150602-1417.jar"/>
</resources>
<resources os="Windows" arch="x86">
<jar href="plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.300.v20150602-1417.jar"/>
</resources>
<resources os="Windows" arch="x86_64">
<jar href="plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417.jar"/>
</resources>
<resources>
<jar href="plugins/org.eclipse.swt_3.104.1.v20150825-0743.jar"/>
<jar href="plugins/org.eclipse.swt.gtk.linux.x86_3.104.1.v20150825-0743.jar"/>
</resources>
<resources os="Windows" arch="x86">
<jar href="plugins/org.eclipse.swt.win32.win32.x86_3.104.1.v20150825-0743.jar"/>
</resources>
<resources os="Windows" arch="x86_64">
<jar href="plugins/org.eclipse.swt.win32.win32.x86_64_3.104.1.v20150825-0743.jar"/>
</resources>
<resources os="Linux" arch="x86">
<jar href="plugins/org.eclipse.swt.gtk.linux.x86_3.104.1.v20150825-0743.jar"/>
</resources>
<resources os="Linux" arch="s390x">
<jar href="plugins/org.eclipse.swt.gtk.linux.s390x_3.104.1.v20150825-0743.jar"/>
</resources>
<resources os="Linux" arch="s390">
<jar href="plugins/org.eclipse.swt.gtk.linux.s390_3.104.1.v20150825-0743.jar"/>
</resources>
<resources os="Solaris" arch="sparc">
<jar href="plugins/org.eclipse.swt.gtk.solaris.sparc_3.104.1.v20150825-0743.jar"/>
</resources>
<resources os="Solaris" arch="x86">
<jar href="plugins/org.eclipse.swt.gtk.solaris.x86_3.104.1.v20150825-0743.jar"/>
</resources>
<resources os="Linux" arch="ppc">
<jar href="plugins/org.eclipse.swt.gtk.linux.ppc_3.104.1.v20150825-0743.jar"/>
</resources>
<resources os="Linux" arch="ppc64">
<jar href="plugins/org.eclipse.swt.gtk.linux.ppc64_3.104.1.v20150825-0743.jar"/>
</resources>
<resources os="Linux" arch="ppc64le">
<jar href="plugins/org.eclipse.swt.gtk.linux.ppc64le_3.104.1.v20150825-0743.jar"/>
</resources>
<resources os="Linux" arch="x86_64">
<jar href="plugins/org.eclipse.swt.gtk.linux.x86_64_3.104.1.v20150825-0743.jar"/>
</resources>
<resources os="Mac" arch="x86_64">
<jar href="plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.104.1.v20150825-0743.jar"/>
</resources>
<resources os="AIX" arch="ppc">
<jar href="plugins/org.eclipse.swt.gtk.aix.ppc_3.104.1.v20150825-0743.jar"/>
</resources>
<resources os="AIX" arch="ppc64">
<jar href="plugins/org.eclipse.swt.gtk.aix.ppc64_3.104.1.v20150825-0743.jar"/>
</resources>
<resources os="HP-UX" arch="ia64">
<jar href="plugins/org.eclipse.swt.gtk.hpux.ia64_3.104.1.v20150825-0743.jar"/>
</resources>
<resources>
<jar href="plugins/org.eclipse.equinox.util_1.0.500.v20130404-1337.jar"/>
<jar href="plugins/org.eclipse.jface_3.11.0.v20150602-1400.jar"/>
<jar href="plugins/org.eclipse.jface.databinding_1.7.0.v20150406-2148.jar"/>
<jar href="plugins/org.eclipse.e4.ui.workbench3_0.13.0.v20150422-0725.jar"/>
<jar href="plugins/org.apache.felix.gogo.command_0.10.0.v201209301215.jar"/>
<jar href="plugins/org.apache.felix.gogo.runtime_0.10.0.v201209301036.jar"/>
<jar href="plugins/org.apache.felix.gogo.shell_0.10.0.v201212101605.jar"/>
<jar href="plugins/org.eclipse.equinox.console_1.1.100.v20141023-1406.jar"/>
<jar href="plugins/org.eclipse.e4.ui.workbench.addons.swt_1.2.0.v20150512-1414.jar"/>
<jar href="plugins/org.eclipse.equinox.bidi_0.10.0.v20130327-1442.jar"/>
<jar href="plugins/org.eclipse.e4.ui.dialogs_1.0.0.v20150513-0856.jar"/>
<jar href="plugins/org.apache.commons.jxpath_1.3.0.v200911051830.jar"/>
<jar href="plugins/org.eclipse.e4.emf.xpath_0.1.100.v20150513-0856.jar"/>
<jar href="plugins/org.eclipse.e4.core.di.annotations_1.4.0.v20150528-1451.jar"/>
<jar href="plugins/org.eclipse.emf.ecore_2.11.1.v20150805-0538.jar"/>
<jar href="plugins/org.eclipse.emf.common_2.11.0.v20150805-0538.jar"/>
<jar href="plugins/org.eclipse.emf.ecore.change_2.11.0.v20150805-0538.jar"/>
<jar href="plugins/org.eclipse.emf.ecore.xmi_2.11.1.v20150805-0538.jar"/>
</resources>
<resources os="gtk">
<jar href="plugins/org.eclipse.e4.ui.swt.gtk_1.0.1.v20150708-1529.jar"/>
</resources>
NOTE: I put the gtk linux x 86 version of org.eclipse.swt directly as a resource (without os="Linux" arch="x86") because I would receive no class def found errors. For some reason web start wouldn't load the jar, so I added it directly (Shouldn't be an issue in production, since the application will run on raspberry pi's).
Now when I start javaws with APPLICATION.JNLP I get no error, but the application doesn't start. Below a screenshot of the javaws console
Screenshot of console -> http://i.imgur.com/J0t2zCv.png
NOTE Console doesn't say anything about an error. Normally when there is an error it is showed in the console and written to a log file.
After running the jnlp file, the following folders are added to the configuration folder -> org.eclipse.runtime, org.eclipse.equinox.rcp, org.eclipse.osgi and org.eclipse.update
Any help would be appreciated!

Ant stops starting in Eclipse after editing ant file

When I edit my ant file, eclipse doesn't execute the ant correctly (does nothing). The file was auto generated from exporting a runnable jar file and I edited it afterwards. Here the ant file:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project Elevox">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<!--define folder properties-->
<property name="dir.buildfile" value="."/>
<property name="dir.workspace" value="${dir.buildfile}/.."/>
<property name="dir.jarfile" value="C:/Users/faust/Desktop/Elevox"/>
<property name="dir.target" value="C:/Users/faust/Desktop/Elevox/elevox"/>
<target name="create_run_jar">
<copydir src="${dir.buildfile}/image" dest="${dir.target}/image"/>
<copydir src="${dir.buildfile}/models" dest="${dir.target}/models"/>
<copydir src="${dir.buildfile}/music" dest="${dir.target}/music"/>
<copydir src="${dir.buildfile}/shader" dest="${dir.target}/shader"/>
<jar destfile="${dir.jarfile}/Elevox.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="main.Elevox"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="${dir.buildfile}/bin"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/disruptor.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/jogg-0.0.7.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/jorbis-0.0.15.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/lwjgl_util.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/lwjgl.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/PNGDecoder.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/slick-util.jar"/>
</jar>
<exec executable="cmd">
<arg value="/c"/>
<arg value="${dir.buildfile}/bundle.bat"/>
<arg value="-p"/>
</exec>
</target>
</project>
Did I make a mistake?
I solved it. It was a classpath error of a specific jar file, which was not well added to the classpath (path contained %20). After deleting it from the classpath and adding it manually again it worked.

How to combine 3 steps in ant build.xml into one step for Netbeans to generate a signed jar to run in web start?

My web start app ran fine, but I realized there is a lib dir I need to copy into the tomcat ROOT dir in order for my web start app to work, but I want to just combine all my jars into one big jar so I just need to copy one file each time I update the project. I searched on the web and found a solution to combine all jars into one, with the following step, which was mentioned at : http://arunasujith.blogspot.com/2011/08/how-to-build-fat-jar-using-netbeans.html
I rewrote my build.xml to look like this :
<project name="Test_Tool" default="default" basedir=".">
<description>Builds, tests, and runs the project Test_Tool.</description>
<import file="nbproject/build-impl.xml"/>
<target name="package-into-one-jar" depends="jar">
<property name="store.jar.name" value="Test_Tool"/>
<!-- don't edit below this line -->
<property name="store.dir" value="dist"/>
<property name="store.jar" value="${store.dir}/${store.jar.name}.jar"/>
<echo message="Packaging ${application.title} into a single JAR at ${store.jar}"/>
<jar destfile="${store.dir}/temp_final.jar" filesetmanifest="skip">
<zipgroupfileset dir="dist" includes="*.jar"/>
<zipgroupfileset dir="dist/lib" includes="*.jar"/>
<manifest><attribute name="Main-Class" value="${main.class}"/></manifest>
</jar>
<zip destfile="${store.jar}"><zipfileset src="${store.dir}/temp_final.jar" excludes="META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA"/></zip>
<delete file="${store.dir}/temp_final.jar"/>
<delete dir="${store.dir}/lib"/>
</target>
</project>
But when I ran it, it said there are some files unsigned, and can't run from html page, so I did some more search and found a way to sign the jar file, which is mentioned at : http://www.asjava.com/ant/how-do-i-sign-jar-files-in-ant/
So I've come up with an script [ sign_jar.xml ] look like this :
<?xml version="1.0"?>
<project name="ant to create keystore and sign jars" default="signjars" basedir=".">
<tstamp/>
<property name="build.output.dir" value="C:/Dir_Test_Tool/dist"/>
<property name="build.classes.dir" value="C:/Dir_Test_Tool/dist"/>
<property name="verisign.key.store" value="${build.output.dir}/.keystore"/>
<property name="verisign.key.storepass" value="asjava.com"/>
<property name="verisign.key.alias" value="asjava"/>
<property name="verisign.key.pass" value="asjava.com"/>
<target name="signjars">
<mkdir dir="${build.output.dir}"/>
<genkey alias="${verisign.key.alias}" verbose="true" storepass="${verisign.key.storepass}"
keypass="${verisign.key.pass}" validity="365" keystore="${verisign.key.store}">
<dname>
<param name="CN" value="AsJava.com Group"/>
<param name="OU" value="Jim"/>
<param name="O" value="AsJava.com"/>
<param name="C" value="US"/>
</dname>
</genkey>
<signjar jar="${build.classes.dir}/Test_Tool.jar"
signedjar="${build.output.dir}/Test_Tool.jar"
alias="${verisign.key.alias}"
storepass="${verisign.key.storepass}"
keystore="${verisign.key.store}"
keypass="${verisign.key.pass}"/>
</target>
</project>
After all the changes, I needed to do the following to get the signed big jar file :
<1> Build my project in Netbeans
<2> In files view of the project right click build.xml file and then select Runtarget >> Other Targets >> package-into-one-jar
<3> In files view of the project right click sign_jar.xml file and then select Runtarget >> signjars
Now it works as I wished : One big jar that is signed.
But that's 3 steps in order to achieve this, there must be an easier way, why can't it be done in one step ? So I combined the above files into one, which looked like this :
<?xml version="1.0" encoding="UTF-8"?>
<project name="Test_Tool" default="default" basedir=".">
<description>Builds, tests, and runs the project Test_Tool.</description>
<import file="nbproject/build-impl.xml"/>
<target name="package-into-one-jar" depends="jar">
<property name="store.jar.name" value="Test_Tool"/>
<property name="store.dir" value="dist"/>
<property name="store.jar" value="${store.dir}/${store.jar.name}.jar"/>
<echo message="Packaging ${application.title} into a single JAR at ${store.jar}"/>
<jar destfile="${store.dir}/temp_final.jar" filesetmanifest="skip">
<zipgroupfileset dir="dist" includes="*.jar"/>
<zipgroupfileset dir="dist/lib" includes="*.jar"/>
<manifest><attribute name="Main-Class" value="${main.class}"/></manifest>
</jar>
<zip destfile="${store.jar}"><zipfileset src="${store.dir}/temp_final.jar" excludes="META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA"/></zip>
<delete file="${store.dir}/temp_final.jar"/>
<delete dir="${store.dir}/lib"/>
</target>
<property name="build.output.dir" value="c:/asjava"/>
<property name="build.classes.dir" value="C:/Dir_Test_Tool/dist"/>
<property name="verisign.key.store" value="${build.output.dir}/.keystore"/>
<property name="verisign.key.storepass" value="asjava.com"/>
<property name="verisign.key.alias" value="asjava"/>
<property name="verisign.key.pass" value="asjava.com"/>
<target name="signjars">
<mkdir dir="${build.output.dir}"/>
<genkey alias="${verisign.key.alias}" verbose="true" storepass="${verisign.key.storepass}"
keypass="${verisign.key.pass}" validity="365" keystore="${verisign.key.store}">
<dname>
<param name="CN" value="AsJava.com Group"/>
<param name="OU" value="Jim"/>
<param name="O" value="AsJava.com"/>
<param name="C" value="US"/>
</dname>
</genkey>
<signjar jar="${build.classes.dir}/Test_Tool.jar"
signedjar="${build.output.dir}/Test_Tool.jar"
alias="${verisign.key.alias}"
storepass="${verisign.key.storepass}"
keystore="${verisign.key.store}"
keypass="${verisign.key.pass}"/>
</target>
</project>
But the strange thing is : now it copies all the compiled directories under src into dist, if I delete them the result big jar won't run, I don't know ant good enough to correctly combine the above 3 steps into one, and don't know Netbeans enough to solve this problem, can someone help ?