Results 1 to 4 of 4

Thread: No servlet action available:Config problem

  1. #1
    Join Date
    Jul 2010
    Posts
    2

    Default 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. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    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.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Jul 2010
    Posts
    2

    Default

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

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    There must be something... Either at startup or at request processing. It just isn't going to fail, there is some error somewhere...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •