4 Replies Latest reply on Jul 9, 2012 8:20 AM by ctomc

    Deploying JRuby WAR file: DuplicateServiceException: service is already registered

    earthnail

      I'm currently trying to deploy a WAR file that I created with JRuby and warbler to JBoss.

      When loading the war, JBoss stops with the following error:

       

       

      12:43:36,073 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.1)
      12:43:36,074 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.1)
      12:43:36,075 WARN  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010402: Unable to instantiate driver class "org.postgresql.Driver": org.jboss.msc.service.DuplicateServiceException: Service jboss.jdbc-driver.fiftyrubles_warorg_postgresql_Driver_9_1 is already registered
      12:43:36,088 INFO  [org.jboss.web] (MSC service thread 1-7) JBAS018210: Registering web context: /fiftyrubles
      12:43:36,119 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018565: Replaced deployment "fiftyrubles.war" with deployment "fiftyrubles.war"
      

       

      Do you have any idea what the source of this error may be?