Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problem on create own lib plugin
Problem on create own lib plugin [message #764394] Mon, 12 December 2011 04:47
Ellis Yu is currently offline Ellis YuFriend
Messages: 15
Registered: July 2009
Junior Member
I'm writing a RCP application using Eclipse 3.7.1 and I use spring and hibernate in my application. I put all these lib file in the "lib" folder and specify all these files in the classpath section. It's all fine when they are in same plugin.

And now I want to put all these libraries to seperate plugin, since it can be shared with other application also. So I create a new plugin project by choosing "plugin from existing jar archive" and add all the jar files under "lib" folder. And then I add all exported package in runtime page. At last, I had added Quote:
Eclipse-BuddyPolicy: registered
in my lib plugin and added Quote:
Eclipse-RegisterBuddy: com.rainbow.spring-hibernate-annotation
in my application. In my application, I add this new plugin in required-plugin section under dependencies page. However an error message occurred as below when I run the program.

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [app-context.xml]; nested exception is javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(
	at com.rainbow.claim.Activator.start(
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$
	at Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(
	... 34 more
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found
	at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
	at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(
	at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(
	... 51 more

Can anyone help me out?
Previous Topic:Design View and Toolbox
Next Topic:Update failed
Goto Forum:

Current Time: Thu May 24 07:54:25 GMT 2018

Powered by FUDForum. Page generated in 0.02395 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top