Re: How can I know why I have no sitemap_xmap.java file ?

2003-02-20 Thread Chris Wilkes
> On Thu, Feb 20, 2003 at 03:07:24PM +0100, MAHE Vincent FTRD/DIH/REN
> wrote:
> > I try to have my Cocoon webapp working under tomcat 4.0.6 and Redhat 7.2
> >  
> > I'm using cocoon 2.0.2 and there's no way I can run my webapp (which
> > is running fine with tomcat 4.0.1)
> >  
> > The problem is that I have no log at all explaining why I can't see
> > my pages.
> >  
> > The fact is that I have no java file generated in the
> > "$CATALINA_HOME/work" directory, which is quite strange.
> 
> Check Tomcat's server.xml file.  You should have something like this in
> there, note the underlining:
>   unpackWARs="true" autoDeploy="true">
>^^^
> which means that when you place the cocoon.war file under
> $CATALINA_HOME/webapps it will automatically deploy.  You should see a
> cocoon/ directory made with the files in there.  Go to your tomcat
> server's /cocoon URL and you should see the welcome page.

On Thu, Feb 20, 2003 at 06:28:23PM +0100, MAHE Vincent FTRD/DIH/REN wrote:
> 
> I already have this config and it doesn't change any thing. 
> The problem is not that it doesn't deploy my .war file but that it
> doesn't generate the .java file corresponding to my sitemap.xmap file.
> 
> Vincent

Odd.  Mine is right under
  $CATALINA_HOME/work/Standalone/localhost/
cocoon/cocoon-files/org/apache/cocoon/www/
Can you create that directory structure for it?  There isn't anything in
the $CATALINA_HOME/logs directory?

Chris

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: How can I know why I have no sitemap_xmap.java file ?

2003-02-20 Thread Chris Wilkes
On Thu, Feb 20, 2003 at 03:07:24PM +0100, MAHE Vincent FTRD/DIH/REN wrote:
> I try to have my Cocoon webapp working under tomcat 4.0.6 and Redhat 7.2
>  
> I'm using cocoon 2.0.2 and there's no way I can run my webapp (which
> is running fine with tomcat 4.0.1)
>  
> The problem is that I have no log at all explaining why I can't see my pages.
>  
> The fact is that I have no java file generated in the
> "$CATALINA_HOME/work" directory, which is quite strange.

Check Tomcat's server.xml file.  You should have something like this in
there, note the underlining:
  
   ^^^
which means that when you place the cocoon.war file under
$CATALINA_HOME/webapps it will automatically deploy.  You should see a
cocoon/ directory made with the files in there.  Go to your tomcat
server's /cocoon URL and you should see the welcome page.

Chris

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Chris Wilkes
Fixing the top posting a little bit...

> >Here's what I did, its just for the images but you could extend it to
> >anything:
> >
> >Create a new website called "images.examples.com" in your
> >httpd.conf file.  Here's some snippets of my Apache2 one:
> > 
> > ServerName  www.example.com
> > # this all goes to cocoon, but need a docroot anyway
> > DocumentRoot /usr/local/www/data/example
> > # send all these requests to the coyote connector
> > JkMount /* cocoon
> >   
> >   
> > ServerName  images.example.com
> > DocumentRoot /usr/local/www/data/example
> >   
> >So now when a request comes in you'll have Apache handle it differently
> >for "www" vs "images"
> >
> >Its not that elegant to have references to
> >"http://static.example.com/path/to/myhelp.html"; but hey, it gets the job
> >done.  You can tell cocoon to throw in the "static" a href for you so it
> >wouldn't be that much work.
On Thu, Feb 13, 2003 at 06:46:52PM +0100, SAXESS - Hussayn Dabbous wrote:
> Hy,
> 
> Your last comment sounds very promising.
> How could i let cocoon throw in the "static" refs ???
> Wouldn't that mean i need cocoon to find the hrefs and
> do some replacement stuff there. Or how would i do that?
> any pointers to howto, docs or so ?

My needs were pretty simple where I wanted to have some standard images
on a page so I included it in the XSLT to make the webpage.  Not sure if
that's the correct way of doing it, in fact I'm a little concerned that I
might be using XSLTs in a way that they shouldn't be used:

  
 Horizontal guides 
http://images.example.com/blue.gif";

http://images.example.com/white.gif";>
  

You might be able to workup some sort of "http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Chris Wilkes
On Thu, Feb 13, 2003 at 06:14:22PM +0100, SAXESS - Hussayn Dabbous wrote:
> 
> Here is the problem:
> 
> 1.) I want all static files been served by apache, i.e.:
> 
> *.gif, *.html, *.jpg
> 
> 2.) I want *ALL* other files be served by cocoon.

I ran into the same thing and from what I could find out is that you
really want a "!" operator on the JkMount directive.

> Now how should i setup mod_jk.conf 
...
> The list could potentially go down endlessly.
> There MUST be an obvious solution to this!

Here's what I did, its just for the images but you could extend it to
anything:

Create a new website called "images.examples.com" in your
httpd.conf file.  Here's some snippets of my Apache2 one:

 ServerName  www.example.com
 # this all goes to cocoon, but need a docroot anyway
 DocumentRoot /usr/local/www/data/example
 # send all these requests to the coyote connector
 JkMount /* cocoon
   
   
 ServerName  images.example.com
 DocumentRoot /usr/local/www/data/example
   
So now when a request comes in you'll have Apache handle it differently
for "www" vs "images"

Its not that elegant to have references to
"http://static.example.com/path/to/myhelp.html"; but hey, it gets the job
done.  You can tell cocoon to throw in the "static" a href for you so it
wouldn't be that much work.

Chris

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>