dev@jsftemplating.java.net

Re: JSFTemplating: problems running demo application - maybe error in build of demo

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Thu, 18 Jan 2007 09:53:46 -0800

Hi Michael,

The build script attempts to invoke "ant.bat".  Is this available in your environment?  Have you built jsftemplating yet?  If so, did you get any errors building that?  For the JSFTemplating build, you will need to move the build.properties.example to build.properties and set "glassfish-home" property appropriately.  For the "demo" app, you should check the build.properties file values.

When I do an "ant clean build" in the demo directory, this is the output I get:

> ant clean build
Buildfile: build.xml

clean:
   [delete] Deleting directory /glassfish/jsftemplating/demo/build
   [delete] Deleting: /glassfish/jsftemplating/demo/WEB-INF/lib/app.jar
   [delete] Deleting: /glassfish/jsftemplating/demo/WEB-INF/lib/jsftemplating.jar
   [delete] Deleting: /glassfish/jsftemplating/demo/WEB-INF/lib/jsftemplating-dynafaces-0.1.jar

init:
     [echo] ant

compile:
    [mkdir] Created dir: /glassfish/jsftemplating/demo/build
     [echo] ant or ant.bat should be found depending on your platform: ant
     [exec] Buildfile: aptbuild.xml

     [exec] compile:
     [exec]       [apt] Compiling 3 source files to /glassfish/jsftemplating/demo/build

     [exec] BUILD SUCCESSFUL
     [exec] Total time: 2 seconds

jar:
      [jar] Building jar: /glassfish/jsftemplating/demo/WEB-INF/lib/app.jar
     [copy] Copying 1 file to /glassfish/jsftemplating/demo/WEB-INF/lib
     [copy] Copying 1 file to /glassfish/jsftemplating/demo/WEB-INF/lib

build:

BUILD SUCCESSFUL
Total time: 4 seconds

Send your entire output so we can see all the details.

Thanks!

Ken

Michael Phoenix wrote:
I am having problems with the setup tutorial for the demo application. My OS is Windows and I am using IE 6 as my browser and Sun AppServer 9.0. I have built the JSF Templating projnect using NeBeans 5.5. When I deploy demo everything seems to work up until I try to actually reach the application on my browser I get a 404, requested resource not available. When I enter asadmin deploydir, I get the successfully completed message. I have deployed projects successfully in the past using Netbeans.
 
It looks like there may be a prolem in the build setup. The build did complete successfully, but there was an error in it. I used the ant version asant that comes with the JDK. would defintely appreciate some help here.

C:\Documents and Settings\Michael Phoenix\My Documents\cvs projects\jsft\jsftemp
lating\demo>asant
Buildfile: build.xml

init:
     [echo] ant.bat

compile:
    [mkdir] Created dir: C:\Documents and Settings\Michael Phoenix\My Documents\
cvs projects\jsft\jsftemplating\demo\build
     [echo] ant or ant.bat should be found depending on your platform: ant.bat
     [exec] Execute failed: java.io.IOException: CreateProcess: ant.bat -f aptbu
ild.xml -lib lib/ant-apt.jar compile error=2

jar:
      [jar] Building jar: C:\Documents and Settings\Michael Phoenix\My Documents
\cvs projects\jsft\jsftemplating\demo\WEB-INF\lib\app.jar
     [copy] Copying 1 file to C:\Documents and Settings\Michael Phoenix\My Docum
ents\cvs projects\jsft\jsftemplating\demo\WEB-INF\lib
     [copy] Copying 1 file to C:\Documents and Settings\Michael Phoenix\My Docum
ents\cvs projects\jsft\jsftemplating\demo\WEB-INF\lib

build:

BUILD SUCCESSFUL