10 Replies Latest reply on Mar 7, 2007 9:33 PM by charles751

    exception when run jboss-4.0.4 with the jboss federation sso

    charles751

      help me!

      i installed jboss federation sso in jboss-4.0.4.GA as the jboss-sso-1.0CR1
      readme.txt file step by step.

      when i performed:
      run -c default -b node1.jboss.com

      the jboss-4.0.4.GA console threw the following exception:

      2007-03-05 13:32:38,906 DEBUG [org.jboss.deployment.SARDeployer]
      create operation failed for package file:/D:/jboss-4.0.4.GA/server/default/deploy/jboss-sso.sar/

      org.jboss.deployment.DeploymentException:
      Error parsing the XML file: ;
      - nested throwable: (org.jboss.mx.util.JBossNotCompliantMBeanException: Error parsing the XML file: )

      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)

      at org.jboss.system.ServiceController.install(ServiceController.java:226)

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

        • 1. Re: exception when run jboss-4.0.4 with the jboss federation
          soshah

          Charles-

          Can you try the same steps and make sure you are using JDK5.


          We use the OpenSAML library for processing SAML tokens and its seems to have a dependency on JDk5.


          Let me know

          Thanks

          • 2. Re: exception when run jboss-4.0.4 with the jboss federation
            charles751

            thanks for your reply

            I used jdk1.4.2 yesterday.
            I will install jdk1.5 and test again.

            • 3. Re: exception when run jboss-4.0.4 with the jboss federation
              charles751

              Is the version of jdk1.5.0_10 the appropriate?
              Now i will use this jdk version to test the installation of the federated sso

              • 4. Re: exception when run jboss-4.0.4 with the jboss federation
                charles751

                I change jdk from 1.4.2 to 1.5.0 and tested the sso framework,but there were still some errors.

                I guested these errors maybe be associated with the file of users_en.properties in the jboss-identity-management.jar,but i do not know how to change it.

                the errors:

                2007-03-06 17:00:38,718 ERROR [org.jboss.security.idm.IdentityManager]
                org.jboss.security.idm.IdentityManager
                java.util.MissingResourceException:
                Can't find bundle for base name users, locale zh_CN

                at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)

                at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)

                at java.util.ResourceBundle.getBundle(ResourceBundle.java:549)

                at org.jboss.security.idm.demo.DemoLoginProvider.(DemoLoginProvider.java:47)


                thanks for your apply.

                • 5. Re: exception when run jboss-4.0.4 with the jboss federation
                  charles751

                  to sohil.shah:

                  If i have run the jboss as successfully, i can not find a user name and password to login the web application.Where is the login information?

                  What should i do at the next step to test the cross domain sso web application?

                  My english is so poor that i can not express my appreciation for your apply.
                  Thanks for your help.

                  • 6. Re: exception when run jboss-4.0.4 with the jboss federation
                    soshah

                    Charles-

                    use:

                    user1:password
                    user2:password


                    Thanks

                    • 7. Re: exception when run jboss-4.0.4 with the jboss federation
                      charles751

                      I change jdk from 1.4.2 to 1.5.0 and tested the sso framework,but there were still some errors.

                      I guested these errors maybe be associated with the file of users_en.properties in the jboss-identity-management.jar.
                      what should i do to deal with the following errors?

                      the errors:

                      2007-03-06 17:00:38,718 ERROR [org.jboss.security.idm.IdentityManager]
                      org.jboss.security.idm.IdentityManager
                      java.util.MissingResourceException:
                      Can't find bundle for base name users, locale zh_CN

                      at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)

                      at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)

                      at java.util.ResourceBundle.getBundle(ResourceBundle.java:549)

                      at org.jboss.security.idm.demo.DemoLoginProvider.(DemoLoginProvider.java:47)


                      thanks for your apply.

                      • 8. Re: exception when run jboss-4.0.4 with the jboss federation
                        charles751

                        I have solved the above question.

                        But there is another question about role authentication.To our current several systems,I need the following functions:

                        In any one of our several systems,it has function tree.
                        To any one node of the function tree,the user who can access it must have certain role.

                        can i implement this function using the jboss federated sso framework?

                        It's very appreciation for your apply for how to implement this kind of function.

                        • 9. Re: exception when run jboss-4.0.4 with the jboss federation
                          soshah

                          Hi charles-

                          Authorization functions which is what you need for roles based access to your function tree inside your web application.

                          That is out-of-scope of the SSO Framework. The SSO Framework deals with authentication aspect providing Single Sign On across a Federation of web applications.


                          To solve the Authorization issue, I would recommed looking at something like JACC, Acegi, or the new Authorization Engine built-in with the Seam framework.


                          btw- can you also tell me how you solved the above problem. Is there something there was missing that made this not work out-of-the-box or was it some configuration setting. I want to make sure the out-of-the-box experience of the SSO Framework goes smoothly.

                          Thanks

                          • 10. Re: exception when run jboss-4.0.4 with the jboss federation
                            charles751

                            Thank you for your recommend.

                            I have found few little problems through my test using your framework demo:

                            1.In the package of jboss-identity-management.jar,there is missing a resource bundle for me.
                            For some Chinese user,they need a users_zh_CN.properties.Perhaps this is not a problem.
                            After all,there is so many different locale of the world.

                            2.In the package of jboss-sso.sar,there is missing log4j.jar and log4j-core.jar.Certainly,users can
                            add these jar into the package.Another suggestion:I think that the jars about log of your project is a

                            little older.

                            good luck!