[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Deploying servlets on a RAq550
- Subject: [cobalt-users] Deploying servlets on a RAq550
- From: "Adam Fleet" <afleet@xxxxxxxxxxxxxxx>
- Date: Sun Jan 11 18:51:00 2004
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Gentlefolk,
Has anyone had any joy deploying any servlet-based applications using the
RAQ550 WAR deployment feature?
We're migrating some applications to our new Raq550. When compiling the java
classes, etc, a WAR file is built, and I use the WAR deployment screen,
which seems to run ok.
However, I just cannot get the servlets to load in my browser.
I know that my servlet classes are installed ok, and the class paths are ok,
because if I create a test.jsp that prints the results of some static
methods in some of the servlets, the results are displayed ok.
Hence, I think it may be something to do with the mappings, or some such.
Granted, I'm a bit of a tomcat newbie, as the old machine was running Apache
with Jserv.
The servlet classes are stored in
/home/sites/www.suttongrangeracing.com/web/sg/WEB-INF/classes
I know that Tomcat is running, 'cos I can surf to
http://suttongrangeracing.com:8080
I can surf also to:
http://www.suttongrangeracing.com:8080/sg/test.jsp
which is a test jsp that calls a static method in one of my servlet classes.
but if I try any of:
http://www.suttongrangeracing.com:8080/sg/servlet/suttongrange.page.Home
http://www.suttongrangeracing.com:8080/servlet/suttongrange.page.Home
I get the 404 File Not Found
I have wasted many days on this, and am pulling my hair out in frustration.
I figure that there's no point in even trying to test the httpd/tomcat
integration until I can get tomcat to serve the application first.
If anyone can point me in the right direction, I'd be very grateful.
Thanks in advance,
Adam.
Please consider:
my site file /etc/httpd/conf/vhosts:
[root vhosts]# cat site6
# owned by VirtualHost
NameVirtualHost 202.62.62.6
# frontpage needs the following four things to be here
# otherwise all the vhosts need to go in httpd.conf, which could
# get very large since there could be thousands of vhosts
Port 80
ServerRoot /etc/httpd
ResourceConfig /etc/httpd/conf/srm.conf
AccessConfig /etc/httpd/conf/access.conf
<VirtualHost 202.62.62.6>
ServerName www.suttongrangeracing.com
ServerAdmin admin
DocumentRoot /home/.sites/148/site6/web
ErrorDocument 401 /error/401-authorization.html
ErrorDocument 403 /error/403-forbidden.html
ErrorDocument 404 /error/404-file-not-found.html
ErrorDocument 500 /error/500-internal-server-error.html
RewriteEngine on
RewriteCond %{HTTP_HOST} !^202.62.62.6(:80)?$
RewriteCond %{HTTP_HOST} !^www.suttongrangeracing.com(:80)?$
[NC]
RewriteRule ^/(.*) http://www.suttongrangeracing.com/$1
[L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))?
/home/.sites/148/site6/users/$1/web/$3
# BEGIN WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
# END WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
JkMount /sg/*.jsp ajp12
JkMount /sg/servlet/* ajp12
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
</VirtualHost>
# end of VirtualHost owned section
[root vhosts]#
My mod_jk.conf-auto (with all comments removed) :
LoadModule jk_module libexec/mod_jk.so
JkWorkersFile /usr/java/jakarta-tomcat-3.2.3/conf/workers.properties
JkLogFile /usr/java/jakarta-tomcat-3.2.3/logs/mod_jk.log
JkLogLevel error
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
The context as defined in TOMCAT's server.xml:
<Host name="www.suttongrangeracing.com"> <!-- Site site6 -->
<Context path="" docBase="/home/.sites/148/site6/web" debug="0"/>
<!-- user web contexts -->
<Context path="/sg" docBase="/home/.sites/148/site6/web/sg"
reloadable="true" debug="9"/>
</Host>
An excerpt from TOMCAT's web.xml:
<!-- Cobalt generated servlet integration. Do not modify this line.
sg: -->
<servlet>
<servlet-name>sg</servlet-name>
</servlet>
<servlet-mapping>
<servlet-name>sg</servlet-name>
<utl-pattern>/servlet/sg</url-pattern>
</servlet-mapping>
<!-- End Cobalt generated servlet integration. -->
The last few lines of tomcat.log:
2004-01-12 13:32:21 - ContextManager: Adding context Ctx( )
2004-01-12 13:32:21 - Ctx( www.digerati.com.au:/pay ): XmlReader - init
/pay we
bapps/payment
2004-01-12 13:32:21 - Ctx( www.digerati.com.au:/pay ): Loading -2147483646
jsp
2004-01-12 13:32:21 - Ctx( www.suttongrangeracing.com:/sg ): XmlReader -
init /
sg /home/.sites/148/site6/web/sg
2004-01-12 13:32:21 - Ctx( www.suttongrangeracing.com:/sg ): Reading
/home/.site
s/148/site6/web/sg/WEB-INF/web.xml
2004-01-12 13:32:21 - Ctx( www.suttongrangeracing.com:/sg ):
Loading -2147483646
jsp
2004-01-12 13:32:21 - Ctx( 202.62.62.6: ): XmlReader - init
/home/.sites/148/s
ite6/web
2004-01-12 13:32:21 - Ctx( 202.62.62.6: ): Loading -2147483646 jsp
2004-01-12 13:32:21 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2004-01-12 13:32:21 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007
2004-01-12 13:32:43 - Ctx( www.suttongrangeracing.com:/sg ): Get real path
/servlet/suttongrange.page.Home
/home/.sites/148/site6/web/sg/servlet/suttongrange.page.Home
/home/.sites/148/site6/web/sg
2004-01-12 13:32:43 - Ctx( www.suttongrangeracing.com:/sg ): 404 R( /sg +
/servlet/suttongrange.page.Home + null) null
the last few lines of tomcat's servlet.log:
2004-01-12 13:32:21 - path="" :jsp: init
2004-01-12 13:32:21 - path="" :jsp: init
2004-01-12 13:32:21 - path="/sg" :jsp: init
2004-01-12 13:32:21 - path="" :jsp: init
2004-01-12 13:32:21 - path="" :jsp: init
the last few lines of tomcat's mod_jk.log:
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL
parameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL
parameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters
Cheers,
Adam Fleet.
Manager, Technical Support and Infrastructure
-------------------------------------------------------------------------
Digerati Assist
Australian Customers: phone 1300 727271 - email assist@xxxxxxxxxxxxxxx
New Zealand Customers: phone 0800 484438 - email nzassist@xxxxxxxxxxxxxxx
-------------------------------------------------------------------------
Digerati P/L - 12 Strathalbyn St - East Kew 3102 - phone +61 3 9859 5800
-------------------------------------------------------------------------