Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-4812

Issue while deploying on JBOSS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Invalid
    • None
    • None
    • None
    • None

    Description

      We are using the class: org.apache.phoenix.jdbc.PhoenixDriver to connect to Phoenix and currently using the jar (phoenix-4.7.0-HBase-1.0-client.jar) & while using this jar in our final artifact and deploying on JBOSS, seeing the following exception:

      aga@XXXX$ cat vzw-hbase-djr-client-1.0-SNAPSHOT.war.failed
      "{
          \"JBAS014671: Failed services\" => {\"jboss.deployment.unit.\\\"vzw-hbase-djr-client-1.0-SNAPSHOT.war\\\".POST_MODULE\" => \"org.jboss.msc.service.StartException in service jboss.deployment.unit.\\\"vzw-hbase-djr-client-1.0-SNAPSHOT.war\\\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment
      \\\"vzw-hbase-djr-client-1.0-SNAPSHOT.war\\\"
          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011232: Only one JAX-RS Application Class allowed.  com.sun.jersey.server.impl.application.DeferredResourceConfig com.sun.jersey.api.core.WebAppResourceConfig com.sun.jersey.api.core.DefaultResourceConfig com.sun.jersey.api.core.ApplicationAdapter com.sun.jersey.api.core.PackagesResourceConfig com.sun.jersey.api.core.ClasspathResourceConfig com.sun.jersey.api.core.ClassNamesResourceConfig com.sun.jersey.api.core.ScanningResourceConfig com.sun.jersey.api.core.ResourceConfig\"},
          \"JBAS014771: Services with missing/unavailable dependencies\" => [\"jboss.naming.context.java.jboss.udm-plugin-meta.\\\"vzw-hbase-djr-client-1.0-SNAPSHOT.war\\\" is missing [jboss.deployment.unit.\\\"vzw-hbase-djr-client-1.0-SNAPSHOT.war\\\".beanmanager]\"]

      W/o this jar in the war file we get ClassNotFoundException for org.apache.phoenix.jdbc.PhoenixDriver.

      Any inputs on this will help. It is ok if we deploy this jar outside of WAR file.

      Also, ok to consume a lighter jar which can be used to connect to Phoenix from Java.

      Attachments

        Activity

          People

            Unassigned Unassigned
            G V Arjun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: