Please bear with me as I learn about Turbine :)
I have the turbine jar and it's support jars installed now. I go to
localhost/servlets/Turbine and log on as turbine. I get the following
message while doing so:
Exception: java.lang.Error: Error in BasePeer.initTableSchema(): General
error: Access denied for user: '@localhost' to database 'turbine'
at
org.apache.turbine.om.peer.BasePeer.initTableSchema(BasePeer.java:225)
at
at
org.apache.turbine.om.user.TurbineUser.retrieveFromStorage(TurbineUser.java:345)
at
org.apache.turbine.om.user.peer.UserFactory.getUser(UserFactory.java:113)
at
org.apache.turbine.om.user.peer.UserFactory.getUser(UserFactory.java:88)
at
org.apache.turbine.modules.actions.LoginUser.doPerform(LoginUser.java:96)
at org.apache.turbine.modules.Action.perform(Action.java:77)
at
org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:111)
at Turbine.doGet(Turbine.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
at
org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java)
Now what I would gather from this is that I don't have a username
entered, but I do. The next thing I would think is
TurbineResources.properties is not being parsed, but I have the file
typed in correctly in zone.properties and permissions are set properly.
Everyone can read the file.
Thanks again,
Dan Diephouse
Here is my turbine.log file:
[Mon May 01 17:01:56 GMT 2000] -- ERROR --
Exception: java.sql.SQLException: General error: Access denied
for user: '@localhost' to database 'turbine'
Stack Trace follows:
java.sql.SQLException: General error: Access denied for user:
'@localhost' to database 'turbine'
at org.gjt.mm.mysql.MysqlIO.sendCommand(MysqlIO.java)
at org.gjt.mm.mysql.Connection.<init>(Connection.java)
at org.gjt.mm.mysql.Driver.connect(Driver.java)
at java.sql.DriverManager.getConnection(DriverManager.java:83)
at java.sql.DriverManager.getConnection(DriverManager.java:141)
at
org.apache.turbine.util.db.pool.DBMM.getConnection(DBMM.java:95)
at
org.apache.turbine.util.db.pool.ConnectionPool.getNewConnection(ConnectionPool.java:180)
at
org.apache.turbine.util.db.pool.ConnectionPool.getConnection(ConnectionPool.java:141)
at
org.apache.turbine.util.db.pool.DBBroker.getConnection(DBBroker.java:160)
at
org.apache.turbine.util.db.pool.DBBroker.getConnection(DBBroker.java:117)
at
org.apache.turbine.om.peer.BasePeer.initTableSchema(BasePeer.java:210)
at
org.apache.turbine.om.user.peer.TurbineUserPeer.<clinit>(TurbineUserPeer.java:139)
at
org.apache.turbine.om.user.TurbineUser.retrieveFromStorage(TurbineUser.java:345)
at
org.apache.turbine.om.user.peer.UserFactory.getUser(UserFactory.java:113)
at
org.apache.turbine.om.user.peer.UserFactory.getUser(UserFactory.java:88)
at
org.apache.turbine.modules.actions.LoginUser.doPerform(LoginUser.java:96)
at org.apache.turbine.modules.Action.perform(Action.java:77)
at
org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:111)
at Turbine.doGet(Turbine.java:267)
at Turbine.doPost(Turbine.java:366)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:521)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
at
org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java)
[Mon May 01 17:01:56 GMT 2000] -- ERROR --
Exception: java.lang.NullPointerException:
Stack Trace follows:
java.lang.NullPointerException:
at org.apache.ecs.Document.toString(Document.java:327)
at Turbine.handleException(Turbine.java:461)
at Turbine.doGet(Turbine.java:349)
at Turbine.doPost(Turbine.java:366)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:521)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
at
org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java)
And here is my TurbineResources.properties:
# Your mail server for outgoing email.
# Default: null
mail.server=outpost.compassarts.org
# 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 others.
# Default: org.apache.turbine.modules
module.packages=
# 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:3306/turbine
database.default.username=*****
database.default.password=*****
# 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=Login
# 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=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.DefaultSessionValidator
# 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=DefaultLayout
# 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=/var/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.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=MyBundle
locale.default.language=en
locale.default.country=US
# Scheduler Service
# Set enabled to true to start the scheduler.
# Default = false
scheduler.enabled=false
#services.freemarker.path=/path/to/turbine/examples/freemarker
secure.passwords=false
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]