Re: ServletRunner.getResponse() ClassNotFoundException

Adam Hardy <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
Adam Hardy on 02/04/08 22:28, wrote:
> I've got a problem running my test with HttpUnit and ServletRunner. It's looking 
> for tomcat's JspServlet, probably due to something I need to fix on my classpath 
> in Eclipse (this works in the maven environment).
> 
> I need some more idea of what HttpUnit is doing so I can go to the Eclipse 
> newsgroup with a bit more info.
> 
> Where is HttpUnit picking up org.apache.jasper.servlet.JspServlet?  I did have a 
> look at the source but it seemed it would be a lengthy investigation.
> 
> 
> com.meterware.httpunit.HttpInternalErrorException: Error on HTTP request: 500 
> javax.servlet.ServletException: com.meterware.httpunit.HttpNotFoundException: 
> Error on HTTP request: 404 java.lang.ClassNotFoundException: 
> org.apache.jasper.servlet.JspServlet 
> [http://localhost/pattern-repo/WEB-INF/jsp/test-result/edit.jsp] 
> [http://localhost/pattern-repo/test-result/edit.html?code=1]
> 	at 
> com.meterware.servletunit.ServletUnitClient.newResponse(ServletUnitClient.java:121)
> 	at com.meterware.httpunit.WebWindow.getResource(WebWindow.java:164)
> 	at com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:128)
> 	at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:121)
> 	at com.meterware.httpunit.WebClient.getResponse(WebClient.java:113)
> 	at com.meterware.servletunit.ServletRunner.getResponse(ServletRunner.java:151)
> 	at 
> org.permacode.patternrepo.web.TestResultActionTest.testSave(TestResultActionTest.java:70)

I made a little more progress only to find that in fact, this attempt to load 
org.apache.jasper.servlet.JspServlet is not down to Eclipse and is happening in 
my maven test environment as well.

Could it be HttpUnit? Is it using tomcat to compile the JSPs?


rgds
Adam

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.