problem with configuring ssl at jboss app server level
venkaiah Mar 17, 2005 3:04 AMhi all
i configured ssl on tomcat webserver level by creating a keystore but when i am configuring at jboss server level by modifying JBOSS_HOME/default/conf/jboss-service.xml
as below at the security realm
jboss.security:service=XMLLoginConfig
login-config.xml
<!-- JAAS security manager and realm mapping -->
org.jboss.security.plugins.JaasSecurityDomain
anonymous
<!-- DefaultCacheTimeout: Specifies the default timed cache policy timeout
in seconds.
If you want to disable caching of security credentials, set this to 0 to
force authentication to occur every time. This has no affect if the
AuthenticationCacheJndiName has been changed from the default value.
-->
1800
<!-- DefaultCacheResolution: Specifies the default timed cache policy
resolution in seconds. This controls the interval at which the cache
current timestamp is updated and should be less than the DefaultCacheTimeout
in order for the timeout to be meaningful. This has no affect if the
AuthenticationCacheJndiName has been changed from the default value.
-->
60
jboss.security:service=JaasSecurityManager
${jboss.server.home.dir}/conf/ls3.keystore
venkat
but when i restart my server
it is throwing exception as below
12:48:50,117 INFO [Server] Starting JBoss (MX MicroKernel)...
12:48:50,117 INFO [Server] Release ID: JBoss [Zion] 4.0.1 (build: CVSTag=JBoss_4_0_1 date=200412230944)
12:48:50,117 INFO [Server] Home Dir: C:\devtools\jboss-4.0.1
12:48:50,117 INFO [Server] Home URL: file:/C:/devtools/jboss-4.0.1/
12:48:50,117 INFO [Server] Library URL: file:/C:/devtools/jboss-4.0.1/lib/
12:48:50,117 INFO [Server] Patch URL: null
12:48:50,117 INFO [Server] Server Name: default
12:48:50,117 INFO [Server] Server Home Dir: C:\devtools\jboss-4.0.1\server\default
12:48:50,117 INFO [Server] Server Home URL: file:/C:/devtools/jboss-4.0.1/server/default/
12:48:50,117 INFO [Server] Server Data Dir: C:\devtools\jboss-4.0.1\server\default\data
12:48:50,132 INFO [Server] Server Temp Dir: C:\devtools\jboss-4.0.1\server\default\tmp
12:48:50,132 INFO [Server] Server Config URL: file:/C:/devtools/jboss-4.0.1/server/default/conf/
12:48:50,132 INFO [Server] Server Library URL: file:/C:/devtools/jboss-4.0.1/server/default/lib/
12:48:50,132 INFO [Server] Root Deployment Filename: jboss-service.xml
12:48:50,132 INFO [Server] Starting General Purpose Architecture (GPA)...
12:48:50,945 INFO [ServerInfo] Java version: 1.4.2_05,Sun Microsystems Inc.
12:48:50,945 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_05-b04,Sun Microsystems Inc.
12:48:50,945 INFO [ServerInfo] OS-System: Windows 2000 5.0,x86
12:48:51,538 INFO [Server] Core system initialized
12:48:54,242 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
12:48:59,085 INFO [WebService] Using RMI server codebase: http://client-65:8083/
12:48:59,429 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
12:49:00,476 ERROR [JaasSecurityDomain] Starting failed Security:domain=TomcatSSL,service=JaasSecurityDomain
java.security.NoSuchAlgorithmException: Algorithm PBEwithMD5andDES not available
at javax.crypto.SunJCE_b.a(DashoA6275)
at javax.crypto.SecretKeyFactory.getInstance(DashoA6275)
at org.jboss.security.plugins.JaasSecurityDomain.loadKeystorePassword(JaasSecurityDomain.java:416)
at org.jboss.security.plugins.JaasSecurityDomain.startService(JaasSecurityDomain.java:372)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
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:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:416)
at org.jboss.system.ServiceController.start(ServiceController.java:438)
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:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
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:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
at org.jboss.Main.boot(Main.java:162)
at org.jboss.Main$1.run(Main.java:423)
at java.lang.Thread.run(Thread.java:534)
12:49:00,476 WARN [ServiceController] Problem starting service Security:domain=TomcatSSL,service=JaasSecurityDomain
java.security.NoSuchAlgorithmException: Algorithm PBEwithMD5andDES not available
at javax.crypto.SunJCE_b.a(DashoA6275)
at javax.crypto.SecretKeyFactory.getInstance(DashoA6275)
at org.jboss.security.plugins.JaasSecurityDomain.loadKeystorePassword(JaasSecurityDomain.java:416)
at org.jboss.security.plugins.JaasSecurityDomain.startService(JaasSecurityDomain.java:372)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
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:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:416)
at org.jboss.system.ServiceController.start(ServiceController.java:438)
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:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
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:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
at org.jboss.Main.boot(Main.java:162)
at org.jboss.Main$1.run(Main.java:423)
at java.lang.Thread.run(Thread.java:534)
12:49:08,335 INFO [Embedded] Catalina naming disabled
12:49:10,210 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
12:49:24,648 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8443
12:49:24,648 INFO [Catalina] Initialization processed in 16047 ms
12:49:24,648 INFO [StandardService] Starting service jboss.web
12:49:24,663 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.28
12:49:24,726 INFO [StandardHost] XML validation disabled
12:49:25,054 INFO [Catalina] Server startup in 406 ms
12:49:25,335 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/C:/devtools/jboss-4.0.1/server/default/deploy/http-invoker.sar/invoker.war/
12:49:27,429 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/C:/devtools/jboss-4.0.1/server/default/tmp/deploy/tmp24201jboss-ws4ee-exp.war/
12:49:27,757 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/C:/devtools/jboss-4.0.1/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/
12:49:28,163 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/C:/devtools/jboss-4.0.1/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
12:49:34,054 INFO [MailService] Mail Service bound to java:/Mail
12:49:35,117 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/devtools/jboss-4.0.1/server/default/deploy/jboss-local-jdbc.rar
12:49:35,585 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/devtools/jboss-4.0.1/server/default/deploy/jboss-xa-jdbc.rar
12:49:35,882 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/devtools/jboss-4.0.1/server/default/deploy/jms/jms-ra.rar
12:49:36,242 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/devtools/jboss-4.0.1/server/default/deploy/mail-ra.rar
12:49:39,554 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=DefaultDS,service=DataSourceBinding to JNDI name 'java:DefaultDS'
12:49:39,648 WARN [ConfiguredIdentityLoginModule] Creating LoginModule with no configured password!
12:49:40,476 INFO [A] Bound to JNDI name: queue/A
12:49:40,476 INFO [B] Bound to JNDI name: queue/B
12:49:40,476 INFO [C] Bound to JNDI name: queue/C
12:49:40,492 INFO [D] Bound to JNDI name: queue/D
12:49:40,492 INFO [ex] Bound to JNDI name: queue/ex
12:49:40,538 INFO [testTopic] Bound to JNDI name: topic/testTopic
12:49:40,554 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
12:49:40,554 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
12:49:40,554 INFO [testQueue] Bound to JNDI name: queue/testQueue
12:49:40,695 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
12:49:40,820 INFO [DLQ] Bound to JNDI name: queue/DLQ
12:49:41,351 INFO [ConnectionFactoryBindingService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=JmsXA,service=ConnectionFactoryBinding to JNDI name 'java:JmsXA'
12:49:45,992 INFO [TomcatDeployer] deploy, ctxPath=/LS3, warUrl=file:/C:/devtools/jboss-4.0.1/server/default/deploy/LS3.war/
12:49:49,695 INFO [PropertyMessageResources] Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
12:49:49,695 INFO [PropertyMessageResources] Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
12:49:52,163 INFO [PropertyMessageResources] Initializing, config='ApplicationResources', returnNull=true
12:49:52,367 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/C:/devtools/jboss-4.0.1/server/default/deploy/jmx-console.war/
12:49:52,804 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C:/devtools/jboss-4.0.1/server/default/deploy/management/web-console.war/
12:49:55,804 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
MBeans waiting for other MBeans:
ObjectName: Security:domain=TomcatSSL,service=JaasSecurityDomain
state: FAILED
I Depend On: jboss.security:service=JaasSecurityManager
Depends On Me: java.security.NoSuchAlgorithmException: Algorithm PBEwithMD5andDES not available
MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: Security:domain=TomcatSSL,service=JaasSecurityDomain
state: FAILED
I Depend On: jboss.security:service=JaasSecurityManager
Depends On Me: java.security.NoSuchAlgorithmException: Algorithm PBEwithMD5andDES not available
12:49:56,163 ERROR [Server] Root deployment has missing dependencies; continuing
Incomplete Deployment listing:
MBeans waiting for other MBeans:
ObjectName: Security:domain=TomcatSSL,service=JaasSecurityDomain
state: FAILED
I Depend On: jboss.security:service=JaasSecurityManager
Depends On Me: java.security.NoSuchAlgorithmException: Algorithm PBEwithMD5andDES not available
MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: Security:domain=TomcatSSL,service=JaasSecurityDomain
state: FAILED
I Depend On: jboss.security:service=JaasSecurityManager
Depends On Me: java.security.NoSuchAlgorithmException: Algorithm PBEwithMD5andDES not available
at org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1286)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:741)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
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:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
at org.jboss.Main.boot(Main.java:162)
at org.jboss.Main$1.run(Main.java:423)
at java.lang.Thread.run(Thread.java:534)
12:49:56,367 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
12:49:56,835 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
12:49:56,867 INFO [JkMain] Jk running ID=0 time=0/157 config=null
12:49:56,913 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8443
12:49:56,960 INFO [Server] JBoss (MX MicroKernel) [4.0.1 (build: CVSTag=JBoss_4_0_1 date=200412230944)] Started in 1m:6s:47ms
can you please help me in solving the problem
thanks
venkaiah