5 Replies Latest reply on Dec 5, 2008 11:28 AM by Alessandro Ilardo

    Failed to locate keystore '/keystore'

    Alessandro Ilardo Newbie

      Hi there, I'm starting with JBossESB and I'm trying to set up my first own ESB project.
      What I want to do is quite simple, accept a webservice request and route it to a service provider. During deployment I got this error related to the keystore (the provider listen on SSL)


      Caused by: org.jboss.soa.esb.ConfigurationException: Failed to locate keystore '/keystore'


      The keystore is in /server/default/conf and the SSL connector entry on /server/default/deploy/jboss-web.deployer/server.xml has been modified with the keystore path and password.

      <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
       maxThreads="150" scheme="https" secure="true"
       clientAuth="false" sslProtocol="TLS" keystoreFile="${jboss.server.home.dir}/conf/virtualLab.keystore"
       keystorePass="xxxxxxx" />
      


      What am I missing?
      Thanks in advance for your help

        • 1. Re: Failed to locate keystore '/keystore'
          Alessandro Ilardo Newbie

          Today I've investigated and start again.
          Now I've followed this documentation, but nothing, still having the error

          http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/transport.html

          When JBoss server starts has these properties

          [quoteJAVA_OPTS="$JAVA_OPTS -Djavax.net.ssl.keyStore=/opt/jboss-4.2.2.GA/server/default/conf/localhost.keystore"
          JAVA_OPTS="$JAVA_OPTS -Djavax.net.ssl.keyStorePassword=xxxxxxxxx"
          JAVA_OPTS="$JAVA_OPTS -Djavax.net.ssl.trustStore=/opt/jboss-4.2.2.GA/server/default/conf/localhost.truststore"
          JAVA_OPTS="$JAVA_OPTS -Djavax.net.ssl.trustStorePassword=xxxxxxxx"
          ]

          • 2. Re: Failed to locate keystore '/keystore'
            Daniel Bevenius Master

            Hi,

            was there a stacktrace for the "Caused by: org.jboss.soa.esb.ConfigurationException: Failed to locate keystore '/keystore' " ?

            Regards,

            /Daniel

            • 3. Re: Failed to locate keystore '/keystore'
              Alessandro Ilardo Newbie

              The stack trace


              17:39:56,509 INFO [JBoss4ESBDeployer] create esb service, IdentityManager.esb
              17:39:56,716 INFO [ESBinternalQueue] Bound to JNDI name: queue/eu.virtualLab.esb.jms.ESBinternalQueue
              17:39:56,929 WARN [ServiceController] Problem starting service jboss.esb:deployment=IdentityManager.esb
              org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException: Error configuring action processing pipeline
              at org.jboss.soa.esb.listeners.message.MessageAwareListener.doInitialise(MessageAwareListener.java:188)
              at org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle.initialise(AbstractManagedLifecycle.java:133)
              at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleController.initialiseInstances(ManagedLifecycleController.java:150)
              at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleController.start(ManagedLifecycleController.java:69)
              at org.jboss.soa.esb.listeners.config.JBoss4ESBDeployment.startService(JBoss4ESBDeployment.java:83)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
              at $Proxy0.start(Unknown Source)
              at org.jboss.system.ServiceController.start(ServiceController.java:417)
              at org.jboss.system.ServiceController.start(ServiceController.java:435)
              at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy4.start(Unknown Source)
              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
              at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy9.deploy(Unknown Source)
              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
              Caused by: org.jboss.soa.esb.ConfigurationException: Unexpected exception while instantiating action instance
              at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.getActionClassInstance(ActionProcessorMethodInfo.java:359)
              at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.getActionClassInstance(ActionProcessorMethodInfo.java:340)
              at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.<init>(ActionProcessingPipeline.java:190)
              at org.jboss.soa.esb.listeners.message.MessageAwareListener.doInitialise(MessageAwareListener.java:182)
              ... 52 more
              Caused by: java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
              at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.getActionClassInstance(ActionProcessorMethodInfo.java:355)
              ... 55 more
              Caused by: org.jboss.soa.esb.ConfigurationException: Failed to locate keystore '/keystore'.
              at org.jboss.soa.esb.http.configurators.HttpProtocol.getKeyMaterial(HttpProtocol.java:144)
              at org.jboss.soa.esb.http.configurators.HttpProtocol.configure(HttpProtocol.java:88)
              at org.jboss.soa.esb.http.HttpClientFactory.createHttpClient(HttpClientFactory.java:88)
              at org.jboss.soa.esb.actions.soap.SOAPClient.<init>(SOAPClient.java:312)
              ... 60 more
              17:39:56,991 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

              --- MBeans waiting for other MBeans ---
              ObjectName: jboss.esb:deployment=IdentityManager.esb
              State: FAILED
              Reason: org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException: Error configuring action processing pipeline
              I Depend On:
              jboss.esb:service=SoapUIClientService
              jboss.mq.destination:service=Queue,name=eu.virtualLab.esb.jms.ESBinternalQueue
              jboss.esb:deployment=jbossesb.esb
              jboss.esb:deployment=soap.esb

              --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
              ObjectName: jboss.esb:deployment=IdentityManager.esb
              State: FAILED
              Reason: org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException: Error configuring action processing pipeline
              I Depend On:
              jboss.esb:service=SoapUIClientService
              jboss.mq.destination:service=Queue,name=eu.virtualLab.esb.jms.ESBinternalQueue
              jboss.esb:deployment=jbossesb.esb
              jboss.esb:deployment=soap.esb



              • 4. Re: Failed to locate keystore '/keystore'
                Chris Au Newbie

                I tried that before, did you specify the keystore in the action definition (jboss-esb.xml) like this?

                < action name="soapuiclientaction"
                class="org.jboss.soa.esb.actions.soap.SOAPClient">
                < ... >
                < property name="http-client-property">
                < http-client-property name="keystore" value="/cacerts" />
                < http-client-property name="keystore-passw" value="changeit" />
                < /property>
                < /action>

                • 5. Re: Failed to locate keystore '/keystore'
                  Alessandro Ilardo Newbie

                  It worked!
                  Thank you very much.

                  Just a quick question: where can I find further details about all these properties? I mean, except the keystore there could be more usefull properties which I should know.

                  Thanks again.