Subject | Re: JBoss 4.0.1 and Firebird 1.5 - Help! |
---|---|
Author | Marc Batchelor |
Post date | 2005-05-09T20:47:27Z |
> What do you mean by "no feedback"? It seems that deployment was ok.You can
> now check in JMX console whether there is a datasource bound toDefaultDS.
> If yes, then you have to check that with some sample application.Thanks for your reply. The "no feedback" was referring to the fact
>
that none of the JMS tables were being created, no activity was being
done in the database, and I wasn't getting any exceptions. So,
everything "looked" OK, but it definitely wasn't.
When I examined the mbean in the JMX console, I got this:
javax.servlet.ServletException: Failed to get MBean data
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.inspectMBean(HtmlAdaptorServlet.java:187)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:75)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:56)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
root cause
javax.management.InstanceNotFoundException:
jboss.jca:name=DefaultDS,service=DataSourceBinding is not registered.
org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:509)
org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:649)
org.jboss.jmx.adaptor.control.Server.getMBeanData(Server.java:77)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.inspectMBean(HtmlAdaptorServlet.java:180)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:75)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:56)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
============
But, I figured out the problem. The problem was in my three files:
ejb-deployer.xml, firebird-jdbc2-service.xml and
firebird-jdbc-state-service.xml.
In each file, I had something that looked like this:
jboss.jca:service=DatasourceBinding,name=DefaultDS
The problem is that the firebird-ds.xml doesn't define a standard
datasource. This entry needed to be:
jboss.jca:service=ConnectionFactoryBinding,name=DefaultDS
Whilest that may seem to be a newbie mistake, there are no samples
anywhere that gave me a hint that I needed to use
ConnectionFactoryBinding instead of DatasourceBinding. I am after all
creating a datasource. Oh well - I've at least solved my problem.
Thanks,
Marc