cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pae Choi" <paec...@earthlink.net>
Subject Re: Cocoon 2 not starting
Date Fri, 06 Apr 2001 21:00:03 GMT
I *absolutely* agree with JP. There is got to be a better way to sync
the co-related Apache projects. If this can not be part of the short-term
solution, we will see the users posting same and or similar problem
again and again.

People who putting their efforts to creating "Solution" by utilizing the
"Reusability" does not necessarily protect the other people's efforts.
Hmm.. Reusability does not inherit.... What a waste!!!


Pae


-----Original Message-----
From: JP Moresmau <jp@dol.ie>
To: cocoon-users@xml.apache.org <cocoon-users@xml.apache.org>
Date: Friday, April 06, 2001 6:24 AM
Subject: Re: Cocoon 2 not starting


>Argh!! That problem was down to the fact that at some stage I switched to
>Xalan 2.0.1 and Cocoon seems to prefer 2.0.0...
>
>On a more general note, how do people generally respond to the "jar hell"
>(as opposed to Windows DLL Hell...) problem? I'm working on other projects
>outside of Cocoon, and every Java package using Xerces or Xalan, for
>example, comes with its own jar files, and they always come with different
>versions, and I end up spending loads of time trying to solve these
>seemingly random problems of class collision and such, changing the order
>of jars in the classpath, copying jars in each application directory, thus
>creating more duplicates and confusion...
>
>Cheers,
>
>JP
>
>At 16:57 05/04/2001 -0400, you wrote:
>>Berin Loritsch wrote:
>>>
>>> JP Moresmau wrote:
>>> >
>>> > Berin, the trace I put in my initial mail WAS the cocoon.log file.
Have I
>>> > turned off some warnings by mistake? Is there a flag somewhere. And
>yes, I
>>> > have checked the conf files and sitemap in a XML validator, so they
are
>>> > fine... One time everything was fine, the next second it all stopped
>>> > working... Ah well, I'll keep looking...
>>
>>I don't see any DEBUG messages--which is probably holding the true cause
of
>>your error.  Make sure your web.xml file has the Initial Parameter
>"log-level"
>>set to "DEBUG".  Granted, you may see thousands of messages so for
production
>>environments I suggest using "INFO" or higher.  "INFO" will give you a
whole
>>page processing time for each request, so "WARN" will keep the log clear
of
>>anything that won't be a problem.
>>
>>>
>>> Enough has changed with Cocoon 2 that you might have to clear your
>repository
>>> before continuing.  Also, Make sure you aren't using a Configuration
file
>>> that doesn't match the binary you have.  The Configuration file is
>approaching
>>> stability, so that won't require too much change in the near future.
There
>>> were two major changes to the way the ComponentManagement framework
handles
>>> itself today, and they consequently altered how the ComponentManager
>>> configuration works, or the classes that should be used.
>>>
>>> When you get a "Sitemap Handler not Available" error, there are almost
>always
>>> two sets of stack traces.  The one that tells you that the sitemap
>handler is
>>> not available, and the one before it.  The one that comes first is
>usually the
>>> most helpful.
>>>
>>> >
>>> > At 14:10 05/04/2001 -0400, you wrote:
>>> > >JP Moresmau wrote:
>>> > >>
>>> > >
>>> > >Keep in mind that Cocoon configuration files and sitemap are XML
files.
>>> > Typically,
>>> > >the error you are experiencing is usually due to malformed XML.
>Check the
>>> > log file
>>> > >in $CONTEXT/WEB-INF/logs/cocoon.log for additional clues.  You'd be
>>> > surprised at
>>> > >how helpful this file is.
>>> > >
>>> > >If Xerces or Xalan through an exception during the Java generation
>stage,
>>> > then
>>> > >you will see the stack trace there.
>>> > >
>>> > >> Hi, I was plahing with Cocoon 2 alpha 4 on IIS5 and Tomcat 3.2.1,
>>> > everything
>>> > >> was fine. I dunno if I changed anything silly, I tried to copy
the
>>> > >> configuration files over mine, but I'm still stuck: any cocoon
url
>return a
>>> > >> "sitemap's handler not available" error, and this is what the log
>starts
>>> > with:
>>> > >>
>>> > >> INFO    481     [cocoon  ] (Thread-23): Reloading from:
>>> > >> file:C:\java\jakarta-tomcat-3.2.1\webapps\cocoon\cocoon.xconf
>>> > >> ERROR   5768    [cocoon  ] (Thread-26): CocoonComponentSelector
Could
>>> > not find
>>> > >> component for hint 'org\apache\cocoon\www\sitemap_xmap'.
>>> > >> ERROR   13750   [cocoon  ] (Thread-26): CocoonComponentSelector
Could
>>> > not find
>>> > >> component for hint 'org\apache\cocoon\www\sitemap_xmap'.
>>> > >> ERROR   15943   [cocoon  ] (Thread-26): CocoonComponentSelector
Could
>>> > not find
>>> > >> component for hint 'org\apache\cocoon\www\sitemap_xmap'.
>>> > >> ERROR   16003   [cocoon  ] (Thread-26): Error compiling sitemap
>>> > >> org.apache.avalon.ComponentNotAccessibleException: Could not add
>>> > component for
>>> > >> class: org.apache.cocoon.www.sitemap_xmap
>>> > >>         at
>>> > >>
>>> >
>org.apache.cocoon.components.language.generator.GeneratorSelector.addGenera
t
>>> > >> or(GeneratorSelector.java:61)
>>> > >>         at
>>> > >>
>>> >
>org.apache.cocoon.components.language.generator.GeneratorSelector.select(Ge
n
>>> > >> eratorSelector.java:50)
>>> > >>         at
>>> > >>
>>> >
>org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.select
(
>>> > >> ProgramGeneratorImpl.java:263)
>>> > >>         at
>>> > >>
>>> >
>org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(P
r
>>> > >> ogramGeneratorImpl.java:219)
>>> > >>         at org.apache.cocoon.sitemap.Handler.run(Handler.java:173)
>>> > >>         at java.lang.Thread.run(Thread.java:484)
>>> > >>
>>> > >> In the wrok directory of Tomcat, the sitemap java file has only
the
>>> > includes
>>> > >> and the first three liens of code, obviously something causes the
>>> > sitemap not
>>> > >> to be generated properly. This is the generated code:
>>> > >>   static final String LOCATION =
"org.apache.cocoon.www.sitemap_xmap"
>>> > >>
>>> > >>   static {
>>> > >>     dateCreated = 986472326380L;
>>> > >>   }
>>> > >>
>>> > >>   /** An empty <code>Parameter</code> used to pass
to the sitemap
>>> > >> components */
>>> > >>   private Parameters emptyParam = new Parameters();
>>> > >>
>>> > >> Then the file ends!
>>> > >>
>>> > >> I have looked at the archive and couldn't find anything, I'm not
>familar
>>> > >> enough
>>> > >> with the architecture, can anybody point me in the right direction,
>even
>>> > just
>>> > >> the source files that create the sitemap??
>>> > >>
>>> > >> Thanks!!
>>> > >>
>>> > >> JP
>>> > >>
>>> >
>>> > JP Moresmau
>>> > http://frenchstud.io
>>> >
>>> > ---------------------------------------------------------------------
>>> > Please check that your question has not already been answered in the
>>> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>>> >
>>> > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
>>> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>>>
>>> ---------------------------------------------------------------------
>>> Please check that your question has not already been answered in the
>>> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>>>
>>> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
>>> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>>
>>---------------------------------------------------------------------
>>Please check that your question has not already been answered in the
>>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>>
>>To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
>>For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>>
>
>JP Moresmau
>http://frenchstud.io
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message