W3C home > Mailing lists > Public > www-jigsaw@w3.org > May to June 1999

Re: Virtual hosts with Jigsaw 2.0.2, JVM1.2, NT4+SP5

From: Anthony B. Coates, ESL +61 2 9373 7972 <tony.coates@reuters.com>
Date: Thu, 20 May 1999 04:00:12 -0400 (EDT)
Message-Id: <199905200800.EAA18583@www10.w3.org>
To: www-jigsaw-request <www-jigsaw-request@w3.org>
Thanks, Benoit, for the tips!  I am much closer now, but not quite there.  Let
me say that I want to set up my virtual server so that "http://localhost/"
takes me to the standard Jigsaw document tree, while I want "http://tonyc/" (my
DNS name is "tonyc") to take me to my own document tree, which is located
outside of the Jigsaw document tree.  By default, Jigsaw does a name lookup to
call itself "http://tonyc/", so I have to set the hostname to
"http://localhost/" on the Jigsaw command line.

I set up my VirtualHostResource and VirtualHostFrame as in the docs, and set
the server's root name to "virtual".  However, when I stopped and restarted
Jigsaw, it didn't work.  Instead, "Class.forName" threw a
ClassNotFoundException.  Checking "http-server.props", I found that it had the
lines

...
org.w3c.jigsaw.root.class=org.w3c.jigsaw.resources.DirectoryResourc e
...
org.w3c.jigsaw.root.name=virtual
...

which seems to me to be a mismatch.  I tried changing
"org.w3c.jigsaw.root.class" to "org.w3c.jigsaw.resources.VirtualHostResource",
but still got the same "Class.forName" ClassNotFoundException.  Finally, I
changed the "http-server.props" file to be

...
org.w3c.jigsaw.root.class=org.w3c.jigsaw.resources.DirectoryResourc e
...
org.w3c.jigsaw.root.name=root
...

which allowed Jigsaw to run again, but with virtual hosting now disabled.

So, what I'm really after is any help anyone can give to me in suggesting what
might have gone wrong.

Je vous remercie beaucoup en avance pour toute information.

	Cheers,
			Tony.

> The dnd doesn't work fine with swing, so there is another way to add
> resources / frames. Read the documentation at [1] and [2].
> 
> [1] http://www.w3.org/Jigsaw/Doc/User/JigAdmin/docs_space.html#add
> [2] http://www.w3.org/Jigsaw/Doc/User/JigAdmin/edit.html#menu

------------------------------------------------------------------------
Any views expressed in this message are those of the individual  sender,
except  where  the  sender  specifically  states them to be the views of
Reuters Ltd.
Received on Thursday, 20 May 1999 09:43:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:29 GMT