0 Replies Latest reply on Dec 13, 2004 2:47 AM by Emily

    MalformedURLException while deploying XMBean?

    Emily Newbie

      This is very confusing, because I only get this exception on some machines while deploying. On other machines, the same configuration (as far as I can tell) deploys just fine. Here is the exception:

      9682963-2004-12-12 23:23:37,571 DEBUG [org.jboss.system.ServiceCreator] About to create xmbean object: JMX.Scilearn.queue:service
      =MessageConsumerManager with code: com.scilearn.jmx.MessageConsumerManager with descriptor: com/scilearn/jmx/MessageConsumerManag
      er.xml
      9683220-2004-12-12 23:23:37,641 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
      9683338-2004-12-12 23:23:37,644 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
      9683457-2004-12-12 23:23:37,644 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
      9683579-2004-12-12 23:23:37,645 DEBUG [org.jboss.deployment.SARDeployer] create operation failed for package file:/home/gateway/S
      ystem3/server-env/jboss-4.0.0/server/standard/deploy/8server-data.sar
      9683770-org.jboss.deployment.DeploymentException: no protocol: com/scilearn/jmx/MessageConsumerManager.xml; - nested throwable: (
      java.net.MalformedURLException: no protocol: com/scilearn/jmx/MessageConsumerManager.xml)
      9683981- at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:139)
      9684060- at org.jboss.system.ServiceController.install(ServiceController.java:200)
      9684135- at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
      9684200- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      9684290- at java.lang.reflect.Method.invoke(Method.java:324)
      9684343- at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      9684429- at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      9684493- at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      9684555- at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
      9684638- at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      9684711- at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      9684778- at $Proxy4.install(Unknown Source)


      I took a peek at the generated jboss-service.xml which is deployed in my sar, and it looks like this:

      
      <?xml version="1.0" encoding="UTF-8"?>
      
      <service>
      
       <mbean code="com.scilearn.jmx.MessageConsumerManager"
       name="JMX.Scilearn.queue:service=MessageConsumerManager"
       xmbean-dd="com/scilearn/jmx/MessageConsumerManager.xml">
       </mbean>
      
       <!--
       To use non XDoclet mbeans, create a jboss-service.ent file that
       contains the additional mbeans and place it in your
       project's merge dir.
       -->
      
      </service>
      
      



      When everything deploys correctly on another machine, the log looks like this:

      2004-12-12 23:03:22,679 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step: url file:/home/gateway/System3/server-env/j
      boss-4.0.0/server/standard/deploy/8server-data.sar
      2004-12-12 23:03:22,680 DEBUG [org.jboss.deployment.SARDeployer] Registering service UCL=jmx.loading:UCL=f0a3e8
      2004-12-12 23:03:22,682 DEBUG [org.jboss.system.ServiceCreator] About to create xmbean object: JMX.Scilearn.queue:service=MessageConsume
      rManager with code: com.scilearn.jmx.MessageConsumerManager with descriptor: com/scilearn/jmx/MessageConsumerManager.xml
      2004-12-12 23:03:22,768 DEBUG [org.jboss.system.ServiceCreator] Created bean: JMX.Scilearn.queue:service=MessageConsumerManager
      2004-12-12 23:03:22,769 DEBUG [org.jboss.system.ServiceController] Creating service JMX.Scilearn.queue:service=MessageConsumerManager
      2004-12-12 23:03:22,769 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[sourc
      e=jboss.system:service=ServiceController,type= org.jboss.system.ServiceMBean.create,sequenceNumber=336,timeStamp=1102921402769,message=n
      ull,userData=JMX.Scilearn.queue:service=MessageConsumerManager]
      2004-12-12 23:03:22,769 DEBUG [org.jboss.management.j2ee.factory.DefaultManagedObjectFactoryMap] Failed to find factory for event: javax
      .management.Notification[source=jboss.system:service=ServiceController,type= org.jboss.system.ServiceMBean.create,sequenceNumber=336,tim
      eStamp=1102921402769,message=null,userData=JMX.Scilearn.queue:service=MessageConsumerManager]
      2004-12-12 23:03:22,769 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: JMX.Scilearn.queue:service=Message
      ConsumerManager dependents are: []
      2004-12-12 23:03:22,770 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[sourc
      e=jboss.system:service=ServiceDeployer,type=org.jboss.deployment.SubDeployer.create,sequenceNumber=120,timeStamp=1102921402769,message=n
      ull,userData=org.jboss.deployment.DeploymentInfo@9ebf72cd { url=file:/home/gateway/System3/server-env/jboss-4.0.0/server/standard/deploy
      /8server-data.sar }
      deployer: org.jboss.deployment.SARDeployer@ecb281
      status: null
      state: CREATE_DEPLOYER
      watch: file:/home/gateway/System3/server-env/jboss-4.0.0/server/standard/deploy/8server-data.sar
      altDD: null
      lastDeployed: 1102921402679
      lastModified: 1102921402000
      mbeans:
      JMX.Scilearn.queue:service=MessageConsumerManager (state not available)
      ]
      2004-12-12 23:03:22,770 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying 8server-data.sar
      2004-12-12 23:03:22,770 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/home/gateway/System3/server-env/jboss-4.0
      .0/server/standard/deploy/8server-data.sar
      2004-12-12 23:03:22,770 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/home/gateway/System3/server-env/jb
      oss-4.0.0/server/standard/deploy/8server-data.sar

      Any ideas?