4 Replies Latest reply on May 12, 2003 6:30 PM by mozkill

    need JDK version recommendation for SSL

    mozkill

      I am trying to get SSL working from the examples posted in this forum by using JDK1.4_02 and JBoss 3.2.1 and I keep getting java reflection errors related to running the invoke method of the Digester....

      in other words, i seem to have some sort of class mismatch occuring.

      can someone recommend the most reliable JDK/JBoss combination so that i can get this working without these impossible to figure out exceptions that i get?

        • 1. Re: need JDK version recommendation for SSL
          mozkill

          well, now i tried mixing Jboss 3.0/Jdk1.3 and i get the exact same error. more specifically, if the SSL entry in my jboss-service.xml file exists, i get this exception during bootstrap:

          13:26:54,031 INFO [SSL] Created
          13:26:54,062 INFO [EmbeddedCatalinaService41] Starting
          13:26:55,046 INFO [JaasSecurityManagerService] Created securityMgr=org.jboss.security.plugins.JaasSecurityManager@221e9e
          13:26:55,046 INFO [JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCachePolicy@299347
          13:26:55,046 INFO [JaasSecurityManagerService] Added SSL, org.jboss.security.plugins.SecurityDomainContext@430b6 to map
          13:26:55,062 ERROR [Digester] Begin event threw exception
          java.lang.reflect.InvocationTargetException:
          java.lang.ClassCastException: org.jboss.security.plugins.JaasSecurityManager
          at org.jboss.web.catalina.security.SSLServerSocketFactory.setSecurityDomainName(SSLServerSocketFactory.java:46)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)
          at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)
          at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)
          at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019)
          at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
          at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:259)
          at org.apache.commons.digester.Rule.begin(Rule.java:200)
          at org.apache.commons.digester.Digester.startElement(Digester.java:1268)
          at org.jboss.web.catalina.LoggedXmlMapper.startElement(LoggedXmlMapper.java:70)
          at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1017)
          at org.apache.xml.utils.TreeWalker.startNode(TreeWalker.java:362)
          at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:183)
          at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:325)
          at org.jboss.web.catalina.ConfigHandler.applyHostConfig(ConfigHandler.java:130)
          at org.jboss.web.catalina.EmbeddedCatalinaService41.initCatalina(EmbeddedCatalinaService41.java:338)
          at org.jboss.web.catalina.EmbeddedCatalinaService41.startService(EmbeddedCatalinaService41.java:213)
          at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
          at java.lang.reflect.Method.invoke(Native Method)

          • 2. Re: need JDK version recommendation for SSL
            mozkill

            by the way, I got ssl working with the Jetty version of JBoss but my contract requires the Tomcat version which i am still struggling with. so... please, give be advice based on the Tomcat version.

            • 3. Re: need JDK version recommendation for SSL
              mozkill

              now i dont even know for sure if i supposed to be using the CoyoteConnector OR the HttpConnector when i setup SSL in the JBoss/Tomcat server...

              • 4. Re: need JDK version recommendation for SSL
                mozkill

                ok, i figured it out. i need to add a Factory config to the Connector config...