Symantec Access Management

  • 1.  TAI Agent

    Posted Aug 25, 2015 08:48 PM

    Hi Guys,

     

    I have a Question !!

     

    In our environment, we use CA Siteminder implemented with CA IDM. We use Websphere as Application server & Apache as Webserver.

     

    Now we are planning to implement TAI agent on Websphere. The thing is there are two Siteminder Webagents to differentiate Internal & External users pointing to the same Application server.

     

    We Installed TAI agent & configured it. But the TAI agent is not coming up, We are not able to bring up the WAS once configuration is done & when we try to hit the application, the error is mentioned below.

     

    The following is the error message :

    Error Page Exception

     

     

    SRVE0260E: The server cannot use the error page specified for your application to handle the Original Exception printed below.

     

     

     

     

    Original Exception:

    Error Message: javax.servlet.ServletException: Filter [springSecurityFilterChain]: could not be initialized

    Error Code: 500

    Target Servlet: -

    Error Stack:

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource' defined in ServletContext resource [/WEB-INF/spring/WebServlet/servlet-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/spring/db-context.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchFieldError: org/apache/log4j/Level.TRACE

         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)

         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)

         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1387)

         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)

         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)

         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)

         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)

         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)

         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)

         at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:786)

         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:467)

         at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)

         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)

         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)

         at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1699)

         at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:414)

         at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)

         at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)

         at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749)

         at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)

         at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)

         at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)

         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1177)

         at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)

         at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)

         at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)

         at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:776)

         at com.ibm.ws.runtime.component.ApplicationMgrImpl$5.run(ApplicationMgrImpl.java:2195)

         at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5477)

         at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5603)

         at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)

         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2200)

         at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:435)

         at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)

         at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:378)

         at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:126)

         at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:984)

         at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:502)

         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1865)

         Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/spring/db-context.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchFieldError: org/apache/log4j/Level.TRACE

         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)

         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)

         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)

         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)

         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)

         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)

         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)

         ... 39 more

         Caused by: java.lang.NoSuchFieldError: org/apache/log4j/Level.TRACE

         at org.jboss.logging.Log4jLogger.translate(Log4jLogger.java:64)

         at org.jboss.logging.Log4jLogger.isEnabled(Log4jLogger.java:39)

         at org.jboss.logging.Logger.isTraceEnabled(Logger.java:98)

         at org.hibernate.internal.CoreMessageLogger_$logger.isTraceEnabled(CoreMessageLogger_$logger.java:415)

         at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:145)

         at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

         at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1818)

         at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1776)

         at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1861)

         at org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSessionFactory(LocalSessionFactoryBuilder.java:247)

         at org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:373)

         at org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:358)

         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541)

         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)

         ... 46 more

       

     

     

     

     

     

     

    Error Page Exception:

    Error Message: java.lang.NullPointerException

    Error Code: 0

    Target Servlet:

    Error Stack:

    java.lang.NullPointerException

         at org.apache.tiles.access.TilesAccess.getContainer(TilesAccess.java:124)

         at org.apache.tiles.access.TilesAccess.getContainer(TilesAccess.java:107)

         at org.apache.tiles.access.TilesAccess.getCurrentContainer(TilesAccess.java:174)

         at org.apache.tiles.template.InsertDefinitionModel.execute(InsertDefinitionModel.java:95)

         at org.apache.tiles.jsp.taglib.InsertDefinitionTag.doTag(InsertDefinitionTag.java:254)

         at com.ibm._jsp._error_2D_layout._jspx_meth_tiles_insertDefinition_0(_error_2D_layout.java:113)

         at com.ibm._jsp._error_2D_layout._jspService(_error_2D_layout.java:88)

         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)

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

         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230)

         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)

         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)

         at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)

         at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)

         at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:220)

         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)

         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:79)

         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:964)

         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1104)

         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1385)

         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:194)

         at com.ibm.ws.webcontainer.webapp.WebApp.sendError(WebApp.java:3384)

         at com.ibm.ws.webcontainer.webapp.WebApp.handleException(WebApp.java:3931)

         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3912)

         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)

         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:981)

         at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)

         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)

         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)

         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)

         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)

         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:287)

         at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1049)

         at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:643)

         at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)

         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)

         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

         at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)

         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)

         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)

         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)

         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1865)

         ---------------------------------------------------------------------------------------------------------------   

     

    Can anyone guide us on how this should be achieved as am very new to TAI agent.

     

    -Regards,

    Prakash



  • 2.  Re: TAI Agent

    Posted Apr 07, 2016 09:34 PM

    Hi Prakash,

    If the WAS cannot start up, the application cannot be served. This is expected behavior. Therefore, we need to first get more information on SystemErr log, SystemOut log to understand why the WAS cannot startup after TAI configured.

    Do you see SMWASASADefault log generated?

    If you disable TAI agent from WebAgent.conf, is the WAS able to startup?

    From the exception thrown, I didn't find information on Siteminder related. It's a bit difficult to troubleshoot. Have you checked with IBM on the exception thrown?

     

    Regards,

    Kar Meng



  • 3.  Re: TAI Agent

    Broadcom Employee
    Posted Apr 22, 2016 04:44 PM

    Hi Prakash,

     

    Were you able to figure this out?  If not, here is a response from Kar Meng that was posted to this early in April:

     

     

    Hi Prakash,

    If the WAS cannot start up, the application cannot be served. This is expected behavior. Therefore, we need to first get more information on SystemErr log, SystemOut log to understand why the WAS cannot startup after TAI configured.

    Do you see SMWASASADefault log generated?

    If you disable TAI agent from WebAgent.conf, is the WAS able to startup?

    From the exception thrown, I didn't find information on Siteminder related. It's a bit difficult to troubleshoot. Have you checked with IBM on the exception thrown?

     

    Regards,

    Kar Meng