You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by "Southard, Don" <Do...@sunmed.com> on 2003/04/28 19:14:32 UTC

Help with initial setup

I'm trying to prove to co-workers that Cactus is worth using.
Unfortunately, I'm stuck and I don't know where to go next for answers (I've
ordered a book but it won't be here for a few days).  I followed the docs
and samples on Jakarta's website and made the following changes to the
following files.  What did I miss?

We have a J2EE app running on Weblogic 7.0.  

I've made the following changes to the web.xml file:
	  <!-- Cactus Redirectors -->
	  <filter>
	        <filter-name>FilterRedirector</filter-name>
	
<filter-class>org.apache.cactus.server.FilterTestRedirector</filter-class>
	  </filter>
	    
	  <filter-mapping>
	        <filter-name>FilterRedirector</filter-name>
	        <url-pattern>/FilterRedirector/</url-pattern>
	  </filter-mapping>

	<!-- Cactus Servlets  -->
	  <servlet>
	     <servlet-name>ServletRedirector</servlet-name>
	
<servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class
>
	  </servlet>
	  
	  <servlet>
	     <servlet-name>ServletTestRunner</servlet-name>
	
<servlet-class>org.apache.cactus.server.runner.ServletTestRunner</servlet-cl
ass>
	  </servlet>
	  
	  <servlet>
	        <servlet-name>JspRedirector</servlet-name>
	        <jsp-file>/somewhere/jspRedirector.jsp</jsp-file>
	  </servlet>
	  <!-- Cactus Servlet Mappings -->
	  <servlet-mapping>
	        <servlet-name>ServletRedirector</servlet-name>
	        <url-pattern>/ServletRedirector/</url-pattern>
	  </servlet-mapping>
	  
	  <servlet-mapping>
	     <servlet-name>ServletTestRunner</servlet-name>
	     <url-pattern>/ServletTestRunner</url-pattern>
	  </servlet-mapping>
	  <!-- Cactus jsp redirector -->
	  <servlet-mapping>
	        <servlet-name>JspRedirector</servlet-name>
	        <url-pattern>/JspRedirector/</url-pattern>
	  </servlet-mapping>

I've created the following test servlet (see attached).
	 <<TestUserManagerServlet.java>> 

I see my debuger messages from the suite and constructor.  But I get the
following error in the weblogic console (see attached text file).

	 <<cactus-error.txt>> 

Re: Help with initial setup

Posted by Jason Arndt <ja...@yahoo.com>.
Have you validated that your cactus.properties file is
correct?  Are you sure the web server is running?

Jason
--- "Southard, Don" <Do...@sunmed.com> wrote:
> I'm trying to prove to co-workers that Cactus is
> worth using.
> Unfortunately, I'm stuck and I don't know where to
> go next for answers (I've
> ordered a book but it won't be here for a few days).
>  I followed the docs
> and samples on Jakarta's website and made the
> following changes to the
> following files.  What did I miss?
> 
> We have a J2EE app running on Weblogic 7.0.  
> 
> I've made the following changes to the web.xml file:
> 	  <!-- Cactus Redirectors -->
> 	  <filter>
> 	        <filter-name>FilterRedirector</filter-name>
> 	
>
<filter-class>org.apache.cactus.server.FilterTestRedirector</filter-class>
> 	  </filter>
> 	    
> 	  <filter-mapping>
> 	        <filter-name>FilterRedirector</filter-name>
> 	       
> <url-pattern>/FilterRedirector/</url-pattern>
> 	  </filter-mapping>
> 
> 	<!-- Cactus Servlets  -->
> 	  <servlet>
> 	     <servlet-name>ServletRedirector</servlet-name>
> 	
>
<servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class
> >
> 	  </servlet>
> 	  
> 	  <servlet>
> 	     <servlet-name>ServletTestRunner</servlet-name>
> 	
>
<servlet-class>org.apache.cactus.server.runner.ServletTestRunner</servlet-cl
> ass>
> 	  </servlet>
> 	  
> 	  <servlet>
> 	        <servlet-name>JspRedirector</servlet-name>
> 	       
> <jsp-file>/somewhere/jspRedirector.jsp</jsp-file>
> 	  </servlet>
> 	  <!-- Cactus Servlet Mappings -->
> 	  <servlet-mapping>
> 	       
> <servlet-name>ServletRedirector</servlet-name>
> 	       
> <url-pattern>/ServletRedirector/</url-pattern>
> 	  </servlet-mapping>
> 	  
> 	  <servlet-mapping>
> 	     <servlet-name>ServletTestRunner</servlet-name>
> 	     <url-pattern>/ServletTestRunner</url-pattern>
> 	  </servlet-mapping>
> 	  <!-- Cactus jsp redirector -->
> 	  <servlet-mapping>
> 	        <servlet-name>JspRedirector</servlet-name>
> 	        <url-pattern>/JspRedirector/</url-pattern>
> 	  </servlet-mapping>
> 
> I've created the following test servlet (see
> attached).
> 	 <<TestUserManagerServlet.java>> 
> 
> I see my debuger messages from the suite and
> constructor.  But I get the
> following error in the weblogic console (see
> attached text file).
> 
> 	 <<cactus-error.txt>> 
> 

> ATTACHMENT part 2 application/octet-stream
name=TestUserManagerServlet.java
> DEBUG 2003-04-28 10:40:53,887
> (TestUserManagerServlet.java:30) - suite
> DEBUG 2003-04-28 10:40:53,887
> (TestUserManagerServlet.java:22) - in constructor
> DEBUG 2003-04-28 10:40:53,887
> (TestUserManagerServlet.java:24) - after creating
> userManager
> DEBUG 2003-04-28 10:40:53,887
> (AbstractTestCase.java:191) - ------------- Test:
> testGetAllPermissions
> INFO 2003-04-28 10:40:53,887
> (Log4JCategoryLog.java:88) - >> "GET
>
/sunmed/um/ServletRedirector?Cactus_TestMethod=testGetAllPermissions&Cactus_TestClass=com.sunmed.um.test.TestUserManagerServlet&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST
> HTTP/1.1"
> INFO 2003-04-28 10:40:53,887
> (Log4JCategoryLog.java:88) - >> "Content-type:
> application/x-www-form-urlencoded"
> INFO 2003-04-28 10:40:53,887
> (Log4JCategoryLog.java:88) - >> "Host: 10.7.0.110"
> INFO 2003-04-28 10:40:53,887
> (Log4JCategoryLog.java:88) - >> "User-Agent: Jakarta
> HTTP Client/2.0.0a1"
> INFO 2003-04-28 10:40:53,887
> (Log4JCategoryLog.java:88) - >> \r\n
> INFO 2003-04-28 10:40:53,887
> (Log4JCategoryLog.java:88) - << "HTTP/1.1 404 Not
> Found" [\r\n]
> INFO 2003-04-28 10:40:53,903
> (Log4JCategoryLog.java:88) - << "Date: Mon, 28 Apr
> 2003 16:40:53 GMT" [\r\n]
> INFO 2003-04-28 10:40:53,903
> (Log4JCategoryLog.java:88) - << "Server: WebLogic
> WebLogic Server 7.0 SP2  Sun Jan 26 23:09:32 PST
> 2003 234192 " [\r\n]
> INFO 2003-04-28 10:40:53,903
> (Log4JCategoryLog.java:88) - << "Content-Length:
> 1278" [\r\n]
> INFO 2003-04-28 10:40:53,903
> (Log4JCategoryLog.java:88) - << "Content-Type:
> text/html" [\r\n]
> INFO 2003-04-28 10:40:53,903
> (Log4JCategoryLog.java:88) - << "Connection: Close"
> [\r\n]
> INFO 2003-04-28 10:40:53,903
> (Log4JCategoryLog.java:88) - << "<!DOCTYPE HTML
> PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN">
> <HTML>
> <HEAD>
> <TITLE>Error 404--Not Found</TITLE>
> <META NAME="GENERATOR" CONTENT="WebLogic htmlKona
> WebLogic Server 7.0 SP2  Sun Jan 26 23:09:32 PST
> 2003 234192 ">
> </HEAD>
> <BODY bgcolor="white">
> <FONT FACE=Helvetica><BR CLEAR=all>
> <TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all>
> <FONT FACE="Helvetica" COLOR="black"
> SIZE="3"><H2>Error 404--Not Found</H2>
> </FONT></TD></TR>
> </TABLE>
> <TABLE border=0 width=100% cellpadding=10><TR><TD
> VALIGN=top WIDTH=100% BGCOLOR=white><FONT
> FACE="Courier New"><FONT FACE="Helvetica"
> SIZE="3"><H3>From RFC 2068 <i>Hypertext Transfer
> Protocol -- HTTP/1.1</i>:</H3>
> </FONT><FONT FACE="Helvetica" SIZE="3"><H4>10.4.5
> 404 Not Found</H4>
> </FONT><P><FONT FACE="Courier New">The server has
> not found anything matching the Request-URI. No
> indication is given of whether the condition is
> temporary or permanent.</p><p>If the server does not
> wish to make this information available to the
> client, the status code 403 (Forbidden) can be used
> instead. The 410 (Gone) status code SHOULD be used
> if the server knows, through some internally
> configurable mechanism, that an old resource is
> permanently unavailable and has no forwarding
> address.</FONT></P>
> </FONT></TD></TR>
> </TABLE>
> 
> </BODY>
> </HTML>"
> INFO 2003-04-28 10:40:53,903
> (Log4JCategoryLog.java:88) - >> "GET
>
/sunmed/um/ServletRedirector?Cactus_Service=GET_RESULTS
> HTTP/1.1"
> INFO 2003-04-28 10:40:53,903
> (Log4JCategoryLog.java:88) - >> "Content-type:
> application/x-www-form-urlencoded"
> INFO 2003-04-28 10:40:53,903
> (Log4JCategoryLog.java:88) - >> "Host: 10.7.0.110"
> INFO 2003-04-28 10:40:53,903
> (Log4JCategoryLog.java:88) - >> "User-Agent: Jakarta
> HTTP Client/2.0.0a1"
> INFO 2003-04-28 10:40:53,903
> (Log4JCategoryLog.java:88) - >> \r\n
> INFO 2003-04-28 10:40:53,918
> (Log4JCategoryLog.java:88) - << "HTTP/1.1 404 Not
> Found" [\r\n]
> INFO 2003-04-28 10:40:53,918
> (Log4JCategoryLog.java:88) - << "Date: Mon, 28 Apr
> 2003 16:40:53 GMT" [\r\n]
> INFO 2003-04-28 10:40:53,918
> (Log4JCategoryLog.java:88) - << "Server: WebLogic
> WebLogic Server 7.0 SP2  Sun Jan 26 23:09:32 PST
> 2003 234192 " [\r\n]
> INFO 2003-04-28 10:40:53,918
> (Log4JCategoryLog.java:88) - << "Content-Length:
> 1278" [\r\n]
> INFO 2003-04-28 10:40:53,918
> (Log4JCategoryLog.java:88) - << "Content-Type:
> text/html" [\r\n]
> INFO 2003-04-28 10:40:53,918
> (Log4JCategoryLog.java:88) - << "Connection: Close"
> [\r\n]
> INFO 2003-04-28 10:40:53,918
> (Log4JCategoryLog.java:88) - << "<!DOCTYPE HTML
> PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN">
> <HTML>
> <HEAD>
> <TITLE>Error 404--Not Found</TITLE>
> <META NAME="GENERATOR" CONTENT="WebLogic htmlKona
> WebLogic Server 7.0 SP2  Sun Jan 26 23:09:32 PST
> 2003 234192 ">
> </HEAD>
> <BODY bgcolor="white">
> <FONT FACE=Helvetica><BR CLEAR=all>
> <TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all>
> <FONT FACE="Helvetica" COLOR="black"
> SIZE="3"><H2>Error 404--Not Found</H2>
> </FONT></TD></TR>
> </TABLE>
> <TABLE border=0 width=100% cellpadding=10><TR><TD
> VALIGN=top WIDTH=100% BGCOLOR=white><FONT
> FACE="Courier New"><FONT FACE="Helvetica"
> SIZE="3"><H3>From RFC 2068 <i>Hypertext Transfer
> Protocol -- HTTP/1.1</i>:</H3>
> </FONT><FONT FACE="Helvetica" SIZE="3"><H4>10.4.5
> 404 Not Found</H4>
> </FONT><P><FONT FACE="Courier New">The server has
> not found anything matching the Request-URI. No
> indication is given of whether the condition is
> temporary or permanent.</p><p>If the server does not
> wish to make this information available to the
> client, the status code 403 (Forbidden) can be used
> instead. The 410 (Gone) status code SHOULD be used
> if the server knows, through some internally
> configurable mechanism, that an old resource is
> permanently unavailable and has no forwarding
> address.</FONT></P>
> </FONT></TD></TR>
> </TABLE>
> 
> </BODY>
> </HTML>"
> DEBUG 2003-04-28 10:40:53,918
> (AbstractTestCase.java:197) - Exception in test
> org.apache.cactus.util.ChainedRuntimeException:
> Failed to get the test results. This is probably due
>  to an error that happened on the server side when
> trying to execute the tests. Here is what was
> returned by the server : [<!DOCTYPE HTML PUBLIC
> "-//W3C//DTD HTML 4.0 Draft//EN">
> <HTML>
> <HEAD>
> <TITLE>Error 404--Not Found</TITLE>
> <META NAME="GENERATOR" CONTENT="WebLogic htmlKona
> WebLogic Server 7.0 SP2  Sun Jan 26 23:09:32 PST
> 2003 234192 ">
> </HEAD>
> <BODY bgcolor="white">
> <FONT FACE=Helvetica><BR CLEAR=all>
> <TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all>
> <FONT FACE="Helvetica" COLOR="black"
> SIZE="3"><H2>Error 404--Not Found</H2>
> </FONT></TD></TR>
> </TABLE>
> <TABLE border=0 width=100% cellpadding=10><TR><TD
> VALIGN=top WIDTH=100% BGCOLOR=white><FONT
> FACE="Courier New"><FONT FACE="Helvetica"
> SIZE="3"><H3>From RFC 2068 <i>Hypertext Transfer
> Protocol -- HTTP/
> 1.1</i>:</H3>
> </FONT><FONT FACE="Helvetica" SIZE="3"><H4>10.4.5
> 404 Not Found</H4>
> </FONT><P><FONT FACE="Courier New">The server has
> not found anything matching the Request-URI. No
> indication is given of whether the condition is
> temporary or permanent.</p><p>If the server does not
> wish to make this information available to the
> client, the status code 403 (Forbidden) can be used
> instead. The 410 (Gone) status code SHOULD be used
> if the server knows, through some internally
> configurable mechanism, that an old resource is
> permanently unavailable and has no forwarding
> address.</FONT></P>
> </FONT></TD></TR>
> </TABLE>
> 
> </BODY>
> 
=== message truncated ===>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
cactus-user-help@jakarta.apache.org


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com