file Building Modelio gets "libxerces-c.so.28: cannot open shared object file" error

6 years 8 months ago - 6 years 8 months ago #1259 by eocampos
Hi mates,

After following step by step the Building tutorial [0] and solved some compilation/linking errors, I finally get to the point to launch the application from within Eclipse. However, an exception occurs during launch process. The application seems to start (splash screen is showed) but then appears the following error:
!SESSION 2012-11-01 00:36:26.693 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_09
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.modelio.branding.modelio
Command-line arguments:  -product org.modelio.branding.modelio -data /home/eocampos/Documents/develop/modelio/buildRoot/project/modelio.plugins/../runtime-modelio-opensource.product -dev file:/home/eocampos/Documents/develop/modelio/buildRoot/project/modelio.plugins/.metadata/.plugins/org.eclipse.pde.core/modelio-opensource.product/dev.properties -os linux -ws gtk -arch x86_64 -consoleLog

!ENTRY org.modelio.core 1 0 2012-11-01 00:36:30.598
!MESSAGE Loading LibModelio.
  - loading 'libmodelio.so' failed, reason is '/home/eocampos/Documents/develop/modelio/buildRoot/project/modelio.plugins/corelib.linux.gtk.x86_64/lib/libmodelio.so: libxerces-c.so.28: cannot open shared object file: No such file or directory'
java.io.IOException: Unable to load libmodelio.so library:

/home/eocampos/Documents/develop/modelio/buildRoot/project/modelio.plugins/corelib.linux.gtk.x86_64/lib/libmodelio.so: libxerces-c.so.28: cannot open shared object file: No such file or directory
	at com.modeliosoft.modelio.core.LibModelio.start(Unknown Source)
	at com.modeliosoft.modelio.core.plugin.Activator.start(Activator.java:92)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:463)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
	at org.eclipse.ui.internal.services.WorkbenchServiceRegistry.getSourceProviders(WorkbenchServiceRegistry.java:174)
	at org.eclipse.ui.internal.services.SourceProviderService.readRegistry(SourceProviderService.java:105)
	at org.eclipse.ui.internal.Workbench$61.run(Workbench.java:2400)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.Workbench.startSourceProviders(Workbench.java:2397)
	at org.eclipse.ui.internal.Workbench.access$18(Workbench.java:2382)
	at org.eclipse.ui.internal.Workbench$30.runWithException(Workbench.java:1567)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2609)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at com.modeliosoft.modelio.app.intro.Application.start(Application.java:78)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.UnsatisfiedLinkError: /home/eocampos/Documents/develop/modelio/buildRoot/project/modelio.plugins/corelib.linux.gtk.x86_64/lib/libmodelio.so: libxerces-c.so.28: cannot open shared object file: No such file or directory
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
	at java.lang.Runtime.loadLibrary0(Runtime.java:845)
	at java.lang.System.loadLibrary(System.java:1084)
	... 58 more

Wich is weird, since I got no error in Step 5 of building process [1]. Do I need to set up an environment variable before Step 5 or before launching from Eclipse?

Let me know any kind of environment setting that would help to diagnose this problem.

Regards,
Eliseo.

[0] Building modelio
[1] Step 5: Compile the Modelio Core Library

Please Log in or Create an account to join the conversation.

6 years 8 months ago #1263 by ffe
Hi eocampos,

I recommand to install the package xerces version 2.8.

If your distribution doesn't provide the xerces version 2.8, you can find it in the
"modelio.plugins/FEATURE - bundled files/linux_files_64/lib" directory (for a linux 64-bit). To use it, you must set the LD_LIBRARY_PATH to this directory.

Please Log in or Create an account to join the conversation.

Moderators: chmcma
Time to create page: 0.032 seconds
^ Back to Top