File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC ....hmmmm

 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1202
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1202
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1202
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe this might help.
 
Katrina Owen
Sheriff
Pie
Posts: 1367
18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1202
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1202
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1202
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can only have one web page be the default at a time.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic