Repost: Can't get it working: TC4.0.x + warp + Apache 1.3.20 + SuSE Linux 7.3

2002-01-16 Thread Baer Peter

Forgive me that I repost my message from several days ago, then
posted with the subject

WARP / mod_webapp not working --- help needed!

but the urgency of the problem is increasing, now.

Therefore I would kindly ask (anyone of) you, to have a look at
the log files at the end of this message?

Maybe that gives you a hint, why my configuration ain't working.
I suppose that only the log file apache_log is really relevant. 
However, I'm unable to guess myself from the log file what's wrong.

BTW: If I specify http://MyHost.de/example I get a Not found
error, while with http://MyHost.de/examples/ the result is a
blank page. ?!?!?

In standalone mode, ie when I specify port 8080, everythings
working.

So thanks again, for taking the time.

Peter Bär


Hi there!

I've been trying to connect Apache and Tomcat via the Warp connector
(mod_webapp) for quite a while now, but I don't seem to get it
working. Even extensive research of this mailing list didn't point
me
to the solution of my problem. I'm getting desperate...

Forgive me, if I am asking the same questions discussed at least
100 times on this list, but for me the hints given just don't work,
and I don't know why and what's wrong.


I am trying to run Tomcat 4.01 on SuSE Linux 7.3 x86 with Apache
1.3.20.
Tomcat runs properly standalone.

So, please, could you have a look at my configuration and the log
files
I get. I'd be _very_ grateful for any help, as I just don't get
along
on my own, here, it seems. I am probably missing something obvious,
but I don't know what it is. Can you help?


THANKS IN ADVANCE to all of you!


Here is my configuration.
I actually just want to get the standard configuration running.
No virtual hosts or something other more complex. I just want
to be able to get the Tomcat examples with

http://MyHost/examples
not having to specify the port number. If I get the installation
instructions in the file INSTALL.TXT of the mod_webapp distribution
right, then this should work just by adding these five lines to
/etc/httpd.conf.


LoadModule webapp_module /usr/lib/apache/mod_webapp.so
AddModule mod_webapp.c

   IfModule mod_webapp.c
  WebAppConnectionconn warp MyHost.de:8008
  WebAppDeployexamples conn /examples/
  WebAppInfo /webapp-info
   /IfModule

But for me, as I said, it just doesn't work.

I have copied the file mod_webapp.so to /usr/lib/apache, which is
the replacement directory for libexec on SuSE Linux. I have also
tried to use softlinks called libexec placed in the DocumentRoot
directory of Apache pointing to /usr/lib/apache. However, this
didn't have any effect, as expected. Other than in previous versions
of Tomcat there are no automatically created config files explicitly
using paths containing libexec, right? So this shouldn't matter, in
my understanding. Something else must be wrong, however!


Here are the log files. I included some comments to indicate
which of the following steps was just completed at the end
of a paragraph.

Step 1: Tomcat started
Step 2: Request to Tomcat
Step 3: Apache started
Step 4: Request to Apache
Step 5: Request to Tomcat, again
Step 6: Apache shutdown
Step 7: Tomcat shutdown




apache-log
--
--Step 1: Tomcat started (file not yet created)
--Step 2: Request to Tomcat (file not yet created)
2002-01-13 15:17:00
[org.apache.catalina.connector.warp.WarpConnector] Connection from
orion6.trav.orb/192.168.22.6:34396 to
orion6.trav.orb/192.168.22.6:8008
2002-01-13 15:17:00 WarpHost[orion6.trav.orb]: Installing web
application at context path /examples from URL
file:/usr/java/jakarta-tomcat-4.0.1/webapps/examples
2002-01-13 15:17:00 WebappLoader[/examples]: Deploying class
repositories to work directory /usr/java/jakarta-tomcat-
4.0.1/work/orion6.trav.orb/examples
2002-01-13 15:17:00 StandardManager[/examples]: Seeding random
number generator class java.security.SecureRandom
2002-01-13 15:17:00 StandardManager[/examples]: Seeding of random
number generator has been completed
2002-01-13 15:17:00 ContextConfig[/examples]: Configured an
authenticator for method FORM
2002-01-13 15:17:00 ContextListener: contextInitialized()
2002-01-13 15:17:00 SessionListener: contextInitialized()
2002-01-13 15:17:00 ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@6e22f7')
2002-01-13 15:17:00 StandardWrapper[/examples:default]: Loading
container servlet default
2002-01-13 15:17:00 default: init
2002-01-13 15:17:00 StandardWrapper[/examples:invoker]: Loading
container servlet invoker
2002-01-13 15:17:00 invoker: init
2002-01-13 15:17:00 jsp: init
2002-01-13 15:17:00
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
mappings (2)
--Step 3: Apache started
2002-01-13 15:23:50
[org.apache.catalina.connector.warp.WarpConnector] Connection from
orion6.trav.orb/192.168.22.6:34480 to

Re: Repost: Can't get it working: TC4.0.x + warp + Apache 1.3.20 + SuSE Linux 7.3

2002-01-16 Thread Chris Newland

Hi Peter,

Have you tried building mod_webapp from source?

I'm using Tomcat 4.0.1 + Apache 1.3.22 + Cocoon 2.0 final.

I downloaded webapp-module-1.0.1-tc401-src.tar.gz from the jakarta site and 
built from source then copied mod_webapp.so into my apache/libexec directory 
and added *only* the following line to the bottom of my httpd.conf:
--
Include conf/warp.conf
--

I also copied the updated warp.jar (built from the java source in  
webapp-module-1.0.1-tc401-src.tar.gz) into my
tomcat/server/lib directory (you need to make sure that your warp.jar matches 
your mod_webapp.so version)

my warp.conf file (in my apache/conf dir) contains:

--
LoadModule webapp_module libexec/mod_webapp.so
AddModule mod_webapp.c
 
ServerName 127.0.0.1
Port 80
 
WebAppConnection warpConnection warp 127.0.0.1:8008
WebAppDeploy cocoon warpConnection /cocoon
 
AddHandler default-handler .gif .jpeg
--

I did not have to change my tomcat/conf/server.xml file at all to enable 
mod_webapp.

Hope this helps,

Best Regards,

Chris Newland

On Wednesday 16 January 2002 12:07, you wrote:
 Forgive me that I repost my message from several days ago, then
 posted with the subject

   WARP / mod_webapp not working --- help needed!

 but the urgency of the problem is increasing, now.

 Therefore I would kindly ask (anyone of) you, to have a look at
 the log files at the end of this message?

 Maybe that gives you a hint, why my configuration ain't working.
 I suppose that only the log file apache_log is really relevant.
 However, I'm unable to guess myself from the log file what's wrong.

 BTW: If I specify http://MyHost.de/example I get a Not found
 error, while with http://MyHost.de/examples/ the result is a
 blank page. ?!?!?

 In standalone mode, ie when I specify port 8080, everythings
 working.

 So thanks again, for taking the time.

   Peter Bär


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




Re: Repost: Can't get it working: TC4.0.x + warp + Apache 1.3.20 + SuSE Linux 7.3

2002-01-16 Thread Anton Brazhnyk

Hi!

 Therefore I would kindly ask (anyone of) you, to have a look at
 the log files at the end of this message?
 
 Maybe that gives you a hint, why my configuration ain't working.
 I suppose that only the log file apache_log is really relevant. 
 However, I'm unable to guess myself from the log file what's wrong.

I got such stacktraces approximately every 5th request 
when I had tested it.
I think you should try nightly builds, both TC and mod_webapp
or switch to mod_jk maybe even with TC3.3
It seems TC3.3 and mod_jk (still nightly) are the most stable versions.

BTW, are my messages are readable?

Anton.

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