Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » Spring-DM problem can be solved maybe here?
Spring-DM problem can be solved maybe here? [message #1077953] Fri, 02 August 2013 10:58 Go to next message
ergu de gaia is currently offline ergu de gaiaFriend
Messages: 5
Registered: August 2013
Junior Member
Hello everyone!

my first post since i'm new Smile

Here is my situation... i'm using spring-dm 1.2.1 which is very similar to
the Gemini Project. I will post the error i get when i try to run velocity
with springMacro enabled in a Equinox OSGi container.

228423 [SpringOsgiExtenderThread-6] INFO  org.springframework.beans.factory.support.DefaultListableBeanFactory  - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@73b0a5b: defining beans [connectionFactory,cachedConnectionFactory,jmsTemplate,destination,listenerContainer,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0,org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver#0,localeResolver,localeChangeInterceptor,messageSource,velocityConfig,viewResolver,customDestinationSecurizer,bambuTopic,gravityTopic,org.granite.spring.SpringGraniteConfig,org.granite.spring.gravityFactory,org.granite.spring.ServerFilter_handlerMapping,org.granite.spring.ServerFilter,org.springframework.aop.config.internalAutoProxyCreator,org.granite.tide.spring.DataPublishingAdvisor]; root of factory hierarchy
SpringOsgiExtenderThread-6 INFO [support.DefaultListableBeanFactory] - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@73b0a5b: defining beans [connectionFactory,cachedConnectionFactory,jmsTemplate,destination,listenerContainer,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0,org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver#0,localeResolver,localeChangeInterceptor,messageSource,velocityConfig,viewResolver,customDestinationSecurizer,bambuTopic,gravityTopic,org.granite.spring.SpringGraniteConfig,org.granite.spring.gravityFactory,org.granite.spring.ServerFilter_handlerMapping,org.granite.spring.ServerFilter,org.springframework.aop.config.internalAutoProxyCreator,org.granite.tide.spring.DataPublishingAdvisor]; root of factory hierarchy
228425 [SpringOsgiExtenderThread-6] ERROR org.springframework.osgi.extender.internal.activator.ContextLoaderListener  - Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=graniteds-osgi-demo, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'velocityConfig' defined in URL [bundleentry://120.fwk1722768956/META-INF/spring/general.xml]: Invocation of init method failed; nested exception is org.apache.velocity.exception.VelocityException: Velocimacro : Error using VM library : org/springframework/web/servlet/view/velocity/spring.vm
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
	at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.velocity.exception.VelocityException: Velocimacro : Error using VM library : org/springframework/web/servlet/view/velocity/spring.vm
	at org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro(VelocimacroFactory.java:219)
	at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:274)
	at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:93)
	at org.springframework.ui.velocity.VelocityEngineFactory.createVelocityEngine(VelocityEngineFactory.java:251)
	at org.springframework.web.servlet.view.velocity.VelocityConfigurer.afterPropertiesSet(VelocityConfigurer.java:119)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)
	... 14 more
Caused by: java.lang.NullPointerException
	at org.apache.velocity.tools.view.WebappResourceLoader.getResourceStream(WebappResourceLoader.java:145)
	at org.apache.velocity.Template.process(Template.java:108)
	at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:437)
	at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:352)
	at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1533)
	at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1514)
	at org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro(VelocimacroFactory.java:202)
	... 20 more
SpringOsgiExtenderThread-6 ERROR [activator.ContextLoaderListener] - Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=graniteds-osgi-demo, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'velocityConfig' defined in URL [bundleentry://120.fwk1722768956/META-INF/spring/general.xml]: Invocation of init method failed; nested exception is org.apache.velocity.exception.VelocityException: Velocimacro : Error using VM library : org/springframework/web/servlet/view/velocity/spring.vm
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
	at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.velocity.exception.VelocityException: Velocimacro : Error using VM library : org/springframework/web/servlet/view/velocity/spring.vm
	at org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro(VelocimacroFactory.java:219)
	at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:274)
	at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:93)
	at org.springframework.ui.velocity.VelocityEngineFactory.createVelocityEngine(VelocityEngineFactory.java:251)
	at org.springframework.web.servlet.view.velocity.VelocityConfigurer.afterPropertiesSet(VelocityConfigurer.java:119)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)
	... 14 more
Caused by: java.lang.NullPointerException
	at org.apache.velocity.tools.view.WebappResourceLoader.getResourceStream(WebappResourceLoader.java:145)
	at org.apache.velocity.Template.process(Template.java:108)
	at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:437)
	at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:352)
	at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1533)
	at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1514)
	at org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro(VelocimacroFactory.java:202)
	... 20 more



This is my velocity.properties file

resource.loader=file,webapp,class,springMacro

file.resource.loader.description=Velocity File Resource Loader
file.resource.loader.class=org.apache.velocity.runtime.resource.loader.FileResourceLoader
file.resource.loader.path=/WEB-INF/templates/
file.resource.loader.cache=false
file.resource.loader.modificationCheckInterval=1
file.resource.loader.exposeSpringMacroHelpers=true

springMacro.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
velocimacro.library=org/springframework/web/servlet/view/velocity/spring.vm

webapp.resource.loader.description=Velocity Web Resource Loader
webapp.resource.loader.class=org.apache.velocity.tools.view.WebappResourceLoader
webapp.resource.loader.path=/WEB-INF/templates/
webapp.resource.loader.cache=false
webapp.resource.loader.modificationCheckInterval=1

class.resource.loader.description=Velocity Class Resource Loader
class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
class.resource.loader.cache=false
class.resource.loader.modificationCheckInterval=1

velocity.engine.resource.manager.cache.enabled=false
velocity.engine.resource.manager.modification.check.interval=1

input.encoding=UTF-8
output.encoding=UTF-8
default.contentType=text/html; charset=utf-8


and this is my context.xml file

	<bean id="velocityConfig" class="org.springframework.web.servlet.view.velocity.VelocityConfigurer">
		<property name="resourceLoaderPath" value="/WEB-INF/templates/" />
		<property name="configLocation" value="/WEB-INF/velocity.properties" />
	</bean>

	<bean id="viewResolver" class="org.springframework.web.servlet.view.velocity.VelocityViewResolver">
		<property name="cache" value="false" />
		<property name="prefix" value="" />
		<property name="suffix" value=".vm" />
		<property name="exposeSpringMacroHelpers" value="true" /> 
		<property name="exposeRequestAttributes" value="true" />
		<property name="exposeSessionAttributes" value="true" />
	</bean>
