Hi,
I was able to deploy Entirex …aar service to apache tomcat 8 successfully. But not with tomcat 8 with security manager enabled. Are there any additional configuration to be made anywhere for deployment in tomcat with security manager enabled.
I am getting below error in catalina logs:
for this StuckThreadDetectionValve is [60] seconds). There is/are [1] thread(s) in total that are mo
nitored by this Valve and may be stuck.
java.lang.Throwable
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:397)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:549)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:170)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilte
rChain.java:225)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain
.java:47)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java
:149)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java
:145)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.j
ava:144)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:549)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:253)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilte
rChain.java:191)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain
.java:47)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java
Have i missed any configuration. Please direct me on this issue.
Really appreciate your assistance.
Issue with catalina policy permissions. After providing necessary permissions which are thrown as access exception in logs, now entirex services are listed as faulty in services/ListFaultyServices page. Below error is show in page.
java.lang.NoClassDefFoundError: Could not initialize class com.softwareag.entirex.xml.rt.SAXParserLoader
at com.softwareag.entirex.xml.rt.AbstractStreamParser.parse(AbstractStreamParser.java:62)
at com.softwareag.entirex.xml.rt.WSSServiceLifeCycle.startUp(WSSServiceLifeCycle.java:206)
at org.apache.axis2.deployment.ServiceBuilder.startupServiceLifecycle(ServiceBuilder.java:1012)
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:513)
at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101)
at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:131)
at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:165)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:84)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:835)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:379)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:256)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:152)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:283)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
at com.softwareag.wsstack.deployment.server.SAGAdminServlet.initConfigContext(SAGAdminServlet.java:121)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:467)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:549)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:314)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:170)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:123)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1132)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:985)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4885)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5199)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:129)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:150)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:140)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:717)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1125)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1859)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
I have specified the below permissions in catalina policy file:
permission java.util.PropertyPermission "catalina.base", "read";
permission java.net.SocketPermission "*:*" , "connect";
permission java.util.PropertyPermission "com.ctc.wstx.returnNullForDefaultNamespace", "read";
permission java.util.PropertyPermission "org.apache.axis2.classloader.JarFileClassLoader", "read";
permission java.util.PropertyPermission "java.io.tmpdir", "read";
permission java.util.PropertyPermission "org.apache.xml.security.ignoreLineBreaks", "read, write";
permission java.util.PropertyPermission "org.apache.xml.security.resource.config", "read";
permission java.util.PropertyPermission "org.owasp.esapi.SecurityConfiguration", "read, write";
permission java.util.PropertyPermission "org.apache.ws.commons.extensions.ExtensionRegistry", "read";
permission java.io.FilePermission "${catalina.base}${file.separator}lib${file.separator}servlet-api.jar", "read";
permission java.io.FilePermission "${catalina.base}${file.separator}temp", "read, write, delete";
permission java.io.FilePermission "${catalina.base}${file.separator}temp${file.separator}*", "read, write, delete";
permission java.io.FilePermission "${catalina.base}${file.separator}temp${file.separator}-", "read, write, delete";
permission java.io.FilePermission "${catalina.base}${file.separator}temp${file.separator}safeToDelete.tmp", "read, delete";
.......
permission java.net.NetPermission "specifyStreamHandler";
permission java.lang.RuntimePermission "createClassLoader";
permission java.lang.RuntimePermission "setContextClassLoader";
permission java.lang.RuntimePermission "shutdownHooks";
permission java.lang.RuntimePermission "accessDeclaredMembers";
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
Please direct me on this issue.