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?


[EMAIL PROTECTED] 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:[EMAIL PROTECTED]]
> 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.
> 
> [EMAIL PROTECTED] 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:[EMAIL PROTECTED]]
>>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:[EMAIL PROTECTED]]
>>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.
> 
>>
>>
>>[EMAIL PROTECTED] 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.
>>>
>>>The documentation further clarifies (!) things:
>>>
>>>- You can nest one or more Host elements inside this Engine element, each
>>>representing a
>>>- different virtual host associated with this server. At least one Host is
>>>required, and one of
>>>- the nested Hosts MUST have a name that matches the name specified for
>>>
>>>
>>the
>>
>>
>>>defaultHost
>>>- attribute, listed above.
>>>
>>>It's as clear as mud, which just goes to show that developers should never
>>>write documentation :)
>>>I ended up with these questions:
>>>
>>>In what circumstances would a request have a host specified that didn't
>>>match a host in server.xml - wouldn't it be cleaner/wiser to have a <host>
>>>for every "virtual" host?
>>>Is defaultHost necessary? I.e if every "virtual" host has a <host>
>>>
>>>The two paragraphs imply that a <host> and matching defaultHost are
>>>necessary but this isn't clear and it's open to (mis)interpretation. It's
>>>also implied that specifying one necessitates the specification of the
>>>
>>>
>>other
>>
>>
>>>- i.e. if you have a <host> you must have a defaultHost and vice versa.
>>>
>>>In the end I took the cautious approach and specified a <host> and
>>>
>>>
>>matching
>>
>>
>>>defaultHost!
>>>
>>>Thanks,
>>>
>>>John
>>>
>>>
>>>-----Original Message-----
>>>From: Mike Millson [mailto:[EMAIL PROTECTED]]
>>>Sent: 13 February 2002 12:50
>>>To: Tomcat Users List
>>>Subject: RE: tomcat 4 + apache 1.3 + WarpConnection
>>>
>>>
>>>I'm running Tomcat 4.0.1 w/o any hosts in my engine. If you connect by ip
>>>address, I don't think you need any hosts. This is contrary to the Tomcat
>>>documentation, which says you have to have at least 1 host, but all the
>>>
>>>
>>host
>>
>>
>>>element is doing is relating an ip address to a name. So it makes sense to
>>>me if you don't use domain names (say on a test server), you don't need
>>>hosts. However, I'd like to hear other people's thoughts on this and learn
>>>more.
>>>
>>>Mike
>>>
>>>-----Original Message-----
>>>From: John Wadkin [mailto:[EMAIL PROTECTED]]
>>>Sent: Wednesday, February 13, 2002 6:25 AM
>>>To: 'Tomcat Users List'
>>>Subject: RE: tomcat 4 + apache 1.3 + WarpConnection
>>>
>>>
>>>AFAIK, in TomCat 4, every engine needs at least one host. Set engine's
>>>"defaultHost" attribute to match the "name" attribute of the host element.
>>>
>>>
>>I
>>
>>
>>>assume that earlier versions of TomCat will follow the same logic. Have a
>>>read of the TomCat documentation on the engine and host elements.
>>>
>>>John
>>>
>>>
>>>-----Original Message-----
>>>From: Domenico Piol [mailto:[EMAIL PROTECTED]]
>>>Sent: 12 February 2002 08:29
>>>To: tomcat-user
>>>Subject: RE: tomcat 4 + apache 1.3 + WarpConnection
>>>
>>>
>>>well, on my opinion i would need that when i would use virtual hosts, but
>>>i don't.... is my opinion wrong ?
>>>
>>>
>>>
>>>
>>>>Your server.xml needs a host - something like this:
>>>>
>>>>Server port="8005" shutdown="SHUTDOWN" debug="0">
>>>>
>>>><Service name="Tomcat-Apache">
>>>>
>>>> <Connector
>>>> className="org.apache.catalina.connector.warp.WarpConnector"
>>>>  port="8008" minProcessors="5" maxProcessors="75"
>>>>  enableLookups="true"
>>>>  acceptCount="10" debug="0"/>
>>>>
>>>> <Engine className="org.apache.catalina.connector.warp.WarpEngine"
>>>>  name="Apache" defaultHost="myserver.domain.com" debug="0"
>>>>appBase="webapps">
>>>>
>>>>   <!-- Define the default virtual host -->
>>>>   <Host name="myserver.domain.com" debug="0" appBase="webapps"
>>>>unpackWARs="true">
>>>>
>>>>
>>>>     <Valve className="org.apache.catalina.valves.AccessLogValve"
>>>>              directory="logs"  prefix="localhost_access_log."
>>>>suffix=".txt"
>>>>              pattern="common"/>
>>>>
>>>>     <Logger className="org.apache.catalina.logger.FileLogger"
>>>>              directory="logs"  prefix="apache_log." suffix=".txt"
>>>>        timestamp="true"/>
>>>>
>>>>     <!-- Tomcat Manager Context -->
>>>>     <Context path="/manager" docBase="manager"
>>>>      debug="0" privileged="true"/>
>>>>
>>>>   </Host>
>>>>
>>>>   <!-- Because this Realm is here, an instance will be shared
>>>>   globally
>>>>-->
>>>>   <Realm className="org.apache.catalina.realm.MemoryRealm" />
>>>>
>>>> </Engine>
>>>>
>>>></Service>
>>>>
>>>></Server>
>>>>
>>>>Don't know if it'll help!
>>>>
>>>>John
>>>>
>>>>
>>>>-----Original Message-----
>>>>From: Domenico Piol [mailto:[EMAIL PROTECTED]]
>>>>Sent: 11 February 2002 09:14
>>>>To: tomcat-user
>>>>Subject: tomcat 4 + apache 1.3 + WarpConnection
>>>>
>>>>
>>>>hi
>>>>i'm trying to get my tomcat installation work together with apache
>>>>1.3... without success. tomcat works fine as standalone, but with
>>>>WarpConnection i get an error:
>>>>
>>>>*** error
>>>>****************************************************************
>>>>2002-02-11 08:51:53 [org.apache.catalina.connector.warp.WarpConnection]
>>>>Exception on socket
>>>>java.io.IOException: Premature packet header end
>>>>     at
>>>>     org.apache.catalina.connector.warp.WarpConnection.recv(Unknown
>>>>Source)
>>>>     at org.apache.catalina.connector.warp.WarpRequestHandler.handle
>>>>(Unknown Source)
>>>>     at org.apache.catalina.connector.warp.WarpConnection.run(Unknown
>>>>Source)
>>>>     at java.lang.Thread.run(Thread.java:484)
>>>>
>>>>2002-02-11 08:51:54 [org.apache.catalina.connector.warp.WarpConnector]
>>>>Connection from localhost/127.0.0.1:2394 to localhost/127.0.0.1:8008
>>>>2002-02-11 08:51:54
>>>>[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
>>>>mappings (2)
>>>>2002-02-11 08:51:54
>>>>[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
>>>>mappings (0)
>>>>
>>>>
>>>>
>>>>
> ***************************************************************************
> 
>>>>i don't use a virtual host in my apache config, is that the problem ?
>>>>my configs look as follwows:
>>>>
>>>>*** server.xml
>>>>*********************************************************** <!-- Define
>>>>an Apache-Connector Service -->
>>>><Service name="Tomcat-Apache">
>>>>
>>>> <Connector
>>>> className="org.apache.catalina.connector.warp.WarpConnector"
>>>>  port="8008" minProcessors="5" maxProcessors="75"
>>>>  enableLookups="false" appBase="webapps"
>>>>  acceptCount="10" debug="0"/>
>>>>
>>>> <!-- Replace "localhost" with what your Apache "ServerName" is set
>>>> to -
>>>>->
>>>> <Engine className="org.apache.catalina.connector.warp.WarpEngine"
>>>>  name="arakis" debug="0">
>>>>
>>>>   <!-- Global logger unless overridden at lower levels -->
>>>>   <Logger className="org.apache.catalina.logger.FileLogger"
>>>>           prefix="apache_log." suffix=".txt"
>>>>           timestamp="true"/>
>>>>
>>>>   <!-- Because this Realm is here, an instance will be shared
>>>>globally -->
>>>>   <Realm className="org.apache.catalina.realm.MemoryRealm" />
>>>>
>>>> </Engine>
>>>>
>>>></Service>
>>>>
>>>**************************************************************************
>>>
>>>
>>>
>>>>*** httpd.conf
>>>>*********************************************************** ...
>>>>ServerName arakis.local
>>>>...
>>>>LoadModule webapp_module      /usr/lib/apache/mod_webapp.so
>>>>AddModule mod_webapp.c
>>>>...
>>>>DocumentRoot "/usr/local/httpd/htdocs"
>>>>
>>>>### NOT in a virtual host ####
>>>>WebAppConnection        conn            warp    localhost:8008
>>>>WebAppDeploy            webdav          conn    /webdav
>>>>WebAppDeploy            examples        conn    /examples
>>>>
>>>>WebAppInfo      /webapp-info
>>>>...
>>>>
>>>>
>>>>
>>>>
>>>**************************************************************************
>>>
>>>
>>>
>>>>tomcat runs as user wwwrun, as well as apache.
>>>>
>>>>i'm thankfull for any hint...
>>>>
>>>>domenico
>>>>-----------------------------------------------------------
>>>>domenico piol                                  infometis ag
>>>>eidg. dipl.                                    zuerich
>>>>wirtschaftsinformatiker                        switzerland
>>>>
>>>>email: [EMAIL PROTECTED]
>>>>www:   http://www.infometis.ch/users/dpiol/
>>>>-----------------------------------------------------------
>>>>
>>>>
>>--
>>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>>For additional commands: <mailto:[EMAIL PROTECTED]>
>>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>>
>>
>>
>>--
>>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>>For additional commands: <mailto:[EMAIL PROTECTED]>
>>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>>
> 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to