Mail Archive Home | enhydra List | October 2004 Index
| <-- Date Index --> | <-- Thread Index --> |
Hi,
I simply cannot generate the same problem.
Any way, definitely the problem is in ant build process (not in the
documentation) - permanent builds should be allowed.
The quick solution of the problem mid be in deleting jar file (if he exists)
before 'jar' generation process.
This is something that you tried already (just manually). Problem with this
is that build process generates two smpleApp.jar files:
/home/avi/myProjects/simpleApp/application/bin/webapps/autoload/simpleApp_pr
es/WEB-INF/lib/simpleApp.jar
/home/avi/myProjects/simpleApp/application/bin/webapps/autoload/simpleApp/WE
B-INF/lib/simpleApp.jar
and you should delete the both of them. If this is the case, resolution
would be to simply delete 'jar' file before generation of new one.
Just add this task in 'presentation/build/build-deploy.xml', like this:
<!-- Build the jar file -->
<delete file="${presentation.dir}/WEB-INF/lib/${project.name}.jar"/>
<jar jarfile="${presentation.dir}/WEB-INF/lib/${project.name}.jar">
<fileset dir="../../specification/classes"/>
<fileset dir="../../presentation/classes"/>
</jar>
But, the same problem will appear in 'application/build/build-deploy.xml'
also and you can resolve it the same way:
<!-- Build the jar file -->
<delete file="${application.dir}/WEB-INF/lib/${project.name}.jar"/>
<jar jarfile="${application.dir}/WEB-INF/lib/${project.name}.jar">
<fileset dir="../../specification/classes"/>
<fileset dir="../../business/classes"/>
<fileset dir="../../presentation/classes"/>
</jar>
Hope this helps!
Regards,
Slobodan Vujasinovic
Enhydra Development Team
----- Original Message -----
From: "Avi Schwartz" <enhydra@xxxxxxxxxxxxxxxxxxx>
To: <enhydra@xxxxxxxxxxxxx>
Sent: Sunday, October 24, 2004 2:14 AM
Subject: Re: [enhydra] simpleApp fails building the second time
> On Oct 22, 2004, at 17:46, Avi Schwartz wrote:
> > I am running enhydra enterprise 6.0.1 on a Linux box and trying to go
> > through the tutorial. I used the appwizard to generate the code for
> > simpleApp but I have a strange problem. I can built the application
> > only once. The first time I build it using enhydra-ant it builds and
> > runs fine. However if I try to build it a second time (and it does
> > not matter whether I did or didn't make any changes to the code), the
> > build fails in presentation/build/build-deploy.xml in the "Build the
> > jar file" section.
>
> OK, I managed to rebuild the application by running 'enhydra-ant clean'
> before running 'enhydra' but that is not documented in the "Getting
> Started with Enhydra" document. Is this a bug in the ant script or the
> document?
>
> Avi
>
>
>
----------------------------------------------------------------------------
----
>
> --
> You receive this message as a subscriber of the enhydra@xxxxxxxxxxxxx
mailing list.
> To unsubscribe: mailto:enhydra-unsubscribe@xxxxxxxxxxxxx
> For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.