4 Replies Latest reply on Oct 27, 2010 12:04 PM by Jozis

    Error 500 with generic Apache

    Jozis
      Hi,

      I am trying to user Apex Listener 1.0.2 on OC4J fronted with generic Apache 2.0. I configured mod_oc4j and the combination seems to work.
      When i ran apex/listenerConfigure the configuration page shows up. But when I try to Apply changes I constantly get


      500 Internal Server Error

      Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.

      Any idea what would be the cause?

      Janis
        • 1. Re: Error 500 with generic Apache
          Udo
          Hi Janis,

          there may be a few reasons, like the Apache does not have privileges to write on the tempdir of the OC4J. It could also be there is a JDBC connect failure, or something completely different.
          What does the application log say?

          -Udo
          • 2. Re: Error 500 with generic Apache
            Jozis
            Thank you for the answer. This is the log. I hope it helps

            10/10/27 12:39:04.951 apex: 10.1.3.5.0 Started
            10/10/27 12:56:51.975 apex: Servlet error
            java.lang.NoSuchMethodError: java.lang.String.getBytes(Ljava/nio/charset/Charset;)[B
                 at oracle.dbtools.apex.utilities.Text.getBytes(Text.java:31)
                 at oracle.dbtools.apex.ModApex.notifyNotConfigured(ModApex.java:257)
                 at oracle.dbtools.apex.ModApex.doConfig(ModApex.java:98)
                 at oracle.dbtools.apex.ModApex.doGet(ModApex.java:92)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                 at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
                 at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
                 at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
                 at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
                 at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
                 at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
                 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
                 at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
                 at java.lang.Thread.run(Thread.java:595)
            10/10/27 12:59:11.662 apex: Servlet error
            java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
                 at oracle.dbtools.apex.admin.AdminManager.validConnection(AdminManager.java:337)
                 at oracle.dbtools.apex.admin.AdminManager.validateInfo(AdminManager.java:168)
                 at oracle.dbtools.apex.admin.AdminManager.processAdministration(AdminManager.java:81)
                 at oracle.dbtools.apex.admin.Admin.doPost(Admin.java:87)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                 at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
                 at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
                 at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
                 at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
                 at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
                 at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
                 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
                 at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
                 at java.lang.Thread.run(Thread.java:595)
            • 3. Re: Error 500 with generic Apache
              Udo
              Hi ,

              which Java Version do you have on the system that runs your mod_oc4j on Apache 2.0?
              You definetly need Java 6 Update 20 JDK and an implementation of Java Servlet Specification 2.3 - which is part of the full OC4J but possibly not in your mod_oc4j-instance.
              Is there any specific reason why you run on mod_oc4j rather than using OC4J-standalone or even the embedded GlassFish instead?

              -Udo
              • 4. Re: Error 500 with generic Apache
                Jozis
                Udo,
                thank you very much. That was the JDK version which caused all the trouble. I have the latest jdk installed on my server but i didn't realize that OC4J instance is using its own copy. After upgrading everything works great.

                The main reason I'm using Apache and mod_oc4j is to make more user friendly URLs for my applications. Alse some applications are calling php scipts.

                Janis