Dear support,
I'm implementing a data source per user using the example at http://community.jaspersoft.com/wiki/switching-datasource-based-user
but when starting tomcat, I get the following exception:
Creating ActionModelService object.
Creating action model infrastructure.
2013-01-06 04:37:38,109 ERROR ContextLoader,localhost-startStop-1:307 - Context
initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SimFreteDS' defined in ServletContext resource [/WEB-INF/applicationContext-simfreteds.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type '$Proxy15 implementing com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.HibernateRepositoryService,com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.ReferenceResolver,com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.RepoManager,org.springframe.work.context.ApplicationContextAware,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised,java.io.Serializable' to required type 'com.jaspersoft.jasperserver.api.metadata.common.service.RepositoryService' for property 'repositoryService'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy15 implementing com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.HibernateRepositoryService,com.jaspersoft.jasperserver.api.metadata.c
ommon.service.impl.hibernate.ReferenceResolver,com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.RepoManager,org.springframework.context.ApplicationContextAware,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised,java.io.Serializable] to required type [com.jaspersoft.jasperserver.api.metadata.common.service.RepositoryService] for property 'repositoryService': no matching editors or conversion strategy found
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:456)
...
Attached are the two classes I've created.
Can you please help me?
Thanks,
Edson
Recommended Comments