Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-2030

Querying webservice of VDB throws javax.naming.NameNotFoundException

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 8.3.1
    • None
    • None
    • Hide

      1. deploy countryInfoNoJNDI.vdb to DV server in JBDS

      via jboss-cli:
      2. add datasource
      data-source add --name=countryinfonojndi --driver-name=teiid --connection-url=jdbc:teiid:countryInfoNoJNDI@mm://localhost:31000 --jndi-name=java:/countryinfonojndi --user-name=user --password=user
      3. enable datasource (data-source enable --name=countryinfonojndi), reload (/:reload)
      4. deploy countryInfoNoJNDI.war

      5. run soapui (http://localhost:8080/countryInfoNoJNDI/CountryInfoServiceView_Result, select getResult -> Request 1, enter e.g. <sCountryISOCode>USA</sCountryISOCode>)

      Show
      1. deploy countryInfoNoJNDI.vdb to DV server in JBDS via jboss-cli: 2. add datasource data-source add --name=countryinfonojndi --driver-name=teiid --connection-url=jdbc:teiid:countryInfoNoJNDI@mm://localhost:31000 --jndi-name=java:/countryinfonojndi --user-name=user --password=user 3. enable datasource (data-source enable --name=countryinfonojndi), reload (/:reload) 4. deploy countryInfoNoJNDI.war 5. run soapui ( http://localhost:8080/countryInfoNoJNDI/CountryInfoServiceView_Result , select getResult -> Request 1, enter e.g. <sCountryISOCode>USA</sCountryISOCode>)

      Querying (via soapui) a webservice created from VDB which contains a model without a JNDI name (model MarketData with yahoo translator, viz TDES-2024), server throws exception javax.naming.NameNotFoundException.
      If the model without JNDI is removed from VDB, the query is successful.

      (the models in project were created via "Consume a SOAP web service" cheat sheet from DV6 doc., detailed instructions in TestSpecs/Designer8-updatedE2eConsumeSoapWS-cheatSheetCompletion.odt)

        1. ConsumeWSNoJNDI.zip
          121 kB
        2. countryInfoNoJNDI.vdb
          48 kB
        3. countryInfoNoJNDI.war
          27 kB

              Unassigned Unassigned
              lfabriko@redhat.com Lucie Krejcirova
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: