3 Replies Latest reply on Nov 27, 2013 3:03 PM by andreoliveira

    Access Sites after installation

    andreoliveira

      Hi!!

       

      I've installed WebCenter Sites on a new weblogic instance. When i've hitted the test button all tests failled. With some tweaks ive been able to deploy with success both cs and cas. Then i've tried to access cas login page with success, but when i try to access /servlet it redirects me to /servlet/wem/fatwire/wem/Welcome and i got the next message:

       

      javax.servlet.ServletException: Failed gateway redirect org.owasp.esapi.errors.ConfigurationException: java.lang.reflect.InvocationTargetException SecurityConfiguration class (org.owasp.esapi.reference.DefaultSecurityConfiguration) CTOR threw exception.

      at com.fatwire.wem.sso.cas.filter.CASFilter.doFilter(CASFilter.java:686)

      at com.fatwire.wem.sso.SSOFilter.doFilter(SSOFilter.java:51)

      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)

      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)

      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)

      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)

      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

       

      Any hint?

       

      Thanks in adv.

      André

        • 1. Re: Access Sites after installation
          Yct-Oracle

          Hello André,

           

          There's probably some additional information in your WLS logs complaining about not able to load ESAPI.properties. Could you please check?


          Also, the ESAPI.properties is located under <WCSites_install>/bin. Make sure this dir is in your classpath and that the user has permission to the folder.

          • 2. Re: Access Sites after installation
            andreoliveira

            Thanks for your answer...

             

            Ok i've tried again with new instructions and i think i did it all right... Now i have a different error in the same step (after login).

             

            org.springframework.webflow.engine.ActionExecutionException: Exception thrown executing [AnnotatedAction@4f1d32c2 targetAction = org.jasig.cas.web.flow.AuthenticationViaFormAction@799039ba, attributes = map['method' -> 'submit']] in state 'submit' of flow 'login-webflow' -- action execution attributes were 'map['method' -> 'submit']'; nested exception is java.lang.RuntimeException: java.io.FileNotFoundException: Response: '400: Bad Request' for url: 'http://localhost:7001/servlet/ContentServer?pagename=fatwire/wem/sso/ssoLogin'

            at org.springframework.webflow.engine.ActionExecutor.execute(ActionExecutor.java:64)

            at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:156)

            at org.springframework.webflow.engine.State.enter(State.java:191)

            at org.springframework.webflow.engine.Transition.execute(Transition.java:212)

            at org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:107)

            at org.springframework.webflow.engine.Flow.onEvent(Flow.java:534)

            at org.springframework.webflow.engine.impl.RequestControlContextImpl.signalEvent(RequestControlContextImpl.java:205)

            at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:161)

            at org.springframework.webflow.engine.State.enter(State.java:191)

            at org.springframework.webflow.engine.Transition.execute(Transition.java:212)

            at org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:107)

            at org.springframework.webflow.engine.Flow.onEvent(Flow.java:534)

            at org.springframework.webflow.engine.impl.RequestControlContextImpl.signalEvent(RequestControlContextImpl.java:205)

            at org.springframework.webflow.engine.impl.FlowExecutionImpl.signalEvent(FlowExecutionImpl.java:202)

            at org.springframework.webflow.executor.FlowExecutorImpl.resume(FlowExecutorImpl.java:222)

            at org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:111)

            at org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:165)

            at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)

            at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)

            at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)

            at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)

            at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)

            at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)

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

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

            at org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:115)

            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)

            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)

            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

            at org.inspektr.common.web.ClientInfoThreadLocalFilter.doFilterInternal(ClientInfoThreadLocalFilter.java:48)

            at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

            at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)

            at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

            at com.fatwire.cas.web.CASXSSFilter.doFilter(CASXSSFilter.java:94)

            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)

            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)

            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)

            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)

            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

            Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: Response: '400: Bad Request' for url: 'http://localhost:7001/servlet/ContentServer?pagename=fatwire/wem/sso/ssoLogin'

            at com.fatwire.security.common.SecurityRemotePost.securePost(SecurityRemotePost.java:102)

            at com.fatwire.wem.sso.cas.plugin.CSAuthenticationHandler.authenticateUsernamePasswordInternal(CSAuthenticationHandler.java:106)

            at org.jasig.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler.doAuthentication(AbstractUsernamePasswordAuthenticationHandler.java:56)

            at org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler.authenticate(AbstractPreAndPostProcessingAuthenticationHandler.java:71)

            at org.jasig.cas.authentication.AuthenticationManagerImpl.authenticate(AuthenticationManagerImpl.java:88)

            at org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket(CentralAuthenticationServiceImpl.java:417)

            at org.jasig.cas.web.flow.AuthenticationViaFormAction.submit(AuthenticationViaFormAction.java:107)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:601)

            at org.springframework.webflow.util.DispatchMethodInvoker.invoke(DispatchMethodInvoker.java:99)

            at org.springframework.webflow.action.MultiAction.doExecute(MultiAction.java:133)

            at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:192)

            at org.springframework.webflow.engine.AnnotatedAction.execute(AnnotatedAction.java:146)

            at org.springframework.webflow.engine.ActionExecutor.execute(ActionExecutor.java:59)

            ... 47 more

            Caused by: java.io.FileNotFoundException: Response: '400: Bad Request' for url: 'http://localhost:7001/servlet/ContentServer?pagename=fatwire/wem/sso/ssoLogin'

            at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:511)

            at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:37)

            at weblogic.net.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:1005)

            at com.fatwire.security.common.SecurityRemotePost.securePost(SecurityRemotePost.java:79)

            ... 62 more

             

             

            in sites.log i have the next message:

            [2013-11-21 13:50:49,702 GMT] [FATAL] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.db] Exception on lookup of data source jdbc_datasource

            javax.naming.NameNotFoundException: Unable to resolve 'jdbc_datasource'. Resolved ''; remaining name 'jdbc_datasource'

             

            (among others like that)

             

            i've checked in datasources menu at weblogic console and i have a jdbc_datasource configured to oracle conectors.

             

            cas.log is ok.

             

            server log have the same exception mentioned above. any hint on that?

             

            thanks in adv,

            André

             

            --Edit--

             

            I guess its the same problem here https://forums.oracle.com/message/10947609. There is no answer on that.

            thnks

            • 3. Re: Access Sites after installation
              andreoliveira

              Problem solved... After some tweaks i ended up reinstalling again. this time worked thanks anyway