0 Replies Latest reply on Aug 28, 2007 6:47 AM by rodiere

    Problem with Datasource deploying within cluster

    rodiere

      Hi,
      we build an application (EAR) and we deployed in standalone mode without any problem (Jboss 4).

      If we try to deploy this application in a cluster mode, we've got the following exception :

      DEBUG [org.springframework.jndi.JndiTemplate] Looking up JNDI object with name [java:OracleDS]
      INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [xxxxxx]
      ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'alertServices' defined in ServletContext resource [/WEB-INF/ejbContext.xml]:
      javax.naming.NameNotFoundException: OracleDS not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:124)
      at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)
      at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:122)
      at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:147)
      at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:91)
      at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:101)
      at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:164)
      at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:151)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)


      Does anynone can help us ?

      Thanks,

      Stephane