• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

orion install question

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I having been working ahead since I have some free time right now, and have a question about the orion installation.
These steps have been completed:
1. downloaded and installed j2sdkee1.3.1
2. added C:\j2sdkee1.3.1\lib\j2ee.jar to my
classpath
3. installed orion
4. copied tools.jar from my JDK into c:\orion
5. orion starts up fine according to instructions
6. no problem loading the page at http://localhost
or loading HTML files from the localhost
directory.
7. DateServlet works fine as does BeeServlet from
the instructions.
8. But I am not able to get my ReverseServlet to work. Nothing happens when I click on the "submit" button. I have checked the code over and over - using a doPost method like in the documentation example.
Also, in http://localhost, when I click on one of the "execute" links in the JSP examples,this error message appears:
500 Internal Server Error
Error parsing JSP page /examples/jsp/num/numguess.jsp
Syntax error in source
error: Invalid class file format in C:\PROGRAM FILES\JAVA\J2RE1.4.0_01\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
/examples/jsp/num/numguess.jsp.java:0: Class java.lang.Object not found in class com.orionserver.http.OrionHttpJspPage.
import javax.servlet.*;
^
2 errors
Thanks for any help!
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One of the XML files controls "auto-compile" for development purposes. You need to be sure that it is set to "false". It seems that Orion 1.5.2 does not yet work with the jdk1.4 stuff. At this point, if you have the jdk1.4, you need to compile the stuff first and then copy it to the proper orion sub-directory.
 
Peter Berquist
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the suggestions, Marilyn. I tried them out but am still having the same problem, which leads me to believe there is a problem with my code. So I tried out the search technique from Pauline's post and found these links to Servlet tutorials that you put in a thread last year.
Do you think it might help to add these to the assignment?
http://www.oreilly.com/catalog/javacook/chapter/ch18.html
http://www.phrantic.com/scoop/tocadv.htm
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html
 
Peter Berquist
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This problem was finally solved when I put the full path in the action parameter in the HTML file.
Instead of
/servlet/Reverse2Servlet,
this one worked:
http://localhost/servlet/Reverse2Servlet
I don't know if this is due to my browser (Mozilla) or what, but what a relief!
 
Marilyn de Queiroz
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm glad you figured out a workaround, although I don't understand why the full path would be necessary.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic