Servicegen fails on multiple service entries

I'm using servicegen to generate a large number of separate services in the
same bean (so one service for each session bean, all in the same jar). Like
so:
<service ejbJar="${ejbc.jar.file}"
targetNamespace="http://www.acme.com/auto" serviceName="AService"
serviceURI="/AService" includeEJBs="AService" generateTypes="True"
expandMethods="True"/>
<service ejbJar="${ejbc.jar.file}"
targetNamespace="http://www.acme.com/auto" serviceName="BService"
serviceURI="/BService" includeEJBs="BService" generateTypes="True"
expandMethods="True"/>
<service ejbJar="${ejbc.jar.file}"
targetNamespace="http://www.acme.com/auto" serviceName="CService"
serviceURI="/CService" includeEJBs="CService" generateTypes="True"
expandMethods="True"/>
This works if the number of services is 14 or less. However, if it is
greater than that I get the following exception (on the 15th):
[servicegen] weblogic.webservice.util.WebServiceJarException: Could not load
dep
loyment descriptor - with nested exception:
[servicegen] [weblogic.webservice.dd.DDProcessingException: There must be at
lea
st one <operation> element in <operations> (Line 1144, Column 8)]
[servicegen] at
weblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execu
te(AutoTypeTask.java:376)
[servicegen] at
weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.g
enerateService(ServiceGenTask.java:248)
[servicegen] at
weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.e
xecute(ServiceGenTask.java:141)
Anybody have a solution to get around this?
Thanks,
Rob

