Scott Farran

Greenhorn
+ Follow
since Mar 10, 2002
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 Scott Farran

Hi-
Thanks in advance for the help here. I have a web app with a number of classes in a package. I can instantiate a new object (system classes) from any of these classes no problem assuming I use the appropriate import statements. The problem arises when I try to create an object from one of the classes in the same package. It can't see them. I'm able to do it from my JSP pages calling the exact same classes, they just can't see each other from inside the package. Does the package need to be added to the classpath? and if it does then why do my jsp pages have no problem seeing the classes? I am running Tomcat 4.0. Is there a setting that needs to be set in the web.xml? I am a little mystified.
Scott Farran
SCJP
20 years ago
Thanks Gregg,
That did it!! I moved the driver to the lib folder and re-set the path. Everything is fine now thanks!!
-Scott
Hi,
This may be a simple thing I am overlooking so thanks in advance for any help. I am trying to connect to a mySQL database through a servlet that is called from a html form submission. I have all the connection properties in a simple class and when I try to instantiate the class, I get this error.....
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
now the first thing I did was assume that I had the classpath set-up wrong. So I re-did it and it still failed. So I create a simple class in the main method all i do create an instance of the same object that is failing my servlet. ANd you know what?? It works fine, the connection is established no problem. So I know that the classpath is set OK, but I can't understand why it would work in one spot and not in the other. Does it have something to do with being called from a servlet?? I am so frustrated here.
Any Ideas???
Scott, scjp
Hi,
This may be an easy problem so any help will be appreciated, and thanks in advance.
I created a base class and then extended it in a child class. Everything was great (compiled and worked fine) until I created a package and put both classes in the package. Now the Base class still compiles but the child will not. It is throwing a compiler error on the class declareation.

public class nbn_GCOrderObject extends nbn_OrderObject {

the compiler error is as follows.....

---------javac--------
nbn_GCOrderObject.java:7: Cannot resolve symbol
symbol class nbn_OrderObject
location class nbn.nbn_GCOrderObject
class nbn_GCOrderObject extends nbn_OrderObject {
^
Why will it compile outside of the package but not inside it?? I have package statements at the top of both classes.
thanks,
Scott
SCJD
20 years ago
Thanks Bear,
I guess when I moved the app one directory lower than the root I needed more than one slash. I will figure it from here.
Thanks Again.
Scott
20 years ago
Hello All,
Thanks in advance for your help on this matter. I have installed Tomcat 4.0 and brought over a web app that is running on another Tomcat Server elsewhere no problem. My HTML and JSp's are in an application directory under the root. (as an example accessing this works fine -http://localhost:8080/NewbornNews/index.html)
However the problem I am runniong into is that also in the NewbornNews directory I have two subdirectories named images and scripts. On my server the application cannot see any images or javascript functions when they are in the subdirectories. They are being accessed in very simple ways
<BODY BACKGROUND="/graphics/nbnbgr1.jpg">
or
<SCRIPT TYPE="text/javascript" SRC="/scripts/test.js"></SCRIPT>
Did I miss something in the configuration of my server or set-up of the app or am I missing something really easy?? Do I need a config file for the application?? This same code executes no problem on the production version also running on tomcat.
Thanks Again,
Scott
SCJP
20 years ago
Greetings Ranchers....
I am pretty sure I have my server configured properly. (I am working through "more servlests ans Java server pages" by Marty Hall) . I am now at the point where I want to put a simple servlet .class file in the appropriate directory so it can be run from my browser with the URL ...
http://localhost/servlet/HelloServlet.
(Hello Servlet is the name of the servlet and I changed the port number to eliminate the need for typing 8080) The book and the server socumentation (from what I have been able to understand) tell me to put the .class file in this Directory....
webapps/ROOT/WEB-INF/classes.
Well, I have no sub-directory of WEB-INF called classes. In fact in this path my hierarchy ends with WEB-INF. What am I missing, or do I just put the files in one of the other "classes" sub-directories. Thanks in advance for your help.
Scott Farran
SCJP
21 years ago
Well I passed today. What an experience, quite a realization of how robust the language really is! I thought I would share how I prepared for those out there who are still studying. I used the Heller text for base of my preparation. I found it well written, and to the point. I also had the Khalid book but I found that it went in to much more detail than I thought I would need for the actual test. After I went through RHE once, I went through again and took all my highlited areas and created a word document that served as a study giude for the rest of my prep. After going through the book for the second time I started taking as many "quality" mock exams as I could. I did all three Marcus Green and also purchased JQ+. After my first exam experience with JQ+ I was extremely discouraged because I scored only a 56%. I took some solace in the fact that the Javaranchers who post on this board all agreed that the JQ+ mocks are harder than the real thing. So I continued ahead, after each exam updating my study guide for future reference. well, I finally got to the point where I was averaging in the low 70's for the JQ+ exams and I had also gotten to the point where I wasn't repeating any mistakes. (This is the key to passing. If your mistakes are because the exam is presenting with you something you have never seen before that's OK. Just make sure you don't make the mistake again. JQ+ presents a lot of info. that I guess you'll never see on the exam. ) When I got a question wrong I would just add the note to the study guide.
Well I just got back from the test and scored an 86%. Wow, what a load off! Thanks to all those who posted on this board and above all else just kept from getting discouraged when it looked like things would never click.
Good Luck to all!
Scott Farran
Sun Certified Java Prgrammer
22 years ago
If someone could help me withis problem I would be really grateful. My father just called and has a computer from work which he has had for awhile and done nothing with. It turns out now that he wants to use it, but Norton's "For Your Eyes Only" has been installed, and the bootlock has been enabled. He has no idea what the password is effectively rendering the computer useless.
What are my options?? There is a rumor in the newsgroups about a backdoor for this product. (which is why Norton probably doesn't support anymore because it made the software useless)Does anybody know what it is?? Is there a way to reinstall windows or re-format the hard drive?? I will try anything.
Thanks in advance for your suggestions or for providing the backdoor.
Scott
22 years ago