aspose file tools*
The moose likes Oracle/OAS and the fly likes 500 Internal Server Error for example JSP in OC4J + another one Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "500 Internal Server Error for example JSP in OC4J + another one" Watch "500 Internal Server Error for example JSP in OC4J + another one" New topic
Author

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

Philippe Gondek
Greenhorn

Joined: Feb 17, 2005
Posts: 6
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

Joined: May 26, 2003
Posts: 31079
    
163

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?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Philippe Gondek
Greenhorn

Joined: Feb 17, 2005
Posts: 6
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

Joined: May 26, 2003
Posts: 31079
    
163

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

Joined: Feb 17, 2005
Posts: 6
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

Joined: Feb 17, 2005
Posts: 6
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

Joined: May 26, 2003
Posts: 31079
    
163

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

Joined: Feb 17, 2005
Posts: 6
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

Joined: May 26, 2003
Posts: 31079
    
163

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

Joined: Feb 17, 2005
Posts: 6
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

Joined: May 26, 2003
Posts: 31079
    
163

Philippe,
Glad to hear it's working. Thanks for posting what the problem was.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 500 Internal Server Error for example JSP in OC4J + another one