jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Helen Rehn <hr...@us.ibm.com>
Subject RE: Behavior of getRequestURL in ServletTestCase
Date Wed, 19 Feb 2003 22:39:52 GMT




I got the source code for 1.4.1 and started inserting println's in an
attempt to figure out what's going on.

This is all using the test class (RequestURLTest) I sent earlier.

First, in the getRequestURL method of HttpServletRequestWrapper, I am
falling into the this.url != null section, the section which does not
simply pass the getRequestURL to the original request.

I traced this back to the ServletTestCaller code, to this section in
setTestCaseFields

ServletURL url = ServletURL.loadFromRequest(request);
System.out.println("servlet url loaded from request: " + url);

        Field requestField = servletInstance.getClass().getField("request"
);
        requestField.set(servletInstance,
            new HttpServletRequestWrapper(request, url));

If I print out the url loaded from the request, I get:

servlet url loaded from request: protocol = [http], host name = [null],
port = [-1], context path = [null], servlet path = [null], path info =
[null], query string = [null]

I took a look at loadFromRequest(request), and I do not see how it could
actually ever return null.

Where should I look next?

Thanks,
Nell

Nell Rehn
WebSphere Advanced Design and Technology
hrehn@us.ibm.com
(919) 254-1088 t/l 444-1088


                                                                                         
                                        
                      "Vincent Massol"                                                   
                                        
                      <vmassol@octo.com        To:       "'Cactus Users List'" <cactus-user@jakarta.apache.org>
                  
                      >                        cc:       Helen Rehn/Durham/IBM@IBMUS  
                                           
                                               Subject:  RE: Behavior of getRequestURL in
ServletTestCase                         
                      02/19/2003 04:17                                                   
                                        
                      PM                                                                 
                                        
                      Please respond to                                                  
                                        
                      "Cactus Users                                                      
                                        
                      List"                                                              
                                        
                                                                                         
                                        
                                                                                         
                                        




Hi Helen,

I'm a bit stuck ... I've just tried it on my machine using Tomcat 4.1.18
and the ServletTestRunner, and it works fine with your log4j.properties
...

What is strange is that you previously had something in the log file and
now that you've changed to append = true, there is nothing...

However, make sure that your code is never calling WebRequest.setURL()
as this is normally the only reason you would get some nulls in
getRequestURL().

You're using Cactus for Servlet API 2.3, right (you probably are as I
seem to recall that getRequestURL() is only available in 2.3+)?

-Vincent

> -----Original Message-----
> From: Helen Rehn [mailto:hrehn@us.ibm.com]
> Sent: 19 February 2003 20:02
> To: Cactus Users List
> Subject: RE: Behavior of getRequestURL in ServletTestCase
>
>
>
>
>
> Hi,
>
> I have the following log4j.properties file:
>
> # Properties for configuring Log4j
> # This is the configuring for logging on the server side
>
> log4j.appender.cactus = org.apache.log4j.FileAppender
> log4j.appender.cactus.File = cactus.log
> log4j.appender.cactus.Append = true
> log4j.appender.cactus.layout = org.apache.log4j.PatternLayout
> log4j.appender.cactus.layout.ConversionPattern = %d{ABSOLUTE} [%t]
%-5p
> %-30.30c{2} %x - %m %n
>
> # Any application log which uses Log4J will be logged to the Cactus
log
> file
> log4j.rootCategory=DEBUG, cactus
>
> # By default we don't log at the DEBUG level for Cactus log, in order
not
> to generate too
> # many logs. However, should a problem arise and logs need to be sent
to
> the Cactus dev team,
> # then we will ask you to change this to DEBUG.
> log4j.category.org.apache.cactus = DEBUG, cactus
> log4j.additivity.org.apache.cactus=false
>
> # Don't show debug logs for HttpClient
> log4j.category.org.apache.commons.httpclient = WARN, cactus
> log4j.additivity.org.apache.commons.httpclient=false
> log4j.category.httpclient = WARN, cactus
> log4j.additivity.httpclient=false
>
> Note I've now set append to true, and also eliminated the debug logs
for
> HttpClient.
> I also changed the log file name in order to start fresh.
>
> I verified that this is the file that's being used by turning on
> log4j.debug:
>
> [2/19/03 13:55:19:616 EST] 64a2911f SystemOut     O log4j: Reading
> configuration from URL
>
file:/C:/Program%20Files/IBM/WebSphere%20Studio/runtimes/base_v5/propert
ie
> s/log4j.properties
> [2/19/03 13:55:19:646 EST] 64a2911f SystemOut     O log4j: Parsing for
> [root] with value=[DEBUG, cactus].
> [2/19/03 13:55:19:646 EST] 64a2911f SystemOut     O log4j: Level token
is
> [DEBUG].
> [2/19/03 13:55:19:646 EST] 64a2911f SystemOut     O log4j: Category
root
> set to DEBUG
> [2/19/03 13:55:19:646 EST] 64a2911f SystemOut     O log4j: Parsing
> appender
> named "cactus".
> [2/19/03 13:55:19:847 EST] 64a2911f SystemOut     O log4j: Parsing
layout
> options for "cactus".
> [2/19/03 13:55:20:107 EST] 64a2911f SystemOut     O log4j: Setting
> property
> [conversionPattern] to [%d{ABSOLUTE} [%t] %-5p %-30.30c{2} %x - %m
%n].
> [2/19/03 13:55:20:107 EST] 64a2911f SystemOut     O log4j: End of
parsing
> for "cactus".
> [2/19/03 13:55:20:167 EST] 64a2911f SystemOut     O log4j: Setting
> property
> [file] to [cactus.log].
> [2/19/03 13:55:20:167 EST] 64a2911f SystemOut     O log4j: Setting
> property
> [append] to [true].
> [2/19/03 13:55:20:167 EST] 64a2911f SystemOut     O log4j: setFile
called:
> cactus.log, true
> [2/19/03 13:55:20:167 EST] 64a2911f SystemOut     O log4j: setFile
ended
> [2/19/03 13:55:20:167 EST] 64a2911f SystemOut     O log4j: Parsed
"cactus"
> options.
> [2/19/03 13:55:20:187 EST] 64a2911f SystemOut     O log4j: Parsing for
> [org.apache.commons.httpclient] with value=[WARN, cactus].
> [2/19/03 13:55:20:187 EST] 64a2911f SystemOut     O log4j: Level token
is
> [WARN].
> [2/19/03 13:55:20:187 EST] 64a2911f SystemOut     O log4j: Category
> org.apache.commons.httpclient set to WARN
> [2/19/03 13:55:20:187 EST] 64a2911f SystemOut     O log4j: Parsing
> appender
> named "cactus".
> [2/19/03 13:55:20:187 EST] 64a2911f SystemOut     O log4j: Appender
> "cactus" was already parsed.
> [2/19/03 13:55:20:217 EST] 64a2911f SystemOut     O log4j: Handling
> log4j.additivity.org.apache.commons.httpclient=[false]
> [2/19/03 13:55:20:217 EST] 64a2911f SystemOut     O log4j: Setting
> additivity for "org.apache.commons.httpclient" to false
> [2/19/03 13:55:20:227 EST] 64a2911f SystemOut     O log4j: Parsing for
> [httpclient] with value=[WARN, cactus].
> [2/19/03 13:55:20:227 EST] 64a2911f SystemOut     O log4j: Level token
is
> [WARN].
> [2/19/03 13:55:20:227 EST] 64a2911f SystemOut     O log4j: Category
> httpclient set to WARN
> [2/19/03 13:55:20:227 EST] 64a2911f SystemOut     O log4j: Parsing
> appender
> named "cactus".
> [2/19/03 13:55:20:227 EST] 64a2911f SystemOut     O log4j: Appender
> "cactus" was already parsed.
> [2/19/03 13:55:20:227 EST] 64a2911f SystemOut     O log4j: Handling
> log4j.additivity.httpclient=[false]
> [2/19/03 13:55:20:227 EST] 64a2911f SystemOut     O log4j: Setting
> additivity for "httpclient" to false
> [2/19/03 13:55:20:227 EST] 64a2911f SystemOut     O log4j: Parsing for
> [org.apache.cactus] with value=[DEBUG, cactus].
> [2/19/03 13:55:20:227 EST] 64a2911f SystemOut     O log4j: Level token
is
> [DEBUG].
> [2/19/03 13:55:20:227 EST] 64a2911f SystemOut     O log4j: Category
> org.apache.cactus set to DEBUG
> [2/19/03 13:55:20:227 EST] 64a2911f SystemOut     O log4j: Parsing
> appender
> named "cactus".
> [2/19/03 13:55:20:227 EST] 64a2911f SystemOut     O log4j: Appender
> "cactus" was already parsed.
> [2/19/03 13:55:20:227 EST] 64a2911f SystemOut     O log4j: Handling
> log4j.additivity.org.apache.cactus=[false]
> [2/19/03 13:55:20:227 EST] 64a2911f SystemOut     O log4j: Setting
> additivity for "org.apache.cactus" to false
> [2/19/03 13:55:20:247 EST] 64a2911f SystemOut     O log4j: Finished
> configuring.
>
> The file is created cactus.log, but it is empty.
>
> Thanks,
> Nell
>
> Nell Rehn
> WebSphere Advanced Design and Technology
> hrehn@us.ibm.com
> (919) 254-1088 t/l 444-1088
>
>
>
>                       "Vincent Massol"
>                       <vmassol@octo.com        To:       "'Cactus
Users
> List'" <cactus-user@jakarta.apache.org>
>                       >                        cc:       Helen
> Rehn/Durham/IBM@IBMUS
>                                                Subject:  RE: Behavior
of
> getRequestURL in ServletTestCase
>                       02/19/2003 01:46
>                       PM
>                       Please respond to
>                       "Cactus Users
>                       List"
>
>
>
>
>
>
> Hi Helen,
>
> 1/ WRT the attachement, there seems to be something wrong with jakarta
> mailing lists as this is not the first time I'm observing this lately.
I
> will ask the admin.
>
> 2/ The log you have pasted below is the client side log. Unfortunately
> it does not contain any server side logs. I believe this is because
> you're running the tests using the Cactus ServletTestRunner and thus
> your log4j.properties defines both the client side and server side
log4j
> configuration... The issue is that it point to the *same* log file and
> there is an append = false, thus the client side of Cactus erases the
> file for each test... The solution is to modify the line:
> log4j.appender.cactus.Append=false to
log4j.appender.cactus.Append=true.
>
> Make sure you manually delete the file before starting the tests as it
> won't be cleared as before. Can you then resend it?
>
> Thanks
> -Vincent
>
> > -----Original Message-----
> > From: Helen Rehn [mailto:hrehn@us.ibm.com]
> > Sent: 19 February 2003 18:53
> > To: Cactus Users List
> > Subject: RE: Behavior of getRequestURL in ServletTestCase
> >
> >
> >
> >
> >
> > I'm not sure what happened to my attachment.  I've pasted the log
here
> > instead.
> >
> > 12:33:12,712 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpClient
> > - HttpClient.startSession(String,int,boolean): Host:localhost
> Port:9082
> > HTTPS:false
> > 12:33:12,732 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.HttpConnection
> > 12:33:12,732 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.open()
> > 12:33:12,742 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.execute(HttpState,HttpConnection)
> > 12:33:12,752 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.execute(): looping.
> > 12:33:12,752 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.writeRequest(HttpState,HttpConnection)
> > 12:33:12,752 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.writeRequestLine(HttpState,HttpConnection)
> > 12:33:12,752 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.write(byte[])
> > 12:33:12,752 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - >> "GET
> >
>
/test/ServletRedirector?Cactus_TestMethod=testRequestURL&Cactus_TestClas
> s=
> > RequestURLTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST
> >  HTTP/1.1
> > "
> > 12:33:12,752 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
> > 12:33:13,172 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.write(byte[])
> > 12:33:13,172 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - >> "Content-type: application/x-www-form-urlencoded
> > "
> > 12:33:13,172 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.write(byte[])
> > 12:33:13,172 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - >> "Host: localhost
> > "
> > 12:33:13,172 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.write(byte[])
> > 12:33:13,172 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - >> "User-Agent: Jakarta HTTP Client/2.0.0a1
> > "
> > 12:33:13,172 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.writeLine()
> > 12:33:13,172 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - >> \r\n
> > 12:33:13,182 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.readResponse(HttpState,HttpConnection)
> > 12:33:13,182 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.readStatusLine(HttpState,HttpConnection)
> > 12:33:13,182 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.readLine()
> > 12:33:13,523 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - << "HTTP/1.1 200 OK" [\r\n]
> > 12:33:13,523 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.readResponseHeaders(HttpState,HttpConnection)
> > 12:33:13,523 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.readLine()
> > 12:33:13,523 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - << "Server: WebSphere Application Server/5.0" [\r\n]
> > 12:33:13,523 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.readLine()
> > 12:33:13,523 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - << "Set-Cookie: JSESSIONID=00000YZTJ0GOBIH4VXBNU2GESUI:-1;Path=/"
> [\r\n]
> > 12:33:13,523 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.readLine()
> > 12:33:13,523 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - << "Cache-Control: no-cache="set-cookie,set-cookie2"" [\r\n]
> > 12:33:13,523 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.readLine()
> > 12:33:13,523 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - << "Expires: Thu, 01 Dec 1994 16:00:00 GMT" [\r\n]
> > 12:33:13,523 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.readLine()
> > 12:33:13,523 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - << "Content-Language: en-US" [\r\n]
> > 12:33:13,523 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.readLine()
> > 12:33:13,523 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - << "Content-Length: 0" [\r\n]
> > 12:33:13,523 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.readLine()
> > 12:33:13,523 [Servlet.Engine.Transports : 1] DEBUG httpclient.Cookie
> > - Cookie.parse():  Adding cookie -
> > JSESSIONID=00000YZTJ0GOBIH4VXBNU2GESUI:-1; $Path=/
> > 12:33:13,523 [Servlet.Engine.Transports : 1] DEBUG methods.GetMethod
> > - GetMethod.readResponseBody(HttpState,HttpConnection)
> > 12:33:13,523 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.readResponseBody(HttpState,HttpConnection)
> > 12:33:13,533 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpClient
> > - HttpClient.startSession(String,int,boolean): Host:localhost
> Port:9082
> > HTTPS:false
> > 12:33:13,533 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.HttpConnection
> > 12:33:13,533 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.open()
> > 12:33:13,533 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.execute(HttpState,HttpConnection)
> > 12:33:13,533 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.execute(): looping.
> > 12:33:13,533 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.writeRequest(HttpState,HttpConnection)
> > 12:33:13,533 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.writeRequestLine(HttpState,HttpConnection)
> > 12:33:13,533 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.write(byte[])
> > 12:33:13,533 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - >> "GET /test/ServletRedirector?Cactus_Service=GET_RESULTS
HTTP/1.1
> > "
> > 12:33:13,533 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
> > 12:33:13,533 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.write(byte[])
> > 12:33:13,533 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - >> "Content-type: application/x-www-form-urlencoded
> > "
> > 12:33:13,533 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.write(byte[])
> > 12:33:13,533 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - >> "Host: localhost
> > "
> > 12:33:13,533 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.write(byte[])
> > 12:33:13,533 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - >> "User-Agent: Jakarta HTTP Client/2.0.0a1
> > "
> > 12:33:13,533 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.writeLine()
> > 12:33:13,533 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - >> \r\n
> > 12:33:13,543 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.readResponse(HttpState,HttpConnection)
> > 12:33:13,543 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.readStatusLine(HttpState,HttpConnection)
> > 12:33:13,543 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.readLine()
> > 12:33:13,543 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - << "HTTP/1.1 200 OK" [\r\n]
> > 12:33:13,543 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.readResponseHeaders(HttpState,HttpConnection)
> > 12:33:13,543 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.readLine()
> > 12:33:13,543 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - << "Server: WebSphere Application Server/5.0" [\r\n]
> > 12:33:13,543 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.readLine()
> > 12:33:13,543 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - << "Content-Language: en-US" [\r\n]
> > 12:33:13,543 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.readLine()
> > 12:33:13,543 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - << "Transfer-Encoding: chunked" [\r\n]
> > 12:33:13,543 [Servlet.Engine.Transports : 1] DEBUG
> > httpclient.HttpConnection       - HttpConnection.readLine()
> > 12:33:13,543 [Servlet.Engine.Transports : 1] DEBUG methods.GetMethod
> > - GetMethod.readResponseBody(HttpState,HttpConnection)
> > 12:33:13,543 [Servlet.Engine.Transports : 1] DEBUG
> httpclient.HttpMethod
> > - HttpMethodBase.readResponseBody(HttpState,HttpConnection)
> > 12:33:13,543 [Servlet.Engine.Transports : 1] INFO  httpclient.wire
> > - << "<webresult><exception
> >
>
classname="junit.framework.AssertionFailedError"><message><![CDATA[reque
> st
> > .getRequestURL()
> >  was
> >
>
http://localhost:80/testnullnull]]></message><stacktrace><![CDATA[junit.
> fr
> > amework.AssertionFailedError:
> >  request.getRequestURL() was http://localhost:80/testnullnull
> >       at junit.framework.Assert.fail(Assert.java:51)
> >       at RequestURLTest.testRequestURL(RequestURLTest.java:24)
> >       at java.lang.reflect.Method.invoke(Native Method)
> >       at
> >
>
org.apache.cactus.AbstractTestCase.runServerTest(AbstractTestCase.java:3
> 32
> > )
> >       at
> >
>
org.apache.cactus.AbstractTestCase.runBareServerTest(AbstractTestCase.ja
> va
> > :235)
> >       at
> >
>
org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCal
> le
> > r.java:149)
> >       at
> >
>
org.apache.cactus.server.AbstractWebTestController.dispatch87_handleRequ
> es
> > t(LogAspect.aj(1k):125)
> >       at
> >
>
org.apache.cactus.server.AbstractWebTestController.around87_handleReques
> t(
> > LogAspect.aj(1k):1156)
> >       at
> >
>
org.apache.cactus.server.AbstractWebTestController.handleRequest(LogAspe
> ct
> > .aj(1k):101)
> >       at
> >
>
org.apache.cactus.server.ServletTestRedirector.dispatch113_doPost(LogAsp
> ec
> > t.aj(1k):123)
> >       at
> >
>
org.apache.cactus.server.ServletTestRedirector.around113_doPost(LogAspec
> t.
> > aj(1k):1156)
> >       at
> >
>
org.apache.cactus.server.ServletTestRedirector.doPost(LogAspect.aj(1k):1
> 09
> > )
> >       at
> >
>
org.apache.cactus.server.ServletTestRedirector.dispatch112_doGet(LogAspe
> ct
> > .aj(1k):96)
> >       at
> >
>
org.apache.cactus.server.ServletTestRedirector.around112_doGet(LogAspect
> .a
> > j(1k):1156)
> >       at
> >
>
org.apache.cactus.server.ServletTestRedirector.doGet(LogAspect.aj(1k):92
> )
> >       at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> >       at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >       at
> >
>
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictSe
> rv
> > letInstance.java:110)
> >       at
> >
>
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLi
> fe
> > cycleServlet.java:174)
> >       at
> >
>
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycle
> Se
> > rvlet.java:313)
> >       at
> >
>
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLif
> ec
> > ycleServlet.java:116)
> >       at
> >
>
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.
> ja
> > va:258)
> >       at
> >
>
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(Vali
> dS
> > ervletReferenceState.java:42)
> >       at
> >
>
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(Servle
> tI
> > nstanceReference.java:40)
> >       at
> >
>
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
> tc
> > h(WebAppRequestDispatcher.java:872)
> >       at
> >
>
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
> qu
> > estDispatcher.java:491)
> >       at
> >
>
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
> ue
> > stDispatcher.java:173)
> >       at
> >
>
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:7
> 9)
> >       at
> >
>
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
> ok
> > er.java:199)
> >       at
> >
>
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
> on
> > (CachedInvocation.java:71)
> >       at
> >
>
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
> tR
> > equestProcessor.java:182)
> >       at
> >
>
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
> te
> > ner.java:331)
> >       at
> >
>
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
> .j
> > ava:56)
> >       at
> >
>
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
> 43
> > 2)
> >       at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
> >       at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)
> > ]]></stacktrace></exception></webresult>"
> >
> > Nell Rehn
> > WebSphere Advanced Design and Technology
> > hrehn@us.ibm.com
> > (919) 254-1088 t/l 444-1088
> >
> >
> >
> >                       Helen
> >                       Rehn/Durham/IBM@I        To:       "Cactus
Users
> > List" <cactus-user@jakarta.apache.org>
> >                       BMUS                     cc:
> >                                                Subject:  RE:
Behavior
> of
> > getRequestURL in ServletTestCase
> >                       02/19/2003 12:42
> >                       PM
> >                       Please respond to
> >                       "Cactus Users
> >                       List"
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi,
> >
> > I do actually have 1.4.1, I was wrong about that.
> >
> > I've attached the server-side log.  The test I ran simply checked
the
> > request.getRequestURL to see if it contained "9082" and failed if it
> did
> > not.
> >
> > (See attached file: CACTUS~1.LOG)
> >
> > Nell Rehn
> > WebSphere Advanced Design and Technology
> > hrehn@us.ibm.com
> > (919) 254-1088 t/l 444-1088
> >
> >
> >
> >                       "Vincent Massol"
> >
> >                       <vmassol@octo.com        To:       "'Cactus
> Users
> > List'" <cactus-user@jakarta.apache.org>
> >                       >                        cc:       Helen
> > Rehn/Durham/IBM@IBMUS
> >                                                Subject:  RE:
Behavior
> of
> > getRequestURL in ServletTestCase
> >                       02/19/2003 08:51
> >
> >                       AM
> >
> >                       Please respond to
> >
> >                       "Cactus Users
> >
> >                       List"
> >
> >
> >
> >
> >
> >
> >
> > Hi Helen,
> >
> > One thing that you should do is use Cactus 1.4.1 as it contains
> several
> > bug fixes from 1.4.
> >
> > Then, you should enable cactus logging (see the configuration howto
on
> > the cactus web site for how to perform this) and send us the
generated
> > log files.
> >
> > Thanks
> > -Vincent
> >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org





Mime
View raw message