Good call! You are correct. I just figured this out independently minutes
before I read this...arg!
I've broken out the call, as you suggested, in my ant file. So now I have:
<target name="run-servicegen">
<servicegen destEar="${ear.file}" warName="${war.file.name}"
contextURI="web_services" overwrite="false">
<service ejbJar="${ejbc.jar.file}"
targetNamespace="http://www.acme.com/auto" serviceName="${service.name}"
serviceURI="${service.name}" includeEJBs="${service.name}"
generateTypes="True" expandMethods="True"/>
</servicegen>
</target>
which I call using:
<antcall target="run-servicegen">
<param name="service.name" value="AService"/>
</antcall>
It takes longer to run, but it's cleaner than what I had before.
Thanks again, Neal.
Rob
"Neal Yin" <[email protected]> wrote in message
news:[email protected]...
I suspect that your 15th EJB bean doesn't have any public methods.
In any case, you can try this :
<servicegen ear="foo.ear".....>
<service ejbJar="${ejbc.jar.file}"
targetNamespace="http://www.acme.com/auto" serviceName="AService"
serviceURI="/AService" includeEJBs="AService" generateTypes="True"
expandMethods="True"/>
</servicegen>
<servicegen ear="foo.ear" overwrite="false" .....>
<service ejbJar="${ejbc.jar.file}"
targetNamespace="http://www.acme.com/auto" serviceName="BService"
serviceURI="/BService" includeEJBs="BService" generateTypes="True"
expandMethods="True"/>
</servicegen>
<servicegen ear="foo.ear" overwrite="false" .....>
<service ejbJar="${ejbc.jar.file}"
targetNamespace="http://www.acme.com/auto" serviceName="CService"
serviceURI="/CService" includeEJBs="CService" generateTypes="True"
expandMethods="True"/>
</servicegen>
If this still fails with the same message, please send me your EJB, I will
give it try.
-Neal
"Rob Moore" <[email protected]> wrote in message
news:[email protected]...
I'm using servicegen to generate a large number of separate services inthe
same bean (so one service for each session bean, all in the same jar).Like
so:
<service ejbJar="${ejbc.jar.file}"
targetNamespace="http://www.acme.com/auto" serviceName="AService"
serviceURI="/AService" includeEJBs="AService" generateTypes="True"
expandMethods="True"/>
<service ejbJar="${ejbc.jar.file}"
targetNamespace="http://www.acme.com/auto" serviceName="BService"
serviceURI="/BService" includeEJBs="BService" generateTypes="True"
expandMethods="True"/>
<service ejbJar="${ejbc.jar.file}"
targetNamespace="http://www.acme.com/auto" serviceName="CService"
serviceURI="/CService" includeEJBs="CService" generateTypes="True"
expandMethods="True"/>
This works if the number of services is 14 or less. However, if it is
greater than that I get the following exception (on the 15th):
[servicegen] weblogic.webservice.util.WebServiceJarException: Could notload
dep
loyment descriptor - with nested exception:
[servicegen] [weblogic.webservice.dd.DDProcessingException: There mustbe> at> > lea> > st one <operation> element in <operations> (Line 1144, Column 8)
[servicegen] at
weblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execu
te(AutoTypeTask.java:376)
[servicegen] at
weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.g
enerateService(ServiceGenTask.java:248)
[servicegen] at
weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.e
xecute(ServiceGenTask.java:141)
Anybody have a solution to get around this?
Thanks,
Rob

Similar Messages

  • Multiple Service Entry Sheet For PO Line Items and One GR Document

    Dear All,
    We have just migrated from ECC 5.0 System to ECC 6.0 System. We are facing a problem while processing service entry sheets and the GR against them. The scenario is:
    1. We create a maintenance plan
    2. Upon saving the Maintenance Plan, a Purchase Requisition (PR) is generated
    3. The PR's are combined into one Purchase Order
    4. Against the Purchase Orders, multiple service entry sheets are created
    In ECC 5.0 System, we used to accept the service entry sheets and only one material document used to get generated as GR document. But now in ECC 6.0, we observe that with the same configuration, individual material documents are getting generated for individual service entry sheets. Is there a configuration in ECC 5.0, that enables clubbing of service entry sheet items in one GR document?
    Your help will be sincerely appreciated.
    Thanks and Sincere Regards,
    Amitabha

    Hi,
    If this can be of help I can report the list of the programs that                    
    are executed:                                                                               
    Before the popup "FUNCTION POPUP_TO_CONFIRM_STEP" appeares in ML81N,                          
    following programs are executed:                                                                               
    5  FUNCTION POPUP_TO_CONFIRM_STEP SAPLSPO1                                           
    4  FORM SELECTION_CHANGED_PO SAPLMLSR                                                
    3  FORM FCODE_SEL_PO SAPLMLSR                                                        
    2  FORM FCODE SAPLMLSR                                                               
    1  MODULE (PAI) FCODE SAPLMLSR                                                                               
    Unfortunately at this time it is not planned to change the current                   
    functionality.
    Regards,
    Edit

  • Service entry problem when not accepted

    We have a problem when there are multiple service entries agains a PO. There are no problems when we do the first entry and accept. The problem happens when we do a second entry and the end user only saves and forgets to accept the SES. When they do an invoice against this unaccepted SES the system brings in the previous SES number, when this goes unnoticed the vendor gets paid twice for the same thing. Is there a way for SAP to look at the SES field in the invoice and determine that this SES number has already been paid? Thanks in advance.

    Hi Eric,
    please try the following: check in transaction XK02 the field "Check Flag for Double Invoices or Credit Memos" (LFB1-REPRF).
    Indicator which means that incoming invoices and credit memos are checked for double entries at the time of entry.
    In checking for duplicate invoices, the system compares the following characteristics by default:
    Vendor
    Currency
    Company code
    Gross amount of the invoice
    Reference document number
    Invoice document date
    If all of these characteristics are the same, the system issues a message that you can customize.
    The system only checks for duplicate invoices in Materials Management if you enter the reference document number upon entering the invoice.
    Of course if the invoice document date is different, there is no message M8108 issued. Please read also the notes 305201 and 308008.
    I would recommend you to use the service based invoice verification function (set the field EKPO-LEBRE to X) in the PO item.
    Regards,
    Edit

  • Service entry sheet (urgent)

    dear all,
    i made an PO for service PO with unit of measure AU qty. 1 but in the service tab i added one service with quantity of 1000 with price 1 usd and unit of measure is TO.
    10 K D     HANDLING & TRANSPORT OF IRON ORE FINES 1 AU D 02.12.2008 1000 USD 1 AU TR04 2100
    then while doing the service entry sheet system throwing me the following error.
    PU Ordered quantity exceeded by 1 AU : 2100
    Message no. M7022
    Diagnosis
    The specified stock level or quantity is exceeded by 1 AU.
    System Response
    If the message is an error message (E), the above is not allowed.
    If the message is a warning message (W), the system will allow your input, but the warning is intended to prevent you entering a wrong quantity.
    Procedure
    In the case of a warning message, check the quantity entered.
    In the case of an error message, change the quantity or terminate processing.
    Note:
    The abbreviations in the short text of this message can have the following values:
    BA = batch
    OR = order
    PL = plant
    PR = previous period
    PU = purchasing document
    RE = reservation
    SL = storage location
    VC = consignment stock from vendor in storage location
    but when i check unlimited in over delivery tolerance then system is allowing me to do SES. and completing the process fully but i dont want to give check of unlimited tolerance.
    can any body help me for this issue.
    regards,
    qsm sap
    Edited by: qsm sap on Dec 3, 2008 6:04 AM
    Edited by: qsm sap on Dec 3, 2008 7:59 AM
    Edited by: qsm sap on Dec 3, 2008 8:23 AM
    Edited by: qsm sap on Dec 3, 2008 11:58 AM

    i think You would get this error when there are multiple Service entries, but you have not flagged the Unlimited Flag under the Limits Tab in ITem Details.
    plz check the delivery tolerance
    http://www.helpinfo.com/index.jsp?k2dockey=1021028680438086807&formwassubmitted=true
    plz dont use words like U rgent as it block us to post
    regards
    kunal

  • Service Entries grouped by GL Account in FI

    Dear Gurus
    When we enter multiple service entries at one time, they get grouped into one GR posting per GL account / Cost Centre in FI. Is there anyway we can get SAP to post a seperate line for each service.
    Many thanks

    Hi,
    Do you mean different GRs for different sub-line items existing in the same service entry sheet.  If that is the case, then it is not possible.  Why because already in the GR document each and every service sub-line item will be shown as a seperate line item and also the accounting entries will also have seperate entries.  Hence logically it is not required.
    Regards,

  • Mass deletion of Service Entry Sheets

    Dear all,
    Is there any option to revoke the acceptance of multiple service entry sheets and mass deletion.
    thanks in advance
    urendra

    Dear Mohamed,
    I want an option for revoking acceptance and deletion for multiple service entry sheets at a time,
    regards,
    urendra

  • Service Entry Sheets

    Hi All
    I have the following scenario. 
    We are using BAPI_ENTRYSHEET_CREATE to create service entry sheets.
    Using the bapi, the system allows me to create multiple service entry sheets without validaing the open quantity available on the service line.
    Eg.  PO Line 1 Services
    Service 1 - 100 HRS @ ZAR500
    If I use the bapi to create the service entry sheet using Service 1 - 100 HRS @ZAR500, it will post the service entry sheet successfully
    I can then run the bapi again wit

    Hi,
    Has the service entry sheet been approved? If so you would have to revese the approval (there is an icon for this (an bent arrow when the approve icon was).
    If it has not been approved yet the delete should work fine.
    Steve B

  • Problems generating multiple services from the same EAR using servicegen

    I have a single EJB JAR that contains multiple stateless session beans. I
    want to expose each of these individually as a service. So I have defined
    the following in my build file:
    <servicegen destEar="${ear.file}" warName="${war.file.name}"
    contextURI="web_services">
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="AService"
    serviceURI="/AService" includeEJBs="AService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="BService"
    serviceURI="/BService" includeEJBs="BService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="CService"
    serviceURI="/CService" includeEJBs="CService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="DService"
    serviceURI="/DService" includeEJBs="DService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="EService"
    serviceURI="/EService" includeEJBs="EService" generateTypes="True"
    expandMethods="True"/>
    </servicegen>
    I execute the task and it runs without issue. However, when I attempt to
    deploy the EAR I get some odd results (there are multiple jars listed all
    with my original name and then a number appended, for example MyApp.ear2).
    The deployment fails because each of these JARs contains the same session
    beans.
    So, I'm wondering if my only option is to package each session bean in a
    separate EJB JAR or if there is another way I could get this to work.
    Thanks,
    Rob

    Thanks, Neal. I'll do as you suggest.
    Just a little feature enhancement request, as well. It would be nice if the
    option existed to break out the webservices for all the session beans in a
    ejb rather than creating one all-encompassing interface of all the methods.
    I think this would be a useful feature.
    Thanks, again,
    Rob
    "Neal Yin" <[email protected]> wrote in message
    news:[email protected]...
    I am not sure what can cause this. But I will make servicegen check for
    duplicate.
    For now, in order to make sure your automatic build process, you can use
    ant's build in task "jar" to update your application.xml with a correctone
    after servicegen.
    -Neal
    "Rob Moore" <[email protected]> wrote in message
    news:[email protected]...
    Neal,
    After discussing this issue with a coworker, I found that when he buildsthe
    ear on his machine using the servicegen entries I specified previously,the
    application.xml is generated correctly. Mine, as you guessed, puts in
    multiple module entries all containing references to the same jar. I'm
    puzzled because we are apparently running in the same environment. Anyidea
    what might be causing it?
    Thanks,
    Rob
    "Neal Yin" <[email protected]> wrote in message
    news:[email protected]...
    Hi Rob,
    There is something wrong during generating application.xml for the
    ear.
    After servicegen, if you open generated application.xml, you probablycan
    see duplicate entries for one module. Please go ahead delete thoseredundant
    entries. Let me know if this works.
    -Neal
    "Rob Moore" <[email protected]> wrote in message
    news:[email protected]...
    I have a single EJB JAR that contains multiple stateless session
    beans.
    I
    want to expose each of these individually as a service. So I havedefined
    the following in my build file:
    <servicegen destEar="${ear.file}" warName="${war.file.name}"
    contextURI="web_services">
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="AService"
    serviceURI="/AService" includeEJBs="AService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="BService"
    serviceURI="/BService" includeEJBs="BService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="CService"
    serviceURI="/CService" includeEJBs="CService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="DService"
    serviceURI="/DService" includeEJBs="DService" generateTypes="True"
    expandMethods="True"/>
    <service ejbJar="${ejbc.jar.file}"
    targetNamespace="http://www.acme.com/xauto" serviceName="EService"
    serviceURI="/EService" includeEJBs="EService" generateTypes="True"
    expandMethods="True"/>
    </servicegen>
    I execute the task and it runs without issue. However, when I
    attempt
    to
    deploy the EAR I get some odd results (there are multiple jars
    listed
    all
    with my original name and then a number appended, for exampleMyApp.ear2).
    The deployment fails because each of these JARs contains the samesession
    beans.
    So, I'm wondering if my only option is to package each session bean
    in
    a
    separate EJB JAR or if there is another way I could get this to
    work.
    >>>>
    Thanks,
    Rob

  • Service entry sheet creation thru bapi for multiple line items

    HI All,
    WE are using BAPI_ENTRYSHEET_CREATE bapi for the creation of service entry sheet against service PO.
    We are able to create the service entry sheet successfully with single sevice line item using this bapi,but when we are going for multiple service line items in item services tab in aPO, we are able to create the service entry sheet with only one service line item although there are 4 service line items in the item service tab in the po.
    We know that this bapi cannot support more than one po line item as it has provision for only one line item at the header leavel in the bapi
    will be rewarded for the best solution.
    Regards,
    velu

    Hi,
    Do you know the note 420334?. There you have very useful information.
    Best Regards,
    Arminda Jack

  • Multiple release of Service Entry sheet in ML85 with a release Strategy

    Hello Techies,
    We have requirement where in we need to each release service entry sheet created in each month.
    We have created a release strategy and now using ML85 for releasing SES instead of ML81N.
    Is there any process so that all the SES are released at once(Mass release) .
    Thanks
    Jayashree

    Hi Dear,
    you select the SES as per your Release code and Code Grp, henceofrth the no of service entry sheets will be  display you can choose the multiple Entry sheets and select the green flag w/o coming to the same T-Code again and again.
    Hope it will help you.
    Regards,
    Yawar Khan

  • Multiple Line Items in One Service Entry Sheet

    Dear All,
    Can we capture multiple line Items of same PO in one Service Entry Sheet
    If yes,Please can you give some steps to do the same.
    Regards
    Murali raju

    Hello,
    We need to create a service entry sheet seperately for every line items of the PO.But you can create Service entry sheets for multiple lines with in that Line item.
    Ex. if u have 2 line item in the PO,
    Every line item of the PO will have Multiple services in the Item details..So these Multiple service number Entries shall be treated in the same Service Entry sheet. But not the 2 nd Line itme ot the Purchase order as it will have another set of Service entries.
    Please cme back if u hv queries..
    Mug

  • Multiple account assignment in automatic Service entry sheet

    In TRX VI01 I created a Shipping Cost document (SCD); this document automatically created a Service PO with account assignment category (AAC) "U" and also created a service entry sheet (SES) for this PO. The AAC in the SES is K.
    Since the PO and the SES are created automatically, I want to use a user exit, Bapi or similar to change the AAC to X and to enter multiple account assignment in the SES.
    Any user exit o Bapi that I can use to do this?
    Regards,
    CD

    B.K.
    I need the user exit in the SES no in the PO.
    Thanks,
    CD

  • Multiple Service Items in One Service entry sheet

    Hi All
    I have  created one PO with 4 line items for multiple PR's and is contain multiple service items.
    Is it possible to create only one service entry sheet for all the PO Line items?
    at the moment, system allowing me to create one entry sheet for one PO line items.
    PO line item number 1, is appearing by default in the top of the service entry sheet.
    My user wants to create one entry sheet for all PO line items
    Thanks & Regards
    PKS

    hi..
    SAP treats every line item of PO as separate Entry Sheet...
    kindly refer to the link..
    Service Entry Sheet-Multiple Line Items
    If you want to have create single SES for all services, means while creating PO don't create separate line item for each service.
    Instead put all services under one line item in PO.
    hope it works...
    thnkas..
    Edited by: ashish2210 on Jul 19, 2011 4:18 PM

  • Multiple account assignment in service entry sheet (ML81N)

    Hi all,
    Is there any difference (other than the number of service entry sheet lines) if I create one service line in ML81N using the multiple account assignment screen with 2 different order numbers or 2 SES lines with single account assignment? There is a difference when purchasing materials but I am not sure about services since you accept (post) the entire service entry sheet and not a line item.
    Thanks!

    Hello Adriana,
    If you created an unplanned service PO, did you designate an account assignment on the PO or did you mark with an unknown account assignment?  The other question I would have is whether you marked your PO as service based invoice verification?  The answer to these questions may help me provide a more accurate response.
    From my perspective, the process within the service entry sheet would not matter if you do the one line item versus the two line items.  Ultimately the question would be how the AP processor would see the information when they process the invoice through MIRO (e.g. will they see one line or two).  If you are not using service based invoice verification, then the two options you should provide the same result (e.g. one line item on the MIRO screen).
    Hope this helps.

  • To make service entry sheet for multiple line items of the service PO.

    Hello MM Gurus,
    Please help me for the following
    I create a service PO with say 10 line items. Then while doing the service entry sheet the system automatically picks the line item 10 by default. When I try to enter the other items it throws an error" unplanned services cannot be entered"
    So how to make a service entry sheet which shall include all the line items of the service PO at the same time.
    So if I have 100 items in the PO do we make the service entry sheet 100 times against each item? Is there any seeting/solution on this?
    Please help.
    Regards,
    Prasanna.

    Dear,
    I have two solution for u.
    1) Create different service entry sheet -ML81N for each line item and create single invoice verification for all service entry sheet - MIRO
    2) Create service purchase order - ME21N for only one line item.
    And include all services in service tab available at item detail level of service purchase order. Enter it's quantity and rate.
    Than create one service entry sheet for purchase order.
    So you can create one service entry sheet for all line item of services.
    Note: - Use option 2 for easy process.
    Regards,
    Mahesh Wagh.

