6 Replies Latest reply on Feb 22, 2018 10:34 AM by Prethviraj-Oracle

    ORDS can't open Error 500 (on weblogic 12c)

    user9159846

      I have installed:

      WebLogic Server Version: 12.2.1.0.0

      Oracle Apex 5.1.2.00.09

      ORDS 17.4.1.353.06.48

      I am deporting ords.war to the server weblogic (administrative) and it occurs when I run the error - 500.

       

       

      In setDomainEnv.cmd I registered:

      set JAVA_OPTIONS = -Dcom.sun.xml.ws.spi.db.BindingContextFactory = com.sun.xml.ws.db.glassfish.JAXBRIContextFactory -Djavax.xml.bind.JAXBContext = com.sun.xml.bind.v2. ContextFactory

       

       

      restarted the server. The error was not lost ...

      Can I put another version of weblogic server?

      In the attachment, the log files are weblogic and setDomainEnv.cmd.

       

       

      I will be very grateful for any help and help!

      p.s. in standalone mode ords works 

      2.PNG Снимок.PNG

        • 1. Re: ORDS can't open Error 500 (on weblogic 12c)
          despa

          I have installed:

          WebLogic Server Version: 12.2.1.2.0

          (no apex)

          ORDS 17.4.1.353.06.48

           

          I deployed ords.war to the server weblogic (AdminServer) and on the testing I get the error - Error 500--Internal Server Error.

           

          In setDomainEnv.cmd I putted:

          set JAVA_OPTIONS = -Dcom.sun.xml.ws.spi.db.BindingContextFactory = com.sun.xml.ws.db.glassfish.JAXBRIContextFactory -Djavax.xml.bind.JAXBContext = com.sun.xml.bind.v2.ContextFactory

           

          This is in AdminServer - diagnostic.log:

          [2018-01-30T15:09:56.637+01:00] [AdminServer] [ERROR] [] [] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: f009ba62-c4af-4f26-b0ff-dcd0f9cd86fd-00000066,0] [APP: ords] [partition-name: DOMAIN] [tenant-name: GLOBAL] Could not invoke: oracle.dbtools.url.mapping.node.NodeMapper(oracle.dbtools.plugin.api.logging.Log,oracle.dbtools.common.di.ServiceLocator,oracle.dbtools.http.dispatch.MetaDataFactory,oracle.dbtools.http.routes.RoutePatterns,oracle.dbtools.http.servlet.DispatchableServletDependencies), due to the following error: oracle.dbtools.common.di.DependencyInjectionException: Could not invoke: oracle.dbtools.rest.resource.modules.xml.StaticModules(oracle.dbtools.plugin.api.logging.Log,oracle.dbtools.rest.resource.modules.xml.StaticManifests,oracle.dbtools.common.reflect.ClassLoaderResources,oracle.dbtools.rest.resource.modules.xml.XMLResourceModules,oracle.dbtools.plugin.api.routes.PathTemplates,oracle.dbtools.rest.resource.modules.ResourceModulePatterns,oracle.dbtools.rest.resource.jdbc.hooks.JDBCDispatchHooks,oracle.dbtools.rest.resource.modules.xml.StaticPrivileges,oracle.dbtools.rest.resource.generator.ResourceGenerators), due to the following error: oracle.dbtools.common.UnrecoverableException: [[

          Exception Description: The class oracle.dbtools.rest.resource.modules.xml.Content requires a zero argument constructor or a specified factory method.  Note that non-static inner classes do not have zero argument constructors and are not supported. oracle.dbtools.common.di.DependencyInjectionException: Could not invoke: oracle.dbtools.url.mapping.node.NodeMapper(oracle.dbtools.plugin.api.logging.Log,oracle.dbtools.common.di.ServiceLocator,oracle.dbtools.http.dispatch.MetaDataFactory,oracle.dbtools.http.routes.RoutePatterns,oracle.dbtools.http.servlet.DispatchableServletDependencies), due to the following error: oracle.dbtools.common.di.DependencyInjectionException: Could not invoke: oracle.dbtools.rest.resource.modules.xml.StaticModules(oracle.dbtools.plugin.api.logging.Log,oracle.dbtools.rest.resource.modules.xml.StaticManifests,oracle.dbtools.common.reflect.ClassLoaderResources,oracle.dbtools.rest.resource.modules.xml.XMLResourceModules,oracle.dbtools.plugin.api.routes.PathTemplates,oracle.dbtools.rest.resource.modules.ResourceModulePatterns,oracle.dbtools.rest.resource.jdbc.hooks.JDBCDispatchHooks,oracle.dbtools.rest.resource.modules.xml.StaticPrivileges,oracle.dbtools.rest.resource.generator.ResourceGenerators), due to the following error: oracle.dbtools.common.UnrecoverableException:

          Exception Description: The class oracle.dbtools.rest.resource.modules.xml.Content requires a zero argument constructor or a specified factory method.  Note that non-static inner classes do not have zero argument constructors and are not supported.

          at oracle.dbtools.common.di.DependencyInjectionException.convert(DependencyInjectionException.java:59)

          at oracle.dbtools.common.di.Services.acquire(Services.java:172)

          at oracle.dbtools.http.entrypoint.EntryPoint.service(EntryPoint.java:78)

          at oracle.dbtools.http.entrypoint.EntryPointServlet.service(EntryPointServlet.java:49)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

          at oracle.dbtools.rt.web.HttpEndpointBase.dispatchableServices(HttpEndpointBase.java:113)

          at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:80)

          ...

           

          In AdminServer.log:

           

          ####<sij 30, 2018, 3:09:46,979 PM CET> <Error> <HTTP> <FRS12C2012> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <f009ba62-c4af-4f26-b0ff-dcd0f9cd86fd-00000064> <1517321386979> <[severity-value: 8] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-101020> <[ServletContext@1475778764[app:ords module:ords.war path:null spec-version:3.1]] Servlet failed with an Exception

          java.lang.IllegalArgumentException: Header:Error-Reason Cannot contain CRLF Charcters

          at weblogic.servlet.internal.ServletResponseImpl.checkForCRLFChars(ServletResponseImpl.java:1893)

          at weblogic.servlet.internal.ServletResponseImpl.addHeader(ServletResponseImpl.java:633)

          at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:212)

          at oracle.dbtools.rt.web.AbsoluteLocationHeader.addHeader(AbsoluteLocationHeader.java:54)

          at oracle.dbtools.http.errors.ServletResponseException.service(ServletResponseException.java:89)

          ...

          • 2. Re: ORDS can't open Error 500 (on weblogic 12c)
            despa

            I found solution that worked for me:

             

            In \app\oracle\config\domains\frs\bin\startWeblogic.cmd find this line:

             

            set JAVA_OPTIONS=%JAVA_OPTIONS% -Djava.util.logging.manager=oracle.core.ojdl.logging.ODLLogManager

             

            and add at the end:

             

            -Dcom.sun.xml.ws.spi.db.BindingContextFactory=com.sun.xml.ws.db.glassfish.JAXBRIContextFactory -Djavax.xml.bind.JAXBContext=com.sun.xml.bind.v2.ContextFactory

             

             

            it should look like:

             

            set JAVA_OPTIONS=%JAVA_OPTIONS% -Djava.util.logging.manager=oracle.core.ojdl.logging.ODLLogManager -Dcom.sun.xml.ws.spi.db.BindingContextFactory=com.sun.xml.ws.db.glassfish.JAXBRIContextFactory -Djavax.xml.bind.JAXBContext=com.sun.xml.bind.v2.ContextFactory

             

            save file...

             

            Then, restart server, and I hope ords will work...

            1 person found this helpful
            • 3. Re: ORDS can't open Error 500 (on weblogic 12c)
              d3bruts1d

              Look at the "WebLogic Support" section of ORDS Release Notes 17.4 . Note that the documentation is missing a dash from in front of the first argument.

              • 4. Re: ORDS can't open Error 500 (on weblogic 12c)
                thatJeffSmith-Oracle

                 

                 

                Note that the documentation is missing a dash from in front of the first argument.

                 

                Should be fixed now.

                • 5. Re: ORDS can't open Error 500 (on weblogic 12c)
                  d3bruts1d

                  Thanks Jeff. That dash is really important.

                  • 6. Re: ORDS can't open Error 500 (on weblogic 12c)
                    Prethviraj-Oracle

                    Thanks toni.despa 

                     

                    I was also faced same issue on ORDS and after that i have added Toni suggested parameter on startWebLogic.sh

                    its worked like charm

                     

                    Like this :

                    JAVA_OPTIONS="${JAVA_OPTIONS} -Dlaunch.main.class=${SERVER_CLASS} -Dlaunch.class.path="${CLASSPATH}" -Dcom.sun.xml.ws.spi.db.BindingContextFactory=com.sun.xml.ws.db.glassfish.JAXBRIContextFactory -Djavax.xml.bind.JAXBContext=com.sun.xml.bind.v2.ContextFactory -Dlaunch.complete=weblogic.store.internal.LockManagerImpl -cp ${WL_HOME}/server/lib/pcl2.jar"

                            export JAVA_OPTIONS

                     

                    Regards

                    Prethviraj