[
https://issues.apache.org/activemq/browse/SMX4-490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57814#action_57814
]
Johan Edstrom commented on SMX4-490:
------------------------------------
Updating to felix-karaf-snapshot-1.5 resolves this issue, a namespace change is
necessary.
https://repository.apache.org/content/groups/snapshots-group/org/apache/felix/karaf/apache-felix-karaf/1.5.0-SNAPSHOT/
New schema
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:jaas="http://felix.apache.org/karaf/xmlns/jaas/v1.0.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0">
<type-converters>
<bean
class="org.apache.felix.karaf.jaas.modules.properties.PropertiesConverter" />
</type-converters>
<!-- Bean to allow the $[karaf.base] property to be correctly resolved -->
<ext:property-placeholder placeholder-prefix="$[" placeholder-suffix="]"/>
<jaas:config name="jaas-context">
<jaas:module
className="org.apache.felix.karaf.jaas.modules.properties.PropertiesLoginModule"
flags="required">
users = $[karaf.base]/etc/users.properties
</jaas:module>
</jaas:config>
</blueprint>
Logging output:
08:02:48,201 | DEBUG | pool-1-thread-2 | ServiceRecipe |
lueprint.container.ServiceRecipe 160 | Registering service jaas-context with
interfaces [org.apache.felix.karaf.jaas.config.JaasRealm] and properties
{org.apache.felix.karaf.jaas.module=jaas-context}
08:02:48,204 | DEBUG | pool-1-thread-2 | AbstractServiceReferenceRecipe |
r.AbstractServiceReferenceRecipe 345 | Tracking reference
[org.apache.felix.karaf.jaas.config.JaasRealm] for OSGi service
(objectClass=org.apache.felix.karaf.jaas.config.JaasRealm)
08:02:48,205 | DEBUG | pool-1-thread-2 | xml | ?
? | ServiceEvent REGISTERED
> JAAS dynamic deployment does not register a Tracking reference
> --------------------------------------------------------------
>
> Key: SMX4-490
> URL: https://issues.apache.org/activemq/browse/SMX4-490
> Project: ServiceMix 4
> Issue Type: Bug
> Components: Bundles
> Environment: Karaf
> Karaf home
> /Users/joed/Downloads/apache-servicemix-4.2.0-fuse-01-00
> Karaf base
> /Users/joed/Downloads/apache-servicemix-4.2.0-fuse-01-00
> OSGi Framework org.eclipse.osgi - 3.5.1.R35x_v20090827
> JVM
> Java Virtual Machine Java HotSpot(TM) 64-Bit Server VM version
> 14.3-b01-101
> Vendor Apple Inc.
> Uptime 21 minutes
> Total compile time 28.044 seconds
> Threads
> Live threads 88
> Daemon threads 40
> Peak 92
> Total started 264
> Memory
> Current heap size 55,403 kbytes
> Maximum heap size 466,048 kbytes
> Committed heap size 238,528 kbytes
> Pending objects 0
> Garbage collector Name = 'PS Scavenge', Collections = 11, Time =
> 0.540 seconds
> Garbage collector Name = 'PS MarkSweep', Collections = 1, Time =
> 0.117 seconds
> Classes
> Current classes loaded 7,624
> Total classes loaded 7,625
> Total classes unloaded 1
> Operating system
> Name Mac OS X version 10.6.2
> Architecture x86_64
> Processors 2
> ka...@root> [2010-02-22 23:30:09.303] DEBUG MQ Journal Checkpoint Worker
> org.eclipse.osgi.framework.internal.core.BundleHost - Checkpoint
> started.
> [2010-02-22 23:30:09.305] DEBUG MQ Journal Checkpoint
> Reporter: Johan Edstrom
> Priority: Minor
> Attachments: jaas.tar.gz, ncar-jaas.xml
>
>
> When deploying via the deploy directory a blueprint file such as
> jaas-contex.xml (Attached) the service is created, a Tracking reference is
> not, thus the Jaas realm is not available for usage.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.