jasonwilliams
Sep 8th, 2004, 02:18 AM
hi, mavens:
i'm new to springframeowrk. lately i download an open source software, which makes use of spring and hibernate. however, when deploying to tomcat (5.0.27). it issues EXCEPTION like A.) why may cause this problem.
Or where there's resource explaining such configuration.
i appreciate it, sincerely.
jason
p.s.: the configuration that exception complains would be Exception B.)
=================EXCEPTION A) ================BEG
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
h name 'hibernateProperties' defined in class path resource [applicationContext-
oness-common-model-dataSource-jndi.xml]: Can't resolve reference to bean 'hibern
ateDialect' while setting property 'hibernateDialect'; nested exception is org.s
pringframework.beans.factory.BeanCreationException : Error creating bean with nam
e 'hibernateDialect' defined in class path resource [applicationContext-oness-co
mmon-model-dataSource-jndi.xml]: Initialization of bean failed; nested exception
is javax.naming.NameNotFoundException: Name net.sf.oness.common.model.hibernate
Dialect is not bound in this Context
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
h name 'hibernateDialect' defined in class path resource [applicationContext-one
ss-common-model-dataSource-jndi.xml]: Initialization of bean failed; nested exce
ption is javax.naming.NameNotFoundException: Name net.sf.oness.common.model.hibe
rnateDialect is not bound in this Context
javax.naming.NameNotFoundException: Name net.sf.oness.common.model.hibernateDial
ect is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:768)
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:138)
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:779)
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:138)
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:779)
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:151)
at org.apache.naming.SelectorContext.lookup(SelectorC ontext.java:136)
at javax.naming.InitialContext.lookup(InitialContext. java:347)
at org.springframework.jndi.JndiTemplate$1.doInContex t(JndiTemplate.java
:120)
at org.springframework.jndi.JndiTemplate.execute(Jndi Template.java:85)
at org.springframework.jndi.JndiTemplate.lookup(JndiT emplate.java:117)
at org.springframework.jndi.AbstractJndiLocator.looku p(AbstractJndiLocat
or.java:169)
at org.springframework.jndi.AbstractJndiLocator.after PropertiesSet(Abstr
actJndiLocator.java:164)
at org.springframework.beans.factory.support.Abstract AutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableB eanFactory.java:718)
at org.springframework.beans.factory.support.Abstract AutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFact ory.java:213)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
(AbstractBeanFactory.java:159)
at org.springframework.beans.factory.support.Abstract AutowireCapableBean
Factory.resolveReference(AbstractAutowireCapableBe anFactory.java:658)
at org.springframework.beans.factory.support.Abstract AutowireCapableBean
Factory.resolveValueIfNecessary(AbstractAutowireCa pableBeanFactory.java:626)
at org.springframework.beans.factory.support.Abstract AutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapabl eBeanFactory.java:564)
at org.springframework.beans.factory.support.Abstract AutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFa ctory.java:419)
at org.springframework.beans.factory.support.Abstract AutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFact ory.java:195)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
(AbstractBeanFactory.java:159)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactor y.java:178)
at org.springframework.context.support.AbstractApplic ationContext.refres
h(AbstractApplicationContext.java:272)
at org.springframework.web.context.support.XmlWebAppl icationContext.refr
esh(XmlWebApplicationContext.java:131)
at org.springframework.web.context.ContextLoader.crea teWebApplicationCon
text(ContextLoader.java:154)
at org.springframework.web.context.ContextLoader.init WebApplicationConte
xt(ContextLoader.java:95)
at org.springframework.web.context.ContextLoaderListe ner.contextInitiali
zed(ContextLoaderListener.java:48)
at org.apache.catalina.core.StandardContext.listenerS tart(StandardContex
t.java:3827)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4
343)
at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase
.java:823)
at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:80
7)
at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.inst all(StandardHostDep
loyer.java:277)
at org.apache.catalina.core.StandardHost.install(Stan dardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployWARs( HostConfig.java:617
)
at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:431
)
at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:968)
at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java
:349)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:789)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:478
)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:4
80)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:231
3)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:422)
=================EXCEPTION A) ================END
=================EXCEPTION B) ================BEG
...
<!-- Hibernate Dialect -->
<bean id="hibernateDialect" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>java:comp/env/net.sf.oness.common.model.hibernateDialect</value>
</property>
</bean>
...
=================EXCEPTION B) ================BEG
i'm new to springframeowrk. lately i download an open source software, which makes use of spring and hibernate. however, when deploying to tomcat (5.0.27). it issues EXCEPTION like A.) why may cause this problem.
Or where there's resource explaining such configuration.
i appreciate it, sincerely.
jason
p.s.: the configuration that exception complains would be Exception B.)
=================EXCEPTION A) ================BEG
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
h name 'hibernateProperties' defined in class path resource [applicationContext-
oness-common-model-dataSource-jndi.xml]: Can't resolve reference to bean 'hibern
ateDialect' while setting property 'hibernateDialect'; nested exception is org.s
pringframework.beans.factory.BeanCreationException : Error creating bean with nam
e 'hibernateDialect' defined in class path resource [applicationContext-oness-co
mmon-model-dataSource-jndi.xml]: Initialization of bean failed; nested exception
is javax.naming.NameNotFoundException: Name net.sf.oness.common.model.hibernate
Dialect is not bound in this Context
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean wit
h name 'hibernateDialect' defined in class path resource [applicationContext-one
ss-common-model-dataSource-jndi.xml]: Initialization of bean failed; nested exce
ption is javax.naming.NameNotFoundException: Name net.sf.oness.common.model.hibe
rnateDialect is not bound in this Context
javax.naming.NameNotFoundException: Name net.sf.oness.common.model.hibernateDial
ect is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:768)
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:138)
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:779)
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:138)
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:779)
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:151)
at org.apache.naming.SelectorContext.lookup(SelectorC ontext.java:136)
at javax.naming.InitialContext.lookup(InitialContext. java:347)
at org.springframework.jndi.JndiTemplate$1.doInContex t(JndiTemplate.java
:120)
at org.springframework.jndi.JndiTemplate.execute(Jndi Template.java:85)
at org.springframework.jndi.JndiTemplate.lookup(JndiT emplate.java:117)
at org.springframework.jndi.AbstractJndiLocator.looku p(AbstractJndiLocat
or.java:169)
at org.springframework.jndi.AbstractJndiLocator.after PropertiesSet(Abstr
actJndiLocator.java:164)
at org.springframework.beans.factory.support.Abstract AutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableB eanFactory.java:718)
at org.springframework.beans.factory.support.Abstract AutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFact ory.java:213)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
(AbstractBeanFactory.java:159)
at org.springframework.beans.factory.support.Abstract AutowireCapableBean
Factory.resolveReference(AbstractAutowireCapableBe anFactory.java:658)
at org.springframework.beans.factory.support.Abstract AutowireCapableBean
Factory.resolveValueIfNecessary(AbstractAutowireCa pableBeanFactory.java:626)
at org.springframework.beans.factory.support.Abstract AutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapabl eBeanFactory.java:564)
at org.springframework.beans.factory.support.Abstract AutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFa ctory.java:419)
at org.springframework.beans.factory.support.Abstract AutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFact ory.java:195)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean
(AbstractBeanFactory.java:159)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactor y.java:178)
at org.springframework.context.support.AbstractApplic ationContext.refres
h(AbstractApplicationContext.java:272)
at org.springframework.web.context.support.XmlWebAppl icationContext.refr
esh(XmlWebApplicationContext.java:131)
at org.springframework.web.context.ContextLoader.crea teWebApplicationCon
text(ContextLoader.java:154)
at org.springframework.web.context.ContextLoader.init WebApplicationConte
xt(ContextLoader.java:95)
at org.springframework.web.context.ContextLoaderListe ner.contextInitiali
zed(ContextLoaderListener.java:48)
at org.apache.catalina.core.StandardContext.listenerS tart(StandardContex
t.java:3827)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4
343)
at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase
.java:823)
at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:80
7)
at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.inst all(StandardHostDep
loyer.java:277)
at org.apache.catalina.core.StandardHost.install(Stan dardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployWARs( HostConfig.java:617
)
at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:431
)
at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:968)
at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java
:349)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:789)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:478
)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:4
80)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:231
3)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:422)
=================EXCEPTION A) ================END
=================EXCEPTION B) ================BEG
...
<!-- Hibernate Dialect -->
<bean id="hibernateDialect" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>java:comp/env/net.sf.oness.common.model.hibernateDialect</value>
</property>
</bean>
...
=================EXCEPTION B) ================BEG