Differences between Ant launched and JDev launched JUnit causing an error

I've got a JUnit test which tests a web service. The test runs fine when launched in from JDeveloper but when launched from an Ant script I get:
[junit] oracle.fabric.common.PolicyEnforcementException: Action header is required when addressing is enforced
[junit] javax.xml.ws.WebServiceException: oracle.fabric.common.PolicyEnforcementException: Action header is required when addressing is enforced
[junit]      at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:749)
[junit]      at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:226)
[junit]      at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:97)
[junit]      at oracle.j2ee.ws.client.jaxws.WsClientProxyInvocationHandler.invoke(WsClientProxyInvocationHandler.java:216)
[junit]      at $Proxy30.process(Unknown Source)
[junit]      at ca.jea.penfax.command.AddANewHireCommand.startBusinessProcess(AddANewHireCommand.java:30)
[junit]      at ca.jea.penfax.command.AddANewHireCommandTest.testStartBusinessProcess(AddANewHireCommandTest.java:27)
[junit] Caused by: oracle.fabric.common.PolicyEnforcementException: Action header is required when addressing is enforced
[junit]      at oracle.j2ee.ws.common.addressing.ClientWSAddressingInterceptor.processRequest(ClientWSAddressingInterceptor.java:166)
[junit]      at oracle.integration.platform.common.InterceptorChainImpl.processRequest(InterceptorChainImpl.java:91)
[junit]      at oracle.integration.platform.common.mgmt.InterceptorChainManager.processRequest(InterceptorChainManager.java:216)
[junit]      at oracle.j2ee.ws.client.mgmt.runtime.SuperClientInterceptorPipeline.handleRequest(SuperClientInterceptorPipeline.java:96)
[junit]      at oracle.j2ee.ws.client.jaxws.DispatchImpl.handleRequest(DispatchImpl.java:532)
[junit]      at oracle.j2ee.ws.client.jaxws.DispatchImpl.handleRequest(DispatchImpl.java:510)
[junit]      at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:701)
The error occurs on the line that invokes the webservice. What parameters is JDeveloper setting up that I need to replicate in my Ant script? Is there a way to use the JDeveloper TestRunner instead if it will cause me fewer problems?

851004 wrote:
..It has been re-written from spec="1.0" to spec="1.5" ..Who changed it, and why?
..Does anybody else have an answer, solution, or suggestion ..?I suggest:
<ul>
<li>Change the spec. number back to something that 1.4 JWS claims to understand (i.e. "1.0").
<li>Checking the launch file using JaNeLA
</ul>
Edited by: Andrew Thompson on Apr 9, 2011 7:54 AM

