cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krishna <krishna.shek...@in.spectranet.com>
Subject Re: FW: Configuring Cocoon with Apache and TomCat (blank page!)
Date Thu, 13 Jan 2000 18:52:22 GMT
Hi,

       thanks, I got it working!!!!!!!
       Now, how do I serve swf and simple html pages???????????

regards,
Krishna


  At 09:43 PM 12/16/2003 +0200, you wrote:

>maybe you have to put endorsed lib in tomcat endorsed lib directory
>
>-- stavros
>
>
>
>
>On Thu, 13 Jan 2000, Krishna wrote:
>
> > Hi,
> >
> >         Now I copied the whole domain's document root domain.net to
> > /var/tomcat4/webapps/cocoon and created a sitemap
> > in /var/tomcat4/webapps/cocoon/domain.net/sitemap.xmap
> >
> > I am testing with two test xml and xsl pages.
> > This is test.xml
> >
> > <?xml version="1.0"?>
> > <!-- Written by  GLOBE COMMUNICATIONs> -->
> > <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> > <xsl:template match="page">
> > <xsl:processing-instruction
> > name="cocoon-format">type="text/html"</xsl:processing-instruction>
> > Hello ! This is test page
> > </xsl:template>
> > </xsl:stylesheet>
> >
> > and this is test_h.xsl
> >
> > <?cocoon-process type="xsp"?>
> > <?xml-stylesheet href="test_h.xsl" type="text/xsl"?>
> > <?cocoon-process type="xslt"?>
> > <xsp:page language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core">
> >          <xsp:structure>
> >          </xsp:structure>
> > <page>
> >          <xsp:logic>
> >          </xsp:logic>
> > </page>
> > </xsp:page>
> >
> > I then edited /var/tomcat4/cocoon/domain.net/sitemap.xmap and under
> > pipeline section, added this:
> > <map:match pattern="test">
> >          <map:generate src="test.xml"/>
> >          <map:transform src="test_h.xsl">
> >          </map:transform>
> >          <map:serialize/>
> >        </map:match>
> >
> > Now when I load http://203.xxx.xxx.zzz:8180/cocoon/domain.net/test , I get
> > a blank page!!!
> > I copied the sitemap.xmap from
> > /var/tomcat4/webapps/cocoon/xsp/sitemap.xmap. This is my sitemap.xmap under
> > /var/tomcat4/cocoon/domain.net/
> >
> >
> > <?xml version="1.0"?>
> >
> > <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
> >
> > <!-- =========================== Views 
> =================================== -->
> >
> >    <map:views>
> >      <map:view name="content" from-label="content">
> >        <map:serialize type="xml"/>
> >      </map:view>
> >
> >      <map:view from-label="content" name="pretty-content">
> >        <map:transform src="context://stylesheets/system/xml2html.xslt"/>
> >        <map:serialize type="html"/>
> >      </map:view>
> >
> >      <map:view name="links" from-position="last">
> >        <map:serialize type="links"/>
> >      </map:view>
> >    </map:views>
> >
> > <!-- =========================== Pipelines
> > ================================= -->
> >
> >    <map:pipelines>
> >      <map:pipeline>
> >
> >        <map:match pattern="test">
> >          <map:generate src="test.xml"/>
> >          <map:transform src="test_h.xsl">
> >          </map:transform>
> >          <map:serialize/>
> >        </map:match>
> >
> >        <map:match pattern="java/*">
> >          <map:generate src="java/{1}.xsp" type="serverpages"/>
> >          <map:transform
> > src="context://samples/stylesheets/dynamic-page2html.xsl">
> >            <map:parameter name="servletPath" 
> value="{request:servletPath}"/>
> >            <map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
> >            <map:parameter name="contextPath" 
> value="{request:contextPath}"/>
> >            <map:parameter name="file" value="xsp/{1}.xsp"/>
> >            <map:parameter name="remove" value="{0}"/>
> >          </map:transform>
> >          <map:serialize/>
> >        </map:match>
> >
> >        <map:match pattern="js/*">
> >          <map:generate src="javascript/{1}.xsp" type="serverpages">
> >            <map:parameter name="programming-language" value="js"/>
> >          </map:generate>
> >          <map:transform
> > src="context://samples/stylesheets/dynamic-page2html.xsl">
> >            <map:parameter name="servletPath" 
> value="{request:servletPath}"/>
> >            <map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
> >            <map:parameter name="contextPath" 
> value="{request:contextPath}"/>
> >            <map:parameter name="file" value="xsp-js/{1}.xsp"/>
> >            <map:parameter name="remove" value="{0}"/>
> >          </map:transform>
> >          <map:serialize/>
> >        </map:match>
> >
> >        <map:match pattern="python/*">
> >          <map:generate src="python/{1}.xsp" type="serverpages">
> >            <map:parameter name="programming-language" value="python"/>
> >          </map:generate>
> >          <map:transform
> > src="context://samples/stylesheets/dynamic-page2html.xsl">
> >            <map:parameter name="servletPath" 
> value="{request:servletPath}"/>
> >            <map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
> >            <map:parameter name="contextPath" 
> value="{request:contextPath}"/>
> >            <map:parameter name="file" value="xsp-js/{1}.xsp"/>
> >            <map:parameter name="remove" value="{0}"/>
> >          </map:transform>
> >          <map:serialize/>
> >        </map:match>
> >
> >      </map:pipeline>
> >    </map:pipelines>
> > </map:sitemap>
> >
> > regards,
> > Krishna
> >
> > Krishna Shekhar, RHCE
> > Network/Systems Engineer
> > Spectranet
> > http://www.spectranet.com
> >
> >
> >
> >
> >
> > >this is my pipeline in cocoon's main sitemap that handle all
> > >/cocoon/domain.gr
> > >
> > >
> > >                 <map:pipeline>
> > >                         <map:match pattern="*.gr/**">
> > >                                 <map:mount check-reload="yes"
> > >src="file://c:/Server/xwww/{1}.gr/conf/sitemap.xmap" uri-prefix="{1}.gr"/>
> > >                         </map:match>
> > >                         <map:match pattern="*.gr">
> > >                                 <map:redirect-to uri="{1}.gr/"/>
> > >                         </map:match>
> > >                 </map:pipeline>
> > >
> > >so i can get any http://....:8080/cocoon/{domain}.gr/
> > >
> > >be carefull to put the last / (slash)
> > >
> > >
> > >this snip of code is in my local develop machine  (winXP) in the same way
> > >is configured my production linux server
> > >
> > >
> > >but first of all try to get diferent sites from your cocoon instalation
> > >:8080/cocoon/{domain}/ ....
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >if this works then go to setup apache virtual hosting
> > >
> > >
> > >-- stavros
> > >On Sun, 14 Dec 2003, Krishna wrote:
> > >
> > > > Hi,
> > > >
> > > >   Let me explain what I have,
> > > >   Tomcat is installed in /var/tomcat4/
> > > >   Cocoon is installed in /var/tomcat4/webapps/cocoon/
> > > >   and main cocoon sitemap is in 
> /var/tomcat4/webapps/cocoon/sitemap.xmap
> > > >
> > > >   I have now installed apache 2.0.48 and enabled all modules.
> > > >   It is in /usr/local/apache/
> > > >
> > > >   DocumentRoot for my website is in 
> /usr/local/apache/domain.net/htdocs/
> > > >
> > > >   I can access tomcat by doing.
> > > >   http://203.xxx.xxx.yyy:8180
> > > >   and cocoon by doing
> > > >   http://203.xxx.xxx.yyy:8180/cocoon
> > > >   They are all working!
> > > >   But I can't access http://203.122.59.60:8180/cocoon/domain.net !!!
> > > >
> > > > How do I configure this??
> > > >
> > > > Sitemap.xmap in entry /var/tomcat4/webapps/cocoon/sitemap.xmap under
> > > > pipelines for domain.net is
> > > >
> > > > <map:match pattern="*.net/**">
> > > >         <map:mount uri-prefix="{1}.net"
> > > > src="/usr/local/apache2/{1}.net/htdocs/sitemap.xmap" 
> check-reload="yes"/>
> > > >      </map:match>
> > > >
> > > > This is my virtualhost configuration in apache.
> > > > <VirtualHost 203.xxx.xxx.yyy:80>
> > > >
> > > > <Directory /usr/local/apache2/domain.net/htdocs>
> > > > Options -Indexes
> > > > order allow,deny
> > > > allow from all
> > > > </Directory>
> > > >
> > > >         ServerAdmin krishna@domain.net
> > > >         DocumentRoot /usr/local/apache2/domain.net/htdocs
> > > >         ServerName www.domain.net
> > > >         ServerAlias domain.net www.domain.net
> > > >         ErrorLog /usr/local/apache2/logs/error_log
> > > >         CustomLog /usr/local/apache2/logs/access_log combined
> > > >
> > > > <Location /WEB-INF>
> > > >     Order deny,allow
> > > >     Deny from all
> > > > </Location>
> > > >
> > > > #static content is served from apache
> > > > #ProxyPass /media/ !
> > > > #ProxyPass /stats/ !
> > > > #ProxyPass /images/ !
> > > > #ProxyPass /themes/images/ !
> > > >
> > > > #all the rest are passed to cocoon
> > > > ProxyPass / http://203.xxx.xxx.yyy:8180/cocoon/domain.net/
> > > > ProxyPassReverse / http://203.xxx.xxx.yyy:8180/cocoon/domain.net/
> > > >
> > > > ProxyErrorOverride On
> > > >
> > > > </VirtualHost>
> > > >
> > > > regards,
> > > > Krishna
> > > >
> > > > Krishna Shekhar, RHCE
> > > > Network/Systems Engineer
> > > > spectranet
> > > > http://www.spectranet.com
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: gounis@osmosis.gr [mailto:gounis@osmosis.gr]
> > > > Sent: Sunday, December 14, 2003 3:28 PM
> > > > To: users@cocoon.apache.org; krishna.shekhar@in.spectranet.com
> > > > Subject: Re: Configuring Cocoon with Apache and TomCat
> > > >
> > > >
> > > >
> > > > http://wiki.cocoondev.org/Wiki.jsp?page=VirtualHost
> > > >
> > > > this works for us
> > > >
> > > > check first if your webapp work asking content directly form tomcat
> > > >
> > > > http://......:8008/examples/test.xml (maybe)
> > > >
> > > > --stavros
> > > >
> > > > On Sat, 13 Dec 2003, Krishna wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > >         I have installed Tomcat (tomcat4-4.0.1-1) , Cocoon-2.1 and
> > > > > Apache_1.3.23. The installation of these packages went fine.
> > > > >         Tomcat configuration files are in /var/tomcat4, Cocoon in
> > > > > /var/tomcat4/webapps/cocoon/ and Apache in /usr/local/apache
> > > > >
> > > > >         This is my VirtualHost directive
> > > > >    <VirtualHost 203.xxx.xxx.yyy>
> > > > >     ServerAdmin info@domain.net
> > > > >     DocumentRoot /usr/local/apache/htdocs
> > > > >     ServerName www.domain.net
> > > > >     WebAppConnection conn warp localhost:8008
> > > > >     WebAppDeploy examples conn /examples/
> > > > >    </VirtualHost>
> > > > >
> > > > >    so, If I access http://203.xxx.xxx.yyy/examples/ , I can see the
> > >files
> > > > > placed under /var/tomcat4/webapps/examples and the servlets are
> > > > >    executing.
> > > > >    However when I made a test xml page it does not execute?
> > > > >
> > > > >    Any idea? how I should configure it so that everything works under
> > >the
> > > > > DocumentRoot /usr/local/apache/htdocs/ ....for both xml and jsp 
> pages!
> > > > >
> > > > >
> > > > > regards,
> > > > > Krishna
> > > > >
> > > > > Krishna Shekhar, RHCE
> > > > > Network/Systems Engineer
> > > > > Spectranet
> > > > > http://www.spectranet.com
> > > > >
> > > > >
> > > > >
> > > > > ---
> > > > > Outgoing mail is certified Virus Free.
> > > > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > > > Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003
> > > > >
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > > > > For additional commands, e-mail: users-help@cocoon.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > ---
> > > > Incoming mail is certified Virus Free.
> > > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > > Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003
> > > >
> > > > ---
> > > > Outgoing mail is certified Virus Free.
> > > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > > Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003
> > > >
> > > >
> > > >
> > >
> > >
> > >---
> > >Incoming mail is certified Virus Free.
> > >Checked by AVG anti-virus system (http://www.grisoft.com).
> > >Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003
> > >
> > >---
> > >Outgoing mail is certified Virus Free.
> > >Checked by AVG anti-virus system (http://www.grisoft.com).
> > >Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org


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


Mime
View raw message