This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Cattle Drive and the fly likes Orion JSP error parsing, syntax error, cannot read Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Orion JSP error parsing, syntax error, cannot read" Watch "Orion JSP error parsing, syntax error, cannot read" New topic
Author

Orion JSP error parsing, syntax error, cannot read

Mark Judman
Greenhorn

Joined: Oct 20, 2007
Posts: 14
    
    1
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

Joined: Oct 20, 2007
Posts: 14
    
    1
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.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
Interesting. Glad you got it figured out.


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: 1194
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

Joined: Oct 20, 2007
Posts: 14
    
    1
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(?).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Orion JSP error parsing, syntax error, cannot read
 
Similar Threads
java.lang.UnsupportedClassVersionError: Bad version number in .class file
Orion problems
Trouble with Orion Server
BeeServlet and MVC2... again
Orion error - NowServlets