Similar Messages

  • Difference between petition red and no U no R in ERROR DTP

    Hi experts,
    I have created some ERROR DTP in some DTP that I execute in a process chain.
    I Have a doubt now. I don't know exactly the difference between Valid records update, no reporting (Petition RED), and No update, no recording Options for "Update".
    Wich do you reccomend to me? My goal is to save the correct ones and let the errors there to be manually revised, so I have set the DTP as Valid records update, reporting possible (Petition Green),
    Thanks!!
    Artur.

    Hi Artur,
    SAP excerpt -
    On the Update tab page, specify how you want the system to respond to data records with errors:
         a.      No update, no reporting (default)
    If errors occur, the system terminates the update of the entire data package. The request is not released for reporting. However, the system continues to check the records.
    This means the data inside this request will not be visible in reports.
         b.      Update valid records, no reporting (request red)
    This option allows you to update valid data. This data is only released for reporting after the administrator checks the incorrect records that have not been updated and manually releases the request by setting the overall status on the Status tab page in the monitor (QM action).
          c.      Update valid records, reporting possible
    Valid records can be reported immediately. Automatic follow-up actions, such as adjusting the aggregates, are also carried out.
    Wich do you reccomend to me? My goal is to save the correct ones and let the errors there to be manually revised, so I have set the DTP as Valid records update, reporting possible (Petition Green),
    Your choice is correct
    Hope it helps,
    Best regards,
    Sunmit.

  • What is the differences between Ant build jar and eclipse export jar ?

    I have tried the eclipse export method to generate a jar file, however, it doesn't work with my server. But when I write a ant build file to create jar file. It works!!
    Does any buddies know why?

    Difference betwen JAR AND WAR
    .jar files: These files are with the .jar extension. The .jar files contain the libraries, resources and accessories files like property files.
    .war files: These files are with the .war extension. The war file contains the web application that can be deployed on the any servlet/jsp container. The .war file contains jsp, html, javascript and other files for necessary for the development of web applications.
    Source:
    http://forum.java.sun.com/thread.jspa?threadID=485823&messageID=2273976
    The main difference between a JAR and a WAR is that a JAR is not really a single purpose format, while a WAR is. With a JAR file, you can package lots of different things. Usually you package up Java classes, but you could put pretty much anything into a JAR file, and you can create JARs that have whatever files and directory formats you want. For instance, Oracle (at least in 8.1.x) actually uses JAR files to distribute the Oracle software on the install CDs, and IBM uses them to distribute an installable version of the documentation for WebSphere. Technically you can put JSP pages, HTML pages, servlet classes, etc. in a JAR, but you generally don't -- you use a WAR.
    WAR files are JAR files with a specific format. This format is defined in the servlet spec (which you can look at on the java.sun.com site). Essentially, the WAR file is a standard format for web applications that has specific directories and specific files. This includes a WEB-INF directory, a WEB-INF/web.xml file used to describe the application, a WEB-INF/lib directory for JAR files used by the application, and a WEB-INF/classes directory for class files that aren't distributed in a JAR. You would put the pages (JSPs and HTML) in the WAR as well. Then, you can distribute your application as one file, instead of as a collection of images, HTML pages, and Java classes.
    Source:
    http://www.theserverside.com/discussions/thread.tss?thread_id=10905
    Message was edited by:
    lochdsmile

  • What is the difference between Category Mgmt and Spend Analysis?

    Hi Friends
    What is the difference between Category Mgmt and Spend Analysis?
    Regards
    Chinna Krishna

    Hi Chinna
    Here are my two cents on this questions
    1. Catagory Management : It pertains to all sourcing activities that a purchasing group does for a specific catagory of items ( say tyres, bearings, etc. in automobile industry scenario OR steel sheets, electric motor, etc. in consumer durables industry scenario) in order to meet companies strategic goals like cost, quality, delivery and new product introduction. It also involves the strategic sourcing piece for that category. Typically it can include following activities for a category which is being managed
    - Identifying current and future business & technical requirements
    - Constant vigilence and analysis of supply market for that category ( and also identifying new sources)
    - Lauching various projects within category focussed on cost reduction, quality improvement, delivery improvement. This may include some of activities like supplier analysis. RFx, Reverse auctions, contract negotiation, etc.
    - Monitoring the category specific supplier performance
    Category Management team typically consists of cross functional team and it is iterative process (continuous improvement).
    Category Management in covered to some extent in E-Sourcing application and its analysis is covered in Spend Analytics application. Fully blown category management is on road map of SAP but none of the current functionalities addresses it fully.
    2. Spend Analysis: This involves analysis of the spend at highest level of organization. To improve the data quality, it typically involves spend data standardization & enrichment, supplier normalization and spend categorization. Once you have clean data, one can slice and dice the data to gain insight into the spend and identify opportunities for launching the various initiatives focussed on cost, quality and delivery.
    SAP Spend Analytics application covers this spend analysis capability.
    Its a long answer and hope it helps you.
    Bhushan

  • Difference between Delta download and Initial download

    Hi friends
    what is the difference between Delta download and Initial download
    what Tcodes are used for Delta download and what tcodes used for initial download
    regards
    krishna v

    Hi,
    The CRM middleware allows the following two methods for replication.
    -Initial loads:
    Launched manually (tcode R3AS), the objects (customizing or business) are replicated between SRM and R/3, according to the filters you've put on the object (R3AC1 for Business objects like MATERIAL, R3AC3 for customizing objects like DNL_CUST_PROD0 and 1).
    -Delta loads:
    This option is only possible for Business objects, which is the case of MATERIAL.
    With this option a daemon is launched between the 2 servers. Every modification made on an object on SRM or R/3 is transfered as soon as this object is contained in the filter retrictions (creation and/or modification). this is done through transaction R3AC4.
    BR,
    Disha.
    Do  reward points for useful answers.

  • Folks would somebody be able to define difference between BI mobile and Afaria?

    I am looking for differences between BI Mobile and SAP Afaria, in a sense of Do's and Don'ts what they both can do and what they can't if compared with each other.
    If anyone has any knowledge on it and would like to share it would be great help, Thanks.

    FYI:  SAP has now realized the value of combining Mobile Analytics and Mobile Device/App Management, and has created an offering called "Mobile Secure BI Edition".
    This is a bundle of Lumira Desktop/Cloud, Afaria, and Mocana Mobile App Protection.  This will be announced at Sapphire, and launched in Q3 '14.
    -Paul Horan-

  • Difference between sy-tabix and sy-index?

    tell me about sy-tabix and sy-index?what is the difference between sy-tabix and sy-index?
    Moderator Message: Please search before posting. Read the [Forum Rules Of Engagement |https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] for further details.
    Edited by: Suhas Saha on Jun 18, 2011 5:33 PM

    HI,
        Here is a brief description of difference between SY_TABIX and SY_INDEX and using them with several conditions.
    SY-TABIX
    Current line of an internal table. SY-TABIX is set by the statements below, but only for index tables. The field is either not set or is set to 0 for hashed tables.
    APPEND sets SY-TABIX to the index of the last line of the table, that is, it contains the overall number of entries in the table.
    COLLECT sets SY-TABIX to the index of the existing or inserted line in the table. If the table has the type HASHED TABLE, SY-TABIX is set to 0.
    LOOP AT sets SY-TABIX to the index of the current line at the beginning of each loop lass. At the end of the loop, SY-TABIX is reset to the value that it had before entering the loop. It is set to 0 if the table has the type HASHED TABLE.
    READ TABLE sets SY-TABIX to the index of the table line read. If you use a binary search, and the system does not find a line, SY-TABIX contains the total number of lines, or one more than the total number of lines. SY-INDEX is undefined if a linear search fails to return an entry.
    SEARCH <itab> FOR sets SY-TABIX to the index of the table line in which the search string is found.
    SY-INDEX
    In a DO or WHILE loop, SY-INDEX contains the number of loop passes including the current pass.
    Hope this helps.
    Thank you,
    Pavan.

  • Difference between parent currency and parent in value dimension

    Hi
    Dear friends please tell me about following:
    1.Difference between <Parent Currency> and <Parent> in value dimension and its significance.
    2.Difference between <Parent Currency Adjs.> and <Parent Adjs.> in value dimension and its significance.
    Thanks
    Mayank
    Edited by: mayanka bhusan on Jun 17, 2010 10:08 PM

    When you have an entity which contributes to two or more parent entities, you can specify if an adjustment applies and contributes to all parent entities or the selected entity.
    1. Create the adjustment to <Parent Curr Adjs> and the adjustment value contributes to all parents.
    2. Create the adjustment to [Parent Adjs] and you can select which parent entity you want the adjustment value to contribute to.
    <Parent Currency> is where the translation happens.
    <Parent Curr Total> is the total of the translated value plus any adjustments applying to all parents -i.e. <Parent Curr Adjs>
    [Parent] simply carries the <Parent Curr Total> numbers to the next level of the value hierarchy
    [Parent Total] is the total of the previous level plus any adjustments applying to the specified parent -i.e. [Parent Adjs]

  • Difference between Base Hierachy and Alternate Hierachy

    Hi da,
    Can you please tell me what is the difference between base hierachy and alternate hierachy ?
    and is there some other types of hierachies ?
    Thanks and Regards,
    Sri.

    Let's say you have a Time dimension and it has a Hierarchy called "Total Year".
    It might look like the following:
    Total Year
    --Q1 +
    ----Jan +
    ----Feb +
    ----Mar +
    --Q2 +
    ----Apr +
    ----May +
    ----Jun +
    --Q3 +
    ----Jul +
    ----Aug +
    ----Sep +
    --Q4 +
    ----Oct +
    ----Nov +
    ----Dec +
    'Total Year' is your base hierarchy.
    Now suppose you work for a CFO who is very superstitious and believes all months that begin with the letter 'J' are bad luck because he had a traumatic experience when he was a kid in the month of July. Anyway, he wants to track activity for months that begin with 'J' and asks you to create an alternate hierarchy.
    It would like this
    'Bad Luck Months'
    --Jan + (Shared Member)
    --Jun + (Shared Member)
    --Jul + (Shared Member)
    So your alternate hierarchy consists of "Shared Members" from your base hierarchy. It allows you to group the members in a different ("alternate") way.
    HTH

  • (261680070) Q WWO-13 What are the difference between WLS6.1 and WLS7.0 web services?

    Q<WWO-13> What are the difference between WLS6.1 and WLS7.0 web services?
    A<WWO-13> The differences are huge, so different in fact that 6.1 web services cannot
    be deployed in 7.0. WLS7.0 and Workshop have much greater functionality than the
    limited stateless session (RPC-style) and JMS destination (MSG-style) approach of
    6.1. Workshop web services can interact with any type of EJB, any JMS destination
    as well as other web services and directly accessing databases. The framework for
    building the web service is better and more adaptable and Workshop provides a fully
    integrated develop, deploy, test and debug environment. Additionally, WLS7.0 have
    the capacity to be much better at performance since due to XML parser enhancements
    and the addition of XML maps.

    If you want to take existing WLS6.1 web services and convert them to WLS7.0 you can
    do so quite easily. The WLS7.0 Ant still supports wsgen so you do not need to even
    change your build.xml file. The generated web service however will be implemented
    is a manner compliant with the WLS7.0 environment. More details are at:
    http://e-docs.bea.com/wls/docs70/webServices/anttasks.html#1070576
    "Adam FitzGerald" <[email protected]> wrote:
    >
    Q<WWO-13> What are the difference between WLS6.1 and WLS7.0 web services?
    A<WWO-13> The differences are huge, so different in fact that 6.1 web services
    cannot
    be deployed in 7.0. WLS7.0 and Workshop have much greater functionality
    than the
    limited stateless session (RPC-style) and JMS destination (MSG-style) approach
    of
    6.1. Workshop web services can interact with any type of EJB, any JMS destination
    as well as other web services and directly accessing databases. The framework
    for
    building the web service is better and more adaptable and Workshop provides
    a fully
    integrated develop, deploy, test and debug environment. Additionally, WLS7.0
    have
    the capacity to be much better at performance since due to XML parser enhancements
    and the addition of XML maps.

  • Difference between config tool and offlinecfgeditor?

    I am having a strong confusion between these two. Please help.
    Both require the DB to be up.
    Both requires a restart after a change, that means none of them makes the change in DB directly.
    What is the difference then?
    What I think that configtool directly doesn't make a any change at DB level at all, it only changes the instance.properties file at OS level only, whereas offlinecfgeditor changes the values of the parameters at DB level.
    Please correct me if I am wrong.
    One more doubt:
    What is the difference between instance.properties and instance.properties.vmprop?
    I know second gets created every time with the restart of the DB. Does that mean it's a copy of DB stored parameters?
    Is there a way in JAVA stack by which we can bring the parameters at OS level and DB level in sync, like we do in ABAP in RZ10 by importing the profiles?
    Please reply.

    Hi,
    Basically the configtool and offlinecfgeditor are the same thing, the configtool is more user friendly, but the offlinecfgeditor can be used to access certain files and configurations that the configtool doesn't have access to.
    Any changes done in the configtool are made at a database level, the instances.properties only gets changed after the bootstrap process which involves pulling data from the DB, This is the reason the j2ee needs a restart after ant changes are done to DB by configtools as these core DB files (note just the ones that change the instance.properties) are only accessed during the bootstrap phase, (a start up phase). This is to avoid any inconsistencies.
    The  instance.properties.vmprop just contains information about the jdk in use and other simialar information (used for logs), it will only get created if it does not exist already, hence why it is recommended to delete this file after upgrading the jdk.
    The instance.properties contains important paramters used during the start up of the j2ee system.
    The java stack only syncs OS and DB parameters during start up time (bootstrap).
    Kind regards,
    Cathal

  • Difference between the archive and cache_archive in object tag

    hello,
    I am trying to find the difference between the archive and cache_archive for the object tag to use for applet.
    I was going through this link which discusses the applet caching :
    http://java.sun.com/javase/6/docs/technotes/guides/plugin/developer_guide/applet_caching.html
    Especially : A sticky applet is placed in a disk cache created and
    controlled by Java Plug-in which the browser cannot overwrite.How do i find what is the disk cache on my machine, and how different it is from the normal cache.
    Currently i am using the normal archive parameter in object tag, and when i go to the java plugin control panel, i see all the downloaded jars.
    But wanted to know how will it be different from using the cache_archive parameter.
    Please advise,
    Edited by: duskandawn on Jun 10, 2009 11:07 AM

    Hi Juraj!
    I feel the same too - Except the fact that SessionFacade is used to access EJBs while the VO are built as response objects (i.e. assembled) and unassembled by different web requests.
    rnats

  • Difference Between Data type and message type

    Hi,
        i have doubt on data type and message type.why we are mapping the message type why not data type?wht is the difference between data type and message type?

    Hi Narayanana,
    Data type defines the structure of your xml message.Message type is the wrapper of data type.You will be using your message type while mapping and not the data type.Its the abstraction concept used in oops
    kanan thiyam  
    Posts: 28
    Questions: 7
    Registered: 1/8/07
    Forum points: 24 
       Re: What is deffernce b/w Data type and message type  
    Posted: Jun 13, 2007 8:05 AM    in response to: suresh k         Reply      E-mail this post 
    Hi Suresh,
    Data Type defines the structure of the message and it will be wrapped under Message Type.
    Hope the details below will clearify your doubts.
    A data type in a programming language is a set of data with values having predefined characteristics. Examples of data types are: integer, floating point unit number, character, string, and pointer.
    The characteristic of columns and variables that defines what types of data values they can store.
    Check out the details:
    http://en.wikipedia.org/wiki/Data_type
    A message type comprises a data type that describes the structure of a message. At the following points in SAP Exchange Infrastructure you can refer to the message to be exchanged at runtime by using the message type:
    Details:
    http://help.sap.com/saphelp_nw04/helpdata/en/2d/c0633c3a892251e10000000a114084/content.htm
    kanan

  • Difference between system refresh and client refresh

    Hi all,
         I have one dout what is the difference between system refresh and client refresh,kindly tell me the answer?
    BR
    krishnamurthy.

    Hi,
    Client is part of a system.
    Client copy :Can happen within a single system(local client copy)  or to other system (i.e b/w systems) .
    Here we have some profiles to extract the data depending on the need.
    System Copy: We are copying the entire system to other system.we get the entire systems data (DB) .
    In both the cases we have to make sure that they are on same application component and are on same patch level.
    Thanks!!
    Edited by: Vani n on Jun 27, 2008 2:45 PM

  • What is difference between sy-tabix and sy-index.

    SAP Seniors,
    Can you please let me know what is difference between sy-index and sy-tabix.
    I read the SAP help, it is confusing for me. it looks like both are same from help. please help me.
    Thank you
    Anitha.

    HI,
        Here is a brief description of difference between SY_TABIX and SY_INDEX and using them with several conditions.
    SY-TABIX
    Current line of an internal table. SY-TABIX is set by the statements below, but only for index tables. The field is either not set or is set to 0 for hashed tables.
    APPEND sets SY-TABIX to the index of the last line of the table, that is, it contains the overall number of entries in the table.
    COLLECT sets SY-TABIX to the index of the existing or inserted line in the table. If the table has the type HASHED TABLE, SY-TABIX is set to 0.
    LOOP AT sets SY-TABIX to the index of the current line at the beginning of each loop lass. At the end of the loop, SY-TABIX is reset to the value that it had before entering the loop. It is set to 0 if the table has the type HASHED TABLE.
    READ TABLE sets SY-TABIX to the index of the table line read. If you use a binary search, and the system does not find a line, SY-TABIX contains the total number of lines, or one more than the total number of lines. SY-INDEX is undefined if a linear search fails to return an entry.
    SEARCH <itab> FOR sets SY-TABIX to the index of the table line in which the search string is found.
    SY-INDEX
    In a DO or WHILE loop, SY-INDEX contains the number of loop passes including the current pass.
    Hope this helps.
    Thank you,
    Pavan.

