Announcement Announcement Module
Collapse
No announcement yet.
No servlet action available:Config problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • No servlet action available:Config problem

    Hi everyone,

    I have configed Struts+Spring+Hibernate in my application. I'm using org.springframework.web.struts.DelegatingActionPro xy to manage action in spring applicationContext.xml. The problem is when I map hibernate resource 'Survey.hbm.xml', it throws HTTP Status 503 - Servlet action is currently unavailable. My mapping code is:

    <bean id="sessionFactory"
    class="org.springframework.orm.hibernate3.LocalSes sionFactoryBean">
    <property name="hibernateProperties">
    <props>
    <prop key="hibernate.dialect">org.hibernate.dialect.Orac leDialect</prop>
    </props>
    </property>
    <property name="dataSource">
    <ref local="edsDataSource"/>
    </property>
    <property name="mappingResources">
    <list>
    <value>
    com/pg/eds/newproducts/beans/Survey.hbm.xml
    </value></list>
    </property></bean>

    <bean id="edsDataSource" class="org.springframework.jdbc.datasource.DriverM anagerDataSource">
    <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver">
    </property>
    <property name="url" value="jdbc:oracle:thin:@moon:1521:orcl"></property>
    <property name="username" value="eds"></property>
    <property name="password" value="eds"></property>
    </bean>


    If I comment out the mappingResources property it, works fine. Please help me out!!!

    Thanks you in advance.

  • #2
    Please use [ code][/code ] tags when posting code .

    Check your log, I guess your contet isn'tloading due to the fact that the file cannot be found.

    Comment


    • #3
      There is no error log present, I'm using Tomcat server. Please let me know the possible reason for this exception.

      Comment


      • #4
        There must be something... Either at startup or at request processing. It just isn't going to fail, there is some error somewhere...

        Comment

        Working...
        X