• 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 JSP error parsing, syntax error, cannot read

 
Greenhorn
Posts: 14
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've had no problem running compiled servlets on Orion but the simple Cattle Drive now.jsp and Orion JSP examples fail, saying "error parsing", "syntax error" and "cannot read".

Going to the browser page http://localhost/now.jsp generates

500 Internal Server Error
Error parsing JSP page /now.jsp

Syntax error in source



Here are the errors that show up in the Orion console:

C:\orion>java -jar orion.jar
Orion/2.0.7 initialized
error: cannot read: __jspPage0_now_jsp.java
1 error


The "Numberguess" and "Date" examples on the JSP Examples page (http://localhost/examples/jsp/) also generate the same kind of error.

C:\orion>java -jar orion.jar
Orion/2.0.7 initialized
error: cannot read: __jspPage0_examples_jsp_num_numguess_jsp.java
1 error


C:\orion>java -jar orion.jar
Orion/2.0.7 initialized
error: cannot read: __jspPage0_examples_jsp_dates_date_jsp.java
1 error



Any ideas? Thanks.
 
Mark Judman
Greenhorn
Posts: 14
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've got it fixed now. Originally I had copied the tools.jar file from J2SE 1.4.2 to the \orion directory, just like the installation instructions said, and it didn't work. I also have JDK 1.6.0 on my PC. When I copied its tools.jar to \orion the JSP worked. Problem caused by mismatch between tools.jar the setting of PATH to the SDK? Perhaps, though I had previously reset the PATH in the Windows/DOS cmd window to that for Java 1.4.2 before launching Orion, and that didn't work. Well... apparently solved for now.
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Interesting. Glad you got it figured out.
 
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
I have J2re1.4.2 and JDK1.6.0 on my system, but the J2re1.4.2 doesn't have a tools.jar in its lib directory. What's the difference between J2SE and J2re? I am intrigued by this mystery.......
 
Mark Judman
Greenhorn
Posts: 14
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I know that JRE stands for Java Runtime Environment. On my PC j2skd1.4.2_19 has the following structure:



The Orion server installation instructions specifically mention (as an example) c:\j2skd1.4.2\lib\tools.jar . When I did some more experimenting and changed the system path value to "C:\j2sdk1.4.2_19\bin;C:\j2sdk1.4.2_19\jre\bin" (which works just fine, set at the command line, when compiling and running Java), and used the Java 1.4.2 tools.jar, Orion still wouldn't run my JSP. Changing things back to the Java SKD 1.6.0 path and Java SKD 1.6.0 tools.jar let things work.

So it's looking to me like Orion 2.0.7 would not compile the JSP using j2skd1.4.2_19. Individual results may vary(?).
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic