You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Francesco Furfari <fr...@isti.cnr.it> on 2006/04/03 14:04:00 UTC

Error building Felix

Hi folks,
I'm try to build Felix from SVN.
Executing "mvn clean intall" from the trunk directory and starting from 
a fresh installed  M2 configuration I have this error:

[INFO] 
----------------------------------------------------------------------------
[INFO] Building OSGi R4 Compendium Bundle
[INFO]    task-segment: [install]
[INFO] 
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: 
http://cvs.apache.org/maven-snapshot-repository/javax/microedition/javax.microedition/1.0.4/javax.microedit
ion-1.0.4.pom
[WARNING] Unable to get resource from repository apache.snapshots 
(http://cvs.apache.org/maven-snapshot-repository)
Downloading: 
http://m2.safehaus.org/javax/microedition/javax.microedition/1.0.4/javax.microedition-1.0.4.pom
[WARNING] Unable to get resource from repository safehaus 
(http://m2.safehaus.org)
Downloading: 
http://repo1.maven.org/maven2/javax/microedition/javax.microedition/1.0.4/javax.microedition-1.0.4.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://cvs.apache.org/maven-snapshot-repository/javax/servlet/javax.servlet/2.1/javax.servlet-2.1.pom
[WARNING] Unable to get resource from repository apache.snapshots 
(http://cvs.apache.org/maven-snapshot-repository)
Downloading: 
http://m2.safehaus.org/javax/servlet/javax.servlet/2.1/javax.servlet-2.1.pom
[WARNING] Unable to get resource from repository safehaus 
(http://m2.safehaus.org)
Downloading: 
http://repo1.maven.org/maven2/javax/servlet/javax.servlet/2.1/javax.servlet-2.1.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://cvs.apache.org/maven-snapshot-repository/javax/microedition/javax.microedition/1.0.4/javax.microedit
ion-1.0.4.jar
[WARNING] Unable to get resource from repository apache.snapshots 
(http://cvs.apache.org/maven-snapshot-repository)
Downloading: 
http://m2.safehaus.org/javax/microedition/javax.microedition/1.0.4/javax.microedition-1.0.4.jar
[WARNING] Unable to get resource from repository safehaus 
(http://m2.safehaus.org)
Downloading: 
http://repo1.maven.org/maven2/javax/microedition/javax.microedition/1.0.4/javax.microedition-1.0.4.jar
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) javax.microedition:javax.microedition:jar:1.0.4

   Try downloading the file manually from the project website.

   Then, install it using the command:
       mvn install:install-file -DgroupId=javax.microedition 
-DartifactId=javax.microedition \
           -Dversion=1.0.4 -Dpackaging=jar -Dfile=/path/to/file

   Path to dependency:
         1) org.apache.felix:org.osgi.compendium:osgi-bundle:0.8.0-SNAPSHOT
         2) javax.microedition:javax.microedition:jar:1.0.4

----------
1 required artifact is missing.

for artifact:
   org.apache.felix:org.osgi.compendium:osgi-bundle:0.8.0-SNAPSHOT

from the specified remote repositories:
   central (http://repo1.maven.org/maven2),
   safehaus (http://m2.safehaus.org),
   apache.snapshots (http://cvs.apache.org/maven-snapshot-repository)




I had obtained the same error for Servelt API but I installed it 
manually as described in a similar help message.

Is it a normal behaviour? am I missing something?


francesco

Re: Error building Felix

Posted by Francesco Furfari <fr...@isti.cnr.it>.
Perfect !! thanks again :-)
francesco

Enrique Rodriguez wrote:
> Francesco Furfari wrote:
> ...
>> I noticed that in the Servlet POM the <BundleVersion> (and Copyright) 
>> tag is commented, and the groupId is "org.apache.felix" while in the 
>> Compendium Pom the dependence is referred to the "javax.servlet" 
>> groupId.
>
> I updated the Compendium POM to use the Felix groupId for the servlet 
> API.  Should work now.
>
> Enrique


Re: Error building Felix

Posted by Enrique Rodriguez <en...@gmail.com>.
Francesco Furfari wrote:
...
> I noticed that in the Servlet POM the <BundleVersion> (and Copyright) 
> tag is commented, and the groupId is "org.apache.felix" while in the 
> Compendium Pom the dependence is referred to the "javax.servlet" groupId.

I updated the Compendium POM to use the Felix groupId for the servlet 
API.  Should work now.

Enrique

Re: Error building Felix

Posted by Francesco Furfari <fr...@isti.cnr.it>.
Hi Enrique,

 > Francesco Furfari wrote:
 >> I had obtained the same error for Servelt API but I installed it 
manually as described in a similar help message.

I was installing Felix on my notebook and I've found again the same 
problems during the Compendium building. The missing jar is  always
Servlet (Before I solved installing it manually)

I noticed that in the Servlet POM the <BundleVersion> (and Copyright) 
tag is commented, and the groupId is "org.apache.felix" while in the 
Compendium Pom the dependence is referred to the "javax.servlet" groupId.

Hoping this help
francesco



Re: Error building Felix

Posted by Francesco Furfari <fr...@isti.cnr.it>.
thank you :-)
francesco

Enrique Rodriguez wrote:
> Francesco Furfari wrote:
> ...
>> In the Manifest of org.apache.felix.framework-0.8.0-SNAPSHOT.jar the
>> the Main-Class header is missing.
>> I tried to add Main-Class: org.apache.felix.framework.Felix ( but I'm 
>> not sure if the old oscar.Main class is mapped on it)
>> and a NoClassFoundException is raised :  
>> org/osgi/framework/BundleException
> 
> I took an email from Richard and put it on the Felix Confluence space:
> 
> http://docs.safehaus.org/display/OSGI/Building+Felix
> 
> Felix.class no longer contains a Main.  Instead there is a new module 
> called org.apache.felix.main.  The 'main' manifest.mf does contain the 
> Main-Class.
> 
> "Main-Class: org.apache.felix.main.Main"
> 
> Alternatively there are installers for Felix.
> 
> Enrique
> 
> 

Re: Error building Felix

Posted by Enrique Rodriguez <en...@gmail.com>.
Francesco Furfari wrote:
...
> In the Manifest of org.apache.felix.framework-0.8.0-SNAPSHOT.jar the
> the Main-Class header is missing.
> I tried to add Main-Class: org.apache.felix.framework.Felix ( but I'm 
> not sure if the old oscar.Main class is mapped on it)
> and a NoClassFoundException is raised :  org/osgi/framework/BundleException

I took an email from Richard and put it on the Felix Confluence space:

http://docs.safehaus.org/display/OSGI/Building+Felix

Felix.class no longer contains a Main.  Instead there is a new module 
called org.apache.felix.main.  The 'main' manifest.mf does contain the 
Main-Class.

"Main-Class: org.apache.felix.main.Main"

Alternatively there are installers for Felix.

Enrique



Re: Error building Felix

Posted by Francesco Furfari <fr...@isti.cnr.it>.
sorry I just understood that I have to use 
org.apache.felix.main-0.8.0-SNAPSHOT.jar

:-)
francesco


Francesco Furfari wrote:
> ok :-) now it works !!
> 
> anyway I received several Checksum warning for Felix daemon and service 
> binder (perhaps communication problems )
> 
> In the Manifest of org.apache.felix.framework-0.8.0-SNAPSHOT.jar the
> the Main-Class header is missing.
> I tried to add Main-Class: org.apache.felix.framework.Felix ( but I'm 
> not sure if the old oscar.Main class is mapped on it)
> and a NoClassFoundException is raised :  org/osgi/framework/BundleException
> 
> francesco
> 
> ps: the felix.sh\bat files should be updated with target directory (not 
> more lib)
> 
> Enrique Rodriguez wrote:
>> Francesco Furfari wrote:
>>> there are progress, but now it fails building the  Shell service:
>>
>> Please 'svn up'.  I had missed some POM updates.
>>
>> Enrique

Re: Error building Felix

Posted by Francesco Furfari <fr...@isti.cnr.it>.
ok :-) now it works !!

anyway I received several Checksum warning for Felix daemon and service 
binder (perhaps communication problems )

In the Manifest of org.apache.felix.framework-0.8.0-SNAPSHOT.jar the
the Main-Class header is missing.
I tried to add Main-Class: org.apache.felix.framework.Felix ( but I'm 
not sure if the old oscar.Main class is mapped on it)
and a NoClassFoundException is raised :  org/osgi/framework/BundleException

francesco

ps: the felix.sh\bat files should be updated with target directory (not 
more lib)

Enrique Rodriguez wrote:
> Francesco Furfari wrote:
>> there are progress, but now it fails building the  Shell service:
> 
> Please 'svn up'.  I had missed some POM updates.
> 
> Enrique

Re: Error building Felix

Posted by Enrique Rodriguez <en...@gmail.com>.
Francesco Furfari wrote:
> there are progress, but now it fails building the  Shell service:

Please 'svn up'.  I had missed some POM updates.

Enrique

Re: Error building Felix

Posted by Francesco Furfari <fr...@isti.cnr.it>.
there are progress, but now it fails building the  Shell service:


[INFO] 
----------------------------------------------------------------------------
[INFO] Building Apache Felix Shell Service
[INFO]    task-segment: [clean, install]
[INFO] 
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory 
C:\Projects\FELIX\develop\trunk\org.apache.felix.shell\target
[INFO] Deleting directory 
C:\Projects\FELIX\develop\trunk\org.apache.felix.shell\target\classes
[INFO] Deleting directory 
C:\Projects\FELIX\develop\trunk\org.apache.felix.shell\target\test-classes
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: 
http://cvs.apache.org/maven-snapshot-repository/org/apache/felix/org.osgi/0.8.0-SNAPSHOT/org.osgi-0.8.0-SNA
PSHOT.pom
[WARNING] Unable to get resource from repository apache.snapshots 
(http://cvs.apache.org/maven-snapshot-repository)
Downloading: 
http://m2.safehaus.org/org/apache/felix/org.osgi/0.8.0-SNAPSHOT/org.osgi-0.8.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository safehaus 
(http://m2.safehaus.org)
Downloading: 
http://cvs.apache.org/maven-snapshot-repository/org/apache/felix/org.osgi/0.8.0-SNAPSHOT/org.osgi-0.8.0-SNA
PSHOT.jar
[WARNING] Unable to get resource from repository apache.snapshots 
(http://cvs.apache.org/maven-snapshot-repository)
Downloading: 
http://m2.safehaus.org/org/apache/felix/org.osgi/0.8.0-SNAPSHOT/org.osgi-0.8.0-SNAPSHOT.jar
[WARNING] Unable to get resource from repository safehaus 
(http://m2.safehaus.org)
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.felix:org.osgi:jar:0.8.0-SNAPSHOT

...

francesco


Enrique Rodriguez wrote:
> Francesco Furfari wrote:
>> I had obtained the same error for Servelt API but I installed it 
>> manually as described in a similar help message.
>>
>> Is it a normal behaviour? am I missing something?
> 
> Hi,
> 
> Please try again.
> 
> Enrique

Re: Error building Felix

Posted by Enrique Rodriguez <en...@gmail.com>.
Francesco Furfari wrote:
> I had obtained the same error for Servelt API but I installed it 
> manually as described in a similar help message.
> 
> Is it a normal behaviour? am I missing something?

Hi,

Please try again.

Enrique

Re: Error building Felix

Posted by Enrique Rodriguez <en...@gmail.com>.
Niclas Hedhman wrote:
> On Wednesday 31 May 2006 18:24, Niclas Hedhman wrote:
> 
>> While you guys figure this out, I'll try to use built a Snapshot.
> 
> http://people.apache.org/maven-snapshot-repository/org/apache/felix/
> 
> is not very complete, and the Manifest data in at least o.a.f.main 
> v.0.8.0-SNAPSHOT is incorrectly refering to v 0.8-SNAPSHOT of 
> o.a.f.framework, as well as a non published o.a.f.moduleloader.
> 
> 
> I suggest that the whole current SNAPSHOT area is cleared and a new complete 
> 0.8.1 SNAPSHOT is made asap...
> 
> WDYT?

I agree.  I think that many of the committers that came to Felix are new 
to M2 and so would never have gotten into the groove of deploying.

Enrique

RE: Error building Felix

Posted by Bram de Kruijff <br...@gx.nl>.
> Is this the result of some sort of "mvn deploy" operation or 
> something? If it is easy, tell me what to do and I will update it.

yes, 'mvn deploy' will transfer your artifacts to the destination specified
by distributionManagement in de main pom.xml. It would be nice if this repo
was somewhat up to date (at this point we use an internal mirror to be able
to distribute up-to-date snapshot artifacts). You probably would want to let
CI take care of this for snapshots. Is there a continuum running somewhere?
 
best regards,
Bram

> -----Original Message-----
> From: Richard S. Hall [mailto:heavy@ungoverned.org] 
> Sent: Wednesday, May 31, 2006 1:12 PM
> To: felix-dev@incubator.apache.org
> Subject: Re: Error building Felix
> 
> Well, I would update this, but in truth, I don't know what it 
> is or how it got there?
> 
> Is this the result of some sort of "mvn deploy" operation or 
> something? 
> If it is easy, tell me what to do and I will update it.
> 
> -> richard
> 
> Niclas Hedhman wrote:
> > On Wednesday 31 May 2006 18:24, Niclas Hedhman wrote:
> >
> >   
> >> While you guys figure this out, I'll try to use built a Snapshot.
> >>     
> >
> > http://people.apache.org/maven-snapshot-repository/org/apache/felix/
> >
> > is not very complete, and the Manifest data in at least o.a.f.main 
> > v.0.8.0-SNAPSHOT is incorrectly refering to v 0.8-SNAPSHOT of 
> > o.a.f.framework, as well as a non published o.a.f.moduleloader.
> >
> >
> > I suggest that the whole current SNAPSHOT area is cleared and a new 
> > complete
> > 0.8.1 SNAPSHOT is made asap...
> >
> > WDYT?
> >
> > (If I can work out the build, if you want, I can actually do this 
> > (found out by mistake yesterday), since it is enough to 
> belong to the 
> > apcvs group...)
> >
> >
> > Cheers
> > Niclas
> >
> >   


Re: Error building Felix

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Well, I would update this, but in truth, I don't know what it is or how 
it got there?

Is this the result of some sort of "mvn deploy" operation or something? 
If it is easy, tell me what to do and I will update it.

-> richard

Niclas Hedhman wrote:
> On Wednesday 31 May 2006 18:24, Niclas Hedhman wrote:
>
>   
>> While you guys figure this out, I'll try to use built a Snapshot.
>>     
>
> http://people.apache.org/maven-snapshot-repository/org/apache/felix/
>
> is not very complete, and the Manifest data in at least o.a.f.main 
> v.0.8.0-SNAPSHOT is incorrectly refering to v 0.8-SNAPSHOT of 
> o.a.f.framework, as well as a non published o.a.f.moduleloader.
>
>
> I suggest that the whole current SNAPSHOT area is cleared and a new complete 
> 0.8.1 SNAPSHOT is made asap...
>
> WDYT?
>
> (If I can work out the build, if you want, I can actually do this (found out 
> by mistake yesterday), since it is enough to belong to the apcvs group...)
>
>
> Cheers
> Niclas
>
>   

Re: Error building Felix

Posted by Niclas Hedhman <ni...@hedhman.org>.
On Wednesday 31 May 2006 18:24, Niclas Hedhman wrote:

> While you guys figure this out, I'll try to use built a Snapshot.

http://people.apache.org/maven-snapshot-repository/org/apache/felix/

is not very complete, and the Manifest data in at least o.a.f.main 
v.0.8.0-SNAPSHOT is incorrectly refering to v 0.8-SNAPSHOT of 
o.a.f.framework, as well as a non published o.a.f.moduleloader.


I suggest that the whole current SNAPSHOT area is cleared and a new complete 
0.8.1 SNAPSHOT is made asap...

WDYT?

(If I can work out the build, if you want, I can actually do this (found out 
by mistake yesterday), since it is enough to belong to the apcvs group...)


Cheers
Niclas

Re: Error building Felix

Posted by Niclas Hedhman <ni...@hedhman.org>.
On Wednesday 31 May 2006 19:38, Enrique Rodriguez wrote:
> I have SH configured locally:
>
>          <repository>
>            <id>safehaus-repository</id>
>            <name>Safehaus Repository</name>
>            <url>http://m2.safehaus.org</url>
>          </repository>

Duh!!! Me stupid. Things failing since I have had this changed to my own repo 
to do "deploy" of the maven plugin to my own server... Thanks for the 
pointer. Build works.

Back to the "Speed problem with Import"...


Cheers
Niclas

Re: Error building Felix

Posted by Niclas Hedhman <ni...@hedhman.org>.
On Wednesday 31 May 2006 19:38, Enrique Rodriguez wrote:

> >>>> 1) javax.microedition:javax.microedition:jar:1.0.4

> This has "hack" from the early Felix days written all over it.  I just
> looked; it is in the Safehaus repo:
>
> http://m2.safehaus.org/javax/microedition/javax.microedition/1.0.4/
>
> I have SH configured locally:
>
>          <repository>
>            <id>safehaus-repository</id>
>            <name>Safehaus Repository</name>
>            <url>http://m2.safehaus.org</url>
>          </repository>
>
> If there is a more appropriate jar, maybe already in M2-land proper,
> then it ought to change.

Ok, I assume this is another Sun restricted distribution license atatched to 
it, so it may not be possible. :o(

I'll investigate when time allows.


Cheers
Niclas

Re: Error building Felix

Posted by Enrique Rodriguez <en...@gmail.com>.
Niclas Hedhman wrote:
> On Wednesday 31 May 2006 19:09, Richard S. Hall wrote:
>> I found that I was having problems building until I deleted my local
>> maven repository and then things started to build fine. Your mileage may
>> vary.
> 
> Well, I need to obtain this from somewhere... :o?
> 
>>>> 1) javax.microedition:javax.microedition:jar:1.0.4
> 
> don't I? It is not on ibiblio or repo.mergere.com. It is not in any wireless 
> toolkit that I know of.
> 
> But I have located the use to OSGi Compendium Connection service wanting to 
> use javax.microedition.io which is available in all profiles from CLDC and 
> upwards. 
> 
> I am still curious to know where the group/artifact comes from...

This has "hack" from the early Felix days written all over it.  I just 
looked; it is in the Safehaus repo:

http://m2.safehaus.org/javax/microedition/javax.microedition/1.0.4/

I have SH configured locally:

         <repository>
           <id>safehaus-repository</id>
           <name>Safehaus Repository</name>
           <url>http://m2.safehaus.org</url>
         </repository>

If there is a more appropriate jar, maybe already in M2-land proper, 
then it ought to change.

Enrique

Re: Error building Felix

Posted by Niclas Hedhman <ni...@hedhman.org>.
On Wednesday 31 May 2006 19:09, Richard S. Hall wrote:
> I found that I was having problems building until I deleted my local
> maven repository and then things started to build fine. Your mileage may
> vary.

Well, I need to obtain this from somewhere... :o?

> >> 1) javax.microedition:javax.microedition:jar:1.0.4

don't I? It is not on ibiblio or repo.mergere.com. It is not in any wireless 
toolkit that I know of.

But I have located the use to OSGi Compendium Connection service wanting to 
use javax.microedition.io which is available in all profiles from CLDC and 
upwards. 

I am still curious to know where the group/artifact comes from...


Cheers
Niclas  

Re: Error building Felix

Posted by "Richard S. Hall" <he...@ungoverned.org>.
I found that I was having problems building until I deleted my local 
maven repository and then things started to build fine. Your mileage may 
vary.

-> richard

Niclas Hedhman wrote:
> On Enrique's request, I tried to build Felix and got the same problem as 
> Francesco;
>
> On Monday 03 April 2006 20:04, Francesco Furfari wrote:
>
>   
>> Missing:
>> ----------
>> 1) javax.microedition:javax.microedition:jar:1.0.4
>>
>>    Try downloading the file manually from the project website.
>>
>>    Then, install it using the command:
>>        mvn install:install-file -DgroupId=javax.microedition
>> -DartifactId=javax.microedition \
>>            -Dversion=1.0.4 -Dpackaging=jar -Dfile=/path/to/file
>>
>>    Path to dependency:
>>          1) org.apache.felix:org.osgi.compendium:osgi-bundle:0.8.0-SNAPSHOT
>>          2) javax.microedition:javax.microedition:jar:1.0.4
>>     
>
> We work a lot with J2ME, and have no clue what a "javax.microedition" artifact 
> would refer to. Is that CLDC API? CDC API? MIDP, PP, or some other profile?
>
> While you guys figure this out, I'll try to use built a Snapshot.
>
>
> Cheers
> Niclas
>
>   

Re: Error building Felix

Posted by Niclas Hedhman <ni...@hedhman.org>.
On Enrique's request, I tried to build Felix and got the same problem as 
Francesco;

On Monday 03 April 2006 20:04, Francesco Furfari wrote:

> Missing:
> ----------
> 1) javax.microedition:javax.microedition:jar:1.0.4
>
>    Try downloading the file manually from the project website.
>
>    Then, install it using the command:
>        mvn install:install-file -DgroupId=javax.microedition
> -DartifactId=javax.microedition \
>            -Dversion=1.0.4 -Dpackaging=jar -Dfile=/path/to/file
>
>    Path to dependency:
>          1) org.apache.felix:org.osgi.compendium:osgi-bundle:0.8.0-SNAPSHOT
>          2) javax.microedition:javax.microedition:jar:1.0.4

We work a lot with J2ME, and have no clue what a "javax.microedition" artifact 
would refer to. Is that CLDC API? CDC API? MIDP, PP, or some other profile?

While you guys figure this out, I'll try to use built a Snapshot.


Cheers
Niclas