[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cactus-user
Subject:    RE: URGENT: Unable to run test cases in SwingUI
From:       "Vaidya, Supriya A (US - Chicago)" <supriyavaidya () deloitte ! com>
Date:       2007-06-21 20:26:38
Message-ID: A03B2B2F5AAD694DBA3B7000E8B3F4210200712C () uscnt0402 ! us ! deloitte ! com
[Download RAW message or body]

I reverted to using the command prompt and abandoned Eclipse completely!
Now I am able to get beyond the NoClassDefFoundError - and am stuck with
the weblogic.jar and commons-logging problem! 

"Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Invalid class
loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed. (Caused
by org.apache.commons.logging.LogConfigurationException: Invalid class
loader hierarchy.  You have more than one version of
'org.apache.commons.logging.Log' visible, which is not allowed.)"

I cannot remove weblogic.jar since I need it for some classes (like the
TPException class)... And I cannot remove the commons.jar since that
throws errors too... So how do I resolve this?!?



Supriya A Vaidya 
Technology Integration 
Deloitte Consulting LLP 
Tel: +1 312 486 4835 
Fax: +1 312 247 4835
Mobile: + 1 414 736 8157 
www.deloitte.com 


-----Original Message-----
From: Vaidya, Supriya A (US - Chicago) 
Sent: Thursday, June 21, 2007 12:45 PM
To: 'Cactus Users List'
Subject: RE: URGENT: Unable to run test cases in SwingUI

Thanks Dheerendra! However, I am deploying my application in an exploded
format. I find that unless I extract all the classes of cactus-1.7.2.jar
into WEB-INF/classes, the application is not able to find it... What
does it mean if my application cannot find the jar during runtime (after
it, it compiles fine and is able to run this test on the server), but
can find the associated classes if I put them into WEB-INF/classes? I
tried putting the .jar directly into WEB-INF/classes, but that didn't
work either (I know - dumb idea! :) )


Supriya A Vaidya 
Technology Integration 
Deloitte Consulting LLP 
Tel: +1 312 486 4835 
Fax: +1 312 247 4835
Mobile: + 1 414 736 8157 
www.deloitte.com 


-----Original Message-----
From: Dheerendra Kulkarni [mailto:dheerendra@gmail.com] 
Sent: Wednesday, June 20, 2007 11:08 PM
To: Cactus Users List
Subject: Re: URGENT: Unable to run test cases in SwingUI

Your deployed jar must also contain Cactus.jar

regards
Dheerendra

On 6/21/07, Vaidya, Supriya A (US - Chicago)
<supriyavaidya@deloitte.com> wrote:
> Hi:
>
> I have been running my test suites from within Eclipse IDE, and when I
> run them as a JUnit test case, or a ServletTestCase, they work fine.
> However, my company now wants me to be able to execute these test
cases
> from within a server, where Eclipse is not installed. I therefore am
> trying to use the junit.swingui.TestRunner.main method.. however, I
> constantly receive the: java.lang.NoClassDefFoundError:
> org/apache/cactus/ServletTestCase. I have verified that
cactus-1.7.2.jar
> is in teh classpath (and I can see the class in the jar!!). I have
> verified that junit-3.8.1.jar is also in the classpath.
>
> What am I doing wrong?
>
>
> Supriya A Vaidya
> Technology Integration
> Deloitte Consulting LLP
> Tel: +1 312 486 4835
> Fax: +1 312 247 4835
> Mobile: + 1 414 736 8157
> www.deloitte.com <http://www.deloitte.com/>
>
>
> This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and is
protected by law.  If you are not the intended recipient, you should
delete this message.
>
>
> Any disclosure, copying, or distribution of this message, or the
taking of any action based on it, is strictly prohibited. [v.E.1]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic