Neeme Praks wrote:
> how do you know that Jetspeed was called? If it was, it has to write to
> turbine.log...
> Conf-files that interest are turbine.properties, jetspeed.properties and
> web.xml.
>
> Neeme
sbelt wrote:
> Also, be sure to check the tomcat log files. They should be in the
> <jakarta-tomcat>/losg directory. Usually you will find an error in one of
> these log files whenever your turbine.log file is empty.
>
> Steve B.
Tomcat lives in /opt/tomcat, Jetspeed in /opt/jetspeed and Apache in
/usr/local/apache.
Tomcat examples seem to work, here is the output...
--- tomcat: ---
--- jasper.log ---
<JASPER_LOG> Fri Jul 07 13:13:42 GMT+02:00 2000 Scratch dir for the JSP
engine is: /opt/tomcat/work/localhost_8080%2Fjetspeed</JASPER_LOG>
<JASPER_LOG> Fri Jul 07 13:13:42 GMT+02:00 2000 IMPORTANT: Do not modify
the generated servlets</JASPER_LOG>
--- servlet.log ---
Context log path="/jetspeed" :tomcat.errorPage: init
Context log path="/jetspeed" :jsp: init
Context log path="/jetspeed" :default: init
Context log path="/admin" :tomcat.errorPage: init
Context log path="/admin" :jsp: init
Context log path="/admin" :default: init
Context log path="/examples" :tomcat.errorPage: init
Context log path="/examples" :jsp: init
Context log path="/examples" :default: init
Context log path="/test" :tomcat.errorPage: init
Context log path="/test" :jsp: init
Context log path="/test" :default: init
Context log path="" :tomcat.errorPage: init
Context log path="" :jsp: init
Context log path="" :default: init
--- tomcat.log ---
Starting endpoint port="9080"
handler="org.apache.tomcat.service.http.HttpConnectionHandler"
Starting endpoint port="8007"
handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
--- end ---
If I point my browser to http://myhost:9080/jetspeed/ I get the
directory listing
of jetspeed/src/content.
turbine.properties, jetspeed.properties and web.xml are following
at the end of this mail.
Patrick Hess
>> -----Original Message-----
>> Neeme Praks wrote:
>>
>> > Can you give us:
>> > Your software configuration?
>> > And your configuration files?
>>
>> Dual-PIII running Red Hat 6.2
>> JDK 1.2.2
>> Tomcat 3.1
>> Jetspeed 1.2b1
>> Apache 1.3.9
>>
>> What configuration files do you need? I don't have an
>> overview yet so I can't decide which files are important.
--- JetspeedResources.properties ---
################################################################################
# Jetspeed Configuration
# Author: Kevin A. Burton ([EMAIL PROTECTED])
# $Id: JetspeedResources.properties,v 1.46 2000/06/13 19:19:51 burton
Exp $
################################################################################
# This is the main file you will need to configuration Jetspeed. If
there are
# any secondary files they will be pointed to from this file.
#
# All items in this file are stored as <property>=<value> pairs. In
order to
# modify somethign just changes its value.
#
# Some properties are URL based. They can except http/file/etc based
URLs. Note
# that if you don't specify the scheme but only specify it as
"/my/new/path.html"
# Jetspeed will attempt to guess the URL. Normally this would be
something like
# "http://server.domain:port/my/new/path.html". Note that some of the
entries
# become public URLs and if you want your data more secure you might
want to
# switch to "file://" based URLs.
#
#Conventions:
#
# <property>.url -> This property is expected to be a URL or a
URL
# without a scheme. If it does not have a
schema
# Jetspeed will try to determine the full
URL.
#
# <property>.file -> Points to an actual file on your local
filesystem.
#
# <property>.directory -> Points to a directory on your local
filesystem.
#
# <property>.classname -> A fully qualified Java classname:
# EX: org.apache.jetspeed.<MY_CLASSNAME>
#
# <property>.interval -> A time interval in seconds
#
#
################################################################################
################################################################################
# THE FOLLOWING ARE "REQUIRED" PROPERTIES IN ORDER TO USE
JETSPEED #
################################################################################
##########################################
# Remote Object Storage System #
##########################################
#Specify the directory that Jetspeed should
#cache XML documents to.
#For Win32 systems specify your directory as:
cache.directory=/d:/temp/JetspeedDocumentCache
#Default: /tmp/JetspeedDocumentCache
cache.directory=/tmp/JetspeedDocumentCache
#Specify whether Jetspeed should fetch items that aren't in the
DiskCache in
#real time. If true Jetspeed will throw a ContentNotAvailableException
when it
#encounters a URL that isn't available within the Cache. This can be
used so
#that clients don't have to wait for URLs to download while using
Jetspeed.
#After the URL is first encountered Jetspeed will create a thread to
download
#this in the background
#Default: true
cache.require.cached=true
#########################################
# Cocoon config #
#########################################
#Jetspeed attempts to initialize it's own Cocoon Engine.
cocoon.properties.file=/opt/jetspeed/src/config/cocoon.properties
#NOTE: You should also set "processor.xsp.repository" within
cocoon.properties
#########################################
# Temporary Storage #
#########################################
# Sometimes Jetspeed wants to write out a file that may be necessary for
further
# debuging. It will log the location and then write to this directory.
# NOTE: The System property java.io.tmpdir is defined under JDK 1.2 but
not
# JDK 1.1.x
#Default: /tmp
temp.directory=/tmp
#########################################
# Admin Username and Password definition#
#########################################
# It is required that you set a username and
# password to access the Admin console.
#specify the username for the Jetspeed admin console.
#Default: jetspeed
admin.username=jetspeed
#specify the password for the Jetspeed admin console
#Default: changeme
admin.password=changeme
##########################################
# 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
#Jetspeed uses this to cache Images that it receives from XML
documents. The
#content is parsed out and the images are placed in
public.cache.directory so
#that users don't have to contact the server via another socket but can
use
#the one they currently have to your HTTP server. This also works well
if the
#original machine happens to be down when this request happens.
#The cache directory
#Default: /usr/home/httpd/wwwroot/jetspeed-cache
public.cache.directory=/usr/home/httpd/wwwroot/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 to serve files from this directory.
#Default: /jetspeed-cache
public.cache.url=/jetspeed-cache
################################################################################
# THE FOLLOWING ARE "OPTIONAL" PROPERTIES THAT ENABLE A CUSTOMIZED
INSTALL #
################################################################################
##########################################
# Portlet Configuration #
##########################################
#Defines the standard set of properties for Jetspeed
#specify the default portlet control that should be instantiated
#Default: org.apache.jetspeed.portal.DefaultPortletControl
portletcontrol.default.classname=org.apache.jetspeed.portal.controls.TitlePortletControl
#specify what default portlet controller should be instantiated
#Default: org.apache.jetspeed.portal.DefaultPortletController
portletcontroller.default.classname=org.apache.jetspeed.portal.controllers.DefaultPortletController
#if you run the default controls and controller that comes with
Jetspeed...
#they take some params
#Default: 100%
defaultportletcontrol.width=100%
#Default: 3
defaultportletcontroller.numcolumns=3
#Default: 100%
defaultportletcontroller.width=100%
##########################################
# Jetspeed content publication #
##########################################
#Jetspeed ships with some content that it needs to function. This
content must
#be available in order for Jetspeed to function correctly. You should
specify
#the content.root here. This should be a portion of a URL that is
prefixed to all
#requests.
# Example: /content -> /content/xml/mydocument.xml
# Example: http://myserver/mycontent ->
http://myserver/mycontent/xml/mydocument.xml
# Default: /content
content.root.url=/content
##########################################
# Ability to have Jetspeed portlets #
# posted to third party devices #
# note this url expects "title" and "url"#
##########################################
thirdparty.portletrenderer.url =
http://avantgo.com/mydevice/autoadd.html?max=300&depth=5&images=0&links=0&refresh=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=/content/xml/defaultstyle.xsl
#########################################
# Document refresh settings #
#########################################
# The default portlet expiration interval. Portlets that allows
themselves to
# be refreshed will usually pay attention to
#this interval
#Default: 3600
refresh.portlet.default = 3600
#########################################
# Content Feeds #
#########################################
#specify where Jetspeed should get it's content feeds.
#this is setup like the following:
#contentfeeds.feed.name=<name>
#contentfeeds.feed.<name>.description=My Feed Description
#contentfeeds.feed.<name>.url=http://server/url
#the XMLTree content feed
contentfeeds.feed.name=xmltree
#feed meta info
contentfeeds.feed.xmltree.description=XML Tree OCS Feed
contentfeeds.feed.xmltree.url=http://www.xmltree.com/export/ocs.cfm
#The stylesheet used to transform OCS into PortletMarkup
contentfeeds.stylesheet.url=/content/xsl/ocs.xsl
#Jetspeed has the option to continually fetch all of its channels and
keep them
#in cache. The upside is that your clients will be able to see content
#right away. The downside is that this results in more bandwidth used.
The
#default value is true. Setting it to false will cause slower page
rendering
#due to Jetspeed having to go out and fetch your content.
#Default: true
contentfeeds.fetchall=true
#the total number of portets to browse at once within Jetspeed
#in preview mode...
#Default: 15
contentfeeds.portletbrowser.preview.maxportlets=15
#in overview mode...
#Default: 15
contentfeeds.portletbrowser.overview.maxportlets=15
#########################################
# Admin Control Panel Items #
#########################################
#deny access to these portlets from the PortletFactory to only people
who
#are authenticated as a turbine admin. It is important that before the
#PortletFactory returns instances that these are not allowed.
admin.portlet.name=GlobalAdminPortlet
admin.portlet.name=JetspeedPropertiesPortlet
admin.portlet.name=MemoryStorePortlet
admin.portlet.name=JavaRuntimePortlet
admin.portlet.name=DaemonAdminPortlet
admin.portlet.name=JetspeedContentAdmin
admin.portlet.name=BadURLManagerPortlet
#########################################
# User Authentication #
#########################################
#turn this on if you want Jetspeed to support user authentication
#Default: true
enable.userauthentication=true
#note it you enable Authentication you must configure the following
#TurbineResources properties
#
#mail.server
#########################################
# Daemon Configuration #
#########################################
#provide a list of all daemon names
daemon.entry=feeddaemon
daemon.entry=diskcachedaemon
daemon.entry=badurlmanagerdaemon
daemon.feeddaemon.classname=org.apache.jetspeed.daemon.impl.FeedDaemon
daemon.feeddaemon.interval=3600
daemon.feeddaemon.onstartup=true
daemon.diskcachedaemon.classname=org.apache.jetspeed.daemon.impl.DiskCacheDaemon
daemon.diskcachedaemon.interval=3600
daemon.diskcachedaemon.onstartup=false
daemon.badurlmanagerdaemon.classname=org.apache.jetspeed.daemon.impl.BadURLManagerDaemon
daemon.badurlmanagerdaemon.interval=3600
daemon.badurlmanagerdaemon.onstartup=false
#########################################
# Jetspeed Content #
#########################################
#Jetspeed supports a more advanced weblog format that allows you to
publish
#content to your website. This is based on RSS 0.91 but allows you to
have
#more Slashdot style content with topics, icons, etc.
#Jetspeed content providers. This should be a multi-valued property set
where
#you specify the list of providers you want to use:
#Default: jetspeed
content.provider.list=jetspeed
#Config: You need to tell Jetspeed how to fetch the content you want
and
#what stylesheet to use. The mechanism is setup like this:
#
#content.provider.[provider-name].url=[url to your content xml file]
#content.provider.[provider-name].stylesheet.url=[url to the stylesheet
to use with your content]
#content.provider.[provider-name].description=[a full description of
your content]
#content.provider.[provider-name].title=[a title for your content.]
content.provider.jetspeed.url=/content/xml/jetspeed-content.xml
content.provider.jetspeed.stylesheet.url=/content/xsl/jpc-full.xsl
content.provider.jetspeed.title=Jetspeed
content.provider.jetspeed.description=Jetspeed weblog
#########################################
# PSML Support #
#########################################
# Base URL for fetching user configuration files
# the config files should be in the form <base.url><username>.psml
psml.base.url=/content/psml/
# Username used for anonymous access (this should map to a
<username>.psml file
# found in the psml.base.url directory)
psml.base.username=default
# File used the store a portlet registry (still experimental)
psml.registry.url=/content/psml/portletregistry.psml
#########################################
# Navigations. #
#########################################
#Use this to specify the set of navigations
#that Jetspeed should use on top of Turbine
navigations.top=JetspeedTopNavigation
navigations.bottom=JetspeedBottomNavigation
#########################################
# Navigation configuration #
#########################################
#Use this section to define the navigation images
#and strings
#The logo image that goes at the top of Jetspeed
site.header.logo=/content/images/jetspeed-logo.gif
#The welcome message the user receives
site.header.welcome=Welcome to Jetspeed
#The logo that can go at the bottom of a navigation
site.footer.logo=/content/images/feather.gif
#########################################
# Automatic Portlet Creation #
#########################################
# Jetspeed can automatically create/instantiate all your Portlets and
place them
# in the cache when Jetspeed starts up.
autocreate.portlets=false
#########################################
# Thread Pool Options #
#########################################
#NOTE/WARNING: The below settings are for developers only. There is a
known problem
#where (at least on IBM 1.1.8, SUN 1.2.2, and IBM 1.3 (pre release) CPU
would go
#to 100% and your VM would lock. The debugger would also stop
responding at this
#point so it is impossible to debug. If you change any settings in this
section
#you are on your own! You have been warned!.
#Specify the initial number of threads to create
#Default: 20
threadpool.init.count=20
#Specify the maximum number of threads to create
#Default: 50
threadpool.max.count=50
#Specify the minimum number of threads to keep as spare until you hit
the max
#Default: 10
threadpool.minspare.count=10
--- TurbineResources.properties ---
# Your mail server for outgoing email.
# Default: null
mail.server=localhost
# This is the module to handle building AccessControlLists
# Default: org.apache.turbine.om.security.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.modules"
# 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
# Default: org.apache.turbine.modules
module.packages=org.apache.jyve,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.util.db.pool.* packages for more information.
#### ORACLE
#database.default.driver=oracle.jdbc.driver.OracleDriver
#database.default.url=jdbc:oracle:thin:@localhost:1521:ORCL
#### MySQL MM Driver
database.default.driver=org.gjt.mm.mysql.Driver
database.default.url=jdbc:mysql://localhost/DATABASENAME
database.default.username=dbUser
database.default.password=dbPass
# The number of database connections to cache in the ConnectionPool.
database.maxConnections=3
# The time in milliseconds that database connections will be cached.
# Default: one hour
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=DBInstantDB
database.adaptor.DBInstantDB=jdbc.idbDriver
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
#database.adaptor=DBSybase
#database.adaptor.DBSybase=com.sybase.jdbc.SybDriver
# These are the default settings for OPaL persistence.
# mechanism.
# Default: false
opal.start=true
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=Home
# This is the page that is shown on an incorrect login
# attempt. It is referenced in the LoginUser action
# Default: Login
screen.login=Login
# 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
# set the default Doctype. The default Doctype can be set by
# using the single strings: Html40Strict, Html40Transitional,
# or Html40Frameset. Additionally the default can be supplied as
# two strings separated by a comma giving the dtd and uri.
# Default: ignored if not set to some value
# default.doctype=Html40Transitional
# 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=JLoginUser
# 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=sessionvalidator.DefaultSessionValidator
# 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.util.upload.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.RegistryContextFactory
# 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=/tmp/turbine.log
# Supplies Turbine with information about the database schema, which can
simplify any
# required Peer classes.
# Default: org.apache.turbine.util.db.map.TurbineMapBuilder
database.maps.builder=org.apache.turbine.util.db.map.TurbineMapBuilder
# The message that can be displayed before a user logs in.
# login.message=Thank you for your visit. Please log into the system.
# 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.
# Whether the web server is able to use SSL. Links in Turbine can check
this property to determine
# if SSL can be used. Default=true
use.ssl=true
# Classes for Turbine Services should be defined here.
# Format: services.[name].classname
services.TurbineResourceService.classname=org.apache.turbine.services.resources.TurbineResourceService
services.TurbineLocalizationService.classname=org.apache.turbine.services.localization.TurbineLocalizationService
services.TurbineWebMacroService.classname=org.apache.turbine.services.webmacro.TurbineWebMacroService
services.TurbineFreeMarkerService.classname=org.apache.turbine.services.freemarker.TurbineFreeMarkerService
services.TurbineGlobalCacheService.classname=org.apache.turbine.services.cache.TurbineGlobalCacheService
services.TurbineSchedulerService.classname=org.apache.turbine.services.schedule.TurbineSchedulerService
# Default ResourceBundle and language/country codes
# used by the TurbineLocalizationService.
locale.default.bundle=org.apache.jyve.localization.JyveLocalization
locale.default.language=en
locale.default.country=US
# Scheduler Service
# Set enabled to true to start the scheduler.
# Default = false
scheduler.enabled=false
# FreeMarker path where templates are stored.
services.freemarker.path=/path/to/turbine/examples/freemarker
# This is used in the UserFactory.validateUser
# to make the password checking secure. passwords must be
# stored in the database as SHA encoded strings. validation
# is done by SHA encoding the password provided by the user
# and then comparing that to whatever is in a database
# This feature is experimental right now.
# Default: false
secure.passwords=false
###################################
#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=/opt/jetspeed/src/config/JetspeedResources.properties
# 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
###################################
#Jyve specific configurations #
###################################
# Set the values below to be appropriate values for your environment:
[EMAIL PROTECTED]
jyve.confirm.email.name=Jetspeed Confirmation
jyve.confirm.email.subject=Jetspeed - New Account Confirmation
jyve.images.root=/path/to/images/root/
# You can modify the following color values according your personal
taste:
jyve.display.color.row.unreleased=FFFF00
jyve.display.color.table.background=CCCCCC
jyve.display.color.row.title=006666
jyve.display.color.row.unreleased.question=FF8800
jyve.topbar.color.cell.bg.title=006666
jyve.topbar.htmlcolor.cell.text.title=white
jyve.topbar.color.cell.bg.value=CCCCCC
jyve.topbar.htmlcolor.cell.text.value=black
# You can modify the following options according your personal taste:
# Those affect the appearance in the DisplayQuestionAnswer screen.
jyve.displayqa.showcreator=yes
jyve.displayqa.showlastmodifieddate=yes
jyve.mainmenu=Home
--- web.xml ---
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<servlet>
<servlet-name>
jetspeed
</servlet-name>
<servlet-class>
Turbine
</servlet-class>
<init-param>
<param-name>
properties
</param-name>
<param-value>
/opt/jetspeed/src/TurbineResources.properties
</param-value>
</init-param>
</servlet>
</web-app>
--
--------------------------------------------------------------
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]