Charles.Gao

Registered
Jan 28, 2008
3
0
51
Hello,
I have installed tomcat in my WHM (WHM -> cPanel -> Manage plugins -> click on Addon Modules tomcat ).

The tomcat work..
When I tried the “nmap 209.62.89.18” command line, the output is:
……
80/tcp open http
8009/tcp open ajp13
8080/tcp open http-proxy
……

And it can run jsp pages with http://uskongjian.gmakj.com:8080
However, I installed servlets to my virtualhost (WHM -> Account Functions -> Install Servlets).

After that, the virtualhost configure in /etc/httpd/conf/httpd.conf is
LoadModule jk_module libexec/mod_jk.so
<VirtualHost 209.62.89.18:80>
ServerName gmakj.lw173.net
ServerAlias www.gmakj.lw173.net
ServerAdmin [email protected]
DocumentRoot /home/gmakjlw/public_html
<IfModule mod_suphp.c>
suPHP_UserGroup gmakjlw gmakjlw
</IfModule>
<IfModule !mod_disable_suexec.c>
User gmakjlw
Group gmakjlw
</IfModule>
BytesLog /usr/local/apache/domlogs/gmakj.lw173.net-bytes_log
CustomLog /usr/local/apache/domlogs/gmakj.lw173.net combined
ScriptAlias /cgi-bin/ /home/gmakjlw/public_html/cgi-bin/
<IfModule mod_jk.c>
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
</IfModule>
</VirtualHost>

However, when I opened the URL http://gmakj.lw173.net, the browser is ending up with the following error:

type Status report
message /index.jsp
description The requested resource (/index.jsp) is not available.

I tried to uncomment the following lines in /usr/local/Jakarta/tomcat/conf/web.xml to turn on the invoker servlet:
<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
<servlet-mapping>

After that, I restarted the tomcat and retried to open the same URL .
However, I got the same error.
Can someone to tell me why this situation appear, please?
Thanks and Regards
Charles
 

VirtuaLira

Well-Known Member
Feb 1, 2004
148
0
166
Chile
I have the same problem... Any solutions?

I tried re install tomcat, recompiled Apache and checked all the files server.xml and httpd.conf with sugestions used in the forum... but not working yet...

Please Help.