I encountered four errors while building dbforms from source:

        1.)     Lack of a servletapi jar file in the classpath.  
                Had to get Tomcat's CVS repository to get one.
        2.)   Compilation error in src/org/dbforms/taglib/DbFormTag.java
        3.)   Compilation error in
src/org/dbforms/taglib/DbGetConnection.java
        4.)     Invalid path to jvm in build.xml file.  Referred to
'java.exe' 
                and I was on a Linux system at the time.

I've included cvs diffs that should fix the compilation errors that I
got (unreachable statement errors).  I also included a diff of the
modified build.xml file that took care of my invalid path error (this
should work for Windows machines as well, but I haven't tested that,
yet).

I didn't include a jar file for the servletapi, because I'm not sure
about how that would/wouldn't violate licensing agreements.



Index: build.xml
===================================================================
RCS file: /cvsroot/jdbforms/dbforms/build.xml,v
retrieving revision 1.15
diff -c -r1.15 build.xml
*** build.xml   21 May 2002 18:56:45 -0000      1.15
--- build.xml   9 Jul 2002 14:58:28 -0000
***************
*** 90,96 ****
      <!-- generate taglib descriptors from taglib-docu using XSL
transformation -->^M
      <target name="generate_taglib" depends="jar_classes">^M
          <echo message="begin xsl translation"/>^M
!         <java classname="org.apache.xalan.xslt.Process" fork="true"
jvm="${java.home}/bin/java.exe" args="-IN ${etc.dir}/taglib_docu.xml
-XSL ${etc.dir}/tld.xsl -OUT ${dist.dir}/dbforms.tld"/>^M
          <echo message="end of xsl translation "/>^M
      </target>^M
  ^M
--- 90,96 ----
      <!-- generate taglib descriptors from taglib-docu using XSL
transformation -->^M
      <target name="generate_taglib" depends="jar_classes">^M
          <echo message="begin xsl translation"/>^M
!         <java classname="org.apache.xalan.xslt.Process" fork="true"
jvm="${java.home}/bin/java" args="-IN ${etc.dir}/taglib_docu.xml -XSL
${etc.dir}/tld.xsl -OUT ${dist.dir}/dbforms.tld"/>^M
          <echo message="end of xsl translation "/>^M
      </target>^M
  ^M
***************
*** 145,148 ****
      </target>^M
  ^M
  ^M
! </project>
\ No newline at end of file
--- 145,148 ----
      </target>^M
  ^M
  ^M
! </project>



Index: src/org/dbforms/taglib/DbFormTag.java
===================================================================
RCS file:
/cvsroot/jdbforms/dbforms/src/org/dbforms/taglib/DbFormTag.java,v
retrieving revision 1.15
diff -c -r1.15 DbFormTag.java
*** src/org/dbforms/taglib/DbFormTag.java       21 May 2002 20:33:13
-0000      1.15
--- src/org/dbforms/taglib/DbFormTag.java       9 Jul 2002 14:52:52
-0000
***************
*** 579,585 ****
                                        // if form is an emptyform ->
we've fineshed yet - cancel all further activities!^M
 
out.println(tagBuf.toString());^M
                                        return EVAL_BODY_TAG;^M
-                                       ;^M
                                }^M
  ^M
                                positionPathCore = "root";^M
--- 579,584 ----
***************
*** 1938,1941 ****
        ^M
  ^M
  ^M
! }
\ No newline at end of file
--- 1937,1940 ----
        ^M
  ^M
  ^M
! }



Index: src/org/dbforms/taglib/DbGetConnection.java
===================================================================
RCS file:
/cvsroot/jdbforms/dbforms/src/org/dbforms/taglib/DbGetConnection.java,v
retrieving revision 1.3
diff -c -r1.3 DbGetConnection.java
*** src/org/dbforms/taglib/DbGetConnection.java 31 Jan 2002 22:56:07
-0000      1.3
--- src/org/dbforms/taglib/DbGetConnection.java 9 Jul 2002 14:53:18
-0000
***************
*** 59,65 ****
                }^M
  ^M
                return EVAL_BODY_TAG;^M
-               ;^M
        }^M
  ^M
        public int doAfterBody() {^M
--- 59,64 ----
***************
*** 126,129 ****
                                        + aDbConnection.toString());^M
        }^M
  ^M
! }
\ No newline at end of file
--- 125,128 ----
                                        + aDbConnection.toString());^M
        }^M
  ^M
! }




Bradley M. Handy
Programmer/Analyst
Spring Arbor University

mailto:[EMAIL PROTECTED]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to