Maybe you are looking for

  • How to change Virtual Memory in Windows 7 with SSD and 16GB RAM

    I have SSD Samsung 850Pro with OS Windows 7 and have installed physical RAM 16GB. In Adobe Help/Optimize performance/Photoshop written : " To change Virtual Memory in Windows 7 and Vista, quit all applications and then do the following: Choose Start

  • How can I rescue Iphoto and Ivideo files from my dead imac 21" hdd?

    Hello, a month ago (after not using my imac 21" for 3 months) I plugged it in switched it on and as it was booting the fuses of my flat went off and there was a burn smell from my imac. It is out of warranty so I took it to an apple repairshop. Unfor

  • Problem with OHD Inserted Records

    Hi All, I have one OHD which is fetching the data from Master Data (Text) Info Object by using DTP. If I run the full DTP, 1,20000 records have been inserted into OHD table. But If I go to monitor section of that DTP and If I go to Header, there I am

  • Get iview details from EP

    hi, I need to get the iview details from the EP. To be more clear, we have folder name "Sample" inside this folder sample i create iviews ( namely iview1, ive2,etc) my problem is i need to get the details of the ivews which is present in this folder

  • Help with video FX

    I am looking tutorial on how to do the "vibrating"or "scattering" video FX in final cut pro. Is there a plug-in for this? here's an exemple http://www.youtube.com/watch?v=D23ng_Clky8 Thank you