New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.4.0-TEST build cannot start -Could not initialize class org.bimserver.models.ifc2x3tc1.Ifc2x3tc1Package #119
Comments
Reason and ScopeThis is an issue where the JAR file created as the result of the "Shared" project is missing files. Two classes are crashing during their static initializations due to this. It does not effect running the project through a local test environment (like you might in Eclipse); it just happens when packaging the project into a JAR or WAR because the build script is missing the directives to copy two specific files. In-Place SolutionTo fix a build suffering from this, you need to copy two files into the bimserver-version-date-shared.jar (zipped archive file; can use the 7-zip application; located in lib directory) that gets unpacked by running the main jar (bimserver-version-date.jar): (1) Shared/generated/org/bimserver/models/geometry/impl/geometry.ecore and (2) Shared/generated/org/bimserver/models/ifc4/impl/ifc4.ecore Those files respectively belong in: (1) org/bimserver/models/geometry/impl and (2) org/bimserver/models/ifc4/impl In-Source SolutionTo fix the build script (common.build.xml), I believe the following two lines can be added (around line 455) to fix this issue in the Builds project. <copy file="../../Shared/generated/org/bimserver/models/geometry/impl/geometry.ecore" todir="builds/shared/org/bimserver/models/geometry/impl" />
<copy file="../../Shared/generated/org/bimserver/models/ifc4/impl/ifc4.ecore" todir="builds/shared/org/bimserver/models/ifc4/impl" /> |
Thank you lirmont. Now waiting for the final release of 1.4. |
Dear lirmont, I followed your way "in-source solution" and built out the jar and ran it... I got an error from BIMserver Starter: 17-09-2014 23:27:13 INFO org.bimserver.BimServer - Starting BIMserver Please have a check... |
Hi, rubendel |
No I'll update when I make a new release. |
1.4.0-TEST-2014-07-21
24-08-2014 15:29:37 ERROR org.bimserver.BimServer -
java.lang.NoClassDefFoundError: Could not initialize class org.bimserver.models.ifc2x3tc1.Ifc2x3tc1Package
at org.bimserver.emf.MetaDataManager.(MetaDataManager.java:43)
at org.bimserver.BimServer.start(BimServer.java:341)
at org.bimserver.JarBimServer.start(JarBimServer.java:84)
at org.bimserver.JarBimServer.main(JarBimServer.java:53)
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"
The text was updated successfully, but these errors were encountered: