02-nov-2007 11:51:33
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
destroySingletons
INFO: Destroying singletons in
{org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans
[dataSource,sessionFactory,hibernateTemplate,vendorDao,transactionManager,Services,inventoryService];
root of BeanFactory hierarchy}
02-nov-2007 11:51:33 org.springframework.web.context.ContextLoader
initWebApplicationContext
GRAVE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'dataSource': Invocation of init method failed; nested exception
is javax.naming.NameNotFoundException: El nombre jdbc no este asociado a
este contexto
Caused by: javax.naming.NameNotFoundException: El nombre jdbc no este
asociado a este contexto
at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
error que no me encuentra el tipo de conexion:
sessionFactory: (en applicationContext.xml /WEB-INF)
<jee:jndi-lookup id="dataSource" jndi-name="java:comp/env/jdbc/gemsDB"
resource-ref="true"/>
<!-- Hibernate SessionFactory Definition -->
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="mappingResources">
<list>
<value>
prueba.hbm.xml
</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.PostgreSQLDialect
</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.bytecode.use_refleion_optimizer">
true
</prop>
<prop key="hibernate.cache.provider_class">
org.hibernate.cache.EhCacheProvider
</prop>
</props>
</property>
<property name="dataSource">
<ref bean="dataSource" />
</property>
</bean>
en server.xml tomcat 5.5.23:
<GlobalNamingResources>
<Environment
name="simpleValue"
type="java.lang.Integer"
value="30"/>
<Resource
auth="Container"
name="jdbc/gemsDB"
type="javax.sql.DataSource"
maxActive="20"
maxIdle="10"
username="postgres"
maxWait="-1"
driverClassName="org.postgresql.Driver"
default_schema="inventory"
password="postgres"
url="jdbc:postgresql://localhost/prueba_o"/>
<GlobalNamingResources/>
No me crea la conexion y ya no se donde mirar ni que hacer, necesito ayuda,
gracias.
Un saludo.
I doesn't creates the connection between de DB and tomcat, I need help,
thanks.
--
View this message in context: http://www.nabble.com/spring-hibernate-faces-tomcat5.5.23-tf4736610.html#a13545266
Sent from the springframework-developer mailing list archive at Nabble.com.
|