hibernate如何为oracale数据库自动建表?
解决方案 »
- struts2 文件下载:含有中文名称的文件后缀为action!求大神赐教
- struts2 和 spring 集成出现的一个怪问题,请各位大侠献计
- 是求x/y的小数点后300位数字,要求递归实现
- CXF2.0.4 nor any of its super class is known to this context
- 请教xsd中的元素自身嵌套问题
- 用户希望在多个新闻频道中发布的文章能够同时选择发布到热点新闻中显示,请给出在dotCMS上的实现步骤并给出相关的Velocity代码。
- 请问:常用的设计模式有哪些?它们的使用条件是什么?
- 文件找不到问题
- 安装WebLogic Workshop 8.1问题,请各位帮帮忙了
- 急!急!急!有关<<Thinking in JAVA>>的问题
- 超菜的问题,由于初学,先谢各位了。。。。
- 求一隔spring中的任务排程表达式
一种是hibernate.cfg.xml设置下:<property name="hbm2ddl.auto">create</property>
一种是用代码写法:public class ExportDB { public static void main(String[] args) {
//读取hibernate.cfg.xml文件
Configuration cfg = new Configuration().configure();
SchemaExport export = new SchemaExport(cfg);
export.create(true, true);
}
}
SchemaExport export = new SchemaExport(cfg);
export.create(true, true);
除非你到了一定的级别才让你做配制文件这块!
new Configuration().configure());
export.create(true, true);
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Myeclipse\bin;D:\apache-tomcat-5.5.20\bin
2009-4-25 21:35:07 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2009-4-25 21:35:07 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1936 ms
2009-4-25 21:35:07 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-4-25 21:35:07 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.20
2009-4-25 21:35:08 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
2009-4-25 21:35:10 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2009-4-25 21:35:10 org.apache.catalina.core.StandardContext start
严重: Context [/Air] startup failed due to previous errors
2009-4-25 21:35:10 org.apache.catalina.core.ApplicationContext log
信息: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
2009-4-25 21:35:10 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2009-4-25 21:35:10 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2009-4-25 21:35:11 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2009-4-25 21:35:11 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
2009-4-25 21:35:20 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2009-4-25 21:35:21 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2009-4-25 21:35:21 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/94 config=null
2009-4-25 21:35:21 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2009-4-25 21:35:21 org.apache.catalina.startup.Catalina start
信息: Server startup in 14045 ms
就是这个错误!谁知道是怎么回事啊?