This content has been marked as final.
Show 8 replies
-
1. Re: Help please: The Duke's Bank example does not build.
luke_t Jan 8, 2004 9:13 AM (in response to darrinps)"luke_t" wrote:
"luke_t" wrote:
Hi,
You seem to be using the 1.4 tutorial. Please use the 1.3 version and don't let any 1.4 jar files near the build.
Luke. -
2. Re: Help please: The Duke's Bank example does not build.
darrinps Jan 8, 2004 12:53 PM (in response to darrinps)"darrinps" wrote:
"darrinps" wrote:
Well I'm still working on this, and I'm pretty sure either something has changed in the J2EE tutorial, or something is missing in this one.
When I download the J2EE tutorial for 1.3 and expand it, there is not build.properites file. This tutorial says it should be under the j2eetutorial directory...it isn't.
When I download the J2EE tutorial for 1.4 and expand it, I do see a build.properties file under examples\bank, but this is for 1.4, and I think this tuorial is geared to use the 1.3 version of the J2EE tutorial.
So...should I copy the build.properties file over from the 1.4 tutorial, or does the auther really mean to use the build.properties from the jbossj2ee-src directory?
This tutorial really seems to be well written, but something is wrong here!
Thanks (well...thanks if anyone actually tries to help...not much luck so far). -
3. Re: Help please: The Duke's Bank example does not build.
darrinps Jan 8, 2004 1:02 PM (in response to darrinps)"darrinps" wrote:
"darrinps" wrote:
OK, here is what I did to get this thing to build. Someone PLEASE let me know if this is wrong.
1) I downloaded the 1.3 version of the J2EE tutorial.
2) I copied the build.properties file from the jbossj2ee-src directory over to the j2eetutorial directory.
3) I edited the build.properties file like this:
Old: jboss.home= -- FIXME: Point to JBoss 3.2.x installation
New: jboss.home=C:/jboss-3.2.3
4) I copied the jboss-build.xml file from jbossj2ee-src\bank over to j2eetutorial\bank
5) I executed the ant script exactly as the tutorial said.
It built just fine doing this.
Thanks. -
4. Re: Help please: The Duke's Bank example does not build.
darrinps Jan 8, 2004 1:32 PM (in response to darrinps)"darrinps" wrote:
"darrinps" wrote:
I found another step that seems to be missing.
In order to package everything, you first have to copy over the files from the jbossj2ee-src\bank\dd directory to the j2eetutorial\bank\dd directory.
This should be added (or clarified if it's hidden in ther somewhere) to the tutorial. -
5. Re: Help please: The Duke's Bank example does not build.
luke_t Jan 8, 2004 3:22 PM (in response to darrinps)"luke_t" wrote:
"luke_t" wrote:
Hi,
The idea is to unpack the source archive into the j2eetutorial directory, so that the supplementary files are added to the tutorial. That's why it says in sec. 4.1.1 that you should have a jboss-build.xml file in the j2eetutorial directory after unpacking and why it says that you should run the commands from the j2eetutorial/bank directory.
Luke. -
6. Re: Help please: The Duke's Bank example does not build.
darrinps Jan 8, 2004 3:58 PM (in response to darrinps)"darrinps" wrote:
"darrinps" wrote:
I was wondering about that when I first unpacked, but it says "Download this and unpack it to the same location as the j2eetutorial directory".
To me, that means to put it in the "same location" or same level, not to place it inside/under that directory. Maybe reword this for the final version?
Thanks. -
7. Re: Help please: The Duke's Bank example does not build.
luke_t Jan 9, 2004 2:03 PM (in response to darrinps)"luke_t" wrote:
"luke_t" wrote:
I agree. I think I originally meant to have the j2eetutorial directory as part of the archive file structure.
Luke. -
8. Re: Help please: The Duke's Bank example does not build.
jmilani Jan 19, 2004 8:54 AM (in response to darrinps)"jmilani" wrote:
"jmilani" wrote:
When running ant -f jboss-build.xml compile
I get the following 3 errors (see below). I have looked for those items that are causing the error in all the jar files of j2eetutorial 1.4 and 1.3. Does anyone know where I can find what I need.
D:\j2eetutorial14\examples\bank>ant -f jboss-build.xml compile
Buildfile: jboss-build.xml
prepare:
[mkdir] Created dir: D:\j2eetutorial14\examples\bank\build
compile:
[javac] Compiling 55 source files to D:\j2eetutorial14\examples\bank\build
[javac] D:\j2eetutorial14\examples\bank\src\com\sun\ebank\web\template\Defin
itionTag.java:59: inconvertible types
[javac] found : javax.servlet.jsp.JspContext
[javac] required: javax.servlet.jsp.PageContext
[javac] PageContext context = (PageContext)getJspContext();
[javac] ^
[javac] D:\j2eetutorial14\examples\bank\src\com\sun\ebank\web\template\Inser
tTag.java:53: inconvertible types
[javac] found : javax.servlet.jsp.JspContext
[javac] required: javax.servlet.jsp.PageContext
[javac] PageContext context = (PageContext)getJspContext();
[javac] ^
[javac] D:\j2eetutorial14\examples\bank\src\com\sun\ebank\web\template\Inser
tTag.java:78: cannot resolve symbol
[javac] symbol : constructor JspTagException (java.lang.String,java.lang.Th
rowable)
[javac] location: class javax.servlet.jsp.JspTagException
[javac] throw new JspTagException(ex.getMessage(
), rootCause);
[javac] ^
[javac] 3 errors
BUILD FAILED
D:\j2eetutorial14\examples\bank\jboss-build.xml:49: Compile failed; see the comp
iler error output for details.
Total time: 19 seconds
Thanks