[Opensource] More adventures with eforum

David Herron davidh at 7gen.com
Sun Aug 11 13:31:08 PDT 2002


It's getting closer to running ...

Seeing MikeR's note that he'd split out the components to their own CVS
modules, I thought to give the tire another kick.  I've checked out the
source fresh for everything (rather than use my previously modified
stuff).  A quick look over the example app sources tells me that they'll
be invaluable when I get around to writing an actual application.  For now
it will be enough to get eforum running.

Many of the build tags in the main expresso part still don't work.  Some
of the tags in the USAGE message are completely missing.  Fortunately the
expresso-binary tag works, except that I had to comment out the xmldocs
target body because I don't have the Apache FO stuff and don't care to
generate that.  Maybe xmldocs should be a separate target than building
the binary dist?

It's also nice to have the precompiled support libraries back in CVS.  But
the expresso/build.xml doesn't copy those libraries when building the .war
file.  It would be great if it did (hint hint).

Building eForum was more of a trip.  Doesn't look like it's build.xml has
been updated to reflect its new location, as all the paths made sense only
if it was located in the middle of the expresso source tree.  It took
quite a bit of modifications to get this build.xml to make a reasonable
looking build, and even there I ain't sure of having done it right.  In
any case, I'll attach the diff to the end of this.

Once the eforum-xx.jar is built, and then extracted into the place the
.war file is extracted to .. I'm installing into resin2.1.4 .. the base
expresso stuff is working and I visited most of the pages and they all
worked fine.  I also added the eForum schema
(com.jcorporate.eforum.ForumSchema) into the Expresso config (on the setup
page).  But .. when I visit

 http://127.0.0.1:8080/expresso/expresso/components/eforum/frame.jsp

the toc.jsp and main.jsp frames give me this error:

  404 Not Found
  /expresso/expresso/components//main.jsp was not found on this server.

The path is almost right, but it should read .../eforum/main.jsp

It obviously is a bad value coming out of this tag in frame.jsp

  <FRAME name="main" src="<expresso:Context
           schema="com.jcorporate.eforum.ForumSchema"/>/main.jsp"
           target="main" scrolling="auto">

I don't feel like going further .. though I'm sure it would be good for my
understanding to know how these tags get expanded.

- David Herron



-------------- next part --------------
Index: build.xml
===================================================================
RCS file: /home/javacorp/.cvs/expresso/eforum/build.xml,v
retrieving revision 1.1
diff -c -r1.1 build.xml
*** build.xml	3 Aug 2002 23:16:37 -0000	1.1
--- build.xml	11 Aug 2002 20:14:53 -0000
***************
*** 1,7 ****
! <!DOCTYPE project SYSTEM "../../../../../project.dtd" [
  	<!ENTITY package "com/jcorporate/eforum">
  ]>
! <project name="eforum" default="Usage" basedir="../../../../../">
  	<target name="Usage">
  		<echo>
      ant build   - compile all project files, if a certain library is missing, 
--- 1,7 ----
! <!DOCTYPE project SYSTEM "../expresso/project.dtd" [
  	<!ENTITY package "com/jcorporate/eforum">
  ]>
! <project name="eforum" default="Usage" >
  	<target name="Usage">
  		<echo>
      ant build   - compile all project files, if a certain library is missing, 
***************
*** 19,38 ****
  	</target>
  	<target name="expresso">
  		<echo message="Building expresso"/>
! 		<ant dir="${basedir}" antfile="WEB-INF/src/com/jcorporate/expresso/build.xml" target="build"/>
  	</target>
  	<target name="init">
  		<tstamp/>
  		<property environment="env"/>
! 		<property name="eforum.srcdir" value="WEB-INF/src"/>
! 		<property name="eforum.classes" value="WEB-INF/classes"/>
  		<property name="eforum.stem" value="com/jcorporate/eforum"/>
  		<property name="build.compiler" value="modern"/>
  		<property name="eforum.version" value="2-22-ea1"/>
  		<path id="expresso.classpathset">
! 			<fileset dir="WEB-INF/lib">
  				<include name="**/*.jar"/>
  			</fileset>
  		</path>
  		<property name="classpath" refid="expresso.classpathset"/>
  		<property name="buildclasspath" value="${classpath}:${env.CATALINA_HOME}/common/lib/servlet.jar"/>
--- 19,39 ----
  	</target>
  	<target name="expresso">
  		<echo message="Building expresso"/>
! 		<ant dir="${basedir}" antfile="../expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/build.xml" target="build"/>
  	</target>
  	<target name="init">
  		<tstamp/>
  		<property environment="env"/>
! 		<property name="eforum.srcdir" value="src/WEB-INF/src"/>
! 		<property name="eforum.classes" value="src/WEB-INF/classes"/>
  		<property name="eforum.stem" value="com/jcorporate/eforum"/>
  		<property name="build.compiler" value="modern"/>
  		<property name="eforum.version" value="2-22-ea1"/>
  		<path id="expresso.classpathset">
! 			<fileset dir="../lib/WEB-INF/lib">
  				<include name="**/*.jar"/>
  			</fileset>
+                         <pathelement location="../expresso/expresso-web/WEB-INF/classes"/>
  		</path>
  		<property name="classpath" refid="expresso.classpathset"/>
  		<property name="buildclasspath" value="${classpath}:${env.CATALINA_HOME}/common/lib/servlet.jar"/>
***************
*** 72,78 ****
  	<!-- Create eforum.jar -->
  	<target name="src-jar" depends="build, javadoc">
  		<delete file="../eforum${eforum.version}-src.jar"/>
! 		<jar jarfile="../eforum${eforum.version}-src.jar" basedir="${basedir}" includes="WEB-INF/classes/${eforum.stem}/**/*,
  		  WEB-INF/config/eForumLogging.xml,
  		  WEB-INF/config/eforum-config.xml,
                    expresso/components/eforum/**/*,WEB-INF/src/${eforum.stem}/**/*.*," excludes="**/CVS/**, "/>
--- 73,79 ----
  	<!-- Create eforum.jar -->
  	<target name="src-jar" depends="build, javadoc">
  		<delete file="../eforum${eforum.version}-src.jar"/>
! 		<jar jarfile="../eforum${eforum.version}-src.jar" basedir="${basedir}/src" includes="WEB-INF/classes/${eforum.stem}/**/*,
  		  WEB-INF/config/eForumLogging.xml,
  		  WEB-INF/config/eforum-config.xml,
                    expresso/components/eforum/**/*,WEB-INF/src/${eforum.stem}/**/*.*," excludes="**/CVS/**, "/>
***************
*** 80,86 ****
  	<!-- Create eforum.jar, exluding source, doc and javadoc files -->
  	<target name="jar" depends="build">
  		<delete file="../eforum${eforum.version}.jar"/>
! 		<jar jarfile="../eforum${eforum.version}.jar" basedir="${basedir}" includes="WEB-INF/classes/${eforum.stem}/**/*.class,
  	 	WEB-INF/classes/${eforum.stem}/**/*.properties,
  		  WEB-INF/config/eForumLogging.xml,
  		  WEB-INF/config/eforum-config.xml,
--- 81,87 ----
  	<!-- Create eforum.jar, exluding source, doc and javadoc files -->
  	<target name="jar" depends="build">
  		<delete file="../eforum${eforum.version}.jar"/>
! 		<jar jarfile="../eforum${eforum.version}.jar" basedir="${basedir}/src" includes="WEB-INF/classes/${eforum.stem}/**/*.class,
  	 	WEB-INF/classes/${eforum.stem}/**/*.properties,
  		  WEB-INF/config/eForumLogging.xml,
  		  WEB-INF/config/eforum-config.xml,
***************
*** 89,103 ****
  		expresso/components/eforum/doc/**"/>
  	</target>
  	<target name="javadoc" depends="init">
! 		<property name="eforum.JavadocDest" value="expresso/components/eforum/javadoc"/>
  		<mkdir dir="${eforum.JavadocDest}"/>
  		<javadoc packagelist="${basedir}/${eforum.srcdir}/com/jcorporate/eforum/packagelist" classpath="${buildclasspath}" sourcepath="${eforum.srcdir}" use="true" author="true" destdir="${eforum.JavadocDest}" protected="true" version="true" doctitle="eForum version ${eforum.version}&lt;br&gt;API Specification" windowtitle="eForum Version ${eforum.version}" header="&lt;b&gt;eForum ${eforum.version}&lt;/b&gt;" bottom="Please see &lt;a href=http://www.jcorporate.com&gt;www.jcorporate.com&lt;b&gt; for information about new eForum releases. &lt;hr&gt;">
  			<group title="Database Objects" packages="com.jcorporate.eforum.dbobj"/>
  			<group title="Controllers" packages="com.jcorporate.eforum.controller"/>
  			<group title="Jobs" packages="com.jcorporate.eforum.job"/>
! 			<link offline="true" href="/../../../../javadoc" packagelistloc="WEB-INF/src/com/jcorporate/eforum"/>
! 			<link offline="true" href="http://java.sun.com/j2se/1.3/docs/api/" packagelistloc="expresso/doc/java"/>
! 			<link offline="true" href="http://java.sun.com/products/servlet/2.3/javadoc/" packagelistloc="expresso/doc/java/servlet"/>
  		</javadoc>
  	</target>
  	<target name="language-check" depends="init">
--- 90,104 ----
  		expresso/components/eforum/doc/**"/>
  	</target>
  	<target name="javadoc" depends="init">
! 		<property name="eforum.JavadocDest" value="src/expresso/components/eforum/javadoc"/>
  		<mkdir dir="${eforum.JavadocDest}"/>
  		<javadoc packagelist="${basedir}/${eforum.srcdir}/com/jcorporate/eforum/packagelist" classpath="${buildclasspath}" sourcepath="${eforum.srcdir}" use="true" author="true" destdir="${eforum.JavadocDest}" protected="true" version="true" doctitle="eForum version ${eforum.version}&lt;br&gt;API Specification" windowtitle="eForum Version ${eforum.version}" header="&lt;b&gt;eForum ${eforum.version}&lt;/b&gt;" bottom="Please see &lt;a href=http://www.jcorporate.com&gt;www.jcorporate.com&lt;b&gt; for information about new eForum releases. &lt;hr&gt;">
  			<group title="Database Objects" packages="com.jcorporate.eforum.dbobj"/>
  			<group title="Controllers" packages="com.jcorporate.eforum.controller"/>
  			<group title="Jobs" packages="com.jcorporate.eforum.job"/>
! 			<link offline="true" href="/../../../../javadoc" packagelistloc="src/WEB-INF/src/com/jcorporate/eforum"/>
! 			<link offline="true" href="http://java.sun.com/j2se/1.3/docs/api/" packagelistloc="src/expresso/doc/java"/>
! 			<link offline="true" href="http://java.sun.com/products/servlet/2.3/javadoc/" packagelistloc="src/expresso/doc/java/servlet"/>
  		</javadoc>
  	</target>
  	<target name="language-check" depends="init">


More information about the Opensource mailing list