Return-Path: Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: (qmail 52776 invoked from network); 25 Nov 2010 09:35:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Nov 2010 09:35:17 -0000 Received: (qmail 71620 invoked by uid 500); 25 Nov 2010 06:48:36 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 71583 invoked by uid 500); 25 Nov 2010 06:48:36 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 71570 invoked by uid 99); 25 Nov 2010 06:48:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Nov 2010 06:48:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Nov 2010 06:48:34 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAP6mDUL014723 for ; Thu, 25 Nov 2010 06:48:14 GMT Message-ID: <31515650.303701290667693735.JavaMail.jira@thor> Date: Thu, 25 Nov 2010 01:48:13 -0500 (EST) From: "Charles Moulliard (JIRA)" To: issues@karaf.apache.org Subject: [jira] Closed: (KARAF-296) Issue with Jetty JAAS and Karaf In-Reply-To: <14807811.280371290581053537.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Charles Moulliard closed KARAF-296. ----------------------------------- Resolution: Fixed By adding the following property in the bean definition, it works So we can use karaf realm configurated on the platform > Issue with Jetty JAAS and Karaf > ------------------------------- > > Key: KARAF-296 > URL: https://issues.apache.org/jira/browse/KARAF-296 > Project: Karaf > Issue Type: Bug > Reporter: Charles Moulliard > Attachments: jetty.xml, realm.properties > > > When Jetty Security (JAAS) is configurated to use Karaf realm, the following error is generated : > {code} > 07:36:10,917 | WARN | qtp1759402480-81 | log | .eclipse.jetty.util.log.Slf4jLog 50 | 36 - org.eclipse.jetty.util - 7.1.6.v20100715 | EXCEPTION > javax.security.auth.login.LoginException: Invalid null input: name > at javax.security.auth.login.LoginContext.init(LoginContext.java:229)[:1.6.0_22] > at javax.security.auth.login.LoginContext.(LoginContext.java:367)[:1.6.0_22] > at javax.security.auth.login.LoginContext.(LoginContext.java:444)[:1.6.0_22] > at org.eclipse.jetty.plus.jaas.JAASLoginService.login(JAASLoginService.java:201)[76:org.eclipse.jetty.plus:7.1.6.v20100715] > at org.eclipse.jetty.security.authentication.BasicAuthenticator.validateRequest(BasicAuthenticator.java:75)[41:org.eclipse.jetty.security:7.1.6.v20100715] > at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:416)[41:org.eclipse.jetty.security:7.1.6.v20100715] > at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)[40:org.eclipse.jetty.server:7.1.6.v20100715] > {code} > To reproduce it on Karaf, add the following bundles > {code} > features:addUrl mvn:org.apache.camel.karaf/apache-camel/2.5.0/xml/features > features:install spring-dm > features:install camel > features:install camel-jetty > osgi:install -s mvn:javax.mail/mail/1.4.3 > features:install camel-jpa > osgi:install -s mvn:org.eclipse.jetty/jetty-plus/7.1.6.v20100715 > osgi:install -s mvn:org.eclipse.jetty/jetty-jndi/7.1.6.v20100715 > {code} > and deploy the camel route > {code} > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://camel.apache.org/schema/cxf" > xmlns:camel="http://camel.apache.org/schema/spring" xmlns:context="http://www.springframework.org/schema/context" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://www.springframework.org/schema/context > http://www.springframework.org/schema/context/spring-context.xsd > http://camel.apache.org/schema/cxf > http://camel.apache.org/schema/cxf/camel-cxf.xsd > http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring.xsd"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.