GlassFish和Application Client Web Start:无效的Http响应

时间:2013-10-04 21:13:32

标签: java glassfish java-web-start application-client

我使用this教程创建了企业应用程序和企业应用程序客户端。 两者都部署到放置在我本地网络中的远程GlassFish服务器。当我尝试使用Java Web Start运行Application Client时 javaws http://192.168.0.234:8080/ApplicationClient1

,我在JWS窗口中看到一个错误:

java.io.IOException: Invalid Http response
at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.checkUpdateAvailable(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.isUpdateAvailable(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getJreResource(Unknown Source)
at com.sun.javaws.LaunchDownload._downloadExtensionsHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadExtensionsHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadExtensions(Unknown Source)
at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Invalid Http response
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
... 19 more

JaNeLA JNLP分析仪显示一个错误:

Illegal character in path at index 50:
http://192.168.0.234:8080/___JWSappclient/___app/${appclient.information.homepage.filepath}

客户端上的Java版本是7u40,GlassFish版本是4,服务器上的Java版本是7u10。

任何帮助将不胜感激

1 个答案:

答案 0 :(得分:0)

@安德鲁 - 汤普森 谢谢你的帮助,但我终于明白了。

我已经失去了3天的生命 - Netbeans在src / conf中生成beans.xml文件。当我删除此文件并使用相同的内容再次创建它时(当然是通过Netbeans),它可以工作!测试了很少的新项目。