RE: confusion with C2!

2002-02-09 Thread Luca Morandini

Vishal,

actually, you don't need to have your XML files under the cocoon directory.

For instance, I have my Cocoon directory under
c:\apps\tomcat\webapps\cocoon, but I have my XML fles under
d:\noria\noria.
The solution to this is just mounting a sub-sitemap under the main sitemap.

For instance, there is this fragment in my sitemap
(c:\apps\tomcat\webapps\cocoon\sitemap.xmap):

map:pipeline
map:match pattern=noria/**
map:mount uri-prefix=noria src=file:///d:/noria/noria/
check-reload=yes
reload-method=synchron/
/map:match
/map:pipeline

This tells Cocoon to process every URI with noria/something in it, to
the sub-sitemap located under d:/noria/noria, which will act as the new
root for XML files.

Best regards,

P.S.
On a personal note: while I think Vadim was a bit too harsh on you, I can't
help noticing that there is FAQ entry about this (named: How could I have
my Cocoon app in a directory other than
$TOMCAT_HOME/webapps/cocoon/my-app?).

Since I wrote that FAQ entry I'd like to know:
1) Did you read it ?
2) If yes, was it helpful to you ?
3) If not, how could it be rewritten in a more meaningful way ?

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Vishal Khatnani
 Sent: Saturday, February 09, 2002 8:38 AM
 To: [EMAIL PROTECTED]
 Subject: Re: confusion with C2!


 Vadim,

 Let me explain. I have worked with java servlets before, and used
 several servlet engines such as jakarta tomcat and iplanet in the past.
 The problem is not deploying these, but understanding specific
 configurations which aren't well documented IMHO. It's been very recent
 since I got into the XML technology (specifically with cocoon) so what
 im really asking for is better sharing of knowledge amongst us...

 Thanks for your help,
 Vishal



 Vadim Gritsenko wrote:
 
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  
   cocoon users,
  
   Im confused. I don't understand why my xml files have to be in the
  cocoon
   directory e.g. ...webapps/cocoon/proj/file.xml
 
  snip/
 
   Please help! I am desperate!
 
  Dear Vishal,
 
  As Sun employee you should teach everybody how to deploy web
  applications, were to put all the class files, etc. Now I see that you
  do not have even slightest understanding of how web applications are
  working. Before you ask other questions, please read specifications
  published on Sun's website:
 
  http://java.sun.com/products/servlet/download.html
 
  Also, consider installing and learning one of the servlet engines
  available out there. Tomcat is among others available for free under:
 
  http://jakarta.apache.org/tomcat/
 
  Regards,
  Vadim
 
  -
  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]

 --
 Vishal Khatnani  -- x74287
 Applications Support/Sys Admin
 Infrastructure Support Group (ESIT)
 Sun Microsystems, Inc.

 -
 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]




RE: confusion with C2!

2002-02-09 Thread Vadim Gritsenko

 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
On
 
 Vadim,
 
 Let me explain. I have worked with java servlets before, and used
 several servlet engines such as jakarta tomcat and iplanet in the
past.

Great, than you should know that if you deploy Cocoon as
C:/Tomcat/webapps/cocoon, then all files goes under this directory -
Cocoon nowadays is trying to behave as regular servlet as much as
possible. Then, to change /cocoon/ part in the URL or to change
directory - just edit server.xml of the Tomcat.

Note: you still can access files outside of Cocoon's context by
specifying absolute file URLs in the sitemap. Try
file://var/tmp/whatever - it should work as well.


 The problem is not deploying these, but understanding specific
 configurations which aren't well documented IMHO.

I totally agree with you here that Cocoon's documentation is not the
best one (to say at least).


 It's been very recent
 since I got into the XML technology (specifically with cocoon) so what
 im really asking for is better sharing of knowledge amongst us...

Use archives, thing is that most questions are already answered on this
list more than one time.

If you had a question, and found an answer in archive, and want to share
this knowledge - send in a patch to the documentation. It always
requires some improvement...

 
 Thanks for your help,
 Vishal

Regards,
Vadim


 
 Vadim Gritsenko wrote:
 
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  
   cocoon users,
  
   Im confused. I don't understand why my xml files have to be in the
  cocoon
   directory e.g. ...webapps/cocoon/proj/file.xml
 
  snip/
 
   Please help! I am desperate!
 
  Dear Vishal,
 
  As Sun employee you should teach everybody how to deploy web
  applications, were to put all the class files, etc. Now I see that
you
  do not have even slightest understanding of how web applications are
  working. Before you ask other questions, please read specifications
  published on Sun's website:
 
  http://java.sun.com/products/servlet/download.html
 
  Also, consider installing and learning one of the servlet engines
  available out there. Tomcat is among others available for free
under:
 
  http://jakarta.apache.org/tomcat/
 
  Regards,
  Vadim
 


-
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]




RE: confusion with C2!

2002-02-08 Thread Vadim Gritsenko

 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 
 cocoon users,
 
 Im confused. I don't understand why my xml files have to be in the
cocoon
 directory e.g. ...webapps/cocoon/proj/file.xml
 
snip/

 Please help! I am desperate!

Dear Vishal, 

As Sun employee you should teach everybody how to deploy web
applications, were to put all the class files, etc. Now I see that you
do not have even slightest understanding of how web applications are
working. Before you ask other questions, please read specifications
published on Sun's website:

http://java.sun.com/products/servlet/download.html

Also, consider installing and learning one of the servlet engines
available out there. Tomcat is among others available for free under:

http://jakarta.apache.org/tomcat/

Regards,
Vadim



-
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]




Re: confusion with C2!

2002-02-08 Thread Vishal Khatnani

Vadim,

Let me explain. I have worked with java servlets before, and used
several servlet engines such as jakarta tomcat and iplanet in the past.
The problem is not deploying these, but understanding specific
configurations which aren't well documented IMHO. It's been very recent
since I got into the XML technology (specifically with cocoon) so what
im really asking for is better sharing of knowledge amongst us... 

Thanks for your help,
Vishal



Vadim Gritsenko wrote:
 
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 
  cocoon users,
 
  Im confused. I don't understand why my xml files have to be in the
 cocoon
  directory e.g. ...webapps/cocoon/proj/file.xml
 
 snip/
 
  Please help! I am desperate!
 
 Dear Vishal,
 
 As Sun employee you should teach everybody how to deploy web
 applications, were to put all the class files, etc. Now I see that you
 do not have even slightest understanding of how web applications are
 working. Before you ask other questions, please read specifications
 published on Sun's website:
 
 http://java.sun.com/products/servlet/download.html
 
 Also, consider installing and learning one of the servlet engines
 available out there. Tomcat is among others available for free under:
 
 http://jakarta.apache.org/tomcat/
 
 Regards,
 Vadim
 
 -
 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]

-- 
Vishal Khatnani  -- x74287
Applications Support/Sys Admin
Infrastructure Support Group (ESIT)
Sun Microsystems, Inc.

-
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]




RE: confusion with C2!

2002-02-08 Thread Tim Kyle

Vadim-

It's a pity that we can't help people today, isn't it? My
understanding is that Sun is a big company, with many different
jobs.

Just my 2 cents ...

Tim


-
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]