Maybe you are looking for

  • ICal "all day events" separator bar

    Is it possible to adjust the "all day events" separator bar in iCal in the Daily or Weekly view.  When you have more than 6 all day events on one day a scroll bar appears, and it's not possible to view all of the all day events at once.  I know that

  • Error in the Smartforms 'ERROR CANNOT BE CLASSIFIED'

    Hi,      While Executing the output type of ME23N (Custom Output type), I am Getting the Below Error,      From Debugging i came to know that the error is from the Smartform,      From the SFTRACE, I got the Following Log.     00trace begin level 05

  • Acrobat 9 Pro a memory Hog

    I have a 175kb 2 page PDF file that I am updating a field in. On save, memory usage soars from about 300MB to well over 2GB causing massive memory swapping on my laptop which is configured with only 1GB of memory. I have trimmed down all necessary pr

  • Linux: Can't go to google-related websites after 35 update

    Hi guys. I'm running Linux Mint, and firefox just updated to version 35. Right after restarting firefox for this update, I can't load any google-related pages. I do not get any sort of cannot connect error. When I type in the address and press enter,

  • Public Meraki Network / Airport Extreme

    I'm within range of a Meraki wireless network signal that will apparently let me access the internet. However, Apple Airport Extreme is a modem and Access Point in one and appears to be interfering with the signal. If I purchase a Meraki repeater to