The solution is good, but ran into the following issues
1. We are using the spec version 6.0 to launch the webstart it resulted in the following exception.
java.lang.RuntimeException: Error reading jnlp file at '
http://localhost:8080/test.jnlp'. Please test launch the URL in your browser.
at org.fest.swing.launcher.NetxJnlpLauncher.start(NetxJnlpLauncher.java:39)
at com.extremenetworks.epicenter.funtionaltest.client.ClientFuntionalTestCase.setUp(ClientFuntionalTestCase.java:87)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: netx.jnlp.LaunchException: Fatal: Read Error: Could not read or parse the JNLP file.
at netx.jnlp.Launcher.toFile(Launcher.java:280)
at netx.jnlp.Launcher.launch(Launcher.java:170)
at org.fest.swing.launcher.NetxJnlpLauncher.start(NetxJnlpLauncher.java:34)
... 12 more
Caused by: netx.jnlp.ParseException: Spec version not supported (supports 1.0)
at netx.jnlp.Parser.<init>(Parser.java:139)
at netx.jnlp.JNLPFile.parse(JNLPFile.java:482)
at netx.jnlp.JNLPFile.<init>(JNLPFile.java:143)
at netx.jnlp.Launcher.toFile(Launcher.java:264)
... 14 more
2. I changed the spec version to 1.0 and managed to launch the webstart application but it throws exception when webstart service look up is made.
BasicService bs = (BasicService)ServiceManager.lookup("javax.jnlp.BasicService");
javax.jnlp.UnavailableServiceException: uninitialized
at javax.jnlp.ServiceManager.lookup(ServiceManager.java:44)
Gino