4 Replies Latest reply on Aug 18, 2011 5:12 AM by neledv

    Problem with configuring basic auth

    neledv

      Hi,

       

      I've just set up a new Fuse ESB project containing a route that receives a messages via a jetty endpoint and stores it to disk.

      The jetty endpoint should be secured with Basic Auth (userId/pw).

       

      I've used the guidelines from the Fuse ESB Security Guide to set up my project (which is attached), but every deployment currently fails with the following exception:

      java.lang.ClassNotFoundException: org.eclipse.jetty.plus.jaas.JAASLoginService

       

      Anyone familiar with these kind of problems ?

        • 1. Re: Problem with configuring basic auth
          ffang

          Hi,

           

          Ensure your customer bundle already import package org.eclipse.jetty.plus.jaas

           

          Freeman

          • 2. Re: Problem with configuring basic auth
            neledv

            Hi,

             

            That's already the case...

             

            My pom has an import for the following:

             

            <Import-Package>

            org.apache.camel.component.jetty,

            javax.security.auth,

            javax.security.auth.callback,

            javax.security.auth.login,

            javax.security.auth.spi,

            org.apache.karaf.jaas.modules,

            org.eclipse.jetty.security,

            org.eclipse.jetty.plus.jaas,

            org.eclipse.jetty.http.security,

            org.eclipse.jetty.security,

            org.eclipse.jetty.security.authentication,

            *

            </Import-Package>

             

            Not sure if these are all needed...

            • 3. Re: Problem with configuring basic auth
              ffang

              Hi,

               

              You also need install camel-jetty feature before.

              And there's two duplicated org.eclipse.jetty.security import-package from your pom.xml, you need remove one.

               

              With above change, your project deploy ok for me.

               

              Freeman

              • 4. Re: Problem with configuring basic auth
                neledv

                After removing the duplicate import, I can deploy my package.

                But when I can execute my endpoint event when I don't pass any credentials...