felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elros <crivell...@gmail.com>
Subject Re: Problem with compiling Felix 3.1.1
Date Fri, 14 Feb 2014 15:53:50 GMT
Thanks for your suggestions.

I'm sorry for the mistake. I meant version 4.2.1.

I changed the pom.xml anyway but i get the same error:



[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 11.849s
[INFO] Finished at: Fri Feb 14 16:40:13 CET 2014
[INFO] Final Memory: 49M/300M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile
(default-testCompile) on project org.apache.felix.framework: Compilation
failure: Compilation failure:
[ERROR]
/Users/Nino/isti/workspace/felix/framework/src/test/java/org/apache/felix/framework/CollisionHookTest.java:[84,24]
error: no suitable constructor found for
BundleImpl(Felix,BundleImpl,BundleArchive)
[ERROR] constructor BundleImpl.BundleImpl(Felix,BundleArchive) is not
applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] constructor BundleImpl.BundleImpl() is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR]
/Users/Nino/isti/workspace/felix/framework/src/test/java/org/apache/felix/framework/CollisionHookTest.java:[147,24]
error: no suitable constructor found for
BundleImpl(Felix,<null>,BundleArchive)
[ERROR] constructor BundleImpl.BundleImpl(Felix,BundleArchive) is not
applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] constructor BundleImpl.BundleImpl() is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR]
/Users/Nino/isti/workspace/felix/framework/src/test/java/org/apache/felix/framework/CollisionHookTest.java:[205,12]
error: no suitable constructor found for
BundleImpl(Felix,<null>,BundleArchive)
[ERROR] constructor BundleImpl.BundleImpl(Felix,BundleArchive) is not
applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] constructor BundleImpl.BundleImpl() is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR]
/Users/Nino/isti/workspace/felix/framework/src/test/java/org/apache/felix/framework/CollisionHookTest.java:[246,24]
error: no suitable constructor found for
BundleImpl(Felix,<null>,BundleArchive)
[ERROR] constructor BundleImpl.BundleImpl(Felix,BundleArchive) is not
applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] constructor BundleImpl.BundleImpl() is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR]
/Users/Nino/isti/workspace/felix/framework/src/test/java/org/apache/felix/framework/CollisionHookTest.java:[279,12]
error: no suitable constructor found for
BundleImpl(Felix,<null>,BundleArchive)
[ERROR] -> [Help 1]
[ERROR] 

I tried to compile the sub-project http and got the same result.
So i tried to change the function of
/felix/http/base/src/main/java/org/apache/felix/http/base/internal/handler/HttpServicePlugin.java
by:

public void register()
{
        Properties props = new Properties();
        
        props.put(Constants.SERVICE_VENDOR, "Apache Software Foundation");
        props.put(Constants.SERVICE_DESCRIPTION, "HTTP Service Web Console
Plugin");
        ...
}

into:

public void register()
{
        java.util.Hashtable<String,Object> props = new
java.util.Hashtable<String,Object>();
        
        props.put(Constants.SERVICE_VENDOR, "Apache Software Foundation");
        props.put(Constants.SERVICE_DESCRIPTION, "HTTP Service Web Console
Plugin");
        ...
}

and it works!

I got another failure with JettyService.java and i tried to solve the
problem in the same way. 
Perhaps the string should be changed in every file.

Best,
Nino




--
View this message in context: http://apache-felix.18485.x6.nabble.com/Problem-with-compiling-Felix-3-1-1-tp5007226p5007232.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message