Discussion:
[jboss-user] [JBoss Tools] - Cannot deploy ear or war using JBT
Michael Angelo
2013-01-22 16:06:58 UTC
Permalink
Michael Angelo [https://community.jboss.org/people/mangelo321] created the discussion

"Cannot deploy ear or war using JBT"

To view the discussion, visit: https://community.jboss.org/message/793562#793562

--------------------------------------------------------------
I have tried deploying an ear and war file to OpenShift using JBoss Tools Openshift Plugin to no avail. I was getting the dreaded "Failed to execute goal org.apache.maven.plugins:maven-war-plugin" for the ear deployment until I made the necessary changes. The publish says its successful, but I see nothing on the app homepage and actually I see no code deployed as well.

I created a quick Seam Web project and just tried to deploy to OpenShift. This time, I did get the dreaded maven-war-plugin error.

Has anyone gotten this stuff to work?

Very frustrating!
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793562#793562]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Max Rydahl Andersen
2013-01-22 17:43:12 UTC
Permalink
Max Rydahl Andersen [https://community.jboss.org/people/maxandersen] created the discussion

"Re: Cannot deploy ear or war using JBT"

To view the discussion, visit: https://community.jboss.org/message/793590#793590

--------------------------------------------------------------
Yes, it works for me so I need to get some more information.

A) does the maven build work locally for you ?

B) what is the exact error  ? "failed to execute goal ..." could mean alot of things.

C) Are you using the examples we provide in central or is it your own war/ear project ?

D) Seam Web Project's aren't configured to work outofthebox on openshift so this would not be expected to work.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793590#793590]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Michael Angelo
2013-01-23 03:05:39 UTC
Permalink
Michael Angelo [https://community.jboss.org/people/mangelo321] created the discussion

"Re: Cannot deploy ear or war using JBT"

To view the discussion, visit: https://community.jboss.org/message/793641#793641

--------------------------------------------------------------
A) The maven build does NOT work for me. Here is the significant part of my console: (I am running a maven install)

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.354s
[INFO] Finished at: Tue Jan 22 22:02:47 EST 2013
[INFO] Final Memory: 6M/239M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project openshifttest: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

B) See above

C) This is just a Seam Web project with zero code added. I used the wizard that comes with the latest JBoss Tools
D) Help!
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793641#793641]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Alexey Kazakov
2013-01-23 17:24:05 UTC
Permalink
Alexey Kazakov [https://community.jboss.org/people/akazakov] created the discussion

"Re: Cannot deploy ear or war using JBT"

To view the discussion, visit: https://community.jboss.org/message/793844#793844

--------------------------------------------------------------
Post by Michael Angelo
C) This is just a Seam Web project with zero code added. I used the wizard that comes with the latest JBoss Tools
Do you mean File->New->Project->Seam->Seam Web Project?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793844#793844]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Michael Angelo
2013-01-23 17:25:49 UTC
Permalink
Michael Angelo [https://community.jboss.org/people/mangelo321] created the discussion

"Re: Cannot deploy ear or war using JBT"

To view the discussion, visit: https://community.jboss.org/message/793845#793845

--------------------------------------------------------------
Yes. That is what I'm trying to test. I had no success creating the application as an EAR so I'm trying to just create the Seam Web Project and deploy it and I still get the error message above.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793845#793845]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Alexey Kazakov
2013-01-23 20:10:20 UTC
Permalink
Alexey Kazakov [https://community.jboss.org/people/akazakov] created the discussion

"Re: Cannot deploy ear or war using JBT"

To view the discussion, visit: https://community.jboss.org/message/793872#793872

--------------------------------------------------------------
This wizard creates a non-maven project. But the structure of the project expects to be the maven-like by OpenShift tools. web.xml is expected to be placed in src/main/webapp/WEB-INF/web.xml (not in WebContent/WEB-INF/web.xml). Java sources in src/main/java etc.
So you have to configure pom.xml (this pom.xml file is added by OpenShift tools and it's used to build/deploy the app onto OpenShift) for your project manually if you want to publish the project created by New Seam Web Project wizard.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793872#793872]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Michael Angelo
2013-01-23 20:12:09 UTC
Permalink
Michael Angelo [https://community.jboss.org/people/mangelo321] created the discussion

"Re: Cannot deploy ear or war using JBT"

To view the discussion, visit: https://community.jboss.org/message/793876#793876

--------------------------------------------------------------
Well, that certainly makes sense. Maybe I'll try converting to a Maven project and see what happens. I'll post my findings here

Thanks for the help everyone!
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793876#793876]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Max Rydahl Andersen
2013-01-24 10:16:13 UTC
Permalink
Max Rydahl Andersen [https://community.jboss.org/people/maxandersen] created the discussion

"Re: Cannot deploy ear or war using JBT"

To view the discussion, visit: https://community.jboss.org/message/793988#793988

--------------------------------------------------------------
Note, if you don't want to use/setup maven project you can deploy any existing war or ear project to openshift by just dragging it to the openshift server.

Then it will be deployed as a binary into the /deployments folder.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793988#793988]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Loading...