tag:blogger.com,1999:blog-7836204352369514180.post8703080186542443951..comments2022-03-25T05:11:20.110+01:00Comments on Around the World in Java: JBoss AS 7: Catching up with Java EE 6Harald Wellmannhttp://www.blogger.com/profile/08039976160321882828noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-7836204352369514180.post-24940474180753508452012-06-12T00:11:06.980+02:002012-06-12T00:11:06.980+02:00In order to redeploy on JBoss AS 7, one needs to s...In order to redeploy on JBoss AS 7, one needs to set the exploded view (i.e. extracted WAR) to redeploy within the admin console.<br /><br />That said, I had huge problems attempting to deploy anything other than the out-of-the-box JBoss projects (created from the JBoss Tools plugin for Eclipse) and like you said, don't even think about using anything other than janky Hibernate, it simply won't work.<br /><br />I also could not get Primefaces to work with it either. The whole JBoss motto appears to be: our way or the highway and don't ask question.<br /><br />Could have something to do with the fact that one can find Tomcat and Glassfish hosting but very rarely any JBoss hosting. It's simply too much pain and effort to get working.Arron Fergusonhttps://www.blogger.com/profile/05237510812892816094noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-32508711148896663342011-10-25T10:17:56.901+02:002011-10-25T10:17:56.901+02:00Harald,
Thanks for creating that forum thread abo...Harald,<br /><br />Thanks for creating that forum thread about the PermGen issue, with the details.<br /><br />About the .failed marker deployment issue, I've just opened a AS7 dev list discussion here <a href="http://lists.jboss.org/pipermail/jboss-as7-dev/2011-October/004304.html" rel="nofollow">http://lists.jboss.org/pipermail/jboss-as7-dev/2011-October/004304.html</a>Jaikiranhttps://www.blogger.com/profile/08503182723143814781noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-90714501132702984052011-10-24T22:22:10.990+02:002011-10-24T22:22:10.990+02:00I've been poking around in a heap dump, and th...I've been poking around in a heap dump, and there's a BeanMetaDataCache holding references to multiple copies of my application, which looks rather suspicious.<br /><br />See http://community.jboss.org/thread/174014 for details.Harald Wellmannhttps://www.blogger.com/profile/08039976160321882828noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-41884479688796069422011-10-24T19:58:40.140+02:002011-10-24T19:58:40.140+02:00Hi Harald,
I've just double checked: I comme...Hi Harald,<br /><br /><br />I've just double checked: I commented out the global-modules in my standalone.xml to provoke a deployment failure. Then I stopped the server, reverted the configuration and restarted the server.<br /><br />The application does not get redeployed until I delete the *.failed marker files. <br /><br /><br />Thanks for those details. I think I see what's going on. It appears to be specific to server restart. If the archive timestamp gets changed without a server restart, it seems to work fine by identifying the changed archive and redeploying the archive (without requiring a manual step to delete the .failed marker). There appears to be a issue when a server restart is involved. I'll take a look at this tomorrow. <br /><br /><br />The PermGen issue is more difficult, of course. I'll try to look at a heap dump with the Eclipse Memory Analyzer, to get a clue what the root cause might be.<br /><br />This will take some time - if I can narrow down the problem, I'll get back to you or post a message in the JBoss forum.<br /><br /><br />That would be great. Thanks! By the way, I just tested that 6k redeployment scenario that I mentioned earlier, against 7.0.2 and it didn't show any PermGen failures. So I guess it specific to the app you are using. So any details (whenever you get the time) will help in narrowing down the isssue.<br /><br />Thanks!Jaikiranhttps://www.blogger.com/profile/08503182723143814781noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-2423683669583334352011-10-24T19:41:46.814+02:002011-10-24T19:41:46.814+02:00@Jaikiran: Regarding the *.failed marker, my appli...@Jaikiran: Regarding the *.failed marker, my application is an archive.<br /><br />I've just double checked: I commented out the global-modules in my standalone.xml to provoke a deployment failure. Then I stopped the server, reverted the configuration and restarted the server.<br /><br />The application does not get redeployed until I delete the *.failed marker files. <br /><br />The PermGen issue is more difficult, of course. I'll try to look at a heap dump with the Eclipse Memory Analyzer, to get a clue what the root cause might be.<br /><br />This will take some time - if I can narrow down the problem, I'll get back to you or post a message in the JBoss forum.<br /><br />Best regards,<br />HaraldHarald Wellmannhttps://www.blogger.com/profile/08039976160321882828noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-62541953438452593252011-10-24T18:32:57.797+02:002011-10-24T18:32:57.797+02:00JBoss AS 7 marks any failed deployment with a foo....JBoss AS 7 marks any failed deployment with a foo.war.failed file in the deployment directory and will not attempt to redeploy the application until the marker file is deleted.<br /><br />I thought we fixed that https://issues.jboss.org/browse/AS7-1237 in 7.0.0.Final itself. We even have a testcase for that in our testsuite. Do you you redeploy the application? Is it an archive or an exploded deployment?Jaikiranhttps://www.blogger.com/profile/08503182723143814781noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-62761292794459920862011-10-24T17:31:32.141+02:002011-10-24T17:31:32.141+02:00Harald,
Do you have more details about the PermGe...Harald,<br /><br />Do you have more details about the PermGen issue on redeployment? Maybe a sample application or any other details? I _think_ we had a test somewhere where we used to redeploy around 6k times (via Arquillian) the same deployment to check for these leaks. I think that had passed 7.0.0. Not sure if something broke after that. If you have any more details, do let us know. In the meantime, I'll if I can find that testcase.Jaikiranhttps://www.blogger.com/profile/08503182723143814781noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-29586111425470411902011-10-24T01:06:22.744+02:002011-10-24T01:06:22.744+02:00Not exactly - I made sure to use the "Everyth...Not exactly - I made sure to use the "Everything" distribution of JBoss. Yes, it's not certified and I don't know if it really covers the full Java EE 6 profile.<br /><br />Anyway, it shouldn't make much of a difference, as both GlassFish and JBoss lazily activate their components, and my test application requires the Web profile only.Harald Wellmannhttps://www.blogger.com/profile/08039976160321882828noreply@blogger.comtag:blogger.com,1999:blog-7836204352369514180.post-63449648785514670182011-10-23T23:55:11.945+02:002011-10-23T23:55:11.945+02:00Aren't you comparing a web profile (JBoss 7.0....Aren't you comparing a web profile (JBoss 7.0.2) and a full Java EE 6 platform (GlassFish 3.1.1)?Alexis MPhttps://www.blogger.com/profile/12554120080905696708noreply@blogger.com