java-web-start APP 中的 CDI 和 WELD (java se) [英] CDI and WELD in java-web-start APP (java se)

查看:31
本文介绍了java-web-start APP 中的 CDI 和 WELD (java se)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Java-web-start 应用程序中使用 CDI,但卡在类加载上.看起来 FileSystemURLHandler 将 web-start 缓存中的 URL 视为文件.

Im trying to use CDI in a Java-web-start app but get stuck at classloading. Looks like FileSystemURLHandler treats the URLs in the web-start cache as files.

org.jboss.weld.environment.se.discovery.url.FileSystemURLHandler - could not read entries
java.io.FileNotFoundException: http:\localhost:8080\myapp.jar

同:https://issues.jboss.org/browse/WELD-1040

我在 jira 和 git-hub 方面的有限技能表明有人开始研究它,但它没有发布:https://github.com/agattiker/core/blob/9eabd09f0b8e80e48e3270414e2f68ebc1016b70/environments/se/core/src/main/java/org/jboss/weld/environment/se/discovery/url/FileSystemURLHandler.java

My limited skills in jira and git-hub suggests that someone started working on it, but it didnt make it into a release: https://github.com/agattiker/core/blob/9eabd09f0b8e80e48e3270414e2f68ebc1016b70/environments/se/core/src/main/java/org/jboss/weld/environment/se/discovery/url/FileSystemURLHandler.java

所以我的问题是是否有人解决了这个问题,或者 jws 上的 cdi+weld 是否已经死路一条?

So my question is if anyone got around this problem or if cdi+weld on jws is a dead end?

推荐答案

希望现在还不算太晚,该问题已在 2.2.0.Alpha1 版本中修复.

I hope it is not too late, the issue was fixed in the weld version 2.2.0.Alpha1.

这篇关于java-web-start APP 中的 CDI 和 WELD (java se)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