Hi guys,
I'm with Luc and Brian here too. I've been playing around with Jetspeed 1.1
for a week now on and off and I can't seem to get it to work. Although I
would like to use 1.2b1, I just want to take one step at a time. If you
guys don't mind, I'd like to see a working copy of Jetspeed 1.1 config files
for a Windows based installation if anyone has then. I'm willing to share
mine so that other may get to the same point as I do which only contains *1*
error as far as I know. The error if someone can help is about the cocoon
example. It gives me this error:
CocoonPortlet: Could not use the following URL:
http://localhost:8080/content/dynamic/index.xml
/c:/temp/JetspeedDocumentCache\file..c....temp.JetspeedDocumentCache\http..localhost......8080..content..dynamic..index....xml
(The system cannot find the path specified)
Personally I think it's there's something wrong in the
cache.directory=/c:/temp/JetspeedDocumentCache in
JetspeedResources.properties but I can't figure it out. Any help would be
appreciated!
-aw
*** Env: Windows 2000, JDK 1.3 (@ c:\jdk1.3), Jetspeed 1.1 (@
c:\jetspeed-1.1), Tomcat 3.1 (@ c:\tomcat)
*** Classpath:
c:\jdk1.3\lib\tools.jar;c:\Jetspeed-1.1\Jetspeed.jar;c:\Jetspeed-1.1\lib\castor-0.7.4.jar;c:\Jetspeed-1.1\lib\cocoon.jar;c:\Jetspeed-1.1\lib\coocon-ext-servlet2.2.jar;c:\Jetspeed-1.1\lib\ecs.jar;c:\Jetspeed-1.1\lib\turbine-2.0.jar;c:\Jetspeed-1.1\lib\village.jar;c:\Jetspeed-1.1\lib\xalan.jar;c:\Jetspeed-1.1\lib\xerces.jar
*** Jetspeed content stored at:
C:\tomcat\webapps\ROOT\content
*** C:\tomcat\webapps\ROOT\WEB-INF
<?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>
/c:/jetspeed-1.1/src/config/TurbineResources.properties
</param-value>
</init-param>
</servlet>
</web-app>
*** C:\Jetspeed-1.1\src\config\JetspeedResources.properties
################################################################################
# Jetspeed Configuration
#
################################################################################
# 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.portal.DefaultPortletControl
#
################################################################################
##########################################
# Portlet Configuration #
##########################################
#Defines the standard set of properties for Jetspeed
#specify the default set of portlets to use for the Home page
portletmarkup.default.url=/content/xml/defaultPortlets.xml
#specify the default portlet control that should be instantiated
#Default: org.apache.jetspeed.portal.DefaultPortletControl
portletcontrol.default.classname=org.apache.jetspeed.portal.DefaultPortletControl
#specify what default portlet controller should be instantiated
#Default: org.apache.jetspeed.portal.DefaultPortletController
portletcontroller.default.classname=org.apache.jetspeed.portal.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
##########################################
# 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=/c:/temp/JetspeedDocumentCache
##########################################
# 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=/c:/tomcat/webapps/root/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
##########################################
# 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=d:/tmp/defaultstyle.xsl
xmlportletcontroller.stylesheet=/c:/tomcat/webapps/root/content/xml/defaultstyle.xsl
#########################################
# Cocoon config #
#########################################
#Jetspeed attempts to initialize it's own Cocoon Engine.
cocoon.properties.file=/c:/Jetspeed-1.1/src/config/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
#Default: 3600
refresh.portlet.default = 3600
#specify (in seconds) the offset interval that the PersistentDocumentDaemon
#uses to refresh your disk cache.
#Default: 3600
refresh.persistentdocument.default = 3600
#########################################
# Content Feeds #
#########################################
#specify where Jetspeed should get it's content feed
contentfeeds.default.url=/content/xml/feeds/feeds.xml
#The stylesheet used to transform OCS into PortletMarkup
contentfeeds.stylesheet.url=/content/xml/ocs/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.
#Default: false
contentfeeds.fetchall=false
#The total number of threads to use in order to populate the document cache
#Default: 5
contentfeeds.maxthreads=5
#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 #
#########################################
#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
#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.classname=org.apache.jetspeed.portal.portlets.admin.JetspeedPropertiesPortlet
admin.portlet.classname=org.apache.jetspeed.portal.portlets.admin.MemoryStorePortlet
admin.portlet.classname=org.apache.jetspeed.portal.portlets.admin.JavaRuntimePortlet
admin.portlet.classname=org.apache.jetspeed.portal.portlets.admin.FeedAdminPortlet
#########################################
# User Authentication #
#########################################
#turn this on if you want Jetspeed to support user authentication
#Default: false
enable.userauthentication=false
#########################################
# 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.
#Default: /tmp
temp.directory=/c:/temp
*** C:\Jetspeed-1.1\src\config\cocoon.properties
##############################################################################
# Cocoon Configuration file
#
##############################################################################
##########################################
# Global Configurations #
##########################################
# Indicates whether or not Cocoon should be visible if
# the requested URI equals the specified one.
selfservlet.enabled = true
selfservlet.uri = /Cocoon.xml
# Indicates whether or not Cocoon should handle errors internally
# and format the error and the exception stack trace to the client
# or return the HTTP error code to the web server and let it handle it.
handle.errors.internally = true
##########################################
# XML Parsers #
##########################################
# Apache Xerces 1.0.1+ (http://xml.apache.com/)
parser = org.apache.cocoon.parser.XercesParser
# SUN ProjectX TR2 (http://java.sun.com/xml/)
#parser = org.apache.cocoon.parser.SunXMLParser
# Indicate whether the XML file should be validated or not
# this is turned off by default for faster operation.
parser.validate = false
##########################################
# XSLT Transformers #
##########################################
# Apache Xalan (http://xml.apache.org/)
transformer = org.apache.cocoon.transformer.XalanTransformer
# James Clark's XT (http://www.jclark.com/)
#transformer = org.apache.cocoon.transformer.XTTransformer
##########################################
# XML Producers #
##########################################
# For example, if you want to produce your XML template reading it from
# the file system, using your producer, you should request the URI:
# http://your.site.com/your_XML_file.xml?producer=file
# This is the request parameter used to identify the producer in the
request:
# (default value is "producer")
producer.parameter = producer
# The syntax for this is
# producer.type.xxx = full.class.name
# where "xxx" is the producer indentier used in the request
producer.type.file = org.apache.cocoon.producer.ProducerFromFile
producer.type.request = org.apache.cocoon.producer.ProducerFromRequest
# This is used in the example files
producer.type.dummy = org.apache.cocoon.example.DummyProducer
# When producer indication is present in the request
# this configuration allows to map those requests to a particular
# producer indicated here with its type.
# NOTE: this type must present in the above map.
producer.default = file
##########################################
# XML Processors #
##########################################
# These are used when the <?cocoon-process type="xxx"?> PI is present.
# If no PI of that type is present, no processing is performed.
# The syntax for this is
# processor.type.xxx = full.class.name
# XSL Transformations (XSLT)
processor.type.xslt = org.apache.cocoon.processor.xslt.XSLTProcessor
# SQL Processor
processor.type.sql = org.apache.cocoon.processor.sql.SQLProcessor
# eXtensible Server Pages Processor (XSP)
processor.type.xsp = org.apache.cocoon.processor.xsp.XSPProcessor
# sets the repository where the compiled pages are stored.
# NOTE: make sure the directory is readable. This directory is usually
# relative to the web server's or to the servlet engine's. In case you're
not
# sure, use an absolute location.
# WARNING: since this repository may contain information you want to remain
# secret, we highly suggest that you protect the repository from untrusted
# access, even read-only. Only Cocoon and the system administrators should
# have access here.
processor.xsp.repository = ./repository
# Set the libraries associated with the given namespace.
# Use the syntax:
# processor.xsp.library.<namespace-tag>.<language> = URL to file
# where "URL to file" is usually starting with file:// if you locate
# your custom library in your file system.
processor.xsp.library.context.java =
resource://org/apache/cocoon/processor/xsp/library/java/context.xsl
processor.xsp.library.cookie.java =
resource://org/apache/cocoon/processor/xsp/library/java/cookie.xsl
processor.xsp.library.global.java =
resource://org/apache/cocoon/processor/xsp/library/java/global.xsl
processor.xsp.library.request.java =
resource://org/apache/cocoon/processor/xsp/library/java/request.xsl
processor.xsp.library.response.java =
resource://org/apache/cocoon/processor/xsp/library/java/response.xsl
processor.xsp.library.session.java =
resource://org/apache/cocoon/processor/xsp/library/java/session.xsl
processor.xsp.library.util.java =
resource://org/apache/cocoon/processor/xsp/library/java/util.xsl
# LDAP Processor
#processor.type.ldap = org.apache.cocoon.processor.ldap.LdapProcessor
#### !!!!WARNING!!!! ###########
# The DCP processor should be considered -deprecated- and we highly suggest
# you to convert all of your DCP stuff into XSP pages that, in the future,
# will totally replace DCP.
#
# Dynamic Content Processor (DCP)
processor.type.dcp = org.apache.cocoon.processor.dcp.DCPProcessor
#
################################
##########################################
# XML Formatters #
##########################################
# These are used when the <?cocoon-format type="xxx/yyy"?> PI is present
# The syntax for this is
# formatter.type.xxx/yyy = full.class.name
formatter.type.text/xml = org.apache.cocoon.formatter.XMLFormatter
formatter.type.text/wml = org.apache.cocoon.formatter.WMLFormatter
formatter.type.text/html = org.apache.cocoon.formatter.HTMLFormatter
formatter.type.text/plain = org.apache.cocoon.formatter.TextFormatter
formatter.type.text/xslfo = org.apache.cocoon.formatter.FO2PDFFormatter
formatter.type.model/vrml = org.apache.cocoon.formatter.VRMLFormatter
# This is used when no <?cocoon?> PI is present to indicate
# which MIME type to associate to the document.
# NOTE: this type must present in the above map.
formatter.default = text/html
# Specifies the text stream format. (meaningful for text formatters only)
# Supported styles are
# - normal
# - compact
formatter.style = normal
##########################################
# Cache Managers #
##########################################
# the default cache
cache = org.apache.cocoon.cache.CocoonCache
# disable page caching
#cache = org.apache.cocoon.cache.NoCache
##########################################
# Object Storage Systems #
##########################################
# the default object storage
store = org.apache.cocoon.store.MemoryStore
##########################################
# Language Interpreters #
##########################################
# These are used by the DCP Processor
interpreter.type.java = org.apache.cocoon.interpreter.java.JavaInterpreter
#interpreter.type.ecmascript =
org.apache.cocoon.interpreter.ecmascript.EcmaScriptInterpreter
#interpreter.type.javascript =
org.apache.cocoon.interpreter.ecmascript.EcmaScriptInterpreter
# Indicates the default language if not specified in the DCP PIs
interpreter.default = java
# NOTE: see the DCP user guide for instructions on using ecmascript and the
# packages required for this operation.
##########################################
# User Agents (Browsers) #
##########################################
# NOTE: numbers indicate the search order. This is very important since
# some words may be found in more than one browser description. (MSIE is
# presented as "Mozilla/4.0 (Compatible; MSIE 4.01; ...")
#
# for example, the "explorer=MSIE" tag indicates that the XSL stylesheet
# associated to the media type "explorer" should be mapped to those browsers
# that have the string "MSIE" in their "user-Agent" HTTP header.
browser.0 = explorer=MSIE
browser.1 = opera=Opera
browser.2 = lynx=Lynx
browser.3 = java=Java
browser.4 = wap=Nokia-WAP-Toolkit
browser.5 = wap=UP
browser.6 = netscape=Mozilla
*** C:\Jetspeed-1.1\src\config\TurbineResources.properties
# Default: false
scheduler.enabled=false
# Your mail server for outgoing email.
# Default: null
mail.server=
# 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.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.
database.default.driver=oracle.jdbc.driver.OracleDriver
database.default.url=jdbc:oracle:thin:@localhost:1521:ORCL
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=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=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=JetspeedLogon
# This is the default error screen
# Default: Error
screen.error=ErrorBad
# 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: c:/
screen.ImageServer.root=/c:/
# 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=SessionValidator
#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=/c:/temp/log.txt
# 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=/path/to/turbine/examples/freemarker
#FIX ME: add a description to why this is needed
services.TurbineResourceService.classname=org.apache.turbine.services.resources.TurbineResourceService
# Classes for Turbine Services should be defined here.
# Format: services.[name].classname
#
# The class for the localization service.
services.TurbineLocalizationService.classname=org.apache.turbine.services.localization.TurbineLocalizationService
# Default ResourceBundle and language/country codes
# used by the TurbineLocalizationService.
locale.default.bundle=MyBundle
locale.default.language=en
locale.default.country=US
# WebMacro Service
services.TurbineWebMacroService.classname=org.apache.turbine.services.webmacro.TurbineWebMacroService
services.webmacro=TurbineWebMacroService
###################################
#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=/c:/jetspeed-1.1/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
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
--
--------------------------------------------------------------
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]