Sorry for my post to wrong maillist.
2008/9/19 Richard S. Hall <[EMAIL PROTECTED]>
> I don't think this is a Felix issue. You are getting a compile-time error
> and Felix has no control over that.
>
> Somehow your project is not set up correctly, because it cannot find the
> Spring-DM classes to compile against.
>
> -> richard
>
>
> Ching-Yi Chan wrote:
>
>> Hello,
>>
>> I create a bundle project with
>>
>> [code]
>> mvn archetype:create \
>> -DarchetypeGroupId=org.springframework.osgi \
>> -DarchetypeArtifactId=spring-osgi-bundle-archetype \
>> -DarchetypeVersion=1.1.1 \
>> -Dversion=1.0 \
>> -DgroupId=test \
>> -DartifactId=HelloSpringOSGi
>> [/code]
>>
>> And create a Foo class with BundleContextAware
>> [code]
>> import org.osgi.framework.BundleContext;
>> import org.springframework.osgi.context.BundleContextAware;
>>
>> public class Foo implements BundleContextAware{
>> public void setBundleContext(BundleContext ctx) {
>> }
>> }
>> [/code]
>>
>> Add import header in pom.xml
>> [code]
>>
>>
>> <Import-Package>*,org.springframework.osgi.context,org.osgi.framework</Import-Package>
>> [/code]
>>
>> do mvn package then error occurred
>> [code]
>> C:\tmp\foooooo\src\main\java\Foo.java:[2,39] package
>> org.springframework.osgi.co
>> ntext does not exist
>>
>> C:\tmp\foooooo\src\main\java\Foo.java:[4,28] cannot find symbol
>> symbol: class BundleContextAware
>> public class Foo implements BundleContextAware{
>> [/code]
>>
>> Anybody know how to fix it ?
>> Or is it a bug ?
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>