Re: Spring-DM problem can be solved maybe here? [message #1078166 is a reply to message #1077953] Fri, 02 August 2013 16:17 Go to previous messageGo to next message
Dmitry Sklyut is currently offline Dmitry SklyutFriend
Messages: 279
Registered: January 2010
Senior Member
Please post your META-INF/MANIFEST.MF, specifically interested in Import-Package/Bundle etc directives. You might be missing an import for something.

Regards,
Dmitry
Re: Spring-DM problem can be solved maybe here? [message #1078181 is a reply to message #1078166] Fri, 02 August 2013 16:39 Go to previous messageGo to next message
ergu de gaia is currently offline ergu de gaiaFriend
Messages: 5
Registered: August 2013
Junior Member
the bnd.bnd file contains this

the manifest will be generated automatically

-runsystempackages: sun.reflect, sun.io, sun.misc, java.io, com.sun.org.apache.xerces
-buildpath: osgi.core;version=4.3.0,\
	org.ops4j.pax.logging.pax-logging-api;version=1.6.9,\
	org.ops4j.pax.logging.pax-logging-service;version=1.6.9,\
	org.springframework.security.core;version=3.1.4.RELEASE,\
	com.springsource.javax.mail;version=1.4.5,\
	org.springframework.web.servlet;version=3.2.3.RELEASE,\
	org.springframework.core;version=3.2.3.RELEASE,\
	org.springframework.beans;version=3.2.3.RELEASE,\
	org.springframework.context;version=3.2.3.RELEASE,\
	org.springframework.context.support;version=3.2.3.RELEASE,\
	org.jsoup;version=1.7.1,\
	org.hibernate.common.hibernate-commons-annotations;version=4.0.2.Final,\
	org.hibernate.core;version=4.2.1.Final,\
	com.springsource.javax.persistence;version=2.0.0,\
	org.springframework.security.web;version=3.1.4.RELEASE,\
	org.springframework.transaction;version=3.2.3.RELEASE,\
	com.springsource.org.apache.xerces;version=2.9.1,\
	com.springsource.org.apache.kahadb;version=5.3.0,\
	com.springsource.org.apache.commons.logging;version=1.1.1,\
	com.springsource.org.apache.activemq;version=5.3.0,\
	org.springframework.jms;version=3.2.3.RELEASE,\
	org.jboss.weld.osgi-bundle;version=2.0.2.Final,\
	javax.interceptor-api;version=1.2.0,\
	org.jboss.logging.jboss-logging;version=3.1.3.GA,\
	osgi.enterprise;version=4.2.0.201003190513,\
	graniteds-osgi-core;version=latest,\
	graniteds-osgi-gravity;version=latest,\
	graniteds-osgi-tide;version=latest,\
	graniteds-osgi-spring;version=latest,\
	org.springframework.jdbc;version=3.2.3.RELEASE,\
	org.springframework.orm;version=3.2.3.RELEASE,\
	org.hibernate.ehcache;version=4.2.0.Final,\
	com.jolbox.bonecp;version=0.8.0.SNAPSHOT,\
	com.jolbox.bonecp-provider;version=0.8.0.SNAPSHOT,\
	com.jolbox.bonecp-spring;version=0.8.0.SNAPSHOT,\
	com.google.guava;version=13.0.1,\
	slf4j.api;version=1.6.0,\
	slf4j.nop;version=1.6.0,\
	tomcat-api-osgi-7.0.42,\
	tomcat-catalina-osgi-7.0.42,\
	tomcat-coyote-osgi-7.0.42,\
	tomcat-ha-osgi-7.0.42,\
	tomcat-juli-extra-osgi-7.0.42,\
	tomcat-tibes-osgi-7.0.42,\
	tomcat-util-osgi-7.0.42,\
	javax.servlet;version=2.5.0.v200910301333,\
	org.apache.servicemix.bundles.velocity;version=1.7.0.6,\
	org.apache.servicemix.bundles.velocity-tools;version=2.0.0.1,\
	com.springsource.com.lowagie.text;version=5.4.0
	
-runrequires: osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.shell)',\
	osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.command)',\
	osgi.identity;filter:='(&(osgi.identity=javax.annotation)(version>=1.1.0.v201105051105))',\
	osgi.identity;filter:='(&(osgi.identity=com.springsource.javax.mail)(version>=1.4.5))',\
	osgi.identity;filter:='(&(osgi.identity=tomcat-api-osgi-7.0.42)(version>=7.0.42))',\
	osgi.identity;filter:='(&(osgi.identity=tomcat-catalina-osgi-7.0.42)(version>=7.0.42))',\
	osgi.identity;filter:='(&(osgi.identity=tomcat-coyote-osgi-7.0.42)(version>=7.0.42))',\
	osgi.identity;filter:='(&(osgi.identity=tomcat-juli-extra-osgi-7.0.42)(version>=7.0.42))',\
	osgi.identity;filter:='(&(osgi.identity=tomcat-util-osgi-7.0.42)(version>=7.0.42))',\
	osgi.identity;filter:='(&(osgi.identity=com.springsource.org.apache.log4j)(version>=1.2.16))',\
	osgi.identity;filter:='(&(osgi.identity=com.springsource.javax.jms)(version>=1.1.0))',\
	osgi.identity;filter:='(&(osgi.identity=com.springsource.javax.management.j2ee)(version>=1.0.1))',\
	osgi.identity;filter:='(&(osgi.identity=javax.servlet)(version>=3.0.0.v201103241009))',\
	osgi.identity;filter:='(&(osgi.identity=com.springsource.javax.persistence)(version>=2.0.0))',\
	osgi.identity;filter:='(&(osgi.identity=com.springsource.javax.transaction)(version>=1.1.0))',\
	osgi.identity;filter:='(&(osgi.identity=com.springsource.javax.ejb)(version>=3.0.0))',\
	osgi.identity;filter:='(&(osgi.identity=com.springsource.javax.xml.rpc)(version>=1.1.0.v20110517))',\
	osgi.identity;filter:='(&(osgi.identity=com.springsource.javax.xml.soap)(version>=1.3.0))',\
	osgi.identity;filter:='(&(osgi.identity=com.springsource.javax.activation)(version>=1.1.1))',\
	osgi.identity;filter:='(&(osgi.identity=com.springsource.org.apache.commons.logging)(version>=1.1.1))',\
	osgi.identity;filter:='(&(osgi.identity=com.springsource.org.apache.kahadb)(version>=5.3.0))',\
	osgi.identity;filter:='(&(osgi.identity=com.springsource.org.apache.xmlcommons)(version>=1.3.4))',\
	osgi.identity;filter:='(&(osgi.identity=com.springsource.org.apache.activemq)(version>=5.3.0))',\
	osgi.identity;filter:='(&(osgi.identity=graniteds-osgi-core)(version>=3.0.0.M2))',\
	osgi.identity;filter:='(&(osgi.identity=graniteds-osgi-gravity)(version>=3.0.0.M2))',\
	osgi.identity;filter:='(&(osgi.identity=graniteds-osgi-tide)(version>=3.0.0.M2))',\
	osgi.identity;filter:='(&(osgi.identity=graniteds-osgi-spring)(version>=3.0.0.M2))',\
	osgi.identity;filter:='(&(osgi.identity=graniteds-osgi-hibernate4)(version>=3.0.0.M2))'
	
-resolve.effective: active
	
-runfw: org.eclipse.osgi;version='[3.7.2.v20120110-1415,3.7.2.v20120110-1415]'
-runee: JavaSE-1.6
Bundle-Version: 3.0.0.M2

-runrepos: Local,\
	Bndtools Hub,\
	Release,\
	Workspace
	
Bundle-Activator: org.example.Activator

Export-Package: org.bambu.domain.vo;version=${Bundle-Version},\
	org.bekrek;version=${Bundle-Version},\
	org.bekrek.application;version=${Bundle-Version},\
	org.bekrek.granite.constants;version=${Bundle-Version},\
	org.bekrek.granite.integrators;version=${Bundle-Version},\
	org.bekrek.granite.remoting.interfaces;version=${Bundle-Version},\
	org.bekrek.granite.remoting.listeners;version=${Bundle-Version},\
	org.bekrek.granite.remoting.observers;version=${Bundle-Version},\
	org.bekrek.granite.scheduling;version=${Bundle-Version},\
	org.bekrek.granite.security;version=${Bundle-Version},\
	org.bekrek.interfaces.Base;version=${Bundle-Version},\
	org.bekrek.interfaces.Client;version=${Bundle-Version},\
	org.bekrek.interfaces.CustomVariable;version=${Bundle-Version},\
	org.bekrek.interfaces.Function;version=${Bundle-Version},\
	org.bekrek.interfaces.Job;version=${Bundle-Version},\
	org.bekrek.interfaces.JobApplication;version=${Bundle-Version},\
	org.bekrek.interfaces.JobInterest;version=${Bundle-Version},\
	org.bekrek.interfaces.Language;version=${Bundle-Version},\
	org.bekrek.interfaces.License;version=${Bundle-Version},\
	org.bekrek.interfaces.LogOperation;version=${Bundle-Version},\
	org.bekrek.interfaces.Meeting;version=${Bundle-Version},\
	org.bekrek.interfaces.Plugin;version=${Bundle-Version},\
	org.bekrek.interfaces.ProfileEntry;version=${Bundle-Version},\
	org.bekrek.interfaces.Room;version=${Bundle-Version},\
	org.bekrek.interfaces.SMSProvider;version=${Bundle-Version},\
	org.bekrek.interfaces.Statistic;version=${Bundle-Version},\
	org.bekrek.interfaces.Template;version=${Bundle-Version},\
	org.bekrek.interfaces.User;version=${Bundle-Version},\
	org.bekrek.interfaces.VariableValue;version=${Bundle-Version},\
	org.bekrek.listener;version=${Bundle-Version},\
	org.bekrek.mail;version=${Bundle-Version},\
	org.bekrek.stats;version=${Bundle-Version},\
	org.bekrek.stats.exception;version=${Bundle-Version}
	
Include-Resource: META-INF=src/META-INF,META-INF/spring=src/META-INF/spring,WEB-INF=src/WEB-INF

-runbundles: spring.osgi.log4j.configuration;version=latest,\
	org.springframework.osgi.jetty.start.osgi;version=1.0.0,\
	tomcat-api-osgi-7.0.42;version=latest,\
	tomcat-catalina-osgi-7.0.42;version=latest,\
	tomcat-coyote-osgi-7.0.42;version=latest,\
	tomcat-el-osgi-7.0.42;version=latest,\
	tomcat-ha-osgi-7.0.42;version=latest,\
	tomcat-jasper-osgi-7.0.42;version=latest,\
	tomcat-juli-extra-osgi-7.0.42;version=latest,\
	tomcat-tibes-osgi-7.0.42;version=latest,\
	tomcat-util-osgi-7.0.42;version=latest,\
	com.springsource.com.fasterxml.jackson.core.jackson-core;version=2.0.2,\
	com.springsource.com.fasterxml.jackson.core.jackson-annotations;version=2.0.2,\
	com.springsource.com.fasterxml.jackson.core.jackson-databind;version=2.0.2,\
	com.springsource.com.lowagie.text;version=5.4.0,\
	com.springsource.util.common;version=2.0.5.RELEASE,\
	com.springsource.util.io;version=2.0.5.RELEASE,\
	com.springsource.util.math;version=2.0.5.RELEASE,\
	com.springsource.util.osgi;version=2.0.5.RELEASE,\
	com.springsource.util.parser.manifest;version=2.0.5.RELEASE,\
	com.springsource.org.apache.catalina;version=7.0.26,\
	com.springsource.org.apache.tomcat.api;version=7.0.26,\
	com.springsource.org.apache.coyote;version=7.0.26,\
	com.springsource.org.apache.catalina.tribes;version=7.0.26,\
	com.springsource.org.apache.catalina.ha;version=7.0.26,\
	com.springsource.org.apache.juli.extras;version=7.0.26,\
	com.springsource.org.apache.tomcat.util;version=7.0.26,\
	com.springsource.javax.persistence;version=2.0.0,\
	com.springsource.org.apache.xerces;version=2.9.1,\
	com.springsource.org.apache.xml.resolver;version=1.2.0,\
	com.springsource.org.apache.xmlcommons;version=1.3.4,\
	org.jsoup;version=1.7.1,\
	com.springsource.net.sf.cglib;version=2.2.0,\
	org.springframework.core;version=3.2.3.RELEASE,\
	com.springsource.org.apache.commons.logging;version=1.1.1,\
	org.springframework.beans;version=3.2.3.RELEASE,\
	org.springframework.context;version=3.2.3.RELEASE,\
	org.springframework.context.support;version=3.2.3.RELEASE,\
	org.springframework.expression;version=3.2.3.RELEASE,\
	com.springsource.javax.activation;version=1.1.1,\
	com.springsource.javax.xml.bind;version=2.2.0,\
	com.springsource.javax.xml.soap;version=1.3.0,\
	com.springsource.javax.xml.ws;version=2.1.1,\
	com.springsource.javax.xml.stream;version=1.0.1,\
	com.springsource.javax.xml.rpc;version=1.1.0.v20110517,\
	org.springframework.aop;version=3.2.3.RELEASE,\
	org.springframework.web;version=3.2.3.RELEASE,\
	org.springframework.web.servlet;version=3.2.3.RELEASE,\
	com.springsource.javax.ejb;version=3.0.0,\
	com.springsource.org.aspectj.tools;version=1.7.2.RELEASE,\
	javax.annotation;version=1.1.0.v201105051105,\
	com.springsource.javax.management.j2ee;version=1.0.1,\
	com.springsource.org.apache.log4j;version=1.2.16,\
	osgi.enterprise;version=4.2.0.201003190513,\
	com.springsource.org.apache.commons.collections;version=3.2.1,\
	com.springsource.org.apache.commons.lang;version=2.6.0,\
	org.jboss.weld.osgi-bundle;version=2.0.2.Final,\
	com.springsource.javax.jdo;version=3.0.0,\
	com.springsource.javax.transaction;version=1.1.0,\
	org.jboss.logging.jboss-logging;version=3.1.3.GA,\
	com.springsource.org.antlr;version=3.1.3,\
	com.springsource.com.fasterxml.classmate;version=0.5.4,\
	com.springsource.javassist;version=3.15.0.GA,\
	com.springsource.org.apache.tools.ant;version=1.8.3,\
	com.springsource.org.dom4j;version=1.6.1,\
	com.springsource.org.jboss.jandex;version=1.0.3.Final,\
	org.hibernate.core;version=4.2.1.Final,\
	org.hibernate.common.hibernate-commons-annotations;version=4.0.2.Final,\
	org.springframework.data.core;version=1.5.1.RELEASE,\
	org.springframework.data.jpa;version=1.3.2.RELEASE,\
	org.springframework.orm;version=3.2.3.RELEASE,\
	org.springframework.osgi.core;version=1.2.1,\
	org.springframework.osgi.extender;version=1.2.1,\
	org.springframework.osgi.extensions.annotations;version=1.2.1,\
	org.springframework.osgi.io;version=1.2.1,\
	org.springframework.security.core;version=3.1.4.RELEASE,\
	org.springframework.security.acls;version=3.1.4.RELEASE,\
	org.springframework.security.config;version=3.1.4.RELEASE,\
	org.springframework.security.taglibs;version=3.1.4.RELEASE,\
	org.springframework.security.web;version=3.1.4.RELEASE,\
	com.springsource.javax.jms;version=1.1.0,\
	javax.servlet.jsp;version=2.0.0.v201101211617,\
	com.springsource.org.apache.kahadb;version=5.3.0,\
	com.springsource.org.apache.activemq;version=5.3.0,\
	org.apache.felix.gogo.command;version=0.12.0,\
	org.apache.felix.gogo.runtime;version=0.10.0,\
	org.apache.felix.gogo.shell;version=0.10.0,\
	com.google.guava;version=13.0.1,\
	com.jolbox.bonecp;version=0.8.0.SNAPSHOT,\
	com.jolbox.bonecp-provider;version=0.8.0.SNAPSHOT,\
	slf4j.api;version=1.7.5,\
	slf4j.nop;version=1.7.5,\
	org.springframework.jdbc;version=3.2.3.RELEASE,\
	org.springframework.transaction;version=3.2.3.RELEASE,\
	com.mysql.jdbc;version=5.1.25,\
	graniteds-osgi-core;version=latest,\
	graniteds-osgi-gravity;version=latest,\
	graniteds-osgi-tide;version=latest,\
	graniteds-osgi-spring;version=latest,\
	com.springsource.org.aopalliance;version=1.0.0,\
	com.springsource.javax.mail;version=1.4.5,\
	org.eclipse.virgo.util.common,\
	org.eclipse.virgo.util.io,\
	org.eclipse.virgo.util.jmx,\
	org.eclipse.virgo.util.math,\
	org.eclipse.virgo.util.osgi,\
	org.eclipse.virgo.util.osgi.manifest,\
	org.eclipse.virgo.util.parser.launcher,\
	org.eclipse.virgo.util.parser.manifest,\
	com.springsource.org.eclipse.jdt.core.compiler.batch,\
	org.mortbay.jetty.server,\
	org.mortbay.jetty.util,\
	org.springframework.osgi.web;version=1.2.1,\
	org.springframework.osgi.web.extender;version=1.2.1,\
	org.springframework.osgi.jetty.web.extender.fragment.osgi;version=1.0.1,\
	javax.servlet.jsp-api;version=2.3.1,\
	org.springframework.jms;version=3.2.3.RELEASE,\
	com.springsource.org.apache.commons.beanutils;version=1.8.3,\
	com.springsource.org.apache.commons.digester;version=1.8.1,\
	org.apache.servicemix.bundles.velocity;version=1.7.0.6,\
	org.apache.servicemix.bundles.velocity-tools;version=2.0.0.1,\
	javax.servlet;version=3.0.0.v201103241009,\
	graniteds-osgi-hibernate4;version=latest
	
Import-Package: org.granite.util;version='[3.0,4)',\
	javax.servlet.resources;version='[3.0,4)',\
	org.granite.tide.spring.security;version='[3.0,4)',\
	org.springframework.orm.hibernate4;version='[3.2,4)',\
	org.springframework.jdbc.datasource;version='[3.2,4)',\
	org.springframework.jms.core;version='[3.2,4)',\
	org.springframework.jms.connection;version='[3.2,4)',\
	org.springframework.jms.listener;version='[3.2,4)',\
	org.springframework.web.servlet.handler;version='[3.2,4)',\
	org.springframework.web.servlet.mvc.annotation;version='[3.2,4)',\
	org.springframework.web.servlet.view.velocity;version='[3.2,4)',\
	org.springframework.context.support;version='[3.2,4)',\
	org.springframework.web.servlet.i18n;version='[3.2,4)',\
	com.mysql.jdbc;version=5.1.25,\
	org.apache.activemq;version='[5.3,6)',\
	org.apache.activemq.command;version='[5.3,6)',\
	org.apache.velocity.tools.view;version='[2,3)',\
	com.jolbox.bonecp;version='[0.8.0,1.0.0)',\
	org.slf4j.spi;version=1.6.0,\
	org.slf4j;version=1.6.0,\
	org.eclipse.virgo.util.io;version='[3.6.2,3.6.3)',\
	org.eclipse.virgo.util.common;version='[3.6.2,3.6.3)',\
	javax.servlet.http;version=3.0.0,\
	javax.servlet;version=3.0.0,\
	*
Private-Package: org.example,\
	org.hibernate.osgitest
Re: Spring-DM problem can be solved maybe here? [message #1078204 is a reply to message #1078181] Fri, 02 August 2013 17:19 Go to previous messageGo to next message
Dmitry Sklyut is currently offline Dmitry SklyutFriend
Messages: 279
Registered: January 2010
Senior Member
Can you please post the generated MANIFEST.MF also? Is this a web app? Are you deploying it with Gemini Web? Why do you use an Activator?
Just trying to get a better understanding of your deployment to figure out the underlying cause of the issue.

Thanks
Dmitry
Re: Spring-DM problem can be solved maybe here? [message #1078217 is a reply to message #1078204] Fri, 02 August 2013 17:41 Go to previous messageGo to next message
ergu de gaia is currently offline ergu de gaiaFriend
Messages: 5
Registered: August 2013
Junior Member
This is a WebBundle that has the context files in META-INF/spring/
It's deployed inside Jetty 6.1 as OSGi

This is the generated MF

Manifest-Version: 1.0
Bnd-LastModified: 1375453155401
Bundle-Activator: org.example.Activator
Bundle-ContactAddress: ergu@ergu.ca
Bundle-Description: This project include the following components
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.demo.trois
Bundle-Version: 3.0.0.M2
Created-By: 1.7.0_13 (Oracle Corporation)
Export-Package: org.bambu.domain.vo;version="3.0.0.M2";uses:="javax.pers
 istence,org.granite.tide.data,org.hibernate.annotations,org.springframe
 work.security.core,org.springframework.security.core.userdetails",org.b
 ekrek;version="3.0.0.M2";uses:="org.slf4j",org.bekrek.application;versi
 on="3.0.0.M2";uses:="javax.servlet,org.bambu.domain.vo,org.springframew
 ork.beans,org.springframework.context,org.springframework.stereotype",o
 rg.bekrek.granite.constants;version="3.0.0.M2";uses:="org.granite.tide.
 data",org.bekrek.granite.integrators;version="3.0.0.M2",org.bekrek.gran
 ite.remoting.interfaces;version="3.0.0.M2";uses:="org.bambu.domain.vo,o
 rg.granite.tide.annotations,org.springframework.security.access.annotat
 ion,org.springframework.transaction.annotation",org.bekrek.granite.remo
 ting.listeners;version="3.0.0.M2";uses:="javax.persistence",org.bekrek.
 granite.remoting.observers;version="3.0.0.M2";uses:="org.granite.tide.d
 ata",org.bekrek.granite.scheduling;version="3.0.0.M2";uses:="flex.messa
 ging.messages",org.bekrek.granite.security;version="3.0.0.M2";uses:="fl
 ex.messaging.messages,javax.mail,javax.mail.internet,org.granite.gravit
 y.security,org.granite.messaging.amf.process,org.granite.messaging.serv
 ice.security,org.granite.tide.annotations,org.springframework.security.
 authentication,org.springframework.security.core,org.springframework.se
 curity.core.userdetails,org.springframework.stereotype",org.bekrek.inte
 rfaces.Base;version="3.0.0.M2",org.bekrek.interfaces.Client;version="3.
 0.0.M2";uses:="org.bambu.domain.vo,org.bekrek.interfaces.Base",org.bekr
 ek.interfaces.CustomVariable;version="3.0.0.M2";uses:="org.bambu.domain
 .vo,org.bekrek.interfaces.Base",org.bekrek.interfaces.Function;version=
 "3.0.0.M2";uses:="org.bambu.domain.vo,org.bekrek.interfaces.Base",org.b
 ekrek.interfaces.Job;version="3.0.0.M2";uses:="org.bambu.domain.vo,org.
 bekrek.interfaces.Base",org.bekrek.interfaces.JobApplication;version="3
 .0.0.M2";uses:="org.bambu.domain.vo,org.bekrek.interfaces.Base",org.bek
 rek.interfaces.JobInterest;version="3.0.0.M2";uses:="org.bambu.domain.v
 o,org.bekrek.interfaces.Base",org.bekrek.interfaces.Language;version="3
 .0.0.M2";uses:="org.bambu.domain.vo,org.bekrek.interfaces.Base",org.bek
 rek.interfaces.License;version="3.0.0.M2";uses:="org.bambu.domain.vo,or
 g.bekrek.interfaces.Base",org.bekrek.interfaces.LogOperation;version="3
 .0.0.M2";uses:="org.bambu.domain.vo,org.bekrek.interfaces.Base",org.bek
 rek.interfaces.Meeting;version="3.0.0.M2";uses:="org.bambu.domain.vo,or
 g.bekrek.interfaces.Base",org.bekrek.interfaces.Plugin;version="3.0.0.M
 2";uses:="org.bambu.domain.vo,org.bekrek.interfaces.Base",org.bekrek.in
 terfaces.ProfileEntry;version="3.0.0.M2";uses:="org.bambu.domain.vo,org
 .bekrek.interfaces.Base",org.bekrek.interfaces.Room;version="3.0.0.M2";
 uses:="org.bambu.domain.vo,org.bekrek.interfaces.Base",org.bekrek.inter
 faces.SMSProvider;version="3.0.0.M2";uses:="org.bambu.domain.vo,org.bek
 rek.interfaces.Base",org.bekrek.interfaces.Statistic;version="3.0.0.M2"
 ;uses:="org.bambu.domain.vo,org.bekrek.interfaces.Base",org.bekrek.inte
 rfaces.Template;version="3.0.0.M2";uses:="org.bambu.domain.vo,org.bekre
 k.interfaces.Base",org.bekrek.interfaces.User;version="3.0.0.M2";uses:=
 "org.bambu.domain.vo,org.bekrek.interfaces.Base",org.bekrek.interfaces.
 VariableValue;version="3.0.0.M2";uses:="org.bambu.domain.vo,org.bekrek.
 interfaces.Base",org.bekrek.listener;version="3.0.0.M2";uses:="org.spri
 ngframework.context,org.springframework.stereotype",org.bekrek.mail;ver
 sion="3.0.0.M2";uses:="javax.mail",org.bekrek.stats;version="3.0.0.M2";
 uses:="org.bekrek.stats.exception,org.springframework.stereotype",org.b
 ekrek.stats.exception;version="3.0.0.M2"
Import-Package: org.springframework.context.support;version="[3.2,4)",co
 m.jolbox.bonecp;version="[0.8.0,1.0.0)",org.slf4j;version="1.6.0",javax
 .servlet.http;version="3.0.0",javax.servlet;version="3.0.0",flex.messag
 ing.messages;version="[3.0,4)",javax.crypto,javax.crypto.spec,javax.mai
 l;version="[1.4,2)",javax.mail.internet;version="[1.4,2)",javax.persist
 ence;version="[2.0,3)",org.apache.commons.logging;version="[1.1,2)",org
 .apache.velocity.app;version="[1.7,2)",org.apache.xerces.impl.dv.util;v
 ersion="[2.9,3)",org.bambu.domain.vo;version="[3.0,4)",org.granite.conf
 ig;version="[3.0,4)",org.granite.context;version="[3.0,4)",org.granite.
 gravity;version="[3.0,4)",org.granite.gravity.security;version="[3.0,4)
 ",org.granite.messaging.amf.process;version="[3.0,4)",org.granite.messa
 ging.service.security;version="[3.0,4)",org.granite.messaging.webapp;ve
 rsion="[3.0,4)",org.granite.spring;version="[3.0,4)",org.granite.spring
 .security;version="[3.0,4)",org.granite.tide.annotations;version="[3.0,
 4)",org.granite.tide.data;version="[3.0,4)",org.hibernate.annotations,o
 rg.hibernate.cfg,org.jsoup;version="[1.7,2)",org.jsoup.nodes;version="[
 1.7,2)",org.jsoup.select;version="[1.7,2)",org.osgi.framework;version="
 [1.6,2)",org.springframework.beans;version="[3.2,4)",org.springframewor
 k.beans.factory.annotation;version="[3.2,4)",org.springframework.contex
 t;version="[3.2,4)",org.springframework.security.access.annotation;vers
 ion="[3.1,4)",org.springframework.security.authentication;version="[3.1
 ,4)",org.springframework.security.core;version="[3.1,4)",org.springfram
 ework.security.core.authority;version="[3.1,4)",org.springframework.sec
 urity.core.context;version="[3.1,4)",org.springframework.security.core.
 userdetails;version="[3.1,4)",org.springframework.stereotype;version="[
 3.2,4)",org.springframework.transaction.annotation;version="[3.2,4)",or
 g.springframework.ui.velocity;version="[3.2,4)",org.springframework.web
 .servlet.support;version="[3.2,4)",com.mysql.jdbc;version="5.1.25",org.
 springframework.web.servlet.view.velocity;version="[3.2,4)",org.granite
 .util;version="[3.0,4)",org.eclipse.virgo.util.common;version="[3.6.2,3
 .6.3)",org.slf4j.spi;version="1.6.0",org.springframework.orm.hibernate4
 ;version="[3.2,4)",org.apache.velocity.tools.view;version="[2,3)",org.s
 pringframework.jdbc.datasource;version="[3.2,4)",org.springframework.we
 b.servlet.i18n;version="[3.2,4)",org.apache.activemq;version="[5.3,6)",
 javax.servlet.resources;version="[3.0,4)",org.springframework.web.servl
 et.mvc.annotation;version="[3.2,4)",org.granite.tide.spring.security;ve
 rsion="[3.0,4)",org.apache.activemq.command;version="[5.3,6)",org.eclip
 se.virgo.util.io;version="[3.6.2,3.6.3)",org.springframework.jms.core;v
 ersion="[3.2,4)",org.springframework.jms.connection;version="[3.2,4)",o
 rg.springframework.jms.listener;version="[3.2,4)",org.springframework.w
 eb.servlet.handler;version="[3.2,4)"
