Method contains javax.jws.WebResult annotation but is not a WebMethod

Hello,
I am trying to create a JAXWS web service from a JWS file using jwsc ant task (for WebLogic 10.0). The JWS file uses an endpoint interface. In the interface I have the following web method declaration:
     @WebMethod
     @WebResult(name="DataSet") String queryTable(
               @WebParam(name="User") SecurityToken a_user,
               @WebParam(name="DataSourceID") long a_dataSourceID,
               @WebParam(name="TableName") String a_tableName,
               @WebParam(name="Query") String a_query) throws RemoteException;
Running jwsc fails with the following message:
[ERROR] - Method contains javax.jws.WebResult annotation but is not a WebMethod. Add the javax.jws.WebMethod annotation to the method definition.
Apparently the WebMethod annotation is there. I found a similar problem in this forum but the solutions does not work for me - Webservices: jwsc is unable to compile wsdlc-generated classes .
Can anybody help me resolve this issue?
Thank you in advance,
JBoris

After trying to fix the problem for a few hours I came to the following conclusions:
First, the interface that contains the web method declaration in the post above is a parent interface of the endpoint interface. We have common web methods shared by more than one web service. Their declarations are in a common interface which is extended by the endpoint interfaces. This works fine if there are no @WebResult annotations. So there are two workarounds for now:
1. Web methods that have @WebResult annotations can be copied to the endpoint interface.
2. @WebResult annotations can be removed from the declarations.
Is there any other way that this can be fixed?
Thanks.
JBoris

Similar Messages

  • HT1692 This method works for a PC sync but did not help for an over the air sync. Any advice. This problem occurred once I upgraded the software.

    How do I get my 4s to sync over the air?

    Sync over the air with what, exactly?

  • Html tags using javax.jws.WebService

    Hi,
    I am using javax.jws.WebService and I met a problem for html tags.
    In a String containing "<" and ">", the javax.jws.WebService implmentation of IBM transfered the String with "<" and ">" in the XML reply. How could this translation be avoided?
    Regards.
    Pengyou

    The XML content in the soap request looks like this:
    <myXml>
        <tagWithCdata><![CDATA[<test>123</test>]]></tagWithCdata>
    </myXml> The String "tagWithCdata" in the Java object looks like this: "<test>123</test>"
    And the marshalled XML in the soap response looks like this:
    <myXml>
        <tagWithCdata><test>123<test></tagWithCdata>
    </myXml>But I expect to have the same format as the soap request, i.e.
    <myXml>
        <tagWithCdata><![CDATA[<test>123</test>]]></tagWithCdata>
    </myXml>

  • Run-time error '1004' -- Method 'Container' of object '_Workbook' failed

    Dear All,
    One of our users is getting the following Microsoft Visual Basic error while running the report S_ALR_87013614.
    Run-time error '1004'
    Method 'Container' of object '_Workbook' failed.
    I have searched the forum posts for help. But I only found some details related to Run-time error 1004 related to some excel file security but not related to "Method 'Container' of object '_Workbook' failed".
    Could anyone please tell me how this error can be eliminated for the user?
    Regards,
    Lakshmi.

    Dear Arpan,
    We too observed a few PIDs along with the one that you have mentioned but they make no difference. Some users who has the PID G_RW_DOCUMENT_TYPE set with some value are getting the report.
    Upon further searching we are assuming that it could be an issue with the Microsoft applications or macro settings of the user. But not sure about it.
    Regards,
    Lakshmi Venigala.

  • Service method in javax.servlet.http.HttpServlet

    Hi All,
    I have a doubt in the service method of javax.servlet.http.HttpServlet
    There are two service methods in the javax.servlet.http.HttpServlet.
    one is with protected and other is with public access specifier.
    In the javadoc it is said that public service method dispatches client requests to the protected service method.
    Why this type of design is required.
    Instead of having a two service methods, Is it not possible to have a single service method and attain the functionality intended.
    Are there any advantages by having two service methods.
    I think there may be some idea/functionality behind these for having two service methods , which I am not able to understand.
    Would be greatful , if someone can throw light on this .
    Thanks,
    Dhanasekaran.

    This is just a theory, but here goes:
    The public service() method takes arguments of ServletRequest and ServletResponse, presumably because that's the signature that the non-HTTP specific servlet engine requires.
    The protected service() method of HttpServlet takes arguments of HttpServletRequest and HttpServletResponse and includes HTTP specific functions.
    My guess is that the public service() method either casts the arguments to the Http objects or does work to create the Http objects before calling the protected method.

  • When trying to update apps i keep getting billing method incorrect(this is on iphone 4s) i hsve tried this store,apple id,view id,payment info but does not offer me the none option,i can npt update my phone any ideas anybody please?

    when trying to update apps i keep getting billing method incorrect(this is on iphone 4s) i hsve tried this store,apple id,view id,payment info but does not offer me the none option,i can npt update my phone any ideas anybody please?

    If you dont have none option then you must own itunes some money. So you have to enter the payment like a itunes giftcard. you can contact itunes by email by going to expresslane.apple.com

  • Trying to OCR pdf, pdf says it can't perform bc it already contains renderable text-but does not.

    I work for a large agency, and we receive PDF's all the time. 98% of the time I am able to OCR a document with no issues. Just recently I have come across this issue several times, and was wondering if anyone can solve this irritating problem!
    *Acrobat 8.1 - When going to OCR the document, I receive the following message " Acrobat could not perform recognition (OCR) on this page because this page already contains renderable text. However, it does not. When you go to select text or search for anything the whole page is selected (like it's still in a "picture" format, not a document format that you can search, ect.)
    I am not sure if it is how the document is uploaded originally by the other party that causes this, but the only thing I can do as a work-around - is to print out the entire document, scan and then I can OCR the document just fine! The problem is, if the document is 400 pages or so, this can be a huge waste of time, and money just to be able to search the PDF.
    *I have also checked the pdf properties to see if this is some sort of permissions issue, and there are not permissions/security settings in place.*
    PLEASE HELP! Any assistance in this matter would save me a lot of time, and of course (my sanity!).
    Thank you in advance!

    While the alert speaks to "renderable text" that is a simplification. The issue is that you've PDF page content consisting of at least one renderable "character".
    Look at font families - you will observe that there are many characters that are not "text" characters (i.e., linguistic characters).
    So, there's a "renderable character" present. It may be an alpha numeric that has a font color the same as the page background. It may be under the image and thus not visible to the eye.
    You might be able to determine just what is present.
    You could export the page of interest to a text file then view that file.
    You could deplay the page of interest in Acrobat Pro then select the "Content panel" to view the content tree.
    Locate and click on the page number for the page of interest.
    From the Content panel's Options menu select "Highlight Content".
    Walk down the tree. Select the content containers in turn and observe what is highlighted on the PDF page.
    Where might the renderable character come from ? Typically that'd be associated with something in the work flow.
    Not always easy to find so don't take anything in the work flow for granted.
    Be well...

  • I have an eMac which I want to connect to my home wireless network. My router is D-Link-601 tech 802.11n. My emac is wireless ready but does not contain an airport card. Do I need a card and an airport station? What else?

    I have an eMac which I want to connect to my home wireless network. My router is D-Link - 601 tech. 802.11n. My eMac is wireless ready but does not contain an airport card. Do I need a card and an airport station? What else?

    You need the Airport card OR Airport Express but not both.  Considering the age of your machine, I recommend Airport Express as you will find other uses for it whenever you replace the eMac.
    To set up the AE, you do need OSX 10.4 or higher.

  • I have a 16 year I support that lives in Haiti. He has a computer, but is not able to charge on a credit card.  If I purchase prepaid Itunes gift cards, is he able to set up a Itunes account and use these gift cards. That would be his only method of pay

    I have a 16 year I support that lives in Haiti. He has a computer, but is not able to charge on a credit card.  If I purchase prepaid Itunes gift cards, is he able to set up a Itunes account and use these gift cards. That would be his only method of pay

    Hi judifrom!
    I have some links for you that can help shed some light on the subject of gifting through iTunes and Apple IDs. The first can be found in this link:
    Gifting - Apple Store (U.S.)
    http://store.apple.com/us/help/gifting
    and the relevant information in that link can be found right here:
    Gift Cards and Certificates are valid for use only in the country in which they were purchased. Only residents of the U.S may redeem gift certificates purchased in the U.S.
    You can still help them set up an Apple ID without payment information so that they can download free items through the iTunes store though. The steps for performing that can be found in the following article:
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    http://support.apple.com/kb/ht2534
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • I enjoy karaoke and have numerous vcd's of karaoke songs. I wanted to make a compilation vcd of my own, containing my favourite karaoke songs but I am unable to achieve this on my macbook pro (mac os 10.6.8). Can anyone tell me how to step by step?

    i enjoy karaoke and have numerous vcd's of karaoke songs. I wanted to make a compilation vcd of my own, containing my favourite karaoke songs but I am unable to achieve this on my macbook pro (mac os 10.6.8). Can you tell me how to step by step?

    I had issues in 10.4.7 as well as 10.4.8.
    My problems occurred at the beginning of 10.4.8, then many users brought light to me using WEP, which was not working that great. I changed my connections to WPA2 and my problem has disappeared. If my problem didn't resolve the way it did, I would have mentioned it the next time I visited an apple store.
    The bottom line is that assumptions, complaining, and self diagnostics don't get many people very far and bringing the problem to apple helps them know the incidence of this problem, and helps them develop a reliable solution.
    Though some users have reported the "cold shoulder" when reporting Airport problems to apple... I hope you weren't one of them.

  • I make annotations to my photos in iphoto using preview. But once I have made the annotation I do not get the photo back in iphoto into the event from which I took the photo. What am I doing wrong?

    I make annotations to my photos in iphoto using preview. But once I have made the annotation I do not get the photo back into the event in iphoto from which I took the photo. What am I doing wrong? I am not using aperture

    For the annotations to display on the photo in iPhoto you must setup Preview as the external editor in iPhoto via iPhoto's Advanced preference pane.
    After adding the annotations just do a Save.  iPhoto will then recognize the change via a new modified version.  You can revert to the original at any time if you want to get rid of the text.
    OT

  • I have a manual that contains headings and index entries that contain less than and greater than characters, and . The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the C

    I have a manual that contains headings and index entries that contain less than and greater than characters, < and >. The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the Contents or the Index of the generated HTML. In the Contents the words are completely missing and in the index entries the '\' characters that are required in the markers remain in the entry but the leading less than symbol and the first character of the word is deleted; hence what should appear as <dataseries> appears as \ataseries\>. I believe this is a FMv12 bug. Has anyone else experienced this? Is the FM team aware and working on a fix. Any suggestions for a workaround?

    The Index issue is more complicated since in order to get the < and > into the index requires the entry itself to be escaped. So, in order to index '<x2settings>' you have to key '\<x2settings\>'. Looking at the generated index entry in the .js file we see '<key name=\"\\2settings\\&gt;\">. This is a bit of a mess and produces an index entry of '\2settings\>'. This ought to be '<key name=\"&amp;lt;x2settings&amp;gt;\" >'. I have tested this fix and it works - but the worst of it is that the first character of the index entry has been stripped out. Consequently I cannot fix this with a few global changes - and I have a lot of index entries of this type. I'm looking forward to a response to this since I cannot publish this document in its current state.  

  • IPhoto library contains lots of gb but will not open pictures after upgrade to iPhoto ´11

    Upgraded from iPhoto ´08 to iPhoto ´11 (9.5.1) and to OS Maverick (10.9.1).
    In "Finder" the library still seem to contain lots of gigabytes of data, but when iPhoto open the library it reads 0 photos. I have tried rebuilt (option+cmd key when opening iPhoto), iPhoto library manager, I have purchased aperture which acts just like iPhoto. Quite a few pictures missing, starting to become desperate - anyone with other ideas? Any help appreciated!
    Thomas

    Give this a try:
    Starting over from scratch with new library
    Start over with a new library and import the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from your original library as follows:
    1. Open the library package like this.
    2. Launch iPhoto with the Option key held down and, when asked, select the option to create a new library.
    3. Drag the subfolders of the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from the open iPhoto Library package into the open iPhoto window a few at a time.
    This will create a new library with the same Events (but not necessarily the same Event names) as the original library but will not keep the metadata, albums, books slideshows and other projects.
    Note:  your current library will be left untouched for further attempts at a fix if so desired.
    OT

  • I have a mac running iPhoto, please advise when I copy the photo to add to a document while creating a pictorial when it is pasted it turns black, I have tried many different methods to over come the issue but unsuccessful

    My 6 month old Mac is using iPhoto. Please advise when I copy the photo from iPhoto to add to a word document while creating a pictorial artical as soon as it  is pasted the picture it turns black, I have tried many different methods to over come the issue but unsuccessful. In the past the iPhoo was default for direct download from a card, This I have now changed but in the meantime there are photographs that I need to use. I understand window completly but still on the nursery steps with Mac.
    Please advise Heather

    As I said before I am reluctanct to delete and reinstall the iPhoto as I only have the one copy of the file i am using stored in iphoto file and I caint loose them.
    All storage hardware and all computers will fail.  Volumes will get corrupted.  Mistakes will happen.
    Please learn from our past mistakes and from our past data losses: please have and keep regular backups.
    Either via Time Machine (which is marvelously transparent, and very easy), or backups created via some other mechanisms and tools.  Old Toad recommends an external disk, and that's very effective.  If this is a portable Mac, then Time Capsule devices are also very handy, as you don't have to remember to connect the backup device; so long as the Mac is within wireless range of the Time Capsule, backups will happen.
    Time Machine backups can also be used to replace your files or even to upgrade to a new Mac, should your computer be lost or stolen, or should your computer or your storage fail.
    If you have not already seen these, Mac Basics and Find Out How could be interesting.
    As for your photos...   I wouldn't expect this to be iPhoto and wouldn't go for an iPhoto reinstall as the first step, I'd tend to wonder if this is a bug or feature in Microsoft Word, or possibly a format incompatibility with what Office supports.  iPhoto organizes and edits the photos that are stored in your ~/Pictures media directory.  Try using iWork (if you have that) or some other tool (Apple Mail) that accepts and processes photos, and see if you can localize the problem.  Depending on the image formats used, also see if exporting the picture from iWork into a jpeg-format picture — something other than the image format you're currently using with the Microsoft Office imports — works.  (FWIW, I use iWork for reading and writing Microsoft Office documents as well as Pages and Keynote files, and have been using iPhoto with those and other tools for many years, and haven't encountered these blacked-out images.)

  • Default method - how to pass value to method container?

    Hello,
    I am dealing with a hyperlink in 'Objects and Attachements' section of the workitem.When i click on the link, the default method of the business object gets called automatically.
    My question is: How to pass values to the default method (i.e. method container) as i don't invoke the method in my workflow explicitly?  The method gets called when we click on the hyperlink.
    Regards,
    Monica.

    Hello Monica,
    a default method doesn't require parameters (and cannot make use of them), as they are designed to be called from various situation, such as the view from a workflow container, the display button within a workitem or the attachment list. So this is part of the system design.
    To make an object dependent of workitem values I usually follow two different design patterns:
    <b>1) Using a flowitem/workitem instance with a special default method</b>
    - Create a subobject from type WORKITEM (if I'm going to use values from the current workflow instance) or subobject from type WORKINGWI (if I'm going to use values from the current dialog workitem).
    - Do not make a general substitution for this new object type
    - If using a ZWORKITEM, create an instance of this object type before the dialog step and then pass this object to the dialog workitem
    - If using ZWORKINGWI, assign the object instance during the data flow to the step.
    - In the properties of the object choose (any one) default method
    - Within the coding you have the reference to the workitem/flowitem as object-key-... and you can further use functions/methods to read the workitem/flowitem container and do whatever has to be done
    <b>2) Retrieving values from the current workitem on-the-fly</b>
    Within the coding of the default method call the function module SWO_QUERY_REQUESTER that returns the instance/id of the current workitem-in-work (with is also set when using the hyperlink from a workitem). If the list is empty, there's no active workitem, otherwise use functions/methods to read the workitem container.
    --> edit: Solution is not release safe, is it aint working with SAP R/3 Enterprise and higher
    Best regards,
       Florin
    Message was edited by:
            Florin Wach

Maybe you are looking for