Tomcat x Apache

2002-02-27 Thread Cleber Hostalácio de Melo

Hi,

I have linux  (kernel 2.4.5), apache 1.3.19 and
Tomacat 4.0.2

Tomcat are working well with the url:
  http://Myserv:tomcat_port/examples/jsp/index.html

But when I try to access this application from Apache with the
URL:

  http://Myserv/examples/jsp/index.html


I receive the message in my browser:

Forbidden
You don't have permission to access /examples/jsp/index.html on this
server.

The corresponding entries in the Apache logs are:

httpd/logs/access.log:
  GET /examples/jsp/index.html HTTP/1.0 403 301

httpd/logs/error.log:
  [error] [client xxx.xxx.xxx.x] (2)No such file or directory: cannot
read directory for multi: /examples/jsp/

There is no entry in the Tomcat logs which looks like that Apache is not

even trying to
connect to Tomcat.

My configuration files are:

httpd.com

.
ServerName myServer
ServerType standalone
ServerRoot /etc/httpd
..
LoadModule 
LoadModule webapp_module libexec/mod_webapp-1.0-eapi.so
..
AddModule
AddModule mod_webapp.c
..
DocumentRoot /home/myDocs
..
WebAppConnection Tomcat_Apache warp localhost:8008
WebAppDeploy examples Tomcat_Apache /examples/


server.xml

.
Service name=Tomcat_Apache
Connector
  className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0/

  !-- Replace localhost with what your Apache ServerName is set to
--
  Engine className=org.apache.catalina.connector.warp.WarpEngine
   name=localhost debug=0 appBase=webapps
   .
   /Engine
/Service

Anyone has any idea what could be the problem?

Thanks.





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




Re: Tomcat x Apache

2002-02-27 Thread Cleber Hostalácio de Melo

My  webapps directory and all its directories are read and execute free for
all users. So I don´t think this is the problem.

Any way, I think Apache should pass all the /examples requests to
Tomcat and not trying to read the directly from the file system.

It looks more that Apache is not allowed to connect to Tomcat. I´ve
already check all the possibilities but could not find any parameter(s) in
httpd.conf or server.xml that could prevent the connection.

Any other clue?

Thank you.


Ion Larranaga wrote:

 Does your apache user (nobody by default) have access
 to the physical directory? Perhaps that directory belongs
 to the user you start Tomcat with (maybe root?) and
 nobody has no read access to it.

 Hope it helps,

   Ion

 -Mensaje original-
 De: Cleber Hostalacio de Melo [mailto:[EMAIL PROTECTED]]
 Enviado el: miercoles, 27 de febrero de 2002 17:25
 Para: [EMAIL PROTECTED]
 Asunto: Tomcat x Apache

 Hi,

 I have linux  (kernel 2.4.5), apache 1.3.19 and
 Tomacat 4.0.2

 Tomcat are working well with the url:
   http://Myserv:tomcat_port/examples/jsp/index.html

 But when I try to access this application from Apache with the
 URL:

   http://Myserv/examples/jsp/index.html

 I receive the message in my browser:

 Forbidden
 You don't have permission to access /examples/jsp/index.html on this
 server.

 The corresponding entries in the Apache logs are:

 httpd/logs/access.log:
   GET /examples/jsp/index.html HTTP/1.0 403 301

 httpd/logs/error.log:
   [error] [client xxx.xxx.xxx.x] (2)No such file or directory: cannot
 read directory for multi: /examples/jsp/

 There is no entry in the Tomcat logs which looks like that Apache is not

 even trying to
 connect to Tomcat.

 My configuration files are:

 httpd.com

 .
 ServerName myServer
 ServerType standalone
 ServerRoot /etc/httpd
 ..
 LoadModule 
 LoadModule webapp_module libexec/mod_webapp-1.0-eapi.so
 ..
 AddModule
 AddModule mod_webapp.c
 ..
 DocumentRoot /home/myDocs
 ..
 WebAppConnection Tomcat_Apache warp localhost:8008
 WebAppDeploy examples Tomcat_Apache /examples/

 server.xml

 .
 Service name=Tomcat_Apache
 Connector
   className=org.apache.catalina.connector.warp.WarpConnector
   port=8008 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0/

   !-- Replace localhost with what your Apache ServerName is set to
 --
   Engine className=org.apache.catalina.connector.warp.WarpEngine
