You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ray Allis <ra...@bcstec.ca.boeing.com> on 2000/05/12 17:20:01 UTC
Re: Cocoon
Neeraj Singh wrote:
>
> Hi
> Has anybody tried Tomcat3.1 with Cocoon1.7.3? .
>
> I did the following :
>
> 1. copied xalan,xerces,fop and cocoon jar files from the zipped download to
> c:\jakarta-tomcat\lib
> ( note the cocoon.jar was not build but merely copied from the unzipped
> cocoon download)
> 2. copied cocoon.properties file as is to c:\jakarta-tomcat\conf
> 3. made changes in c:\jakarta-tomcat\conf\web.xml to include this
> org.apache.cocoon.Cocoon servlet
> 4. made changes in tomcat.bat to include the jar files in classpath
>
> Now after starting Tomcat and pointing to
> http://localhost:8080/cocoon.xml i get 'Publishing engine could not be
> initialized' error. The detail mentions java.lang.NullPointerException.
> Any clues about this one? The beta chapter of JAVA and XML book by o'reilly
> does not suggest any changes nor does the installation note at
> xml.apache.org.
>
> TIA
I am having exactly the same experience on Solaris. Stuck there since
yesterday. And now the Apache server refuses connection. ;)
Ray Allis
Re: "Publishing engine could not be initialized"
Posted by Donald Ball <ba...@webslingerZ.com>.
On Sat, 13 May 2000, Stefano Mazzocchi wrote:
> Ross Burton wrote:
> >
> > > Found it! BTW, many or most of the text files (e.g. cocoon.properties)
> > > are riddled with control-M DOS end of line characters. I spent some
> > > hours
> > > removing those without success. This sort of thing ruins PERL scripts,
> > > for example, and both Sun and Lutris (Enhydra) have had to rebuild their
> > > distributions for non-Windows systems.
> >
> > That's what happens when the some of the main developers insist on using
> > Win32platforms... :-)
>
> Well, Donald is responsible for creating the Unix distribution so blame
> him :)
That's weird, when the java program reads cocoon.properties it should
happily accept \r\n or \n for EOL. What JVM are you using?
- donald
Re: "Publishing engine could not be initialized"
Posted by Stefano Mazzocchi <st...@apache.org>.
Ross Burton wrote:
>
> > Found it! BTW, many or most of the text files (e.g. cocoon.properties)
> > are riddled with control-M DOS end of line characters. I spent some
> > hours
> > removing those without success. This sort of thing ruins PERL scripts,
> > for example, and both Sun and Lutris (Enhydra) have had to rebuild their
> > distributions for non-Windows systems.
>
> That's what happens when the some of the main developers insist on using
> Win32platforms... :-)
Well, Donald is responsible for creating the Unix distribution so blame
him :)
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<st...@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------
Re: "Publishing engine could not be initialized"
Posted by Ross Burton <ro...@mail.com>.
> Found it! BTW, many or most of the text files (e.g. cocoon.properties)
> are riddled with control-M DOS end of line characters. I spent some
> hours
> removing those without success. This sort of thing ruins PERL scripts,
> for example, and both Sun and Lutris (Enhydra) have had to rebuild their
> distributions for non-Windows systems.
That's what happens when the some of the main developers insist on using
Win32platforms... :-)
As far as I am aware, getting the source from CVS ensure that files have the
correct line feeds. You may want consider using "find" along with
"dos2unix"...
Ross Burton
Re: "Publishing engine could not be initialized"
Posted by Ray Allis <ra...@bcstec.ca.boeing.com>.
> Neeraj Singh wrote:
> >
> > Hi
> > Has anybody tried Tomcat3.1 with Cocoon1.7.3? .
> > Now after starting Tomcat and pointing to
> > http://localhost:8080/cocoon.xml i get 'Publishing engine could not be
> > initialized' error. The detail mentions java.lang.NullPointerException.
Found it! BTW, many or most of the text files (e.g. cocoon.properties)
are riddled with control-M DOS end of line characters. I spent some
hours
removing those without success. This sort of thing ruins PERL scripts,
for example, and both Sun and Lutris (Enhydra) have had to rebuild their
distributions for non-Windows systems.
But the actual solution was in an earlier email:
> Robin Green (greenrd@hotmail.com) wrote:
>
> This is probably the change to the method of cocoon.properties specifying
> introduced in 1.7.3. If WebLogic 5.1 implements the Servlet 2.1 API or
> higher, you need to specify the location of cocoon.properties as relative to
> your context root, not as an absolute path.
Indeed. So, in /jakarta-tomcat/webapps/cocoon/WEB-INF I have:
-rw-r--r-- 1 ray staff 12510 May 12 13:24 cocoon.properties
-rw-r--r-- 1 ray staff 853 May 12 14:01 web.xml
and web.xml has:
<init-param>
<param-name>properties</param-name>
<param-value>WEB-INF/cocoon.properties</param-value>
</init-param>
I just quickly ran through the samples. Great Stuff!
Ray Allis
Re: Cocoon
Posted by Jettro Coenradie <j....@quicknet.nl>.
Like for others, the problem might be the location of the cocoon.properties
file. If you poot it in th root of the web server i should be ok. Well for
me it worked.
greetings Jettro
----- Original Message -----
From: Ray Allis <ra...@bcstec.ca.boeing.com>
To: <ne...@LOT.TATASTEEL.COM>
Cc: <co...@xml.apache.org>
Sent: Friday, May 12, 2000 5:20 PM
Subject: Re: Cocoon
> Neeraj Singh wrote:
> >
> > Hi
> > Has anybody tried Tomcat3.1 with Cocoon1.7.3? .
> >
> > I did the following :
> >
> > 1. copied xalan,xerces,fop and cocoon jar files from the zipped download
to
> > c:\jakarta-tomcat\lib
> > ( note the cocoon.jar was not build but merely copied from the
unzipped
> > cocoon download)
> > 2. copied cocoon.properties file as is to c:\jakarta-tomcat\conf
> > 3. made changes in c:\jakarta-tomcat\conf\web.xml to include this
> > org.apache.cocoon.Cocoon servlet
> > 4. made changes in tomcat.bat to include the jar files in classpath
> >
> > Now after starting Tomcat and pointing to
> > http://localhost:8080/cocoon.xml i get 'Publishing engine could not be
> > initialized' error. The detail mentions java.lang.NullPointerException.
> > Any clues about this one? The beta chapter of JAVA and XML book by
o'reilly
> > does not suggest any changes nor does the installation note at
> > xml.apache.org.
> >
> > TIA
>
> I am having exactly the same experience on Solaris. Stuck there since
> yesterday. And now the Apache server refuses connection. ;)
>
> Ray Allis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>