> > You are using JUnit 3.7. Assert.assertNotSame was added in JUnit > 3.8. You should probably be using JUnit 3.8.1. >
You are right, it needs Junit 3.8.1. I was just trying to use build.properties in struts code. It only specifies cactus 13-1.4.1 so I downloaded cactus 13-1.4.1 and specified all the properties according to cactus-lib. The cactus has junit3.7 in it. Well, after specifying the path for junit-3.8.jar, I am able to compile the code. I am getting a problem in running the cactus tests though. Probably it has something to do with tomcat start up. I am not sure though. Also, What cactus.contexturl should I set. Currently I have left it to be the default one.. which is http://localhost:9090/test Does not seem to work though: Here is the dump of error message I am getting.::: Any idea??? ------------------------------------------------------------------------- start.tomcat.50: Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp Could not load a dependent class (org/apache/commons/net/SocketClient) for type rexec Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion Could not load a dependent class (com/starbase/starteam/Item) for type stlist Could not load a dependent class (org/apache/commons/net/SocketClient) for type telnet Could not load a dependent class (org/apache/commons/net/ftp/FTP) for type ftp Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend Could not load a dependent class (com/starbase/starteam/Item) for type stcheckin Could not load a dependent class (com/starbase/starteam/Item) for type stcheckout fileset: Setup scanner in dir /opt/dev/jakarta/tomcat/home with patternSet{ includes: [bin/bootstrap.jar] excludes: [] } fileset: Setup scanner in dir /opt/dev/jakarta/tomcat/home with patternSet{ includes: [bin/bootstrap.jar] excludes: [] } [java] Executing '/opt/dev/sun-j2sdk/jre/bin/java' with arguments: [java] '-Dcatalina.home=/opt/dev/jakarta/tomcat/home' [java] '-Dcatalina.base=/opt/dev/jakarta/tomcat/home' [java] '-classpath' [java] '/opt/dev/sun-j2sdk/lib/tools.jar:/opt/dev/jakarta/tomcat/home/bin/bootstrap.jar' [java] 'org.apache.catalina.startup.Bootstrap' [java] '-config' [java] '/home/akhandel/cvs-root/oss/comp/presentation/struts/src/target/test/servers/tomcat50/conf/server.xml' [java] 'start' [java] [java] The ' characters around the executable and arguments are [java] not part of the command. fileset: Setup scanner in dir /opt/dev/jakarta/tomcat/home with patternSet{ includes: [bin/bootstrap.jar] excludes: [] } fileset: Setup scanner in dir /opt/dev/jakarta/tomcat/home with patternSet{ includes: [bin/bootstrap.jar] excludes: [] } Execute:Java13CommandLauncher: Executing '/opt/dev/sun-j2sdk/jre/bin/java' with arguments: '-Dcatalina.home=/opt/dev/jakarta/tomcat/home' '-Dcatalina.base=/opt/dev/jakarta/tomcat/home' '-classpath' '/opt/dev/sun-j2sdk/lib/tools.jar:/opt/dev/jakarta/tomcat/home/bin/bootstrap.jar' 'org.apache.catalina.startup.Bootstrap' '-config' 'usr/local/struts/src/target/test/servers/tomcat50/conf/server.xml' 'start' The ' characters around the executable and arguments are not part of the command. [runservertests] Checking if server is up ... [runservertests] Failed to call test URL. Reason :java.net.ConnectException: Connection refused [runservertests] at java.net.PlainSocketImpl.socketConnect(Native Method) [runservertests] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) [runservertests] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) [runservertests] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) [runservertests] at java.net.Socket.connect(Socket.java:452) [runservertests] at java.net.Socket.connect(Socket.java:402) [runservertests] at sun.net.NetworkClient.doConnect(NetworkClient.java:139) [runservertests] at sun.net.www.http.HttpClient.openServer(HttpClient.java:402) [runservertests] at sun.net.www.http.HttpClient.openServer(HttpClient.java:618) [runservertests] at sun.net.www.http.HttpClient.<init>(HttpClient.java:306) [runservertests] at sun.net.www.http.HttpClient.<init>(HttpClient.java:267) [runservertests] at sun.net.www.http.HttpClient.New(HttpClient.java:339) [runservertests] at sun.net.www.http.HttpClient.New(HttpClient.java:320) [runservertests] at sun.net.www.http.HttpClient.New(HttpClient.java:315) [runservertests] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:512) [runservertests] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:489) [runservertests] at org.apache.cactus.ant.StartServerHelper.isURLCallable(Unknown Source) [runservertests] at org.apache.cactus.ant.StartServerHelper.execute(Unknown Source) [runservertests] at org.apache.cactus.ant.RunServerTestsTask.callStart(Unknown Source) [runservertests] at org.apache.cactus.ant.RunServerTestsTask.execute(Unknown Source) [runservertests] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) [runservertests] at org.apache.tools.ant.Task.perform(Task.java:364) [runservertests] at org.apache.tools.ant.Target.execute(Target.java:301) [runservertests] at org.apache.tools.ant.Target.performTasks(Target.java:328) [runservertests] at org.apache.tools.ant.Project.executeTarget(Project.java:1215) [runservertests] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383) [runservertests] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) [runservertests] at org.apache.tools.ant.Task.perform(Task.java:364) [runservertests] at org.apache.tools.ant.Target.execute(Target.java:301) [runservertests] at org.apache.tools.ant.Target.performTasks(Target.java:328) [runservertests] at org.apache.tools.ant.Project.executeTarget(Project.java:1215) [runservertests] at org.apache.tools.ant.Project.executeTargets(Project.java:1063) [runservertests] at org.apache.tools.ant.Main.runBuild(Main.java:632) [runservertests] at org.apache.tools.ant.Main.startAnt(Main.java:183) [runservertests] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197) [runservertests] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) [runservertests] Checking if server is up ... [runservertests] Failed to call test URL. Reason :java.net.ConnectException: Connection refused ------------------------------------------------------------------------- Abhishek --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]