Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 335 invoked by uid 500); 11 Oct 2001 09:28:37 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 198 invoked from network); 11 Oct 2001 09:28:35 -0000 From: =?iso-8859-1?Q?S=F8ren_Neigaard?= To: Subject: SV: SV: Arrg - need somebody who knows the inside of Cocoon2 Date: Thu, 11 Oct 2001 11:31:06 -0700 Message-ID: <003901c15282$e4c16430$3d3910ac@mt39neigaard> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <20011010174307.04ae1553.sergio.carvalho@acm.org> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Ok I almost got it working now :) Now I only have some path problems. With the examples, what happens when I hit /cocoon ? I don't think I'm hitting a servlet directly, maybe some sort of XML file, I dont know, do you? What are the root dir. on a default Tomcat C2 setup? Is it /webapps/cocoon ? Well I'm still a little confused, I think that if only I knew how it all works together, I may be able to figure out how to set it all up on Enhydra :) -----Oprindelig meddelelse----- Fra: Sergio Carvalho [mailto:sergio.carvalho@acm.org] Sendt: 10. oktober 2001 09:43 Til: cocoon-users@xml.apache.org Emne: Re: SV: Arrg - need somebody who knows the inside of Cocoon2 On Wed, 10 Oct 2001 15:19:12 -0700, S�ren Neigaard wrote: From: S�ren Neigaard -- > Well yes... I can't get Enhydra to deploy the WAR at all, so I took the > structure from the WAR containing all the class files and config files, and > I use them instead. This works fine under Tomcat (tested it there to be sure > that wasn't my problem). > > I know it's a Web Application, but it's build up by servlets (if not, it's > really spooky), and I guessed that Cocoon uses some sort of controller > servlet. I just cant figure out how this servlet is referenced, it's not > from web.xml (I can't find it anyway). Well I'm just very confused right now > :( It's a servlet, referenced from the webapp's web.xml file, found under WEB-INF on the war package. You'll find a line like this: org.apache.cocoon.servlet.ParanoidCocoonServlet Tomcat automatically deploys .war files found on the webapp directory on startup. That's why you don't have to do anything else but drop the war file on the spot. I never used Enhydra, so I can't help you there. If it is able to extract .war archives, I'd try to go through that route, and find out why it isn't deploying Cocoon. Perhaps enhydra doesn't automatically deploy new .wars and needs to receive a direct command to do so. > > -----Oprindelig meddelelse----- > Fra: Karl �ie [mailto:karl@gan.no] > Sendt: 10. oktober 2001 05:56 > Til: cocoon-users@xml.apache.org > Emne: RE: Arrg - need somebody who knows the inside of Cocoon2 > > > you should not be required to edit any web.xml file to get cocoon2 running. > > simply stop enhydra(possibly you don't need to stop to deploy new war's , > i'm running JBoss and it reloads automaticly), copy the > dist/cocoon/cocoon.war file into your enhydra/webapps or enhydra/deploy or > something directory and start enhydra. > > cocoon2 is not a servlet, it is a Web Application, and should be deloyed as > a "cocoon.war" inside "deploy" or "webapps". cocoon has it's own web.xml > file inside this war file, so your web.xml file should be unchanged. > > > > -----Original Message----- > From: S�ren Neigaard [mailto:neigaard@mobilethink.dk] > Sent: 10. oktober 2001 23:24 > To: cocoon-users@xml.apache.org; karl@gan.no > Subject: SV: Arrg - need somebody who knows the inside of Cocoon2 > > > Didm't help :( But what about the fact I can't run a servlet named "cocoon" > but I can run a servlet named "Cocoon2"? Isn't that strange? Well actually I > find it more strange that I can run "cocoon" on my Tomcat setup, since it's > not in the web.xml file!? > > Could someone maybe explain me how Cocoon2 interacts with my servlet engine, > what servlets has to be initialized, what servlets has to be in web.xml, and > what servlet I'm ment to hit (controller servlet)? > > -----Oprindelig meddelelse----- > Fra: Karl �ie [mailto:karl@gan.no] > Sendt: 10. oktober 2001 04:54 > Til: cocoon-users@xml.apache.org > Emne: RE: Arrg - need somebody who knows the inside of Cocoon2 > > > you could try to put all the *.jar files in cocoon/WEB-INF/lib FIRST in the > system classpath so they are found before Enhydra's jar files. the most > frequent problem with cocoon and servlet containers is the DAMN jaxp > interface. > > the problem lies in that any jaxp compatible parser hijacks the jaxp > defenition for good, so if enhydra has a old xerces version or another jaxp > parser in it's classpath, cocoon will fail as it expects xerces to be your > jaxp parser. > > don't know if this helps, but try it > > mvh karl > > > > -----Original Message----- > From: S�ren Neigaard [mailto:neigaard@mobilethink.dk] > Sent: 10. oktober 2001 22:26 > To: cocoon-users@xml.apache.org > Subject: Arrg - need somebody who knows the inside of Cocoon2 > > > I'm trying to get C2 up and running on Enhydra. > > I don't know which jar's to include in classpath, please advice. > > If I try to hit "http://localhost/cocoon/servlet/cocoon" I get "Class not > found cocoon", but if I hit "http://localhost/cocoon/servlet/Cocoon2" I get > the exception shown later in this mail. I guess this means that I have > something up and running, but I'm missing something in classpath, or? I also > cant find a "cocoon" servlet mapping in my web.xml (I found Cocoon2 there), > shuldent there be one? > > What an I doing wrong? > > Heres the exception I get with the Cocoon2 servlet: > > java.lang.RuntimeException: No more DTM IDs are available > at > org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170) > at > org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH > andlerImpl.java:433) > at org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518) > at org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518) > at org.apache.xerces.parsers.SAXParser.endDocument(SAXParser.java:1230) > at > org.apache.xerces.validators.common.XMLValidator.callEndDocument(XMLValidato > r.java:1080) > at > org.apache.xerces.framework.XMLDocumentScanner$EndOfInputDispatcher.dispatch > (XMLDocumentScanner.java:1499) > at > org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. > java:381) > at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) > at > org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generat > eCode(LogicsheetCodeGenerator.java:130) > at > org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generate > Code(AbstractMarkupLanguage.java:291) > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat > eResource(ProgramGeneratorImpl.java:313) > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR > esource(ProgramGeneratorImpl.java:275) > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr > ogramGeneratorImpl.java:192) > at org.apache.cocoon.sitemap.Handler.run(Handler.java:208) > at java.lang.Thread.run(Unknown Source) > > > Med venlig hilsen/Best regards > S�ren Neigaard > ------------------------------- > Mobilethink A/S > Arosgaarden > �boulevarden 23, 5.sal > DK - 8000 �rhus C > Telefon: +45 86207800 > Direct: +45 86207810 > Fax: +45 86207801 > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: > > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: > > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: > -- Sergio Carvalho --------------- sergio.carvalho@acm.org If at first you don't succeed, skydiving is not for you --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: