You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Julien Martin <ba...@yahoo.fr> on 2004/10/14 11:25:42 UTC

[users@httpd] Problems with JSPs

Hello,

I am trying to configure a jsp application and I have
the following problem:

When I try to access the index.jsp page the browser
either shows me the jsp source or tries to download
and save the jsp file. Either way the jsp is not
interpreted. 

I have attached the three configuration files.

Hoping to get some help.

Julien Martin.

Re: [users@httpd] Problems with JSPs

Posted by haresh ghoghari <hd...@yahoo.com>.
Hello!

U forget to mention worker2.properties in httpd.conf
so whenevr jps relted request ic come it can be
forwarded to forward to tomcat  
Tag for that is following
JkSet config.file /path/workers2.properties

--- Julien Martin <ba...@yahoo.fr> wrote:

> Hello,
> 
> I am trying to configure a jsp application and I
> have
> the following problem:
> 
> When I try to access the index.jsp page the browser
> either shows me the jsp source or tries to download
> and save the jsp file. Either way the jsp is not
> interpreted. 
> 
> I have attached the three configuration files.
> 
> Hoping to get some help.
> 
> Julien Martin.> ## THIS FILE MAY BE OVERRIDEN AT
RUNTIME. MAKE SURE
> TOMCAT IS STOPED
> ## WHEN YOU EDIT THE FILE.
> 
> ## COMMENTS WILL BE _LOST_
> 
> ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
> 
> # Set the desired handler list
> # handler.list=apr,request,channelJni
> #
> # Override the default port for the socketChannel
> # channelSocket.port=8019
> # Default: 
> # channelUnix.file=${jkHome}/work/jk2.socket
> # Just to check if the the config  is working
> # shm.file=${jkHome}/work/jk2.shm
> 
> # In order to enable jni use any channelJni
> directive
> # channelJni.disabled = 0
> # And one of the following directives:
> 
> # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
> 
> # If set to inprocess the mod_jk2 will Register
> natives itself
> # This will enable the starting of the Tomcat from
> mod_jk2
> # apr.jniModeSo=inprocess
> > [channel.socket:localhost:8009]
> port=8009
> host=127.0.0.1
>  
> #define the worker
> [ajp13:localhost:8009]
> channel=channel.socket:localhost:8009
>  
> #  [uri:/examples/*]
> #  worker=ajp13:localhost:8009
> 
> #[channel.socket:localhost:8009] 
> #info=Ajp13 forwarding over socket 
> #tomcatId=localhost:8009 
> 
> [uri:/examples/*] 
> info=Map the whole webapp 
> 
> [uri:/apromo/*] 
> info=Atout promotion
> 
> [uri:/anah/*] 
> info=Anah
> 
> [uri:/glow/*] 
> info=Glow
> 
> [uri:/ici/*] 
> worker=ajp13:localhost:8009
> 
> > #
> # Based upon the NCSA server configuration files
> originally by Rob McCool.
> #
> # This is the main Apache server configuration file.
>  It contains the
> # configuration directives that give the server its
> instructions.
> # See <URL:http://httpd.apache.org/docs-2.0/> for
> detailed information about
> # the directives.
> #
> # Do NOT simply read the instructions in here
> without understanding
> # what they do.  They're here only as hints or
> reminders.  If you are unsure
> # consult the online docs. You have been warned.  
> #
> # The configuration directives are grouped into
> three basic sections:
> #  1. Directives that control the operation of the
> Apache server process as a
> #     whole (the 'global environment').
> #  2. Directives that define the parameters of the
> 'main' or 'default' server,
> #     which responds to requests that aren't handled
> by a virtual host.
> #     These directives also provide default values
> for the settings
> #     of all virtual hosts.
> #  3. Settings for virtual hosts, which allow Web
> requests to be sent to
> #     different IP addresses or hostnames and have
> them handled by the
> #     same Apache server process.
> #
> # Configuration and logfile names: If the filenames
> you specify for many
> # of the server's control files begin with "/" (or
> "drive:/" for Win32), the
> # server will use that explicit path.  If the
> filenames do *not* begin
> # with "/", the value of ServerRoot is prepended --
> so "logs/foo.log"
> # with ServerRoot set to "E:/Apache/Apache2" will be
> interpreted by the
> # server as "E:/Apache/Apache2/logs/foo.log".
> #
> # NOTE: Where filenames are specified, you must use
> forward slashes
> # instead of backslashes (e.g., "c:/apache" instead
> of "c:\apache").
> # If a drive letter is omitted, the drive on which
> Apache.exe is located
> # will be used by default.  It is recommended that
> you always supply
> # an explicit drive letter in absolute paths,
> however, to avoid
> # confusion.
> #
> 
> ### Section 1: Global Environment
> #
> # The directives in this section affect the overall
> operation of Apache,
> # such as the number of concurrent requests it can
> handle or where it
> # can find its configuration files.
> #
> 
> #
> # ServerRoot: The top of the directory tree under
> which the server's
> # configuration, error, and log files are kept.
> #
> # NOTE!  If you intend to place this on an NFS (or
> otherwise network)
> # mounted filesystem then please read the LockFile
> documentation (available
> # at
>
<URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile>);
> # you will save yourself a lot of trouble.
> #
> # Do NOT add a slash at the end of the directory
> path.
> #
> ServerRoot "E:/Apache/Apache2"
> 
> #
> # ScoreBoardFile: File used to store internal server
> process information.
> # If unspecified (the default), the scoreboard will
> be stored in an
> # anonymous shared memory segment, and will be
> unavailable to third-party
> # applications.
> # If specified, ensure that no two invocations of
> Apache share the same
> # scoreboard file. The scoreboard file MUST BE
> STORED ON A LOCAL DISK.
> #
> #ScoreBoardFile logs/apache_runtime_status
> 
> #
> # PidFile: The file in which the server should
> record its process
> # identification number when it starts.
> #
> PidFile logs/httpd.pid
> 
> #
> # Timeout: The number of seconds before receives and
> sends time out.
> #
> Timeout 300
> 
> #
> # KeepAlive: Whether or not to allow persistent
> connections (more than
> # one request per connection). Set to "Off" to
> deactivate.
> #
> KeepAlive On
> 
> #
> # MaxKeepAliveRequests: The maximum number of
> requests to allow
> # during a persistent connection. Set to 0 to allow
> an unlimited amount.
> # We recommend you leave this number high, for
> maximum performance.
> #
> MaxKeepAliveRequests 100
> 
> #
> # KeepAliveTimeout: Number of seconds to wait for
> the next request from the
> # same client on the same connection.
> #
> KeepAliveTimeout 15
> 
> ##
> ## Server-Pool Size Regulation (MPM specific)
> ## 
> 
> # WinNT MPM
> # ThreadsPerChild: constant number of worker threads
> in the server process
> # MaxRequestsPerChild: maximum  number of requests a
> server process serves
> <IfModule mpm_winnt.c>
> ThreadsPerChild 250
> MaxRequestsPerChild  0
> </IfModule>
> 
> #
> # Listen: Allows you to bind Apache to specific IP
> addresses and/or
> # ports, instead of the default. See also the
> <VirtualHost>
> # directive.
> #
> # Change this to Listen on specific IP addresses as
> shown below to 
> # prevent Apache from glomming onto all bound IP
> addresses (0.0.0.0)
> #
> #Listen 12.34.56.78:80
> Listen 80
> 
> #
> # Dynamic Shared Object (DSO) Support
> #
> # To be able to use the functionality of a module
> which was built as a DSO you
> # have to place corresponding `LoadModule' lines at
> this location so the
> # directives contained in it are actually available
> _before_ they are used.
> # Statically compiled modules (those listed by
> `httpd -l') do not need
> # to be loaded here.
> #
> # Example:
> # LoadModule foo_module modules/mod_foo.so
> #
> LoadModule access_module modules/mod_access.so
> LoadModule actions_module modules/mod_actions.so
> LoadModule alias_module modules/mod_alias.so
> LoadModule asis_module modules/mod_asis.so
> LoadModule auth_module modules/mod_auth.so
> #LoadModule auth_anon_module
> modules/mod_auth_anon.so
> #LoadModule auth_dbm_module modules/mod_auth_dbm.so
> #LoadModule auth_digest_module
> modules/mod_auth_digest.so
> LoadModule autoindex_module modules/mod_autoindex.so
> #LoadModule cern_meta_module
> modules/mod_cern_meta.so
> LoadModule cgi_module modules/mod_cgi.so
> #LoadModule dav_module modules/mod_dav.so
> 
=== message truncated ===>
---------------------------------------------------------------------
> The official User-To-User support forum of the
> Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
users-help@httpd.apache.org



		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org