-
1. Re: .xhtml hot deploy not working (Eclipse + Seam + Jboss 5.1)
alesj Aug 21, 2013 4:45 PM (in response to lsmahler)Afair, we only track certain files.
Try to find which ones we track, and add .xhtml as well.
-
2. Re: .xhtml hot deploy not working (Eclipse + Seam + Jboss 5.1)
lsmahler Aug 21, 2013 8:48 PM (in response to alesj)Tks Ales.
But, where I find which kind of files are being tracking?
Leo.
-
3. Re: .xhtml hot deploy not working (Eclipse + Seam + Jboss 5.1)
alesj Aug 22, 2013 4:21 AM (in response to lsmahler)Quick guess -- deployers.xml.
(I would have to look, as been a while since we did that :-))
-
4. Re: .xhtml hot deploy not working (Eclipse + Seam + Jboss 5.1)
lsmahler Aug 22, 2013 9:16 AM (in response to alesj)Sorry Ales, I couldn´t find any tag to include.xhtml into deployers.xml file.
-
5. Re: .xhtml hot deploy not working (Eclipse + Seam + Jboss 5.1)
alesj Aug 22, 2013 10:33 AM (in response to lsmahler)OK, I'll have a look closer later in the evening ...
-
6. Re: .xhtml hot deploy not working (Eclipse + Seam + Jboss 5.1)
lsmahler Aug 22, 2013 2:10 PM (in response to alesj)The behavior is too weird!
Sometimes xhtml hot deploy works... sometimes it doesn´t!
I´m getting crazy!
-
7. Re: .xhtml hot deploy not working (Eclipse + Seam + Jboss 5.1)
alesj Aug 23, 2013 4:40 AM (in response to lsmahler)See profile.xml for:
---
<!-- A filter which controls the files that will be watched for changes for hot deployment By default a org.jboss.system.server.profile.basic.PatternIncludeVirtualFileFilter is configured to allow flexible control over the files that can be watched for hot deployments. This PatternIncludeVirtualFileFilter accepts a regular expression and matches it against the file name(s) in the metadata locations (WEB-INF or META-INF) to decide whether the change to such file(s) should trigger a redeployment of the application --> <bean name="ModificationCheckerFilter" class="org.jboss.system.server.profile.basic.PatternIncludeVirtualFileFilter"> <constructor> <!-- Remember, the parameter is a regex so use the correct syntax as below. Here we specify that we are interested in watching changes to either application.xml, web.xml, ejb-jar.xml, any -service.xml, jboss-beans.xml (which are all considered top level deployment descriptors) --> <parameter class="java.lang.String">.*/(application|web|ejb-jar|(.)+-service|.*jboss-beans)\.xml$</parameter> </constructor> </bean> ---
-
8. Re: .xhtml hot deploy not working (Eclipse + Seam + Jboss 5.1)
lsmahler Aug 23, 2013 2:30 PM (in response to alesj)Tks for your attention Ales!
But unhappy it doesn´t work.
I added this line:
<parameter class="java.lang.String">.*/*\.xhtml$</parameter>
But my changes in .xhtml files are still not being hot deployed.
I´m still needing to restart the server manually.
Regards, Leo.
-
9. Re: .xhtml hot deploy not working (Eclipse + Seam + Jboss 5.1)
daganos Aug 23, 2013 7:32 PM (in response to lsmahler)Hi,
I'm facing the same problem in the past week.
I´m using:
- Seam 2.2.2
- Jboss 5.1
- Eclipse Juno
- jboss tools 4.0
When I used the same Jboss 5.1, Seam 2.2.2 but with older version of jboss tools it worked fine.
Any idea?
Thanks in advance,
Daganos.
-
10. Re: .xhtml hot deploy not working (Eclipse + Seam + Jboss 5.1)
alesj Aug 26, 2013 5:23 AM (in response to lsmahler)I added this line:
<parameter class="java.lang.String">.*/*\.xhtml$</parameter>
But my changes in .xhtml files are still not being hot deployed.
I´m still needing to restart the server manually.
Hmmm, by default we only look metadata locations.
---
/**
* MetaDataStructureModificationChecker.
*
* VFS and structure cache filter must be compatible,
* meaning they would return same value for equal files/paths.
*
* e.g.
* VirtualFile file = VFS.getVirtualFile(rootURI, "/my-app.jar/META-INF/somefile.xml");
* String cachedPath = "/my-app.jar/META-INF/somefile.xml";
* filter.accepts(file) == cacheFilter.accepts(cachedPath)
*
* @author <a href="mailto:ales.justin@jboss.org">Ales Justin</a>
*/
public class MetaDataStructureModificationChecker extends AbstractStructureModificationChecker<Long>
---
Either you add custom checker implementation,
or add the .xhtml location to metadata locations -- via jboss-structure.xml descriptor.
-
11. Re: .xhtml hot deploy not working (Eclipse + Seam + Jboss 5.1)
alesj Aug 26, 2013 5:24 AM (in response to daganos)When I used the same Jboss 5.1, Seam 2.2.2 but with older version of jboss tools it worked fine.
Any idea?
That's a question for JBoss Tools -- as AS and Seam didn't change.
-
12. Re: .xhtml hot deploy not working (Eclipse + Seam + Jboss 5.1)
lsmahler Aug 26, 2013 9:59 AM (in response to alesj)Ales, change now the location of my .xhtml files is not indicated, because we have a team working into project and it will be a messy!
How can I add my custom checker implementation?
Tks a lot foer you attention!
-
13. Re: .xhtml hot deploy not working (Eclipse + Seam + Jboss 5.1)
alesj Aug 26, 2013 10:40 AM (in response to lsmahler)How can I add my custom checker implementation?
Instead of current checker bean -- from profile.xml,
you need to implement your own -- which is gonna check .xhtml locations as well.
And make sure that bean's classes are on the right classpath.
By default we only included metadata locations on purpose,
as checking everything can be too much of performance hog.