Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-23997

JBoss data source file schema error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.11.0.AM1
    • 4.4.3.Final
    • jst
    • None
    • devex #159 December 2018
    • 3
    • Hide

      1. Create new project with Forge
      2. Create connection profile for sakila db with Forge - DB from https://github.com/maxandersen/sakila-h2
      3. File -> New -> Other -> Jboss Tools -> JBoss Datasource (-ds.xml), click on Next and Finish
      4. Datasource file have error

      Show
      1. Create new project with Forge 2. Create connection profile for sakila db with Forge - DB from https://github.com/maxandersen/sakila-h2 3. File -> New -> Other -> Jboss Tools -> JBoss Datasource (-ds.xml), click on Next and Finish 4. Datasource file have error

      An error message is shown, when new datasource file is added to a project:

      Description	Resource	Path	Location	Type
      cvc-elt.1: Cannot find the declaration of element 'datasources'.	sa-ds.xml	/testteast	line 2	XML Problem
      

      Datasource file:

      <?xml version="1.0" encoding="UTF-8"?>
      <datasources xmlns="http://www.jboss.org/ironjacamar/schema">
       <datasource jndi-name="java:jboss/datasources/sa" enabled="true" 
           use-java-context="true" pool-name="sa">
        <connection-url>jdbc:h2:tcp://localhost/sakila</connection-url>
        <driver>h2-1.3.161.jar</driver>
        <pool></pool>
        <security>
         <user-name>sa</user-name>
         <password></password>
        </security>
       </datasource>
      </datasources>
      

            jkopriva@redhat.com Josef Kopriva
            jkopriva@redhat.com Josef Kopriva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: