Hi Chris

So far so good. Several options are available to you now, probably the
simplest is to find any occurrence of "dspace.war" in your
[dspace-source]/build.xml file and replace with "ROOT.war" (if you are
happy to run dspace as the root Tomcat application - be careful not to
kill your current ROOT app if you have one configured!). Then whenever
you redeploy the *.war files to tomcat, the dspace.war is created rather
as ROOT.war and in Tomcat it creates the ROOT directory (note, must be
UPPERCASE). This will be picked up by Tomcat without any trailing
"/ROOT" in the URL.

If you don't want to redeploy at this stage you can probably just rename
your [tomcat-webapps]/dspace.war to ROOT.war - but back it up first,
just in case... ;) You may need to restart Tomcat for this ROOT.war to
be deployed, depending on your Tomcat configuration settings.

Regards


Gary Browne
Development Programmer
Library IT Services
University of Sydney
ph: 9351-5946

-----Original Message-----
From: Boyd, Chris (NIH/NLM) [C] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 1 November 2007 1:49 AM
To: Gary Browne; dspace-tech@lists.sourceforge.net
Subject: RE: [Dspace-tech] Dspace .1.4.2 Hangs on telnet 8080

Gary,

Thank you and every one for the help. The problem was due to my
server.xml not configured properly to listen on 8009 and I did have to
change the workers properties to use 8009 also. I have the product
working fine now.

I would like to have the application work without having to add the
trailing /dspace to the URL. I tried your suggestion by changing the
JkMount in the http.conf file to be JkMount /* ajp13. It didn't make a
difference. I still had to add the trailing /dspace.

Thanks again, Chris

 

-----Original Message-----
From: Gary Browne [mailto:[EMAIL PROTECTED]
Sent: Monday, October 29, 2007 6:28 PM
To: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Dspace .1.4.2 Hangs on telnet 8080

Hi Chris
 
Further to Christian's suggestions, if you get to the point where you
have narrowed it down to a mod_jk setup problem, you can try the
following (this is based on our setup which works on Linux):
 
* setup an apache virtual host for dspace
* add the directive <JkMount /* ajp13> which will perform redirects for
all requests from your dspace domain
* if there are any pages that you do not want to redirect to tomcat, you
can specify them with the "no-jk" option within your Apache VirtualHost
        eg:  SetEnvIf Request_URI
"http://yaddayadda.edu/notToBeRedirected/*"; no-jk 
 
Also, I don't know whether this is significant for your setup, but your
workers.properties file seems to be missing the following variables:

workers.tomcat_home=[your-tomcat-home]
workers.java_home=[your-java-home]

Further, it seems you haven't setup an AJP connector port in your
tomcat's server.xml. We've got something like:

    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
        <Connector port="8009" maxThreads="150" maxSpareThreads="50"
minSpareThreads="10" URIEncoding="UTF-8" tomcatAuthentication="false"
enableLookups="false" redirectPort="8443" debug="0" protocol="AJP/1.3"
/>

And rather than
<worker.ajp13_dspace.port=8080>
as you have in your workers.properties file, accept the default port of
8009 which will then hook to the above AJP connector in tomcat.

Hope this hasn't confused you more and is of some assistance.

Regards


Gary Browne
Development Programmer
Library IT Services
University of Sydney
ph: 9351-5946
 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, 30 October 2007 3:50 AM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Dspace .1.4.2 Hangs on telnet 8080


The product installed fine. Got the Oracle schema built. When I perform
the documented test (telnet localhost 8080) or attempt to access the
application otherwise it fails. I am attaching the relavent content from
various conf files and scripts at the very bottom.

I am under a tight timeline to get this prootype working and I am new to
Dspace and Tomcat so please be gentle on me :-)

Any and all help is greatly appreaciated.

--Thanks, Chris

Environment:
SunOS dspacedev1 5.10 Generic_118833-24 sun4v sparc SUNW,Sun-Fire-T1000

Solaris 10 Container
Dspace 1.4.2 Source
Apache Ant version 1.7.0
Java version: 1.6
Oracle 9.2.0.7

dspacedev1 Z ./httpd -v
Server version: Apache/2.0.59
Server built:   Nov  6 2006 15:35:26

./catalina.sh version
Server version: Apache Tomcat/5.5.23
Server built:   Mar 5 2007 08:25:04
Server number:  5.5.23.0
OS Name:        SunOS
OS Version:     5.10
Architecture:   sparc
JVM Version:    1.6.0-b105
JVM Vendor:     Sun Microsystems Inc.

Tomcat and Apache are listening on 8080 and 80 Respectively.
dspacedev1 Z netstat -an |grep 80
      *.8080               *.*                0      0 49152      0
LISTEN
127.0.0.1.8005             *.*                0      0 49152      0
LISTEN
      *.80                 *.*                0      0 49152      0
L ISTEN< BR>      *.80                 *.*                0      0 49152
0
LISTEN

When I perform the action below I get no response from the server or
logging at all.
dspacedev1 Z telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /dspace HTTP/1.1

When I go to port 80 instead I this happens via a JK Connector.
dspacedev1 Z telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /dspace HTTP/1.1

HTTP/1.1 400 Bad Request
Date: Mon, 29 Oct 2007 14:43:57 GMT
Server: Apache
Content-Length: 226
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head>
<title>400 Bad Request</title> </head><body> <h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br
/> </p> </body></html> Connection to localhost closed by foreign host.

www.access
127.0.0.1 - - [29/Oct/2007:11:07:05 -0400] "GET / HTTP/1.1" 400 226 "-"


When I point a Web Brower to http://dspacedev.nlm.nih.gov/dspace
<http://dspacedev.nlm.nih.gov/dspace>  all I get is logging in the
mod.jk.log below [Mon Oct 29 10:59:40.042 2007] [22808:24] [debug]
map_uri_to_worker::jk_uri_worker_map.c (597): Attempting to map URI
'/dspace' from 2 maps [Mon Oct 29 10:59:40.042 2007] [22808:24] [debug]
map_uri_to_worker::jk_uri_worker_map.c (609): Attempting to map context
URI '/dspace/=ajp13_dspace' source 'JkMount'
[Mon Oct 29 10:59:40.042 2007] [22808:24] [debug]
map_uri_to_worker::jk_uri_worker_map.c (609): Attempting to map context
URI '/dspace=ajp13_dspace' source 'JkMount'
[Mon Oct 29 10:59:40.042 2007] [22808:24] [debug]
map_uri_to_worker::jk_uri_worker_map.c (635): Found an exact match
'/dspace=ajp13_dspace'
[Mon Oct 29 10:59:40.042 2007] [22808:24] [debug] jk_handler::mod_jk.c
(2131): Into handler jakarta-servlet worker=ajp13_dspace r->proxyreq=0
[Mon Oct 29 10:59:40.043 2007] [22808:24] [debug]
wc_get_worker_for_name::jk_worker.c (115): found a worker ajp13_dspace
[Mon Oct 29 10:59:40.043 2007] [22808:24] [debug]
wc_maintain::jk_worker.c (323): Maintaining worker ajp13_dspace [Mon Oct
29 10:59:40.043 2007] [22808:24] [debug]
wc_get_name_for_type::jk_worker.c (292): Found worker type 'ajp13'
[Mon Oct 29 10:59:40.043 2007] [22808:24] [debug]
init_ws_service::mod_jk.c (811): Service protocol=HTTP/1.1 method=GET
host=(null) addr=130.14.71.168 name=dspacedev.nlm.nih.gov port=80
auth=(null) user=(null) laddr=10.3.2.5 raddr=130.14.71.168 uri=/dspace
[Mon Oct 29 10:59:40.043 2007] [22808:24] [debug]
ajp_get_endpoint::jk_ajp_common.c (2498): acquired connection pool
slot=0 [Mon Oct 29 10:59:40.044 2007] [22808:24] [debug]
ajp_marshal_into_msgb::jk_ajp_common.c (551): ajp marshaling done [Mon
Oct 29 10:59:40.044 2007] [22808:24] [debug]
ajp_service::jk_ajp_common.c (1935): processing ajp13_dspace with 2
retries [Mon Oct 29 10:59 :40.044 2007] [22808:24] [debug]
jk_open_socket::jk_connect.c (357): socket TCP_NODELAY set to On [Mon
Oct 29 10:59:40.044 2007] [22808:24] [debug]
jk_open_socket::jk_connect.c (455): trying to connect socket 19 to
127.0.0.1:8080 [Mon Oct 29 10:59:40.045 2007] [22808:24] [debug]
jk_open_socket::jk_connect.c (481): socket 19 connected to
127.0.0.1:8080 [Mon Oct 29 10:59:40.045 2007] [22808:24] [debug]
ajp_connect_to_endpoint::jk_ajp_common.c (865): Connected socket 19 to
(127.0.0.1:8080)
[Mon Oct 29 10:59:40.045 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): sending to ajp13
pos=4 len=548 max=8192
[Mon Oct 29 10:59:40.045 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0000    12 34 02
20 02 02 00 08 48 54 54 50 2F 31 2E 31  - .4......HTTP/1.1 [Mon Oct 29
10:59:40.045 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0010    00 00 07
2F 64 73 70 61 63 65 00 00 0D 31 33 30  - .../dspace...130 [Mon Oct 29
10:59:40.045 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0020    2E 31 34
2E 37 31 2E 31 36 38 00 FF FF 00 15 64  - .14.71.168.....d [Mon Oct 29
10:59:40.046 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0030    73 70 61
63 65 64 65 76 2E 6E 6C 6D 2E 6E 69 68  - spacedev.nlm.nih [Mon Oct 29
10:59:40.046 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0040    2E 67 6F
76 00 00 50 00 00 07 A0 01 01 0F 69 6D  - .gov..P.......im [Mon Oct 29
10:59:40.046 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0050    61 67 65
2F 67 69 66 2C 20 69 6D 61 67 65 2F 78  - age/gif,.image/x [Mon Oct 29
10:59:40.046 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk _ajp_c ommon.c (911): 0060    2D 78
62
69 74 6D 61 70 2C 20 69 6D 61 67 65 2F  - -xbitmap,.image/ [Mon Oct 29
10:59:40.046 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0070    6A 70 65
67 2C 20 69 6D 61 67 65 2F 70 6A 70 65  - jpeg,.image/pjpe [Mon Oct 29
10:59:40.046 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0080    67 2C 20
61 70 70 6C 69 63 61 74 69 6F 6E 2F 78  - g,.application/x [Mon Oct 29
10:59:40.046 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0090    2D 73 68
6F 63 6B 77 61 76 65 2D 66 6C 61 73 68  - -shockwave-flash [Mon Oct 29
10:59:40.046 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 00a0    2C 20 61
70 70 6C 69 63 61 74 69 6F 6E 2F 76 6E  - ,.application/vn [Mon Oct 29
10:59:40.047 2007] [22808:24] [d ebug]<
BR>ajp_connection_tcp_send_message::jk_ajp_common.c (911): 00b0    64 2E
6D
73 2D 65 78 63 65 6C 2C 20 61 70 70 6C  - d.ms-excel,.appl [Mon Oct 29
10:59:40.047 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 00c0    69 63 61
74 69 6F 6E 2F 76 6E 64 2E 6D 73 2D 70  - ication/vnd.ms-p [Mon Oct 29
10:59:40.047 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 00d0    6F 77 65
72 70 6F 69 6E 74 2C 20 61 70 70 6C 69  - owerpoint,.appli [Mon Oct 29
10:59:40.047 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 00e0    63 61 74
69 6F 6E 2F 6D 73 77 6F 72 64 2C 20 61  - cation/msword,.a [Mon Oct 29
10:59:40.047 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 00f0    70 70 6C
69 63 61 74 69 6F 6E 2F 78 61 6D 6C 2B  - pplication/xaml+ [Mon O ct 29
10:59:40.047 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0100    78 6D 6C
2C 20 61 70 70 6C 69 63 61 74 69 6F 6E  - xml,.application [Mon Oct 29
10:59:40.047 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0110    2F 76 6E
64 2E 6D 73 2D 78 70 73 64 6F 63 75 6D  - /vnd.ms-xpsdocum [Mon Oct 29
10:59:40.047 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0120    65 6E 74
2C 20 61 70 70 6C 69 63 61 74 69 6F 6E  - ent,.application [Mon Oct 29
10:59:40.047 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0130    2F 78 2D
6D 73 2D 78 62 61 70 2C 20 61 70 70 6C  - /x-ms-xbap,.appl [Mon Oct 29
10:59:40.048 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0140    69 63 61
74 69 6F 6E 2F 78 2D 6D 73 2D 61 70 70  - ication/x-ms-app [Mon Oct 29
10:59:40.048 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0150    6C 69 63
61 74 69 6F 6E 2C 20 2A 2F 2A 00 A0 04  - lication,.*/*...
[Mon Oct 29 10:59:40.048 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0160    00 05 65
6E 2D 75 73 00 A0 03 00 0D 67 7A 69 70  - ..en-us.....gzip [Mon Oct 29
10:59:40.048 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0170    2C 20 64
65 66 6C 61 74 65 00 A0 0E 00 75 4D 6F  - ,.deflate....uMo [Mon Oct 29
10:59:40.048 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0180    7A 69 6C
6C 61 2F 34 2E 30 20 28 63 6F 6D 70 61  - zilla/4.0.(compa [Mon Oct 29
10:59:40.048 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0190&nbs p;&nbs
p;  74 69 62 6C 65 3B 20 4D 53 49 45 20 36 2E 30 3B  - tible;.MSIE.6.0;
[Mon Oct 29
10:59:40.048 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 01a0    20 57 69
6E 64 6F 77 73 20 4E 54 20 35 2E 31 3B  - .Windows.NT.5.1; [Mon Oct 29
10:59:40.048 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 01b0    20 53 56
31 3B 20 2E 4E 45 54 20 43 4C 52 20 32  - .SV1;..NET.CLR.2 [Mon Oct 29
10:59:40.049 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 01c0    2E 30 2E
35 30 37 32 37 3B 20 2E 4E 45 54 20 43  - .0.50727;..NET.C [Mon Oct 29
10:59:40.049 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 01d0    4C 52 20
33 2E 30 2E 30 34 35 30 36 2E 33 30 3B  - LR.3.0.04506.30; [Mon Oct 29
10:59:40.049 2007] [22808:24] [debug]
ajp_connection_tcp_s end_me ssage::jk_ajp_common.c (911): 01e0    20 2E
4E
45 54 20 43 4C 52 20 31 2E 31 2E 34 33  - ..NET.CLR.1.1.43 [Mon Oct 29
10:59:40.049 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 01f0    32 32 29
00 A0 0B 00 15 64 73 70 61 63 65 64 65  - 22).....dspacede [Mon Oct 29
10:59:40.049 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0200    76 2E 6E
6C 6D 2E 6E 69 68 2E 67 6F 76 00 A0 06  - v.nlm.nih.gov...
[Mon Oct 29 10:59:40.049 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0210    00 0A 4B
65 65 70 2D 41 6C 69 76 65 00 A0 08 00  - ..Keep-Alive....
[Mon Oct 29 10:59:40.049 2007] [22808:24] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (911): 0220    01 30 00
FF 00 00 00 00 00 00 00 00 00 00 00 00  - .0..............
[Mon Oct 29 10:59:40 .049 2 007] [22808:24] [debug]
ajp_send_request::jk_ajp_common.c (1325): (ajp13_dspace) request body to
send 0 - request body to resend 0


Entire worker.properties
# workers.properties -
#
worker.list=ajp13_dspace
#
### Connector for DSpacedev
worker.ajp13_dspace.port=8080
worker.ajp13_dspace.host=localhost  # dspacedev1
worker.ajp13_dspace.type=ajp13


Start http.conf
<snip>
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "/etc/NLM/apache2/workers.properties"
JkShmFile "/var/tmp/jk-runtime-status
<snip>
#
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F]
JkLogFile "/www/logs/raw/mod_jk.log"
JkLogLevel debug
JkMount /dspace ajp13_dspace
JkMount /dspace/ ajp13_dspace
AddHandler cgi-script .cgi
ErrorLog /www/logs/raw/dspacedev1-error_log
TransferLog /www/logs/raw/dspacedev1-access_log
CustomLog  /www/logs/raw/www.access common env=!image <snip> End
http.conf


Begin catalina.sh
<snip>
CATALINA_HOME=/www/tomcat
CATALINA_TMPDIR=/var/tmp
LOG_HOME=/www/logs/tomcat
JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"
End catalina.sh


Begin server.xml
<snip>
   <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
               enableLookups="false" redirectPort="8443"
acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true"
   URIEncoding="UTF-8"/>
<snip>



------------------------------------------------------------------------
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to