Skip to main content

Thread: 10.04 guest in VirtualBox w/ Apache 2 and Tomcat 7


hello,

looking @ thread.

running apache 2.2.14 , tomcat 7.014 on ubuntu lucid lynx lts.

have identical copy of webapp in filesystem in 2 places,
e.g. /var/www/beer-v1 , /var/lib/tomcat7/webapps/beer-v1.

can launch webapp form.html apache following browser address:

http://localhost:80/beer-v1/form.html

can launch webapp form.html tomcat following browser address:

http://localhost:8080/beer-v1/form.html

in tomcat launch, form.html invokes java servlet.

in apache launch, form.html unsuccessfully invokes java servlet following error message in /var/log/apache2/error.log:

[thu jun 30 17:45:23 2011] [error] [client 127.0.0.1] file not exist:
/var/www/beer-v1/selectbeer.do, referer: http://localhost/beer-v1/form.html

following snippet guts of web.xml file
in /var/www/beer-v1/web-inf/web.xml , in
/var/lib/tomcat7/webapps/beer-v1/web-inf/web.xml

html code:
<web-app xmlns="http://java.sun.com/xml/ns/javaee"   xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"   xsi:schemalocation="http://java.sun.com/xml/ns/javaee                       http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"   version="3.0"   metadata-complete="true">      <display-name>welcome tomcat</display-name>   <description>      welcome tomcat   </description>     <servlet>   <servlet-name>ch3 beer</servlet-name>   <servlet-class>com.example.web.beerselect</servlet-class>   </servlet>    <servlet-mapping>   <servlet-name>ch3 beer</servlet-name>   <url-pattern>/selectbeer.do</url-pattern>   </servlet-mapping>  </web-app>
i have put "configuration example mod_jk used in combination apache
2.2.x" in /etc/apache2/httpd.conf

have modified "loadmodule jk_module /usr/lib/apache2/modules/mod_jk.so". using mod_jk.so file supplied apache2.

have modifed workers.properties starting file provided at
/etc/libapache2-mod-jk/workers.properties

have idea why apache 2 not forwarding http request tomcat 7?

thanks,
harry henriques



Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] 10.04 guest in VirtualBox w/ Apache 2 and Tomcat 7


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support