bdf 修改完数据源之后,数据库已经连接成功,页面报错

bdf 修改完数据源之后,数据库已经连接成功,页面报错,只修改了datasource配置文件
报错如下:
HTTP Status 404 - /

type Status report

message /
description The requested resource (/) is not available.

Apache Tomcat/7.0.20

修改配置文件如下:


<bean id="bdf2.jdbcTransactionManager" class="com.bstek.bdf2.core.orm.transaction.JdbcTransactionManager">
<property name="dataSource" ref="dataSource" />
</bean>
<tx:annotation-driven proxy-target-class="true" transaction-manager="bdf2.jdbcTransactionManager" />
<!-- 修改数据源的时候,一定不要忘记修改sessionFactory中hibernate.dialect -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="url" value="jdbc:oracle:thin:@localhost:1521:orcl" />
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
<property name="username" value="liuxuemei" />
<property name="password" value="hljyunidc" />
<property name="minIdle" value="10" />
<property name="maxActive" value="20" />
<property name="maxWait" value="1000" />
<property name="removeAbandonedTimeout" value="60" />
<property name="removeAbandoned" value="true" />
<property name="logAbandoned" value="true" />
</bean>
<bean parent="bdf2.dataSourceRegister">
<property name="dataSource" ref="dataSource" />
<property name="name" value="hsql" />
<property name="asDefault" value="true" />
</bean>
<bean id="sessionFactory" parent="bdf2.sessionFactory">
<property name="dataSourceName" value="hsql" />
<property name="entityInterceptor" ref="bdf2.unByteCodeProxyInterceptor" />
<property name="useTransactionAwareDataSource" value="true" />
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.hbm2ddl.auto">update</prop>
</props>
</property>
</bean>
<bdf:anonymous-url urlPattern="/index.jsp"/>
<bdf:anonymous-url urlPattern="/images/*.*"/>
<bdf:anonymous-url urlPattern="/favicon.ico"/>
</beans>
已邀请:

WilliamJiang

赞同来自:

请查看系统启动日志,应该有报错。

WilliamJiang

赞同来自:

你没有配置首页面吧?
 
bdf的默认登陆页面:index.jsp要调整的,这是index.jsp的默认代码:
<html>
<head>
<meta http-equiv="refresh" content="0;url=bdf2.core.view.frame.Login.d">
</head>
</html>

要回复问题请先登录注册