cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mullin Yu <mullin...@softwareag.com>
Subject Installation question
Date Thu, 13 Jul 2000 09:59:35 GMT
Dear all,

    I'm trying to install and config cocoon with JRun 3.0 under Windows NT 4.0
Workstation with sp6. I think I've configured as much as what I know, but still
got the error:

1. I type http://localhost:8101/cocoon2.xml on IE5

2. I've put cocoon.xml at the same folder of web.xml

3. I've modified the local.properties with correct port setting

    Thanks for any help!!

Mullin
----------------------------------------------------------------------------------------------------------

Cocoon 1.7.4

Unable to open resource: cocoon.properties

java.lang.NullPointerException
 at org.apache.cocoon.Cocoon.init(Cocoon.java:123)
 at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:236)

 at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:190)

 at
allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:177)
 at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1261)
 at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code)
 at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)

 at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
 at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
 at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:107)
 at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
 at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)


Warning: this page has been dynamically generated.


Copyright (c) 1999-2000 The Apache XML Project.
All rights reserved.

P.S.

web.xml
--------
<web-app>
 <display-name>Default User Application</display-name>
 <description>Default application for getting started</description>
 <session-config>
  <session-timeout>30</session-timeout>
 </session-config>
 <mime-mapping>
  <extension>txt</extension>
  <mime-type>text/plain</mime-type>
 </mime-mapping>
 <mime-mapping>
  <extension>html</extension>
  <mime-type>text/html</mime-type>
 </mime-mapping>
 <welcome-file-list><welcome-file>index.jsp</welcome-file></welcome-file-list>


 <servlet><servlet-name>Cocoon</servlet-name><servlet-class>org.apache.cocoon.Cocoon</servlet-class><display-name>Cocoon</display-name><description></description><init-param><param-name>properties</param-name><param-value>cocoon.properties</param-value></init-param></servlet>

<servlet-mapping><url-pattern>*.xml</url-pattern><servlet-name>Cocoon</servlet-name></servlet-mapping></web-app>



local.properties
-----------------
########################################################################
## jvm properties
########################################################################

# was: jrun.server.displayname=JRun Default Server
jrun.server.displayname=Foo Server

# Redirection of Primordial output and error streams.  Run jrun
# program with -console argument to prevent standard out and error
# from being redirected to these files.
java.System.out={default}
java.System.err={default}

########################################################################
## Java VM settings
########################################################################

# path to java virtual machine.  Launchers will use system PATH if necessary
java.exe={default}

# extra virtual machine args
user.javaargs={default}

# shared library path for JNI libraries
user.jnipath={servlet.jnipath};{ejb.jnipath}

# Classpath
user.classpath={default}

########################################################################
## logging services
########################################################################

# Logging levels, as a comma separated list.
# Possible values are any combination of: debug, info, warning, error, metrics
logging.loglevel={default}
logging.listeners={default}


########################################################################
## license manager services
########################################################################

# license.properties (2.3: was in jsm-default/properties)
license.license={default}


########################################################################
## control services
########################################################################

# endpoint properties
control.endpoint.main.bindaddress={default}
control.endpoint.main.interface={default}
#control.endpoint.main.port=53000
control.endpoint.main.port=53001
control.endpoint.main.timeout={default}
jrun.rootdir=d:\\PROGRA~1\\Allaire\\JRun
# list of services to start
servlet.services=jndi,jdbc,web,mail,url,{servlet.webapps},jcp
webapp.services={default}

########################################################################
## java properties
########################################################################

# shared library path for JNI libraries
servlet.jnipath={default}

# Classpath
#
servlet.classpath={default}


# extra virtual machine args
servlet.javaargs={default}


########################################################################
## session services
########################################################################

# Invalidation time is the default session inactivity timeout.
# If the session is not accessed, it will be expired.  This value
# can be set on each session by calling HttpSession.setMaxInactiveTime()
# specified in minutes.
session.invalidationtime={default}

session.persistence={default}
session.sessionpath={default}

# settings for cookie-based sesssion tracking
session.cookie.maxage={default}
session.cookie.secure={default}
session.cookie.active={default}
session.cookie.domain={default}
session.cookie.comment={default}
session.cookie.path={default}
session.cookie.name={default}


########################################################################
## jcpservices
########################################################################

# endpoint properties
jcp.endpoint.main.interface={default}
jcp.endpoint.main.bindaddress={default}
#jcp.endpoint.main.port=8001
jcp.endpoint.main.port=8002

jcp.endpoint.main.timeout={default}
jcp.endpoint.main.min.threads={default}
jcp.endpoint.main.active.threads={default}
jcp.endpoint.main.max.threads={default}


########################################################################
## web services
########################################################################

# endpoint properties
web.endpoint.main.bindaddress={default}
web.endpoint.main.interface={default}
#web.endpoint.main.port=8100
web.endpoint.main.port=8101
web.endpoint.main.timeout={default}
web.endpoint.main.min.threads={default}
web.endpoint.main.active.threads={default}
web.endpoint.main.max.threads={default}

# docroot for JRun's web server
web.paths./={default-app.rootdir}/


########################################################################
## zeus ZDAC services
########################################################################

# endpoint properties
zeus.endpoint.main.bindaddress={default}
zeus.endpoint.main.interface={default}
zeus.endpoint.main.port=9100
zeus.endpoint.main.timeout={default}
zeus.endpoint.main.min.threads={default}
zeus.endpoint.main.active.threads={default}
zeus.endpoint.main.max.threads={default}


######################################################################
# JDBC DataSource Binding Service
#
#   jdbc.[data source name].driver       - the JDBCDriver class
#   jdbc.[data source name].url          - the JDBC database url
#   jdbc.[data source name].description  - the datasource description
#   jdbc.[data source name].display-name - the datasource display name
#   jdbc.[data source name].pooling      - use connection pooling.
(default=false)
#   jdbc.[data source name].timeout      - connection object lifetime in minutes.
(default=30 mins).
#   jdbc.[data source name].interval     - time interval between connection
validation check in seconds. (default=60 seconds)
#   jdbc.[data source name].param.user     - the database login username
#   jdbc.[data source name].param.password     - the database login password
#   jdbc.[data source name].param.<other_custom_props>


#######################################################################
# JMS Queue/Topic Binding Service
#
#   jms.queue.[queue name].description   - JMS queue description
#   jms.queue.[queue name].display-name  - JMS queue display name in JMC
#   jms.topic.[topic name].description   - JMS topic description
#   jms.topic.[topic name].display-name  - JMS topic display name in JMC


#######################################################################
# JavaMail Session Binding Service
#
#   mail.[session name].description      - JavaMail session description
#   mail.[session name].display-name     - JavaMail session display name in JMC
#   mail.[session name].store.protocol   - JavaMail store protocol (pop or imap)
#   mail.[session name].transport.protocol - JavaMail transport protocol (smtp)
#   mail.[session name].host             - Mail server host name
#   mail.[session name].user             - Default username
#   mail.[session name].smtp.host        - Default SMTP server host name
#   mail.[session name].smtp.user        - Default SMTP user name
#   mail.[session name].imap.host        - Default IMAP server host name
#   mail.[session name].imap.user        - Default IMAP server user name
#   mail.[session name].pop3.host        - Default POP3 server host name
#   mail.[session name].pop3.user        - Default POP3 server user name
#   mail.[session name].from             - Default sender email address
#   mail.[session name].debug            - Enable debug messages (def=false)


#######################################################################
# URL Binding Service
#
# url.[url object name].description      - URL object description
# url.[url object name].display-name     - URL object display name in JMC
# url.[url object name].url-string       - URL string (e.g. http://....)



########################################################################
### global JRun properties
########################################################################

# initial pool size for SingleThreadModel servlets.  JRun will create
# as many instances of this class as it needs.  This is the number of
# automatically created instances.  The initial pool is created when
# the servlet is first accessed, or at system startup time if the servlet
# is configured to preload.
# JRun 2.3 used to be 6 by default.  JRun will
# always create one extra instance the first time (so it can use instanceof)
webapp.singlethread.initpoolsize={default}

# temp directory for the JVM
webapp.tempdir={default}


