dev@jsftemplating.java.net

Re: JSFTemplating: This is my latest attemnpt to build jsf templating

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Mon, 22 Jan 2007 19:35:41 -0800

I tried w/ ant 1.7.0 w/ and w/o my previous suggestion (removing the path to ant.bat).  In both cases it compiled successfully.

Here are 3 things you can try:

* Try unsetting your CLASSPATH environment variable, you shouldn't need it set.  Also I just noticed that your last email shows your CLASSPATH variable with a '|' character in it.  Is that true?  I don't know if this is a legal character.  This is what you said it was:

    CLASSPATH C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip;C:\Sun|AppServer\lib;.

I think you can do this by typing:

    set CLASSPATH=

Or maybe "unset CLASSPATH" (it's been a while since I've developed on windows).

* Try running this from the command line:

    C:\Program Files\Java\jdk1.5.0_06\bin\apt.exe

Did it work?  It doesn't like it from ant in your environment.

* Try moving the jsftemplating project to a location w/o spaces in the path.  I know that this has been an area that various java utilities in the past have had a problem.

I noticed that your "demo" build says "Successful" at the end (actually they both do).  I intentionally broke my build and I get a "FAILED" message at the end.  I'm confused why your ant would report that when it obviously had failures.

I'm very open to any suggestions you have on improving the build process.  You are experiencing an abnormally difficult time getting your environment working, however, the build.xml files that we have are fairly simple (except that "apt" is required until JDK 1.6 when javac wraps this functionality in).  Any ideas you have to make it easier are very welcome!

Thanks,

Ken

Michael Phoenix wrote:
I did all this from the command line. This doesn't contain the IOexecute error, but still has a problem and gives no clues how to resolve it. Really, I think a build process so complicated that it can't be easily debugged is a major problem.

On 1/22/07, Michael Phoenix <michaelandrewphoenix@gmail.com> wrote:
OK, here's the cvs command followed by the building of jsftemplating. Just below it is the attempt to build the demo application.
 
 
C:\Documents and Settings\Michael Phoenix\My Documents\cvs projects\jsft\jsftemp
lating>cvs -q up -dAP
? aptbuild
? build
? build.properties
? dist
? demo/build
? demo/WEB-INF/lib/app.jar
? demo/WEB-INF/lib/jsftemplating-dynafaces-0.1.jar
? demo/WEB-INF/lib/jsftemplating.jar
? samples/editor/build
? samples/editor/editor.war
P README.txt
P build.properties.example
M demo/build.properties
P www/index.html
cvs server: www/images/javaeesdkdownload.gif is no longer in the repository

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

clean:
   [delete] Deleting directory C:\Documents and Settings\Michael Phoenix\My Docu
ments\cvs projects\jsft\jsftemplating\aptbuild
   [delete] Deleting directory C:\Documents and Settings\Michael Phoenix\My Docu
ments\cvs projects\jsft\jsftemplating\build
   [delete] Deleting directory C:\Documents and Settings\Michael Phoenix\My Docu
ments\cvs projects\jsft\jsftemplating\dist

clean:

clean:
   [delete] Deleting directory C:\Documents and Settings\Michael Phoenix\My Docu
ments\cvs projects\jsft\jsftemplating\samples\editor\build
   [delete] Deleting: C:\Documents and Settings\Michael Phoenix\My Documents\cvs
 projects\jsft\jsftemplating\samples\editor\editor.war

init:
     [echo] lib/ant/bin/ant.bat

compile-apt-files:
    [mkdir] Created dir: C:\Documents and Settings\Michael Phoenix\My Documents\
cvs projects\jsft\jsftemplating\aptbuild
     [echo] C:\Program Files\Java\jdk1.5.0_06\jre
    [javac] Compiling 8 source files to C:\Documents and Settings\Michael Phoeni
x\My Documents\cvs projects\jsft\jsftemplating\aptbuild
    [javac] Note: C:\Documents and Settings\Michael Phoenix\My Documents\cvs pro
jects\jsft\jsftemplating\src\java\com\sun\jsftemplating\annotation\HandlerAP.jav
a uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

jar-apt-files:
    [mkdir] Created dir: C:\Documents and Settings\Michael Phoenix\My Documents\
cvs projects\jsft\jsftemplating\dist
      [jar] Building jar: C:\Documents and Settings\Michael Phoenix\My Documents
\cvs projects\jsft\jsftemplating\dist\jsftemplating-dt.jar

compile:
    [mkdir] Created dir: C:\Documents and Settings\Michael Phoenix\My Documents\
cvs projects\jsft\jsftemplating\build
     [echo] Looking for ant or ant.bat... found: lib/ant/bin/ant.bat
     [exec] Buildfile: aptbuild.xml
     [exec]
     [exec] compile:
     [exec]       [apt] Compiling 280 source files to C:\Documents and Settings\
Michael Phoenix\My Documents\cvs projects\jsft\jsftemplating\build
     [exec]
     [exec] BUILD FAILED
     [exec] C:\Documents and Settings\Michael Phoenix\My Documents\cvs projects\
jsft\jsftemplating\aptbuild.xml:29: Error running C:\Program Files\Java\jdk1.5.0
_06\bin\apt.exe compiler
     [exec]
     [exec] Total time: 0 seconds

jar:
     [copy] Copying 1 file to C:\Documents and Settings\Michael Phoenix\My Docum
ents\cvs projects\jsft\jsftemplating\dist
     [copy] Copying 1 file to C:\Documents and Settings\Michael Phoenix\My Docum
ents\cvs projects\jsft\jsftemplating\dist
      [jar] Building jar: C:\Documents and Settings\Michael Phoenix\My Documents
\cvs projects\jsft\jsftemplating\dist\jsftemplating.jar

build:

BUILD SUCCESSFUL
Total time: 3 seconds
C:\Documents and Settings\Michael Phoenix\My Documents\cvs projects\jsft\jsftemp
lating>

 
here's the demo build attempt.
 
 

C:\Documents and Settings\Michael Phoenix\My Documents\cvs projects\jsft\jsftem
lating>cd demo

C:\Documents and Settings\Michael Phoenix\My Documents\cvs projects\jsft\jsftem
lating\demo>ant clean build
Buildfile: build.xml

clean:
   [delete] Deleting directory C:\Documents and Settings\Michael Phoenix\My Doc
ments\cvs projects\jsft\jsftemplating\demo\build
   [delete] Deleting: C:\Documents and Settings\Michael Phoenix\My Documents\cv
 projects\jsft\jsftemplating\demo\WEB-INF\lib\app.jar
   [delete] Deleting: C:\Documents and Settings\Michael Phoenix\My Documents\cv
 projects\jsft\jsftemplating\demo\WEB-INF\lib\jsftemplating.jar
   [delete] Deleting: C:\Documents and Settings\Michael Phoenix\My Documents\cv
 projects\jsft\jsftemplating\demo\WEB-INF\lib\jsftemplating-dynafaces-0.1.jar

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] Buildfile: aptbuild.xml
     [exec]
     [exec] compile:
     [exec]       [apt] Compiling 1 source file to C:\Documents and Settings\Mi
hael Phoenix\My Documents\cvs projects\jsft\jsftemplating\demo\build
     [exec]       [apt] C:\Documents and Settings\Michael Phoenix\My Documents\
vs projects\jsft\jsftemplating\demo\src\org\example\handlers\ExampleHandlers.ja
a:6: package com.sun.jsftemplating.layout.descriptors.handler does not exist
     [exec]       [apt] import com.sun.jsftemplating.layout.descriptors.handler
HandlerContext;
     [exec]       [apt]
^
     [exec]       [apt] C:\Documents and Settings\Michael Phoenix\My Documents\
vs projects\jsft\jsftemplating\demo\src\org\example\handlers\ExampleHandlers.ja
a:39: cannot find symbol
     [exec]       [apt] symbol  : class HandlerContext
     [exec]       [apt] location: class org.example.handlers.ExampleHandlers
     [exec]       [apt]     public static void calculateResponse(HandlerContext
context) {
     [exec]       [apt]                                          ^
     [exec]       [apt] C:\Documents and Settings\Michael Phoenix\My Documents\
vs projects\jsft\jsftemplating\demo\src\org\example\handlers\ExampleHandlers.ja
a:6: package com.sun.jsftemplating.layout.descriptors.handler does not exist
     [exec]       [apt] import com.sun.jsftemplating.layout.descriptors.handler
HandlerContext;
     [exec]       [apt]
^
     [exec]       [apt] C:\Documents and Settings\Michael Phoenix\My Documents\
vs projects\jsft\jsftemplating\demo\src\org\example\handlers\ExampleHandlers.ja
a:39: cannot find symbol
     [exec]       [apt] symbol  : class HandlerContext
     [exec]       [apt] location: class org.example.handlers.ExampleHandlers
     [exec]       [apt]     public static void calculateResponse(HandlerContext
context) {
     [exec]       [apt]                                          ^
     [exec]       [apt] 2 errors
     [exec]
     [exec] BUILD FAILED
     [exec] C:\Documents and Settings\Michael Phoenix\My Documents\cvs projects
jsft\jsftemplating\demo\aptbuild.xml:24: Compile failed; see the compiler error
output for details.
     [exec]
     [exec] Total time: 2 seconds

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

build:

BUILD SUCCESSFUL
Total time: 3 seconds