name=localhost debug=0 appBase=webapps
.
/Engine
 /Service

 Anyone has any idea what could be the problem?

 Thanks.

 --
 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]




Re: Tomcat 4 interaction with apache 2.0

2002-02-27 Thread Cleber Hostalácio de Melo

I think the line:

LoadModule webapp_module modules/mod_webapp.so

should be put in httpd.conf under Apache home directory/conf.

Look at

http://dcb.sun.com/practices/howtos/tomcat_apache.jsp

I hope it helps.


Regis Muller wrote:

 HI all,
 I ma trying to make work tomcat 4.0.2 with apache 2.0, I added the
 following line at the end of the httpd.conf file :
 Include /etc/tomcat4/conf/tomcat4.conf
 which content is :

 # tomcat /etc/rc.d script example configuration file
 # Use with version 1.07 of the scripts or later

 # Where your java installation lives
 # JAVA_HOME=/usr/java/jdk
 JAVA_HOME=/opt/IBMJava2-13

 # You can pass some parameters to java
 # here if you wish to
 #JAVACMD=$JAVA_HOME/bin/java -Xminf0.1 -Xmaxf0.3

 # Where your tomcat installation lives
 # That change from previous RPM where TOMCAT_HOME
 # used to be /var/tomcat.
 # Now /var/tomcat will be the base for webapps only
 CATALINA_HOME=/var/tomcat4
 JASPER_HOME=/var/tomcat4
 CATALINA_TMPDIR=/var/tomcat4/temp

 # What user should run tomcat
 TOMCAT_USER=tomcat4

 # You can change your tomcat locale here
 #LANG=en_US

 # If you wish to further customize your tomcat environment,
 # put your own definitions here
 # (i.e. LD_LIBRARY_PATH for some jdbc drivers)
 # Just do not forget to export them :)

 LoadModule webapp_module modules/mod_webapp.so

 --
 I also have the mod_jk.so available I don't know which to use or why.

 When I launch apache here is what I get :

 ./apachectl start
 Syntax error on line 31 of /etc/tomcat4/conf/tomcat4.conf:
 Cannot load /usr/local/apache2/modules/mod_webapp.so into server:
 /usr/local/apache2/modules/mod_webapp.so: undefined symbol: ap_table_get

 ./apachectl start: httpd could not be started

 Anyone has evre encountered this problem ? if so, please tell me what I
 did wrong.
 Thanks in advance

 --
 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]




Re: Tomcat x Apache

2002-02-27 Thread Cleber Hostalácio de Melo



When I start the Tomcat (first) and Apache, the logs entries became:
myServ_examples_log.2002-02-27.txt (Tomcat)
2002-02-27 15:49:14 WebappLoader[/examples]: Deploying
class repositories to work directory /var/tomcat4/work/myServer/examples
2002-02-27 15:49:14 WebappLoader[/examples]: Reloading
checks are enabled for this Context
2002-02-27 15:49:14 StandardManager[/examples]: Seeding
random number generator class java.security.SecureRandom
2002-02-27 15:49:14 StandardManager[/examples]: Seeding
of random number generator has been completed
2002-02-27 15:49:19 ContextConfig[/examples]: Configured
an authenticator for method FORM
2002-02-27 15:49:20 ContextListener: contextInitialized()
2002-02-27 15:49:20 SessionListener: contextInitialized()
2002-02-27 15:49:20 ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@765a16')
2002-02-27 15:49:20 StandardWrapper[/examples:default]:
Loading container servlet default
2002-02-27 15:49:21 default: init
2002-02-27 15:49:21 StandardWrapper[/examples:invoker]:
Loading container servlet invoker
2002-02-27 15:49:21 invoker: init
2002-02-27 15:49:21 jsp: init
error_log (Apache)
Wed Feb 27 16:01:38 2002] [info] created shared memory
segment #16768
[Wed Feb 27 16:01:38 2002] [notice] Apache/1.3.22 (Unix)
(Conectiva/Linux) PHP/4.1.1 configured -- resuming normal operations
[Wed Feb 27 16:01:38 2002] [info] Server built: Oct 18
2001 13:34:44
[Wed Feb 27 16:01:38 2002] [notice] Accept mutex: sysvsem
(Default: sysvsem)
The entries that you mentioned in server.xml are:
Service name="Tomcat-Apache">
 Connector className="org.apache.catalina.connector.warp.WarpConnector"
 port="8008" minProcessors="5"
maxProcessors="75"
 enableLookups="true" 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="myServ" debug="0" appBase="webapps">
 !-- 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>
Thank you for your comments.

Cleber
John Wadkin wrote:
Your interpretation of the problem seems accurate.
catalina.out and apache's
error log should tell you more. Does engine> in Service
name="Tomcat_Apache"> in server.xml have a host> nested within
it and the
examples context defined within the host>?
John
-Original Message-
From: Cleber Hostalcio de Melo [mailto:[EMAIL PROTECTED]]
Sent: 27 February 2002 16:25
To: [EMAIL PROTECTED]
Subject: Tomcat x Apache
Hi,
I have linux (kernel 2.4.5), apache 1.3.19 and
Tomacat 4.0.2
Tomcat are working well with the url:
 http://Myserv:tomcat_port/examples/jsp/index.html
But when I try to access this application from Apache with the
URL:
 http://Myserv/examples/jsp/index.html
I receive the message in my browser:
Forbidden
You don't have permission to access /examples/jsp/index.html on this
server.
The corresponding entries in the Apache logs are:
httpd/logs/access.log:
 "GET /examples/jsp/index.html HTTP/1.0" 403 301
httpd/logs/error.log:
 [error] [client xxx.xxx.xxx.x] (2)No such file or directory:
cannot
read directory for multi: /examples/jsp/
There is no entry in the Tomcat logs which looks like that Apache is
not
even trying to
connect to Tomcat.
My configuration files are:
httpd.com
.
ServerName myServer
ServerType standalone
ServerRoot /etc/httpd
..
LoadModule 
LoadModule webapp_module libexec/mod_webapp-1.0-eapi.so
..
AddModule 
AddModule mod_webapp.c
..
DocumentRoot "/home/myDocs"
..
WebAppConnection Tomcat_Apache warp localhost:8008
WebAppDeploy examples Tomcat_Apache /examples/
server.xml
.
Service name="Tomcat_Apache">
Connector
 className="org.apache.catalina.connector.warp.WarpConnector"
 port="8008" minProcessors="5" maxProcessors="75"
 enableLookups="true"
 acceptCount="10" debug="0"/>
 !-- Replace "localhost" with what your Apache "ServerName"
is set to
-->
 Engine className="org.apache.catalina.connector.warp.WarpEngine"
 name="localhost" debug="0" appBase="webapps">
 .
 /Engine>
/Service>
Anyone has any idea what could be the problem?
Thanks.
--
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]


Tomcat x Apache = Forbiden 403

2002-02-22 Thread Cleber Hostalácio de Melo

Hi,

I have conectiva linux 7.0 (kernel 2.4.5), apache 1.3.19 and
Tomacat 4.0.1

Tomcat are working well with the url:
  http://Myserv:tomcat_port/examples/jsp/index.html

But when I try to access this application from Apache with the
URL:

  http://Myserv/examples/jsp/index.html


I receive the message in my browser:

Forbidden
You don't have permission to access /examples/jsp/index.html on this
server.

The corresponding entries in the Apache logs are:

httpd/logs/access.log:
  GET /examples/jsp/index.html HTTP/1.0 403 301

httpd/logs/error.log:
  [error] [client xxx.xxx.xxx.x] (2)No such file or directory: cannot
read directory for multi: /examples/jsp/

There is no entry in the Tomcat logs which looks like that Apache is not
even trying to
connect to Tomcat.

My configuration files are:

httpd.com

.
ServerName myServer
ServerType standalone
ServerRoot /etc/httpd
..
LoadModule 
LoadModule webapp_module libexec/mod_webapp-1.0-eapi.so
..
AddModule
AddModule mod_webapp.c
..
DocumentRoot /home/myDocs
..
WebAppConnection Tomcat_Apache warp localhost:8008
WebAppDeploy examples Tomcat_Apache /examples/


server.xml

.
Service name=Tomcat_Apache
Connector
  className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0/

  !-- Replace localhost with what your Apache ServerName is set to
--
  Engine className=org.apache.catalina.connector.warp.WarpEngine
   name=Apache defaultHost=myServer debug=0
   appBase=webapps
   .
   /Engine
/Service

Anyone has any idea what could be the problem?

Thanks.




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




Connecting Apache to Tomcat

2002-01-29 Thread Cleber Hostalácio de Melo

Hi,

I have conectiva linux 7.0 (kernel 2.4.5), apache 1.3.19 and
Tomacat 4.0.1

Tomcat are working well with the url:
  http://Myserv:tomcat_port/examples/jsp/index.html

But when I try to access this application from Apache with the
URL:

  http://Myserv/examples/jsp/index.html


I receive the message in my browser:

Forbidden
You don't have permission to access /examples/jsp/index.html on this
server.

The corresponding entries in the Apache logs are:

httpd/logs/access.log:
  GET /examples/jsp/index.html HTTP/1.0 403 301

httpd/logs/error.log:
  [error] [client xxx.xxx.xxx.x] (2)No such file or directory: cannot
read directory for multi: /examples/jsp/

There is no entry in the Tomcat logs which looks like that Apache is not
even trying to
connect to Tomcat.

My configuration files are:

httpd.com

.
ServerName myServer
ServerType standalone
ServerRoot /etc/httpd
..
LoadModule 
LoadModule webapp_module libexec/mod_webapp-1.0-eapi.so
..
AddModule
AddModule mod_webapp.c
..
DocumentRoot /home/myDocs
..
WebAppConnection Tomcat_Apache warp localhost:8008
WebAppDeploy examples Tomcat_Apache /examples/


server.xml

.
Service name=Tomcat_Apache
Connector
  className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0/

  !-- Replace localhost with what your Apache ServerName is set to
--
  Engine className=org.apache.catalina.connector.warp.WarpEngine
   name=Apache defaultHost=myServer debug=0
   appBase=webapps
   .
   /Engine
/Service

Anyone has any idea what could be the problem?

Thanks.



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




Re: AW: Connecting Apache to Tomcat

2002-01-29 Thread Cleber Hostalácio de Melo

Thanks Lars.

After your sugestion a tried to configure Apache with these directives:

Directory /examples/jsp/
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
/Directory

But I did not suceed on that although I agree with you that
it looks like some problem related to access control.

If you have another sugestion, I´d appreciate.

Cleber.

lars_ake_gentz wrote:

 hi,

 i have no defaultHost Parameter in my config everything else ist the
 same -
 so i have no more idea - Sorry...
 Are you sure that apache ist running correctly???
 try http://yourApacheServer there must be a standard site: apacheWebServer
 is running...
 perhaps you have to look for the file/folder permissions for the /examples
 folder

 hope this helps you a little...

 Lars.

 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache debug=0 appBase=webapps

 -Ursprungliche Nachricht-
 Von: Cleber Hostalacio de Melo [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 29. Januar 2002 16:45
 An: [EMAIL PROTECTED]
 Betreff: Connecting Apache to Tomcat

 Hi,

 I have conectiva linux 7.0 (kernel 2.4.5), apache 1.3.19 and
 Tomacat 4.0.1

 Tomcat are working well with the url:
   http://Myserv:tomcat_port/examples/jsp/index.html

 But when I try to access this application from Apache with the
 URL:

   http://Myserv/examples/jsp/index.html

 I receive the message in my browser:

 Forbidden
 You don't have permission to access /examples/jsp/index.html on this
 server.

 The corresponding entries in the Apache logs are:

 httpd/logs/access.log:
   GET /examples/jsp/index.html HTTP/1.0 403 301

 httpd/logs/error.log:
   [error] [client xxx.xxx.xxx.x] (2)No such file or directory: cannot
 read directory for multi: /examples/jsp/

 There is no entry in the Tomcat logs which looks like that Apache is not
 even trying to
 connect to Tomcat.

 My configuration files are:

 httpd.com

 .
 ServerName myServer
 ServerType standalone
 ServerRoot /etc/httpd
 ..
 LoadModule 
 LoadModule webapp_module libexec/mod_webapp-1.0-eapi.so
 ..
 AddModule
 AddModule mod_webapp.c
 ..
 DocumentRoot /home/myDocs
 ..
 WebAppConnection Tomcat_Apache warp localhost:8008
 WebAppDeploy examples Tomcat_Apache /examples/

 server.xml

 .
 Service name=Tomcat_Apache
 Connector
   className=org.apache.catalina.connector.warp.WarpConnector
   port=8008 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0/

   !-- Replace localhost with what your Apache ServerName is set to
 --
   Engine className=org.apache.catalina.connector.warp.WarpEngine
name=Apache defaultHost=myServer debug=0
appBase=webapps
.
/Engine
 /Service

 Anyone has any idea what could be the problem?

 Thanks.

 --
 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]