• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Videos 4a only half works!

 
village idiot
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
Sheriff
Posts: 9104
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any messages in the orion command-prompt window?
 
Carol Murphy
village idiot
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 9104
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(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
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
AAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!
I found it!
A TYPO!
 
Marilyn de Queiroz
Sheriff
Posts: 9104
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I was just going to look at that again (now that Nutcracker performances are done for this year) before I responded to your email.
 
Sheriff
Posts: 4012
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
...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
Posts: 9104
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic