2 Replies Latest reply on Oct 30, 2012 1:13 PM by luca gioppo

    RestEasy service not working

    luca gioppo Novice

      I'm trying to replicate my example from the books DB exposing as a REST service, followed the docs and generated the WAR.

      Deployed and all seems correct but ... no prize.

       

      12:07:15,959 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "BookXMLDB.vdb"

      12:07:15,959 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "BookXMLDBrest.war"

      12:07:15,949 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "teiid-connector-file.rar"

      12:07:15,949 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "teiid-connector-salesforce.rar"

      12:07:15,949 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "teiid-connector-ws.rar"

      12:07:16,339 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-1) JBAS018567: Deployment "deployment.teiid-connector-salesforce.rar" is us

      ing a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.

      12:07:16,349 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-1) JBAS018567: Deployment "deployment.teiid-connector-salesforce.rar" is us

      ing a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.

      12:07:16,369 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-1) IJ020001: Required license terms for file:/D:/Servers/jboss-

      as-7.1.1-TEIID8.1/standalone/tmp/vfs/temp46fbc7297460f307/teiid-connector-ldap.rar-28bd7bc7c225b08a/contents/

      12:07:16,379 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-8) IJ020001: Required license terms for file:/D:/Servers/jboss-

      as-7.1.1-TEIID8.1/standalone/tmp/vfs/temp46fbc7297460f307/teiid-connector-file.rar-701214d4d7346bad/contents/

      12:07:16,429 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) JBAS018567: Deployment "deployment.teiid-connector-ws.rar" is using a pr

      ivate module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.

      12:07:16,439 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) JBAS018567: Deployment "deployment.teiid-connector-ws.rar" is using a pr

      ivate module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.

      12:07:16,439 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-4) IJ020001: Required license terms for file:/D:/Servers/jboss-

      as-7.1.1-TEIID8.1/standalone/tmp/vfs/temp46fbc7297460f307/teiid-connector-ws.rar-bc34efcf6c212d2a/contents/

      12:07:16,449 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-7) IJ020001: Required license terms for file:/D:/Servers/jboss-

      as-7.1.1-TEIID8.1/standalone/tmp/vfs/temp46fbc7297460f307/teiid-connector-salesforce.rar-a2e3f068d9df7c39/contents/

      12:07:16,849 INFO  [org.teiid.RUNTIME] (MSC service thread 1-7) TEIID50029 VDB BookXMLDB.1 model "BookXML" metadata is currently being loaded. Start T

      ime: 30/10/12 12.07

      12:07:16,859 INFO  [org.teiid.RUNTIME] (MSC service thread 1-7) TEIID50029 VDB BookXMLDB.1 model "BookXML_ws" metadata is currently being loaded. Star

      t Time: 30/10/12 12.07

      12:07:16,889 INFO  [org.teiid.RUNTIME] (MSC service thread 1-7) TEIID50029 VDB BookXMLDB.1 model "BooksDB_WS" metadata is currently being loaded. Star

      t Time: 30/10/12 12.07

      12:07:16,959 INFO  [org.teiid.RUNTIME] (MSC service thread 1-7) TEIID50029 VDB BookXMLDB.1 model "BookRest" metadata is currently being loaded. Start

      Time: 30/10/12 12.07

      12:07:16,959 INFO  [org.teiid.RUNTIME] (MSC service thread 1-7) TEIID50029 VDB BookXMLDB.1 model "BooksDB" metadata is currently being loaded. Start T

      ime: 30/10/12 12.07

      12:07:16,999 INFO  [org.teiid.RUNTIME] (MSC service thread 1-7) TEIID50029 VDB BookXMLDB.1 model "BooksDB_Output_View" metadata is currently being loa

      ded. Start Time: 30/10/12 12.07

      12:07:17,379 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Deploying javax.ws.rs.core.Application: class org.teiid.rest.s

      ervices.TeiidRestApplication

      12:07:17,389 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-8) Adding singleton resource org.teiid.rest.services.BookRest fro

      m Application javax.ws.rs.core.Application

      12:07:17,479 INFO  [org.teiid.RUNTIME] (teiid-async-threads - 3) TEIID40003 VDB BookXMLDB.1 is set to ACTIVE

      12:07:17,499 INFO  [org.jboss.web] (MSC service thread 1-8) JBAS018210: Registering web context: /BookXMLDBrest

      12:07:17,509 INFO  [org.jboss.as] (MSC service thread 1-8) JBAS015951: Admin console listening on http://127.0.0.1:9990

      12:07:17,509 INFO  [org.jboss.as] (MSC service thread 1-8) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 6853ms - Started 352 of 451 services

      (96 services are passive or on-demand)

      12:07:17,579 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "teiid-connector-ws.rar"

      12:07:17,579 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "teiid-connector-salesforce.rar"

      12:07:17,589 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "teiid-connector-ldap.rar"

      12:07:17,589 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "teiid-connector-file.rar"

      12:07:17,589 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "BookXMLDBrest.war"

      12:07:17,589 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "BookXMLDB.vdb"

       

       

      The model is called "BookRest" and the URI is books/{isbn_in}

       

      When I call the corresponding URL:

      http://localhost:8080/BookXMLDBrest/BookRest/book/1

      I get the message:

       

      Could not find resource for relative : /BookRest/book/1 of full path: http://localhost:8080/BookXMLDBrest/BookRest/book/1

       

      description The requested resource (Could not find resource for relative : /BookRest/book/1 of full path: http://localhost:8080/BookXMLDBrest/BookRest/book/1) is not available.

       

       

      I add the WAR and VDB in case could be needed.

       

      As always TEIID 8.1 on JBossAS 7.1.1 Designer 7.8

      Luca