建表不成功
??2017-09-05?13:25:54,376?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory]?-?Using?default?implementation?of?FileManager?provided?under?name?[system]:?DefaultFileManager ??2017-09-05?13:25:54,381?[localhost-startStop-1]?DEBUG?[org.springframework.beans.factory.support.DefaultListableBeanFactory]?-?Returning?cached?instance?of?singleton?bean?'org.springframework.transaction.config.internalTransactionAdvisor' ??2017-09-05?13:25:54,388?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory]?-?Found?following?implementations?of?FileManager?interface:?[system,?jboss] ??2017-09-05?13:25:54,388?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory]?-?No?user?defined?FileManager,?looking?up?for?internal?implementations! ??2017-09-05?13:25:54,389?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory]?-?Using?default?implementation?of?FileManager?provided?under?name?[system]:?DefaultFileManager ??2017-09-05?13:25:54,389?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]?-?Loaded?[BUILDER]?PackageConfig:?[convention-default]?for?namespace?[]?with?parents?[[PackageConfig:?[struts-default]?for?namespace?[]?with?parents?[[]]]] ??2017-09-05?13:25:54,389?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]?-?Loaded?[BUILDER]?PackageConfig:?[spring-default]?for?namespace?[]?with?parents?[[]] ??2017-09-05?13:25:54,389?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory]?-?Found?following?implementations?of?FileManager?interface:?[system,?jboss] ??2017-09-05?13:25:54,389?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory]?-?No?user?defined?FileManager,?looking?up?for?internal?implementations! ??2017-09-05?13:25:54,390?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory]?-?Using?default?implementation?of?FileManager?provided?under?name?[system]:?DefaultFileManager ??2017-09-05?13:25:54,390?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]?-?Loaded?[BUILDER]?PackageConfig:?[default]?for?namespace?[/]?with?parents?[[PackageConfig:?[struts-default]?for?namespace?[]?with?parents?[[]]]] ??2017-09-05?13:25:54,395?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]?-?Loaded?//product_*?in?'default'?package:{ActionConfig?product_*?(productAction.{1}())?-?action?-?file:/D:/workspaces/java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SSH/WEB-INF/classes/struts.xml:13:69} ??2017-09-05?13:25:54,406?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory]?-?Found?following?implementations?of?FileManager?interface:?[system,?jboss] ??2017-09-05?13:25:54,406?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory]?-?No?user?defined?FileManager,?looking?up?for?internal?implementations! ??2017-09-05?13:25:54,407?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory]?-?Using?default?implementation?of?FileManager?provided?under?name?[system]:?DefaultFileManager ??2017-09-05?13:25:54,426?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory]?-?Found?following?implementations?of?FileManager?interface:?[system,?jboss] ??2017-09-05?13:25:54,426?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory]?-?No?user?defined?FileManager,?looking?up?for?internal?implementations! ??2017-09-05?13:25:54,427?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory]?-?Using?default?implementation?of?FileManager?provided?under?name?[system]:?DefaultFileManager ??2017-09-05?13:25:54,472?[localhost-startStop-1]?DEBUG?[com.opensymphony.xwork2.config.impl.AbstractMatcher]?-?Compiling?pattern?'product_*' ??2017-09-05?13:25:54,538?[localhost-startStop-1]?DEBUG?[freemarker.cache]?-?Couldn't?find?template?in?cache?for?"org/apache/struts2/dispatcher/error.ftl"("zh_CN",?UTF-8,?parsed);?will?try?to?load?it. ??2017-09-05?13:25:54,540?[localhost-startStop-1]?DEBUG?[freemarker.cache]?-?TemplateLoader.findTemplateSource("org/apache/struts2/dispatcher/error.ftl"):?Found ??2017-09-05?13:25:54,541?[localhost-startStop-1]?DEBUG?[freemarker.cache]?-?Loading?template?for?"org/apache/struts2/dispatcher/error.ftl"("zh_CN",?UTF-8,?parsed)?from?"jar:file:/D:/workspaces/java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SSH/WEB-INF/lib/struts2-core-2.3.32.jar!/org/apache/struts2/dispatcher/error.ftl" ??九月?05,?2017?1:25:54?下午?org.apache.coyote.AbstractProtocol?start 信息:?Starting?ProtocolHandler?["http-bio-8080"] 九月?05,?2017?1:25:54?下午?org.apache.coyote.AbstractProtocol?start 信息:?Starting?ProtocolHandler?["ajp-bio-8009"] 九月?05,?2017?1:25:54?下午?org.apache.catalina.startup.Catalina?start 信息:?Server?startup?in?13731?ms 2017-09-05?13:26:02,910?[C3P0PooledConnectionPoolManager[identityToken->1hge1d99qmc40pm1puzhu5|3ae421c0]-AdminTaskTimer]?DEBUG?[com.mchange.v2.async.ThreadPoolAsynchronousRunner]?-?com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@2ccbb00?--?Running?DeadlockDetector[Exiting.?No?pending?tasks.]
大家看看是神馬情況?我完全是按著視頻敲的,但是建表不成功!
2017-09-09
我也出現(xiàn)這樣的問(wèn)題了有幾個(gè)錯(cuò)誤點(diǎn)可以供你參考:
2個(gè)web項(xiàng)目指向同一個(gè)數(shù)據(jù)庫(kù),一個(gè)web項(xiàng)目出錯(cuò)會(huì)在另外一個(gè)項(xiàng)目啟動(dòng)時(shí)報(bào)錯(cuò),影響另外一個(gè)項(xiàng)目
spring.xml 名字是否正確(我的就是名字前面有個(gè)空格一直沒(méi)找到)
jdbc.properties 是否正確
對(duì)了,你試試index.jsp有錯(cuò)誤嗎?如果報(bào)404 那就是你hibernate和數(shù)據(jù)庫(kù)方面有錯(cuò)誤
*.hbm.xml 中值的名字是否正確。
這就是我遇到的錯(cuò)誤,哈哈哈哈可能是我太菜了出現(xiàn)這樣的錯(cuò)誤。但我知道找錯(cuò)誤賊j8難受。希望對(duì)你有幫助
2017-09-05
2017-09-05
看看你的applicationContext.xml