-
-
2. Re: war not deployed
ctomc Mar 21, 2014 2:47 AM (in response to joachim.a)You don't give us much to go by....
at least post log of booting the server...
-
3. Re: war not deployed
wdfink Mar 21, 2014 6:49 AM (in response to joachim.a)Sounds like you use exploded deployments.
Did you copy the WAR as directory structure to the standalone/deployments folder?
In that case you need to add a flag-file <your war name>.dodeploy to the folder or change the deploy-scanner config.
But notice that this is not recommended for production as the war get's deployed for every single change within the directory structure.
-
4. Re: Re: war not deployed
joachim.a Mar 23, 2014 5:57 PM (in response to wdfink)Thank You for the answers. Here is the log file as well as standalone.xml.
Yes, the war is exploded - but how can I avoid this?
And also I put a <your war name>.dodeploy in the folder. This didn't help.
-
standalone.xml 15.8 KB
-
server.log.zip 1.2 KB
-
-
5. Re: war not deployed
joachim.a Apr 1, 2014 12:17 PM (in response to joachim.a)Can somebody support? Any idea?
-
6. Re: war not deployed
ctomc Apr 1, 2014 1:25 PM (in response to joachim.a)All you need is right there in the log you posted:
22:48:30,399 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found MyWineCellar.war in deployment directory. To trigger deployment create a file called MyWineCellar.war.dodeploy
in deployments folder there is README file, which explain exactly scenario that you are facing.
--
tomaz
-
7. Re: war not deployed
joachim.a Apr 1, 2014 3:08 PM (in response to ctomc)Thank you for the feedback.
But in my deployments folder is no README file. Also I created a file WineCellar.war.dodeploy already.
Also does anybody know how I can avoid that the war is exploded?
-
8. Re: war not deployed
wdfink Apr 2, 2014 3:10 AM (in response to joachim.a)It's on your build process to package the war file. What build tools do you use?
For maven you can look into the quickstarts how it works.
-
9. Re: Re: war not deployed
joachim.a Apr 2, 2014 6:03 PM (in response to wdfink)Thank You for the answer. I'm using maven but it's not clear to me where I triggered an explosion of the war. I attached the pom.xml file.
(And finally it's not clear to me if this is the final reason which is causing the problem.)
-
pom.xml 12.5 KB
-
-
10. Re: Re: war not deployed
kuldeep11 Apr 3, 2014 5:05 AM (in response to joachim.a)Please go through https://maven.apache.org/plugins/maven-war-plugin/usage.html .
-
11. Re: war not deployed
wdfink Apr 4, 2014 4:52 AM (in response to joachim.a)There is a open-shift profile in your pom, not sure whether this is the reason.
Did you use OpenShift? Or just copy the pom from an example?
-
12. Re: Re: war not deployed
joachim.a Apr 4, 2014 5:26 PM (in response to wdfink)Thank you for your feedback.
@Kuldeep Sharma
I called "mvn package" and the war (packed) was created and I copy the war to the deployments folder - but I got a "war.failed file".
Here is the log file.
It contains a “DuplicateServiceException". Could it be that this is the reason for the problem? How can I avoid it?
@Wolf-Dieter Fink:
Yes, the pom came from an example; I deleted the open-shift profile; no change.
Is it really intended that I call maven in the command line and copy the war to the deployments folder manually?
-
server.log.zip 1.3 KB
-
-
13. Re: Re: war not deployed
kuldeep11 Apr 5, 2014 2:11 AM (in response to joachim.a)"Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.data-source.reference-factory.MySqlDS is already registered"
Please try to remove "MySqlDS" which is already registered and causing the issue and then make a clean restart.
Thanks!
-
14. Re: Re: Re: war not deployed
joachim.a Apr 8, 2014 4:51 PM (in response to kuldeep11)I removed it and I become the next problem (see log file)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'mywinecellardb;db_close_on_exit=false;db_close_delay=-1'
but my MySQL database is MyWineCellarDB?
And still it is not clear to me if it is really intended that I call maven in the command line and copy the war to the deployments folder manually?
-
server.log.zip 2.5 KB
-