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

500 Internal Server Error for example JSP in OC4J

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everybody..
I have Oracle9iAS Containers for J2EE (Version 9.0.3.0.0) running on my machine.

The java running on my machine is

java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)

Whenever i try to execute any of the sample JSP found in "http://localhost:8888/examples/jsp/" i get the following error
-------------------------------------------------------------

500 Internal Server Error
OracleJSP: oracle.jsp.provider.JspCompileException:
Errors compiling:C:\oracle\iSuites\j2ee\home\application-deployments\default\defaultWebApp\persistence\_pages\_examples\_jsp\_jsptoserv\_hello.java
error: Invalid class file format in C:\Program Files\Java\j2re1.4.1\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
C:\oracle\iSuites\j2ee\home\application-deployments\default\defaultWebApp\persistence\_pages\_examples\_jsp\_jsptoserv\_hello.java:0: Class java.lang.Object not found in class com.orionserver.http.OrionHttpJspPage.
package _examples._jsp._jsptoserv;
^
2 errors

-----------------------------------------------------------------------

As the exception shows this tends to occur during the jsp complilation .
Could somebody please help me solve this?

The servlet examples are working perfectly..

Any help would be appretiated... :roll:
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Gov,
Your version of OC4J supports java version 1.3 (not 1.4).
Either upgrade your OC4J version, or downgrade your java version.

[By the way, the above is mentioned in the OC4J documentation.]

Good Luck,
Avi.
 
gov kur
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Avi... Thanks for responding

I tried upgrading the jdk within oc4j to 1.4 but i still get this new error when i run oc4j.jar

--------------------------------------------------
C:\oc4j\j2ee\home>java -jar oc4j.jar
java.lang.NoClassDefFoundError: javax/mail/internet/AddressException
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:46)
at java.lang.Thread.run(Thread.java:536)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:49)
--------------------------------------------------

By the way which documentation are you referring to ?
I've been reading
"Oracle Application Server Containers for J2EE Stand Alone User's Guide"

If you're referring to some other document ...please give the link

Thanks for any help in advance
 
author & internet detective
Posts: 42055
926
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now it looks like the mail jar is not in your runtime classpath. This is also part of j2ee 1.4.
 
gov kur
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Jeanne & Avi..
I did copy the mail.jar from jdk1.3 to the jdk folder containing jdk1.4 but it then gave some other exceptions.. so i simply copied all the jar files from jdk1.3 to jdk and VOILA.. it worked..
Thanks a lot..
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic