• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

junit- why wont it run on dif. computer?

 
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey guys I wrote a test that works fine on my computer. I sent it to somebody else and they recieved this error. I think it has to do with the classpath, but I'm not sure. Thanks for the help.

java.lang.ClassCastException
at weblogic.xml.schema.binding.internal.TypeMappingBase.addTypeMapping(
ypeMappingBase.java:549)
at weblogic.xml.schema.binding.internal.TypeMappingBase.readXML(TypeMap
ingBase.java:782)
at weblogic.xml.schema.binding.internal.TypeMappingBase.readXML(TypeMap
ingBase.java:511)
at weblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegi
try.java:70)
at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
at weblogic.jws.proxies.CostAnalysisService_Impl.<init>(CostAnalysisSer
ice_Impl.java:23)
at weblogic.jws.proxies.CostAnalysisService_Impl.<init>(CostAnalysisSer
ice_Impl.java:17)
at CostTest.testSoapProxy(CostTest.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.swingui.TestRunner$16.run(TestRunner.java:623)
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Possibly a deployment or classloader problem. Can't say for sure without knowing more about what you are doing.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dan,
Are you and the other person both using Weblogic?
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think environment in your computer and another computer are same or not ???


Such as : Version of Weblogic , JUnit version (not sure)
 
Dan Maples
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jeanne- we both have weblogic on our computers.
This is proving to be more difficult than I thought. Here's what I'm doing: I am using my computer to call on a soap proxy from a remote location to test one of it's webservices. when I use my computer it functions properly. I sent my program along with the necessary jar files to a co-worker, when he tried to run it on his computer it didn't work. this is what he typed in at the command line:
C:\temp\dan\junit3.8.1>java -classpath c:\temp\dan\junit3.8.1\webserviceclient.j
ar;c:\temp\dan\junit3.8.1\chnutil.jar;c:\temp\dan\junit3.8.1\CostAnalysisService
.jar;c:\temp\dan\junit3.8.1\junit.jar;. junit.swingui.TestRunner CostTest

That gave him the error I posted earlyer.
Thanks for the help.
Dan
 
You don't like waffles? Well, do you like this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic