You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Shammi Jayasinghe <sh...@wso2.com> on 2012/02/03 07:51:35 UTC

Problem in Finding dependencies for jars used by Qpid

Hi ,

  We are trying to find out maven dependencies for the libraries
(qpid/java/lib) used in qpid trunk. We could find out the all the maven
dependencies and use them for
building qpid instead of following two libraries.

1. org.apache.felix.framework-2.0.5 jar [
http://mvnrepository.com/artifact/org.apache.felix/org.apache.felix.framework/2.0.5
]
2. jython-2.5.0.jar [
http://search.maven.org/#artifactdetails|org.python|jython|2.5.0|jar]

Though we were able to find out these libraries in the mentioned
repositories , it seems there are some difference in the content of those
libraries
though they seems to be the same version.

jython
--------
check_jython_deps:

jython:
     [java] *sys-package-mgr*: processing new jar,
'/home/shammi/wso2/qpid/trunk/qpid/java/lib/jython-2.5.0.jar'
     [java] *sys-package-mgr*: processing new jar,
'/opt/software/jdk1.6.0_21/jre/lib/resources.jar'
     [java] *sys-package-mgr*: processing new jar,
'/opt/software/jdk1.6.0_21/jre/lib/rt.jar'
     [java] *sys-package-mgr*: processing new jar,
'/opt/software/jdk1.6.0_21/jre/lib/jsse.jar'
     [java] *sys-package-mgr*: processing new jar,
'/opt/software/jdk1.6.0_21/jre/lib/jce.jar'
     [java] *sys-package-mgr*: processing new jar,
'/opt/software/jdk1.6.0_21/jre/lib/charsets.jar'
     [java] *sys-package-mgr*: processing new jar,
'/opt/software/jdk1.6.0_21/jre/lib/ext/sunjce_provider.jar'
     [java] *sys-package-mgr*: processing new jar,
'/opt/software/jdk1.6.0_21/jre/lib/ext/localedata.jar'
     [java] *sys-package-mgr*: processing new jar,
'/opt/software/jdk1.6.0_21/jre/lib/ext/dnsns.jar'
     [java] *sys-package-mgr*: processing new jar,
'/opt/software/jdk1.6.0_21/jre/lib/ext/sunpkcs11.jar'
     [java] Traceback (most recent call last):
     [java]   File "/home/shammi/wso2/qpid/trunk/qpid/java/common/codegen",
line 22, in <module>
     [java]     import os, sys, mllib
     [java] ImportError: No module named os

BUILD FAILED


Felix
-------

[javac]
^
    [javac]
/home/shammi/wso2/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/plugins/PluginManager.java:241:
cannot find symbol
    [javac] symbol  : method
process(org.apache.felix.framework.util.StringMap,org.osgi.framework.BundleContext)
    [javac] location: class org.apache.qpid.server.plugins.PluginManager
    [javac]                 process(configMap, _felix.getBundleContext());
    [javac]                 ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 15 errors

BUILD FAILED


We would like to know that is there any modifications done on those two
libraries by qpid team and please let us know where we can find the
exact  maven dependency used for the above libraries.

Thanks in advance,
Best Regards,*

Shammi Jayasinghe*
Senior Software Engineer; WSO2, Inc.; http://wso2.com,
mobile: +94 71 4493085

Re: Problem in Finding dependencies for jars used by Qpid

Posted by Robbie Gemmell <ro...@gmail.com>.
On 6 February 2012 21:43, Robbie Gemmell <ro...@gmail.com> wrote:
> Checking the archived release files for Felix 2.0.5 and binary
> comparing the contents with the jar in the lib dir, they do indeed
> differ. The contents gave a clue as to why; the file in the lib dir is
> actually the 'org.apache.felix.main' jar rather than the
> 'org.apache.felix.framework' one.
> http://archive.apache.org/dist/felix/org.apache.felix.main-2.0.5-bin.tar.gz
>
> The Jython jar file in the lib dir appears to be a 'standalone
> (callable jar)' installation of of Jython 2.5.0 created by running the
> downloadable installer. Downloading the installer and selecting that
> option generated me an identicle jar file to the one in the lib dir.
> The jar file in the maven repo seems to just be the base jar included
> within the installer jar, into which it injects a Lib dir during the
> standalone installation process containing additional python files.
> http://sourceforge.net/projects/jython/files/jython/2.5.0/jython_installer-2.5.0.jar/download
>

There is a 'jython-standalone' lib in the repo that looks to be the
equivalent, although there are only newer versions than we currently
use so it may not just work (though we should probably look to update
in that case).
http://search.maven.org/#search|ga|1|jython-standalone

Robbie

> On 3 February 2012 06:51, Shammi Jayasinghe <sh...@wso2.com> wrote:
>> Hi ,
>>
>>  We are trying to find out maven dependencies for the libraries
>> (qpid/java/lib) used in qpid trunk. We could find out the all the maven
>> dependencies and use them for
>> building qpid instead of following two libraries.
>>
>> 1. org.apache.felix.framework-2.0.5 jar [
>> http://mvnrepository.com/artifact/org.apache.felix/org.apache.felix.framework/2.0.5
>> ]
>> 2. jython-2.5.0.jar [
>> http://search.maven.org/#artifactdetails|org.python|jython|2.5.0|jar]
>>
>> Though we were able to find out these libraries in the mentioned
>> repositories , it seems there are some difference in the content of those
>> libraries
>> though they seems to be the same version.
>>
>> jython
>> --------
>> check_jython_deps:
>>
>> jython:
>>     [java] *sys-package-mgr*: processing new jar,
>> '/home/shammi/wso2/qpid/trunk/qpid/java/lib/jython-2.5.0.jar'
>>     [java] *sys-package-mgr*: processing new jar,
>> '/opt/software/jdk1.6.0_21/jre/lib/resources.jar'
>>     [java] *sys-package-mgr*: processing new jar,
>> '/opt/software/jdk1.6.0_21/jre/lib/rt.jar'
>>     [java] *sys-package-mgr*: processing new jar,
>> '/opt/software/jdk1.6.0_21/jre/lib/jsse.jar'
>>     [java] *sys-package-mgr*: processing new jar,
>> '/opt/software/jdk1.6.0_21/jre/lib/jce.jar'
>>     [java] *sys-package-mgr*: processing new jar,
>> '/opt/software/jdk1.6.0_21/jre/lib/charsets.jar'
>>     [java] *sys-package-mgr*: processing new jar,
>> '/opt/software/jdk1.6.0_21/jre/lib/ext/sunjce_provider.jar'
>>     [java] *sys-package-mgr*: processing new jar,
>> '/opt/software/jdk1.6.0_21/jre/lib/ext/localedata.jar'
>>     [java] *sys-package-mgr*: processing new jar,
>> '/opt/software/jdk1.6.0_21/jre/lib/ext/dnsns.jar'
>>     [java] *sys-package-mgr*: processing new jar,
>> '/opt/software/jdk1.6.0_21/jre/lib/ext/sunpkcs11.jar'
>>     [java] Traceback (most recent call last):
>>     [java]   File "/home/shammi/wso2/qpid/trunk/qpid/java/common/codegen",
>> line 22, in <module>
>>     [java]     import os, sys, mllib
>>     [java] ImportError: No module named os
>>
>> BUILD FAILED
>>
>>
>> Felix
>> -------
>>
>> [javac]
>> ^
>>    [javac]
>> /home/shammi/wso2/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/plugins/PluginManager.java:241:
>> cannot find symbol
>>    [javac] symbol  : method
>> process(org.apache.felix.framework.util.StringMap,org.osgi.framework.BundleContext)
>>    [javac] location: class org.apache.qpid.server.plugins.PluginManager
>>    [javac]                 process(configMap, _felix.getBundleContext());
>>    [javac]                 ^
>>    [javac] Note: Some input files use or override a deprecated API.
>>    [javac] Note: Recompile with -Xlint:deprecation for details.
>>    [javac] Note: Some input files use unchecked or unsafe operations.
>>    [javac] Note: Recompile with -Xlint:unchecked for details.
>>    [javac] 15 errors
>>
>> BUILD FAILED
>>
>>
>> We would like to know that is there any modifications done on those two
>> libraries by qpid team and please let us know where we can find the
>> exact  maven dependency used for the above libraries.
>>
>> Thanks in advance,
>> Best Regards,*
>>
>> Shammi Jayasinghe*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com,
>> mobile: +94 71 4493085

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: Problem in Finding dependencies for jars used by Qpid

Posted by Robbie Gemmell <ro...@gmail.com>.
Checking the archived release files for Felix 2.0.5 and binary
comparing the contents with the jar in the lib dir, they do indeed
differ. The contents gave a clue as to why; the file in the lib dir is
actually the 'org.apache.felix.main' jar rather than the
'org.apache.felix.framework' one.
http://archive.apache.org/dist/felix/org.apache.felix.main-2.0.5-bin.tar.gz

The Jython jar file in the lib dir appears to be a 'standalone
(callable jar)' installation of of Jython 2.5.0 created by running the
downloadable installer. Downloading the installer and selecting that
option generated me an identicle jar file to the one in the lib dir.
The jar file in the maven repo seems to just be the base jar included
within the installer jar, into which it injects a Lib dir during the
standalone installation process containing additional python files.
http://sourceforge.net/projects/jython/files/jython/2.5.0/jython_installer-2.5.0.jar/download

Robbie

On 3 February 2012 06:51, Shammi Jayasinghe <sh...@wso2.com> wrote:
> Hi ,
>
>  We are trying to find out maven dependencies for the libraries
> (qpid/java/lib) used in qpid trunk. We could find out the all the maven
> dependencies and use them for
> building qpid instead of following two libraries.
>
> 1. org.apache.felix.framework-2.0.5 jar [
> http://mvnrepository.com/artifact/org.apache.felix/org.apache.felix.framework/2.0.5
> ]
> 2. jython-2.5.0.jar [
> http://search.maven.org/#artifactdetails|org.python|jython|2.5.0|jar]
>
> Though we were able to find out these libraries in the mentioned
> repositories , it seems there are some difference in the content of those
> libraries
> though they seems to be the same version.
>
> jython
> --------
> check_jython_deps:
>
> jython:
>     [java] *sys-package-mgr*: processing new jar,
> '/home/shammi/wso2/qpid/trunk/qpid/java/lib/jython-2.5.0.jar'
>     [java] *sys-package-mgr*: processing new jar,
> '/opt/software/jdk1.6.0_21/jre/lib/resources.jar'
>     [java] *sys-package-mgr*: processing new jar,
> '/opt/software/jdk1.6.0_21/jre/lib/rt.jar'
>     [java] *sys-package-mgr*: processing new jar,
> '/opt/software/jdk1.6.0_21/jre/lib/jsse.jar'
>     [java] *sys-package-mgr*: processing new jar,
> '/opt/software/jdk1.6.0_21/jre/lib/jce.jar'
>     [java] *sys-package-mgr*: processing new jar,
> '/opt/software/jdk1.6.0_21/jre/lib/charsets.jar'
>     [java] *sys-package-mgr*: processing new jar,
> '/opt/software/jdk1.6.0_21/jre/lib/ext/sunjce_provider.jar'
>     [java] *sys-package-mgr*: processing new jar,
> '/opt/software/jdk1.6.0_21/jre/lib/ext/localedata.jar'
>     [java] *sys-package-mgr*: processing new jar,
> '/opt/software/jdk1.6.0_21/jre/lib/ext/dnsns.jar'
>     [java] *sys-package-mgr*: processing new jar,
> '/opt/software/jdk1.6.0_21/jre/lib/ext/sunpkcs11.jar'
>     [java] Traceback (most recent call last):
>     [java]   File "/home/shammi/wso2/qpid/trunk/qpid/java/common/codegen",
> line 22, in <module>
>     [java]     import os, sys, mllib
>     [java] ImportError: No module named os
>
> BUILD FAILED
>
>
> Felix
> -------
>
> [javac]
> ^
>    [javac]
> /home/shammi/wso2/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/plugins/PluginManager.java:241:
> cannot find symbol
>    [javac] symbol  : method
> process(org.apache.felix.framework.util.StringMap,org.osgi.framework.BundleContext)
>    [javac] location: class org.apache.qpid.server.plugins.PluginManager
>    [javac]                 process(configMap, _felix.getBundleContext());
>    [javac]                 ^
>    [javac] Note: Some input files use or override a deprecated API.
>    [javac] Note: Recompile with -Xlint:deprecation for details.
>    [javac] Note: Some input files use unchecked or unsafe operations.
>    [javac] Note: Recompile with -Xlint:unchecked for details.
>    [javac] 15 errors
>
> BUILD FAILED
>
>
> We would like to know that is there any modifications done on those two
> libraries by qpid team and please let us know where we can find the
> exact  maven dependency used for the above libraries.
>
> Thanks in advance,
> Best Regards,*
>
> Shammi Jayasinghe*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com,
> mobile: +94 71 4493085

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org