Hi Min,
it looks as if the JSR-181 jar file in your class path is too old. Make
sure that you have the JSR-181 from the XFire distribution in the class
path and no other. I know that at least BEA WebLogic 9.2 includes an
outdated JSR-181 version. As a workaround I had to prepend the jar file
to WebLogic class path so it is "seen" first.
Werner
Min Xie wrote:
I tried to bind the parameter names in wsdl. I put
< serviceFactory > org.codehaus.xfire.jaxws.JAXWSServiceFactory </
serviceFactory > in the service.xml and some annotations in the service
file.
but I got the following errors:
java.lang.NoSuchMethodError: portName
at
org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations.getWebServiceAnnotation(Jsr181WebAnnotations.java:55)
at
org.codehaus.xfire.annotations.AnnotationsValidatorImpl.validateClass(AnnotationsValidatorImpl.java:15)
at
org.codehaus.xfire.annotations.AnnotationsValidatorImpl.validate(AnnotationsValidatorImpl.java:90)
at
org.codehaus.xfire.annotations.AnnotationServiceFactory.create(AnnotationServiceFactory.java:190)
at
org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:374)
at
org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:355)
at
org.intermountain.help2.webservice.services.FactoryTest.setUp(FactoryTest.java:19)
at junit.framework.TestCase.runBare(TestCase.java:125)
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
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Thanks
Min
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email