aspose file tools*
The moose likes Cattle Drive and the fly likes Videos 4a only half works! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Videos 4a only half works!" Watch "Videos 4a only half works!" New topic
Author

Videos 4a only half works!

Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1195
Once again, using the instructor's solution, I got the html page to appear when pointing my browser to localhost\videos, but the link to the video list brings up a 500 error page.
The jsp is with the html page in the same directory, and I checked the forward statement in the source, and it looks correct................
And I gotta go to work. (pout)
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
Any messages in the orion command-prompt window?


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1195
No, it doesn't seem to be bothering orion in the least!

I'm checking the link right now, then I'm going to look at the source code again. If the html page is showing up, I'm thinking it must be something fairly benign. (Hopefully!)

When I scroll over the link, the bar at the bottom of the screen, (don't remember its legal name) shows that it points to http://localhost/videos/servlet/VideoServlet
Could this be part of the problem? Maybe if I edited the link itself.....
[ November 28, 2007: Message edited by: Carol Murphy ]
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1195
Okay, I apologize in advance if this is a truly stupid question, but does the videos directory in this link:
href ="\videos\servlet\VideoServlet"
refer to the videos directory closest to the root, (right off of C:\java) or the one at the other end, where the class files are actually found?
There are 2 directories named videos in my directory tree!
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
(Didn't mean to edit your post, Marilyn, I meant to reply with quotes. Been working a lot of OT due to recent, sudden staffing shortages at work, and I feel like I'm brain-dead half of the time. Sorry)

The links in the servlets and jsps are all relative to the web root in orion

I must be working too much overtime! How could I have gotten that confused!
(Actually, at one time I understood this without even having to stop and ponder it.....)


-- in this case the html should be at
C:\orion\applications\videos (or <ORION_HOME>\applications\videos)

and the servlet should be at

C:\orion\applications\videos\WEB-INF\classes\com\javaranch\drive\videos\VideoServlet.class
(or <ORION_HOME>\applications\videos\WEB-INF\classes\com\javaranch\drive\videos\VideoServlet.class

(where the exploded class files for this application are actually found in the server))


the files are where they are supposed to be; do you think that having orion at C:\Program Files\orion instead of directly at C:\orion might be causing a problem?

Can you email me snippets of the code you're using that contain the URLs (just to double check that you're using a current instructor's solution) and your web.xml file

I'll send those right along. Thanks.
[ November 29, 2007: Message edited by: Carol Murphy ]
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1195
AAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!
I found it!
A TYPO!
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10

I was just going to look at that again (now that Nutcracker performances are done for this year) before I responded to your email.
Pauline McNamara
Sheriff

Joined: Jan 19, 2001
Posts: 4012
    
    6
...now that Nutcracker performances are done for this year...

picking up on a hijack clue so... were you playing a whole bunch lately? Cool.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
Last week was a busy one. Rehearsals every evening after work. Then we had two shows (I play viola in the orchestra while we have live ballet dancers on stage) on Saturday and one on Sunday. Sunday evening I was already very tired, but I auditioned for another orchestra. Afterwards I came home and went directly to bed. I ordered a DVD of the second performance because, since the orchestra is playing in the pit, I never get to see the dancing. We have a couple of relatively famous dancers from the American Ballet Company in New York who came back again this year to dance in our production. Stella Abrera and Sascha Radetsky. They were also in a movie (which I haven't seen).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Videos 4a only half works!