Is there a sitemap DTD?

2004-02-18 Thread Jim Bloggs
Greetings Cocoon Users!

Where can I find the sitemap DTD for cocoon 2.1.3, please. I have been
looking everywhere for it, including google. I could have sworn I saw it
somewhere in passing, but now I can't find it again. Is there such a
thing?

I would be most grateful for any assistance.

Many thanks.

Jim

-- 
http://www.fastmail.fm - Consolidate POP email and Hotmail in one place

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



RE: Can anyone explain this

2004-02-18 Thread Jim Bloggs
Hi Rob,

Many thanks for your reply.

I have since discovered through experimentation that if I move all the
relevant stuff into a subsitemap in the jobcentre directory the problem
goes away. The matcher simply matches on pattern= without problems.

Don't know what was causing the problem, but I may go back and experiment
some more with what you suggested if I get a chance, and I'll let you
know. In the meantime, I'm going with the subsitemap alternative as it is
clearly preferable in general. I only recently discovered subsitemaps.

I _do_ appreciate your taking the trouble to reply and, once again, I'm
sorry for not getting back sooner.

best, Jim


On Wed, 18 Feb 2004 19:20:51 -, Rob Gregory [EMAIL PROTECTED]
said:
 
 Hi Jim
 
 Try changing the sitemap to something like:-
 
   map:match pattern=jobcentre**
map:read src=context://minimal/index.htm
 mime-type=text/html/
   /map:match
 
 OR
 
   map:match pattern=jobcentre/*
map:read src=context://minimal/index.htm
 mime-type=text/html/
   /map:match
 
 And let me know the results...
 
 Rob
 

-- 
http://www.fastmail.fm - Faster than the air-speed velocity of an
  unladen european swallow

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



RE: Can anyone explain this

2004-02-17 Thread Jim Bloggs
  //Post 
  My setup is Windows/Tomcat5.0.18/Cocoon2.1.3 and some really weird
  things
  are happening but I'm new to cocoon so maybe I'm missing something
  really
  obvious.
  
map:match pattern=jobcentre/
 map:read src=minimal/index.htm mime-type=text/html/
/map:match
  
  Whenever I have a matcher like the above, right at the start of my
  pipeline, on cocoon 2.1.3, I am finding that I get a resource not found
  error whenever I hit on http://localhost:8080/cocoon/jobcentre/
  
  However, the really weird thing is that if I go into the jobcentre
  directory under cocoon (there is one and that's what seems to be causing
  the problem) and delete index.htm then the problem disappears. Let me
  emphasize I don't change the sitemap, I simply delete a file which is in
  a directory that cocoon ought not even to be accessing at this point,
  and
  all is well.
  
  Can anyone explain this?

On Sun, 15 Feb 2004 00:13:48 -, Rob Gregory [EMAIL PROTECTED]
said:
 Are you getting the resource not found error from Cocoon or from your
 sevlet container? Sounds like the request is not getting as far as
 cocoon...
 

Hi,
Thanks for the speedy reply. Sorry it took me so long to get back.

The error message is definitely coming from cocoon. In addition, it says,

   org.apache.excalibur.source.SourceNotFoundException:
   file:/C:/jakarta-tomcat-5.0.18/webapps/cocoon/jobcentre/index.htm.xml
   doesn't exist

It seems to be falling through to a lower matcher which adds '.xml' to a
wildcard, but why would it be looking for 'index.htm' in the first place
when I am requesting 'http://localhost:8080/cocoon/jobcentre/'

I have tried issuing the request in both IE 5.0 and a recent Mozilla. No
difference.

I would be most grateful for any further assistance.

Many thanks.

best, Jim


-- 
http://www.fastmail.fm - Same, same, but differentÂ…

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



Can anyone explain this

2004-02-14 Thread Jim Bloggs
Greetings Cocooner!

My setup is Windows/Tomcat5.0.18/Cocoon2.1.3 and some really weird things
are happening but I'm new to cocoon so maybe I'm missing something really
obvious.

  map:match pattern=jobcentre/
   map:read src=minimal/index.htm mime-type=text/html/
  /map:match

Whenever I have a matcher like the above, right at the start of my
pipeline, on cocoon 2.1.3, I am finding that I get a resource not found
error whenever I hit on http://localhost:8080/cocoon/jobcentre/

However, the really weird thing is that if I go into the jobcentre
directory under cocoon (there is one and that's what seems to be causing
the problem) and delete index.htm then the problem disappears. Let me
emphasize I don't change the sitemap, I simply delete a file which is in
a directory that cocoon ought not even to be accessing at this point, and
all is well.

Can anyone explain this?

Many thanks.

best, Jim

-- 
http://www.fastmail.fm - Email service worth paying for. Try it for free

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



RE: Windows/Tomcat/Cocoon Installation --htm attached again.

2004-02-12 Thread Jim Bloggs
Great Job.

Many thanks.

best, Jim

On Thu, 12 Feb 2004 21:34:19 +0100, [EMAIL PROTECTED] said:
 I hope you like the result:
 
 http://wiki.cocoondev.org/Wiki.jsp?page=WindowsTomcatCocoonInstallation
 

-- 
http://www.fastmail.fm - The way an email service should be

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



RE: Windows/Tomcat/Cocoon Installation --htm attached again.

2004-02-11 Thread Jim Bloggs

On Wed, 11 Feb 2004 22:09:01 +0100, [EMAIL PROTECTED] said:
 Hi,
 
 Following Geoff's suggestions you could add some
 text at the top that stated that it should pretty much work with see
 Geoff's mail, but for clarity you describe it using your version set.
 
 If you find it difficult to add it to the Wiki, I'd be glad to do it for
 you.
 
Hi Helma,

I've added a boxout to the top right á la Geoff. Hope it's OK.

I would be most grateful if you would add it to the Wiki for me as I
haven't used the Wiki before.

Many thanks.

best, Jim

-- 
http://www.fastmail.fm - One of many happy users:
  http://www.fastmail.fm/docs/quotes.html


	
	
		Windows/Tomcat/Cocoon Installation

		Tomcat 5.0.18/Cocoon 2.1.3 on Windows 2000 with j2sdk1.4.2_01

		11 February 2004

		
			Other Versions
			These same instructions should work for:

	any recent tomcat
	any jdk1.4
	any cocoon release or cvs snapshot.
	any windows environment (except probably 95, 98, maybe ME)

			
		

		Installing Tomcat and Cocoon is easy if you know how, but can be complicated if you don't. As I went through it, I promised myself I would make notes once I'd finished. Outlined below are the steps I took to install Cocoon 2.1.3 on Tomcat 5.0.18 on Windows 2000 with j2sdk1.4.2_01. I hope they help.

		
			The following assumes you have already installed Sun's Java Development Kit (j2sdk1.4.2_01) in directory c:\j2skd1.4.2_01.
		

		
			Do this: Download the file called 5.0.18.zip from the Tomcat 5.0.18 section near the bottom of the Release Builds section:

	
		http://jakarta.apache.org/site/binindex.cgi
	

Consider this: It may be possible to use the .exe or Deployer files instead, but I used the zip.
			
			Do this: Extract everything to c:\ using Winzip, which should create a directory called:

	c:\jakarta-tomcat-5.0.18

Consider this: You can tell Winzip will create a subdirectory by looking at the value in the path column on the right hand side.
			
			Do this: Set the JAVA_HOME and CATALINA_HOME environment variables.

	Right-click My Computer > Properties > Advanced > Environment variables... > System Variable pane, New... etc.
	
		
			JAVA_HOME
		
		
			c:\j2sdk1.4.2_01
		
		
			CATALINA_HOME
		
		
			c:\jakarta-tomcat-5.0.18
		
	
	Consider this: Environment variables can also be set in a DOS box using DOS commands, but in that case, they are only meaningful within and for the lifetime of that DOS box.

			
			Do this: Test the server by running the batch file provided.

	c:\jakarta-tomcat\bin\startup.bat

Consider this: This is only one way of running the server. A better way is to install it as a Windows service.
			
			Do this: View the default installation screen. The screen should be available when you see the message INFO:Server startup in nms, by visiting:

	http://localhost:8080/

Consider this: Tomcat listens on port 8080 by default. Apache listens on port 80 by default. Browsers normally hit on port 80 unless told otherwise.
			
			Do this: Stop the server by running the batch file provided.

	c:\jakarta-tomcat\bin\shutdown.bat

Consider this: Because the batch file appears to hang, you will need to run this batch file from another DOS window.
			
			Do this: Install Tomcat as a Windows service by running the batch file provided.

	c:\jakarta-tomcat\bin\service.bat

Consider this: Windows services can be controlled independently throught the Services control panel.
			
			Do this: Change the service status to automatic for automatic start on reboot. The service should be named Apache Tomcat in:

	Control Panel > Administrative Tools > Services

Consider this: You can start, stop and restart any service using the corresponding button in the top panel
			
			Do this: Download the file called cocoon-latest-src.zip from:

	
		http://cocoon.apache.org/mirror.cgi
	

Consider this: It is necessary to download the entire source which can take a long time.
			
			Do this: Extract the source to c:\ using Winzip, which should place everything in a directory called:

	c:\cocoon-2.1.3

Consider this: You can find more details on installing Cocoon in c:\cocoon-2.1.3\INSTALL.txt
			
			Do this: Build the binary. It may run for quite a while, in my case 30 mins.

	build

Consider this: During this time there will be many disturbing warning messages. You can see other build options by doing build -projecthelp
			
			Do this: Test Cocoon in the Jetty Servlet container.

	cocoon servlet

Consider this: Jetty is provided with Cocoon so that it can be tested independently of a separately installed servlet container such as Tomcat.
			
			Do this: View