Java Web启动APP中的CDI和WELD(java SE)

问题描述:

我试图在Java-web-start应用程序中使用CDI,但是在类加载时遇到问题。看起来FileSystemURLHandler会将网络启动缓存中的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死路一条?为时已晚,此问题已在焊接版本2.2.0.Alpha1中修复。

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