jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "=?GB2312?B?IMDumFM=?=" <yours...@gmail.com>
Subject Problem with CactusStrutsTestCase Sample
Date Tue, 15 Jul 2008 07:58:15 GMT
Hello everyone,

I'm trying to run the CactusStrutsTestCase Sample in MyEclipse.
When i deployed the project under tomcat 6.0 and access the jsp file,
a error happened.

javax.servlet.ServletException: java.lang.NoSuchMethodError:
org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer.<init>(Lorg/eclipse/jdt/internal/compiler/env/IBinaryType;)V
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

java.lang.NoSuchMethodError:
org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer.<init>(Lorg/eclipse/jdt/internal/compiler/env/IBinaryType;)V
	org.apache.jasper.compiler.JDTCompiler$1.findType(JDTCompiler.java:214)
	org.apache.jasper.compiler.JDTCompiler$1.findType(JDTCompiler.java:183)
	org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:119)
	org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:178)
	org.eclipse.jdt.internal.compiler.lookup.Scope.getPackage(Scope.java:2166)
	org.eclipse.jdt.internal.compiler.ast.QualifiedTypeReference.getTypeBinding(QualifiedTypeReference.java:62)
	org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:141)
	org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType(TypeReference.java:104)
	org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.java:1107)
	org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperclass(ClassScope.java:767)
	org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:947)

And if i run "run as java application", the console says :

.E.E
Time: 0.781
There were 2 errors:
1) testSuccessfulLogin(com.hundsun.test.LoginActionTester)java.lang.NoSuchFieldError:
config
	at servletunit.struts.CactusStrutsTestCase.setUp(CactusStrutsTestCase.java:105)
	at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:155)
	at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:120)
	at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:94)
	at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:225)
	at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java:1)
	at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:102)
	at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:225)

Anyone any idea about this?

Thanks

--
Lee

Mime
View raw message