Hide Forgot
Date of First Response: 2008-01-28 05:04:39 project_key: SOA JBossESB Management Console fails when configure with MySQL. To reproduce it: In the management-esb directory there is a db.properties file. In order to change the database from hsqldb to MySQL, edit this file and change the db property to "mysql". Add the JDBC driver into the server/<instance>/lib directory. Create the database "statistics" before deploying. % cd tools/console/management-esb % ant deploy When get into the console (http://localhost:8080/jbossesb) this exception is thrown 18:07:38,063 WARN [JDBCExceptionReporter] SQL Error: 1146, SQLState: 42S02 18:07:38,063 ERROR [JDBCExceptionReporter] Table 'statistics.JMXAttribute' doesn't exist 18:07:38,068 ERROR [STDERR] org.hibernate.exception.SQLGrammarException: could not execute query at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.loader.Loader.doList(Loader.java:2223) at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104) at org.hibernate.loader.Loader.list(Loader.java:2099) at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:289) at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1695) at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142) at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:152) at org.jboss.soa.esb.monitoring.server.StatisticsHelper.getObjectNamesForServer(StatisticsHelper.java:220) at org.apache.jsp.app.index_jsp._jspService(index_jsp.java:110) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595) Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'statistics.JMXAttribute' doesn't exist at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723) at com.mysql.jdbc.Connection.execSQL(Connection.java:3256) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1313) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1448) at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:236) at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186) at org.hibernate.loader.Loader.getResultSet(Loader.java:1787) at org.hibernate.loader.Loader.doQuery(Loader.java:674) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236) at org.hibernate.loader.Loader.doList(Loader.java:2220) ... 33 more
PLEASE ATTACH THE LOG!! Thanks :-)
Attachment: Added: server.log.tar.gz
The console was already installed, so I redeployed it following this instructions: https://engineering.redhat.com/docbot/en-US/JBoss_SOA_Platform/4.2/html/SOA_ESB_Monitoring_Guide/ch01s01.html and then I started up the server.
Link: Added: This issue related JBESB-1523
Add a dependency on the jbossesbmanagement-service.xml MBean. This change has been committed to CP and was added to SOA build by Mike Brock - it is in a different file because of SOA build authorization/authentication changes. Copying his email : From Mike Brock : added. On 28-Jan-08, at 3:39 PM, Tom Cunningham wrote: > Mike, > > I'm having trouble finding the jboss-web.xml that ends up as management.esb/jbossesb.war/WEB-INF/jboss-web.xml. I've poked around the SOA branch and can't find it. Is it in another module or something? Any chance you can add the line below? > > Thanks, > > Tom
Link: Added: This issue is a dependency of JBQA-1090
Link: Added: This issue related JBQA-1090
the problem is happening again on JBoss SOA Platform, ESB Standalone Server - Version 4.2.0.CR2
Attaching the logs for the error in CR2
Jehudi, are you rebuilding and deploying the management.esb from the tools/console directory of CR2, or copying an old one in? I just tried this with standalone, and cannot reproduce.
Just to be clear the qa db change stuff probably doesn't contain the changes we need here.
Jehudi is doing the right steps and still seeing this - will take a look tonight.
Link: Added: This issue depends JBESB-1541
Fixed in ESB project, will be in next platform merge.
verified in CR3