Help me with JWSDP simple sample

I've tried the "simple" sample in JWSDP, and I'm sure I have finished
the needed setup like what was expressed in JavaWSTutorial.pdf.
But I meet this error message:
after input "asant run-sample" , it finally displayed:
deploy-sjsas:
[echo] Deploying war for simple to sjsas
[appserv-deploy] Attribute password is deprecated. Please use passwordfile inst
ead.
[appserv-deploy] Attribute sunonehome is deprecated. Please use asinstalldir in
stead.
[appserv-deploy] Executing: deploy user admin password 62285432 --force=tru
e enabled=true name securesimple verify=false precompilejsp=false --uplo
ad=true "C:\tool\jwsdp-1.6\xws-security\samples\simple\dist\securesimple.war"
[appserv-deploy] WARNING: The --password option is insecure and should not be us
ed since it can compromise your password. Please use either the command prompt
or the --passwordfile option.
[appserv-deploy] 2005-7-30 0:09:20 com.sun.appserv.management.client.ProxyFactor
y getInstance
[appserv-deploy] ����: ProxyFactory.getInstance: Failure trying to create a new
ProxyFactory: java.io.IOException: Invalid user or password
BUILD FAILED
C:\tool\jwsdp-1.6\xws-security\samples\simple\build.xml:179: An exception occurr
ed while running the command. The exception message is: CLI171 Command deploy f
ailed : Deployment of application failed - java.io.IOException: Invalid user or
password; requested operation cannot be completed.
What should I do on earth ???? Help me please
(sorry for my bad English)

Hi!
Please Im pretty new to CMR and appreciate if you
could help me answer a simple question.
Database model:
WriterTbl
ID___ Name
1____RodJohnson
2____PankajKumar
BookTbl
FK___Name
1____J2EE-DesignAndDevelopment
1____ProfessionalJSP
2____J2EESecurity
Question:
I ve two CMP entities: WriterBean and BookBean
I ve set the relations between Writer and Books, and
it works as far as a writer only has one book.
That because I set the FK also as a PK to the
BookBean. And when I try to create next book for a
writer it fails with duplicate-exception, logicaly.
Can I solve this without any need of specifing a
primary key for books at all?I dont see how. In your AS you would have had to specify either a primary key or primary class or unknown Object as primary key.
How is CMP handling no-pk entity and is relations
working without any pk?Using s1as l have found out that l if you do not specify a primary key on creation of entity bean, the ejbCreate returns null as the primary key which causes an EJBException.
Why? Cos I think a primary key has to be returned at the same time as the handle to the entity bean is stored in the Context. Why it would not insert the data first then request a primary key l dont know. I must say that this happens when you try to use autoincrement in the primary key column.
Do EJB vendors manage no pk ejbs? what about ejb
restrictions.
Reading the specification literature gives the impression that they do, but practice is another thing entirely.
I ve read that there must be a primary key, but not
necessery a database field - HOW? could you please
explain!
That the theory. When you find the answer to HOW(?), please let us know.
Derrick
Please this is very urgent and I Thank you very much!!

