> Hi Konstantin, > > Well, I took out Cocoon (after war deployment) and removed unnecessary > things, then used the remaining to create my own webapp (indeed created thru > JB6), into e:\myproject. I take care of checking that my web.xml is not > overwritten... > > I then choose web run. > > Maybe my sitemap is wrong ? in web.xml the welcome-file is index.html > although it does not exist, and my first pipelines are the following, this > should handle the URL correctly, shouldn't it ?
Didn't try to setup a welcome-file with Tomcat, but WebLogic does not process your request if you don't have a real file (index.html) in your directory It checks if a real resource exists then calls its handler, which can be a servlet. We overcome this by placing an empty index.html in the root directory. With Cocoon you don't need to setup a welcome-file in web.xml, using a default pipeline would be enough. See also my comments below: > > Besides, I even can't run examples that are defined in JB's Tomcat's > server.xml, they're not found !! Have to check this first, however Tomcat is > running. > > Thank you anyway, this helps. > > Babs > ------------------------------------------------------- > > <!-- home page redirect and session handling --> > <map:pipeline> > <map:match pattern=""> > <map:redirect-to uri="index" /> It's better to use internal redirects when possible. In this case: <map:redirect-to uri="cocoon:/index" /> Btw, did you try to run this application without JB? Never knew that nested actions are allowed. -- Konstantin > </map:match> > </map:pipeline> > <!-- authentication --> > <map:pipeline> > <map:match pattern="index*" session="true"> > <map:act type="form-validator"> > <map:parameter name="descriptor" > value="context://descriptors/authenticationformdesc.xml"/> > <!-- params ok --> > <map:act type="authenticationAction"> > <map:parameter name="validate" value="company, username, password"/> > <!-- no error msg, set session params, create new map, go to menu --> > <map:redirect-to uri="menu"/> <map:redirect-to uri="cocoon:/menu"/> > </map:act> > <!-- error, return empty map, go to error page --> > <map:redirect-to uri="error"/> <map:redirect-to uri="cocoon:/error"/> > </map:act> > <!-- missing params --> > <map:redirect-to uri="errorparam"/> <map:redirect-to uri="cocoon:/errorparam"/> > </map:match> > .............. > ----- Original Message ----- > From: Konstantin Piroumian <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, April 26, 2002 2:49 PM > Subject: Re: Cocoon2 with Tomcat 4.0.1 (in JBuilder 6 Enterprise) > > > > > > I suspect that you have created a WebApp element in JB6 and you are trying > > to start it from there. Look at the WEB-INF/web.xml and you'll notice that > > JB has replaced it with its own. This brings up the errors you get. > > > > Here is the sequence I use to run Cocoon from JB: > > - copy cocoon.war to <tomcat>/webapps > > - run Tomcat from <tomcat>/bin/startup.bar once, so it deploy the > > application > > - try that it works accessing the http://localhost:8080/cocoon/ > > - shutdown Tomcat > > > > Then in JB > > - clear the checkbox in Webapp properties telling to build the WAR > > - select a start page (say, /samples/i18n/simple.xml) > > - then choose Web Run from its context menu > > > > This way it works for me. > > > > -- > > Konstantin > > > > > > ____________________________________________________________________________ __ > ifrance.com, l'email gratuit le plus complet de l'Internet ! > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > http://www.ifrance.com/_reloc/email.emailif > > > > --------------------------------------------------------------------- > 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]>