主题 : 我怎么得到数据库表啊??
级别: 童生
UID: 6001
积分:9 加为好友
威望: 0 精华: 0
主题:1 回复:3
注册时间:2010-04-23
在线时长:0
1#   发表于:2010-04-23 17:34:51  IP:113.63.*.*
我现在在myEclipse下运行出现:
2010-4-23 17:21:36 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class com.jeecms.core.web.ApplicationListener
org.hibernate.exception.SQLGrammarException: could not execute query
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.loader.Loader.doList(Loader.java:2231)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
at org.hibernate.loader.Loader.list(Loader.java:2120)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:118)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1596)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)
at com.jeecms.common.hibernate3.BaseDaoImpl.findByCriteria(BaseDaoImpl.java:283)
at com.jeecms.common.hibernate3.BaseDaoImpl.findAll(BaseDaoImpl.java:125)
at com.jeecms.core.manager.impl.WebsiteMngImpl.loadAllWebsiteToCache(WebsiteMngImpl.java:98)
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:597)
=================================================================
在jdbc.property中改有:
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://127.0.0.1:3306/jeecms?characterEncoding=utf-8
jdbc.username=root
jdbc.password=123456
我就后台建了个库jeecms.但是没表所以才报错??
请问到那可以得到表信息,谢谢.
级别: 白丁
UID: 3
积分:2415 加为好友
威望: 0 精华: 0
主题:23 回复:1614
注册时间:2009-06-02
在线时长:0
2#   发表于:2010-04-23 20:50:27  IP:59.114.*.*
数据库建库和建表脚本在程序部署路径的install文件夹下
运行安装一遍安装版jeecms系统,自动会生成数据库的
生命在于折腾!
级别: 童生
UID: 6001
积分:9 加为好友
威望: 0 精华: 0
主题:1 回复:3
注册时间:2010-04-23
在线时长:0
3#   发表于:2010-04-26 16:22:39  IP:113.117.*.*
我现在布暑进来启动Tomcat,它就报上面的错误啊!
?????难到不管它报的这些错误吗?
1 共1页