Similar Messages

  • Help me with a simple CMR - please!!

    Hi!
    Please Im pretty new to CMR and appreciate if you could help me answer a simple question.
    Database model:
    WriterTbl
    ID___ Name
    1____RodJohnson
    2____PankajKumar
    BookTbl
    FK___Name
    1____J2EE-DesignAndDevelopment
    1____ProfessionalJSP
    2____J2EESecurity
    Question:
    I ve two CMP entities: WriterBean and BookBean
    I ve set the relations between Writer and Books, and it works as far as a writer only has one book.
    That because I set the FK also as a PK to the BookBean. And when I try to create next book for a writer it fails with duplicate-exception, logicaly.
    Can I solve this without any need of specifing a primary key for books at all?
    How is CMP handling no-pk entity and is relations working without any pk?
    Do EJB vendors manage no pk ejbs? what about ejb restrictions.
    I ve read that there must be a primary key, but not necessery a database field - HOW? could you please explain!
    Please this is very urgent and I Thank you very much!!

    Hi!
    Please Im pretty new to CMR and appreciate if you
    could help me answer a simple question.
    Database model:
    WriterTbl
    ID___ Name
    1____RodJohnson
    2____PankajKumar
    BookTbl
    FK___Name
    1____J2EE-DesignAndDevelopment
    1____ProfessionalJSP
    2____J2EESecurity
    Question:
    I ve two CMP entities: WriterBean and BookBean
    I ve set the relations between Writer and Books, and
    it works as far as a writer only has one book.
    That because I set the FK also as a PK to the
    BookBean. And when I try to create next book for a
    writer it fails with duplicate-exception, logicaly.
    Can I solve this without any need of specifing a
    primary key for books at all?I dont see how. In your AS you would have had to specify either a primary key or primary class or unknown Object as primary key.
    How is CMP handling no-pk entity and is relations
    working without any pk?Using s1as l have found out that l if you do not specify a primary key on creation of entity bean, the ejbCreate returns null as the primary key which causes an EJBException.
    Why? Cos I think a primary key has to be returned at the same time as the handle to the entity bean is stored in the Context. Why it would not insert the data first then request a primary key l dont know. I must say that this happens when you try to use autoincrement in the primary key column.
    Do EJB vendors manage no pk ejbs? what about ejb
    restrictions.
    Reading the specification literature gives the impression that they do, but practice is another thing entirely.
    I ve read that there must be a primary key, but not
    necessery a database field - HOW? could you please
    explain!
    That the theory. When you find the answer to HOW(?), please let us know.
    Derrick
    Please this is very urgent and I Thank you very much!!

  • Help needed with JWSDP-1-2

    Ive just got the developer package to install,
    ant build seems to work fine.
    tomcat seems to boot up no problem (although How can i check this)
    when i use the command: ant install for the example tutorial/example/gs,
    it comes up with the following error
    file:F:/webservices/tutorial/jwsdp-1_2-tutorial/jwstutorial12/examples/common/targets.xml:15: java.i
    o.FileNotFoundException: http://localhost:8080/manager/install?path=%2Fgs&war=file%3A%2Fjwstutorial1
    2%2Fexamples%2Fgs%2Fbuild
    Whe i also try subsequent ant commands such as remove it also complains about the manager like:
    file:F:/webservices/tutorial/jwsdp-1_2-tutorial/jwstutorial12/examples/common/targets.xml:27: java.i
    o.FileNotFoundException: http://localhost:8080/manager/remove?path=%2Fgs
    Should I be able to navigate to:
    http://localhost:8080/manager ???? (i cant anyway)
    Does this mean that the Tomcat manager is not working properly???
    Any help appreciated.

    I managed to hack it a bit. Ive now managed to get hte tomcat to run properly and also build ot run as properly as possible.
    But now im stuck on how to resolve this problem?
    install:
    [install] FAIL - Encountered exception java.lang.IllegalArgumentException: Context path /${context
    .path} must match the directory or WAR file name: file:${build}
    Has anybody got any ideas how hte context path is constructed or how I can change it.
    Is there a simple way to mimic the install process??

  • Help needed with a simple CompareTo sorting method

    This code is supposed to sort through a list of random numbers, dates, and strings to find the largest. The problem is that with the strings it just sets the first string in the array to the largest, and I'm really not sure why it's doing it...Any help would be appreciated. I am aware that this is a very simple problem..No need to tell me. ^_^;
    import java.util.Date;
    public class CompareToSort {
      public static void main(String[] args) {
    String[] strings = {"CS", "Math", "Biol", "Chem", "Phys", "Buss", "Law", "Educ", "Elec Engr", "Mech Engr"} ;
    Integer[] list = new Integer[10] ;
    Date[] dates = new Date[10] ;
    for (int i = 0; i < list.length; i++)
          list[i] = new Integer((int)(Math.random() * 100));
    for (int i = 0; i < list.length; i++)
          dates[i] = new Date();
    System.out.println("Max string is " + max(strings));
    System.out.println("Max integer is " + max(list));
    System.out.println("Max date is " + max(dates));
    public static Object max (Object[] a)
      Object currentMax = null;
      int currentMaxIndex;
      for(int i = a.length - 1; i>=0; i--)
         currentMax = a;
    currentMaxIndex = i;
    for (int j = i - 1; j >=0; j--)
    if (((Comparable)currentMax).compareTo(a[j]) < 0)
    currentMax = a[j];
    currentMaxIndex = j;
    return currentMax;

    I think your ten Dates are all same.
    import java.util.Date;
    public class CompareToSort {
      public static void main(String[] args) {
        String[] strings
         = {"CS", "Math", "Biol", "Chem", "Phys", "Buss", "Law", "Educ",
            "Elec Engr", "Mech Engr"} ;
        Integer[] list = new Integer[10] ;
        Date[] dates = new Date[10] ;
        for (int i = 0; i < list.length; i++){
          list[i] = new Integer((int)(Math.random() * 100));
        for (int i = 0; i < list.length; i++){
          dates[i] = new Date();
        System.out.println("Max string is " + max(strings));
        System.out.println("Max integer is " + max(list));
        System.out.println("Max date is " + max(dates));
      public static <T extends Comparable<T>> T max (T[] a){
        T currentMax = a[0];
        for(int i = 1; i < a.length; ++i){
          if (a.compareTo(currentMax) > 0){
    currentMax = a[i];
    return currentMax;

  • Can anyone help me with a simple java programm in linux?

    i just started learning how to write java code in high school and we had an assignment which required us to write a program that would calculate the amount of kilometers u traveled into miles and vis-versa but we had to give the user a chance to pick which one they had to do and our teacher told us to give them the option using 1 to calculate from kilometers to miles and 2 to calculate miles to kilometers .....
    and i got confused so please help

    Encephalopathic wrote:
    First figure out an algorithm: how would you solve this problem just using pencil and paper. Once you know your equations and steps to take, then translate to Java. Why not give it a try first? You can't break your computer by doing this. Then come back with your code if you are still stuck.
    Good luck.galaxyboy25,
    This is very good advice. Getting into the habit of working out problems on paper/whiteboard first will save you many a headache later on. I'm relatively new to programming as well (only about 2 years professional experience) but this technique has helped me immensely in my work. In my mind, writing code is easy--figuring out what to write is where the real challenge is.
    One other thing. In addition to sketching your problem on paper, it always helps to break a problem into very small, simple, and easily solvable pieces. Then put them together. In doing this you will find that not only will this make your task of problem solving much easier but you also end up writing cleaner and more flexible code.
    -Thok

  • Help Me With A Simple  Photo Merge in CS4 And Is It Easier With CS6?

    I've had CS4 for few years and used in only for basic photo adjustment. I have worked with it many, many times trying to figure out how to do the following task, to no avail:
    I want to move my face from a family photo to a dollar bill I scanned in to use as a joke. It sounds very simple but is very, very complicated to figure out. Whats is the easiest way to do this? It does not have to be perfect.
    Also, will this task be easier to perform in CS6 or is it performed the same exact way?

    Maybe you should check out the tutorials mentioned here:
    http://feedback.photoshop.com/photoshop_family/topics/removing_background_from_image
    For this task I would estimate that Photoshop CS6 offers no relevant advantages over Photoshop CS4.

  • Help me with this simple problem

    class Sample
         static String m(float i)
              return "float";
         static String m(double i)
              return "double";
         public static void main (String[] args)
              int a1 = 1; long b1 = 2;
              System.out.print(m(a1)+","+ m(b1));
    }On running the above program, it responds with float,float .
    Can anyone tell why ???
    Regards,
    Pradhip

    there are specific rules for finding the right type, i think it might be under "conversions" in the JLS? You can find the JLS here:
    http://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html

  • Please help me with somewhat simple problems

    Hi,
    I'm being asked to produce a 90 second "movie/commercial" that will be put on youtube.  I've used Motion 4 to create using just text and jpg pictures.  I've imported these various scenes into Final Cut Pro and have added transitions and edited.  When I'm not playing the movie from the timeline, the text and pictures are crystal clear.  After rendering, when I play the timeline, all the pictures and text are fuzzy.  I thought that once I exported the video, it would look clear...but it doesn't.  Can somebody give me some direction on what I need to do so that everything looks clear?  It doesn't have to be HD quality...just clear.  I don't have a lot of experience with Final Cut as I have been using Adobe Premiere Elements for the last 5 years.  Its getting very frustrating.
    Thanks
    Greg

    The white background you are selecting is only a tool to help view the image in the canvas. It does not actually place a background in your sequence. To have a white background, click on the Generator Button ( lower right corner of the Viewer window with an "A" on it) and from the drop down menu, choose Matte > Color. This will load a solid color into the viewer. Click on the Controls tab in the viewer and adjust it to the color you want - in this case white.
    Next, on your sequence, if you don't already have an available Video track above your edited clips, then add one by control-clicking on the space above V1 and select Add Track:
    This will add another track:
    Select your video clips on V1, and move them directly up to V2 by selecting them, then clicking down and dragging the selected clips up to V2 so that V1 becomes empty:
    And then edit the color you have in the viewer to V1:
    Now you will have a White background behind what ever is on the higher Video Tracks. If you have a long edit, you may need to edit the white color a couple times to make it run the length of the edit.
    MtD

  • Please help me with a simple flash game problem

    I am trying to learn how to make flash games with Adobe flash 5.5. I am doing a tutorial from a book and am stuck.
    The game is called concentration and you are suppose to match 2 tiles of the same shape. there are 10 shape tiles
    and 1 question mark tile. These tiles are held in an array. 20 tiles are suppose to be displayed 5 to a row with 4 rows
    and the question mark is suppose to be up on all 20. My problem is I get a blank screen when I test the movie. I
    think the code is good but I beleive I have not uploaded the tiles right. I did upload the 11 tiles to the library and have
    those 11 tiles and tile_movieclip in the library. Here is the code:
    package {
    // importing classes
    import flash.display.Sprite;
    // end of importing classes
    public class Main extends Sprite {
    public function Main() {
    // variables and constants
    const NUMBER_OF_TILES:uint=20;
    const TILES_PER_ROW:uint=5;
    var tiles:Array=new Array();
    var tile:tile_movieclip;
    // end of variables and constants
    // tiles creation loop
    for (var i:uint=0; i<NUMBER_OF_TILES; i++) {
    tiles.push(Math.floor(i/2));
    trace("My tiles: "+tiles);
    // end of tiles creation loop
    // shuffling loop
    var swap,tmp:uint;
    for (i=NUMBER_OF_TILES-1; i>0; i--) {
    swap=Math.floor(Math.random()*i);
    tmp=tiles[i];
    tiles[i]=tiles[swap];
    tiles[swap]=tmp;
    trace("My shuffled tiles: "+tiles);
    // end of shuffling loop
    // tile placing loop
    for (i=0; i<NUMBER_OF_TILES; i++) {
    tile=new tile_movieclip();
    addChild(tile);
    tile.cardType=tiles[i];
    tile.x=5+(tile.width+5)*(i%TILES_PER_ROW);
    tile.y=5+(tile.height+5)*(Math.floor(i/TILES_PER_ROW));
    tile.gotoAndStop(NUMBER_OF_TILES/2+1);
    // end of tile placing loop
    Can someone please explain to me what I am suppose to do to make the this work? I beleive the problem is it doesnt know where the tiles are.
    Thanks.

    To create the tiles, draw 10 distinct shapes in the first 10 frames of your symbol, and
    the back of the tile in the 11th frame. You are free to draw them as you want, but I suggest you make them as 90 pixels squares with registration point (starting x and y position) at 0, because these are the properties of the tiles used in this chapter's
    examples. At least, they should all be the same size.
    It didnt say put in a library. It is saying to draw them in frames of symbol but it didnt walk me through that. Can you guide me through this? I also was looking at how to add the link identifier but it said I need a popup window but I cant see one. I thought that was done
    when I went to insert new symbol. It said something about actionscript linkage. I am familliar with perl, java and c++ so I can follow the code so far but I dont have much understanding of the flash interface. I made the 10 shape tiles and the 1 question mark tile
    in paint. They are .jpeg images.

  • Can someone help me with a simple duration calculation?

    I created a simple workbook for calculating hours worked. I am entering the start time, end time, and using the DUR2HOURS formula to calculate the duration. For some reason the calculation is wrong. I am sure it is somethign simple, but I could not find an answer and it has been bothering me for a couple of days now. Here is an example of what is happening:
    Start Time     |     End Time     |     Duration
    7:15 AM               5:30 PM               10.25  (formula: =DUR2HOURS(ENDTIME - STARTTIME)
    The duration in this example should be 10.15?
    Thanks,
    Nate

    Hi NorthrailDrive,
    DUR2HOURS gives the value in decimal hours, not hours:minutes.
    Your answer (in decimal hours) is correct (10.25, or ten and a quarter hours).
    Cell C2 contains the formula you need to calculate a duration:
    =B2-A2
    C2 is formatted as Duration h (hours) m (minutes). You can change the display to show 10:15
    Regards,
    Ian.

  • Help me with a simple line-graph, plzzzzzzzz.

    hi!
    can anyone give me the basic java code to create a simple line graph for my java program output.
    thanks a lot in advance.
    cheers!

    Have a look at the Graphics.drawPolyline() method.
    kind regards,
    Jos

  • Can you please help me with this simple (not for me:) issue

    Why this doesnt work?
    public void spl ()
         String a=("moon.sun");
    String [] f=a.split(".");
    System.out.println(f[0]);
    }

    The second expression to split() is a regular expression. A period in a regular expression matches all characters, and you're wanting it to just match a period.
    To match just the period for your split, you'll need to escape it:String[] f = a.split("\\.");

  • Help me with a simple function please!

    Hi,
    I want to pass to a function an error number ( define by me) get the error message associated to this number in another table, and then use this message in raise_application_error...
    something like
    CREATE FUNCTION GetErrorMsg ("-20000") Return Error_Msg
    Begin
    Select Error_Msg from Error_table Where Error_Number= "-20000" ( the number sent by my function)
    End;
    and then
    raise_application error (-20000,Error_Msg)
    Thanks for any hint...
    Pete

    It will be like below:
    CREATE FUNCTION GetErrorMsg (Perr_No Number) Return Error_Msg
    Begin
    Select Error_Msg from Error_table Where Error_Number= Perr_No ( the number sent by my function)
    End;
    and then
    raise_application error (-20000,Error_Msg)
    Hope this will solve your problem
    Regards
    Samujjwal Basu

  • Create Maintenance Request - Simple Sample provided by SAP

    Hi!
    I'm testing Create Maintenance Request Sample at
    [Create Maintenance Request, Simple sample|http://esworkplace.sap.com/socoview(bD1lbiZjPTAwMSZkPW1pbg==)/render.asp?packageid=DE0426DD9B0249F19515001A64D3F462&id=A644A34757114FBEBB64A28BB7ABE2BF]
    In the "Resources" section of this page I press  "Run this sample" and at the first step (Enter data), when I press 'Next' with the default Equipment (10000461) I get the following errors:
    1 - Backend function, IndividualMaterialByIDQueryResponse_In.IndividualMaterialByIDQueryResponse_In not found
    2 - Error occured while executing the service: null
    I can see the Equipment 10000461 in the SAP ES Workspace ( ERP 6.0 - System ID: HU2,  TCode: IE03)
    Thanks for your help,
    Best Regards,
    Carlos Duarte

    HI,
    I have the same issue with other Simple Sample apps.
    Kind regards,
    Maxat

  • Who can help to make a simple direct change in AP Database (search/replace)

    Hi,
    I wonder if somebody can help me with a simple search and replace direct in the AP Database??
    After the last upgrade to 1.5. our keywords are not exported correctly.
    Is there any easy way to search for ";" and replace with a comma ",".
    I have about 9000 Image in one AP library, which included 3 Projects.
    I really would appreciate help - it would save us a lot of work!
    Thanks

    I believe we found the problem - but could not fix it because I need to search/replace in the Database.
    Here is the problem:
    AP is now confirm with the IPTC guidelines, which limits ONE Keyword to 64 characters.
    Problem is and was for us that we did a work around in AP 1.2. - we exported keywords and phrases separated by a semicolon - so everything was fine till the update - no all it sudden AP exports kw1;kw2;kw3; as ONE Keyword - so the semicolon does not separate the keywords anymore and after 64 characters it cuts of.
    I have to replace all "semicolons" with a "semicolon+empty space" (to get it into our database) or at least replace "semicolon" with "comma+empty space".
    We have several librarys and projects, all keyworded with about 20-40 keywords which we can´t export.
    I need to go direct in the database and do a search and replace - but I never worked direct in the AP Database - any idea how we can do a search/replace???
    Would very much appreciate if you could help!
    Thanks

Maybe you are looking for

  • Reports 6i and OLE data

    Hello Friends, I want to display OLE content from database using Reports,after report development I am facing following problem.does anybody know how to solve it. 1. Some times OLE content appears in small font,it is very difficult to read. 2. After

  • About draging something with mouse

    when I press mouse and drag mouse ,I want to create a icon at the side of mouse cursor. When I drag the mouse cusor above a JTable or release mouse which cell or row would fire events. How to do it?

  • How to Reset Pagination Page called by a button defined in Select Statement

    Its easy to reset the pagination for a page that is called using a 'Button' such as 'Create'. But I've defined a button in my records list by using the this entry in the select statement: (some characters have been removed to allow for its inclusion

  • Internet tracking

    Is there an app that the IT dept can use to track internet activity on an ipad

  • Auto printing a PDF document without Print Dialog, in a web application

    Hello, We are developing a web application (target browsers: IE and Firefox). One of the requirement is to open a PDF document and print it without any user intervention(no print dialogs). Is there a way to achieve this? Please let me know. Thanks, P