aspose file tools*
The moose likes Cattle Drive and the fly likes JDBC ....hmmmm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "JDBC ....hmmmm" Watch "JDBC ....hmmmm" New topic
Author

JDBC ....hmmmm

Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
Thought I'd done this, but I guess I dreamed it.
I'm getting geared up to tackle JDBC, and I've gotten far enough to view my table in the dos window after compiling Test.java.
I followed the instructions for TestServlet.java, but I get the generic page not available screen.
TestServlet.java is in the same directory as Test.java. The class file is in orion\default-web-app\WEB-INF\classes, and I copied the mysql-connector-java-5.1.5-bin.jar file into orion\lib
I'm thinking either one of my files is in the wrong directory, or could it be that since Windows XP put both orion and my java development directory inside C:\Program Files while mysql and mysql-connector-java and directly off of C:\ I might need to change some path stuff somewhere?
Any ideas?
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
Okay, it gets better. When I try to look at localhost, I get the 403 error message stating I am FORBIDDEN to look at the page.
Is this Children of the Corn???
Something is weird here.
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
This seems to be a security issue. I downloaded Firefox, and get a directory browsing not allowed message.
How do I tell my server I want to be able to browse my own directories, thank you very much?
[ June 13, 2008: Message edited by: Carol Murphy ]
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
I have this nagging deja-vu thing going on. I just know I've been here before, but I can't locate a pertinent post, or remember the solution.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

Maybe this might help.


[My Blog] [JavaRanch Journal]
Katrina Owen
Sheriff

Joined: Nov 03, 2006
Posts: 1344
    
  12
Hi Carol,

The first thing I do when I get a 403 forbidden is to look at the permissions of the directory and the file(s) within. About 90% of the time, these are 'owned' by someone else and the permissivity is just plain secretive.

I don't actually know how to do that on windows (right-click and select something like 'view properties' or 'view permissions' or something?), though.

Don't listen to me too hard, though - It could be an orion thang.
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
Originally posted by Jaikiran Pai:
Maybe this might help.


Well damn, cowboy!
That surely did the trick!
Although why I had to comment out those servlets in that particular file remians a mystery to me.
Anyone have an explanation?

[ June 14, 2008: Message edited by: Carol Murphy ]
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
Okay, so now the index page displays for orion, and all of that stuff, but TestServlet still won't display.
So my problem is half solved.
Doh! Forgot to start mysql.
Now it works on IE but not Firefox.
Almost there.
Anyone know their way around Firefox? In IE it was just switching off the display friendly error messages thing in internet options. Couldn't find anything similar in Firefox.
[ June 14, 2008: Message edited by: Carol Murphy ]
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
NEVERMIND!
The problem with Firefox was that I was looking for TestServlet in a directory named servlets. After removing the s as the end, it works just fine!
DOH!

(As to the config question for orion, can there be only one default web page? Could that be the reason I had to comment out the bee servlet target in order to see the index page? Cause that would make sense, I guess.....)
[ June 15, 2008: Message edited by: Carol Murphy ]
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
You can only have one web page be the default at a time.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC ....hmmmm
 
Similar Threads
problem with mysql connecton!
Stuck on the classpath again!
Basic instructions for setting up/running mySQL
"..could not load JDBC driver."
Passing List from Servlet to jsp ? - value of list becomes NULL