CDI and WELD in java-web-start APP (java se)

最后都变了- 提交于 2019-12-13 04:12:18

问题


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

Which is the same as: https://issues.jboss.org/browse/WELD-1040

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

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


回答1:


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



来源:https://stackoverflow.com/questions/13159960/cdi-and-weld-in-java-web-start-app-java-se

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!