Cant show Diagrams in RRC - NoClassDefFoundError Exception: org.eclipse.draw2d.ColorConstants
Hi!
We have problems showing diagrams in the web interface of RRC 3.0.1.3, the tool just says "generating content, please wait". In the catalina log you get the exception below. The server is running on linux.
Does anyone have any experiences of the exception below. Is it possibly some other package missing?
br Erik
SEVERE: Servlet.service() for servlet equinoxbridgeservlet threw exception
java.lang.NoClassDefFoundError: org.eclipse.draw2d.ColorConstants (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at com.ibm.rdm.ui.image.GraphicalViewerHandle$OffscreenLightweightSystem.createRootFigure(Graphi
calViewerHandle.java:64)
at org.eclipse.draw2d.LightweightSystem.init(LightweightSystem.java:184)
at com.ibm.rdm.ui.image.GraphicalViewerHandle$OffscreenLightweightSystem.init(GraphicalViewerHan
dle.java:60)
at org.eclipse.draw2d.LightweightSystem.<init>(LightweightSystem.java:77)
at com.ibm.rdm.ui.image.GraphicalViewerHandle$OffscreenLightweightSystem.<init>(GraphicalViewerH
andle.java:53)
at com.ibm.rdm.ui.image.GraphicalViewerHandle$1.createLightweightSystem(GraphicalViewerHandle.ja
va:82)
at org.eclipse.gef.ui.parts.GraphicalViewerImpl.<init>(GraphicalViewerImpl.java:66)
at com.ibm.rdm.ui.image.GraphicalViewerHandle$1.<init>(GraphicalViewerHandle.java:77)
at com.ibm.rdm.ui.image.GraphicalViewerHandle.createGraphicalViewer(GraphicalViewerHandle.java:7
7)
at com.ibm.rdm.ui.image.GraphicalViewerHandle.init(GraphicalViewerHandle.java:128)
at com.ibm.rdm.ui.image.GraphicalViewerHandle.init(GraphicalViewerHandle.java:123)
at com.ibm.rdm.web.htmlgen.convert.ConvertedSketchingResource.initGraphicalViewerHandle(Converte
dSketchingResource.java:35)
at com.ibm.rdm.web.htmlgen.convert.ConvertedResource.convert(ConvertedResource.java:197)
at com.ibm.rdm.web.htmlgen.convert.ConvertedResource.convertConditionally(ConvertedResource.java
:452)
at com.ibm.rdm.web.htmlgen.convert.ConvertedResource.writeHTML(ConvertedResource.java:108)
at com.ibm.rdm.web.htmlgen.servlet.ConverterServlet.doGet(ConverterServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManag
er.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistrati
on.java:90)
We have problems showing diagrams in the web interface of RRC 3.0.1.3, the tool just says "generating content, please wait". In the catalina log you get the exception below. The server is running on linux.
Does anyone have any experiences of the exception below. Is it possibly some other package missing?
br Erik
SEVERE: Servlet.service() for servlet equinoxbridgeservlet threw exception
java.lang.NoClassDefFoundError: org.eclipse.draw2d.ColorConstants (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at com.ibm.rdm.ui.image.GraphicalViewerHandle$OffscreenLightweightSystem.createRootFigure(Graphi
calViewerHandle.java:64)
at org.eclipse.draw2d.LightweightSystem.init(LightweightSystem.java:184)
at com.ibm.rdm.ui.image.GraphicalViewerHandle$OffscreenLightweightSystem.init(GraphicalViewerHan
dle.java:60)
at org.eclipse.draw2d.LightweightSystem.<init>(LightweightSystem.java:77)
at com.ibm.rdm.ui.image.GraphicalViewerHandle$OffscreenLightweightSystem.<init>(GraphicalViewerH
andle.java:53)
at com.ibm.rdm.ui.image.GraphicalViewerHandle$1.createLightweightSystem(GraphicalViewerHandle.ja
va:82)
at org.eclipse.gef.ui.parts.GraphicalViewerImpl.<init>(GraphicalViewerImpl.java:66)
at com.ibm.rdm.ui.image.GraphicalViewerHandle$1.<init>(GraphicalViewerHandle.java:77)
at com.ibm.rdm.ui.image.GraphicalViewerHandle.createGraphicalViewer(GraphicalViewerHandle.java:7
7)
at com.ibm.rdm.ui.image.GraphicalViewerHandle.init(GraphicalViewerHandle.java:128)
at com.ibm.rdm.ui.image.GraphicalViewerHandle.init(GraphicalViewerHandle.java:123)
at com.ibm.rdm.web.htmlgen.convert.ConvertedSketchingResource.initGraphicalViewerHandle(Converte
dSketchingResource.java:35)
at com.ibm.rdm.web.htmlgen.convert.ConvertedResource.convert(ConvertedResource.java:197)
at com.ibm.rdm.web.htmlgen.convert.ConvertedResource.convertConditionally(ConvertedResource.java
:452)
at com.ibm.rdm.web.htmlgen.convert.ConvertedResource.writeHTML(ConvertedResource.java:108)
at com.ibm.rdm.web.htmlgen.servlet.ConverterServlet.doGet(ConverterServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManag
er.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistrati
on.java:90)
Accepted answer
Hi Erik,
This problem indicates that the server is likely not configured properly to support the converter used to generate the renderings for graphical artifacts. The following wiki page provides some details on this issue:
https://jazz.net/wiki/bin/view/Main/RRCConverterTroubleshooting
In particular, you might also find this technote useful:
https://www-304.ibm.com/support/docview.wss?q1=RN2.0.0.1&rs=3499&uid=swg21410023&cs=utf-8&lang=en&loc=en_US
Hopefully this helps, but let us know if you have more questions.
This problem indicates that the server is likely not configured properly to support the converter used to generate the renderings for graphical artifacts. The following wiki page provides some details on this issue:
https://jazz.net/wiki/bin/view/Main/RRCConverterTroubleshooting
In particular, you might also find this technote useful:
https://www-304.ibm.com/support/docview.wss?q1=RN2.0.0.1&rs=3499&uid=swg21410023&cs=utf-8&lang=en&loc=en_US
Hopefully this helps, but let us know if you have more questions.
2 other answers
Thank you very much, it solved the problem. Don't know if it was the missing libraries or the Xvfb-part as I fixed both.
Installing Jazz-based products (RRC and more) is unfortunately not as straight forward as one would like, as you have a long prerequisite list, and the Installation Manager (and the tool) does not try to verify that you have the packages that you need. I sort of miss the old way to build and install gnu tools where the build script actually checked that you had all prerequisites needed. For example, it would be possible for the Linux installation script to check that you have
Installing Jazz-based products (RRC and more) is unfortunately not as straight forward as one would like, as you have a long prerequisite list, and the Installation Manager (and the tool) does not try to verify that you have the packages that you need. I sort of miss the old way to build and install gnu tools where the build script actually checked that you had all prerequisites needed. For example, it would be possible for the Linux installation script to check that you have
libgtk-x11-2.0.so.0
and other known dependencies available. Now you need to look into exceptions in catalina.out far too often :-)
Erik,
Glad that worked out for you. Getting the converter to run in a Linux environment is certainly more complicated than we would like. We have been working towards a process that would include what you describe as part of the installation, so hopefully in the future this process is much more seamless.
Glad that worked out for you. Getting the converter to run in a Linux environment is certainly more complicated than we would like. We have been working towards a process that would include what you describe as part of the installation, so hopefully in the future this process is much more seamless.