How to use javac to replace deprecated wsgen or apt in JDK 7?

I am using jax-ws RI for web service and generating web service artifacts using wsgen.
When I use wsgen or apt to generate web service artifacts in JDK 7 with following command.
wsgen -s src -cp CLASS_PATH -d OUTPUT_DIRECTORY  com.sun.WebServiceSEI
displays following warning message
The apt tool and its associated API contained in the package com.sun.mirror have been deprecated since JDK 7 and are planned to be removed in the next major JDK release. Use the options available in the javac tool and the APIs contained in the packages javax.annotation.processing and javax.lang.model to process annotations.
How can I generate web service artifacts using javac instead of wsgen or apt ?
Edited by: user11128702 on Feb 6, 2012 1:54 AM
Edited by: user11128702 on Feb 6, 2012 1:57 AM

Hi Frank
>After correcting one error in the given source (could never run that way), I get the JCO marked as deprecated as well. So this source code there seems to be a left over from NW 2004?
Not exactly. The deprecation means that the JCo API version is 2.X while JCo 3.0 is already available. However, this does not mean that you cannot use the "com.sap.mw.jco.JCO". I know lots of projects running even on 7.11 and 7.20 that still use the JCo 2.X.
>Is the destination service itself also depricated?
No, no, no.
>So I found out JCO is now depricated and I should use SAP Java Resource Adapter instead. Can I combine it with destination service or is there something similar as in web dynpro? For Ehp 1 I found this adaptive RFC package, but seems not to be available in 7.10?
Java Resource Adapter is just a new JEE container for JCo API. Still it's also has some problems. So I'd not recommend you to use it.
>What I clearly want to avoid is to give any user, password or system parameters in the source code as I'm used from Web Dynpro. Can I use the web dynpro mechanism maybe somehow?
Use JCo 2.X + Destination Service. Ignore the API deprecation.
BR, Siarhei

Similar Messages

  • How to use Open/Create/Replace File.vi

    How to change Open/Create/Replace File.vi to Open File?

    Use the routine Write Characters to File.vi found under the File IO palette. It has a boolean control on the front panel. If this is set true, data is appended to the end of an existing file, or a new one is created if the file doesn't exist. If the control is set to false, the file is always created new--overwriting any existing file with the same name.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to use replaceALL to replace "/" to "\"

    i tried to use replaceAll("/","\\") to replace "/" in string "d:/test/test/ ". It doesn't work. anyone can tell me why?

    str = str.replaceAll("/", "\\\\");\ is special in String literal in Java source code, so if you have a "String literal like this one" to contain a literal \, you have to use two \\s in the String literal.
    \ is also special in regex, so if you want a literal \ in a regex you need to give that regex two of them, that is, \\.
    Combining those two yields \\\\ to get a single \ in a regex that is specified by a string literal.

  • How to use Find and Replace for CR or TAB

    How can I use PAGES 'Find and Replace' function to eliminate unwanted carriage returns or Tabs?
    I tried to copy the backwards P and paste into Pages find window, but that doesn't work.
    eMac   Mac OS X (10.4.4)   1 G RAM

    Copying & pasting should work, but it isn't necessary. In the Find & Replace fields hold down the Option key & hit the return or tab key.
    Peggy

  • How to used REGEXP_REPLACE  for replace part of string ?

    hi
    How can i replace part of string as following , i want to replace space in date by "-"
    SELECT
    REGEXP_REPLACE(upper('Daivd bought stuff by 2000 USD on 12 Sep 2012 from KL and left kl on 20 Sep 2012'),
    '[0-9]{1,2}[^0-9](JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC)[^0-9][0-9]{4}',
    ' ','-') "REGEXP_REPLACE"
    FROM DUAL;
    the output will be like this
    Daivd bought stuff by 2000 USD on 12-Sep-2012 from KL and left kl on 20-Sep-2012
    regards

    I thought the questions is answered.
    Your code will not work, because the alternate expression applies only to the four digit year and the month.
    If you want to recognize both date formats with one expressions, you have to group the complete expressions.
    The disadvantage of this would be, that the backreferences would not work in the same way because you would have more groups.
    I advice to use two separate regular expressions for this task.
    Take a look at the following example if you simply want to fill the gaps with -:
    with yourtable as
      select 'Daivd bought stuff by 2000 USD on 12 Sep 2012 from KL and left kl on 20 Sep 2012' text from dual union all
      select 'Daivd bought stuff by 2000 USD on Sep, 20 2012 from KL and left kl on Sep, 20 2012' text from dual 
    SELECT
    REGEXP_REPLACE(
    REGEXP_REPLACE(text,
    '([0-9]{1,2}) (JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC) ([0-9]{4})','\1-\2-\3',1,0,'i'),
    '(JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC), ([0-9]{1,2}) ([0-9]{4})','\1-\2-\3',1,0,'i') regexp_replace
    FROM yourtable;If you want same output-format for both date formats you could use this:
    with yourtable as
      select 'Daivd bought stuff by 2000 USD on 12 Sep 2012 from KL and left kl on 20 Sep 2012' text from dual union all
      select 'Daivd bought stuff by 2000 USD on Sep, 20 2012 from KL and left kl on Sep, 20 2012' text from dual 
    SELECT
    REGEXP_REPLACE(
    REGEXP_REPLACE(text,
    '([0-9]{1,2}) (JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC) ([0-9]{4})','\1-\2-\3',1,0,'i'),
    '(JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC), ([0-9]{1,2}) ([0-9]{4})','\2-\1-\3',1,0,'i') regexp_replace
    FROM yourtable;Edited by: hm on 25.09.2012 22:00

  • How to use case to replace the & in select statement

    Oracle version : 11.1.0.6.0
    RHEL
    Hi,
    I want to get a list of all expired and locked users but want to replace the "&" with and here is my code but it isn't working.
    Please some guidance, thanks.
    SQL> select username,
    2 case (account_status like 'EXP%' then 'EXPIRED AND LOCKED'
    3 ELS 'no locked users'
    4 end) account_status
    5 from dba_users
    6 where account_status like 'EXPI%';
    case (account_status like 'EXP%' then 'EXPIRED AND LOCKED'
    ERROR at line 2:
    ORA-00907: missing right parenthesis

    798188 wrote:
    thanks for the comments I corrected the ELSE and 'EPX%' but still same error :
    EOH> select username,
    2 case (account_status like 'EXP%' then 'EXPIRED AND LOCKED'
    3 ELSE 'no locked users'
    4 end) account_status
    5 from dba_users
    6 where account_status like 'EXP%';
    case (account_status like 'EXP%' then 'EXPIRED AND LOCKED'
    ERROR at line 2:
    ORA-00907: missing right parenthesisFirst of all, you do not need a CASE statement.
    Did you see the where clause of your query??
    6 where account_status like 'EXP%';do you realise that your query will always return those records for which value of account_status column starts with 'EXP'?
    Why use CASE when it could be simply written like this :
    SELECT username,
           'EXPIRED AND LOCKED'
    FROM   dba_users
    WHERE  account_status LIKE 'EXP%'

  • How to use regular expression replace for this special characters?

    hi,
    I need to replace the below string, but i couldnt able to do if we use the special charaters '+', '$' . can anyone suggest a way to do this?
    select REGEXP_REPLACE('jan + feb 2008','jan + feb 2008', 'feb',1,0,'i') from dual
    anwers should be :- feb

    you should use escape character \.
    the regular expression will look like as follows:
    select REGEXP_REPLACE('jan + feb 2008','jan \+ feb 2008', 'feb',1,0,'i') from dual
    hope this is what you needed.
    cheers,
    Davide

  • How to use blank space replace NULL on discoverer viewer

    Hi,
    There is a report that has a varchar field should show text values, and if NULL, I need it show blank space, and does in disco desktop, but on viewer, the same worksheet shows NULL.
    Even I changed in the Tools - Options - Format menu(desktop), it still show NULL on viewer.
    why?
    please help! thanks!
    sammy

    Hi Sammy,
    Unfortunately ‘some’ of the settings set in Desktop do not carry over to Viewer. These options need to be defined for Viewer itself.
    A temporary way to set the Viewer settings is to click on ‘Options’ when logged in Viewer itself. You’ll have to open a responsibility or report before this option becomes available to select. Within here you’ll be able to change the way NULL values are seen. However this method only makes the change for the User you logged in with.
    To make the change for all users, it’s best to edit the PREF.TXT file on the Discoverer Server. Please view the documentation below for more information on how to configure Viewer. For windows platform click here : http://download-uk.oracle.com/docs/html/A90287_01/toc.htm,
    For Unix platform click here : http://download-uk.oracle.com/docs/html/A90288_01/toc.htm. Once you’ve run the applypreference script, these settings will be forced down to all users of Discoverer.
    Hopefully this will help ;-)
    Lance

  • How to use file system replacing optical archive?

    We do not have IXOS (OT) yet.
    However I have configured everything for printlist archiving and early archiving for IXOS (on the R3 side ONLY!)
    May I modify the procedure a bit so that the archive will be stored in the file system instead of the
    optical device since we do not have IXOS yet.
    Please help. Thanks!

    hi,
    Create Queues
    In this customizing activity you create queues and specify the queue administrator. This process should become part of the installation routine of the storage system, because not activating a queue can lead to irreparable errors (and may mean having to repeat print list creation and storage).
    Example
    CARA Queue: Queue in which the spool writes the storage requests.
    Activities
    You can create queues for the following functions:
    Asynchronous storage (CARA-Queue)
    Error in asynchronous storage (CARA_E-Queue)
    Storage confirmation (CFBC-Queue)
    Error in storage confirmation (CFBC_E-Queue)
    Asynchronous retrieval (CFBA-Queue)
    Error in asynchronous retrieval (CFBA_E-Queue)
    You can also define a queue administrator.
    Also u can check in archivelinking.
    Edit Links
    In this customizing activity, you link a document type to an object type, a content repository, and a link table. This has the following effect on documents of this document type:
    The documents can only be linked to instances of the specified business object type.
    The link entry is entered in the specified link table.
    The documents are always stored in the specified content repository.
    Activities
    Enter the following data:
    Object type:
    Business object type that exists in the business object repository (transaction SWO3).
    One object type can be used with more than one document type.
    Document type
    Name of a document type specified in the customizing activity Document types .
    Status
    X: The storage system is active.
    Empty: The storage system is not active.
    Content repository ID
    Two-digit identification number that you have entered in the customizing activity Maintain Content Repositories .
    Link table
    Name of the table, in which ArchiveLink enters the link entries between stored documents and the corresponding application documents.
    SAP supplies the following link tables:
    TOA01, TOA02, TOA03 (general link tables),
    TOAHR (only for documents from the SAP HR application component),
    and
    TOADL (only for print lists).
    Alternatively, you can define your own link tables. To do this, enter the customizing activity Maintain available link tables. Here you can also find a description of the link tables supplied by SAP.
    Retention period
    Number of months the entry for the stored document remains in the link table before it is deleted.
    Benakaraja

  • How to use ssis to replace cursor

    Hi,
    We have a requirement where I need to take each record in a table and compare with other records  based on a transaction id, set few variables and insert these values in to another table. For performance improvement, we need to do the same in SSIS.
    Can any one tel me how this can be done in SSIS as I am new to it?
    Thanks,
    Preetha

    SAMPLE DATA:
    Source table A
    TranId
    FlightNumber
    DepartureDate
    DepartureTime
    DeparturePort
    ArrivalPort
    Rego
    Config
    AircraftType
    Processed
    2
    xxxx
    6/08/2014
    11:25
    SYD       
    CBR       
    XXXOJ
    tt
    XT1
    0
    3
    yyyy
    6/08/2014
    6:06
    CBR       
    SYD       
    YYYOE
    tt
    XT1
    0
    4
    zzzzz
    6/08/2014
    7:40
    SYD       
    CBR       
    YYYOE
    tt
    XT1
    0
    5
    ttttt
    6/08/2014
    7:54
    CBR       
    SYD       
    ZZZOC
    tt
    XT1
    0
    6
    sssss
    6/08/2014
    7:13
    CBR       
    SYD       
    TTTOH
    tt
    XT1
    0
    This is the destination table created :
    CREATE TABLE [dbo].[OGS_Cat](
        [TranId] [int] IDENTITY(1,1) NOT NULL,
        [FlightNumber] [varchar](20) NULL,
        [DepartureDate] [date] NULL,
        [DepartureTime] [varchar](20) NULL,
        [DeparturePort] [char](10) NULL,
        [ArrivalPort] [char](10) NULL,
        [Rego] [varchar](20) NULL,
        [Config] [varchar](20) NULL,
        [AircraftType] [varchar](20) NULL,
        [CanxStatus] [varchar](10) NULL,
        [FlightType] [varchar](3) NULL,
        [RecordCreationTimestamp] [datetime] NULL,
        [RecordUpdatedTimestamp] [datetime] NULL,
        [CatDepatureDate] [date] NULL,
        [CatDepartureTime] [varchar](20) NULL,
        [LinkFlight] [int] NULL,
        [TurnAround] [bit] NULL,
        [Originator] [bit] NULL,
        [Overnighter] [bit] NULL,
        [Processed] [bit] NULL,
        [Comments] [nvarchar](100) NULL
    ) ON [PRIMARY]
    I need to compare each flight based on rego in the source table and update it has originator/overnighter based on the port and rego condition, then finally insert them in the destination table.
    Output required: Is insert the data from soure to destination with their originator/overnighter status.
    Hope this clarifies your query.

  • Tools.jar: how to use it?

    in my app, I use some classes of tools.jar
    but I can not find the jar file in JRE directory, which is only in JDK directory.
    if I distribute my app to customers, they can not use it, because they possiblly only installed JRE rather than JDK.
    so how to use tools.jar?

    Isn't tools.jar the JDK tools, e.g., javac, javap, etc.?
    What are you doing that requires those tools, such that your customer needs it?
    Secondly are you sure that Sun's license allows you to distribute the stuff in tools.jar?
    It seems like the only solutions would be to refactor your code to no longer use tools.jar, or tell your customers that they have to install the JDK themselves (I've seen other products do that), or to possibly get a special license from Sun.

  • How to use Microsoft Word's Find and Replace with HTML tags?

    Hello to all!
    I'm trying to figure out how to use the find and replace function in Word to replace html tags. I'd like to be able to change something like this:
    <span class="B01-K-ITAL">random text</span>
    To something like this:
    <em>random text</em>
    I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly.
    Anyone able to lend a hand?

    Here is my latest regular expression with Perl.   I think it matches the spirit of the request in the original post.
    Note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.
    perl -0660pe 's^<[sS][pP][aA][nN]\s+class="B01-K-ITAL"\s*>(.*?)</[sS][pP][aA][nN]>^<em>$1</em>^gs' i.html >|o.html
    input text
     <html> <head>...</head> <body>I'd like to be able to change something like this: <span class="B01-K-ITAL">#1 one line</span> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <span class="B01-K-ITAL">#2 don't be greedy</span> <span class="B01-K-ITAL">$3 multiline text</span> <span class="B01-K-ITAL">#4 multiline tag. I believe html allow a carriage return in white space of tags</span> <span class="B01-K-ITAL">#5 split after the class tag. optional white space</span> <sPan class="B01-K-ITAL">#6 mixed case tag</Span> <p>no text #7</p><span class="B01-K-ITAL"></span> <!-- Apparently, this is valid     http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html>
    output text
     <html> <head>...</head> <body>I'd like to be able to change something like this: <em>#1 one line</em> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <em>#2 don't be greedy</em> <em>$3 multiline text</em> <em>#4 multiline tag. I believe html allow a carriage return in white space of tags</em> <em>#5 split after the class tag. optional white space</em> <em>#6 mixed case tag</em> <p>no text #7</p><em></em> <!-- Apparently, this is valid     http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html>

  • I lost my ipod. Bought a used one to replace it. When I plug it into the computer, the computer doesn't even seem to realize it's plugged in. How do I put my existing itunes library onto the new (used) ipod?

    How do I clear out a used ipod classic and put my existing itunes library on it? I lost my previous ipod and bought a used one to replace it.

    Do one or more of the following
    > Restart your computer
    > Uninstall & Reinstall iTunes
    > Reset iDevice (won't erase everything)
    > Go to My Computer (windows xp) or Computer (windows vista & 7) and see if iDevice shows
    > Restore the iDevice completely (will erase everything)
    > Make sure the iTunes and/or iOS firmware is up-to-date.
    The ones I cross over is the ones you don't have to do. This should help

  • Hey, How do I populate my replace colors color library in illustrator? I tried to replace color on a traced/ vectorized image and when I selected and went to the color library CC said I need to use a valid username. I was already logged into my adobe acco

    Hey, How do I populate my replace colors color library in illustrator? I tried to replace color on a traced/ vectorized image and when I selected and went to the color library CC said I need to use a valid username. I was already logged into my adobe account.

    Can you please show a screenshot of what exactly you want to replace where?

  • How do I...Mimic Replacement Path with Query using Customer Variable Exits?

    Hello SDN:
    We are on BW 3.5 SP16.
    We are currently using a replacement path Query(RP) with variables
    to populate a variable in another Query(T).
    The problem we are having is with performance.
    The entry of variables in replacement path Query(RP) is optional (This is necessary there cannot be required values)
    When results from Replacement Path Query are small performance is fine. (e.g. 10 seconds)
    When results from Replacement path query are large performance suffers. (e.g. 1+ minutes)
    Users are free to leave the replacement path variables empty resulting in a large set of data to be replaced. This is the worst performance case.
    We would like to discover a way to conditionally execute the replacement path query. That is if users do not enter values for the replacement Query(RP) variables do not execute the replacement path query(RP).
    Does anyone know if this is possible within reason and in customer exit space?
    We have reviewed the situation from all angles and the requirement for the replacement path FUNCTIONALITY and the freedom for the user to leave variable values blank remains.
    I've been searching and reading SDN and SAP notes for about a week and do not find threads which address this situation.
    We are also exploring Customer variable exits to mimic replacement path functionality
    (different topic subject="How do I...Mimic Replacement Path with Query using Customer Variable Exits?")
    Any help will be appreciated
    Many thanks
    David Schuh

    My appologies-I posted this message with the wrong subject. I will repost it with appropriate subject.
    dave schuh

Maybe you are looking for

  • Splitting up iTunes library

    OK, here's the situation. My daughter and I have been keeping separate iTunes libraries on the same computer for several years. Although we have several songs in common, most are either hers or mine. All of the songs live on an external HD. Now she h

  • My commit rollback is not working, can anyone tell me why please?

    Can anyone please help me figure out what is the problem with this code? it suppose to be correct but not for some unknown reason it didnt. Here are the code -- * comiiit.java * Created on March 23, 2006, 8:38 AM package rib; import java.io.*; import

  • Playing with OVD and db adapter for oracle

    I am playing a little with the product and i don't get run fine oracle db adapter. Following the metalink note 387529.1 to do it all is fine however when i try to do this part: "Open the server in the Browser > open Adapter Source Data > the new db a

  • Problem with Legal Consolidation for Journal

    Hi BPC Friends I have the application icmatching with data and I have written other values with Journal. I have run the package legal consolidation. I have this problem: for the value that I have loaded into the application, the logic consolidation w

  • How to start study to become Oracle DBA

    Hi all, I am new to this group ..i am working with SAP.i hav a little dought that how can i start to become a DBA on oracle..what r the major responsibilits that i need to perform being a DBA..pls provide some narration and tips/documents search or l