tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diego Zuluaga <dfz...@yahoo.com>
Subject Solution RE: tomcat 4 + apache 1.3 + WarpConnection
Date Wed, 13 Feb 2002 16:25:13 GMT
Solution for people who wants to load the web server
and see the message:

Virtual host name not found.

	<VirtualHost *>
	    ServerName localhost
	    ErrorLog logs/error_log
	    CustomLog logs/access_log common
	   WebAppConnection warpconn warp     localhost:8008
	   WebAppDeploy     examples warpconn /examples/
	   WebAppInfo /web-inf
	</VirtualHost>



 --- John Wadkin <j.wadkin@hud.ac.uk> escribió: >
Frank,
> 
> Without having the examples installed on my server I
> can't say for certain
> what will and won't work. I'm trying to remember if
> I had problems with the
> examples - can't remember though. If you can access:
> http://localhost/examples/ and
> http://host/examples/servlets/index.html then
> that's a good indication that everything is setup ok
> and that your own
> servlets/jsp app's should work.
> Sorry I can't be of more help!
> 
> John
>  
> 
> -----Original Message-----
> From: Frank [mailto:fac@netscape.net]
> Sent: 13 February 2002 15:50
> To: Tomcat Users List
> Subject: Re: tomcat 4 + apache 1.3 + WarpConnection
> 
> 
> http://host/examples/servlets/index.html works, but
> it won't actually 
> execute a servlet (HelloWorld for example).  what
> would the syntax be 
> for this?
> 
> 
> j.wadkin@hud.ac.uk wrote:
> 
> > http://localhost/examples/ should only give you a
> directory listing. I
> > -think- you should be able to go to something like
> (for example)
> > http://locahost/examples/servlets/index.html and
> be able to execute the
> > servlets - assuming that everything is setup
> correctly. Or you might be
> able
> > to go direct to an example - e.g.
> > http://localhost/examples/jsp/snp/snoop.jsp I no
> longer have the examples
> > installed on my server so I can't be 100% certain!
> 
> > 
> > John
> > 
> > 
> > -----Original Message-----
> > From: Frank [mailto:fac@netscape.net]
> > Sent: 13 February 2002 15:13
> > To: Tomcat Users List
> > Subject: Re: tomcat 4 + apache 1.3 +
> WarpConnection
> > 
> > 
> > Taking the suggestion to include a <Host section
> in my server.xml under 
> > tomcat apache allows me to do
> http://host/examples/ and see the 
> > directory.  I can't execute anyhting though.
> > 
> > mgm@atsga.com wrote:
> > 
> > 
> >>I think this is another shortfall of the
> documentation. You can change the
> >>Engine name to "Bob" and it will still work, at
> least if you don't use
> >>
> > host
> > 
> >>names and access via IP address. From reading the
> documentation, I get the
> >>impression the Engine name property is only used
> for errors and logging
> >>
> > id.
> > 
> >>Mike
> >>
> >>-----Original Message-----
> >>From: John Wadkin [mailto:j.wadkin@hud.ac.uk]
> >>Sent: Wednesday, February 13, 2002 9:06 AM
> >>To: 'Tomcat Users List'
> >>Subject: RE: tomcat 4 + apache 1.3 +
> WarpConnection
> >>
> >>
> >>I've managed to get TomCat 4.0.1 and Apache 1.3
> working with
> >>
> > mod_WebApp/WARP
> > 
> >>on Solaris 8. I didn't run into that many
> difficulties either! Does strike
> >>me as odd that TC will work with and without a
> host. There'll no doubt be
> >>
> > a
> > 
> >>logical explanation :)
> >>
> >>I've mentioned this before but...
> >>The server.xml has this line:
> >>
> >><!-- Replace "localhost" with what your Apache
> "ServerName" is set to -->
> >>    <Engine
>
className="org.apache.catalina.connector.warp.WarpEngine"
> >>     name="Apache" debug="0" appBase="webapps">
> >>
> >>But there's no "localhost" to replace! In the
> >>
> > "server-noexamples.xml.config"
> > 
> >>file the line becomes:
> >>
> >><!-- Replace "localhost" with what your Apache
> "ServerName" is set to -->
> >>    <Engine
>
className="org.apache.catalina.connector.warp.WarpEngine"
> >>     name="Apache" defaultHost="localhost"
> debug="0" appBase="webapps">
> >>
> >>Which makes more sense!! When trying to interpret
> the documentation, this
> >>
> > is
> > 
> >>partly what swung it in favour of specifying
> <host> and defaultHost.
> >>
> >>>From the list, it seems that many people think
> that the <engine> name and
> >><host> name need to match, but they don't. In
> <engine> "name" is purely
> >>logical, but in <host> it defines the name of the
> host - another area of
> >>confusion! I.e. two attributes with the same name
> (i.e. name) but
> >>
> > different
> > 
> >>meanings.
> >>
> >>Try http://localhost/examples/ i.e. put a slash on
> the end.
> >>
> >>Thanks,
> >>
> >>John
> >>
> >>
> >>-----Original Message-----
> >>From: Frank [mailto:fac@netscape.net]
> >>Sent: 13 February 2002 13:47
> >>To: Tomcat Users List
> >>Subject: Re: tomcat 4 + apache 1.3 +
> WarpConnection
> >>
> >>
> >>I'm also stuck in this information warp.  I've
> tried the documented
> >>solutions as well as those proposed here and and I
> still can't access
> >>examples e.g. with http://host/examples.  still
> works with :8080 of
> >>
> > course.
> > 
> >>
> >>
> >>j.wadkin@hud.ac.uk wrote:
> >>
> >>
> >>
> >>>It would be "nice" if the developers provided a
> complete TomCat-Apache
> >>>Service example - one without the misleading
> comments :)
> >>>I read the documentation (more than most) and
> ended up more confused than
> >>>when I started! For the <engine> element, the
> following is written as an
> >>>explanation of the "defaultHost" attribute:
> >>>
> >>>- The default host name, which identifies the
> Host that will process
> >>>requests directed to host
> >>>- names on this server, but which are not
> configured in this
> configuration
> >>>file. This name MUST
> >>>- match the name attributes of one of the Host
> elements nested
> immediately
> >>>inside.
> 
=== message truncated === 

_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message