### mimeservlets.properties (mime-type chaining)
# syntax is: webapp.mime-servlet.[mimetype]=[servletName]

### mime.properties (mime extensions)
# syntax is:  webapp.mime-mapping.[extension]=[mimetype]

### pathtrans.properties
webapp.pathcount={default}
#webapp.path0.from=/virtualdir
#webapp.path0.to=/realdir


########################################################################
## general servlet/service settings
########################################################################

# Here is an example of how to configure the JRun Servlet connector.
# this allows JRun's to be distributed across processes or across
# the network
#remote.class={default}
#remote.proxyhost={default}
#remote.proxyport={default}

### taglet.properties (dynamic taglets in ssi)
# Note- this feature is deprecated in JRun 3.0. The functionality offered
#       by taglets can be replaced with JSP 1.1 tag libraries.
# Property Syntax: ssifilter.[tag].DynamicTaglet=[servlet name]
#ssifilter.createtable.DynamicTaglet=TagletDemoServlet
#ssifilter.datetag.DynamicTaglet=DateServlet

########################################################################
## rules
########################################################################

webapp.servlet-mapping./servlet={default}
webapp.servlet-mapping.*.jrun={default}
webapp.servlet-mapping.*.shtml={default}
webapp.servlet-mapping.*.jsp={default}
webapp.servlet-mapping.*.thtml={default}


########################################################################
# Web Application Settings
########################################################################

#
# List of all configurable web applications.
# There should be one app name per application definition.
#
# Property name: servlet.webapps
# Property value format: comma delimited list of webapp names.
#
# was servlet.webapps=default-app,demo-app
servlet.webapps=default-app

#
# Web Application definitions
#
# Summary of steps for registering a web application:
#   1. create a app name to filesystem directory mapping
#   2. create one or more URL to app name mappings
#   3. register the app name with the jvm.webapps property
#
#
# Application to filesytem mapping property
# - this property defines the name of an app (must be unique) and its source
filesytem directory
# - the directory should be an expanded Servlet 2.2 war file
# - property format: <app name>.rootdir=<filesystem path to root application
directory>
#
# URL to web application mapping properties
# - these properties define the URLs that clients can use to access applications.

# - property format: jrun.webapp-mapping.[//<hostname>]<uri>
#
# Sample Application Properties:
#
#   bar-app=c:/webapps/bar-app
#      - defines the app named 'bar-app' who's filesystem directory exists at
c:/webapp/bar-app
#
#   jrun.webapp-mapping.www.foo.com/store=bar-app
#      - maps bar-app to the URL /store only for host www.foo.com
#
#   jrun.webapp-mapping./store=bar-app
#      - maps bar-app to /store for all hosts


default-app.use-webserver-root=true
default-app.rootdir=D:\\Program Files\\Allaire\\JRun\\servers\\foo\\default-app
default-app.class={webapp.service-class}
webapp.mapping./=default-app
# Delete applications other than the default-app
#demo-app.rootdir=D:\\Program Files\\Allaire\\JRun\\servers\\default\\demo-app
#demo-app.class={webapp.service-class}
#webapp.mapping./demo=demo-app

########################################################################
### EJB properties
########################################################################

# shared library path for JNI libraries
ejb.jnipath={default}

# Classpath
ejb.classpath={default}

# extra virtual machine args
#ejb.javaargs=-Dejipt.classServer.host=127.0.0.1 -Dejipt.classServer.port=2323
-Dejipt.homePort=2333 "-Djava.security.policy={jrun.rootdir}/lib/jrun.policy"
"-Dejipt.home={jrun.rootdir}" "-Dejipt.ejbDirectory={jrun.server.rootdir}"
ejb.javaargs=-Dejipt.classServer.host=127.0.0.1 -Dejipt.classServer.port=2324
-Dejipt.homePort=2334 "-Djava.security.policy={jrun.rootdir}/lib/jrun.policy"
"-Dejipt.home={jrun.rootdir}" "-Dejipt.ejbDirectory={jrun.server.rootdir}"

# list of services to start
ejb.services=ejb,jms
ranConnector=yes
webapp.host.Test=localhost



Mime
View raw message