Jump to content
Changes to the Jaspersoft community edition download ×

During CAS Integration getting "Failed to load keystore type JKS with path /root/.keystore"


shashank_bokade

Recommended Posts

I'm trying to integrate jasper server with CAS. I have made changes as described in 


 

I have placed CAS "cascert.keystore" file in /opt/jasperreports-server-cp-5.6.0/

and changed catalina.sh(placed in path "/opt/jasperreports-server-cp-5.6.0/apache-tomcat/bin") as follows.

 

# Uncomment the following line to make the umask available when using the

# org.apache.catalina.security.SecurityListener

JAVA_OPTS="$JAVA_OPTS -Dorg.apache.catalina.security.SecurityListener.UMASK=`umask` -Djavax.net.ssl.trustStore=/opt/jasperreports-server-cp-5.6.0"


 

 

but I'm getting "Failed to load keystore type JKS with path /root/.keystore"

 

Please help me where I'm doing wrong.

 

Feb 02, 2017 3:56:07 PM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/jasperreports-server-cp-5.6.0/postgresql/lib:/opt/jasperreports-server-cp-5.6.0/common/lib::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

Feb 02, 2017 3:56:07 PM org.apache.tomcat.util.digester.Digester endElement

WARNING:   No rules found matching 'Server/Service/connector'.

Feb 02, 2017 3:56:07 PM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["http-bio-8443"]

Feb 02, 2017 3:56:07 PM org.apache.tomcat.util.net.jsse.JSSESocketFactory getStore

SEVERE: Failed to load keystore type JKS with path /root/.keystore due to /root/.keystore (No such file or directory)

java.io.FileNotFoundException: /root/.keystore (No such file or directory)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.<init>(FileInputStream.java:138)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:385)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:291)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:549)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:489)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:434)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:181)

at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393)

at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)

at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)

at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)

at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.startup.Catalina.load(Catalina.java:640)

at org.apache.catalina.startup.Catalina.load(Catalina.java:665)

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:606)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)

 

Feb 02, 2017 3:56:07 PM org.apache.coyote.AbstractProtocol init

SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8443"]

java.io.FileNotFoundException: /root/.keystore (No such file or directory)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.<init>(FileInputStream.java:138)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:385)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:291)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:549)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:489)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:434)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:181)

at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393)

at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)

at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)

at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)

at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.startup.Catalina.load(Catalina.java:640)

at org.apache.catalina.startup.Catalina.load(Catalina.java:665)

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:606)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)

 

Feb 02, 2017 3:56:07 PM org.apache.catalina.core.StandardService initInternal

SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8443]]

org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8443]]

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)

at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.startup.Catalina.load(Catalina.java:640)

at org.apache.catalina.startup.Catalina.load(Catalina.java:665)

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:606)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)

Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed

at org.apache.catalina.connector.Connector.initInternal(Connector.java:983)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

... 12 more

Caused by: java.io.FileNotFoundException: /root/.keystore (No such file or directory)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.<init>(FileInputStream.java:138)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:385)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:291)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:549)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:489)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:434)

at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:181)

at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393)

at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)

at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)

at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)

at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)

... 13 more

 

Feb 02, 2017 3:56:07 PM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["ajp-bio-9009"]

Feb 02, 2017 3:56:07 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 801 ms

Feb 02, 2017 3:56:07 PM org.apache.catalina.core.StandardService startInternal

INFO: Starting service Catalina

Feb 02, 2017 3:56:07 PM org.apache.catalina.core.StandardEngine startInternal

INFO: Starting Servlet Engine: Apache Tomcat/7.0.42

Feb 02, 2017 3:56:07 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /opt/jasperreports-server-cp-5.6.0/apache-tomcat/webapps/ROOT

Feb 02, 2017 3:56:08 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /opt/jasperreports-server-cp-5.6.0/apache-tomcat/webapps/jasperserver

Feb 02, 2017 3:56:18 PM org.apache.catalina.startup.TaglibUriRule body

INFO: TLD skipped. URI: http://www.tonbeller.com/jpivot/core is already defined

Feb 02, 2017 3:56:18 PM org.apache.catalina.startup.TaglibUriRule body

INFO: TLD skipped. URI: http://www.springframework.org/tags is already defined

Feb 02, 2017 3:56:18 PM org.apache.catalina.startup.TaglibUriRule body

INFO: TLD skipped. URI: http://www.springframework.org/tags is already defined

Feb 02, 2017 3:56:19 PM org.apache.catalina.startup.TaglibUriRule body

INFO: TLD skipped. URI: http://www.yale.edu/its/tp/cas/version2 is already defined

Feb 02, 2017 3:56:25 PM org.apache.catalina.core.StandardContext startInternal

SEVERE: Error listenerStart

Feb 02, 2017 3:56:25 PM org.apache.catalina.core.StandardContext startInternal

SEVERE: Context [/jasperserver] startup failed due to previous errors

Feb 02, 2017 3:56:25 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

SEVERE: The web application [/jasperserver] appears to have started a thread named [Thread-2] but has failed to stop it. This is very likely to create a memory leak.

Feb 02, 2017 3:56:25 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /opt/jasperreports-server-cp-5.6.0/apache-tomcat/webapps/manager

Feb 02, 2017 3:56:25 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /opt/jasperreports-server-cp-5.6.0/apache-tomcat/webapps/host-manager

Feb 02, 2017 3:56:25 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler ["ajp-bio-9009"]

Feb 02, 2017 3:56:25 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 18034 ms

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...