2 Replies Latest reply on Sep 24, 2014 11:15 AM by Harish Venkat

    Server-Side JAR in JBOSS EAP 6.2

    Harish Venkat Newbie

      I need to add a data source plugin to jboss eap ...  any suggestions are Appreciated ..

        • 1. Re: Server-Side JAR in JBOSS EAP 6.2
          Tomaz Cerar Master

          Harish Venkat wrote:

           

          I need to add a data source plugin to jboss eap ...  any suggestions are Appreciated ..

          Do explain?

          if you need a datasource you can just configure no plugin is needed.

          see https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.3/html/Administration_and_Configuration_Guide/chap-Datasource_Management.html for more

          • 2. Re: Server-Side JAR in JBOSS EAP 6.2
            Harish Venkat Newbie

            i am creating my own database driver so when i load that jar i am finding

             

             

            erver:HelloWorldGroup] 11:06:05,868 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 42) JBAS011800: Activating Naming Subsystem

            erver:HelloWorldGroup] 11:06:05,889 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 37) JBAS013171: Activating Security Subsystem

            erver:HelloWorldGroup] 11:06:05,916 DEBUG [org.jboss.as.cmp.subsystem.CmpSubsystemAdd] (ServerService Thread Pool -- 61) Activating EJB CMP Subsystem

            erver:HelloWorldGroup] 11:06:05,932 DEBUG [org.xnio.nio] (Remoting "master:HelloWorldGroup" write-1) Started channel thread 'Remoting "master:HelloWorldGroup" write-1', selector sun.nio.ch.WindowsSelectorImpl@11b1e39

            erver:HelloWorldGroup] 11:06:05,898 DEBUG [org.jboss.as.security] (MSC service thread 1-1) Starting SecurityBootstrapService

            erver:HelloWorldGroup] 11:06:05,955 DEBUG [org.xnio.nio] (Remoting "master:HelloWorldGroup" read-1) Started channel thread 'Remoting "master:HelloWorldGroup" read-1', selector sun.nio.ch.WindowsSelectorImpl@18b6b0e

            erver:HelloWorldGroup] 11:06:05,955 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 56) JBAS010280: Activating Infinispan subsystem.

            erver:HelloWorldGroup] 11:06:05,980 INFO  [org.jboss.as.security] (MSC service thread 1-1) JBAS013170: Current PicketBox version=4.0.19.SP2-redhat-1

            erver:HelloWorldGroup] 11:06:05,994 DEBUG [org.jboss.modules] (ServerService Thread Pool -- 59) Module com.h2database.h2:main defined by local module loader @20be79 (finder: local module finder @1b9240e (roots: C:\EAP-6.2.0\jboss-eap-6.2\modules,C:\EAP-6.2.0\jboss-eap-6.2\modules\system\layers\base))

            erver:HelloWorldGroup] 11:06:05,999 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 59) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

            erver:HelloWorldGroup] 11:06:06,059 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 60) JBAS016200: Activating ConfigAdmin Subsystem

            erver:HelloWorldGroup] 11:06:06,059 DEBUG [org.jboss.as.configadmin] (ServerService Thread Pool -- 60) Activated ConfigAdmin Subsystem

            erver:HelloWorldGroup] 11:06:06,059 INFO  [org.jboss.as.jacorb] (ServerService Thread Pool -- 55) JBAS016300: Activating JacORB Subsystem

            erver:HelloWorldGroup] 11:06:06,095 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 33) JBAS015537: Activating WebServices Extension

            erver:HelloWorldGroup] 11:06:06,100 DEBUG [org.jboss.as.server.net] (MSC service thread 1-4) Starting NetworkInterfaceService

            erver:HelloWorldGroup]

            erver:HelloWorldGroup] 11:06:06,059 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 47) JBAS012605: Activated the following JSF Implementations: [main, 1.2]

            erver:HelloWorldGroup] 11:06:06,111 DEBUG [org.jboss.modules] (ServerService Thread Pool -- 47) Module javaee.api:main defined by local module loader @20be79 (finder: local module finder @1b9240e (roots: C:\EAP-6.2.0\jboss-eap-6.2\modules,C:\EAP-6.2.0\jboss-eap-6.2\modules\system\layers\base))

            erver:HelloWorldGroup] 11:06:06,123 DEBUG [org.jboss.modules] (ServerService Thread Pool -- 47) Module javax.enterprise.deploy.api:main defined by local module loader @20be79 (finder: local module finder @1b9240e (roots: C:\EAP-6.2.0\jboss-eap-6.2\modules,C:\EAP-6.2.0\jboss-eap-6.2\modules\system\layers\base))

            erver:HelloWorldGroup] 11:06:06,147 DEBUG [org.jboss.modules] (ServerService Thread Pool -- 33) Module javax.wsdl4j.api:main defined by local module loader @20be79 (finder: local module finder @1b9240e (roots: C:\EAP-6.2.0\jboss-eap-6.2\modules,C:\EAP-6.2.0\jboss-eap-6.2\modules\system\layers\base))

            erver:HelloWorldGroup] 11:06:06,147 DEBUG [org.jboss.modules] (ServerService Thread Pool -- 33) Module org.jboss.jaxbintros:main defined by local module loader @20be79 (finder: local module finder @1b9240e (roots: C:\EAP-6.2.0\jboss-eap-6.2\modules,C:\EAP-6.2.0\jboss-eap-6.2\modules\system\layers\base))

            erver:HelloWorldGroup] 11:06:06,184 DEBUG [org.jboss.as.security] (MSC service thread 1-1) Starting SecurityManagementService

            erver:HelloWorldGroup] 11:06:06,186 DEBUG [org.jboss.as.security] (MSC service thread 1-1) Starting SubjectFactoryService

            erver:HelloWorldGroup] 11:06:06,190 INFO  [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service

            erver:HelloWorldGroup] 11:06:06,215 DEBUG [org.jboss.modules] (ServerService Thread Pool -- 59) Module com.ssc.faw:main defined by local module loader @20be79 (finder: local module finder @1b9240e (roots: C:\EAP-6.2.0\jboss-eap-6.2\modules,C:\EAP-6.2.0\jboss-eap-6.2\modules\system\layers\base))

            erver:HelloWorldGroup] 11:06:06,252 DEBUG [org.jboss.as.ee] (ServerService Thread Pool -- 58) Activating EE subsystem

            erver:HelloWorldGroup] 11:06:06,236 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 59) JBAS010403: Deploying JDBC-compliant driver class sun.jdbc.odbc.JdbcOdbcDriver (version 2.1)

            erver:HelloWorldGroup] 11:06:06,342 INFO  [org.jboss.as.clustering.jgroups] (ServerService Thread Pool -- 50) JBAS010260: Activating JGroups subsystem.

            erver:HelloWorldGroup] 11:06:06,374 DEBUG [org.jboss.ejb.client.EJBClientPropertiesLoader] (ServerService Thread Pool -- 46) Looking for jboss-ejb-client.properties using classloader ModuleClassLoader for Module "org.jboss.as.jsr77:main" from local module loader @20be79 (finder: local module finder @1b9240e (roots: C:\EAP-6.2.0\jboss-eap-6.2\modules,C:\EAP-6.2.0\jboss-eap-6.2\modules\system\layers\base))

            erver:HelloWorldGroup] 11:06:06,432 DEBUG [org.jboss.modules] (ServerService Thread Pool -- 34) Module org.jboss.as.clustering.web.infinispan:main defined by local module loader @20be79 (finder: local module finder @1b9240e (roots: C:\EAP-6.2.0\jboss-eap-6.2\modules,C:\EAP-6.2.0\jboss-eap-6.2\modules\system\layers\base))

            erver:HelloWorldGroup] 11:06:06,449 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-3) JBAS010408: Starting JCA Subsystem (IronJacamar 1.0.23.Final-redhat-1)

            erver:HelloWorldGroup] 11:06:06,466 DEBUG [org.jboss.modules] (ServerService Thread Pool -- 53) Module org.apache.commons.codec:main defined by local module loader @20be79 (finder: local module finder @1b9240e (roots: C:\EAP-6.2.0\jboss-eap-6.2\modules,C:\EAP-6.2.0\jboss-eap-6.2\modules\system\layers\base))

            erver:HelloWorldGroup] 11:06:06,477 DEBUG [org.jboss.modules] (ServerService Thread Pool -- 53) Module org.apache.httpcomponents:main defined by local module loader @20be79 (finder: local module finder @1b9240e (roots: C:\EAP-6.2.0\jboss-eap-6.2\modules,C:\EAP-6.2.0\jboss-eap-6.2\modules\system\layers\base))

            erver:HelloWorldGroup] 11:06:06,481 DEBUG [org.jboss.modules] (ServerService Thread Pool -- 53) Module org.scannotation.scannotation:main defined by local module loader @20be79 (finder: local module finder @1b9240e (roots: C:\EAP-6.2.0\jboss-eap-6.2\modules,C:\EAP-6.2.0\jboss-eap-6.2\modules\system\layers\base))

            erver:HelloWorldGroup] 11:06:06,514 DEBUG [org.jboss.as.connector.deployment.registry] (MSC service thread 1-3) Starting service service jboss.jdbc-driver.registry

            erver:HelloWorldGroup] 11:06:06,516 DEBUG [org.jboss.as.connector.services.mdr] (MSC service thread 1-3) Starting service MDR

            erver:HelloWorldGroup] 11:06:06,527 DEBUG [org.jboss.as.txn] (ServerService Thread Pool -- 35) nodeIdentifier=1

            erver:HelloWorldGroup]

            erver:HelloWorldGroup] 11:06:06,550 DEBUG [org.jboss.as.txn] (ServerService Thread Pool -- 35) varDirPathRef=jboss.server.data.dir, varDirPath=var

            erver:HelloWorldGroup]

            erver:HelloWorldGroup] 11:06:06,599 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]

            erver:HelloWorldGroup] 11:06:06,530 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 59) JBAS014612: Operation ("add") failed - address: ([

            erver:HelloWorldGroup]     ("subsystem" => "datasources"),

            erver:HelloWorldGroup]     ("jdbc-driver" => "resds")

            erver:HelloWorldGroup] ]): java.util.ServiceConfigurationError: java.sql.Driver: Provider com.ssc.faw.util.SampleDataSource not a subtype

            erver:HelloWorldGroup]        at java.util.ServiceLoader.fail(ServiceLoader.java:214) [rt.jar:1.6.0_45]

            erver:HelloWorldGroup]        at java.util.ServiceLoader.access$300(ServiceLoader.java:164) [rt.jar:1.6.0_45]

            erver:HelloWorldGroup]        at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:352) [rt.jar:1.6.0_45]

            erver:HelloWorldGroup]        at java.util.ServiceLoader$1.next(ServiceLoader.java:428) [rt.jar:1.6.0_45]

            erver:HelloWorldGroup]        at org.jboss.as.connector.subsystems.datasources.JdbcDriverAdd.performRuntime(JdbcDriverAdd.java:117)

            erver:HelloWorldGroup]        at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:76) [jboss-as-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]

            erver:HelloWorldGroup]        at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:607) [jboss-as-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]

            erver:HelloWorldGroup]        at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:485) [jboss-as-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]

            erver:HelloWorldGroup]        at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:282) [jboss-as-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]

            erver:HelloWorldGroup]        at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:277) [jboss-as-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]

            erver:HelloWorldGroup]        at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:343) [jboss-as-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]

            erver:HelloWorldGroup]        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]