4 Replies Latest reply on Dec 27, 2007 2:29 AM by jaikiran pai

    jboss-ds.xml Deployment problem

    Sebastian Brosch Newbie

      Hello,

      I`m trying to deploy a simple EJB 3.0 application on Jboss 4.2.0GA. Until now everything worked fine. Now i added an Entity bean to the project. This bean uses hiberate to connect to an Oracle 10g database.
      My problem is the following error during the deployment.

      11:55:08,485 ERROR [MainDeployer] Could not create deployment: file:/Applications/jboss-4.2.0.GA/server/default/deploy/jboss-ds.xml
      org.jboss.deployment.DeploymentException: Invalid character ':' in value part of property; - nested throwable: (javax.management.MalformedObjectNameException: Invalid character ':' in value part of property)

      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
      at org.jboss.system.ServiceController.install(ServiceController.java:226)
      at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      Caused by: javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
      at javax.management.ObjectName.construct(ObjectName.java:529)
      at javax.management.ObjectName.(ObjectName.java:1304)
      at org.jboss.system.ServiceConfigurator.parseObjectName(ServiceConfigurator.java:780)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:447)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
      ... 95 more

      As a result of this the following problems are this ones:

      --- Incompletely deployed packages ---
      org.jboss.deployment.DeploymentInfo@176fd545 { url=file:/Applications/jboss-4.2.0.GA/server/default/deploy/jboss-ds.xml }
      deployer: org.jboss.deployment.XSLSubDeployer@bf784b
      status: Deployment FAILED reason: Invalid character ':' in value part of property; - nested throwable: (javax.management.MalformedObjectNameException: Invalid character ':' in value part of property)
      state: FAILED
      watch: file:/Applications/jboss-4.2.0.GA/server/default/deploy/jboss-ds.xml
      altDD: null
      lastDeployed: 1185875708472
      lastModified: 1185875708000
      mbeans:

      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:jar=TEM-server.jar,unitName=TEM-serverPU
      State: NOTYETINSTALLED
      I Depend On:
      jboss.jca:name=TemControlClient,service=DataSourceBinding

      ObjectName: jboss.j2ee:jar=TEM-server.jar,name=ClientBean,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:unitName=persistence_ctx

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: persistence.units:unitName=persistence_ctx
      State: NOTYETINSTALLED
      Depends On Me:
      jboss.j2ee:jar=TEM-server.jar,name=ClientBean,service=EJB3

      ObjectName: jboss.jca:name=TemControlClient,service=DataSourceBinding
      State: NOTYETINSTALLED
      Depends On Me:
      persistence.units:jar=TEM-server.jar,unitName=TEM-serverPU


      11:55:10,785 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
      11:55:10,823 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
      11:55:10,846 INFO [Server] JBoss (MX MicroKernel) [4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440)] Started in 31s:580ms
      11:56:35,842 WARN [JmxKernelAbstraction] jboss.j2ee:jar=TEM-server.jar,name=ClientBean,service=EJB3 is not registered
      11:56:35,843 WARN [JmxKernelAbstraction] persistence.units:jar=TEM-server.jar,unitName=TEM-serverPU is not registered
      11:56:35,907 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
      11:56:35,907 INFO [JmxKernelAbstraction] installing MBean: persistence.units:jar=TEM-server.jar,unitName=TEM-serverPU with dependencies:
      11:56:35,907 INFO [JmxKernelAbstraction] jboss.jca:name=TemControlClient,service=DataSourceBinding
      11:56:35,914 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      11:56:35,915 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=TEM-server.jar,name=ClientBean,service=EJB3 with dependencies:
      11:56:35,915 INFO [JmxKernelAbstraction] persistence.units:unitName=persistence_ctx
      11:56:35,920 INFO [EJB3Deployer] Deployed: file:/Applications/jboss-4.2.0.GA/server/default/deploy/TEM-server.jar
      11:56:35,929 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- Incompletely deployed packages ---
      org.jboss.deployment.DeploymentInfo@176fd545 { url=file:/Applications/jboss-4.2.0.GA/server/default/deploy/jboss-ds.xml }
      deployer: org.jboss.deployment.XSLSubDeployer@bf784b
      status: Deployment FAILED reason: Invalid character ':' in value part of property; - nested throwable: (javax.management.MalformedObjectNameException: Invalid character ':' in value part of property)
      state: FAILED
      watch: file:/Applications/jboss-4.2.0.GA/server/default/deploy/jboss-ds.xml
      altDD: null
      lastDeployed: 1185875708472
      lastModified: 1185875708000
      mbeans:

      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:jar=TEM-server.jar,unitName=TEM-serverPU
      State: NOTYETINSTALLED
      I Depend On:
      jboss.jca:name=TemControlClient,service=DataSourceBinding

      ObjectName: jboss.j2ee:jar=TEM-server.jar,name=ClientBean,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:unitName=persistence_ctx

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: persistence.units:unitName=persistence_ctx
      State: NOTYETINSTALLED
      Depends On Me:
      jboss.j2ee:jar=TEM-server.jar,name=ClientBean,service=EJB3

      ObjectName: jboss.jca:name=TemControlClient,service=DataSourceBinding
      State: NOTYETINSTALLED
      Depends On Me:
      persistence.units:jar=TEM-server.jar,unitName=TEM-serverPU


      12:00:07,202 WARN [JmxKernelAbstraction] jboss.j2ee:jar=TEM-server.jar,name=ClientBean,service=EJB3 is not registered
      12:00:07,203 WARN [JmxKernelAbstraction] persistence.units:jar=TEM-server.jar,unitName=TEM-serverPU is not registered
      12:00:07,258 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
      12:00:07,259 INFO [JmxKernelAbstraction] installing MBean: persistence.units:jar=TEM-server.jar,unitName=TEM-serverPU with dependencies:
      12:00:07,259 INFO [JmxKernelAbstraction] jboss.jca:name=TemControlClient,service=DataSourceBinding
      12:00:07,274 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      12:00:07,275 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=TEM-server.jar,name=ClientBean,service=EJB3 with dependencies:
      12:00:07,275 INFO [JmxKernelAbstraction] persistence.units:unitName=persistence_ctx
      12:00:07,280 INFO [EJB3Deployer] Deployed: file:/Applications/jboss-4.2.0.GA/server/default/deploy/TEM-server.jar
      12:00:07,287 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- Incompletely deployed packages ---
      org.jboss.deployment.DeploymentInfo@176fd545 { url=file:/Applications/jboss-4.2.0.GA/server/default/deploy/jboss-ds.xml }
      deployer: org.jboss.deployment.XSLSubDeployer@bf784b
      status: Deployment FAILED reason: Invalid character ':' in value part of property; - nested throwable: (javax.management.MalformedObjectNameException: Invalid character ':' in value part of property)
      state: FAILED
      watch: file:/Applications/jboss-4.2.0.GA/server/default/deploy/jboss-ds.xml
      altDD: null
      lastDeployed: 1185875708472
      lastModified: 1185875708000
      mbeans:

      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:jar=TEM-server.jar,unitName=TEM-serverPU
      State: NOTYETINSTALLED
      I Depend On:
      jboss.jca:name=TemControlClient,service=DataSourceBinding

      ObjectName: jboss.j2ee:jar=TEM-server.jar,name=ClientBean,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:unitName=persistence_ctx

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.jca:name=TemControlClient,service=DataSourceBinding
      State: NOTYETINSTALLED
      Depends On Me:
      persistence.units:jar=TEM-server.jar,unitName=TEM-serverPU

      ObjectName: persistence.units:unitName=persistence_ctx
      State: NOTYETINSTALLED
      Depends On Me:
      jboss.j2ee:jar=TEM-server.jar,name=ClientBean,service=EJB3

      my jboss-ds.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <datasources>
       <local-tx-datasource>
       <jndi-name>TemControlClient</jndi-name>
       <connection-url>jdbc:oracle:thin:@XXX:1521:XXX</connection-url>
       <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
       <user-name>xxx</user-name>
       <password>xxx</password>
       <min-pool-size>5</min-pool-size>
       <max-pool-size>20</max-pool-size>
       <idle-timeout-minutes>5</idle-timeout-minutes>
       </local-tx-datasource>
      </datasources>
      


      my persistance.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
       <persistence-unit name="TEM-serverPU" transaction-type="JTA">
       <jta-data-source>java:/TemControlClient</jta-data-source>
       <properties>
       <property name="hibernate.show_sql" value="true" />
       </properties>
       </persistence-unit>
      </persistence>


      I`m working on this problem for 2 days now but i`couldn`t solve it until now. Also searches on google and many forums couldn`t bring me to an result. Seems there is something wrong with my configuration but as far as i know from tutorials and books the jboss-ds.xml and persistance.xml are correct.
      Would be nice if anyone could help my with this problem because i`m totally stuck.

      Thanks in advance

        • 1. Re: jboss-ds.xml Deployment problem
          Sebastian Brosch Newbie

          Hello,

          i could solve this problem on my own. The reason was that the jboss-ds.xml on the server wasn`t updatet by NetBeans. After i copied the local file to the server everything worked fine.

          • 3. Re: jboss-ds.xml Deployment problem
            rahul nikhra Newbie

             

            "rahul_neek" wrote:
            hi
            i am also running through same problem
            --- MBeans waiting for other MBeans ---
            ObjectName: jboss.j2ee:jar=IPTV3.0.jar,name=AdminManagerBean,service=EJB3
            State: FAILED
            Reason: java.lang.IllegalArgumentException: Square brackets expected arround:
            I Depend On:
            persistence.units:jar=IPTV3.0.jar,unitName=IPTVmiddlewareEJB

            ObjectName: jboss.j2ee:jar=IPTV3.0.jar,name=BouqueListingManagerBean,service=EJB3
            State: FAILED
            Reason: java.lang.IllegalArgumentException: Square brackets expected arround:
            I Depend On:
            persistence.units:jar=IPTV3.0.jar,unitName=IPTVmiddlewareEJB

            ObjectName: jboss.j2ee:jar=IPTV3.0.jar,name=BroadcasterManagerBean,service=EJB3
            State: FAILED
            Reason: java.lang.IllegalArgumentException: Square brackets expected arround:
            I Depend On:
            persistence.units:jar=IPTV3.0.jar,unitName=IPTVmiddlewareEJB help me
            thanks in advance


            • 4. Re: jboss-ds.xml Deployment problem
              jaikiran pai Master

              rahul_neek,

              I dont see any similarity between the original post and your post in this thread. You should have created a separate thread for your question.

              As for the exception you are seeing, can you provide more details about the contents of the IPTV3.0.jar? What does it contain?

              Reason: java.lang.IllegalArgumentException: Square brackets expected arround:

              Also, does your jar contain any timer related functionality? This piece of error string is present in only timer related classes in the JBoss code.