Include-Resource: META-INF=src/META-INF,META-INF/spring=src/META-INF/spr
 ing,WEB-INF=src/WEB-INF
Private-Package: WEB-INF,WEB-INF.macros,WEB-INF.resources.css.clients.de
 fault.bootstrap.css,WEB-INF.resources.css.clients.default.bootstrap.img
 ,WEB-INF.resources.css.constellation,WEB-INF.resources.css.constellatio
 n.fancybox,WEB-INF.resources.css.constellation.fancybox.fancybox,WEB-IN
 F.resources.css.default,WEB-INF.resources.css.lucido,WEB-INF.resources.
 css.lucido.colors.blue,WEB-INF.resources.css.lucido.colors,WEB-INF.reso
 urces.css.lucido.colors.green,WEB-INF.resources.css.lucido.colors.purpl
 e,WEB-INF.resources.css.lucido.images.bg,WEB-INF.resources.css.lucido.i
 mages.colorbox,WEB-INF.resources.css.lucido.images,WEB-INF.resources.cs
 s.lucido.images.icons,WEB-INF.resources.css.lucido.images.styleChanger,
 WEB-INF.resources.css.mail.kolibright.default,WEB-INF.resources.css.mai
 l.kolombright.default,WEB-INF.resources,WEB-INF.resources.img.clients.d
 efault.content,WEB-INF.resources.img.clients.default,WEB-INF.resources.
 img.constellation.icons,WEB-INF.resources.img.constellation.samples,WEB
 -INF.resources.img.lucido,WEB-INF.resources.img.mail.kolibright.default
 .images,WEB-INF.resources.img.mail.kolombright.default.images,WEB-INF.r
 esources.js.clients.default.bootstrap.js,WEB-INF.resources.js.clients.d
 efault,WEB-INF.resources.js.constellation.libs,WEB-INF.resources.js.con
 stellation,WEB-INF.resources.js.lucido,WEB-INF.resources.js.mail,WEB-IN
 F.templates.clients.default,WEB-INF.templates.constellation,WEB-INF.tem
 plates.default,WEB-INF.templates,WEB-INF.templates.lucido,WEB-INF.templ
 ates.mail.kolibright.default,WEB-INF.templates.mail.kolombright.default
 ,org.example,org.hibernate.osgitest
Tool: Bnd-2.1.0.20130426-122213
Web-ContextPath: bambuGDS

Re: Spring-DM problem can be solved maybe here? [message #1159827 is a reply to message #1078181] Mon, 28 October 2013 20:26 Go to previous messageGo to next message
Justin Griffin is currently offline Justin GriffinFriend
Messages: 3
Registered: April 2013
Junior Member
Where did you find the 7.0.42 OSGi-ied versions for the Tomcat (catalina) bundles?
Re: Spring-DM problem can be solved maybe here? [message #1160396 is a reply to message #1159827] Tue, 29 October 2013 05:24 Go to previous message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Soon there will be 7.0.47
Watch https://bugs.eclipse.org/bugs/show_bug.cgi?id=420451
Previous Topic:[Gemini Blueprint] What jdk version to target in official builds
Next Topic:How can I outsource persistence.xml plugin in a fragment?
Goto Forum:
  


Current Time: Sat Oct 12 23:23:37 GMT 2024

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

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

Back to the top