This content has been marked as final.
Show 3 replies
-
1. Re: seam on glassfish
cdunphy Jun 16, 2009 5:26 PM (in response to bilgetonyukuk9)There is a bug in the glassfish-build.xml file that affects Windows.
If you notice earlier in the build script, from lines 14-25 there is a condition tag and it differentiates between windows and non-windows hosts..
<condition> <or> <length string="${glassfish.home}" trim="true" length="0"/> <and> <not><os family="windows"/></not> <not><available file="${glassfish.home}/bin/asadmin"/></not> </and> <and> <os family="windows"/> <not><available file="${glassfish.home}/bin/asadmin.bat"/></not> </and> </or> </condition>
This part works. However, if you go down to the gf-deploy hibernate tag, there is a condition tag that starts at line 176. It is missing the condition for windows hosts.. take a look:
<fail message="glassfish.home not set" unless="glassfish.home"/> <fail message="glassfish.home does not point to a valid GlassFish installation"> <condition> <or> <length string="${glassfish.home}" trim="true" length="0"/> <not><available file="${glassfish.home}/bin/asadmin"/></not> </or> </condition> </fail>
Try replacing the above with:
<fail message="glassfish.home not set" unless="glassfish.home"/> <fail message="glassfish.home does not point to a valid GlassFish installation"> <condition> <or> <length string="${glassfish.home}" trim="true" length="0"/> <and> <not><os family="windows"/></not> <not><available file="${glassfish.home}/bin/asadmin"/></not> </and> <and> <os family="windows"/> <not><available file="${glassfish.home}/bin/asadmin.bat"/></not> </and> </or> </condition> </fail>
Be aware that seam-gen support for GlassFish seems to be pretty new and not well tested. Particularly with EAR based projects I have encountered some annoying issues.
Hope that helps!
-
2. Re: seam on glassfish
cdunphy Jun 16, 2009 5:31 PM (in response to bilgetonyukuk9)I have created a JIRA issue for this:
https://jira.jboss.org/jira/browse/JBSEAM-4249 -
3. Re: seam on glassfish
bilgetonyukuk9 Jun 16, 2009 5:33 PM (in response to bilgetonyukuk9)thank you very much it solved my problem.