7 Replies Latest reply on Nov 16, 2004 8:32 AM by Zhaobo

    why throw java.net.MalformedURLException: no !/ in spec

    Zhaobo Newbie

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE mbean SYSTEM "D:\eclipse\workspace\ibsext\jboss_xmbean_1_0.dtd">

      The IBS CONFIG XMBean Example



      <state-action-on-update value="keep-running"/>

      com.ibs.cofig.mbean.ConfigFile

      The default constructor
      ConfigFile

      <!-- Attributes -->

      The location in JNDI where the Map we manage will be bound
      jndiName
      java.lang.String




      <!-- Operations -->

      The start lifecycle operation
      start


      The stop lifecycle operation
      stop


      Save a file into database
      setFile

      File's system indentifier
      id
      int


      File to be saved
      file
      java.io.File



      Get a file from database
      getFile

      File's system indentifier
      id
      int

      <return-type>java.io.InputStream</return-type>


      Save a file into database
      setConfigFile

      File's name
      name
      String


      File to be saved
      file
      java.io.File



      Get a file from database
      getConfigFile

      File's name
      name
      String

      <return-type>java.io.InputStream</return-type>


      Save a file into database
      setConfigSchemaFile

      File's name
      name
      String


      File to be saved
      file
      java.io.File



      Get a file from database
      getConfigSchemaFile

      File's name
      name
      String

      <return-type>java.io.InputStream</return-type>


      Save a file into database
      setConfigExtFile

      File's name
      name
      String


      File to be saved
      file
      java.io.File



      Get a file from database
      getConfigExtFile

      File's name
      name
      String

      <return-type>java.io.InputStream</return-type>

      <!--Notifications-->

      The notification sent whenever a value is saved
      javax.management.Notification
      <notification-type>com.ibs.cofig.mbean.setFile</notification-type>



      this jboss-service.xml is valid form corresponding to jboss_xmbean_1_0.dtd.(I used xmlspy to check it).

      when I deploy xxx.sar, why jboss throw java.net.MalformedURLException: no !/ in spec? Are there some invalid section?please ponit out the mistake,

      thanks

        • 1. Re: why throw java.net.MalformedURLException: no !/ in spec
          Zhaobo Newbie

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE mbean SYSTEM "D:\eclipse\workspace\ibsext\jboss_xmbean_1_0.dtd">
          <!--mbean>
          The IBS CONFIG XMBean Example



          <state-action-on-update value="keep-running"/>

          com.ibs.cofig.mbean.ConfigFile

          The default constructor
          ConfigFile



          The location in JNDI where the Map we manage will be bound
          jndiName
          java.lang.String






          The start lifecycle operation
          start


          The stop lifecycle operation
          stop


          Save a file into database
          setFile

          File's system indentifier
          id
          int


          File to be saved
          file
          java.io.File



          Get a file from database
          getFile

          File's system indentifier
          id
          int

          <return-type>java.io.InputStream</return-type>


          Save a file into database
          setConfigFile

          File's name
          name
          String


          File to be saved
          file
          java.io.File



          Get a file from database
          getConfigFile

          File's name
          name
          String

          <return-type>java.io.InputStream</return-type>


          Save a file into database
          setConfigSchemaFile

          File's name
          name
          String


          File to be saved
          file
          java.io.File



          Get a file from database
          getConfigSchemaFile

          File's name
          name
          String

          <return-type>java.io.InputStream</return-type>


          Save a file into database
          setConfigExtFile

          File's name
          name
          String


          File to be saved
          file
          java.io.File



          Get a file from database
          getConfigExtFile

          File's name
          name
          String

          <return-type>java.io.InputStream</return-type>



          The notification sent whenever a value is saved
          javax.management.Notification
          <notification-type>com.ibs.cofig.mbean.setFile</notification-type>

          </mbean-->

          • 2. Re: why throw java.net.MalformedURLException: no !/ in spec
            Dimitris Andreadis Master

            you need to put your xml inside "code" tags, to show up correctly.

            • 3. Re: why throw java.net.MalformedURLException: no !/ in spec
              Zhaobo Newbie


              <?xml version="1.0" encoding="UTF-8"?>
              <!DOCTYPE mbean SYSTEM "D:\eclipse\workspace\ibsext\jboss_xmbean_1_0.dtd">

              The IBS CONFIG XMBean Example



              <state-action-on-update value="keep-running"/>

              com.ibs.cofig.mbean.ConfigFile

              The default constructor
              ConfigFile

              <!-- Attributes -->

              The location in JNDI where the Map we manage will be bound
              jndiName
              java.lang.String




              <!-- Operations -->

              The start lifecycle operation
              start


              The stop lifecycle operation
              stop


              Save a file into database
              setFile

              File's system indentifier
              id
              int


              File to be saved
              file
              java.io.File



              Get a file from database
              getFile

              File's system indentifier
              id
              int

              <return-type>java.io.InputStream</return-type>


              Save a file into database
              setConfigFile

              File's name
              name
              String


              File to be saved
              file
              java.io.File



              Get a file from database
              getConfigFile

              File's name
              name
              String

              <return-type>java.io.InputStream</return-type>


              Save a file into database
              setConfigSchemaFile

              File's name
              name
              String


              File to be saved
              file
              java.io.File



              Get a file from database
              getConfigSchemaFile

              File's name
              name
              String

              <return-type>java.io.InputStream</return-type>


              Save a file into database
              setConfigExtFile

              File's name
              name
              String


              File to be saved
              file
              java.io.File



              Get a file from database
              getConfigExtFile

              File's name
              name
              String

              <return-type>java.io.InputStream</return-type>

              <!--Notifications-->

              The notification sent whenever a value is saved
              javax.management.Notification
              <notification-type>com.ibs.cofig.mbean.setFile</notification-type>



              • 4. Re: why throw java.net.MalformedURLException: no !/ in spec
                Zhaobo Newbie

                <?xml version="1.0" encoding="UTF-8"?>
                <!DOCTYPE mbean SYSTEM "D:\eclipse\workspace\ibsext\jboss_xmbean_1_0.dtd">
                < mbean>
                < description>The IBS CONFIG XMBean Example< /description>
                < descriptors>
                < persistence persistPolicy="Never" persistPeriod="10" persistLocation="data/JNDIMap.data" persistName="JNDIMap"/>
                < currencyTimeLimit value="10"/>
                < state-action-on-update value="keep-running"/>
                < /descriptors>
                < class>com.ibs.cofig.mbean.ConfigFile< /class>
                < constructor>
                < description>The default constructor< /description>
                < name>ConfigFile< /name>
                < /constructor>
                < !-- Attributes -->
                < attribute access="read-write" getMethod="getJndiName" setMethod="setJndiName">
                < description>The location in JNDI where the Map we manage will be bound< /description>
                < name>jndiName< /name>
                < type>java.lang.String< /type>
                < descriptors>
                < default value="ibs/config/IBS_CONFIG"/>
                < /descriptors>
                < /attribute>
                < !-- Operations -->
                < operation>
                < description>The start lifecycle operation< /description>
                < name>start
                < /operation>
                < operation>
                < description>The stop lifecycle operation< /description>
                < name>stop
                < /operation>
                < operation impact="ACTION">
                < description>Save a file into database< /description>
                < name>setFile< /name>
                < parameter>
                < description>File's system indentifier< /description>
                < name>id< /name>
                < type>int< /type>
                < /parameter>
                < parameter>
                < description>File to be saved< /description>
                < name>file< /name>
                < type>java.io.File< /type>
                < /parameter>
                < /operation>
                < operation impact="INFO">
                < description>Get a file from database< /description>
                < name>getFile< /name>
                < parameter>
                < description>File's system indentifier< /description>
                < name>id< /name>
                < type>int< /type>
                < /parameter>
                < return-type>java.io.InputStream< /return-type>
                < /operation>
                < operation impact="ACTION">
                < description>Save a file into database
                < name>setConfigFile
                < parameter>
                < description>File's name< /description>
                < name>name< /name>
                < type>String< /type>
                < /parameter>
                < parameter>
                < description>File to be saved< /description>
                < name>file< /name>
                < type>java.io.File< /type>
                < /parameter>
                < /operation>
                < operation impact="INFO">
                < description>Get a file from database< /description>
                < name>getConfigFile< /name>
                < parameter>
                < description>File's name< /description>
                < name>name< /name>
                < type>String< /type>
                < /parameter>
                < return-type>java.io.InputStream< /return-type>
                < /operation>
                < operation impact="ACTION">
                < description>Save a file into database
                < name>setConfigSchemaFile< /name>
                < parameter>
                < description>File's name< /description>
                < name>name< /name>
                < type>String< /type>
                < /parameter>
                < parameter>
                < description>File to be saved< /description>
                < name>file< /name>
                < type>java.io.File< /type>
                < /parameter>
                < /operation>
                < operation impact="INFO">
                < description>Get a file from database< /description>
                < name>getConfigSchemaFile< /name>
                < parameter>
                < description>File's name< /description>
                < name>name< /name>
                < type>String< /type>
                < /parameter>
                < return-type>java.io.InputStream< /return-type>
                < /operation>
                < operation impact="ACTION">
                < description>Save a file into database< /description>
                < name>setConfigExtFile< /name>
                < parameter>
                < description>File's name< /description>
                < name>name< /name>
                < type>String< /type>
                < /parameter>
                < parameter>
                < description>File to be saved< /description>
                < name>file< /name>
                < type>java.io.File< /type>
                < /parameter>
                < /operation>
                < operation impact="INFO">
                < description>Get a file from database< /description>
                < name>getConfigExtFile< /name>
                < parameter>
                < description>File's name< /description>
                < name>name< /name>
                < type>String< /type>
                < /parameter>
                < return-type>java.io.InputStream< /return-type>
                < /operation>
                < !--Notifications-->
                < notification>
                < description>The notification sent whenever a value is saved< /description>
                < name>javax.management.Notification< /name>
                < notification-type>com.ibs.cofig.mbean.setFile< /notification-type>
                < /notification>
                < /mbean>


                are you mean this format, "< code> xml body < /code>"
                I try this, but it still show up incorrectly.
                So, i have to insert a space character following "<".

                thanks.

                • 5. Re: why throw java.net.MalformedURLException: no !/ in spec
                  Zhaobo Newbie

                  I understand your meaning, thanks.

                  I use jboss3.2.1

                  <?xml version="1.0" encoding="UTF-8"?>
                  <!DOCTYPE mbean SYSTEM "D:\eclipse\workspace\ibsext\jboss_xmbean_1_0.dtd">
                  <mbean>
                   <description>The IBS CONFIG XMBean Example</description>
                   <descriptors>
                   <persistence persistPolicy="Never" persistPeriod="10" persistLocation="data/JNDIMap.data" persistName="JNDIMap"/>
                   <currencyTimeLimit value="10"/>
                   <state-action-on-update value="keep-running"/>
                   </descriptors>
                   <class>com.ibs.cofig.mbean.ConfigFile</class>
                   <constructor>
                   <description>The default constructor</description>
                   <name>ConfigFile</name>
                   </constructor>
                   <!-- Attributes -->
                   <attribute access="read-write" getMethod="getJndiName" setMethod="setJndiName">
                   <description>The location in JNDI where the Map we manage will be bound</description>
                   <name>jndiName</name>
                   <type>java.lang.String</type>
                   <descriptors>
                   <default value="ibs/config/IBS_CONFIG"/>
                   </descriptors>
                   </attribute>
                   <!-- Operations -->
                   <operation>
                   <description>The start lifecycle operation</description>
                   <name>start</name>
                   </operation>
                   <operation>
                   <description>The stop lifecycle operation</description>
                   <name>stop</name>
                   </operation>
                   <operation impact="ACTION">
                   <description>Save a file into database</description>
                   <name>setFile</name>
                   <parameter>
                   <description>File's system indentifier</description>
                   <name>id</name>
                   <type>int</type>
                   </parameter>
                   <parameter>
                   <description>File to be saved</description>
                   <name>file</name>
                   <type>java.io.File</type>
                   </parameter>
                   </operation>
                   <operation impact="INFO">
                   <description>Get a file from database</description>
                   <name>getFile</name>
                   <parameter>
                   <description>File's system indentifier</description>
                   <name>id</name>
                   <type>int</type>
                   </parameter>
                   <return-type>java.io.InputStream</return-type>
                   </operation>
                   <operation impact="ACTION">
                   <description>Save a file into database</description>
                   <name>setConfigFile</name>
                   <parameter>
                   <description>File's name</description>
                   <name>name</name>
                   <type>String</type>
                   </parameter>
                   <parameter>
                   <description>File to be saved</description>
                   <name>file</name>
                   <type>java.io.File</type>
                   </parameter>
                   </operation>
                   <operation impact="INFO">
                   <description>Get a file from database</description>
                   <name>getConfigFile</name>
                   <parameter>
                   <description>File's name</description>
                   <name>name</name>
                   <type>String</type>
                   </parameter>
                   <return-type>java.io.InputStream</return-type>
                   </operation>
                   <operation impact="ACTION">
                   <description>Save a file into database</description>
                   <name>setConfigSchemaFile</name>
                   <parameter>
                   <description>File's name</description>
                   <name>name</name>
                   <type>String</type>
                   </parameter>
                   <parameter>
                   <description>File to be saved</description>
                   <name>file</name>
                   <type>java.io.File</type>
                   </parameter>
                   </operation>
                   <operation impact="INFO">
                   <description>Get a file from database</description>
                   <name>getConfigSchemaFile</name>
                   <parameter>
                   <description>File's name</description>
                   <name>name</name>
                   <type>String</type>
                   </parameter>
                   <return-type>java.io.InputStream</return-type>
                   </operation>
                   <operation impact="ACTION">
                   <description>Save a file into database</description>
                   <name>setConfigExtFile</name>
                   <parameter>
                   <description>File's name</description>
                   <name>name</name>
                   <type>String</type>
                   </parameter>
                   <parameter>
                   <description>File to be saved</description>
                   <name>file</name>
                   <type>java.io.File</type>
                   </parameter>
                   </operation>
                   <operation impact="INFO">
                   <description>Get a file from database</description>
                   <name>getConfigExtFile</name>
                   <parameter>
                   <description>File's name</description>
                   <name>name</name>
                   <type>String</type>
                   </parameter>
                   <return-type>java.io.InputStream</return-type>
                   </operation>
                   <!--Notifications-->
                   <notification>
                   <description>The notification sent whenever a value is saved</description>
                   <name>javax.management.Notification</name>
                   <notification-type>com.ibs.cofig.mbean.setFile</notification-type>
                   </notification>
                  </mbean>
                  


                  • 6. Re: why throw java.net.MalformedURLException: no !/ in spec
                    Dimitris Andreadis Master

                    Where is your mbean descriptor? You are showing your xmbean descriptor but there must be an mbean descriptor also to either point to or include the xmbean descriptor.

                    • 7. Re: why throw java.net.MalformedURLException: no !/ in spec
                      Zhaobo Newbie

                      I get it, thank you very much.