I cannot get the code to compile - though I am grateful that it is now at
least trying to compile it. :) (Following 2 other posts, I changed
jikes->classic, and include..."org"...->include..."org/**"...) I feel this
is progress.

I am trying to follow your instructions from 02/21. I have downloaded the
source and I am trying to create the .jar.

Note that I do not have J2EE, so I have changed my build .bat to "set
J2EE=c:\classes\jsdk.jar".

While running "build all" after copying the files, I get the following
error:

Compiling 170 source files to C:\public\Jetspeed\bin\classes
Exception in thread "main" java.lang.NoClassDefFoundError:
sun/tools/javac/Main
        at org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Javac.java,
Comp
iled Code)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java, Compiled
Code
)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java)
        at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled
Cod
e)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java, Compiled Code)
C:\public\Jetspeed\build>

----- Original Message -----
From: Hugh P Brien <[EMAIL PROTECTED]>
To: JetSpeed <[EMAIL PROTECTED]>
Sent: Monday, February 21, 2000 9:02 PM
Subject: Re: Jetspeed on Windows NT Anyone


> Okay I will share all my knowledge.  My problem is that I have not had
> time to put it all together. But here it goes.
>
> My machines specifics:
> Windoze 4.0 SP 3
> JDK 1.2.2
> Tomcat Milestone Release 3.1 First Iteration
> Jetspeed Source as of Saturday
>
> Tomcat install dir: F:/tomcat31
> Jetspeed Src Install: F:/Infomech/jetspeed
> Turbine Src Installed F:/Infomech/turbine
>
> Because I wanted to run Jetspeed in it's own directory I added a
> Jetspeed directory under the
> tomcat
> So my working directory for Jetspeed is :
> F:/tomcat31/jetspeed
>
>
> I have included copies of all the major configuration files.  I did not
> want to leave anything out.
> The first step you need to do is the source distribution on your NT box
> and get it to build.  I had no experience with CVS so I had to figure
> out the command cvs for WinHoze 95/NT.  You can get it from
> http://download.cyclic.com/pub/cvs-1.10/windows/
>
> Once you have the source installed take a look the build.bat script.
> Note:I had J2EE installed on my box so I just used j2ee.jar but the
> servlet jar come with Tomcat so either one should do. ( I think)
>
> The next thing I did was set up my tomcat.bat to look at all the jar
> files in  lib directory of both Turbine and Jetspeed source
> directories.  I also point tomcat at the my Jetspeed.jar I built from
> the source.
>
> The next thing is to point you web.xml file at the
> TurbineResource.properties file.  The code snippet below works correctly
>
> Finally check out the settings in both the TurbineResource and
> JetspeedResources to see how I did it.  There are several NT specific
> directory settings.
>
> If anyone has any questions don't hesitate to contact me.
>
> I am sure there is an easier way to do this but this is how I got it to
> work.
>
> I have been working on this part time since January.
>
> I put this together as soon as read all the posts on the mailing list.
> Good Luck.
> r,
> Hugh P Brien
>
>
> Here is my build.bat file:
> ######################################## build.bat
> ################################################
> set TARGET=%1%
> REM set TARGET=javadoc
> REM set TARGET=core
> REM set TARGET=naming
> REM set TARGET=clean
> REM set TARGET=dist
>
> REM -------------------------------------------------------------------
> REM Define the paths to each of the packages.
> REM If you use the naming target then NAMING must be defined.
> REM -------------------------------------------------------------------
> set JAVAMAIL=F:\Infomech\turbine\lib\mail-1.1.2.jar
> set JAF=F:\Infomech\turbine\lib\activation.jar
> set VILLAGE=F:\Infomech\turbine\lib\village-1.1.jar
> set ECS=F:\Infomech\jetspeed\lib\ecs-1.2.jar
> set NAMING=F:\Infomech\turbine\lib\jndi-1.2.1.jar
> set J2EE=F:\tomcat31\lib\j2ee.jar
> set LIB=..\lib
> set JETSPEEDJAR=F:\Infomech\jetspeed\lib\turbine-2.0.jar
> set
>
JETSPEED=%JETSPEEDJAR%;%LIB%\castor-0.7.4.jar;%LIB%\Cocoon-1.6.jar;%LIB%\coo
con-ext-servlet2.2.jar;%LIB%\xerces.jar;%LIB%\ecs-1.2.jar;%J2EE%
>
> REM --------------------------------------------
> REM No need to edit anything past here
> REM --------------------------------------------
>
> if "%TARGET%" == "" goto setdist
> goto final
>
> :setdist
> set TARGET=core
> goto final
>
> :final
> echo Now building %TARGET%...
>
> set
>
CP=%JSDK%;%JAVAMAIL%;%JAF%;%VILLAGE%;%ECS%;%NAMING%;%JETSPEED%;ant.jar;proje
ctx-tr2.jar;%lib%\javac.jar
>
> set BUILDFILE=build.xml
>
> echo "Classpath: %CP%"
>
> java -classpath %CP% org.apache.tools.ant.Main -buildfile %BUILDFILE%
> %TARGET%
> ############################################# build.bat
> ###################################################
>
>
> Here is my tomcat.bat file
>
> ###############################################tomcat.bat
> #############################################
>
> @echo off
> rem $Id: tomcat.bat,v 1.7 2000/01/13 17:01:44 rubys Exp $
> rem A batch file to start/stop tomcat server.
>
> rem This batch file written and tested under Windows NT
> rem Improvements to this file are welcome
>
> SET JAVA_HOME=F:\JDK122
>
>
> set VILLAGE=F:\Infomech\turbine\lib\village-1.1.jar
> set JAVAMAIL=F:\Infomech\turbine\lib\\mail-1.1.2.jar
> set JAF=F:\Infomech\turbine\lib\activation-1.0.1.jar
> set NAMING=F:\Infomech\turbine\lib\jndi-1.2.1.jar
> set TURBINE=F:\Infomech\jetspeed\lib\turbine-2.0.jar
>
> set
>
jsdkJars=.\webserver.jar;.\lib\servlet.jar;.\lib\fop12.jar;.\lib\j2ee.jar;F:
\jdk122\jre\lib\rt.jar
>
> set JETSPEED=f:\Infomech\jetspeed\bin\JetSpeed.jar
> set ECS=F:\Infomech\jetspeed\lib\ecs-1.2.jar
> set CASTOR=F:\Infomech\jetspeed\lib\castor-0.7.4.jar
> set
>
COCOON=F:\Infomech\jetspeed\lib\Cocoon-1.6.jar;F:\Infomech\jetspeed\lib\cooc
on-ext-servlet2.2.jar
> set XALAN=f:\Infomech\jetspeed\lib\xalan.jar
> set XERCES=f:\Infomech\jetspeed\lib\xerces.jar
>
> SET J2EE=f:\tomcat31\lib\j2ee.jar
>
> REM ################  Jetspeed Configuration
> ###########################3
>
> set
>
JETSPEED_BUILD=%JETSPEED%;%TURBINE%;%JAVAMAIL%;%VILLAGE%;%ECS%;%JAF%;%NAMING
%;%CASTOR%;%COCOON%;%XALAN%;%XERCES%;%LIB%\javac.jar;
>
> set jspJars=.\lib\jasper.jar
> set beanJars=.\webpages\WEB-INF\classes\jsp\beans
> set miscJars=.\lib\xml.jar
> set
> appJars=%jsdkJars%;%jspJars%;%beanJars%;%miscJars%;%JETSPEED_BUILD%;.
> set sysJars=%JAVA_HOME%\lib\tools.jar
>
> set appClassPath=.\classes;%appJars%
> set cp=%CLASSPATH%
>
> set CLASSPATH=%appClassPath%;%sysJars%
>
> if "%cp%" == "" goto next
>
> rem else
> set CLASSPATH=%CLASSPATH%;%cp%
>
> :next
> if "%1" == "start" goto startServer
> if "%1" == "stop" goto stopServer
> if "%1" == "run" goto runServer
> if "%1" == "env" goto setupEnv
>
> echo Usage:
> echo "tomcat (start|run|env|stop)"
> echo "        start - start tomcat in a separate window"
> echo "        run   - start tomcat in the current window"
> echo "        env   - setup the environment for tomcat"
> echo "        stop  - stop tomcat"
> goto cleanup
>
> :startServer
> echo Starting tomcat in new window
> echo Using classpath: %CLASSPATH%
> start java  org.apache.tomcat.shell.Startup %2 %3 %4 %5 %6 %7 %8 %9
> goto cleanup
>
> :runServer
> rem Start the Tomcat Server
> echo Using classpath: %CLASSPATH%
> java org.apache.tomcat.shell.Startup %2 %3 %4 %5 %6 %7 %8 %9
> goto cleanup
>
> :stopServer
> rem Stop the Tomcat Server
> echo Using classpath: %CLASSPATH%
> java org.apache.tomcat.shell.Shutdown %2 %3 %4 %5 %6 %7 %8 %9
> goto cleanup
> goto cleanup
>
> :setupEnv
> set cp=%CLASSPATH%
>
> :cleanup
> rem clean up
>
> set CLASSPATH=%cp%
> set port=
> set host=
> set test=
> set jsdkJars=
> set jspJars=
> set beanJars=
> set miscJars=
> set appJars=
> set appClassPath=
> set cp=
>
> rem pause
>
> ############################################## tomcat.bat
> #######################################
>
>
> Web.xml - I point it directly at  jetspeed source directory
>
> ######################################### web.xml snippet
> ####################################
> <servlet>
>         <servlet-name>
>             Turbine
>         </servlet-name>
>         <servlet-class>
>             Turbine
>         </servlet-class>
>         <init-param>
>             <param-name>
> properties
>             </param-name>
>             <param-value>
>
> F:\Infomech\jetspeed\src\config\TurbineResources.properties
>             </param-value>
>         </init-param>
> </servlet>
> ########################################### web.xml snippet
> ####################################33
>
>
>
#########################################TurbineResources.properties########
####################
>
> # The scheduler service
> # Default: false
> scheduler.enabled=false
>
>
> # Your mail server for outgoing email.
> # Default: null
> mail.server=mail.infomech.com
>
> # This is the module to handle building AccessControlLists
> # Default: org.apache.turbine.util.access.DefaultAccessControl
> access.control=org.apache.turbine.om.security.DefaultAccessControl
>
> # This determines whether or not to cache the modules in memory.
> # For development, turn this off. For production, turn this on.
> # Default: false
> module.cache=false
>
> # If module.cache=true, then how large should we make the
> # hashtables by default.
> action.cache.size=20
> layout.cache.size=10
> navigation.cache.size=10
> page.cache.size=5
> screen.cache.size=50
> scheduledjob.cache.size=10
>
> # This is the "classpath" for Turbine. In order to locate
> # your own modules, you should add them to this path.
> # For example, if you have com.company.actions,
> # com.company.screens, com.company.navigations, then
> # this setting would be "com.company,org.apache.turbine"
> # This path is searched in order. For example, Turbine
> # comes with a screen module named "Login". If you wanted
> # to have your own screen module named "Login", then you
> # would specify the path to your modules before the
> # path to the turbine modules.
> # Default: org.apache.turbine
> module.packages=org.apache.jetspeed.turbine,org.apache.turbine.modules
>
> # This is the class that implements the User interface
> # Default: org.apache.turbine.om.user.TurbineUser
> user.class=org.apache.turbine.om.user.TurbineUser
>
> # These are your database settings, look in the
> # org.apache.turbine.db* package for more information.
> database.default.driver=oracle.jdbc.driver.OracleDriver
> database.default.url=jdbc:oracle:thin:@localhost:1521:ORCL
> database.default.username=dbUser
> database.default.password=dbPass
> database.maxConnections=3
> database.expiryTime=3600000
>
> # These are the supported jdbc-drivers and their adaptors.
> # These properties are used by the DBFactory.
> database.adaptor=DBMM
> database.adaptor.DBMM=org.gjt.mm.mysql.Driver
> database.adaptor=DBWeblogic
> database.adaptor.DBWeblogic=weblogic.jdbc.pool.Driver
> database.adaptor=DBOracle
> database.adaptor.DBOracle=oracle.jdbc.driver.OracleDriver
> database.adaptor=DBInstandDB
> database.adaptor.DBInstandDB=jdbc.idbDriver
> database.adaptor=DBSybase
> database.adaptor.DBSybase=com.sybase.jdbc.SybDriver
> database.adaptor=DBPostgres
> database.adaptor.DBPostgres=postgresql.Driver
> database.adaptor=DBDB2Net
> database.adaptor.DBDB2Net=COM.ibm.db2.jdbc.net.DB2Driver
> database.adaptor=DBDB2App
> database.adaptor.DBDB2App=COM.ibm.db2.jdbc.app.DB2Driver
>
> # This is the default settings for the OPaL persistence
> # mechanism.
> # Default: false
> opal.start=false
> opal.dbbroker.classname=org.apache.turbine.opl.database.DbBrokerImpl
>
> # This is the default screen to show to people when they
> # first access the system. You can override this by
> # specifying module.packages to include your own modules.
> # Default: Login
> screen.homepage=portlets.PortletViewerScreen
> #screen.homepage=Home
>
> # This is the page that is shown on an incorrect login
> # attempt. It is referenced in the LoginUser action
> # Default: Login
> screen.login=JetSpeedLogon
>
> # This is the default error screen
> # Default: Error
> screen.error=Error
>
> # This is the screen that is displayed when the user's
> # web page is in an invalid state.
> # Default: error.InvalidState
> screen.invalidstate=error.InvalidState
>
> # The default location for ImageServer to find its files
> # Default: d:/
> screen.ImageServer.root=d:/
>
> # This is the default action to log a user in.
> # Default: LoginUser
> action.login=LoginUser
>
>
> # This is the default action to validate whether or not
> # a session is valid. For example, if you want to make
> # sure if a user has already logged in or not.
> # Default: SessionValidator
> #action.sessionvalidator=JetspeedSessionValidator
> #NOTE:  Within JetSpeed this is defined below...
>
>
> # This is the default action that builds up the AccessControlList
> # for the individual users session
> # Default: AccessController
> action.accesscontroller=AccessController
>
> # This is the default layout to apply.
> # Default: DefaultLayout
> layout.default=JetSpeedLayout
>
> # This is the default page module. You probably do not want
> # to modify this.
> # Default: DefaultPage
> page.default=DefaultPage
>
> # This is the file upload max file size.
> # Default: 1000000
> max.file.size.bytes=1000000
>
> # This is the code that will be used to handle file upload
> # Default: org.apache.turbine.external.UploaderOReilly
> file.upload.handler=org.apache.turbine.util.upload.UploaderOReilly
>
> # This is the path where files will be uploaded
> # Default: .
> file.upload.default.path=.
>
> # This is the file server where files will be uploaded for
> # mulipart/form-data requests
> # Default: none
> #file.server=
>
> # This indicates whether Turbine should try to create JNDI contexts.
> # Default: false
> # contexts=true
>
> # This indicates the action that should be run to create JNDI initial
> contexts.
> # Default: InitContextsAction
> action.initcontexts=InitContextsAction
>
> # These are the JNDI context properties.
> # Each context's properties are defined by the properties
> # beginning with context.name.
> # Default: none
> #
> # Example:
> # The following will create a JNDI context named "name" in the
> # data.contexts Hashtable. It will point at the RMI registry
> # on localhost running on port 1099, and will use
> # com.sun.jndi.rmi.registry.RegistryContextFactory as the initial
> # context factory:
> #
> # context.name.java.naming.provider.url=rmi://localhost:1099
> #
>
context.name.java.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryC
ontextFactory
>
> # The full path name to a log file
> # if not given, commands to log events using org.apache.turbine.util.Log
> will be ignored.
> # This file must already exist and be writable.
> # Default: none
> #
> logfile=/F:/Infomech/jetspeed/log/turbine.log
>
> # Supplies Turbine with information about the database schema, which can
> simplify any
> # required Peer classes.
> # Default: org.apache.turbine.util.db.map.DatabaseMapBuilder
> database.maps.builder=org.apache.turbine.util.db.map.DatabaseMapBuilder
>
> # The message that can be displayed when no screen is defined.
> login.message.noscreen=There has been an error. Your session is valid
> but the screen variable is not defined.
>
> # The message that can be displayed when a user enters an incorrect
> password or username.
> login.error=Sorry your username or password is incorrect!
>
> # The message that can be displayed when a user logs out.
> logout.message=Thank you for using the system. Please come back soon.
>
>
>
> # FreeMarker path where templates are stored.
> freemarker.path=/F:/Infomech/turbine/examples/freemarker
>
>
> ###################################
> #JetSpeed specific configurations #
> ###################################
>
> # The message that can be displayed before a user logs in.
> login.message=Please login to Jetspeed
>
> #the properties file for JetSpeed
>
#jetspeed.properties=/projects/jetspeed/src/config/JetSpeedResources.propert
ies
>
>
jetspeed.properties=/f:/Infomech/jetspeed/src/config/JetSpeedResources.prope
rties
> action.sessionvalidator=JetSpeedSessionValidator
>
>
>
>
>
#########################################TurbineResources.properties########
####################
>
>
>
#########################################JetspeedResources.properties#######
#####################
>
> ##########################################
> # Portlet Configuration                  #
> ##########################################
> #Defines the standard set of properties for JetSpeed
>
>
> #specify the default set of portlets to use for the Home page
>
#portlet.default.url=file:///projects/jetspeed/src/content/xml/defaultPortle
ts.xml
>
#portlet.default.url=file:///F:/Infomech/tomcat31/jetspeed/content/xml/defau
ltPortlets.xml
>
portlet.default.url=http://stewart:8080/jetspeed/content/xml/defaultPortlets
.xml
>
> #specify the default set of portlets the user can choose from
>
#portlet.allportlets.url=file:///projects/jetspeed/src/content/xml/portlets.
xml
>
#portlet.allportlets.url=///F:/Infomech/tomcat31/jetspeed/content/xml/portle
ts.xml
>
portlet.allportlets.url=http://stewart:8080/jetspeed/content/xml/portlets.xm
l
>
> #specify the default portlet control that should be instantiated
>
portletcontrol.defaultinstance=org.apache.jetspeed.portal.DefaultPortletCont
rol
>
> #specify what default portlet controller should be instantiated
>
portletcontroller.defaultinstance=org.apache.jetspeed.portal.DefaultPortletC
ontroller
>
#portletcontroller.defaultinstance=org.apache.jetspeed.portal.XMLPortletCont
roller
>
> ##########################################
> # Messaging Subsystem Config             #
> ##########################################
>
> #JetSpeed counts the number of clients accessing your web interface.
> #this can be turned up if necessary
> org.apache.jetspeed.maxconnections=10
>
>
> #should your JavaMail providers be placed in debug mode?
> org.apache.jetspeed.javamail.debug=false
>
>
> #don't forget to change your jetspeed admin page password.
> admin.password=hackme
>
>
> #in the Linux JDK pre-v2 the POST action for forms cause an HTTP
> transfer error
> #setting this to "get" is the workaround but your password may be stored
> on your URL.
> org.apache.jetspeed.form-action=post
>
>
> ##########################################
> # Object Storage Systems                 #
> ##########################################
> # Indicate the minimum amount of memory (in bytes) that should be always
> # available to the jvm. If your JVM contains less than 300Kb free when
> it
> # starts you may either:
> #  - lower this limit, following the indication of the throw exception.
> #  - add your JVM startup heap size (suggested).
> # To the latter either:
> #  - (java 1.1) add -ms<size> as command line argument
> #  - (java 1.2) add -Xms<size> as command line argument
>
> #note.  JetSpeed currently uses the Cocoon MemoryStore as it's cache.
> The
> #documentation says to define store.memory however it fetches memory.
> Both
> #are specified here in case future versions of Cocoon change this
> behavior
>
> store.memory = 10000
> memory = 10000
>
> ##########################################
> # Remote Object Storage System           #
> ##########################################
> #Specify the directory that JetSpeed should
> #cache XML documents to.
>
> #for Win32 systems specify your directory as:
>
> cache.directory=/f:/tomcat31/jetspeed/tmp
>
> ##########################################
> # Public Remote Object Storage System    #
> ##########################################
> #Specify where JetSpeed should cache remote documents but that should
> also be public.
> #An example of this would be an image that was loaded through a XML page
> from a remote
> #server but is stored in this cache so that it can be loaded quicker
>
> #The cache directory
> public.cache.directory=/f:/tomcat31/jetspeed/cache
>
> #the directory that you want your HTTPD to serve files from.  This
> should be
> #the public URL for the above document.  Make sure your HTTP daemon has
> the
> #correct permission.
> public.cache.url=http://stewart:8080/jetspeed/cache
>
>
>
> ##########################################
> # Portlet Configuration Options          #
> ##########################################
>
>
> #Providing classes other then these will allow you to run your own
> controller or control impls
> defaultportletcontrol.instance =
> "org.apache.jetspeed.portal.DefaultPortletControl"
> defaultportletcontroller.instance =
> "org.apache.jetspeed.portal.DefaultPortletController"
>
> #if you run the default controls and controller that comes with
> JetSpeed... they take some params
> defaultportletcontrol.width         = 100%
> defaultportletcontroller.numcolumns = 3
> defaultportletcontroller.width      = 100%
>
>
> ##########################################
> # Ability to have JetSpeed portlets      #
> # posted to third party devices          #
> # note this url expects "title" and "url"#
> ##########################################
>
> thirdparty.portletrenderer =
>
http://avantgo.com/mydevice/autoadd.html?max=300&depth=5&images=0&links=0&re
fresh=always&hours=2&dflags=127&hour=0&quarter=00&s=00
> thirdparty.portletrenderer.caption = Add to Avantgo
>
> #########################################
> # XML PortletController configuration   *
> *****************************************
>
> xmlportletcontroller.width=700
>
xmlportletcontroller.stylesheet=/f:/Infomech/jetspeed/src/content/xml/defaul
tstyle.xsl
>
#xmlportletcontroller.stylesheet=/projects/jetspeed/src/content/xml/defaults
tyle.xsl
>
>
> #########################################
> # Cocoon config                         #
> #########################################
> #JetSpeed attempts to initialize it's own Cocoon Engine.
> cocoon.properties=/f:/tomcat31/cocoon_examples/cocoon.properties
>
>
>
> #########################################
> # Document refresh settings             #
> #########################################
>
> #how many seconds to cache portlets by default.  Portlets that allows
> themselves
> #to be refreshed will usually pay attention to this interval
> refresh.portlet.default = 3600
>
> #specify (in seconds) the offset interval that the
> PersistentDocumentDaemon
> #uses to refresh your disk cache.
> refresh.persistentdocument.default = 3600
>
>
#########################################JetspeedResources.properties#######
#####################
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to