Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » commons-logging.jar not loaded
commons-logging.jar not loaded [message #77249] Wed, 12 July 2006 10:24 Go to next message
Eclipse User
Originally posted by: prince.pajero.gmail.com

I run TPTP Junit plugin test for my plugin. Here is the setup.

Plugin xyzlib contains the commons-logging.jar
Plugin abcPlugin has some simple code which uses classes provided by
common-logging.jar

In plugin xyzlib I've exported the commons-logging.jar from the Project
Properties sheet. I've also added the jar to the Classpath in the
Runtime tab of the Manifest editor. Also, I've exported the packages to
all downstream plugins.

Now my plugin abcPlugin has some (plain) Junit tests, which I can run
using Run > Run as Junit Plugin Test. There are no problems and my code
can find the classes from the commons-logging.jar

Problem is when I Import the same tests TPTP Junit Plugin tests and try
to run then my code throws a Runtime NoClassDefFoundException.

I tried to debug and found that in BundleLoader.class, in the method:-

Class findClass(String name, boolean checkParent) throws
ClassNotFoundException

after these lines:-

// 4) search the required bundles
source = findRequiredSource(pkgName);

the source variable:-
source > supplier > loader > classloader > classpathentries

has the entry for commons-logging.jar in case of Junit Plugin Test
BUT
does not have any entry in case of TPTP Junit Plugin Test.
Re: commons-logging.jar not loaded [message #77265 is a reply to message #77249] Wed, 12 July 2006 10:30 Go to previous messageGo to next message
Eclipse User
Originally posted by: prince.pajero.gmail.com

Forgot to add this:-
I'm using eclipse 3.1.2 with TPTP 4.1.0.1, Sun Java 1.5 OS is FC3-linux

Also, TPTP uses the commons-logging.jar itself, so it might be causing
some conflict and hence the commons-logging.jar is not loaded by the
class loader when my code requests it.

Are these any useful links:-
http://www.qos.ch/logging/classloader.jsp
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. hyades.test.doc.user/tasks/tdeploymentGroundRules.htm
For the second link, the Excluded Libraries topic seems interesting. But
I have no idea why isn't this 'issue' resolved.



Prince Singh wrote:
> I run TPTP Junit plugin test for my plugin. Here is the setup.
>
> Plugin xyzlib contains the commons-logging.jar
> Plugin abcPlugin has some simple code which uses classes provided by
> common-logging.jar
>
> In plugin xyzlib I've exported the commons-logging.jar from the Project
> Properties sheet. I've also added the jar to the Classpath in the
> Runtime tab of the Manifest editor. Also, I've exported the packages to
> all downstream plugins.
>
> Now my plugin abcPlugin has some (plain) Junit tests, which I can run
> using Run > Run as Junit Plugin Test. There are no problems and my code
> can find the classes from the commons-logging.jar
>
> Problem is when I Import the same tests TPTP Junit Plugin tests and try
> to run then my code throws a Runtime NoClassDefFoundException.
>
> I tried to debug and found that in BundleLoader.class, in the method:-
>
> Class findClass(String name, boolean checkParent) throws
> ClassNotFoundException
>
> after these lines:-
>
> // 4) search the required bundles
> source = findRequiredSource(pkgName);
>
> the source variable:-
> source > supplier > loader > classloader > classpathentries
>
> has the entry for commons-logging.jar in case of Junit Plugin Test
> BUT
> does not have any entry in case of TPTP Junit Plugin Test.
Re: commons-logging.jar not loaded [message #77280 is a reply to message #77265] Wed, 12 July 2006 10:41 Go to previous messageGo to next message
Eclipse User
Originally posted by: prince.pajero.gmail.com

The plugin org.apache.jakarta_commons_logging has the
commons-logging.jar already, which I guess is causing the problem

Prince Singh wrote:
> Forgot to add this:-
> I'm using eclipse 3.1.2 with TPTP 4.1.0.1, Sun Java 1.5 OS is FC3-linux
>
> Also, TPTP uses the commons-logging.jar itself, so it might be causing
> some conflict and hence the commons-logging.jar is not loaded by the
> class loader when my code requests it.
>
> Are these any useful links:-
> http://www.qos.ch/logging/classloader.jsp
> http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. hyades.test.doc.user/tasks/tdeploymentGroundRules.htm
>
> For the second link, the Excluded Libraries topic seems interesting. But
> I have no idea why isn't this 'issue' resolved.
>
>
>
> Prince Singh wrote:
>> I run TPTP Junit plugin test for my plugin. Here is the setup.
>>
>> Plugin xyzlib contains the commons-logging.jar
>> Plugin abcPlugin has some simple code which uses classes provided by
>> common-logging.jar
>>
>> In plugin xyzlib I've exported the commons-logging.jar from the
>> Project Properties sheet. I've also added the jar to the Classpath in
>> the Runtime tab of the Manifest editor. Also, I've exported the
>> packages to all downstream plugins.
>>
>> Now my plugin abcPlugin has some (plain) Junit tests, which I can run
>> using Run > Run as Junit Plugin Test. There are no problems and my
>> code can find the classes from the commons-logging.jar
>>
>> Problem is when I Import the same tests TPTP Junit Plugin tests and
>> try to run then my code throws a Runtime NoClassDefFoundException.
>>
>> I tried to debug and found that in BundleLoader.class, in the method:-
>>
>> Class findClass(String name, boolean checkParent) throws
>> ClassNotFoundException
>>
>> after these lines:-
>>
>> // 4) search the required bundles
>> source = findRequiredSource(pkgName);
>>
>> the source variable:-
>> source > supplier > loader > classloader > classpathentries
>>
>> has the entry for commons-logging.jar in case of Junit Plugin Test
>> BUT
>> does not have any entry in case of TPTP Junit Plugin Test.
Re: commons-logging.jar not loaded [message #77296 is a reply to message #77280] Wed, 12 July 2006 11:29 Go to previous messageGo to next message
Eclipse User
Originally posted by: prince.pajero.gmail.com

I made my plugin dependent on org.apache.jakarta_commons_logging and
evrything worked fine. But this is not how I want to do it. I want the
commons-logging.jar api to be available through my plugin only.

Please Help !!


Prince Singh wrote:
> The plugin org.apache.jakarta_commons_logging has the
> commons-logging.jar already, which I guess is causing the problem
>
> Prince Singh wrote:
>> Forgot to add this:-
>> I'm using eclipse 3.1.2 with TPTP 4.1.0.1, Sun Java 1.5 OS is FC3-linux
>>
>> Also, TPTP uses the commons-logging.jar itself, so it might be causing
>> some conflict and hence the commons-logging.jar is not loaded by the
>> class loader when my code requests it.
>>
>> Are these any useful links:-
>> http://www.qos.ch/logging/classloader.jsp
>> http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. hyades.test.doc.user/tasks/tdeploymentGroundRules.htm
>>
>> For the second link, the Excluded Libraries topic seems interesting.
>> But I have no idea why isn't this 'issue' resolved.
>>
>>
>>
>> Prince Singh wrote:
>>> I run TPTP Junit plugin test for my plugin. Here is the setup.
>>>
>>> Plugin xyzlib contains the commons-logging.jar
>>> Plugin abcPlugin has some simple code which uses classes provided by
>>> common-logging.jar
>>>
>>> In plugin xyzlib I've exported the commons-logging.jar from the
>>> Project Properties sheet. I've also added the jar to the Classpath in
>>> the Runtime tab of the Manifest editor. Also, I've exported the
>>> packages to all downstream plugins.
>>>
>>> Now my plugin abcPlugin has some (plain) Junit tests, which I can run
>>> using Run > Run as Junit Plugin Test. There are no problems and my
>>> code can find the classes from the commons-logging.jar
>>>
>>> Problem is when I Import the same tests TPTP Junit Plugin tests and
>>> try to run then my code throws a Runtime NoClassDefFoundException.
>>>
>>> I tried to debug and found that in BundleLoader.class, in the method:-
>>>
>>> Class findClass(String name, boolean checkParent) throws
>>> ClassNotFoundException
>>>
>>> after these lines:-
>>>
>>> // 4) search the required bundles
>>> source = findRequiredSource(pkgName);
>>>
>>> the source variable:-
>>> source > supplier > loader > classloader > classpathentries
>>>
>>> has the entry for commons-logging.jar in case of Junit Plugin Test
>>> BUT
>>> does not have any entry in case of TPTP Junit Plugin Test.
Re: commons-logging.jar not loaded [message #77329 is a reply to message #77249] Wed, 12 July 2006 15:45 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
Registered: July 2009
Senior Member
Hi Prince,
This is not related to the org.apache.jakarta_commons_logging plugin
that ships with TPTP. This is a defect in that the TPTP execution harness
is not deploying the commons-logging.jar from the abcPlugin. You can
confirm this by checking if the commons-logging.jar is in the <user temp
directory>/<user name>/ directory tree. Your solution (making the abcPlugin
dependency on org.apache.jakarta_commons_logging plugin) will solve the
problem or you can create an artifact (Help >> Help Contents >> Testing
applications >> Testing with JUnit >> Running a JUnit test remotely) with
the commons-logging.jar set on the CLASSPATH property of the artifact. That
said, these are only suggested work-arounds. Please open a TPTP defect
( https://bugs.eclipse.org/bugs/enter_bug.cgi?classification=T PTP) for this
problem.

Paul
"Prince Singh" <prince.pajero@gmail.com> wrote in message
news:e92ijc$mk4$1@utils.eclipse.org...
> I run TPTP Junit plugin test for my plugin. Here is the setup.
>
> Plugin xyzlib contains the commons-logging.jar
> Plugin abcPlugin has some simple code which uses classes provided by
> common-logging.jar
>
> In plugin xyzlib I've exported the commons-logging.jar from the Project
> Properties sheet. I've also added the jar to the Classpath in the
> Runtime tab of the Manifest editor. Also, I've exported the packages to
> all downstream plugins.
>
> Now my plugin abcPlugin has some (plain) Junit tests, which I can run
> using Run > Run as Junit Plugin Test. There are no problems and my code
> can find the classes from the commons-logging.jar
>
> Problem is when I Import the same tests TPTP Junit Plugin tests and try
> to run then my code throws a Runtime NoClassDefFoundException.
>
> I tried to debug and found that in BundleLoader.class, in the method:-
>
> Class findClass(String name, boolean checkParent) throws
> ClassNotFoundException
>
> after these lines:-
>
> // 4) search the required bundles
> source = findRequiredSource(pkgName);
>
> the source variable:-
> source > supplier > loader > classloader > classpathentries
>
> has the entry for commons-logging.jar in case of Junit Plugin Test
> BUT
> does not have any entry in case of TPTP Junit Plugin Test.
Re: commons-logging.jar not loaded [message #77388 is a reply to message #77329] Thu, 13 July 2006 09:27 Go to previous messageGo to next message
Eclipse User
Originally posted by: prince.pajero.gmail.com

Thanks for confirming the bug.
As suggested by you, A bug is being opened at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=150484
I've set the severity to major. You may modify as you know better about
the severity.


Paul Slauenwhite wrote:
> Hi Prince,
> This is not related to the org.apache.jakarta_commons_logging plugin
> that ships with TPTP. This is a defect in that the TPTP execution harness
> is not deploying the commons-logging.jar from the abcPlugin. You can
> confirm this by checking if the commons-logging.jar is in the <user temp
> directory>/<user name>/ directory tree. Your solution (making the abcPlugin
> dependency on org.apache.jakarta_commons_logging plugin) will solve the
> problem or you can create an artifact (Help >> Help Contents >> Testing
> applications >> Testing with JUnit >> Running a JUnit test remotely) with
> the commons-logging.jar set on the CLASSPATH property of the artifact. That
> said, these are only suggested work-arounds. Please open a TPTP defect
> ( https://bugs.eclipse.org/bugs/enter_bug.cgi?classification=T PTP) for this
> problem.
>
> Paul
> "Prince Singh" <prince.pajero@gmail.com> wrote in message
> news:e92ijc$mk4$1@utils.eclipse.org...
>> I run TPTP Junit plugin test for my plugin. Here is the setup.
>>
>> Plugin xyzlib contains the commons-logging.jar
>> Plugin abcPlugin has some simple code which uses classes provided by
>> common-logging.jar
>>
>> In plugin xyzlib I've exported the commons-logging.jar from the Project
>> Properties sheet. I've also added the jar to the Classpath in the
>> Runtime tab of the Manifest editor. Also, I've exported the packages to
>> all downstream plugins.
>>
>> Now my plugin abcPlugin has some (plain) Junit tests, which I can run
>> using Run > Run as Junit Plugin Test. There are no problems and my code
>> can find the classes from the commons-logging.jar
>>
>> Problem is when I Import the same tests TPTP Junit Plugin tests and try
>> to run then my code throws a Runtime NoClassDefFoundException.
>>
>> I tried to debug and found that in BundleLoader.class, in the method:-
>>
>> Class findClass(String name, boolean checkParent) throws
>> ClassNotFoundException
>>
>> after these lines:-
>>
>> // 4) search the required bundles
>> source = findRequiredSource(pkgName);
>>
>> the source variable:-
>> source > supplier > loader > classloader > classpathentries
>>
>> has the entry for commons-logging.jar in case of Junit Plugin Test
>> BUT
>> does not have any entry in case of TPTP Junit Plugin Test.
>
>
Re: commons-logging.jar not loaded [message #77520 is a reply to message #77296] Mon, 17 July 2006 12:17 Go to previous message
Eclipse User
Originally posted by: prince.pajero.gmail.com

I tried with eclipse 3.2.0 and tptp 4.2.0 the problem is not there.


Prince Singh wrote:
> I made my plugin dependent on org.apache.jakarta_commons_logging and
> evrything worked fine. But this is not how I want to do it. I want the
> commons-logging.jar api to be available through my plugin only.
>
> Please Help !!
>
>
> Prince Singh wrote:
>> The plugin org.apache.jakarta_commons_logging has the
>> commons-logging.jar already, which I guess is causing the problem
>>
>> Prince Singh wrote:
>>> Forgot to add this:-
>>> I'm using eclipse 3.1.2 with TPTP 4.1.0.1, Sun Java 1.5 OS is FC3-linux
>>>
>>> Also, TPTP uses the commons-logging.jar itself, so it might be
>>> causing some conflict and hence the commons-logging.jar is not loaded
>>> by the class loader when my code requests it.
>>>
>>> Are these any useful links:-
>>> http://www.qos.ch/logging/classloader.jsp
>>> http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. hyades.test.doc.user/tasks/tdeploymentGroundRules.htm
>>>
>>> For the second link, the Excluded Libraries topic seems interesting.
>>> But I have no idea why isn't this 'issue' resolved.
>>>
>>>
>>>
>>> Prince Singh wrote:
>>>> I run TPTP Junit plugin test for my plugin. Here is the setup.
>>>>
>>>> Plugin xyzlib contains the commons-logging.jar
>>>> Plugin abcPlugin has some simple code which uses classes provided by
>>>> common-logging.jar
>>>>
>>>> In plugin xyzlib I've exported the commons-logging.jar from the
>>>> Project Properties sheet. I've also added the jar to the Classpath
>>>> in the Runtime tab of the Manifest editor. Also, I've exported the
>>>> packages to all downstream plugins.
>>>>
>>>> Now my plugin abcPlugin has some (plain) Junit tests, which I can
>>>> run using Run > Run as Junit Plugin Test. There are no problems and
>>>> my code can find the classes from the commons-logging.jar
>>>>
>>>> Problem is when I Import the same tests TPTP Junit Plugin tests and
>>>> try to run then my code throws a Runtime NoClassDefFoundException.
>>>>
>>>> I tried to debug and found that in BundleLoader.class, in the method:-
>>>>
>>>> Class findClass(String name, boolean checkParent) throws
>>>> ClassNotFoundException
>>>>
>>>> after these lines:-
>>>>
>>>> // 4) search the required bundles
>>>> source = findRequiredSource(pkgName);
>>>>
>>>> the source variable:-
>>>> source > supplier > loader > classloader > classpathentries
>>>>
>>>> has the entry for commons-logging.jar in case of Junit Plugin Test
>>>> BUT
>>>> does not have any entry in case of TPTP Junit Plugin Test.
Previous Topic:about the old and new agent controller
Next Topic:line coverage tool: library piLLCAgent
Goto Forum:
  


Current Time: Sun Sep 21 00:11:35 GMT 2014

Powered by FUDForum. Page generated in 0.01720 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software