-
Jul 13th, 2010, 12:10 AM
#1
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.
-
Jul 13th, 2010, 02:25 AM
#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.
-
Jul 13th, 2010, 04:00 AM
#3
There is no error log present, I'm using Tomcat server. Please let me know the possible reason for this exception.
-
Jul 13th, 2010, 04:05 AM
#4
There must be something... Either at startup or at request processing. It just isn't going to fail, there is some error somewhere...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules