RE: Creating a new server handler?

I haven't had any problems with the servlet filters as of yet.

I can try the ServerInterface but how will the jigsaw startup work?  I thought the classes listed in the server.props file had to be of type ServerHandler.

One other note, I tried to make a resource out of the tomcat embedded server and it didn't work at all, mainly, because I could not get the tomcat instance to decide it like my requests.

I may try Jetty to see if that interface is any easier to use.  From what I have read so far, tomcat wasn't meant to be embedded in this way but boy it would nice if we could pull it off.

Thanks for the help,
Brian

-----Original Message-----
From: Yves Lafon [mailto:ylafon@w3.org] 
Sent: Monday, February 13, 2006 8:02 AM
To: Laird, Brian
Cc: www-jigsaw@w3.org
Subject: Re: Creating a new server handler?

On Tue, 7 Feb 2006, Laird, Brian wrote:

> I am working on creating a new server handler which would startup the
> embedded version of tomcat (5.5).  I need a little more of a
> sophisticated servlet/jsp container that what jigsaw offers through the
> normal stuff.  Plus, I figured it could be added back into the Jigsaw
> source to be used by other people.

That would be a good interim for a full fledge implementation in Jigsaw 
(the issue I guess is mainly with the servlet filters, no?)

> Anyways, here is my question.  I created a class called TomcatDaemon
> which extends the following interfaces: ServerHandler,
> PropertyMonitoring, Status.  I am able to start tomcat and get it to
> serve up content with no problem.  My issue is that when I open the
> admin GUI, I get a nice big dialog box proclaiming "Unknown Resource"
> with a bunch of squares after it.  After clicking "o.k." the GUI does
> show up but there is nothing in it.  So I can't configure my other
> regular jigsaw servers the way I want.  How can I get the GUI to either
> ignore the tomcat daemon instance or show it and just have nothing for
> the admin to configure?

Could you try to implement ServerInterface? This one is the resource, and 
the gui only deals with resources, so that might explain the issue you are 
facing.
Thanks,

-- 
Yves Lafon - W3C
"Baroula que barouleras, au tiéu toujou t'entourneras."

************************************************************************
This e-mail and any accompanying documents or files contain information that is the 
property of HAVI Global Solutions, that is intended solely for those to whom this e-mail is addressed 
(i.e., those identified in the "To" and "Cc" boxes), and that is confidential, proprietary, 
and/or privileged.  If you are not an intended recipient of this e-mail, you are hereby 
notified that any viewing, use, disclosure, forwarding, copying, or distribution of any of 
this information is strictly prohibited and may be subject to legal sanctions.  If you have 
received this e-mail in error, please notify the sender immediately of any unintended 
recipients, and delete the e-mail, all attachments, and all copies of both from your system.

While we have taken reasonable precautions to ensure that any attachments to this e-mail 
have been swept for viruses, we cannot accept liability for any damage sustained as a 
result of software viruses.
************************************************************************

Received on Tuesday, 14 February 2006 18:16:39 UTC