Apache-1.3.26 + JBoss-3.0.0_tomcat-4.0.3 + webapp
hrfaria Aug 29, 2002 12:33 PMHi!
I'm trying to integrate apache-1.3.26 with jboss-3.0.0_tomcat-4.0.3. I've also read the "May I integrate Apache + Tomcat + JBoss" thread of jboss forum.
I'm using the webapp module to connect apache and tomcat. Basically, I put tomcat-warp.jar (generated from the cvs apr sources) in jboss-dist/catalina/server/lib, mod_webapp.so in apache-dist/libexec, added the WebAppConnection and WebAppDeploy lines to httpd.conf, and some directives to tomcat4-service.xml related to the WarpConnector.
Here are my configurations:
- tomcat4-service.xml
- httpd.conf
LoadModule webapp_module libexec/mod_webapp.so
AddModule mod_webapp.c
WebAppConnection conn warp localhost:8008
# WebAppInfo /webapp-info
<VirtualHost 10.0.0.2:80>
ServerName localhost
WebAppDeploy MyGreeting.war conn /MyGreeting
WebAppDeploy webapps/examples conn /examples/
<VirtualHost 10.0.0.2:443>
ServerName localhost
SSLEngine on
SSLCertificateFile /opt/apache-ssl/apache_1.3.26/conf/ssl.crt/server.crt
SSLCertificateKeyFile /opt/apache-ssl/apache_1.3.26/conf/ssl.key/server.key
WebAppDeploy MyGreeting.war conn /MyGreeting
WebAppDeploy webapps/examples conn /examples/
When I start jboss, then apache, I get the basic following errors in the jboss log:
ERROR [org.jboss.web.localhost.Engine] [org.apache.catalina.connector.warp.WarpConnector] Connection from /127.0.0.1:3674 to /127.0.0.1:8008
ERROR [org.jboss.web.localhost.Engine] [org.apache.catalina.connector.warp.WarpConnector] Connection from /127.0.0.1:3675 to /127.0.0.1:8008
[...]
ERROR [org.jboss.web.localhost.Engine] StandardContext[/examples]: Error configuring application listener of class listeners.ContextListener
java.lang.NoClassDefFoundError: javax/servlet/ServletContextAttributeListener
[...]
ERROR [org.jboss.web.localhost.Engine] StandardContext[/examples]: Error configuring application listener of class listeners.SessionListener
java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
[...]
ERROR [org.jboss.web.localhost.Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0)
ERROR [org.jboss.web.localhost.Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0)
Other questions:
Where does jboss.jcml come from? Everybody talk about it, but it didn't come with my jboss-3.0.0 distribution. Do I have to have it?
Does jboss-tomcat use catalina/conf/server.xml at all? I removed it and was still able to load jsp's through localhost:8080... Is not tomcat4-service.xml enough?
Thanks!
Henrique R. Faria