cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan North" <...@wirestation.com>
Subject Orion 1.0 rc1 and Cocoon 1.7.3 - SOLVED!
Date Tue, 16 May 2000 09:13:52 GMT
Thanks to Paul Russell and various hints from people on the #cocoon-users
channel, I found out why I was getting the NullPointerException from Orion on
the sample pages:

<hint cocoon-version="1.7.3" faq="true">
    The properties path must be relative to the
    <bold><flashing>CONTEXT ROOT</flashing></bold>
</hint>

<hint app-server="orion" version="1.0rc1">
  The WEB-INF directory is for server meta-data, so it is protected from
  the outside world (and any servlets), so this is the WRONG place to keep
  your cocoon.properties file.
</hint>

<solution>
  I created a directory called Cocoon in the context root, and put the
  cocoon-properties file there, then added the following to my web.xml:
  <code-snippet>
	<servlet>
		<servlet-name>cocoon</servlet-name>
		<servlet-class>org.apache.cocoon.Cocoon</servlet-class>
		<init-param>
			<param-name>properties</param-name>
			<param-value>/Cocoon/cocoon.properties</param-value>
		</init-param>
	</servlet>
  </code-snippet>
</solution>

<undying-gratitude>
  Thanks to everyone's patience on the list and the people who wandered
  into #cocoon-users on IRCNet
</undying-gratitude>

--
Dan North <mailto:dan@wirestation.com>


Mime
View raw message