[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: how to configure JBOSS to connect to two databases schem

badam571 do-not-reply at jboss.com
Tue Aug 12 11:59:01 EDT 2008


Hi PeterJ

thank you for the reassuring and prompt response.

the other config files

standardjbosscmp-jdbc.xml

standardjaws.xml

jboss-login.xml

I am interested in knowing about: standardjbosscmp-jdbc.xml

should I add another defaults tag for the new datasource in standardjbosscmp-jdbc.xml or how I will accommodate the new datasource in this file.  This config file continuouly generate an errror like this:

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jdbc:service=metadata
  State: FAILED
  Reason: org.jboss.deployment.DeploymentException: Invalid XML: file=file:/C:/j
boss-4.0.4.GA/server/default/conf/standardjbosscmp-jdbc.xml; - nested throwable:
 (org.xml.sax.SAXParseException: The content of element type "jbosscmp-jdbc" mus
t match "(defaults?,enterprise-beans?,relationships?,dependent-value-classes?,ty
pe-mappings?,entity-commands?,user-type-mappings?,reserved-words?)".)
  Depends On Me:
    jboss.jdbc:service=metadata,datasource=DefaultDS
    jboss.jdbc:service=metadata,datasource=SybaseDS
    jboss.jdbc:service=metadata,datasource=SybaseDB


        at org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDepl
oyer.java:1367)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy5.deploy(Unknown Source)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
        at org.jboss.Main.boot(Main.java:200)
        at org.jboss.Main$1.run(Main.java:464)
        at java.lang.Thread.run(Thread.java:595)
11:53:09,363 INFO  [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
-8080


Best Regards

badam571



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170115#4170115

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170115



More information about the jboss-user mailing list