felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (FELIX-1274) Spring deployer fails when bean class is from java.* packages
Date Mon, 27 Jul 2009 08:29:14 GMT

     [ https://issues.apache.org/jira/browse/FELIX-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Guillaume Nodet resolved FELIX-1274.
------------------------------------

       Resolution: Fixed
    Fix Version/s: karaf-1.0.0
         Assignee: Guillaume Nodet

It should be fixed now.

Committing to https://svn.apache.org/repos/asf/felix/trunk ...
	M	karaf/deployer/blueprint/src/main/java/org/apache/felix/karaf/deployer/blueprint/BlueprintTransformer.java
	M	karaf/deployer/blueprint/src/test/java/org/apache/felix/karaf/deployer/blueprint/BlueprintDeploymentListenerTest.java
	M	karaf/deployer/spring/src/main/java/org/apache/felix/karaf/deployer/spring/SpringTransformer.java
	M	karaf/deployer/spring/src/test/resources/test.xml
Committed r798076


> Spring deployer fails when bean class is from java.* packages
> -------------------------------------------------------------
>
>                 Key: FELIX-1274
>                 URL: https://issues.apache.org/jira/browse/FELIX-1274
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.0.0
>            Reporter: Maciej Prochniak
>            Assignee: Guillaume Nodet
>             Fix For: karaf-1.0.0
>
>
> Spring deployer makes Import-Package declaration for all bean classes it finds it xml
file. However, such declaration is prohibited for java.* packages, resulting in exception:
> Failed to process: /home/mproch/stuff/smx4/apache-servicemix-kernel-1.1.0/data/generated-bundles/test-context.xml.jar.
Reason: org.osgi.framework.BundleException: Could not create bundle object.
> org.osgi.framework.BundleException: Could not create bundle object.
>         at org.apache.felix.framework.Felix.installBundle(Felix.java:2158)
>         at org.apache.felix.framework.Felix.installBundle(Felix.java:2005)
>         at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:130)
>         at org.apache.servicemix.kernel.filemonitor.FileMonitor.deployBundle(FileMonitor.java:383)
>         at org.apache.servicemix.kernel.filemonitor.FileMonitor.onFilesChanged(FileMonitor.java:290)
>         at org.apache.servicemix.kernel.filemonitor.FileMonitor$1.filesChanged(FileMonitor.java:151)
>         at org.apache.servicemix.kernel.filemonitor.Scanner.reportBulkChanges(Scanner.java:431)
>         at org.apache.servicemix.kernel.filemonitor.Scanner.reportDifferences(Scanner.java:327)
>         at org.apache.servicemix.kernel.filemonitor.Scanner.scan(Scanner.java:261)
>         at org.apache.servicemix.kernel.filemonitor.Scanner$1.run(Scanner.java:221)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> Caused by: org.osgi.framework.BundleException: Importing java.* packages not allowed:
java.lang
>         at org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:192)
>         at org.apache.felix.framework.searchpolicy.ModuleImpl.<init>(ModuleImpl.java:153)
>         at org.apache.felix.framework.BundleImpl.createModule(BundleImpl.java:954)
>         at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:85)
>         at org.apache.felix.framework.Felix.installBundle(Felix.java:2102)
>         ... 11 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message