0 Replies Latest reply on Jun 4, 2015 12:41 PM by Kumaran Sivasubramaniam

    Running PLAY2 app with JBOSS 7.4

    Kumaran Sivasubramaniam Newbie

      I'm trying use play2-war-plugin (version 1.3-beta3) with Play 2.3.4 version. I also added configuration mention in your link (below is my build.sbt file):

      import com.github.play2war.plugin._

      name := """ums"""

      organization := "ca.test.play.common"

      version := "1.0-SNAPSHOT"

      Play2WarPlugin.play2WarSettings

      Play2WarKeys.servletVersion := "3.0"

      lazy val root = (project in file(".")).enablePlugins(PlayJava, SbtWeb)

      scalaVersion := "2.11.1"
      // scalaVersion := "2.10.4"

      libraryDependencies ++= Seq(
      javaJdbc,
      javaEbean,
      cache,
      javaWs,
      "com.feth" %% "play-easymail" % "0.6.4",
      javaCore,
      "commons-collections" % "commons-collections" % "3.2.1",
      "com.oracle" % "ojdbc6" % "11.2.0.4.0",
      "org.springframework" % "spring-context" % "4.0.4.RELEASE",
      "org.springframework" % "spring-aop" % "4.0.4.RELEASE",
      "org.springframework" % "spring-test" % "4.0.4.RELEASE" % "test",
      "org.hibernate" % "hibernate-validator" % "5.1.3.Final",
      "org.glassfish.web" % "javax.el" % "2.2.4"
      )

      val appDependencies = Seq(

       

      "com.github.play2war.ext" %% "jboss7-reflections-vfs-integration-play2" % "1.0.0",
      "com.github.play2war.ext" %% "redirect-playlogger" % "1.0.1"
      )

      In the ums.conf, I have added configuration below:

      application.context=/REST/

      I run the "war" command after compiling on my activator cli. War file gets generated. I deploy to JBOSS EAP 6.3. I don't see any errors (it even says "Register web context": /ums-1.0-SNAPSHOT) , but I can't access any of the REST of api methods. However, when I run application as standalone play application through activator it works. Any help would be much appreciated. I have been spending 2 days on this and getting no where. Let me know if I'm missing anymore configuration. Thanks for all your help.

      Here is the logs:
      12:24:22,613 INFO org.jboss.as.connector.deployers.jdbc JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
      12:24:22,653 INFO org.jboss.as.connector.deployers.jdbc JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver (version 11.2)
      12:24:22,701 INFO org.jboss.web JBAS018210: Register web context: /ums-1.0-SNAPSHOT
      12:24:22,729 INFO org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ums-1.0-SNAPSHOT] PlayServletWrapper > contextInitialized
      12:24:22,875 TRACE org.jboss.modules Finding class scala.collection.mutable.ArrayOps$ofRef from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,875 TRACE org.jboss.modules Finding local class scala.collection.mutable.ArrayOps$ofRef from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,875 TRACE org.jboss.modules Loading class scala.collection.mutable.ArrayOps$ofRef locally from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,876 TRACE org.jboss.modules Attempting to define class scala.collection.mutable.ArrayOps$ofRef in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,877 TRACE org.jboss.modules Defined class scala.collection.mutable.ArrayOps$ofRef in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,879 TRACE org.jboss.modules Finding class scala.collection.mutable.IndexedSeqLike$class from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,879 TRACE org.jboss.modules Finding local class scala.collection.mutable.IndexedSeqLike$class from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,880 TRACE org.jboss.modules Loading class scala.collection.mutable.IndexedSeqLike$class locally from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,880 TRACE org.jboss.modules Attempting to define class scala.collection.mutable.IndexedSeqLike$class in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,880 TRACE org.jboss.modules Defined class scala.collection.mutable.IndexedSeqLike$class in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,880 TRACE org.jboss.modules Finding class scala.collection.mutable.IndexedSeqView from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,880 TRACE org.jboss.modules Finding local class scala.collection.mutable.IndexedSeqView from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,881 TRACE org.jboss.modules Loading class scala.collection.mutable.IndexedSeqView locally from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,881 TRACE org.jboss.modules Attempting to define class scala.collection.mutable.IndexedSeqView in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,882 TRACE org.jboss.modules Defined class scala.collection.mutable.IndexedSeqView in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,882 TRACE org.jboss.modules Finding class scala.collection.IndexedSeqOptimized$class from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,882 TRACE org.jboss.modules Finding local class scala.collection.IndexedSeqOptimized$class from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,882 TRACE org.jboss.modules Loading class scala.collection.IndexedSeqOptimized$class locally from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,883 TRACE org.jboss.modules Attempting to define class scala.collection.IndexedSeqOptimized$class in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,883 TRACE org.jboss.modules Defined class scala.collection.IndexedSeqOptimized$class in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,884 TRACE org.jboss.modules Finding class scala.collection.mutable.ArrayLike$class from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,884 TRACE org.jboss.modules Finding local class scala.collection.mutable.ArrayLike$class from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,884 TRACE org.jboss.modules Loading class scala.collection.mutable.ArrayLike$class locally from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,884 TRACE org.jboss.modules Attempting to define class scala.collection.mutable.ArrayLike$class in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,884 TRACE org.jboss.modules Defined class scala.collection.mutable.ArrayLike$class in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,885 TRACE org.jboss.modules Finding class scala.collection.mutable.ArrayOps$class from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,885 TRACE org.jboss.modules Finding local class scala.collection.mutable.ArrayOps$class from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,885 TRACE org.jboss.modules Loading class scala.collection.mutable.ArrayOps$class locally from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,885 TRACE org.jboss.modules Attempting to define class scala.collection.mutable.ArrayOps$class in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,886 TRACE org.jboss.modules Defined class scala.collection.mutable.ArrayOps$class in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,886 TRACE org.jboss.modules Finding class play.api.Logger$$anonfun$configure$1$$anonfun$apply$1 from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,886 TRACE org.jboss.modules Finding local class play.api.Logger$$anonfun$configure$1$$anonfun$apply$1 from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,886 TRACE org.jboss.modules Loading class play.api.Logger$$anonfun$configure$1$$anonfun$apply$1 locally from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,887 TRACE org.jboss.modules Attempting to define class play.api.Logger$$anonfun$configure$1$$anonfun$apply$1 in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,887 TRACE org.jboss.modules Defined class play.api.Logger$$anonfun$configure$1$$anonfun$apply$1 in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,887 TRACE org.jboss.modules Finding class scala.collection.mutable.ArrayOps$ofRef$ from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,887 TRACE org.jboss.modules Finding local class scala.collection.mutable.ArrayOps$ofRef$ from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,887 TRACE org.jboss.modules Loading class scala.collection.mutable.ArrayOps$ofRef$ locally from Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,887 TRACE org.jboss.modules Attempting to define class scala.collection.mutable.ArrayOps$ofRef$ in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
      12:24:22,888 TRACE org.jboss.modules Defined class scala.collection.mutable.ArrayOps$ofRef$ in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader