论坛首页 Java企业应用论坛

struts+hibernate+spring多数据库提问

浏览 11405 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2006-01-21  
一直没有配置成功,按照robin的一个帖子里面的方法做的,不知错在哪
服务器 :tomcat1.5,数据库:mysql中的两张表和oracle中的一张表 工具:jbulider2005
每个数据库配置过程如下:
1。在web应用的\WEB-INF\classes\目录下写属性文件,配置数据库连接信息connect.properties:


datasource.driverClassName=oracle.jdbc.driver.OracleDriver
datasource.url=jdbc:oracle:thin:@192.168.16.131:1521:shcw2
datasource.username=scott
datasource.password=tiger



datasource.maxActive=10
datasource.maxIdle=2
datasource.maxWait=120000

#datasource.defaultAutoCommit=true
datasource.defaultAutoCommit=false

datasource.whenExhaustedAction=1
datasource.validationQuery=select 1 from dual
datasource.testOnBorrow=true
datasource.testOnReturn=false

hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect
#hibernate.dialect=net.sf.hibernate.dialect.SQLServerDialect

hibernate.jdbc.batch_size=25
hibernate.jdbc.fetch_size=50
hibernate.show_sql=true
hibernate.hbm2ddl.auto=create-drop

2 .然后在spring配置文件applicationContext.xml中读取:
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
	<!-- ========================= Start of PERSISTENCE DEFINITIONS ========================= -->
	<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="location">
			<value>/connect.properties</value>
		</property>
	</bean>
	<!-- Choose the dialect that matches your "dataSource" definition -->
	<bean id="dataSource2" class="org.apache.commons.dbcp.BasicDataSource">
		<property name="driverClassName">
			<value>${datasource.driverClassName}</value>
		</property>
		<property name="url">
			<value>${datasource.url}</value>
		</property>
		<property name="username">
			<value>${datasource.username}</value>
		</property>
		<property name="password">
			<value>${datasource.password}</value>
		</property>
		<property name="maxActive">
			<value>${datasource.maxActive}</value>
		</property>
		<property name="maxIdle">
			<value>${datasource.maxIdle}</value>
		</property>
		<property name="maxWait">
			<value>${datasource.maxWait}</value>
		</property>
		<property name="defaultAutoCommit">
			<value>${datasource.defaultAutoCommit}</value>
		</property>
	</bean>
	<bean id="mySessionFactory2" class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
		<property name="dataSource">
			<ref local="dataSource2"/>
		</property>
		<property name="mappingResources">
			<list>
				<value>com/laoer/bbscs/beanblog/Autoping.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Bookmark.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Comment.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Entryattribute.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Folder.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Folderassoc.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Newsfeed.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Pingcategory.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Pingqueueentry.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Pingtarget.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/RagConfig.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/RagEntry.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/RagGroup.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/RagGroupSubscription.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/RagSubscription.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Referer.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Rollerconfig.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/RollerProperty.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Rolleruser.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Usercookie.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Userrole.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Weblogcategory.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Weblogcategoryassoc.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Weblogentry.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Webpage.hbm.xml</value>
				<value>com/laoer/bbscs/beanblog/Website.hbm.xml</value>
			</list>
		</property>
		<property name="hibernateProperties">
			<props>
				<prop key="hibernate.dialect">${hibernate.dialect}</prop>
				<prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
				<prop key="hibernate.jdbc.fetch_size">${hibernate.jdbc.fetch_size}</prop>
				<prop key="hibernate.jdbc.batch_size">${hibernate.jdbc.batch_size}</prop>
			</props>
		</property>
	</bean>
	<!-- Transaction manager for a single Hibernate SessionFactory (alternative to JTA); -->
	<!-- <bean id="myTransactionManager" class="org.springframework.orm.hibernate.HibernateTransactionManager">
    <property name="sessionFactory">
      <ref local="mySessionFactory"/>
    </property>
  </bean> -->
	<bean id="rollerDAO" class="com.laoer.bbscs.dao.hibernate.RollerRegHibernateDAO">
		<property name="sessionFactory">
			<ref local="mySessionFactory2"/>
		</property>
	</bean>
	<bean id="rollerService" class="com.laoer.bbscs.business.service.RollerRegServiceImp">
		<property name="rollerDAO">
			<ref local="rollerDAO"/>
		</property>
	</bean>
	<bean id="globleReg" class="com.laoer.bbscs.web.servlet.GloableRegisterServlet">
		<property name="rollerService">
			<ref local="rollerService"/>
		</property>
	</bean>
</beans>


3。在AppContext中读取applicationConext.xml
public class AppContext
{

  private static AppContext instance;

  private AbstractApplicationContext appContext;
  private AbstractApplicationContext appSiteContext;
  private AbstractApplicationContext appRollerContext;

  public synchronized static AppContext getInstance();
  {
    if (instance == null);
    {
      instance = new AppContext();;
    }
    return instance;
  }

  private AppContext();
  {
    this.appContext = new ClassPathXmlApplicationContext(
        "/applicationContext.xml");;
    this.appRollerContext = new ClassPathXmlApplicationContext(
        "/applicationContext2.xml");;
    this.appSiteContext = new ClassPathXmlApplicationContext(
        "/applicationContext3.xml");;
  }

  public AbstractApplicationContext getAppContext();
  {
    return appContext;
  }

  public AbstractApplicationContext getAppSiteContext();
  {
    return appSiteContext;
  }

  public AbstractApplicationContext getAppRollerContext();
  {
    return appRollerContext;
  }
}


4一个启动时加载的listener:SysListener
里面有一段
  ..............
    AppContext.getInstance();;
      ................

然后将这SysListener在web.xml中配置,以便系统启动的时候加载
  <context-param>
[color=darkred]    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/applicationContext.xml</param-value>
  </context-param>[/color]
  <filter>
    <filter-name>EncodingFilter</filter-name>
    <display-name>EncodingFilter</display-name>
    <description>EncodingFilter</description>
    <filter-class>com.laoer.comm.web.EncodingFilter</filter-class>
    <init-param>
      <param-name>encoding</param-name>
      <param-value>UTF-8</param-value>
    </init-param>
  </filter>
  <filter-mapping>
    <filter-name>EncodingFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
[color=darkred]  <listener>
    <listener-class>com.laoer.bbscs.web.servlet.SysListener</listener-class>
  </listener>[/[/color]code]
在jbuilder中启动tomcat报错
 
[org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'bulletinDAO'

2006-01-21 16:26:38,656 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'blackUserDAO'

2006-01-21 16:26:38,687 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'advDAO'

2006-01-21 16:26:38,718 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'eliteDAO'

2006-01-21 16:26:38,921 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'voteUserDAO'

2006-01-21 16:26:39,078 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'sysNumStatDAO'

2006-01-21 16:26:39,109 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'onlineStatDAO'

2006-01-21 16:26:39,125 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'userFileInPostCache'

2006-01-21 16:26:39,140 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'postFileCache'

2006-01-21 16:26:39,171 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'userInfoService'

2006-01-21 16:26:39,250 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'userDetailService'

2006-01-21 16:26:39,281 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'cgntService'

2006-01-21 16:26:39,296 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'boardService'

2006-01-21 16:26:39,312 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'boardsService'

2006-01-21 16:26:39,343 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'userOnlineService'

2006-01-21 16:26:39,359 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'userInfoCache'

2006-01-21 16:26:39,390 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'friendService'

2006-01-21 16:26:39,406 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'bookMarkService'

2006-01-21 16:26:39,421 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'guestBookService'

2006-01-21 16:26:39,437 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'forumService'

2006-01-21 16:26:39,453 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'subscibeService'

2006-01-21 16:26:39,468 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'voteService'

2006-01-21 16:26:39,484 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'voteItemService'

2006-01-21 16:26:39,515 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'commendService'

2006-01-21 16:26:39,531 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'bulletinService'

2006-01-21 16:26:39,546 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'blackUserService'

2006-01-21 16:26:39,656 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'advService'

2006-01-21 16:26:39,718 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'eliteService'

2006-01-21 16:26:39,734 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'voteUserService'

2006-01-21 16:26:39,750 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'sysNumStatService'

2006-01-21 16:26:39,781 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'onlineStatService'

2006-01-21 16:26:39,796 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'boardsCount'

2006-01-21 16:26:39,812 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'advload'

2006-01-21 16:26:39,812 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'onlineclear'

2006-01-21 16:26:39,828 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'subscibeSend'

2006-01-21 16:26:39,843 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'voteuserclear'

2006-01-21 16:26:39,859 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'boardsCountTask'

2006-01-21 16:26:39,875 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'advloadTask'

2006-01-21 16:26:39,875 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'onlineClearTask'

2006-01-21 16:26:39,875 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'subscibeSendTask'

2006-01-21 16:26:39,875 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'voteUserClearTask'

2006-01-21 16:26:39,875 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'timerFactory'

2006-01-21 16:26:39,890 [org.springframework.scheduling.timer.TimerFactoryBean]-[INFO] Initializing Timer

2006-01-21 16:26:39,890 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'sysNumStatJob'

2006-01-21 16:26:40,062 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'onlineStatJob'

2006-01-21 16:26:40,078 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'sysNumStatJobCronTrigger'

2006-01-21 16:26:40,250 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'onlineStatJobCronTrigger'

2006-01-21 16:26:40,250 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'org.springframework.scheduling.quartz.SchedulerFactoryBean'

Hibernate: select board0_.ID as ID, board0_.BoardName as BoardName, board0_.EBardName as EBardName, board0_.BMaster as BMaster, board0_.Attrib as Attrib, board0_.Orders as Orders from BBSCS_BOARD board0_ order by  board0_.Orders

2006-01-21 16:26:40,890 [org.quartz.simpl.SimpleThreadPool]-[INFO] Job execution threads will use class loader of thread: main

Hibernate: select boards0_.BoardID as BoardID__, boards0_.ID as ID__, boards0_.ID as ID0_, boards0_.BoardsName as BoardsName0_, boards0_.BoardsEName as BoardsEN3_0_, boards0_.MainMaster as MainMaster0_, boards0_.AssiMaster as AssiMaster0_, boards0_.HideMaster as HideMaster0_, boards0_.Explains as Explains0_, boards0_.Bulletin as Bulletin0_, boards0_.UseStat as UseStat0_, boards0_.Orders as Orders0_, boards0_.MainPostNum as MainPos11_0_, boards0_.PostNum as PostNum0_, boards0_.Pic as Pic0_, boards0_.LastPostTitle as LastPos14_0_, boards0_.LastPostID as LastPostID0_, boards0_.LastPostUser as LastPos16_0_, boards0_.LastPostUserID as LastPos17_0_, boards0_.LastPostTime as LastPos18_0_, boards0_.Attrib1 as Attrib10_, boards0_.Attrib2 as Attrib20_, boards0_.Attrib3 as Attrib30_, boards0_.Attrib4 as Attrib40_, boards0_.Attrib5 as Attrib50_, boards0_.Attrib6 as Attrib60_, boards0_.Attrib7 as Attrib70_, boards0_.Attrib8 as Attrib80_, boards0_.Attrib9 as Attrib90_, boards0_.Attrib10 as Attrib100_, boards0_.UserCanIn as UserCanIn0_, boards0_.BoardID as BoardID0_ from BBSCS_BOARDS boards0_ where boards0_.BoardID=? order by boards0_.Orders asc

2006-01-21 16:26:41,156 [org.quartz.simpl.RAMJobStore]-[INFO] RAMJobStore initialized.

2006-01-21 16:26:41,156 [org.quartz.impl.StdSchedulerFactory]-[INFO] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'

2006-01-21 16:26:41,156 [org.quartz.impl.StdSchedulerFactory]-[INFO] Quartz scheduler version: 1.4.2

2006-01-21 16:26:41,171 [org.springframework.scheduling.quartz.SchedulerFactoryBean]-[INFO] Starting Quartz Scheduler

2006-01-21 16:26:41,171 [org.quartz.core.QuartzScheduler]-[INFO] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.

2006-01-21 16:26:41,171 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'boradList'

2006-01-21 16:26:41,203 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'post'

2006-01-21 16:26:41,609 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'bbsDAO'

Hibernate: select count(forum130_.ID) as x0_0_ from BBSCS_FORUM_13 forum130_ where (forum130_.BoardID=? )and(forum130_.IsNew=1 )and(forum130_.DelSign=0 )and(forum130_.Auditing=0 )

2006-01-21 16:26:41,640 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'bbsService'

Hibernate: select count(forum130_.ID) as x0_0_ from BBSCS_FORUM_13 forum130_ where (forum130_.BoardID=? )and(forum130_.DelSign=? )and(forum130_.Auditing=? )

2006-01-21 16:26:41,734 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'globeBBs'

Hibernate: update BBSCS_BOARDS set BoardsName=?, BoardsEName=?, MainMaster=?, AssiMaster=?, HideMaster=?, Explains=?, Bulletin=?, UseStat=?, Orders=?, MainPostNum=?, PostNum=?, Pic=?, LastPostTitle=?, LastPostID=?, LastPostUser=?, LastPostUserID=?, LastPostTime=?, Attrib1=?, Attrib2=?, Attrib3=?, Attrib4=?, Attrib5=?, Attrib6=?, Attrib7=?, Attrib8=?, Attrib9=?, Attrib10=?, UserCanIn=?, BoardID=? where ID=?

Hibernate: select count(forum90_.ID) as x0_0_ from BBSCS_FORUM_9 forum90_ where (forum90_.BoardID=? )and(forum90_.IsNew=1 )and(forum90_.DelSign=0 )and(forum90_.Auditing=0 )

Hibernate: select count(forum90_.ID) as x0_0_ from BBSCS_FORUM_9 forum90_ where (forum90_.BoardID=? )and(forum90_.DelSign=? )and(forum90_.Auditing=? )

Hibernate: update BBSCS_BOARDS set BoardsName=?, BoardsEName=?, MainMaster=?, AssiMaster=?, HideMaster=?, Explains=?, Bulletin=?, UseStat=?, Orders=?, MainPostNum=?, PostNum=?, Pic=?, LastPostTitle=?, LastPostID=?, LastPostUser=?, LastPostUserID=?, LastPostTime=?, Attrib1=?, Attrib2=?, Attrib3=?, Attrib4=?, Attrib5=?, Attrib6=?, Attrib7=?, Attrib8=?, Attrib9=?, Attrib10=?, UserCanIn=?, BoardID=? where ID=?

Hibernate: select count(forum100_.ID) as x0_0_ from BBSCS_FORUM_10 forum100_ where (forum100_.BoardID=? )and(forum100_.IsNew=1 )and(forum100_.DelSign=0 )and(forum100_.Auditing=0 )

Hibernate: select count(forum100_.ID) as x0_0_ from BBSCS_FORUM_10 forum100_ where (forum100_.BoardID=? )and(forum100_.DelSign=? )and(forum100_.Auditing=? )

Hibernate: update BBSCS_BOARDS set BoardsName=?, BoardsEName=?, MainMaster=?, AssiMaster=?, HideMaster=?, Explains=?, Bulletin=?, UseStat=?, Orders=?, MainPostNum=?, PostNum=?, Pic=?, LastPostTitle=?, LastPostID=?, LastPostUser=?, LastPostUserID=?, LastPostTime=?, Attrib1=?, Attrib2=?, Attrib3=?, Attrib4=?, Attrib5=?, Attrib6=?, Attrib7=?, Attrib8=?, Attrib9=?, Attrib10=?, UserCanIn=?, BoardID=? where ID=?

2006-01-21 16:26:42,000 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [placeholderConfig,dataSource,mySessionFactory,userInfoDAO,userDetailDAO,boardDAO,boardsDAO,userOnlineDAO,friendDAO,bookMarkDAO,guestBookDAO,cgntDAO,daoUtil,forumDAO,subscibeDAO,voteDAO,voteItemDAO,commendDAO,bulletinDAO,blackUserDAO,advDAO,eliteDAO,voteUserDAO,sysNumStatDAO,onlineStatDAO,userFileInPostCache,postFileCache,userInfoService,userDetailService,cgntService,boardService,boardsService,userOnlineService,userInfoCache,friendService,bookMarkService,guestBookService,forumService,subscibeService,voteService,voteItemService,commendService,bulletinService,blackUserService,advService,eliteService,voteUserService,sysNumStatService,onlineStatService,boardsCount,advload,onlineclear,subscibeSend,voteuserclear,boardsCountTask,advloadTask,onlineClearTask,subscibeSendTask,voteUserClearTask,timerFactory,sysNumStatJob,onlineStatJob,sysNumStatJobCronTrigger,onlineStatJobCronTrigger,org.springframework.scheduling.quartz.SchedulerFactoryBean,boradList,post,bbsDAO,bbsService,globeBBs]; Root of BeanFactory hierarchy}

2006-01-21 16:26:42,015 [org.springframework.scheduling.timer.TimerFactoryBean]-[INFO] Cancelling Timer

2006-01-21 16:26:42,093 [org.springframework.scheduling.quartz.SchedulerFactoryBean]-[INFO] Shutting down Quartz Scheduler

2006-01-21 16:26:42,093 [org.quartz.core.QuartzScheduler]-[INFO] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutting down.

2006-01-21 16:26:42,109 [org.quartz.core.QuartzScheduler]-[INFO] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.

2006-01-21 16:26:42,109 [org.quartz.core.QuartzScheduler]-[INFO] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete.

2006-01-21 16:26:42,109 [org.springframework.orm.hibernate.LocalSessionFactoryBean]-[INFO] Closing Hibernate SessionFactory

[color=blue]2006-01-21 16:26:42,109 [net.sf.hibernate.impl.SessionFactoryImpl]-[INFO] closing

2006-1-21 16:26:42 org.apache.catalina.core.StandardContext start

[color=darkred]严重: Error listenerStart

2006-1-21 16:26:42 org.apache.catalina.core.StandardContext start

严重: Context startup failed due to previous errors[/color]

2006-01-21 16:26:42,140 [/color][org.springframework.beans.factory.xml.XmlBeanDefinitionReader]-[INFO] Loading XML bean definitions from class path resource [applicationContext.xml]

2006-01-21 16:26:42,406 [org.springframework.context.support.ClassPathXmlApplicationContext]-[INFO] Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=14439476]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [placeholderConfig,dataSource,mySessionFactory,userInfoDAO,userDetailDAO,boardDAO,boardsDAO,userOnlineDAO,friendDAO,bookMarkDAO,guestBookDAO,cgntDAO,daoUtil,forumDAO,subscibeDAO,voteDAO,voteItemDAO,commendDAO,bulletinDAO,blackUserDAO,advDAO,eliteDAO,voteUserDAO,sysNumStatDAO,onlineStatDAO,userFileInPostCache,postFileCache,userInfoService,userDetailService,cgntService,boardService,boardsService,userOnlineService,userInfoCache,friendService,bookMarkService,guestBookService,forumService,subscibeService,voteService,voteItemService,commendService,bulletinService,blackUserService,advService,eliteService,voteUserService,sysNumStatService,onlineStatService,boardsCount,advload,onlineclear,subscibeSend,voteuserclear,boardsCountTask,advloadTask,onlineClearTask,subscibeSendTask,voteUserClearTask,timerFactory,sysNumStatJob,onlineStatJob,sysNumStatJobCronTrigger,onlineStatJobCronTrigger,org.springframework.scheduling.quartz.SchedulerFactoryBean,boradList,post,bbsDAO,bbsService,globeBBs]; Root of BeanFactory hierarchy

2006-01-21 16:26:42,406 [org.springframework.context.support.ClassPathXmlApplicationContext]-[INFO] 70 beans defined in ApplicationContext [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=14439476]

2006-01-21 16:26:42,406 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'placeholderConfig'

2006-01-21 16:26:42,406 [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]-[INFO] Loading properties from class path resource [init.properties]

2006-01-21 16:26:42,453 [org.springframework.context.support.ClassPathXmlApplicationContext]-[INFO] No MessageSource found for context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=14439476]: using empty StaticMessageSource

2006-01-21 16:26:42,453 [org.springframework.context.support.ClassPathXmlApplicationContext]-[INFO] Refreshing listeners

2006-01-21 16:26:42,453 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [placeholderConfig,dataSource,mySessionFactory,userInfoDAO,userDetailDAO,boardDAO,boardsDAO,userOnlineDAO,friendDAO,bookMarkDAO,guestBookDAO,cgntDAO,daoUtil,forumDAO,subscibeDAO,voteDAO,voteItemDAO,commendDAO,bulletinDAO,blackUserDAO,advDAO,eliteDAO,voteUserDAO,sysNumStatDAO,onlineStatDAO,userFileInPostCache,postFileCache,userInfoService,userDetailService,cgntService,boardService,boardsService,userOnlineService,userInfoCache,friendService,bookMarkService,guestBookService,forumService,subscibeService,voteService,voteItemService,commendService,bulletinService,blackUserService,advService,eliteService,voteUserService,sysNumStatService,onlineStatService,boardsCount,advload,onlineclear,subscibeSend,voteuserclear,boardsCountTask,advloadTask,onlineClearTask,subscibeSendTask,voteUserClearTask,timerFactory,sysNumStatJob,onlineStatJob,sysNumStatJobCronTrigger,onlineStatJobCronTrigger,org.springframework.scheduling.quartz.SchedulerFactoryBean,boradList,post,bbsDAO,bbsService,globeBBs]; Root of BeanFactory hierarchy]

2006-01-21 16:26:42,468 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'dataSource'

2006-01-21 16:26:42,484 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'mySessionFactory'

2006-01-21 16:26:42,609 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.UserInfo -> BBSCS_USERINFO

2006-01-21 16:26:42,656 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.UserDetail -> BBSCS_USERDETAIL

2006-01-21 16:26:42,671 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Board -> BBSCS_BOARD

2006-01-21 16:26:42,718 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Boards -> BBSCS_BOARDS

2006-01-21 16:26:42,796 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.UserOnline -> BBSCS_USERONLINE

2006-01-21 16:26:42,812 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Friend0 -> BBSCS_FRIEND_0

2006-01-21 16:26:42,828 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Friend1 -> BBSCS_FRIEND_1

2006-01-21 16:26:42,843 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Friend2 -> BBSCS_FRIEND_2

2006-01-21 16:26:42,921 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Friend3 -> BBSCS_FRIEND_3

2006-01-21 16:26:42,937 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Friend4 -> BBSCS_FRIEND_4

2006-01-21 16:26:43,000 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Friend5 -> BBSCS_FRIEND_5

2006-01-21 16:26:43,031 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Friend6 -> BBSCS_FRIEND_6

2006-01-21 16:26:43,031 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Friend7 -> BBSCS_FRIEND_7

2006-01-21 16:26:43,046 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Friend8 -> BBSCS_FRIEND_8

2006-01-21 16:26:43,062 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Friend9 -> BBSCS_FRIEND_9

2006-01-21 16:26:43,125 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.BookMark0 -> BBSCS_BOOKMARK_0

2006-01-21 16:26:43,140 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.BookMark1 -> BBSCS_BOOKMARK_1

2006-01-21 16:26:43,156 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.BookMark2 -> BBSCS_BOOKMARK_2

2006-01-21 16:26:43,171 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.BookMark3 -> BBSCS_BOOKMARK_3

2006-01-21 16:26:43,218 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.BookMark4 -> BBSCS_BOOKMARK_4

2006-01-21 16:26:43,234 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.BookMark5 -> BBSCS_BOOKMARK_5

2006-01-21 16:26:43,250 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.BookMark6 -> BBSCS_BOOKMARK_6

2006-01-21 16:26:43,250 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.BookMark7 -> BBSCS_BOOKMARK_7

2006-01-21 16:26:43,265 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.BookMark8 -> BBSCS_BOOKMARK_8

2006-01-21 16:26:43,281 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.BookMark9 -> BBSCS_BOOKMARK_9

2006-01-21 16:26:43,296 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.GuestBook0 -> BBSCS_GUESTBOOK_0

2006-01-21 16:26:43,296 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.GuestBook1 -> BBSCS_GUESTBOOK_1

2006-01-21 16:26:43,343 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.GuestBook2 -> BBSCS_GUESTBOOK_2

2006-01-21 16:26:43,359 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.GuestBook3 -> BBSCS_GUESTBOOK_3

2006-01-21 16:26:43,375 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.GuestBook4 -> BBSCS_GUESTBOOK_4

2006-01-21 16:26:43,390 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.GuestBook5 -> BBSCS_GUESTBOOK_5

2006-01-21 16:26:43,390 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.GuestBook6 -> BBSCS_GUESTBOOK_6

2006-01-21 16:26:43,406 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.GuestBook7 -> BBSCS_GUESTBOOK_7

2006-01-21 16:26:43,437 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.GuestBook8 -> BBSCS_GUESTBOOK_8

2006-01-21 16:26:43,453 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.GuestBook9 -> BBSCS_GUESTBOOK_9

2006-01-21 16:26:43,468 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum -> BBSCS_FORUM

2006-01-21 16:26:43,484 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum0 -> BBSCS_FORUM_0

2006-01-21 16:26:43,515 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum1 -> BBSCS_FORUM_1

2006-01-21 16:26:43,531 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum2 -> BBSCS_FORUM_2

2006-01-21 16:26:43,562 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum3 -> BBSCS_FORUM_3

2006-01-21 16:26:43,578 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum4 -> BBSCS_FORUM_4

2006-01-21 16:26:43,593 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum5 -> BBSCS_FORUM_5

2006-01-21 16:26:43,609 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum6 -> BBSCS_FORUM_6

2006-01-21 16:26:43,625 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum7 -> BBSCS_FORUM_7

2006-01-21 16:26:43,656 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum8 -> BBSCS_FORUM_8

2006-01-21 16:26:43,671 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum9 -> BBSCS_FORUM_9

2006-01-21 16:26:43,687 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum10 -> BBSCS_FORUM_10

2006-01-21 16:26:43,703 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum11 -> BBSCS_FORUM_11

2006-01-21 16:26:43,718 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum12 -> BBSCS_FORUM_12

2006-01-21 16:26:43,734 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum13 -> BBSCS_FORUM_13

2006-01-21 16:26:43,750 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum14 -> BBSCS_FORUM_14

2006-01-21 16:26:43,781 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum15 -> BBSCS_FORUM_15

2006-01-21 16:26:43,796 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum16 -> BBSCS_FORUM_16

2006-01-21 16:26:43,812 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum17 -> BBSCS_FORUM_17

2006-01-21 16:26:43,828 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum18 -> BBSCS_FORUM_18

2006-01-21 16:26:43,843 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Forum19 -> BBSCS_FORUM_19

2006-01-21 16:26:43,859 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Subscibe0 -> BBSCS_SUBSCIBE_0

2006-01-21 16:26:43,859 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Subscibe1 -> BBSCS_SUBSCIBE_1

2006-01-21 16:26:43,906 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Subscibe2 -> BBSCS_SUBSCIBE_2

2006-01-21 16:26:43,921 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Subscibe3 -> BBSCS_SUBSCIBE_3

2006-01-21 16:26:43,937 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Subscibe4 -> BBSCS_SUBSCIBE_4

2006-01-21 16:26:43,953 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Subscibe5 -> BBSCS_SUBSCIBE_5

2006-01-21 16:26:43,968 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Subscibe6 -> BBSCS_SUBSCIBE_6

2006-01-21 16:26:43,984 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Subscibe7 -> BBSCS_SUBSCIBE_7

2006-01-21 16:26:44,015 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Subscibe8 -> BBSCS_SUBSCIBE_8

2006-01-21 16:26:44,031 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Subscibe9 -> BBSCS_SUBSCIBE_9

2006-01-21 16:26:44,031 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Vote -> BBSCS_VOTE

2006-01-21 16:26:44,046 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.VoteItem -> BBSCS_VOTEITEM

2006-01-21 16:26:44,062 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Commend -> BBSCS_COMMEND

2006-01-21 16:26:44,078 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Bulletin -> BBSCS_BULLETIN

2006-01-21 16:26:44,078 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.BlackUser -> BBSCS_BLACKUSER

2006-01-21 16:26:44,125 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Adv -> BBSCS_ADV

2006-01-21 16:26:44,140 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.Elite -> BBSCS_ELITE

2006-01-21 16:26:44,140 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.VoteUser -> BBSCS_VOTEUSER

2006-01-21 16:26:44,156 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.SysNumStat -> BBSCS_SYSSTAT

2006-01-21 16:26:44,171 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.bean.OnlineStat -> BBSCS_ONLINESTAT

2006-01-21 16:26:44,171 [org.springframework.orm.hibernate.LocalSessionFactoryBean]-[INFO] Building new Hibernate SessionFactory

2006-01-21 16:26:44,171 [net.sf.hibernate.cfg.Configuration]-[INFO] processing one-to-many association mappings

2006-01-21 16:26:44,171 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.bean.Board.boards -> BBSCS_BOARDS

2006-01-21 16:26:44,171 [net.sf.hibernate.cfg.Configuration]-[INFO] processing one-to-one association property references

2006-01-21 16:26:44,171 [net.sf.hibernate.cfg.Configuration]-[INFO] processing foreign key constraints

2006-01-21 16:26:44,187 [net.sf.hibernate.dialect.Dialect]-[INFO] Using dialect: net.sf.hibernate.dialect.MySQLDialect

2006-01-21 16:26:44,187 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] JDBC result set fetch size: 50

2006-01-21 16:26:44,187 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Maximim outer join fetch depth: 2

2006-01-21 16:26:44,187 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Use outer join fetching: true

2006-01-21 16:26:44,187 [net.sf.hibernate.connection.ConnectionProviderFactory]-[INFO] Initializing connection provider: org.springframework.orm.hibernate.LocalDataSourceConnectionProvider

2006-01-21 16:26:44,187 [net.sf.hibernate.transaction.TransactionManagerLookupFactory]-[INFO] No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)

2006-01-21 16:26:44,281 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Use scrollable result sets: true

2006-01-21 16:26:44,281 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Use JDBC3 getGeneratedKeys(): true

2006-01-21 16:26:44,281 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Optimize cache for minimal puts: false

2006-01-21 16:26:44,281 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] echoing all SQL to stdout

2006-01-21 16:26:44,281 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Query language substitutions: {}

2006-01-21 16:26:44,312 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] cache provider: net.sf.hibernate.cache.EhCacheProvider

2006-01-21 16:26:44,312 [net.sf.hibernate.cfg.Configuration]-[INFO] instantiating and configuring caches

2006-01-21 16:26:44,312 [net.sf.hibernate.impl.SessionFactoryImpl]-[INFO] building session factory

2006-01-21 16:26:47,312 [net.sf.hibernate.impl.SessionFactoryObjectFactory]-[INFO] Not binding factory to JNDI, no JNDI name configured

2006-01-21 16:26:47,312 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'userInfoDAO'

2006-01-21 16:26:47,312 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'userDetailDAO'

2006-01-21 16:26:47,312 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'boardDAO'

2006-01-21 16:26:47,312 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'boardsDAO'

2006-01-21 16:26:47,312 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'userOnlineDAO'

2006-01-21 16:26:47,343 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'friendDAO'

2006-01-21 16:26:47,343 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'bookMarkDAO'

2006-01-21 16:26:47,343 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'guestBookDAO'

2006-01-21 16:26:47,343 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'cgntDAO'

2006-01-21 16:26:47,343 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'daoUtil'

2006-01-21 16:26:47,343 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'forumDAO'

2006-01-21 16:26:47,343 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'subscibeDAO'

2006-01-21 16:26:47,359 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'voteDAO'

2006-01-21 16:26:47,359 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'voteItemDAO'

2006-01-21 16:26:47,359 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'commendDAO'

2006-01-21 16:26:47,359 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'bulletinDAO'

2006-01-21 16:26:47,359 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'blackUserDAO'

2006-01-21 16:26:47,375 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'advDAO'

2006-01-21 16:26:47,375 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'eliteDAO'

2006-01-21 16:26:47,375 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'voteUserDAO'

2006-01-21 16:26:47,375 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'sysNumStatDAO'

2006-01-21 16:26:47,375 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'onlineStatDAO'

2006-01-21 16:26:47,375 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'userFileInPostCache'

2006-01-21 16:26:47,375 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'postFileCache'

2006-01-21 16:26:47,375 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'userInfoService'

2006-01-21 16:26:47,375 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'userDetailService'

2006-01-21 16:26:47,375 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'cgntService'

2006-01-21 16:26:47,375 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'boardService'

2006-01-21 16:26:47,375 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'boardsService'

2006-01-21 16:26:47,390 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'userOnlineService'

2006-01-21 16:26:47,390 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'userInfoCache'

2006-01-21 16:26:47,390 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'friendService'

2006-01-21 16:26:47,390 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'bookMarkService'

2006-01-21 16:26:47,390 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'guestBookService'

2006-01-21 16:26:47,390 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'forumService'

2006-01-21 16:26:47,390 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'subscibeService'

2006-01-21 16:26:47,390 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'voteService'

2006-01-21 16:26:47,406 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'voteItemService'

2006-01-21 16:26:47,406 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'commendService'

2006-01-21 16:26:47,406 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'bulletinService'

2006-01-21 16:26:47,406 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'blackUserService'

2006-01-21 16:26:47,406 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'advService'

2006-01-21 16:26:47,406 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'eliteService'

2006-01-21 16:26:47,406 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'voteUserService'

2006-01-21 16:26:47,406 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'sysNumStatService'

2006-01-21 16:26:47,421 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'onlineStatService'

2006-01-21 16:26:47,421 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'boardsCount'

2006-01-21 16:26:47,421 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'advload'

2006-01-21 16:26:47,421 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'onlineclear'

2006-01-21 16:26:47,421 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'subscibeSend'

2006-01-21 16:26:47,421 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'voteuserclear'

2006-01-21 16:26:47,421 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'boardsCountTask'

2006-01-21 16:26:47,421 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'advloadTask'

2006-01-21 16:26:47,437 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'onlineClearTask'

2006-01-21 16:26:47,437 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'subscibeSendTask'

2006-01-21 16:26:47,437 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'voteUserClearTask'

2006-01-21 16:26:47,437 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'timerFactory'

2006-01-21 16:26:47,453 [org.springframework.scheduling.timer.TimerFactoryBean]-[INFO] Initializing Timer

2006-01-21 16:26:47,453 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'sysNumStatJob'

2006-01-21 16:26:47,453 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'onlineStatJob'

2006-01-21 16:26:47,453 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'sysNumStatJobCronTrigger'

2006-01-21 16:26:47,453 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'onlineStatJobCronTrigger'

2006-01-21 16:26:47,468 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'org.springframework.scheduling.quartz.SchedulerFactoryBean'

Hibernate: select board0_.ID as ID, board0_.BoardName as BoardName, board0_.EBardName as EBardName, board0_.BMaster as BMaster, board0_.Attrib as Attrib, board0_.Orders as Orders from BBSCS_BOARD board0_ order by  board0_.Orders

Hibernate: select boards0_.BoardID as BoardID__, boards0_.ID as ID__, boards0_.ID as ID0_, boards0_.BoardsName as BoardsName0_, boards0_.BoardsEName as BoardsEN3_0_, boards0_.MainMaster as MainMaster0_, boards0_.AssiMaster as AssiMaster0_, boards0_.HideMaster as HideMaster0_, boards0_.Explains as Explains0_, boards0_.Bulletin as Bulletin0_, boards0_.UseStat as UseStat0_, boards0_.Orders as Orders0_, boards0_.MainPostNum as MainPos11_0_, boards0_.PostNum as PostNum0_, boards0_.Pic as Pic0_, boards0_.LastPostTitle as LastPos14_0_, boards0_.LastPostID as LastPostID0_, boards0_.LastPostUser as LastPos16_0_, boards0_.LastPostUserID as LastPos17_0_, boards0_.LastPostTime as LastPos18_0_, boards0_.Attrib1 as Attrib10_, boards0_.Attrib2 as Attrib20_, boards0_.Attrib3 as Attrib30_, boards0_.Attrib4 as Attrib40_, boards0_.Attrib5 as Attrib50_, boards0_.Attrib6 as Attrib60_, boards0_.Attrib7 as Attrib70_, boards0_.Attrib8 as Attrib80_, boards0_.Attrib9 as Attrib90_, boards0_.Attrib10 as Attrib100_, boards0_.UserCanIn as UserCanIn0_, boards0_.BoardID as BoardID0_ from BBSCS_BOARDS boards0_ where boards0_.BoardID=? order by boards0_.Orders asc

2006-01-21 16:26:47,484 [org.quartz.simpl.SimpleThreadPool]-[INFO] Job execution threads will use class loader of thread: main

2006-01-21 16:26:47,500 [org.quartz.simpl.RAMJobStore]-[INFO] RAMJobStore initialized.

2006-01-21 16:26:47,500 [org.quartz.impl.StdSchedulerFactory]-[INFO] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'

2006-01-21 16:26:47,500 [org.quartz.impl.StdSchedulerFactory]-[INFO] Quartz scheduler version: 1.4.2

2006-01-21 16:26:47,500 [org.springframework.scheduling.quartz.SchedulerFactoryBean]-[INFO] Starting Quartz Scheduler

2006-01-21 16:26:47,500 [org.quartz.core.QuartzScheduler]-[INFO] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.

2006-01-21 16:26:47,500 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'boradList'

2006-01-21 16:26:47,515 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'post'

2006-01-21 16:26:47,515 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'bbsDAO'

2006-01-21 16:26:47,515 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'bbsService'

Hibernate: select count(forum130_.ID) as x0_0_ from BBSCS_FORUM_13 forum130_ where (forum130_.BoardID=? )and(forum130_.IsNew=1 )and(forum130_.DelSign=0 )and(forum130_.Auditing=0 )

Hibernate: select count(forum130_.ID) as x0_0_ from BBSCS_FORUM_13 forum130_ where (forum130_.BoardID=? )and(forum130_.DelSign=? )and(forum130_.Auditing=? )

2006-01-21 16:26:47,546 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'globeBBs'

2006-01-21 16:26:47,546 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [placeholderConfig,dataSource,mySessionFactory,userInfoDAO,userDetailDAO,boardDAO,boardsDAO,userOnlineDAO,friendDAO,bookMarkDAO,guestBookDAO,cgntDAO,daoUtil,forumDAO,subscibeDAO,voteDAO,voteItemDAO,commendDAO,bulletinDAO,blackUserDAO,advDAO,eliteDAO,voteUserDAO,sysNumStatDAO,onlineStatDAO,userFileInPostCache,postFileCache,userInfoService,userDetailService,cgntService,boardService,boardsService,userOnlineService,userInfoCache,friendService,bookMarkService,guestBookService,forumService,subscibeService,voteService,voteItemService,commendService,bulletinService,blackUserService,advService,eliteService,voteUserService,sysNumStatService,onlineStatService,boardsCount,advload,onlineclear,subscibeSend,voteuserclear,boardsCountTask,advloadTask,onlineClearTask,subscibeSendTask,voteUserClearTask,timerFactory,sysNumStatJob,onlineStatJob,sysNumStatJobCronTrigger,onlineStatJobCronTrigger,org.springframework.scheduling.quartz.SchedulerFactoryBean,boradList,post,bbsDAO,bbsService,globeBBs]; Root of BeanFactory hierarchy}

2006-01-21 16:26:47,609 [org.springframework.scheduling.timer.TimerFactoryBean]-[INFO] Cancelling Timer

2006-01-21 16:26:47,609 [org.springframework.scheduling.quartz.SchedulerFactoryBean]-[INFO] Shutting down Quartz Scheduler

2006-01-21 16:26:47,625 [org.quartz.core.QuartzScheduler]-[INFO] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutting down.

2006-01-21 16:26:47,625 [org.quartz.core.QuartzScheduler]-[INFO] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.

2006-01-21 16:26:47,625 [org.quartz.core.QuartzScheduler]-[INFO] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete.

2006-01-21 16:26:47,625 [org.springframework.orm.hibernate.LocalSessionFactoryBean]-[INFO] Closing Hibernate SessionFactory

Hibernate: update BBSCS_BOARDS set BoardsName=?, BoardsEName=?, MainMaster=?, AssiMaster=?, HideMaster=?, Explains=?, Bulletin=?, UseStat=?, Orders=?, MainPostNum=?, PostNum=?, Pic=?, LastPostTitle=?, LastPostID=?, LastPostUser=?, LastPostUserID=?, LastPostTime=?, Attrib1=?, Attrib2=?, Attrib3=?, Attrib4=?, Attrib5=?, Attrib6=?, Attrib7=?, Attrib8=?, Attrib9=?, Attrib10=?, UserCanIn=?, BoardID=? where ID=?

2006-01-21 16:26:47,625 [net.sf.hibernate.impl.SessionFactoryImpl]-[INFO] closing

2006-1-21 16:26:47 org.apache.catalina.loader.WebappClassLoader loadClass

信息: Illegal access: this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact)

Hibernate: select count(forum90_.ID) as x0_0_ from BBSCS_FORUM_9 forum90_ where (forum90_.BoardID=? )and(forum90_.IsNew=1 )and(forum90_.DelSign=0 )and(forum90_.Auditing=0 )

2006-1-21 16:26:47 org.apache.catalina.loader.WebappClassLoader loadClass

信息: Illegal access: this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact)
   发表时间:2006-01-21  
而单独使用某个数据库的时候,可以正常的映射hbm.xml和正常的找到定义的dao和service

为了区别,我在不同的配置文件applicationContext.xml中的dataSource和sessionContext定义了不同的id
比如:
	<bean id="mySessionFactory3" class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
		<property name="dataSource">
			<ref local="dataSource3"/>
		</property>

这个样子

看日志,数据库连接是没有错误的,po和xml的生成也没有什么错误,是我的spring配置文件写错了么?

另外,比如我单独测试某个数据库的运行的时候,比如现在载入这个:
    this.appContext = new ClassPathXmlApplicationContext(
        "/applicationContext2.xml");;

运行OK
之后切换到3:
    this.appContext = new ClassPathXmlApplicationContext(
        "/applicationContext3.xml");;

日志打印会出现这样的错误,好像还在读取applicationContext2.xml
,有时候好像在读了文件两次:
D:\Borland\jdk1.4\bin\javaw -classpath "D:\Borland\thirdparty\jakarta-tomcat-5.0.27\bin\bootstrap.jar;D:\Borland\jdk1.4\lib\tools.jar"  "-Dcatalina.home=D:/Borland/thirdparty/jakarta-tomcat-5.0.27"  -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=CGNT219:1290,suspend=y org.apache.catalina.startup.Bootstrap -config F:\CGNTBBS\Tomcat\conf\server8080.xml start 
2006-1-21 17:24:42 org.apache.coyote.http11.Http11Protocol init

信息: Initializing Coyote HTTP/1.1 on http-8080

2006-1-21 17:24:42 org.apache.catalina.startup.Catalina load

信息: Initialization processed in 2516 ms

2006-1-21 17:24:42 org.apache.catalina.core.StandardService start

信息: Starting service Catalina

2006-1-21 17:24:42 org.apache.catalina.core.StandardEngine start

信息: Starting Servlet Engine: Apache Tomcat/5.0.27

2006-1-21 17:24:42 org.apache.catalina.core.StandardHost start

信息: XML validation disabled

2006-1-21 17:24:43 org.apache.catalina.loader.WebappClassLoader validateJarFile

信息: validateJarFile(F:\CGNTBBS\bbscs6\WEB-INF\lib\servlet-api.jar); - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

2006-01-21 17:24:47,078 [org.apache.struts.util.PropertyMessageResources]-[INFO] Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true

2006-01-21 17:24:47,093 [org.apache.struts.util.PropertyMessageResources]-[INFO] Initializing, config='ApplicationResources', returnNull=true

2006-01-21 17:24:47,140 [com.laoer.bbscs.web.servlet.SysListener]-[INFO] Application Run Path:F:/CGNTBBS/bbscs6/

2006-01-21 17:24:47,156 [com.laoer.bbscs.web.servlet.SysListener]-[INFO] Application Run ConfigPath:F:/CGNTBBS/bbscs6/WEB-INF/classes/

2006-01-21 17:24:47,515 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]-[INFO] Loading XML bean definitions from class path resource [applicationContext3.xml]

2006-01-21 17:24:47,968 [org.springframework.context.support.ClassPathXmlApplicationContext]-[INFO] Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=6559246]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [placeholderConfig,dataSource3,mySessionFactory3,siteDAO,siteService,globleRegSite]; Root of BeanFactory hierarchy

2006-01-21 17:24:48,015 [org.springframework.context.support.ClassPathXmlApplicationContext]-[INFO] 6 beans defined in ApplicationContext [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=6559246]

2006-01-21 17:24:48,015 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'placeholderConfig'

2006-01-21 17:24:48,218 [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]-[INFO] Loading properties from class path resource [init3.properties]

2006-01-21 17:24:48,265 [org.springframework.context.support.ClassPathXmlApplicationContext]-[INFO] No MessageSource found for context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=6559246]: using empty StaticMessageSource

2006-01-21 17:24:48,296 [org.springframework.context.support.ClassPathXmlApplicationContext]-[INFO] Refreshing listeners

2006-01-21 17:24:48,296 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [placeholderConfig,dataSource3,mySessionFactory3,siteDAO,siteService,globleRegSite]; Root of BeanFactory hierarchy]

2006-01-21 17:24:48,296 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'dataSource3'

2006-01-21 17:24:48,359 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'mySessionFactory3'

2006-01-21 17:24:48,546 [net.sf.hibernate.cfg.Environment]-[INFO] Hibernate 2.1.6

2006-01-21 17:24:48,546 [net.sf.hibernate.cfg.Environment]-[INFO] hibernate.properties not found

2006-01-21 17:24:48,546 [net.sf.hibernate.cfg.Environment]-[INFO] using CGLIB reflection optimizer

2006-01-21 17:24:49,437 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Areainfo -> AREAINFO

2006-01-21 17:24:50,031 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Bookinginfo -> BOOKINGINFO

2006-01-21 17:24:50,156 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Cancelinfo -> CANCELINFO

2006-01-21 17:24:50,250 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Commentinfo -> COMMENTINFO

2006-01-21 17:24:50,343 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Contenttemplet -> CONTENTTEMPLET

2006-01-21 17:24:50,406 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Cpfc -> CPFC

2006-01-21 17:24:50,500 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Cpfcn -> CPFCN

2006-01-21 17:24:50,562 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Demandinfo -> DEMANDINFO

2006-01-21 17:24:50,625 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Depositinfo -> DEPOSITINFO

2006-01-21 17:24:50,703 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Drawinfo -> DRAWINFO

2006-01-21 17:24:50,796 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Jointjoininfo -> JOINTJOININFO

2006-01-21 17:24:51,000 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Jointschemeinfo -> JOINTSCHEMEINFO

2006-01-21 17:24:51,156 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Lotteryinfo -> LOTTERYINFO

2006-01-21 17:24:51,375 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Newterminfo -> NEWTERMINFO

2006-01-21 17:24:51,546 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Operatelog -> OPERATELOG

2006-01-21 17:24:51,765 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Operatorinfo -> OPERATORINFO

2006-01-21 17:24:51,828 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Privilegeinfo -> PRIVILEGEINFO

2006-01-21 17:24:51,921 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Productinfo -> PRODUCTINFO

2006-01-21 17:24:52,203 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Provisioninfo -> PROVISIONINFO

2006-01-21 17:24:52,328 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Roleinfo -> ROLEINFO

2006-01-21 17:24:52,375 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Roleprivilege -> ROLEPRIVILEGE

2006-01-21 17:24:53,984 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Schemenuminfo -> SCHEMENUMINFO

2006-01-21 17:24:54,062 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Settleinfo -> SETTLEINFO

2006-01-21 17:24:54,281 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Stakeinfo -> STAKEINFO

2006-01-21 17:24:54,328 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Suitinfo -> SUITINFO

2006-01-21 17:24:54,359 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Suitproduct -> SUITPRODUCT

2006-01-21 17:24:54,453 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Tradeinfo -> TRADEINFO

2006-01-21 17:24:54,531 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Userinfo -> USERINFO

2006-01-21 17:24:54,593 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Userprovision -> USERPROVISION

2006-01-21 17:24:54,703 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Vaccountinfo -> VACCOUNTINFO

2006-01-21 17:24:54,750 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Wfinfo -> WFINFO

2006-01-21 17:24:54,796 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Wininfo -> WININFO

2006-01-21 17:24:54,890 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Wintotalinfo -> WINTOTALINFO

2006-01-21 17:24:54,906 [org.springframework.orm.hibernate.LocalSessionFactoryBean]-[INFO] Building new Hibernate SessionFactory

2006-01-21 17:24:54,921 [net.sf.hibernate.cfg.Configuration]-[INFO] processing one-to-many association mappings

2006-01-21 17:24:54,921 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Areainfo.userinfos -> USERINFO

2006-01-21 17:24:54,921 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Areainfo.lotteryinfos -> LOTTERYINFO

2006-01-21 17:24:54,921 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Bookinginfo.tradeinfos -> TRADEINFO

2006-01-21 17:24:54,921 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Cpfc.stakeinfos -> STAKEINFO

2006-01-21 17:24:54,921 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Cpfc.cpfcns -> CPFCN

2006-01-21 17:24:54,921 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Jointschemeinfo.tradeinfos -> TRADEINFO

2006-01-21 17:24:54,921 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Jointschemeinfo.schemenuminfos -> SCHEMENUMINFO

2006-01-21 17:24:54,921 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Jointschemeinfo.jointjoininfos -> JOINTJOININFO

2006-01-21 17:24:54,937 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Lotteryinfo.tradeinfos -> TRADEINFO

2006-01-21 17:24:54,937 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Lotteryinfo.wininfos -> WININFO

2006-01-21 17:24:54,937 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Lotteryinfo.jointschemeinfos -> JOINTSCHEMEINFO

2006-01-21 17:24:54,937 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Lotteryinfo.newterminfos -> NEWTERMINFO

2006-01-21 17:24:54,937 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Lotteryinfo.settleinfos -> SETTLEINFO

2006-01-21 17:24:54,937 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Lotteryinfo.wintotalinfos -> WINTOTALINFO

2006-01-21 17:24:54,937 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Lotteryinfo.bookinginfos -> BOOKINGINFO

2006-01-21 17:24:54,937 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Operatorinfo.operatelogs -> OPERATELOG

2006-01-21 17:24:54,953 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Privilegeinfo.roleprivileges -> ROLEPRIVILEGE

2006-01-21 17:24:54,953 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Productinfo.demandinfos -> DEMANDINFO

2006-01-21 17:24:54,953 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Productinfo.suitproducts -> SUITPRODUCT

2006-01-21 17:24:54,953 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Roleinfo.userinfos -> USERINFO

2006-01-21 17:24:54,953 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Roleinfo.roleprivileges -> ROLEPRIVILEGE

2006-01-21 17:24:54,953 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Roleinfo.operatorinfos -> OPERATORINFO

2006-01-21 17:24:54,953 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Suitinfo.suitproducts -> SUITPRODUCT

2006-01-21 17:24:54,953 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.tradeinfos -> TRADEINFO

2006-01-21 17:24:54,968 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.jointschemeinfos -> JOINTSCHEMEINFO

2006-01-21 17:24:54,968 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.demandinfos -> DEMANDINFO

2006-01-21 17:24:54,968 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.cancelinfos -> CANCELINFO

2006-01-21 17:24:54,968 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.provisioninfos -> PROVISIONINFO

2006-01-21 17:24:54,968 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.jointjoininfos -> JOINTJOININFO

2006-01-21 17:24:54,968 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.bookinginfos -> BOOKINGINFO

2006-01-21 17:24:54,968 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.userprovisions -> USERPROVISION

2006-01-21 17:24:54,968 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.commentinfos -> COMMENTINFO

2006-01-21 17:24:54,968 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Vaccountinfo.drawinfos -> DRAWINFO

2006-01-21 17:24:54,968 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Vaccountinfo.userinfos -> USERINFO

2006-01-21 17:24:54,968 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Vaccountinfo.depositinfos -> DEPOSITINFO

2006-01-21 17:24:54,968 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Wfinfo.tradeinfos -> TRADEINFO

2006-01-21 17:24:54,984 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Wfinfo.settleinfos -> SETTLEINFO

2006-01-21 17:24:54,984 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Wfinfo.bookinginfos -> BOOKINGINFO

2006-01-21 17:24:54,984 [net.sf.hibernate.cfg.Configuration]-[INFO] processing one-to-one association property references

2006-01-21 17:24:54,984 [net.sf.hibernate.cfg.Configuration]-[INFO] processing foreign key constraints

2006-01-21 17:24:55,203 [net.sf.hibernate.dialect.Dialect]-[INFO] Using dialect: net.sf.hibernate.dialect.MySQLDialect

2006-01-21 17:24:55,218 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] JDBC result set fetch size: 50

2006-01-21 17:24:55,218 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Maximim outer join fetch depth: 2

2006-01-21 17:24:55,218 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Use outer join fetching: true

2006-01-21 17:24:55,218 [net.sf.hibernate.connection.ConnectionProviderFactory]-[INFO] Initializing connection provider: org.springframework.orm.hibernate.LocalDataSourceConnectionProvider

2006-01-21 17:24:55,250 [net.sf.hibernate.transaction.TransactionManagerLookupFactory]-[INFO] No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended);

2006-01-21 17:24:58,140 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Use scrollable result sets: true

2006-01-21 17:24:58,140 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Use JDBC3 getGeneratedKeys();: false

2006-01-21 17:24:58,140 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Optimize cache for minimal puts: false

2006-01-21 17:24:58,140 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] echoing all SQL to stdout

2006-01-21 17:24:58,140 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Query language substitutions: {}

2006-01-21 17:24:58,218 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] cache provider: net.sf.hibernate.cache.EhCacheProvider

2006-01-21 17:24:58,234 [net.sf.hibernate.cfg.Configuration]-[INFO] instantiating and configuring caches

2006-01-21 17:24:58,375 [net.sf.hibernate.impl.SessionFactoryImpl]-[INFO] building session factory

2006-01-21 17:24:58,765 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [placeholderConfig,dataSource3,mySessionFactory3,siteDAO,siteService,globleRegSite]; Root of BeanFactory hierarchy}

2006-1-21 17:24:58 org.apache.catalina.core.StandardContext start

严重: Error listenerStart

2006-1-21 17:24:58 org.apache.catalina.core.StandardContext start

严重: Context startup failed due to previous errors

2006-01-21 17:24:58,828 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]-[INFO] Loading XML bean definitions from class path resource [applicationContext3.xml]

2006-01-21 17:24:58,859 [org.springframework.context.support.ClassPathXmlApplicationContext]-[INFO] Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=13018016]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [placeholderConfig,dataSource3,mySessionFactory3,siteDAO,siteService,globleRegSite]; Root of BeanFactory hierarchy

2006-01-21 17:24:58,859 [org.springframework.context.support.ClassPathXmlApplicationContext]-[INFO] 6 beans defined in ApplicationContext [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=13018016]

2006-01-21 17:24:58,875 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'placeholderConfig'

2006-01-21 17:24:58,875 [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]-[INFO] Loading properties from class path resource [init3.properties]

2006-01-21 17:24:58,875 [org.springframework.context.support.ClassPathXmlApplicationContext]-[INFO] No MessageSource found for context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=13018016]: using empty StaticMessageSource

2006-01-21 17:24:58,875 [org.springframework.context.support.ClassPathXmlApplicationContext]-[INFO] Refreshing listeners

2006-01-21 17:24:58,875 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [placeholderConfig,dataSource3,mySessionFactory3,siteDAO,siteService,globleRegSite]; Root of BeanFactory hierarchy]

2006-01-21 17:24:58,890 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'dataSource3'

2006-01-21 17:24:58,890 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Creating shared instance of singleton bean 'mySessionFactory3'

2006-01-21 17:24:58,953 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Areainfo -> AREAINFO

2006-01-21 17:24:58,984 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Bookinginfo -> BOOKINGINFO

2006-01-21 17:24:59,031 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Cancelinfo -> CANCELINFO

2006-01-21 17:24:59,046 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Commentinfo -> COMMENTINFO

2006-01-21 17:24:59,093 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Contenttemplet -> CONTENTTEMPLET

2006-01-21 17:24:59,281 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Cpfc -> CPFC

2006-01-21 17:24:59,328 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Cpfcn -> CPFCN

2006-01-21 17:24:59,343 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Demandinfo -> DEMANDINFO

2006-01-21 17:24:59,421 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Depositinfo -> DEPOSITINFO

2006-01-21 17:24:59,468 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Drawinfo -> DRAWINFO

2006-01-21 17:24:59,484 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Jointjoininfo -> JOINTJOININFO

2006-01-21 17:24:59,578 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Jointschemeinfo -> JOINTSCHEMEINFO

2006-01-21 17:24:59,609 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Lotteryinfo -> LOTTERYINFO

2006-01-21 17:24:59,640 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Newterminfo -> NEWTERMINFO

2006-01-21 17:24:59,656 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Operatelog -> OPERATELOG

2006-01-21 17:24:59,671 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Operatorinfo -> OPERATORINFO

2006-01-21 17:24:59,718 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Privilegeinfo -> PRIVILEGEINFO

2006-01-21 17:24:59,734 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Productinfo -> PRODUCTINFO

2006-01-21 17:24:59,750 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Provisioninfo -> PROVISIONINFO

2006-01-21 17:24:59,765 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Roleinfo -> ROLEINFO

2006-01-21 17:24:59,781 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Roleprivilege -> ROLEPRIVILEGE

2006-01-21 17:24:59,812 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Schemenuminfo -> SCHEMENUMINFO

2006-01-21 17:24:59,843 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Settleinfo -> SETTLEINFO

2006-01-21 17:24:59,859 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Stakeinfo -> STAKEINFO

2006-01-21 17:25:00,015 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Suitinfo -> SUITINFO

2006-01-21 17:25:00,031 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Suitproduct -> SUITPRODUCT

2006-01-21 17:25:00,125 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Tradeinfo -> TRADEINFO

2006-01-21 17:25:00,187 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Userinfo -> USERINFO

2006-01-21 17:25:00,218 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Userprovision -> USERPROVISION

2006-01-21 17:25:00,234 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Vaccountinfo -> VACCOUNTINFO

2006-01-21 17:25:00,250 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Wfinfo -> WFINFO

2006-01-21 17:25:00,312 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Wininfo -> WININFO

2006-01-21 17:25:00,328 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping class: com.laoer.bbscs.beanweb.Wintotalinfo -> WINTOTALINFO

2006-01-21 17:25:00,328 [org.springframework.orm.hibernate.LocalSessionFactoryBean]-[INFO] Building new Hibernate SessionFactory

2006-01-21 17:25:00,328 [net.sf.hibernate.cfg.Configuration]-[INFO] processing one-to-many association mappings

2006-01-21 17:25:00,328 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Areainfo.userinfos -> USERINFO

2006-01-21 17:25:00,328 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Areainfo.lotteryinfos -> LOTTERYINFO

2006-01-21 17:25:00,328 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Bookinginfo.tradeinfos -> TRADEINFO

2006-01-21 17:25:00,328 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Cpfc.stakeinfos -> STAKEINFO

2006-01-21 17:25:00,328 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Cpfc.cpfcns -> CPFCN

2006-01-21 17:25:00,328 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Jointschemeinfo.tradeinfos -> TRADEINFO

2006-01-21 17:25:00,343 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Jointschemeinfo.schemenuminfos -> SCHEMENUMINFO

2006-01-21 17:25:00,343 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Jointschemeinfo.jointjoininfos -> JOINTJOININFO

2006-01-21 17:25:00,343 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Lotteryinfo.tradeinfos -> TRADEINFO

2006-01-21 17:25:00,343 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Lotteryinfo.wininfos -> WININFO

2006-01-21 17:25:00,343 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Lotteryinfo.jointschemeinfos -> JOINTSCHEMEINFO

2006-01-21 17:25:00,343 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Lotteryinfo.newterminfos -> NEWTERMINFO

2006-01-21 17:25:00,343 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Lotteryinfo.settleinfos -> SETTLEINFO

2006-01-21 17:25:00,343 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Lotteryinfo.wintotalinfos -> WINTOTALINFO

2006-01-21 17:25:00,375 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Lotteryinfo.bookinginfos -> BOOKINGINFO

2006-01-21 17:25:00,375 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Operatorinfo.operatelogs -> OPERATELOG

2006-01-21 17:25:00,390 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Privilegeinfo.roleprivileges -> ROLEPRIVILEGE

2006-01-21 17:25:00,390 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Productinfo.demandinfos -> DEMANDINFO

2006-01-21 17:25:00,390 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Productinfo.suitproducts -> SUITPRODUCT

2006-01-21 17:25:00,390 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Roleinfo.userinfos -> USERINFO

2006-01-21 17:25:00,390 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Roleinfo.roleprivileges -> ROLEPRIVILEGE

2006-01-21 17:25:00,406 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Roleinfo.operatorinfos -> OPERATORINFO

2006-01-21 17:25:00,406 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Suitinfo.suitproducts -> SUITPRODUCT

2006-01-21 17:25:00,406 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.tradeinfos -> TRADEINFO

2006-01-21 17:25:00,406 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.jointschemeinfos -> JOINTSCHEMEINFO

2006-01-21 17:25:00,406 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.demandinfos -> DEMANDINFO

2006-01-21 17:25:00,406 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.cancelinfos -> CANCELINFO

2006-01-21 17:25:00,406 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.provisioninfos -> PROVISIONINFO

2006-01-21 17:25:00,406 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.jointjoininfos -> JOINTJOININFO

2006-01-21 17:25:00,406 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.bookinginfos -> BOOKINGINFO

2006-01-21 17:25:00,406 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.userprovisions -> USERPROVISION

2006-01-21 17:25:00,421 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Userinfo.commentinfos -> COMMENTINFO

2006-01-21 17:25:00,421 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Vaccountinfo.drawinfos -> DRAWINFO

2006-01-21 17:25:00,421 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Vaccountinfo.userinfos -> USERINFO

2006-01-21 17:25:00,421 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Vaccountinfo.depositinfos -> DEPOSITINFO

2006-01-21 17:25:00,421 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Wfinfo.tradeinfos -> TRADEINFO

2006-01-21 17:25:00,437 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Wfinfo.settleinfos -> SETTLEINFO

2006-01-21 17:25:00,437 [net.sf.hibernate.cfg.Binder]-[INFO] Mapping collection: com.laoer.bbscs.beanweb.Wfinfo.bookinginfos -> BOOKINGINFO

2006-01-21 17:25:00,437 [net.sf.hibernate.cfg.Configuration]-[INFO] processing one-to-one association property references

2006-01-21 17:25:00,437 [net.sf.hibernate.cfg.Configuration]-[INFO] processing foreign key constraints

2006-01-21 17:25:00,437 [net.sf.hibernate.dialect.Dialect]-[INFO] Using dialect: net.sf.hibernate.dialect.MySQLDialect

2006-01-21 17:25:00,437 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] JDBC result set fetch size: 50

2006-01-21 17:25:00,437 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Maximim outer join fetch depth: 2

2006-01-21 17:25:00,437 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Use outer join fetching: true

2006-01-21 17:25:00,437 [net.sf.hibernate.connection.ConnectionProviderFactory]-[INFO] Initializing connection provider: org.springframework.orm.hibernate.LocalDataSourceConnectionProvider

2006-01-21 17:25:00,437 [net.sf.hibernate.transaction.TransactionManagerLookupFactory]-[INFO] No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended);

2006-01-21 17:25:01,390 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Use scrollable result sets: true

2006-01-21 17:25:01,390 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Use JDBC3 getGeneratedKeys();: false

2006-01-21 17:25:01,390 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Optimize cache for minimal puts: false

2006-01-21 17:25:01,390 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] echoing all SQL to stdout

2006-01-21 17:25:01,390 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Query language substitutions: {}

2006-01-21 17:25:01,437 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] cache provider: net.sf.hibernate.cache.EhCacheProvider

2006-01-21 17:25:01,437 [net.sf.hibernate.cfg.Configuration]-[INFO] instantiating and configuring caches

2006-01-21 17:25:01,437 [net.sf.hibernate.impl.SessionFactoryImpl]-[INFO] building session factory

2006-01-21 17:25:01,500 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [placeholderConfig,dataSource3,mySessionFactory3,siteDAO,siteService,globleRegSite]; Root of BeanFactory hierarchy}

2006-1-21 17:25:01 org.apache.catalina.core.StandardHost getDeployer

信息: Create Host deployer for direct deployment ( non-jmx ); 

2006-1-21 17:25:02 org.apache.coyote.http11.Http11Protocol start

信息: Starting Coyote HTTP/1.1 on http-8080

2006-1-21 17:25:02 org.apache.catalina.startup.Catalina start

信息: Server startup in 19703 ms



总的说来就是这样,每个数据库独自的属性文件写数据库连接,然后单独的spring配置文件,最后在一个类中读取,启动系统时初始化这个类
0 请登录后投票
   发表时间:2006-01-21  
不知道说清楚没有,好像说太多了
0 请登录后投票
   发表时间:2006-01-22  
你在tomcat目录的server.xml中配两个jndi, 比如ds1:oracle.  ds2:mysql


然后在你的ApplicationContext.xml中配置就两个jndi就可以了! 

引用
Jndi:
      &lt;bean id="myDataSource1" class="org.springframework.jndi.JndiObjectFactoryBean"&gt;
              &lt;property name="jndiName"&gt;
                  &lt;value&gt;ds1&lt;/value&gt;
              &lt;/property&gt;
          &lt;/bean&gt;
         
          &lt;bean id="myDataSource2" class="org.springframework.jndi.JndiObjectFactoryBean"&gt;
              &lt;property name="jndiName"&gt;
                 &lt;value&gt;ds2&lt;/value&gt;
             &lt;/property&gt;
         &lt;/bean&gt;
        
      Jta:
      &lt;bean id="myTransactionManager" class="org.springframework.transaction.jta.JtaTransactionManager"/&gt;
     
      SessionFactory:
      &lt;bean id="mySessionFactory1" class="org.springframework.orm.hibernate.LocalSessionFactoryBean"&gt;
            &lt;property name="mappingResources"&gt;
                &lt;list&gt;
                     &lt;value&gt;myOne.hbm.xml&lt;/value&gt;
                     &lt;value&gt;myTwo.hbm.xml&lt;/value&gt;       
                 &lt;/list&gt;
             &lt;/property&gt;
             &lt;property name="hibernateProperties"&gt;
                 &lt;props&gt;
                     &lt;prop key="hibernate.dialect"&gt;net.sf.hibernate.dialect.OracleDialect&lt;/prop&gt;
                     &lt;prop key="hibernate.show_sql"&gt;true&lt;/prop&gt;
           &lt;prop key="hibernate.jdbc.fetch_size"&gt;50&lt;/prop&gt;
           &lt;prop key="hibernate.jdbc.batch_size"&gt;0&lt;/prop&gt;
                 &lt;/props&gt;
             &lt;/property&gt;
             &lt;property name="dataSource"&gt;
                 &lt;ref bean="myDataSource1"/&gt;
             &lt;/property&gt;
         &lt;/bean&gt;
        
         &lt;bean id="mySessionFactory2" class="org.springframework.orm.hibernate.LocalSessionFactoryBean"&gt;
             &lt;property name="mappingResources"&gt;
                 &lt;list&gt;
                     &lt;value&gt;youOne.hbm.xml&lt;/value&gt;
                     &lt;value&gt;youTwo.hbm.xml&lt;/value&gt;       
                 &lt;/list&gt;
             &lt;/property&gt;
             &lt;property name="hibernateProperties"&gt;
                 &lt;props&gt;
                     &lt;prop key="hibernate.dialect"&gt;net.sf.hibernate.dialect.MySQLDialect&lt;/prop&gt;
                     &lt;prop key="hibernate.show_sql"&gt;true&lt;/prop&gt;
                    &lt;prop key="hibernate.jdbc.fetch_size"&gt;50&lt;/prop&gt;
                    &lt;prop key="hibernate.jdbc.batch_size"&gt;0&lt;/prop&gt;
                 &lt;/props&gt;
             &lt;/property&gt;
             &lt;property name="dataSource"&gt;
                 &lt;ref bean="myDataSource2"/&gt;
             &lt;/property&gt;
         &lt;/bean&gt;
0 请登录后投票
   发表时间:2006-01-23  
:wink: 好的,我现在试试看
0 请登录后投票
   发表时间:2006-02-06  
我在tomcat的/conf目录下server.xml中这样配置了JNDI:
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="localhost_log." suffix=".txt" timestamp="true"/>
<[color=darkred]Context path="/bbscs6" docBase="bbscs6[/color]" debug="5" reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_roller1_log." suffix=".txt" timestamp="true"/>
<Resource name="jdbc/roller" auth="Container" type="javax.sql.DataSource"/>
					<ResourceParams name="jdbc/roller">
						<parameter>
							<name>factory</name>
							<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
						</parameter>
						<!-- Maximum number of dB connections in pool. Make sure you
         configure your mysqld max_connections large enough to handle
         all of your db connections. Set to 0 for no limit.
         -->
						<parameter>
							<name>maxActive</name>
							<value>100</value>
						</parameter>
						<!-- Maximum number of idle dB connections to retain in pool.
         Set to 0 for no limit.
         -->
						<parameter>
							<name>maxIdle</name>
							<value>30</value>
						</parameter>
						<!-- Maximum time to wait for a dB connection to become available
         in ms, in this example 10 seconds. An Exception is thrown if
         this timeout is exceeded.  Set to -1 to wait indefinitely.
         -->
						<parameter>
							<name>maxWait</name>
							<value>10000</value>
						</parameter>
						<!-- MySQL dB username and password for dB connections  -->
						<parameter>
							<name>username</name>
							<value>root</value>
						</parameter>
						<parameter>
							<name>password</name>
							<value> </value>
						</parameter>
						<!-- Class name for mm.mysql JDBC driver -->
						<parameter>
							<name>driverClassName</name>
							<value>org.gjt.mm.mysql.Driver</value>
						</parameter>
						<!-- The JDBC connection url for connecting to your MySQL dB.
         The autoReconnect=true argument to the url makes sure that the
         mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
         connection.  mysqld by default closes idle connections after 8 hours.
         -->
						<parameter>
							<name>url</name>
							<value>jdbc:mysql://localhost:3306/roller?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=utf-8&amp;mysqlEncoding=utf8</value>
						</parameter>
					</ResourceParams>
</Context>
<[color=darkred]Context path="/bbscs6" docBase="bbscs6" [/color]debug="5" reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_site_log." suffix=".txt" timestamp="true"/>
<Resource name="jdbc/shcw2" auth="Container" type="javax.sql.DataSource"/>
					<ResourceParams name="jdbc/shcw2">
						<parameter>
							<name>factory</name>
							<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
						</parameter>
						<!-- Maximum number of dB connections in pool. Make sure you
         configure your mysqld max_connections large enough to handle
         all of your db connections. Set to 0 for no limit.
         -->
						<parameter>
							<name>maxActive</name>
							<value>100</value>
						</parameter>
						<!-- Maximum number of idle dB connections to retain in pool.
         Set to 0 for no limit.
         -->
						<parameter>
							<name>maxIdle</name>
							<value>30</value>
						</parameter>
						<!-- Maximum time to wait for a dB connection to become available
         in ms, in this example 10 seconds. An Exception is thrown if
         this timeout is exceeded.  Set to -1 to wait indefinitely.
         -->
						<parameter>
							<name>maxWait</name>
							<value>10000</value>
						</parameter>
						<!-- MySQL dB username and password for dB connections  -->
						<parameter>
							<name>username</name>
							<value>scott</value>
						</parameter>
						<parameter>
							<name>password</name>
							<value>tiger</value>
						</parameter>
						<!-- Class name for mm.mysql JDBC driver -->
						<parameter>
							<name>driverClassName</name>
							<value>oracle.jdbc.driver.OracleDriver</value>
						</parameter>
						<!-- The JDBC connection url for connecting to your MySQL dB.
         The autoReconnect=true argument to the url makes sure that the
         mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
         connection.  mysqld by default closes idle connections after 8 hours.
         -->
						<parameter>
							<name>url</name>
							<value>jdbc:oracle:thin:@192.168.16.131:1521:shcw2</value>
						</parameter>
					</ResourceParams>
</Context>


然后在应用的web.xml文件中使用:
  <resource-ref>
    <description>connect roller</description>
    <res-ref-name>jdbc/roller</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
  </resource-ref>
  <resource-ref>
    <description>connect web-site</description>
    <res-ref-name>jdbc/shcw2</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
  </resource-ref>


之后在applicationContext.xml中使用了上面的方法配置
结果现在启动报错:
2006-02-06 15:37:22,046 [net.sf.hibernate.dialect.Dialect]-[INFO] Using dialect: net.sf.hibernate.dialect.MySQLDialect
2006-02-06 15:37:22,046 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] JDBC result set fetch size: 25
2006-02-06 15:37:22,062 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Maximim outer join fetch depth: 2
2006-02-06 15:37:22,062 [net.sf.hibernate.cfg.SettingsFactory]-[INFO] Use outer join fetching: true
2006-02-06 15:37:22,062 [net.sf.hibernate.connection.ConnectionProviderFactory]-[INFO] Initializing connection provider: org.springframework.orm.hibernate.LocalDataSourceConnectionProvider
2006-02-06 15:37:22,062 [net.sf.hibernate.transaction.TransactionManagerLookupFactory]-[INFO] No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended);
2006-02-06 15:37:22,125 [net.sf.hibernate.util.JDBCExceptionReporter]-[WARN] SQL Error: 0, SQLState: null
2006-02-06 15:37:22,125 [net.sf.hibernate.util.JDBCExceptionReporter]-[ERROR] Cannot create JDBC driver of class '' for connect URL 'null'
2006-02-06 15:37:22,140 [net.sf.hibernate.cfg.SettingsFactory]-[WARN] Could not obtain connection metadata
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
	at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780);
	at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540);
	at org.springframework.orm.hibernate.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:65);
	at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:73);
	at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1155);
	at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:789);
	at org.springframework.orm.hibernate.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:436);
	at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:374);
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:801);
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:249);
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:177);
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159);
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:177);
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:268);
	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:58);
	at com.laoer.bbscs.sys.AppContext.<init>(AppContext.java:36);
	at com.laoer.bbscs.sys.AppContext.getInstance(AppContext.java:29);
	at com.laoer.bbscs.web.servlet.SysListener.contextInitialized(SysListener.java:79);
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827);
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343);
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083);
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:789);
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083);
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478);
	at org.apache.catalina.core.StandardService.start(StandardService.java:480);
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313);
	at org.apache.catalina.startup.Catalina.start(Catalina.java:556);
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method);
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39);
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25);
	at java.lang.reflect.Method.invoke(Method.java:324);
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284);
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422);
Caused by: java.sql.SQLException: No suitable driver
	at java.sql.DriverManager.getDriver(DriverManager.java:243);
	at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773);
	... 32 more


这就有问题了
1 如果在tomcat中配置数据源,指定的<Context path="/bbscs6" docBase="bbscs6....>l其中path和docBase字段是应用名字,如果两个数据源重复,那么tomcat无法启动,我这里是只用了其中一个得到的错误信息
2 关于这个错误上网查了一下,没有什么收获,在tomcat中只使用一个的话,JSP测试可以正常连接数据库并且显示内容
3 在applicationContext.xml中不使用JNDI,而是采用如下的方式:
	<bean id="myDataSourceRoller" class="org.apache.commons.dbcp.BasicDataSource">
		<property name="driverClassName">
			<value>org.gjt.mm.mysql.Driver</value>
		</property>
		<property name="url">
			<value>jdbc:mysql://localhost:3306/roller?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=utf-8&amp;mysqlEncoding=utf8</value>
		</property>
		<property name="username">
			<value>root</value>
		</property>
		<property name="password">
			<value/>
		</property>
		<property name="maxActive">
			<value>100</value>
		</property>
		<property name="maxIdle">
			<value>30</value>
		</property>
		<property name="maxWait">
			<value>10000</value>
		</property>
		<property name="defaultAutoCommit">
			<value>false</value>
		</property>
	</bean>

得到的是同样的错误

没辙了.......
1 为什么一定要在tomcat里配置多个数据源的JNDI呢,我每个都像上面的那样写应该也对的吧
2 applicationContext中应该可以这样吧,dataSource1从
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="location">
			<value>/init.properties</value>
		</property>
	</bean>

这样读取配置,然后是普通的
	<bean id="dataSource1" class="org.apache.commons.dbcp.BasicDataSource">
		<property name="driverClassName">
			<value>${datasource.driverClassName}</value>
		</property>
。。。
</bean>

然后dataSource2从tomcat的jndi获取,并不是必须都整齐的是JNDI的方式吧
0 请登录后投票
   发表时间:2006-02-24  
我是一个Spring得初学者,也在学习Spring+Structs+Hibernate的结合,
请问楼主:

applicationContext.xml 中是不是一定得有:

&lt;context-param&gt;
&lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
&lt;param-value&gt;/WEB-INF/applicationContext.xml&lt;/param-value&gt;
  &lt;/context-param&gt;
  &lt;listener&gt;
    &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;
 
不要可以吗?

我现在遇到了个错误,已经发了提问了http://forum.iteye.com/viewtopic.php?t=18772
你可以帮我看看吗?

可以和你交个朋友吗?以方便向你学习,谢谢。
我的popo和邮箱都是 : ysg0222@163.com
0 请登录后投票
   发表时间:2006-04-26  
我也是按照你后来那种方式配置的,先tomcat 配两个DataSource现在在ApplicationContext.xml配置二个JNDI.也是报错。

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spring1' defined in class path resource [spring1.xml]: Can't resolve reference to bean 'sessionFactory1' while setting property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory1' defined in class path resource [spring1.xml]: Can't resolve reference to bean 'myDataSource1' while setting property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myDataSource1' defined in class path resource [spring1.xml]: Initialization of bean failed; nested exception is javax.naming.NameNotFoundException: Name spring1 is not bound in this Context
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory1' defined in class path resource [spring1.xml]: Can't resolve reference to bean 'myDataSource1' while setting property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myDataSource1' defined in class path resource [spring1.xml]: Initialization of bean failed; nested exception is javax.naming.NameNotFoundException: Name spring1 is not bound in this Context
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myDataSource1' defined in class path resource [spring1.xml]: Initialization of bean failed; nested exception is javax.naming.NameNotFoundException: Name spring1 is not bound in this Context
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics