Mark Judman

Greenhorn
+ Follow
since Oct 20, 2007
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mark Judman

Vince,
I'm hardly an expert here but I too was having troubles getting JSPs to work with Orion. Have a look at the thread "Orion JSP error parsing, syntax error, cannot read" http://www.coderanch.com/t/487353/Cattle-Drive/Orion-JSP-error-parsing-syntax, which mainly relates to tools.jar .

FYI, I'm starting Orion using a simple Windows batch file consisting of


By the way, were you able to run the Orion example JSPs? I was not. I have a Win XP system PATH setting to Java 1.6.0 .

Hope this helps.
9 years ago
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(?).
9 years ago
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.
9 years ago
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.
9 years ago
I too had trouble using j2ee.jar from the Oracle/Sun Java EE SDK (see also http://www.coderanch.com/t/472932/Cattle-Drive/Servlet-compile-fails-Mac-Osx). When I looked inside I saw it only seemed to contain a manifest file. It turns out it's javaee.jar (also part of the Java EE SDK) that contains the good stuff, HttpServletRequest, etc. Alternately, as pointed out in the other thread, orion.jar also has what is needed.
9 years ago
Thank you. Qapla*! Now on to servlets!



*Klingon for "success"
9 years ago
As a current student I've been using the open source and free jEdit editor ( http://jedit.org/ ) and am quite happy with it. It's not an IDE but is Java-aware so it will highlight matching curly-braces, do auto-indenting, etc., very useful. Keep in mind that to be consistent with the Cattle Drive Style Guide you will have to make it substitute spaces for tabs (menu: Utilities / Global Options / Editing / checkbox for Soft Tabs).
9 years ago
If you have a public int instance variable "age" there's nothing to prevent someone or some other method in your application from setting the employee's age to 325 years old or to a negative value. With the use of a setter method you can build-in or enforce a restriction to reasonable values. The point is to make those instance variables private and give access only through the public (or protected or default) getter and setter methods. The getter method then, is necessary for one thing because the instance variable has been made private. Hope this helps.
9 years ago
Hi. I'm active too. I'm a Lotus Notes/Domino developer who's been playing with Java for some years without getting really serious about it. Participation in the Cattle Drive is me getting serious about Java.

9 years ago
(Hoping Andy Lester will weigh in.) Many job experts these days are saying that only a small percentage of jobs are filled via the job boards versus knowing someone. Disconcerting for those who many not have big networks or are shy about networking. Opinions?
10 years ago
Welcome Khalid Mughal & Rolf Rasmussen (moved from subject title).

I have seen postings that question the importance of the SCJP because of the (claimed) high incidence of cheating. Do you think the SCJP still carries a lot of weight in hiring decisions or has it become devalued in the eyes of employers?


[Henry: Changed subject title. Too close to actual welcome thread]
Does your book cover the career importance of the specialty Java certifications, SCJD, SCWCD, etc. beyond the basic SCJP?
11 years ago
Herb,
Does your book cover implementing some of the different sorting methods, bubble, shell, etc. in Java? Thanks.
11 years ago