I try this but got an error :
type: internal-servlet-error
message: Internal servlet error
description: Cocoon was not initialized.
sender: org.apache.cocoon.servlet.CocoonServlet
source: Cocoon servlet
request-uri: /myapp/
embedded exception: org.xml.sax.SAXNotSupportedException: Property:
http://xml.org/sax/properties/lexical-handler
embedded exception stacktrace: org.xml.sax.SAXNotSupportedException:
Property: http://xml.org/sax/properties/lexical-handler
at
org.apache.crimson.parser.XMLReaderImpl.setProperty(XMLReaderImpl.java:248)
at org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:67)
at org.apache.cocoon.Cocoon.configure(Cocoon.java:216)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:160)
at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:634)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:164)
at org.apache.tomcat.facade.ServletHandler.doInit(ServletHandler.java:410)
at org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:265)
at
org.apache.tomcat.facade.LoadOnStartupInterceptor.contextInit(LoadOnStartupI
nterceptor.java:136)
at org.apache.tomcat.core.Context.init(Context.java:501)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:573)
at
org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTomcat.jav
a:310)
at org.apache.tomcat.startup.Tomcat.startTomcat(Tomcat.java:176)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:120)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87
)
at org.apache.tomcat.startup.Main.execute(Main.java:304)
at org.apache.tomcat.startup.Main.main(Main.java:191)
-----Message d'origine-----
De : Per Kreipke [mailto:[EMAIL PROTECTED]]
Envoye : vendredi 24 aout 2001 18:10
A : [EMAIL PROTECTED]
Objet : RE: [C2] Webapp directory for development...
I hate to do this, but I'm still confused. Can anyone help?
7/25/01:
Berin,
> > Should I simply extract the C2 WAR into a new directory, let Tomcat know
> > about it and work there until the app is done, then build it
> into a new WAR
> > and deploy it?
>
>
> This is the prefered development method. WAR files are for deployment.
Thanks! That makes sense to me. Follow up questions, if I may.
1. I could start with the entire contents of the WAR. But I'm wondering if
the minimum set is:
- sitemap.xmap (and only the necessary portions of it)
- cocoon.xconf (leave as is)
- WEB-INF/web.xml (no changes)
- WEB-INF/lib (leave as is or modify according do documentation on required
libs)
- WEB-INF/db (drop if HSQL isn't needed)
I don't see that anything else is needed to start a new Cocoon based webapp.
It might be nice to have an Ant build target that builds a new directory
(similar to the WAR target) but simpler.
2. Can I create two webapp directories off of one copy of the Cocoon2
servlet? Related question: if I have two copies of all the JARs in the
WEB-INF/lib directory, are separate instances of each used (and is that a
waste of memory)?
Thanks, Per.
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>