jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • XFire
  • XFIRE-1083

Using Java 5 Annotations [META-INF/xfire/services.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: javax.jws.WebService.portName()Ljava/lang/String;

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.6
  • Fix Version/s: None
  • Component/s: Annotations
  • Labels:
    None
  • Environment:
    weblogic 9.2 windows

Description

Creating web services , Used Xfires , i got wsdl
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="xsd:integer"/>
<xsd:element maxOccurs="1" minOccurs="1" name="in1" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="in2" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="in3" nillable="true" type="xsd:integer"/>
</xsd:sequence>
</xsd:complexType>

name =in01,in01,in02 etc are comming , i want proper names in those, So i decided to use Annotations.i follow the same as http://xfire.codehaus.org/JSR+181+Annotations

I added my service.xml as
<service>

<name>ServiceName</name>
<namespace>urn:your:namespace</namespace>
<serviceClass>your.service.Class</serviceClass>
<serviceFactory>org.codehaus.xfire.jaxws.JAXWSServiceFactory</serviceFactory>

</service>

When i add JAXWSServiceFactory i am getting java.lang.NoSuchMethodError: javax.jws.WebService.portName()Ljava/lang/String;

PLease suggust me Or tell me is there any way to get Elelement names in WSDL as i want insted of in0,in1,in2 etc.
U can send me the anser to my email to k_basher@yahoo.com

Thanks in advance

Basher

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Kattubadi Basher added a comment - 29/Jan/09 4:10 PM

solved the problem long back for got to update.
Same code works fine in weblogic10 ,

Show
Kattubadi Basher added a comment - 29/Jan/09 4:10 PM solved the problem long back for got to update. Same code works fine in weblogic10 ,

People

  • Assignee:
    Dan Diephouse
    Reporter:
    Kattubadi Basher
Vote (0)
Watch (1)

Dates

  • Created:
    24/Aug/07 4:00 PM
    Updated:
    29/Jan/09 4:10 PM
    Resolved:
    29/Jan/09 4:10 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.