Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

War file is failing deploy on JBOSS 7.4 (EAP 6.3) #285

Open
kumaran1979 opened this issue Jun 4, 2015 · 2 comments
Open

War file is failing deploy on JBOSS 7.4 (EAP 6.3) #285

kumaran1979 opened this issue Jun 4, 2015 · 2 comments

Comments

@kumaran1979
Copy link

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 sub context
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] (MSC service thread 1-9) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
12:24:22,653 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-9) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver (version 11.2)
12:24:22,701 INFO  [org.jboss.web] (ServerService Thread Pool -- 54) 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]] (ServerService Thread Pool -- 54) PlayServletWrapper > contextInitialized
12:24:22,875 TRACE [org.jboss.modules] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) 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] (ServerService Thread Pool -- 54) Defined class scala.collection.mutable.ArrayOps$ofRef$ in Module "deployment.ums-1.0-SNAPSHOT.war:main" from Service Module Loader
@dlecan
Copy link
Member

dlecan commented Aug 13, 2015

Did you try with JBoss 7.1 or 7.2 ?

@oarshad
Copy link

oarshad commented Feb 1, 2016

I have this same issue only if I include the following plugin

"com.github.play2war.ext" %% "redirect-playlogger" % "1.0.1"

If I remove this dependency than the WAR gets deployed and enabled successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants