Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Cannot Reproduce
-
2016.11.0, 2016.12.1, 2017.1.1
-
None
-
None
-
2017-Feb-B
-
Description
When running in IDE (Eclipse Neon 1a) the main project is unable to resolve acme.core.MyInterface the class which acme.server.MyClass implements within the core library:
Unable to find source-code formatter for language: plain. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
2017-01-11 18:30:49,674 INFO [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 1) WELD-000119: Not generating any bean definitions from acme.server.MyObject because of underlying class loading error: Type Failed to link acme.server.MyObject (Module "deployment.7bbf7e74-3d63-4f9c-ac0e-c7359ada48c0.war:main" from Service Module Loader): acme.core.MyInterface not found. If this is unexpected, enable DEBUG logging to see the full error. 2017-01-11 18:30:49,674 DEBUG [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 1) Catching: org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.NoClassDefFoundError: Failed to link acme/server/MyObject (Module "deployment.7bbf7e74-3d63-4f9c-ac0e-c7359ada48c0.war:main" from Service Module Loader): acme/core/MyInterface at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:72) ... at org.jboss.threads.JBossThread.run(JBossThread.java:320) Caused by: java.lang.NoClassDefFoundError: Failed to link acme/server/MyObject (Module "deployment.7bbf7e74-3d63-4f9c-ac0e-c7359ada48c0.war:main" from Service Module Loader): acme/core/MyInterface at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
This doesn't seem to be an issue when built into an uberJAR using java -jar server-0.0.1-SNAPSHOT-swarm.jar. I've ensured the project is build and the core jar is available in the local Maven repo and that doesn't work either.
This might be related to SWARM-990. Last version it worked with was 2016.10.0.