3 Replies Latest reply on Mar 6, 2002 11:40 PM by David Jencks

    Jboss 3 alpha: ConnectionFactoryLoader

    Dmitry Macsema Newbie

      I have put the following into jboss-service.xml:


      ConnectionURL=jdbc:postgresql://amur.ru/netflow?charSet=windows-1251 DriverClass=org.postgresql.Driver UserName=** Password=**

      PostgresDS
      java:/TransactionManager
      <depends optional-attribute-name="ResourceAdapterName">
      jboss.jca:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter

      <depends optional-attribute-name="ConnectionManagerFactoryLoaderName">jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory

      # #Wed Aug 15 16:17:29 EDT 2001
      BlockingTimeoutMillis=500000
      IdleTimeoutMinutes=30
      MaxSize=10
      CleanupIntervalMinutes=10
      MinSize=0
      MaxIdleTimeoutPercent=1.0

      org.jboss.resource.security.ManyToOnePrincipalMapping

      userName=**
      password=**



      I'm getting exception, here's excerpt from log file:
      [2002-03-06 11:58:28,553,ServiceController,ERROR] Could not create MBean: jboss.jca:service=ConnectionFactoryLoader,name=PostgresDS
      javax.management.ReflectionException: The MBean class could not be loaded by the specified loader
      at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:754)
      at org.jboss.system.ServiceCreator.create(ServiceCreator.java:85)
      at org.jboss.system.ServiceController.deploy(ServiceController.java:178)
      at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732)
      at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:668)
      at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215)
      at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:107)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.Main.(Main.java:199)
      at org.jboss.Main$1.run(Main.java:411)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:406)

      Any ideas?

        • 1. Re: Jboss 3 alpha: ConnectionFactoryLoader
          David Jencks Master

          Sure, start by reading the instructions and following them.

          Look in ch 3 of the free online docs.

          The config files are separated from one into many in jboss 3, combining them blindly will not lead to good results. In this case there are 2 problems:
          jbosscx.sar is not yet loaded.
          You have the wrong format for your depends/mbean-ref tags for jboss 3 alpha.

          • 2. Re: Jboss 3 alpha: ConnectionFactoryLoader
            Dmitry Macsema Newbie

            >>The config files are separated from one into many in jboss 3,

            I couldn't find in docs where I should put mbean, there's dtd available for mbean, but not for documents that use it. No dtd for jboss-service.xml. No in mbean.dtd. Also, I copied my config from the examples section in chapter 3.

            >>combining them blindly will not lead to good results.

            No dtd, no info in docs where to put what.

            >>In this case there are 2 problems:
            >>jbosscx.sar is not yet loaded.

            Suppose it's problem with my configuration.

            >>You have the wrong format for your depends/mbean-ref >>tags for jboss 3 alpha.

            No dtd, how should I know?

            • 3. Re: Jboss 3 alpha: ConnectionFactoryLoader
              David Jencks Master

              http://www.jboss.org/online-manual/HTML/ch03s12.html
              states
              "The example ConnectionFactoryLoader configuration files are now maintained individually in jboss cvs. Here is a link to a cvs view of the directory containing the examples. Please examine the checkin comments to find the version appropriate for the version of jboss 3 that you are using."


              I agree that this chapter does not explicitly state to deploy the ConnectionFactoryLoader by placing the file provided in the deploy directory. However, this is not a wild leap of faith if you examine the contents of the deploy directory and jboss-service.xml, noticing that most required services are not configured in jboss-service.xml.