Jboss Studio Developer首发票 - 怪物示例,数据库错误

时间:2015-04-30 15:44:13

标签: java maven java-ee jboss h2

我现在正在学习如何在JBoss Developer Studio中制作第一个应用程序我已经阅读了关于他们的故事 - 怪物应用程序示例的所有教程我已经配置了maven,因为他们说,我已经从他们的git存储库下载了项目并且使用了这个到我的项目。我已经运行了项目并且Everythins正在运行,但H2数据库存在问题。当我去管理控制台 localhost:8080 / h2console它工作,我看到新添加的列与记录,因为它在项目中的import.sql文件,但在控制台我得到错误,项目中的一半页面不起作用。在控制台我有这个错误,我不知道如何解决它们。

17:19:18,267 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (ServerService Thread Pool -- 54) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider

17:19:18,468 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 54) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect

17:19:18,474 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 54) HHH000431: Unable to determine H2 database version, certain features may not work

17:19:18,640 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (ServerService Thread Pool -- 54) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory

17:19:18,644 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 54) HHH000397: Using ASTQueryTranslatorFactory

17:19:18,688 INFO  [org.hibernate.validator.internal.util.Version] (ServerService Thread Pool -- 54 HV000001: Hibernate Validator 4.3.1.Final-redhat-1

17:19:19,135 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000227: Running hbm2ddl schema export

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table Appearance drop constraint FK_8s2lbwy173deq6xhtap48djlb

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "APPEARANCE" not found; SQL statement: alter table Appearance drop constraint FK_8s2lbwy173deq6xhtap48djlb [42102-168]

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table Appearance drop constraint FK_5xl8g6pwd699frupjk2bp03ks

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "APPEARANCE" not found; SQL statement: alter table Appearance drop constraint FK_5xl8g6pwd699frupjk2bp03ks [42102-168]

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table Booking drop constraint FK_leaf9xapkf0xcql0rj1ju6a3r

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "BOOKING" not found; SQL statement:alter table Booking drop constraint FK_leaf9xapkf0xcql0rj1ju6a3r [42102-168]

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table Event drop constraint FK_5nymmio04sew5y7o7wvtv82na

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "EVENT" not found; SQL statement:alter table Event drop constraint FK_5nymmio04sew5y7o7wvtv82na [42102-168]

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table Event drop constraint FK_cck2yno71efp1ghlfme4ophux

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "EVENT" not found; SQL statement:alter table Event drop constraint FK_cck2yno71efp1ghlfme4ophux [42102-168]

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table Performance drop constraint FK_2ad0jk30a6hi0twn2xxso6g71

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "PERFORMANCE" not found; SQL statement:alter table Performance drop constraint FK_2ad0jk30a6hi0twn2xxso6g71 [42102-168]

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table Section drop constraint FK_bpuwo340e2jxwlwyf8qai3gql

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "SECTION" not found; SQL statement:alter table Section drop constraint FK_bpuwo340e2jxwlwyf8qai3gql [42102-168]

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table SectionAllocation drop constraint FK_5dwueehoc18d429a6ma2e7t6

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "SECTIONALLOCATION" not found; SQL statement:alter table SectionAllocation drop constraint FK_5dwueehoc18d429a6ma2e7t6 [42102-168]

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table SectionAllocation drop constraint FK_ds4sl29sqh0snk7hw733p3fx0

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "SECTIONALLOCATION" not found; SQL statement:alter table SectionAllocation drop constraint FK_ds4sl29sqh0snk7hw733p3fx0 [42102-168]

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table Ticket drop constraint FK_pdk8eed2puqot8lx8c90ledjn

17:19:19,135 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "TICKET" not found; SQL statement:alter table Ticket drop constraint FK_pdk8eed2puqot8lx8c90ledjn [42102-168]

17:19:19,150 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table Ticket drop constraint FK_jvudijc5qlti0547g3fuoctis

17:19:19,150 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "TICKET" not found; SQL statement:alter table Ticket drop constraint FK_jvudijc5qlti0547g3fuoctis [42102-168]

17:19:19,150 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table Ticket drop constraint FK_fphjem4g2orlpfeabeuxkhycx

17:19:19,150 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "TICKET" not found; SQL statement:alter table Ticket drop constraint FK_fphjem4g2orlpfeabeuxkhycx [42102-168]

17:19:19,150 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table TicketPrice drop constraint FK_b4y5fuevgavs3drls31ni6wd3

17:19:19,150 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "TICKETPRICE" not found; SQL statement:alter table TicketPrice drop constraint FK_b4y5fuevgavs3drls31ni6wd3 [42102-168]

17:19:19,150 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table TicketPrice drop constraint FK_ntne1lqkfmtmke809budx5itq

17:19:19,150 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "TICKETPRICE" not found; SQL statement:alter table TicketPrice drop constraint FK_ntne1lqkfmtmke809budx5itq [42102-168]

17:19:19,150 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table TicketPrice drop constraint FK_7o36hepy47tlyk1ta3ksix9fv

17:19:19,150 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "TICKETPRICE" not found; SQL statement:alter table TicketPrice drop constraint FK_7o36hepy47tlyk1ta3ksix9fv [42102-168]

17:19:19,150 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000389: Unsuccessful: alter table Venue drop constraint FK_2c9wphvw1mi32yr614p4u7cuf

17:19:19,150 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) Table "VENUE" not found; SQL statement:alter table Venue drop constraint FK_2c9wphvw1mi32yr614p4u7cuf [42102-168]

17:19:19,213 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 54) HHH000230: Schema export complete

17:19:19,716 INFO  [org.jboss.web] (ServerService Thread Pool -- 59) JBAS018210: Register web context: /demo

17:19:19,770 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 26) JBAS018559: Deployed "h2console.war" (runtime-name : "h2console.war")

17:19:19,770 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 26) JBAS018559: Deployed "demo.war" (runtime-name : "demo.war")

17:19:19,771 INFO  [org.jboss.as.controller] (Controller Boot Thread)        JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service     jboss.serverManagement.controller.management.http:    org.jboss.msc.service.StartException in service    jboss.serverManagement.controller.management.http: Address already in use:   bind localhost/127.0.0.1:9990

1 个答案:

答案 0 :(得分:0)

H2的内存数据库正在运行另一个实例。因此,请检查您的计算机上是否存在从之前的h2运行的另一个java.exe进程,这会导致绑定到同一端口的问题。终止该进程并重新运行您可能无法获得的应用程序错误。