5 Replies Latest reply on Apr 30, 2010 6:42 AM by Freeman(Yue) Fang

    Fuse 4.2.0 webconsole login denied

    Some Developer Newbie

      Hello,

       

      I've got a strange problem with the webconsole in the fuse 4.2.0.

      I installed the webconsole with the features:install webconsole command.

      That works fine.

      When i try to access the webconsole on my machine:

       

      http://localhost:8181/system/console

       

      and try to login with the karaf user, the login fails.

      When i perform an osgi:refresh on the id of the bundle below, then the login succeeds afterwards.

       

      karaf@root> osgi:ls | grep -i pax

      OPS4J Pax Web - Runtime (104) provides:

      org.osgi.service.http.HttpService, org.ops4j.pax.web.service.WebContainer

      karaf@root> osgi:refresh 104

       

      I've had this behaviour on two different machines (one XPSP2 and one Vista both with JVM 1.6) on which i started the install from scratch.

       

      Is there any indication i could find on why this is failing?

      Does this sound familiar / make sense?

       

      Regards,

       

      Update:

      This is what other users are seeing as well:

       

      http://fusesource.com/forums/thread.jspa?messageID=6072

       

      This thread describes a workaround, but a real fix is not yet available.

       

      Edited by: some.java.developer on Mar 11, 2010 2:45 AM

       

      Edited by: some.java.developer on Mar 11, 2010 2:47 AM

        • 1. Re: Fuse 4.2.0 webconsole login denied
          Some Developer Newbie

          In the logs I can see something like this:

           

          08:52:16,035 | INFO  | xtenderThread-52 | ContextLoaderListener            | BundleApplicationContextListener   45 | Application context successfully refreshed (OsgiBundleXmlApplicationContext(bundle=servicemix-wsn2005, config=osgibundle:/META-INF/spring/*.xml))

          08:52:17,519 | INFO  | guration Updater | JettyServerImpl                  | e.jetty.internal.JettyServerImpl  100 | Pax Web available at :[8181]

          08:52:27,113 | INFO  | l Console Thread | FeaturesServiceImpl              | res.internal.FeaturesServiceImpl  268 | Bundles to refresh:

          08:52:27,363 | INFO  | l Console Thread | HttpServiceFactoryImpl           | .internal.HttpServiceFactoryImpl   33 | Binding bundle: [org.apache.felix.webconsole_2.0.6.fuse-01-00 ] to http service

          08:52:27,379 | INFO  | l Console Thread | webconsole                       | ?                                   ? | org.apache.felix.webconsole.internal.compendium.ComponentsServlet not enabled. Reason: Class org.apache.felix.scr.ScrService missing

          08:52:27,410 | INFO  | l Console Thread | webconsole                       | ?                                   ? | org.apache.felix.webconsole.internal.deppack.DepPackServlet not enabled. Reason: Class org/osgi/service/deploymentadmin/DeploymentException missing

          08:52:27,410 | INFO  | l Console Thread | webconsole                       | ?                                   ? | org.apache.felix.webconsole.internal.misc.ShellServlet not enabled. Reason: Class org.apache.felix.shell.ShellService missing

          08:52:27,426 | INFO  | pool-2-thread-2  | AdminPlugin                      | raf.webconsole.admin.AdminPlugin   61 | Admin plugin activated

          08:52:27,426 | WARN  | pool-2-thread-2  | ServletTracker                   | .internal.tracker.ServletTracker   92 | Registered servlet did not contain a valid alias or url patterns property

          08:52:27,441 | INFO  | pool-2-thread-3  | FeaturesPlugin                   | bconsole.features.FeaturesPlugin   79 | Features plugin activated

          08:52:27,441 | WARN  | pool-2-thread-3  | ServletTracker                   | .internal.tracker.ServletTracker   92 | Registered servlet did not contain a valid alias or url patterns property

          08:52:27,441 | INFO  | pool-2-thread-1  | GogoPlugin                       | karaf.webconsole.gogo.GogoPlugin   98 | Gogo plugin activated

          08:52:27,441 | WARN  | pool-2-thread-1  | ServletTracker                   | .internal.tracker.ServletTracker   92 | Registered servlet did not contain a valid alias or url patterns property

           

           

          Seems that initially some classes are not registered properly.

          • 2. Re: Fuse 4.2.0 webconsole login denied
            Some Developer Newbie

            After doing the osgi:refresh, i see the following in the log:

             

             

            09:01:27,248 | INFO  | Refresh Packages | Activator                        | x.web.service.internal.Activator   93 | Pax Web stopped

            09:01:27,248 | INFO  | Refresh Packages | HttpServiceFactoryImpl           | .internal.HttpServiceFactoryImpl   40 | Unbinding bundle: [org.apache.cxf.bundle_2.2.6.fuse-01-00 ]

            09:01:27,248 | WARN  | Refresh Packages | HttpServiceStopped               | vice.internal.HttpServiceStopped   61 | Http service has already been stopped

            09:01:27,248 | INFO  | Refresh Packages | HttpServiceFactoryImpl           | .internal.HttpServiceFactoryImpl   40 | Unbinding bundle: [org.apache.felix.karaf.deployer.features_1.4.0.fuse-01-00 ]

            09:01:27,264 | WARN  | Refresh Packages | HttpServiceStopped               | vice.internal.HttpServiceStopped  132 | Http service has already been stopped

            09:01:27,264 | INFO  | Refresh Packages | HttpServiceFactoryImpl           | .internal.HttpServiceFactoryImpl   40 | Unbinding bundle: [org.apache.felix.webconsole_2.0.6.fuse-01-00 ]

            09:01:27,295 | INFO  | Refresh Packages | GogoPlugin                       | karaf.webconsole.gogo.GogoPlugin  103 | Gogo plugin deactivated

            09:01:27,327 | INFO  | Refresh Packages | FeaturesPlugin                   | bconsole.features.FeaturesPlugin   85 | Features plugin deactivated

            09:01:27,327 | INFO  | Refresh Packages | AdminPlugin                      | raf.webconsole.admin.AdminPlugin   65 | Admin plugin deactivated

            09:01:27,811 | INFO  | pool-2-thread-2  | AdminPlugin                      | raf.webconsole.admin.AdminPlugin   61 | Admin plugin activated

            09:01:27,811 | INFO  | pool-2-thread-3  | GogoPlugin                       | karaf.webconsole.gogo.GogoPlugin   98 | Gogo plugin activated

            09:01:27,811 | INFO  | pool-2-thread-1  | FeaturesPlugin                   | bconsole.features.FeaturesPlugin   79 | Features plugin activated

            09:01:27,936 | WARN  | Refresh Packages | ServletTracker                   | .internal.tracker.ServletTracker   92 | Registered servlet did not contain a valid alias or url patterns property

            09:01:27,936 | WARN  | Refresh Packages | ServletTracker                   | .internal.tracker.ServletTracker   92 | Registered servlet did not contain a valid alias or url patterns property

            09:01:27,936 | WARN  | Refresh Packages | ServletTracker                   | .internal.tracker.ServletTracker   92 | Registered servlet did not contain a valid alias or url patterns property

            09:01:27,952 | INFO  | Refresh Packages | Activator                        | x.web.service.internal.Activator   80 | Pax Web started

            09:01:27,967 | INFO  | Thread-34        | JettyServerImpl                  | e.jetty.internal.JettyServerImpl  100 | Pax Web available at :[8181]

            09:01:27,967 | INFO  | Thread-34        | HttpServiceFactoryImpl           | .internal.HttpServiceFactoryImpl   33 | Binding bundle: [org.apache.cxf.bundle_2.2.6.fuse-01-00 ] to http service

            09:01:27,983 | INFO  | guration Updater | JettyServerImpl                  | e.jetty.internal.JettyServerImpl  100 | Pax Web available at :[8181]

            09:01:28,014 | INFO  | Thread-34        | HttpServiceFactoryImpl           | .internal.HttpServiceFactoryImpl   33 | Binding bundle: [org.apache.felix.karaf.deployer.features_1.4.0.fuse-01-00 ] to http service

            09:01:28,014 | INFO  | Thread-34        | HttpServiceFactoryImpl           | .internal.HttpServiceFactoryImpl   33 | Binding bundle: [org.apache.felix.webconsole_2.0.6.fuse-01-00 ] to http service

            09:01:28,030 | INFO  | Thread-34        | webconsole                       | ?                                   ? | org.apache.felix.webconsole.internal.compendium.ComponentsServlet not enabled. Reason: Class org.apache.felix.scr.ScrService missing

            09:01:28,045 | INFO  | Thread-34        | webconsole                       | ?                                   ? | org.apache.felix.webconsole.internal.deppack.DepPackServlet not enabled. Reason: Class org/osgi/service/deploymentadmin/DeploymentException missing

            09:01:28,045 | INFO  | Thread-34        | webconsole                       | ?                                   ? | org.apache.felix.webconsole.internal.misc.ShellServlet not enabled. Reason: Class org.apache.felix.shell.ShellService missing

            • 3. Re: Fuse 4.2.0 webconsole login denied
              Feng qiyuan Newbie

              admin/admin

               

              I just try on it. It works well

              • 4. Re: Fuse 4.2.0 webconsole login denied
                George Petrakis Newbie

                Hello,

                 

                My problem with the webconsole is that although I can login with karaf/karaf I cannot login with admin/admin.

                 

                I did the osgi:refresh that you seggested but still nothing.

                 

                Any idea?

                 

                Thanks

                • 5. Re: Fuse 4.2.0 webconsole login denied
                  Freeman(Yue) Fang Master

                  Hi,

                   

                  Log as karaf/karaf is expected behavior

                  we configure it with

                   

                  So when this configration take effect, then admin/admin won't work anymore.

                   

                  Freeman