You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rong <ry...@cs.umbc.edu> on 2000/03/14 03:31:10 UTC

RE:Cocoon problems

Hi, 

I have the same problem with Tomcat3.1M1 + Cocoon1.7 + Linux2.2. The error
is like following when i browse /localhost/Cocoon.xml:

--------------
Publishing Engine could not be initialized

java.lang.RuntimeException: Error creating
org.apache.cocoon.processor.ldap.LdapProcessor: make sure the needed
classes can be found in the classpath (javax/naming/directory/DirContext) 
		at org.apache.cocoon.framework.Manager.create(Manager.java:102) 
                at org.apache.cocoon.framework.Router.init(Router.java:80) 
                at org.apache.cocoon.framework.Manager.create(Manager.java:89) 
                at org.apache.cocoon.Engine.(Engine.java:155) 
                at org.apache.cocoon.Engine.getInstance(Engine.java:190) 
                at org.apache.cocoon.Cocoon.init(Cocoon.java:119) 
                at org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:293) 
                at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:273) 
                at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:363) 
                at org.apache.tomcat.core.ContextManager.service(ContextManager.java:523) 
                at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:146) 
                at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:334) 
                at java.lang.Thread.run(Thread.java:475)

--------------

I follow the instruction at cocoon web page(for 3.0 version). Basically i
copy all *.jar file to ~/tomcat3.1m1/lib/, edit web.xml as required. But i
didn't change tomcat.sh. 

Please help. Thanks.

Rong


On Fri, 10 Mar 2000, Omar VEGA wrote:

> I've already installed 
> 
> Red Hat 6.1
> JVM 1.1.8 Blackdown
> Apache 1.3.9
> Tomcat 3.1M1
> Cocoon 1.7
> 
> and it works fine.
> 
> What error do you get ?  
> 
> 
> 
> -----Original Message-----
> From: Warren Mira [mailto:wowx@wowx.penguinpowered.com] 
> Sent: Friday, March 10, 2000 1:18 AM
> To: tomcat-dev@jakarta.apache.org 
> Subject: Cocoon
> 
> 
> Hi,
> 
> 
> Anyone manage to successfully installed cocoon + tomcat. I have followed
> the instructions on the cocoon site for Tomcat+Cocoon but still no luck.
> It seems that the xml files is not passed to cocoon for processing. Im
> using cocoon 1.7 and Tomcat 3.1 beta.
> 
> Thanks for any help.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org 
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org 
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 
> 


Re: Cocoon problems

Posted by Darryl Stoflet <ds...@calweb.com>.
Rong,

	I had the same problem with cocoon 1.7 when I built from
source. It seem the sources dont have the processor.ldap package.
I got the latest cocoon binaries and placed the cocoon jars under
tomcat/lib and it worked fine. cocoon.jar for v1.7 should be ~165k

/Darryl

rong wrote:
> 
> Hi,
> 
> I have the same problem with Tomcat3.1M1 + Cocoon1.7 + Linux2.2. The error
> is like following when i browse /localhost/Cocoon.xml:
> 
> --------------
> Publishing Engine could not be initialized
> 
> java.lang.RuntimeException: Error creating
> org.apache.cocoon.processor.ldap.LdapProcessor: make sure the needed
> classes can be found in the classpath (javax/naming/directory/DirContext)
>                 at org.apache.cocoon.framework.Manager.create(Manager.java:102)
>                 at org.apache.cocoon.framework.Router.init(Router.java:80)
>                 at org.apache.cocoon.framework.Manager.create(Manager.java:89)
>                 at org.apache.cocoon.Engine.(Engine.java:155)
>                 at org.apache.cocoon.Engine.getInstance(Engine.java:190)
>                 at org.apache.cocoon.Cocoon.init(Cocoon.java:119)
>                 at org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:293)
>                 at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:273)
>                 at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:363)
>                 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:523)
>                 at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:146)
>                 at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:334)
>                 at java.lang.Thread.run(Thread.java:475)
> 
> --------------
> 
> I follow the instruction at cocoon web page(for 3.0 version). Basically i
> copy all *.jar file to ~/tomcat3.1m1/lib/, edit web.xml as required. But i
> didn't change tomcat.sh.
> 
> Please help. Thanks.
> 
> Rong
> 
> On Fri, 10 Mar 2000, Omar VEGA wrote:
> 
> > I've already installed
> >
> > Red Hat 6.1
> > JVM 1.1.8 Blackdown
> > Apache 1.3.9
> > Tomcat 3.1M1
> > Cocoon 1.7
> >
> > and it works fine.
> >
> > What error do you get ?
> >
> >
> >
> > -----Original Message-----
> > From: Warren Mira [mailto:wowx@wowx.penguinpowered.com]
> > Sent: Friday, March 10, 2000 1:18 AM
> > To: tomcat-dev@jakarta.apache.org
> > Subject: Cocoon
> >
> >
> > Hi,
> >
> >
> > Anyone manage to successfully installed cocoon + tomcat. I have followed
> > the instructions on the cocoon site for Tomcat+Cocoon but still no luck.
> > It seems that the xml files is not passed to cocoon for processing. Im
> > using cocoon 1.7 and Tomcat 3.1 beta.
> >
> > Thanks for any help.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org

-- 
Darryl Stoflet

Re: Cocoon problems

Posted by Darryl Stoflet <ds...@calweb.com>.
Rong,

There are really 3 different solutions to your problem:

1)Download the latest cocoon 1.7 binaries. This has the
  processor.ldap package
-or-
2)Comment out the ldapprocessor line in the cocoon.properties file
-or-
3)Or build cocoon from source and have the javax.naming.Name class in
  your classpath, otherwise cocoons build.xml will not generate
  the processor.ldap package. 

This topic should probably be taken to the cocoon users
mailing list as it is not a tomcat issue.

/Darryl

James & Sue Ann Birchfield wrote:
> 
> Comment out the ldapprocessor line in the cocoon.properties file.
> 
> =====================================
> James Birchfield
> Chief Technology Officer
> jmbirchfield@proteus-technologies.com
> http://www.proteus-technologies.com
> =====================================
> 
> -----Original Message-----
> From: rong [mailto:ryu@cs.umbc.edu]
> Sent: Monday, March 13, 2000 9:31 PM
> To: Omar VEGA
> Cc: tomcat-dev@jakarta.apache.org
> Subject: RE:Cocoon problems
> 
> Hi,
> 
> I have the same problem with Tomcat3.1M1 + Cocoon1.7 + Linux2.2. The error
> is like following when i browse /localhost/Cocoon.xml:
> 
> --------------
> Publishing Engine could not be initialized
> 
> java.lang.RuntimeException: Error creating
> org.apache.cocoon.processor.ldap.LdapProcessor: make sure the needed
> classes can be found in the classpath (javax/naming/directory/DirContext)
>                 at org.apache.cocoon.framework.Manager.create(Manager.java:102)
>                 at org.apache.cocoon.framework.Router.init(Router.java:80)
>                 at
> org.apache.cocoon.framework.Manager.create(Manager.java:89)
>                 at org.apache.cocoon.Engine.(Engine.java:155)
>                 at org.apache.cocoon.Engine.getInstance(Engine.java:190)
>                 at org.apache.cocoon.Cocoon.init(Cocoon.java:119)
>                 at
> org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:293)
>                 at
> org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:273)
>                 at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:363)
>                 at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:523)
>                 at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:146)
>                 at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:334
> )
>                 at java.lang.Thread.run(Thread.java:475)
> 
> --------------
> 
> I follow the instruction at cocoon web page(for 3.0 version). Basically i
> copy all *.jar file to ~/tomcat3.1m1/lib/, edit web.xml as required. But i
> didn't change tomcat.sh.
> 
> Please help. Thanks.
> 
> Rong
> 
> On Fri, 10 Mar 2000, Omar VEGA wrote:
> 
> > I've already installed
> >
> > Red Hat 6.1
> > JVM 1.1.8 Blackdown
> > Apache 1.3.9
> > Tomcat 3.1M1
> > Cocoon 1.7
> >
> > and it works fine.
> >
> > What error do you get ?
> >
> >
> >
> > -----Original Message-----
> > From: Warren Mira [mailto:wowx@wowx.penguinpowered.com]
> > Sent: Friday, March 10, 2000 1:18 AM
> > To: tomcat-dev@jakarta.apache.org
> > Subject: Cocoon
> >
> >
> > Hi,
> >
> >
> > Anyone manage to successfully installed cocoon + tomcat. I have followed
> > the instructions on the cocoon site for Tomcat+Cocoon but still no luck.
> > It seems that the xml files is not passed to cocoon for processing. Im
> > using cocoon 1.7 and Tomcat 3.1 beta.
> >
> > Thanks for any help.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org

-- 
Darryl Stoflet
http://dstoflet.calweb.com

RE: Cocoon problems

Posted by James & Sue Ann Birchfield <js...@home.com>.
Comment out the ldapprocessor line in the cocoon.properties file.

=====================================
James Birchfield
Chief Technology Officer
jmbirchfield@proteus-technologies.com
http://www.proteus-technologies.com
=====================================

-----Original Message-----
From: rong [mailto:ryu@cs.umbc.edu]
Sent: Monday, March 13, 2000 9:31 PM
To: Omar VEGA
Cc: tomcat-dev@jakarta.apache.org
Subject: RE:Cocoon problems



Hi,

I have the same problem with Tomcat3.1M1 + Cocoon1.7 + Linux2.2. The error
is like following when i browse /localhost/Cocoon.xml:

--------------
Publishing Engine could not be initialized

java.lang.RuntimeException: Error creating
org.apache.cocoon.processor.ldap.LdapProcessor: make sure the needed
classes can be found in the classpath (javax/naming/directory/DirContext)
		at org.apache.cocoon.framework.Manager.create(Manager.java:102)
                at org.apache.cocoon.framework.Router.init(Router.java:80)
                at
org.apache.cocoon.framework.Manager.create(Manager.java:89)
                at org.apache.cocoon.Engine.(Engine.java:155)
                at org.apache.cocoon.Engine.getInstance(Engine.java:190)
                at org.apache.cocoon.Cocoon.init(Cocoon.java:119)
                at
org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:293)
                at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:273)
                at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:363)
                at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:523)
                at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:146)
                at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:334
)
                at java.lang.Thread.run(Thread.java:475)

--------------

I follow the instruction at cocoon web page(for 3.0 version). Basically i
copy all *.jar file to ~/tomcat3.1m1/lib/, edit web.xml as required. But i
didn't change tomcat.sh.

Please help. Thanks.

Rong


On Fri, 10 Mar 2000, Omar VEGA wrote:

> I've already installed
>
> Red Hat 6.1
> JVM 1.1.8 Blackdown
> Apache 1.3.9
> Tomcat 3.1M1
> Cocoon 1.7
>
> and it works fine.
>
> What error do you get ?
>
>
>
> -----Original Message-----
> From: Warren Mira [mailto:wowx@wowx.penguinpowered.com]
> Sent: Friday, March 10, 2000 1:18 AM
> To: tomcat-dev@jakarta.apache.org
> Subject: Cocoon
>
>
> Hi,
>
>
> Anyone manage to successfully installed cocoon + tomcat. I have followed
> the instructions on the cocoon site for Tomcat+Cocoon but still no luck.
> It seems that the xml files is not passed to cocoon for processing. Im
> using cocoon 1.7 and Tomcat 3.1 beta.
>
> Thanks for any help.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org