Bill Mares

Greenhorn
+ Follow
since Dec 31, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bill Mares

Hello,

I am trying to get ant to start/stop/remove/install my web app for me in tomcat. I have looked at several resources on how to do this. [http://raibledesigns.com/wiki/Wiki.jsp?page=TomcatAntTasks] [http://java.sun.com/webservices/docs/1.0/tutorial/doc/GettingStarted5.html] [http://listarchive.cinjug.org/html/users/2003-08/msg00040.html].

My question is this: When running any of these tasks, I get a build failed error and all it does is dump the html of the tomcat manager page [http://localhost:8080/manager/html] onto the ant output.

Any suggestions?
18 years ago
I am having a problem getting started. I have a struts 1.1 app that I am trying to test w/ MockStrutsTestCase 2.0 which says it supports struts 1.1. I have standard junit tests working properly for other portions of the app. The 1 method I am trying to run gives output that looks something like this:

junit.framework.AssertionFailedError at
servletunit.struts.MockStrutsTestCase.getActionServlet(MockStrutsTestCase.java:285) at
servletunit.struts.MockStrutsTestCase.actionPerform(MockStrutsTestCase.java:332) at
myclass.callingmethod

The error is thrown when I try to call actionPerform(). All I have done inside the method is this :

setRequestPathInfo("/myPath");
actionPerform();

Any suggestions would be great.

Thanks,
John
18 years ago
ok, figured it out.
I had 2 installed jdk directories and had placed the jar file in the wrong one. Sorry about the question.
Hi,
I am porting an application over from using an oracle db to a mysql db. I was doing the oracle dev on a unix box, but now I am on Windows 2000. I am having a configuration problem. I have looked through the online suggestions, but found no solution.
Some code:

This is the important code where it is having problems. Basically, the things I have seen tell me that I have to place the driver [ currently using mysql-connector-java-3.0.9-stable-bin.jar from mysql.com ] where it can be seen. I have it stored in a directory under the C: drive and have added the jar file to the classpath, ie. added C:\somedir\mysql-connector-java-3.0.9-stable-bin.jar to the PATH variable in the environment variables. Can anyone suggest how to fix this?
I also tried adding the jar file to the C:\JAVA_HOME\jre\lib\ext but no luck there either. Please help.