1 Reply Latest reply: Jul 24, 2014 10:42 AM by Vijaya Moderator -Oracle RSS

    How to deploy .war file with Spring 2.5/Hibernate 3 into WebLogic 10.3.6

    983033

      Hey everyone,

       

      I tried to deploy a .war file, which is written in Spring 2.5/Hibernate 3/J2EE 1.4, into WebLogic 10.3.6. Failed.

       

      following are steps I did:

       

      install the war file via Install Application Assistant of webLogic console
      1. select .war file
      2. select Install this deployment as an application
      3. select a Server (WLS_easement)
      4. follow default steps

      5 ...
      6. click Finish button

      7. go back to Deployments, State of the .war is Distribute Initializing
      8. click Active Changes button.
      9. state is changed to Prepared
      10. select the Deployment, select Start -> Servicing all requests
      11. got Failed state

       

      12, then I check WLS_easement.out
      ...org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed...

       

      13. in /WEB-INF/applicationContext.xml,

      <bean id="springSessionFactory"

        class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">

        <property name="configLocation">

         <value>classpath:hibernate.cfg.xml</value>

        </property>

      </bean>

       

      so looks like WebLogic has trouble to connect Hibernate 3? is there specific .jar required?

       

      Can somebody shed a light on this or any input you may have?

       

      Thanks in advance,

       

      Feng