Glassfish:下载客户端后的例外情况

时间:2013-01-12 19:58:10

标签: java java-ee network-programming ejb glassfish-3

在借助Remote API开发Java EE Server和Client之后,我尝试从另一个工作站运行此应用程序。然后我遇到了一个问题。从地址“http://myip:8080/EntAppClient”通过网络浏览器下载客户端后,我收到“无法启动应用程序”错误。我使用Glassfish 3.0.1(NetBeans无法安装更新的版本)。我的应用是在该教程的基础上创建的:http://netbeans.org/kb/docs/javaee/entappclient.html

[更新:15 I 2013]

确定。所以感谢Netbeans 7.1.2 - Unable to add glassfish server 3.1.2我设法运行最新版本的glassfish,现在我有了:

错误:无法加载资源:http://myip:8080/___JWSappclient/___system/___dyn/___system_s1as.jnlp

启动文件标签是问题描述的一部分吗?

例外现在是:

com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://myip:8080/___JWSappclient/___system/___dyn/___system_s1as.jnlp
    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
    at com.sun.deploy.net.DownloadEngine._downloadCacheEntry(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(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)

Wrapped Exception

java.io.FileNotFoundException: http://myip:8080/___JWSappclient/___system/___dyn/___system_s1as.jnlp
    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.net.DownloadEngine.actionDownload(Unknown Source)
    at com.sun.deploy.net.DownloadEngine._downloadCacheEntry(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(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.FileNotFoundException: http://myip:8080/___JWSappclient/___system/___dyn/___system_s1as.jnlp
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at java.net.HttpURLConnection.getResponseCode(Unknown Source)
    ... 19 more

1 个答案:

答案 0 :(得分:1)

将您的lib添加到Glassfish我遇到同样的问题:)

你也可以查看here