Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

500 Internal Server Error for example JSP in OC4J + another one

 
Philippe Gondek
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read the "500 Internal Server Error for example JSP in OC4J" topic, and like
him I upgrade my OC4J. But I have another problem. When I want to see the esample jsp of Oracle I have this Exception :

500 Internal Server Error
OracleJSP: oracle.jsp.provider.JspCompileException:
Erreurs de compilation :\OracleServeur\oc4j\j2ee\home\application-deployments\mapviewer\web\persistence\_pages\_demo\_jview.java

I work under:
- windows XP
- Oracle Server Enterprise Edition 10g release 2
- OC4J from Oracle Server Enterprise Edition 10g release 2
- the jdk from Oracle Server Enterprise Edition 10g release 2

If you can help me, send me a message.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Philippe,
Welcome to JavaRanch!

As the error message states, there is a compiler error in the JSP. Can you post the code from the JSP giving the error?
 
Philippe Gondek
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Jeanne,

Here is the code from the jsp :



It's a demo from Oracle!!! I suppose the jsp is correct...
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Philippe,
I agree that the JSP is correct as it is from Oracle. I asked to see the JSP because it gives some details as to the problem. That particular JSP is failry complex as it contains a URL connection request and a datasource.

The first thing to do is try a simpler JSP and see if it works. For example,

If this works, it tells you there is a problem with the classpath. It it doesn't work, there is a deeper problem with the configuration.
 
Philippe Gondek
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That doesn't work. But I think it's a problem with OC4J. With TomCat, it exists a directory where I must put my jsp, but with OC4J, I don't know if a directory like this exists or if I must modify a xml config file.I search in this direction in waiting your suggestions...
 
Philippe Gondek
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the directory where I must put my jsp... but the error is the same one... What I must do to have a jsp in my web browser...
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Philippe,
What URL are you using to try to access the page? Also is there a longer/more detailed error message on the screen or in the logs?

Note that it definitely isn't a problem with the web browser. It is probably some server setting that isn't set properly, so I'm asking questions to try and figure out what is going on.
 
Philippe Gondek
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Philippe,
What URL are you using to try to access the page? Also is there a longer/more detailed error message on the screen or in the logs?

Note that it definitely isn't a problem with the web browser. It is probably some server setting that isn't set properly, so I'm asking questions to try and figure out what is going on.

Hello,

I use this URL --> http://localhost:8888/mapviewer/demo/jview.jsp

Here is the error in the MapViewer console :

05/02/22 11:06:15 [oracle.lbs.mapserver.oms, INFO] *** Oracle Map Viewer is succ
essfully started. ***

05/02/22 11:06:33 IOException in compile: CreateProcess: javac.exe -J-Xmx1024m -
classpath oc4j.jar;D:\oc4j\j2ee\home\lib/ejb.jar;D:\oc4j\j2ee\home\lib/servlet.j
ar;D:\oc4j\j2ee\home\lib/ojsp.jar;D:\oc4j\j2ee\home\lib/jndi.jar;D:\oc4j\j2ee\ho
me\lib/jdbc.jar;D:\oc4j\j2ee\home\iiop.jar;D:\oc4j\j2ee\home\iiop_gen_bin.jar;D:
\oc4j\j2ee\home\lib/jms.jar;D:\oc4j\j2ee\home\lib/jta.jar;D:\oc4j\j2ee\home\lib/
jmxri.jar;D:\oc4j\j2ee\home\lib/javax77.jar;D:\oc4j\j2ee\home\lib/javax88.jar;D:
\oc4j\j2ee\home\../../opmn/lib/ons.jar;D:\oc4j\j2ee\home\../../opmn/lib/optic.ja
r;D:\oc4j\j2ee\home\../../lib/dms.jar;D:\oc4j\j2ee\home\../../dms/lib/dms.jar;D:
\oc4j\j2ee\home\../../diagnostics/lib/ojdl.jar;D:\oc4j\j2ee\home\../../dms/diagn
ostics/lib/ojdl.jar;D:\oc4j\j2ee\home\lib/connector.jar;D:\oc4j\j2ee\home\lib/bc
el.jar;D:\oc4j\j2ee\home\lib/cos.jar;D:\oc4j\j2ee\home\lib/jsse.jar;D:\oc4j\j2ee
\home\../../oracle/lib/jsse.jar;D:\oc4j\j2ee\home\lib/jnet.jar;D:\oc4j\j2ee\home
\lib/jcert.jar;D:\oc4j\j2ee\home\lib/activation.jar;D:\oc4j\j2ee\home\lib/mail.j
ar;D:\oc4j\j2ee\home\../..?

Have you already tried to install mapviewer and test the jsp examples from Oracle. If it's the case ans that work, can you made a step by step of your installation. Thank you for your helping...
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Philippe,
The configuration and URL looks ok. I'm not sure what the problem is.

I don't actually use OC4J. My troubleshooting tips are coming from problems that can occur with any server.
 
Philippe Gondek
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just needed to add the path of my jdk in windows and now it works... Thank you all for your help
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Philippe,
Glad to hear it's working. Thanks for posting what the problem was.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic