严重: Servlet /xcfhinvoices threw load() exception
javax.naming.NamingException: Cannot create resource instance
at org.apache.naming.factory.ResourceEnvFactory.getObjectInstance(ResourceEnvFactory.java:117)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:843)
at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
at org.apache.catalina.core.DefaultInstanceManager.lookupMethodResource(DefaultInstanceManager.java:625)
at org.apache.catalina.core.DefaultInstanceManager.processAnnotations(DefaultInstanceManager.java:471)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:162)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:143)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1144)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1120)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1678)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
解决办法:
用 webApplictionConter 获取bean,不要使用自动注入,
分析:
srping 其实已经有这个实例了,
Spring通过扫描我们的代码,知道哪里使用了他的注解,然后生成动态代理(Cglib或者其他一些修改字节码的方式),然后神奇的地方出现了,因为Fillter特殊的生命周期,
Filter动态代理创建失败………… 至于为啥,明天再研究,
tomcat启动日志
2015-4-24 1:21:32 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\MyEclipse Professional\binary\com.sun.java.jdk.win32.x86_64_1.6.0.u43\bin;C:\MyEclipse Professional\plugins\com.genuitec.eclipse.easie.tomcat7.myeclipse_11.0.0.me201302261706\tomcat\bin 2015-4-24 1:21:33 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-8081"] 2015-4-24 1:21:33 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["ajp-bio-8009"] 2015-4-24 1:21:33 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 1366 ms 2015-4-24 1:21:33 org.apache.catalina.core.StandardService startInternal 信息: Starting service Catalina 2015-4-24 1:21:33 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.30 2015-4-24 1:21:33 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory D:\myeclipse_pure\.metadata\.me_tcat7\webapps\shuafen 2015-4-24 1:21:40 org.apache.catalina.core.ApplicationContext log 信息: No Spring WebApplicationInitializer types detected on classpath log4j:WARN No such property [maxFileSize] in org.apache.log4j.FileAppender. log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.FileAppender. 2015-4-24 1:21:40 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring root WebApplicationContext 2015-04-24 01:21:40,208 INFO [org.springframework.web.context.ContextLoader] - Root WebApplicationContext: initialization started 2015-04-24 01:21:40,420 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - Refreshing Root WebApplicationContext: startup date [Fri Apr 24 01:21:40 CST 2015]; root of context hierarchy 2015-04-24 01:21:40,547 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [applicationContext.xml] 2015-04-24 01:21:49,966 INFO [org.springframework.context.support.PropertySourcesPlaceholderConfigurer] - Loading properties file from class path resource [db.properties] 2015-04-24 01:21:50,589 INFO [com.mchange.v2.log.MLog] - MLog clients using log4j logging. 2015-04-24 01:21:50,685 INFO [com.mchange.v2.c3p0.C3P0Registry] - Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10] 2015-04-24 01:21:51,392 INFO [org.hibernate.annotations.common.Version] - HCANN000001: Hibernate Commons Annotations {4.0.1.Final} 2015-04-24 01:21:51,417 INFO [org.hibernate.Version] - HHH000412: Hibernate Core {4.1.9.Final} 2015-04-24 01:21:51,422 INFO [org.hibernate.cfg.Environment] - HHH000206: hibernate.properties not found 2015-04-24 01:21:51,428 INFO [org.hibernate.cfg.Environment] - HHH000021: Bytecode provider name : javassist 2015-04-24 01:21:51,512 INFO [org.hibernate.cfg.Configuration] - HHH000044: Configuring from URL: file:/D:/myeclipse_pure/.metadata/.me_tcat7/webapps/shuafen/WEB-INF/classes/hibernate.cfg.xml 2015-04-24 01:21:51,608 INFO [org.hibernate.cfg.Configuration] - HHH000041: Configured SessionFactory: null 2015-04-24 01:21:52,956 INFO [com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource] - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1b61iev981s6e1q01hn98dm|3507012c, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1b61iev981s6e1q01hn98dm|3507012c, idleConnectionTestPeriod -> 0, initialPoolSize -> 1, jdbcUrl -> jdbc:mysql://127.0.0.1:3309/shuafen, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 20, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 40, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, numHelperThreads -> 3, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ] 2015-04-24 01:21:53,448 INFO [org.hibernate.dialect.Dialect] - HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect 2015-04-24 01:21:53,486 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] - HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4 2015-04-24 01:21:53,545 INFO [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] - HHH000399: Using default transaction strategy (direct JDBC transactions) 2015-04-24 01:21:53,567 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] - HHH000397: Using ASTQueryTranslatorFactory 2015-04-24 01:21:53,697 WARN [org.hibernate.id.UUIDHexGenerator] - HHH000409: Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values; consider using org.hibernate.id.UUIDGenerator instead 2015-04-24 01:21:54,903 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] - HHH000228: Running hbm2ddl schema update 2015-04-24 01:21:54,903 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] - HHH000102: Fetching database metadata 2015-04-24 01:21:54,921 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] - HHH000396: Updating schema 2015-04-24 01:21:54,977 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.CODE_BAS_SINGLE 2015-04-24 01:21:54,977 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [field, id, processname, title, belongcodezh, fieldzh, sequence, belongcode, hascode, code, hasedit] 2015-04-24 01:21:54,978 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [] 2015-04-24 01:21:54,978 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [id, primary] 2015-04-24 01:21:55,000 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.PRO_AGENT_RECORD 2015-04-24 01:21:55,000 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [fromuserid, fromurl, currentuserid, proagentrecordid, startday] 2015-04-24 01:21:55,000 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk747f75d7ce63351, fk747f75d77d064c2] 2015-04-24 01:21:55,001 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fk747f75d77d064c2, fk747f75d7ce63351, primary, proagentrecordid] 2015-04-24 01:21:55,018 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.PRO_AGENT_UPDATERECORD 2015-04-24 01:21:55,018 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [time, proagentupdaterecordid, firsttype, userid, money, aftertype] 2015-04-24 01:21:55,018 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk7acc30668b6a3498] 2015-04-24 01:21:55,018 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fk7acc30668b6a3498, proagentupdaterecordid, primary] 2015-04-24 01:21:55,048 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.PRO_Agent_Information 2015-04-24 01:21:55,049 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [sareafansmoney, sareareturnfansmoney, simpleareareturnfansmoney, sitename, updatetime, vipareafansmoney, aroundmsg, agenturl, userid, linuusname, updatevip, updateagent, defaultreadmoney, sdefaultreturnfansmoney, currentusertype, simpledefaultreturnfansmoney, linkusnumber, proagentinformationid, simpleareafansmoney, vipareareturnfansmoney, goodvipmoney, vipreadmoney, vipdefaultreturnfansmoney, fatheragentid, vipdefaultfansmoney, sdefaultfansmoney, gooddefaultmoney, agentqq, updatevip2agent, simpledefaultfansmoney] 2015-04-24 01:21:55,049 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk101515808b6a3498, fk10151580c921b24e] 2015-04-24 01:21:55,050 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [proagentinformationid, fk101515808b6a3498, primary, fk10151580c921b24e] 2015-04-24 01:21:55,070 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.PRO_TASKRDL 2015-04-24 01:21:55,070 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [taskurl, starttime, allreadcount, protaskrdlid, taskid, userid, urltilte, urlaccount, forreadid, startday, likenum, addtime, endday] 2015-04-24 01:21:55,070 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fke3d765038b6a3498, fke3d76503f6d28909] 2015-04-24 01:21:55,070 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fke3d765038b6a3498, protaskrdlid, primary, fke3d76503f6d28909] 2015-04-24 01:21:55,094 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.PRO_TASK_FOR_READ 2015-04-24 01:21:55,095 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [totalcount, isclosed, executedcount, status, mpaccount, taskid, finallikenum, totallikes, date, initreadnum, url, finalreadnum, initlikenum, title, currentspeedlevel, previouscount] 2015-04-24 01:21:55,095 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [] 2015-04-24 01:21:55,095 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [taskid, primary] 2015-04-24 01:21:55,123 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.PRO_TASK_FOR_SF 2015-04-24 01:21:55,123 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [totalcount, isclosed, currentspeedlevel, nickname, status, provincestr, mpaccount, previouscount, taskid, date, signature, avatarurl] 2015-04-24 01:21:55,124 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [] 2015-04-24 01:21:55,124 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [taskid, primary] 2015-04-24 01:21:55,148 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.Pro_User_Status 2015-04-24 01:21:55,148 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [fromuserid, prouserstatusid, status] 2015-04-24 01:21:55,148 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk12e6d83477d064c2] 2015-04-24 01:21:55,149 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [prouserstatusid, primary, fk12e6d83477d064c2] 2015-04-24 01:21:55,167 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.SYS_ATTACH 2015-04-24 01:21:55,167 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [attachid, locationpath, uploaddate, type, orginname, suffix, belongid, attachname] 2015-04-24 01:21:55,167 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [] 2015-04-24 01:21:55,167 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [primary] 2015-04-24 01:21:55,184 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.SYS_LOG 2015-04-24 01:21:55,185 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [logicmodel, logicdetailintro, updatetime, logictype, logicdetailid, belonguserid, logip, logid] 2015-04-24 01:21:55,188 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fkc3427a927fb10297] 2015-04-24 01:21:55,188 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fkc3427a927fb10297, primary, logid] 2015-04-24 01:21:55,207 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.SYS_OPER 2015-04-24 01:21:55,208 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [createtime, creatorid, updatetime, sequence, isdelete, operid, opername, english] 2015-04-24 01:21:55,208 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fka50e38a0e0ee34b9] 2015-04-24 01:21:55,208 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [primary, operid, fka50e38a0e0ee34b9] 2015-04-24 01:21:55,226 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.SYS_ORG 2015-04-24 01:21:55,226 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [createtime, orgcode, haschild, creatorid, updatetime, orgid, sequence, orgname, meto, isdelete, parentid] 2015-04-24 01:21:55,226 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fkc34286322d898aed, fkc3428632e0ee34b9] 2015-04-24 01:21:55,227 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [orgid, fkc34286322d898aed, primary, fkc3428632e0ee34b9] 2015-04-24 01:21:55,241 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.SYS_RESOURCE 2015-04-24 01:21:55,242 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [createtime, systype, haschild, creatorid, level, updatetime, resourcepath, sequence, resourcename, isdelete, parentid, resourceid] 2015-04-24 01:21:55,242 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk95a15560e0ee34b9, fk95a155606005efd] 2015-04-24 01:21:55,242 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fk95a15560e0ee34b9, primary, fk95a155606005efd, resourceid] 2015-04-24 01:21:55,255 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.SYS_RESOURCE_OPER_REL 2015-04-24 01:21:55,255 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [createtime, updatetime, rorelid, operid, resourceid] 2015-04-24 01:21:55,255 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk43db9b076fbfd161, fk43db9b07f3972e21] 2015-04-24 01:21:55,255 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fk43db9b076fbfd161, rorelid, primary, fk43db9b07f3972e21] 2015-04-24 01:21:55,269 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.SYS_RESOURCE_ROLE_REL 2015-04-24 01:21:55,269 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [createtime, rrrelid, updatetime, roleid, rorelid] 2015-04-24 01:21:55,270 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk51d3a12f90906c99, fk51d3a12fc5b07896] 2015-04-24 01:21:55,270 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fk51d3a12f90906c99, rrrelid, fk51d3a12fc5b07896, primary] 2015-04-24 01:21:55,285 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.SYS_ROLE 2015-04-24 01:21:55,286 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [createtime, haschild, creatorid, rolename, updatetime, roleid, sequence, meto, parentid] 2015-04-24 01:21:55,286 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fka50f92c8e0ee34b9, fka50f92c8dc4b7cd] 2015-04-24 01:21:55,286 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [roleid, fka50f92c8e0ee34b9, primary, fka50f92c8dc4b7cd] 2015-04-24 01:21:55,301 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.SYS_SETTING 2015-04-24 01:21:55,301 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [settingkey, creatorid, settingname, isdelete, settingvalue, settingid, settingdescription] 2015-04-24 01:21:55,301 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk7398869ee0ee34b9] 2015-04-24 01:21:55,301 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fk7398869ee0ee34b9, primary, settingid] 2015-04-24 01:21:55,312 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.SYS_TRANSFER 2015-04-24 01:21:55,313 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [createtime, creatorid, updatetime, changerole, isdroprole, presentid, transferid, isdelete, predecessorid, oldchangerole, isoper] 2015-04-24 01:21:55,313 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fkf64e493de0ee34b9, fkf64e493d347c856, fkf64e493d864b4588] 2015-04-24 01:21:55,313 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fkf64e493de0ee34b9, fkf64e493d347c856, primary, transferid, fkf64e493d864b4588] 2015-04-24 01:21:55,330 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.SYS_USER 2015-04-24 01:21:55,331 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [phone, sex, updatetime, ischeckemail, userid, isdelete, usertype, sessionid, password, creator, createtime, username, orgid, email, address, jointime, age, haslogin, isjob, realname, qq] 2015-04-24 01:21:55,331 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fka510fe1dedcf8aa7, fka510fe1dfa8d829e] 2015-04-24 01:21:55,331 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [primary, userid, fka510fe1dedcf8aa7, fka510fe1dfa8d829e] 2015-04-24 01:21:55,345 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.SYS_USER_ROLE_REL 2015-04-24 01:21:55,346 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [createtime, updatetime, roleid, userid, relid] 2015-04-24 01:21:55,346 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fkbbb97d1290906c99, fkbbb97d128b6a3498] 2015-04-24 01:21:55,346 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [primary, fkbbb97d1290906c99, relid, fkbbb97d128b6a3498] 2015-04-24 01:21:55,360 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.ex_example 2015-04-24 01:21:55,361 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [exboolean, extext2, extext, float1, exname, eximage, exnumber, double1, exid] 2015-04-24 01:21:55,361 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [] 2015-04-24 01:21:55,361 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [primary, exid] 2015-04-24 01:21:55,372 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pro_email_code 2015-04-24 01:21:55,373 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [outofdate, email, userid, codeid, ispass, code] 2015-04-24 01:21:55,373 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fkecd82182f12b007] 2015-04-24 01:21:55,373 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [primary, codeid, fkecd82182f12b007] 2015-04-24 01:21:55,384 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pro_fans_province 2015-04-24 01:21:55,384 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [maxfansnum, province] 2015-04-24 01:21:55,384 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [] 2015-04-24 01:21:55,384 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [primary] 2015-04-24 01:21:55,401 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pro_log 2015-04-24 01:21:55,402 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [logicmodel, logicdetailintro, updatetime, logictype, belonguserid, logip, logid] 2015-04-24 01:21:55,402 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fked8b66b23597e06] 2015-04-24 01:21:55,402 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fked8b66b23597e06, primary, logid] 2015-04-24 01:21:55,421 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pro_notice 2015-04-24 01:21:55,421 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [content, title, time, noticeid, roleid, isread, typereceive, userid, type] 2015-04-24 01:21:55,421 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk54b4f4aa9bd5a9d, fk54b4f4aaf12b007] 2015-04-24 01:21:55,421 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [noticeid, fk54b4f4aa9bd5a9d, fk54b4f4aaf12b007, primary] 2015-04-24 01:21:55,434 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pro_notice_role_rel 2015-04-24 01:21:55,435 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [noticeid, roleid, relid] 2015-04-24 01:21:55,435 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fke3e91945f7594961, fke3e919459bd5a9d] 2015-04-24 01:21:55,435 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fke3e91945f7594961, primary, fke3e919459bd5a9d, relid] 2015-04-24 01:21:55,447 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pro_notice_user_rel 2015-04-24 01:21:55,448 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [noticeid, userid, relid] 2015-04-24 01:21:55,448 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fke3ead21af12b007, fke3ead21af7594961] 2015-04-24 01:21:55,448 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [primary, fke3ead21af12b007, relid, fke3ead21af7594961] 2015-04-24 01:21:55,461 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pro_resource 2015-04-24 01:21:55,461 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [level, resourceurl, sequence, description, resourcename, parentid, resourceid] 2015-04-24 01:21:55,461 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk8878f560a504ee69] 2015-04-24 01:21:55,461 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [primary, fk8878f560a504ee69, resourceid] 2015-04-24 01:21:55,473 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pro_role 2015-04-24 01:21:55,473 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [rolename, roleid, sequence, description, parentid] 2015-04-24 01:21:55,473 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fkc3e42ac886f1a5d1] 2015-04-24 01:21:55,473 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [roleid, primary, fkc3e42ac886f1a5d1] 2015-04-24 01:21:55,486 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pro_role_resource_rel 2015-04-24 01:21:55,486 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [roleid, resourceid, relid] 2015-04-24 01:21:55,486 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fkf2b0f8ffec460cd, fkf2b0f8ff9bd5a9d] 2015-04-24 01:21:55,486 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fkf2b0f8ffec460cd, fkf2b0f8ff9bd5a9d, primary, relid] 2015-04-24 01:21:55,499 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pro_superuser 2015-04-24 01:21:55,499 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [cookie, httpstatusid, host, updatetime, account, password] 2015-04-24 01:21:55,499 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [] 2015-04-24 01:21:55,499 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [httpstatusid, primary] 2015-04-24 01:21:55,515 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pro_tasksf 2015-04-24 01:21:55,516 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [protasksfid, tasktype, starttime, mpaccount, taskid, userid, startday, forfansid, addtime, num, provincecode, money, endday] 2015-04-24 01:21:55,516 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk5e2c546a8b6a3498, fk5e2c546ae220a2dd] 2015-04-24 01:21:55,516 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fk5e2c546a8b6a3498, primary, fk5e2c546ae220a2dd] 2015-04-24 01:21:55,534 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pro_user 2015-04-24 01:21:55,534 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [uid, phone, userid, hasgoldenuser, ico, usertype, emailchecked, sessionid, password, hasagent, integral, loginname, username, level, token, email, money, haslogin, logintype, qq] 2015-04-24 01:21:55,534 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [] 2015-04-24 01:21:55,535 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [primary, userid] 2015-04-24 01:21:55,548 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pro_user_role_rel 2015-04-24 01:21:55,549 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [roleid, userid, relid] 2015-04-24 01:21:55,549 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk77db6932f12b007, fk77db69329bd5a9d] 2015-04-24 01:21:55,549 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [primary, relid, fk77db6932f12b007, fk77db69329bd5a9d] 2015-04-24 01:21:55,564 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pub_order 2015-04-24 01:21:55,564 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [detail, hasfinish, paytype, ordername, userid, orderno, totalfee, tradeno, orderid, sellerid] 2015-04-24 01:21:55,564 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk406aab8ceee2a1a1] 2015-04-24 01:21:55,564 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fk406aab8ceee2a1a1, primary, orderid] 2015-04-24 01:21:55,578 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pub_root 2015-04-24 01:21:55,578 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [rootid, functionname, roleid, actionname] 2015-04-24 01:21:55,578 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [] 2015-04-24 01:21:55,578 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [rootid, primary] 2015-04-24 01:21:55,595 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pub_seller 2015-04-24 01:21:55,595 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [sefekey, userid, account, partner, type, sellerid] 2015-04-24 01:21:55,595 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [] 2015-04-24 01:21:55,595 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [primary, sellerid] 2015-04-24 01:21:55,612 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pure_product 2015-04-24 01:21:55,612 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [votenum, productid, description, productsetid, productname] 2015-04-24 01:21:55,612 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk2c0faaa866ab4150] 2015-04-24 01:21:55,612 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fk2c0faaa866ab4150, productid, primary] 2015-04-24 01:21:55,626 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pure_product_set 2015-04-24 01:21:55,626 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [setname, imgico, backgroundimg, favoritenum, description, createdate, setid, productnum] 2015-04-24 01:21:55,626 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [] 2015-04-24 01:21:55,626 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [primary, setid] 2015-04-24 01:21:55,640 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pure_product_set_favorite 2015-04-24 01:21:55,640 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [productsetid, favoritevalid, userid, favoritedate, favoriteid] 2015-04-24 01:21:55,640 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk50b65d10f12b007, fk50b65d1066ab4150] 2015-04-24 01:21:55,641 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [primary, fk50b65d10f12b007, favoriteid, fk50b65d1066ab4150] 2015-04-24 01:21:55,654 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.pure_product_vote 2015-04-24 01:21:55,655 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [productid, voteid, userid, votevalid, votedate] 2015-04-24 01:21:55,655 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk414aca21990a2aaa, fk414aca21f12b007] 2015-04-24 01:21:55,655 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fk414aca21990a2aaa, voteid, primary, fk414aca21f12b007] 2015-04-24 01:21:55,672 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.sf_agent_price 2015-04-24 01:21:55,672 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [updatevip, updateagent, priceid, areafas, returnfans, good, simplefas, areareturnfans, readmoney] 2015-04-24 01:21:55,672 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [] 2015-04-24 01:21:55,672 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [priceid, primary] 2015-04-24 01:21:55,688 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.sf_money_E2M 2015-04-24 01:21:55,688 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [sfe2mid, time, fumoney, eemoney, userid, money, femoney, eumoney] 2015-04-24 01:21:55,688 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk90f76758b6a3498] 2015-04-24 01:21:55,688 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [sfe2mid, primary, fk90f76758b6a3498] 2015-04-24 01:21:55,700 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.sf_money_EarnMoney 2015-04-24 01:21:55,701 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [sfearnmoneyid, userid, money] 2015-04-24 01:21:55,701 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk861c1cfd8b6a3498] 2015-04-24 01:21:55,701 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [sfearnmoneyid, primary, fk861c1cfd8b6a3498] 2015-04-24 01:21:55,713 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.sf_money_EarnMoneyRecord 2015-04-24 01:21:55,714 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [startmoney, sfearnmoneyrecordid, title, time, userid, money, sonuserid, endmoney] 2015-04-24 01:21:55,714 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk88cb03aeebb7fcaa, fk88cb03ae8b6a3498] 2015-04-24 01:21:55,714 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [sfearnmoneyrecordid, primary, fk88cb03aeebb7fcaa, fk88cb03ae8b6a3498] 2015-04-24 01:21:55,725 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.sf_money_Money 2015-04-24 01:21:55,726 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [sysuser, userid, money, sfmoneyid] 2015-04-24 01:21:55,726 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk398ac758b6a3498, fk398ac7555b17e8a] 2015-04-24 01:21:55,726 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fk398ac758b6a3498, fk398ac7555b17e8a, primary, sfmoneyid] 2015-04-24 01:21:55,738 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.sf_money_MoneyRecord 2015-04-24 01:21:55,739 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [startmoney, title, time, sfmoneyrecordid, userid, money, endmoney] 2015-04-24 01:21:55,739 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk604c19268b6a3498] 2015-04-24 01:21:55,739 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fk604c19268b6a3498, sfmoneyrecordid, primary] 2015-04-24 01:21:55,754 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.sf_money_Order 2015-04-24 01:21:55,754 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [amount, detail, moneyid, hasfinish, paytype, ordername, createdate, taobao, orderno, tradeno, user, finishdate] 2015-04-24 01:21:55,754 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk3b61303bd75ee3d, fk3b61303411e69ac, fk3b61303a22fed60] 2015-04-24 01:21:55,754 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [moneyid, fk3b61303bd75ee3d, fk3b61303411e69ac, fk3b61303a22fed60, primary] 2015-04-24 01:21:55,767 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.sf_money_Pay 2015-04-24 01:21:55,767 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [startmoney, userid, money, sfpayid, orderid, endmoney, paytime] 2015-04-24 01:21:55,767 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk90fa59d8b6a3498, fk90fa59dc6fd2893] 2015-04-24 01:21:55,767 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fk90fa59d8b6a3498, primary, sfpayid, fk90fa59dc6fd2893] 2015-04-24 01:21:55,781 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.sf_money_PayOut 2015-04-24 01:21:55,781 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [sfpayoutid, status, name, dealtime, userid, beizhu, waternum, outmoney, payacount, outtime] 2015-04-24 01:21:55,781 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [fk73dad0718b6a3498] 2015-04-24 01:21:55,781 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [fk73dad0718b6a3498, sfpayoutid, primary] 2015-04-24 01:21:55,796 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000261: Table found: shuafen.sf_taobao 2015-04-24 01:21:55,796 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000037: Columns: [sefekey, taobaoid, name, userid, account, partner, type] 2015-04-24 01:21:55,796 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000108: Foreign keys: [] 2015-04-24 01:21:55,796 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] - HHH000126: Indexes: [taobaoid, primary] 2015-04-24 01:21:55,802 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] - HHH000232: Schema update complete 2015-04-24 01:21:56,047 INFO [org.springframework.orm.hibernate4.HibernateTransactionManager] - Using DataSource [com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1b61iev981s6e1q01hn98dm|3507012c, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1b61iev981s6e1q01hn98dm|3507012c, idleConnectionTestPeriod -> 0, initialPoolSize -> 1, jdbcUrl -> jdbc:mysql://127.0.0.1:3309/shuafen, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 20, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 40, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, numHelperThreads -> 3, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]] of Hibernate SessionFactory for HibernateTransactionManager 2015-04-24 01:21:58,705 INFO [org.springframework.web.context.ContextLoader] - Root WebApplicationContext: initialization completed in 18497 ms ---------------------我是URLFilete!!!!!!!!!!!!!!!!!!!!!!!! 2015-04-24 01:21:59,275 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts-default.xml] 2015-04-24 01:21:59,478 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts-plugin.xml] 2015-04-24 01:21:59,553 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts.xml] 2015-04-24 01:21:59,559 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (spring) for (com.opensymphony.xwork2.ObjectFactory) 2015-04-24 01:21:59,559 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.factory.ActionFactory) 2015-04-24 01:21:59,559 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.factory.ResultFactory) 2015-04-24 01:21:59,559 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.factory.ConverterFactory) 2015-04-24 01:21:59,559 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.factory.InterceptorFactory) 2015-04-24 01:21:59,559 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.factory.ValidatorFactory) 2015-04-24 01:21:59,559 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory) 2015-04-24 01:21:59,560 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter) 2015-04-24 01:21:59,560 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter) 2015-04-24 01:21:59,560 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter) 2015-04-24 01:21:59,560 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter) 2015-04-24 01:21:59,560 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter) 2015-04-24 01:21:59,561 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter) 2015-04-24 01:21:59,561 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor) 2015-04-24 01:21:59,561 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionFileProcessor) 2015-04-24 01:21:59,561 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor) 2015-04-24 01:21:59,562 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterCreator) 2015-04-24 01:21:59,562 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterHolder) 2015-04-24 01:21:59,562 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider) 2015-04-24 01:21:59,563 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider) 2015-04-24 01:21:59,563 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory) 2015-04-24 01:21:59,563 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer) 2015-04-24 01:21:59,563 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper) 2015-04-24 01:21:59,563 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest) 2015-04-24 01:21:59,564 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager) 2015-04-24 01:21:59,569 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer) 2015-04-24 01:21:59,569 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager) 2015-04-24 01:21:59,569 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory) 2015-04-24 01:21:59,570 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider) 2015-04-24 01:21:59,570 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory) 2015-04-24 01:21:59,570 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher) 2015-04-24 01:21:59,570 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader) 2015-04-24 01:21:59,570 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager) 2015-04-24 01:21:59,570 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper) 2015-04-24 01:21:59,570 INFO [org.apache.struts2.config.AbstractBeanSelectionProvider] - Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser) 2015-04-24 01:21:59,605 INFO [org.apache.struts2.spring.StrutsSpringObjectFactory] - Initializing Struts-Spring integration... 2015-04-24 01:21:59,605 INFO [com.opensymphony.xwork2.spring.SpringObjectFactory] - Setting autowire strategy to name 2015-04-24 01:21:59,605 INFO [org.apache.struts2.spring.StrutsSpringObjectFactory] - ... initialized Struts-Spring integration successfully 2015-4-24 1:22:02 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-bio-8081"] 2015-4-24 1:22:02 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-bio-8009"] 2015-4-24 1:22:02 org.apache.catalina.startup.Catalina start 信息: Server startup in 28711 ms
web.xml 配置顺序,
<display-name></display-name> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <filter> <filter-name>urlHeadFilter</filter-name> <filter-class>com.itaem.pro.user.filter.UrlFiflter</filter-class> </filter>
把注解的参数去掉,换成读取即可。
package com.itaem.pro.user.filter; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts2.ServletActionContext; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; import com.itaem.pro.user.model.ProAgentInformation; import com.itaem.pro.user.service.UserService; public class UrlFiflter implements Filter { @Override public void destroy() { } @Override public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain arg2) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) servletRequest; HttpServletResponse response = (HttpServletResponse) servletResponse; ProAgentInformation agentInfo; UserService shuafenUserService; WebApplicationContext ac = WebApplicationContextUtils .getWebApplicationContext(ServletActionContext .getServletContext()); shuafenUserService = (UserService) ac.getBean("shuafenUserService"); agentInfo = shuafenUserService.getAgent(); if (agentInfo == null) { response.sendRedirect(request.getContextPath() + "/error-page/404.jsp"); return; } else { } arg2.doFilter(servletRequest, servletResponse); } @Override public void init(FilterConfig arg0) throws ServletException { System.out .println("---------------------我是URLFilete!!!!!!!!!!!!!!!!!!!!!!!!"); } }