> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Hi all > > I am new to cocoon and have a small problem with it. I am using redhat linux > 7.2 and have apache 1.3.22, cocoon 2.0.2, tomcat 3.3.1 and am using mod_jk to > connect apache and tomcat. > My cocoon setup is done as instructed on the cocoon homepage (ie put .war file > in webapps dir and start tomcat) The web app is deployed with no errors and i > can access http://localhost:8080/cocoon and all the examples etc work > like a > charm. > My problem is that i want to be able to serv pages for various virtual hosts > outside of the cocoon directory structure. So far i have gathered that i have > to make a apps-vhosts.xml file in the tomcat conf dir. The file looks like > this > > <?xml version="1.0" encoding="ISO-8859-1"?> > <Server> > <Host name="www.iquip.com.au"> > <Context path="" docBase="/home/www/internal/iquip" > debug="0"/>
AFAIU, you forgot to deploy Cocoon web-application. Of course it won't work. But, if you plan to have lots of hosts, I don't recommend this approach - you will end up with lots of Cocoon instances. Why not use just one instance? Vadim > </Host> > </Server> > > The corrosponding apache vhost entry and the config for mod_jk looks like > this: > > JkWorkersFile /usr/local/tomcat/conf/workers.properties > JkLogFile logs/jk.log > JkLogLevel info > JkMount /*.jsp ajp13 > JkMount /servlet/* ajp13 > > <VirtualHost 202.6.141.243:80> > ServerAdmin [EMAIL PROTECTED] > DocumentRoot /home/www/internal/iquip > ServerName www.iquip.com.au > ServerAlias iquip.com.au > ErrorLog /var/log/httpd/www.iquip.com.au.error_log > CustomLog /var/log/httpd/www.iquip.com.au.access_log combined > JkMount /*xml ajp13 > JkMount /servlet/* ajp13 > <Directory /home/www/internal/iquip/WEB-INF> > Options None > Deny from all > </Directory> > </VirtualHost> > > When tomcat starts the output looks like this: > > 2002-06-06 19:27:18 - ServerXmlReader: Config=$TOMCAT_HOME/conf/server.xml > 2002-06-06 19:27:18 - PathSetter: home=/usr/local/tomcat > 2002-06-06 19:27:18 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps- > 127.0.0.1.xml > 2002-06-06 19:27:18 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps- > admin.xml > 2002-06-06 19:27:18 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps- > examples.xml > 2002-06-06 19:27:18 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps- > vhosts.xml > 2002-06-06 19:27:18 - AutoWebApp: Loaded from config: DEFAULT:/admin > 2002-06-06 19:27:18 - AutoWebApp: Auto-Adding DEFAULT:/ > 2002-06-06 19:27:18 - AutoWebApp: Loaded from config: DEFAULT:/examples > 2002-06-06 19:27:18 - AutoWebApp: Auto-Adding DEFAULT:/cocoon > 2002-06-06 19:27:18 - ContextManager: Tomcat configured and in stable state > 2002-06-06 19:27:18 - WorkDirSetup: Creating work > dir /usr/local/tomcat/work/DEFAULT/admin > 2002-06-06 19:27:18 - ContextManager: Adding DEFAULT:/admin > 2002-06-06 19:27:18 - WorkDirSetup: Creating work > dir /usr/local/tomcat/work/DEFAULT/examples > 2002-06-06 19:27:18 - ContextManager: Adding DEFAULT:/examples > 2002-06-06 19:27:18 - WorkDirSetup: Creating work > dir /usr/local/tomcat/work/www.iquip.com.au/ROOT > 2002-06-06 19:27:18 - ContextManager: Adding www.iquip.com.au:/ROOT > 2002-06-06 19:27:18 - WorkDirSetup: Creating work > dir /usr/local/tomcat/work/DEFAULT/ROOT > 2002-06-06 19:27:18 - ContextManager: Adding DEFAULT:/ROOT > 2002-06-06 19:27:18 - WorkDirSetup: Creating work > dir /usr/local/tomcat/work/DEFAULT/cocoon > 2002-06-06 19:27:18 - ContextManager: Adding DEFAULT:/cocoon > 2002-06-06 19:27:18 - Ctx(/admin) : Validating web.xml > XmlMapper: systemId is 'null' > XmlMapper: systemId is 'null' > 2002-06-06 19:27:19 - Ctx() : Validating web.xml > XmlMapper: systemId is 'null' > 2002-06-06 19:27:19 - Ctx() : Validating web.xml > XmlMapper: systemId is 'null' > 2002-06-06 19:27:19 - Ctx(/cocoon) : Validating web.xml > XmlMapper: systemId is 'null' > EmbededTomcat: Init time 5980 > 2002-06-06 19:27:23 - Http10Interceptor: Starting on 8080 > 2002-06-06 19:27:23 - Ajp12Interceptor: Starting on 8007 > 2002-06-06 19:27:23 - Ajp13Interceptor: Starting on 8009 > EmbededTomcat: Startup time 59 > Server 1.6 is running > Press [Ctrl]+[C] to abort > > Apache starts with no problems > > However this does not work if i goto http://www.iquip.com.au i get a 404 not > found on index.xml from tomcat ( the console running tomcat shows the error) > > Are there any other files that need altered before this setup will work??? If > so what are they and what do i have to put in them. > > Any help will be greatly appreciated, thanks in advance > > Will <[EMAIL PROTECTED]> > > > ---------------------------------------------------- > This message sent through E-Access Internet Webmail > --> http://www.e-access.com.au > > A Subsidiary of E-Consortium Pty Ltd > ----------------------------------------------------- > > --------------------------------------------------------------------- > 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]>