使用WebDSl eclipse插件将WebDSL应用程序部署到Tomcat v6.0时,出现以下错误

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

   javax.servlet.ServletException: Servlet.init() for servlet mainservlet threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Unknown Source)


    root cause

    org.hibernate.TransactionException: Transaction not successfully started
org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:179)
utils.DispatchServlet.tryLoadGlobalsAndPerformInit(DispatchServlet.java:31)
utils.DispatchServlet.init(DispatchServlet.java:39)
javax.servlet.GenericServlet.init(GenericServlet.java:212)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Unknown Source)


昨晚它停止工作了。
我尝试重新启动不起作用:(

最佳答案

“事务未成功启动”错误表明数据库连接存在问题。尝试使用命令行客户端登录到MySQL,以验证MySQL是否正在运行以及凭据是否正确。登录后,检查数据库是否存在。

要获得更多帮助,您还可以访问IRC(irc.freenode.net上的#webdsl频道),在邮件列表(https://mailman.st.ewi.tudelft.nl/listinfo/webdsl)上询问或在http://yellowgrass.org/project/WebDSL上发布问题。

07-25 22:21