This is the error im getting on the client side
Quote:
log4j:WARN No appenders could be found for logger
(org.springframework.beans.factory.access.SingletonBeanFactoryLocator).
log4j:WARN Please initialize the log4j system properly.
org.springframework.beans.factory.access.BootstrapException: Unable to
initialize group definition. Group resource name
[classpath*:beanRefFactory.xml], factory key [beanRefFactoryEjb]; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'beanRefFactory' defined in URL
[jar:file:/D:/tmp/jbpm/core/target/jbpm-core-1.0.jar!/beanRefFactory.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.FatalBeanException: Could not instantiate class
[org.springframework.context.support.ClassPathXmlApplicationContext];
constructor threw exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in class path resource
[applicationContext.xml]: Can't resolve reference to bean 'dataSource' while
setting property 'dataSource'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with na
me 'dataSource' defined in class path resource
[applicationContext-dataSource.xml]: Initialization of bean failed; nested
exception is javax.naming.NameNotFoundException: jbpm-ds not bound
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'beanRefFactory' defined in URL
[jar:file:/D:/tmp/jbpm/core/target/jbpm-core-1.0.jar!/beanRefFactory.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.FatalBeanException: Could not instantiate class
[org.springframework.context.support.ClassPathXmlApplicationContext];
constructor threw exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in class path resource
[applicationContext.xml]: Can't resolve reference to bean 'dataSource' while
setting property 'dataSource'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'dataSource' defined in class path resource
[applicationContext-dataSource.xml]: Initialization of bean failed; nested
exception is javax.naming.NameNotFoundException: jbpm-ds not bound
org.springframework.beans.FatalBeanException: Could not instantiate class
[org.springframework.context.support.ClassPathXmlApplicationContext];
constructor threw exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in class path resource
[applicationContext.xml]: Can't resolve reference to bean 'dataSource' while
setting property 'dataSource'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'dataSource' defined in class path resource
[applicationContext-dataSource.xml]: Initialization of bean failed; nested
exception is javax.naming.NameNotFoundException: jbpm-ds not bound
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in class path resource
[applicationContext.xml]: Can't resolve reference to bean 'dataSource' while
setting property 'dataSource'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'dataSource' defined in class path resource
[applicationContext-dataSource.xml]: Initialization of bean failed; nested
exception is javax.naming.NameNotFoundException: jbpm-ds not bound
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'dataSource' defined in class path resource
[applicationContext-dataSource.xml]: Initialization of bean failed; nested
exception is javax.naming.NameNotFoundException: jbpm-ds not bound
javax.naming.NameNotFoundException: jbpm-ds not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:530)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at
org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:123)
at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
at
org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:71)
at
org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:106)
at
org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:125)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:966)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:358)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:920)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:731)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:340)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:270)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:312)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:80)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:75)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:579)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:322)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:276)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:312)
at
org.springframework.context.access.ContextSingletonBeanFactoryLocator.initializeDefinition(ContextSingletonBeanFactoryLocator.java:136)
at
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:386)
at abcware.jbpm.ServiceLocator.getContext(ServiceLocator.java:106)
at abcware.jbpm.ServiceLocator.getJbpmSB(ServiceLocator.java:170)
at abcware.inclient.InClient.hacerJbpm(InClient.java:34)
at abcware.inclient.InClient.main(InClient.java:46)
(end of quote)
And this is the Spring namespace section in the andromda.xml
Quote:
<namespace name="spring">
<properties>
<property name="dataSource">${dataSource}</property>
<property name="username">${dataSource.user}</property>
<property name="password">${dataSource.password}</property>
<property name="driver">${dataSource.driver.class}</property>
<property name="connectionUrl">${dataSource.url}</property>
<property
name="hibernateDialect">${hibernate.db.dialect}</property>
<property
name="hibernateShowSql">${hibernate.db.showSql}</property>
<property name="hibernateUseQueryCache">false</property>
<property
name="hibernateQueryUseNamedParameters">true</property>
<property
name="sessionFactory">org.springframework.orm.hibernate3.LocalSessionFactoryBean</property>
<property
name="localTransactionManager">org.springframework.orm.hibernate3.HibernateTransactionManager</property>
<property
name="hibernateCacheProvider">org.hibernate.cache.EhCacheProvider</property>
<property
name="hibernateQueryCacheFactory">org.hibernate.cache.StandardQueryCacheFactory</property>
<property
name="hibernateInheritanceStrategy">${hibernate.inheritance.strategy}</property>
<property
name="springTypesPackage">${application.package}</property>
<property
name="daos">${maven.andromda.core.generated.dir}</property>
<property
name="dao-impls">${maven.andromda.core.manual.dir}</property>
<property
name="spring-configuration">${maven.andromda.core.generated.dir}</property>
<property
name="services">${maven.andromda.core.generated.dir}</property>
<property
name="service-impls">${maven.andromda.core.manual.dir}</property>
<!-- to remove any dependency on EJB, comment the following
property -->
<property
name="session-ejbs">${maven.andromda.core.generated.dir}</property>
<!-- uncomment to enable EJB security
<property name="securityRealm">${application.id}</property>
-->
<property name="userTransactionName">null</property>
<property
name="transactionManagerName">java:/TransactionManager</property>
</properties>
</namespace>
(end of quote)
--
Diego Bendlin
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3036#3036
Posting to http://forum.andromda.org/ is preferred over posting to the mailing
list!
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user