jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.com>
Subject RE: Running the Sample Servlet on JBoss 3.0.2 and Jetty
Date Wed, 25 Sep 2002 21:50:19 GMT
Hi Chris,

You have almost everything all right... The only error is your
assumption on how to start the tests. There is a page on the cactus web
page which lists all the possibilities you have to trigger a cactus
test: http://jakarta.apache.org/cactus/howto_runner.html

-Vincent

> -----Original Message-----
> From: Chris Velevitch [mailto:chris.velevitch@dante.com.au]
> Sent: 24 September 2002 09:04
> To: cactus-user@jakarta.apache.org
> Subject: Running the Sample Servlet on JBoss 3.0.2 and Jetty
> 
> I'm new to Cactus, Tomcat, JBoss and Jetty and I have a problem in
running
> the sample Cactus Servlet in JBoss and Jetty.
> 
> After running the sample servlet on Tomcat using ant test.tomcat.40, I
> moved
> the result test.war file into the JBoss deployment directory. JBoss
seemed
> to deploy the file without any problems:-
> 
>     17:50:20,328 INFO  [MainDeployer] Deployed package:
> file:/C:/Java/jboss/server/default/conf/jboss-service.xml
>     17:50:20,338 INFO  [Server] JBoss (MX MicroKernel) [3.0.2
> Date:200208271339] Started in 0m:28s:501ms
>     17:52:30,645 INFO  [MainDeployer] Starting deployment of package:
> file:/C:/Java/jboss/server/default/deploy/test.war
>     17:52:31,246 INFO  [jbossweb] Registered
> jboss.web:Jetty=0,JBossWebApplicationContext=2,context=/test
>     17:52:31,336 INFO  [jbossweb] Extract
>
jar:file:/C:/Java/jboss/server/default/tmp/deploy/server/default/deploy/
te
> st
> .war/63.test.war!/ to
> C:\DOCUME~1\chris\LOCALS~1\Temp\Jetty__8080___test\webapp
>     17:52:33,559 INFO  [jbossweb] Started
>
WebApplicationContext[/test,jar:file:/C:/Java/jboss/server/default/tmp/d
ep
> lo
> y/server/default/deploy/test.war/63.test.
> war!/]
>     17:52:33,699 INFO  [jbossweb] successfully deployed
>
file:/C:/Java/jboss/server/default/tmp/deploy/server/default/deploy/test
.w
> ar
> /63.test.war to /test
>     17:52:33,709 INFO  [MainDeployer] Deployed package:
> file:/C:/Java/jboss/server/default/deploy/test.war
> 
> So I then pointed my browser to
> http://localhost:8080/test/ServletRedirector?Cactus_Service=RUN_TEST
to
> run
> the test.
> 
> I don't see any output displayed in either the browser nor in the
JBoss
> console. The server log has some output but it not the same as the
output
> that is displayed in the tomcat console:-
> 
>     2002-09-24 17:54:10,559 DEBUG
> [org.apache.cactus.server.ServletTestRedirector]
> <doGet([/test+/ServletRedirector+null
>     GET /test/ServletRedirector?Cactus_Service=RUN_TEST HTTP/1.1
>     Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/vnd.ms-excel, application/msword, application/vnd.ms-
> powerpoint,
> */*
>     Accept-Language: en-au
>     Accept-Encoding: gzip, deflate
>     User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
>     Host: localhost:8080
>     Connection: keep-alive
> 
>     ], [HTTP/1.1 200 OK
>     Date: Tue, 24 Sep 2002 07:54:10 GMT
>     Server: Jetty/RELEASE_MAJOR_MINOR (Windows 2000 5.0 x86)
>     Servlet-Engine: Jetty/RELEASE_MAJOR_MINOR (Servlet 2.3; JSP 1.2;
java
> 1.4.0_02)
> 
>     ])
>     2002-09-24 17:54:10,559 DEBUG
> [org.apache.cactus.server.ServletTestRedirector]
> <doPost([/test+/ServletRedirector+null
>     GET /test/ServletRedirector?Cactus_Service=RUN_TEST HTTP/1.1
>     Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/vnd.ms-excel, application/msword, application/vnd.ms-
> powerpoint,
> */*
>     Accept-Language: en-au
>     Accept-Encoding: gzip, deflate
>     User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
>     Host: localhost:8080
>     Connection: keep-alive
> 
>     ], [HTTP/1.1 200 OK
>     Date: Tue, 24 Sep 2002 07:54:10 GMT
>     Server: Jetty/RELEASE_MAJOR_MINOR (Windows 2000 5.0 x86)
>     Servlet-Engine: Jetty/RELEASE_MAJOR_MINOR (Servlet 2.3; JSP 1.2;
java
> 1.4.0_02)
> 
>     ])
>     2002-09-24 17:54:10,559 DEBUG
> [org.apache.cactus.server.ServletTestRedirector] ------------- Start
> Servlet
> service
>     2002-09-24 17:54:10,579 DEBUG
> [org.apache.cactus.server.ServletImplicitObjects]
> <setHttpServletRequest([/test+/ServletRedirector+null
>     GET /test/ServletRedirector?Cactus_Service=RUN_TEST HTTP/1.1
>     Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/vnd.ms-excel, application/msword, application/vnd.ms-
> powerpoint,
> */*
>     Accept-Language: en-au
>     Accept-Encoding: gzip, deflate
>     User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
>     Host: localhost:8080
>     Connection: keep-alive
> 
>     ])
>     2002-09-24 17:54:10,579 DEBUG
> [org.apache.cactus.server.ServletImplicitObjects]
>setHttpServletRequest
>     2002-09-24 17:54:10,579 DEBUG
> [org.apache.cactus.server.ServletImplicitObjects]
> <setHttpServletResponse([HTTP/1.1 200 OK
>     Date: Tue, 24 Sep 2002 07:54:10 GMT
>     Server: Jetty/RELEASE_MAJOR_MINOR (Windows 2000 5.0 x86)
>     Servlet-Engine: Jetty/RELEASE_MAJOR_MINOR (Servlet 2.3; JSP 1.2;
java
> 1.4.0_02)
> 
>     ])
>     2002-09-24 17:54:10,579 DEBUG
> [org.apache.cactus.server.ServletImplicitObjects]
>setHttpServletResponse
>     2002-09-24 17:54:10,579 DEBUG
> [org.apache.cactus.server.ServletImplicitObjects]
>
<setServletContext([org.mortbay.jetty.servlet.ServletHandler$Context@7b1
d6
> 4]
> )
>     2002-09-24 17:54:10,579 DEBUG
> [org.apache.cactus.server.ServletImplicitObjects] >setServletContext
>     2002-09-24 17:54:10,579 DEBUG
> [org.apache.cactus.server.ServletImplicitObjects]
>
<setServletConfig([org.mortbay.jetty.servlet.ServletHolder$Config@c6a99d
])
>     2002-09-24 17:54:10,579 DEBUG
> [org.apache.cactus.server.ServletImplicitObjects] >setServletConfig
>     2002-09-24 17:54:10,599 DEBUG
> [org.apache.cactus.server.ServletTestController]
>
<handleRequest([org.apache.cactus.server.ServletImplicitObjects@762fc7])
>     2002-09-24 17:54:10,629 DEBUG
[org.apache.cactus.server.ServletUtil]
> <getQueryStringParameter([Cactus_Service=RUN_TEST], [Cactus_Service])
>     2002-09-24 17:54:10,669 DEBUG
[org.apache.cactus.server.ServletUtil]
> >getQueryStringParameter = [RUN_TEST]
>     2002-09-24 17:54:10,669 DEBUG
> [org.apache.cactus.server.AbstractWebTestController] Service to call =
> RUN_TEST
>     2002-09-24 17:54:10,689 DEBUG
[org.apache.cactus.ServiceEnumeration]
> <equals([RUN_TEST])
>     2002-09-24 17:54:10,689 DEBUG
[org.apache.cactus.ServiceEnumeration]
> >equals = [false]
>     2002-09-24 17:54:10,699 DEBUG
[org.apache.cactus.ServiceEnumeration]
> <equals([RUN_TEST])
>     2002-09-24 17:54:10,699 DEBUG
[org.apache.cactus.ServiceEnumeration]
> >equals = [false]
>     2002-09-24 17:54:10,699 DEBUG
[org.apache.cactus.ServiceEnumeration]
> <equals([RUN_TEST])
>     2002-09-24 17:54:10,699 DEBUG
[org.apache.cactus.ServiceEnumeration]
> >equals = [true]
>     2002-09-24 17:54:10,699 DEBUG
> [org.apache.cactus.server.ServletTestController] >handleRequest
>     2002-09-24 17:54:10,699 DEBUG
> [org.apache.cactus.server.ServletTestRedirector] >doPost
>     2002-09-24 17:54:10,699 DEBUG
> [org.apache.cactus.server.ServletTestRedirector] >doGet
> 
> 
> How can I tell if the sample Cactus servlet is working?
> 
> 
> 
> Chris
> ---
> Chris Velevitch, Senior Consultant
> +61 2 8296 9028, http://www.dante.com.au
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>



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


Mime
View raw message