Need help should be a simple problem

I'm trying to run my first webservice,
on tomcat/axis, linux java 1.3.1_08
I'm trying out example2 in $AXIS_HOME/samples/userguide/example2/
the wsdl comes up as below:
When I try and run the client
java samples.userguide.example2.CalcClient -p8080 add 2 5
In the $AXIS_HOME/samples/userguide/example2/ directory I get the following error
[Me example2]$ java samples.userguide.example2.CalcClient -p8080 add 2 5
Exception in thread "main" java.lang.NoClassDefFoundError: samples/userguide/example2/CalcClient
[Me example2]$
an ls -l shows there is a CalcClient class at that location
my classpath is as follows echo $CLASSPATH
foo/axis-1_1RC2:foo/axis-1_1RC2/lib/axis.jar:foo/axis-1_1RC2/lib/commons-logging.jar:foo/axis-1_1RC2/lib/axis.jar:foo/axis-1_1RC2/lib/commons-logging.jar:foo/axis-1_1RC2/lib/jaxrpc.jar:foo/axis-1_1RC2/lib/log4j-1.2.4.jar:foo/axis-1_1RC2/
lib/wsdl4j.jar:foo/axis-1_1RC2/lib/xerces.jar:foo/junit3.8.1/junit.jar
ANY IDEAS PLEASE HELP
http://127.0.0.1:8080/axis/Calculator.jws?wsdl
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://127.0.0.1:8080/axis/Calculator.jws" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://127.0.0.1:8080/axis/Calculator.jws" xmlns:intf="http://127.0.0.1:8080/axis/Calculator.jws" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:message name="addRequest">
<wsdl:part name="i1" type="xsd:int"/>
<wsdl:part name="i2" type="xsd:int"/>
</wsdl:message>
<wsdl:message name="subtractResponse">
<wsdl:part name="subtractReturn" type="xsd:int"/>
</wsdl:message>
<wsdl:message name="addResponse">
<wsdl:part name="addReturn" type="xsd:int"/>
</wsdl:message>
<wsdl:message name="subtractRequest">
<wsdl:part name="i1" type="xsd:int"/>
<wsdl:part name="i2" type="xsd:int"/>
</wsdl:message>
<wsdl:portType name="Calculator">
<wsdl:operation name="add" parameterOrder="i1 i2">
<wsdl:input message="intf:addRequest" name="addRequest"/>
<wsdl:output message="intf:addResponse" name="addResponse"/>
</wsdl:operation>
<wsdl:operation name="subtract" parameterOrder="i1 i2">
<wsdl:input message="intf:subtractRequest" name="subtractRequest"/>
<wsdl:output message="intf:subtractResponse" name="subtractResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CalculatorSoapBinding" type="intf:Calculator">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="add">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="addRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://127.0.0.1:8080/axis/Calculator.jws" use="encoded"/>
</wsdl:input>
<wsdl:output name="addResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://127.0.0.1:8080/axis/Calculator.jws" use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="subtract">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="subtractRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://127.0.0.1:8080/axis/Calculator.jws" use="encoded"/>
</wsdl:input>
<wsdl:output name="subtractResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://127.0.0.1:8080/axis/Calculator.jws" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CalculatorService">
<wsdl:port binding="intf:CalculatorSoapBinding" name="Calculator">
<wsdlsoap:address location="http://127.0.0.1:8080/axis/Calculator.jws"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

so I've added .
like so
[Me example2]$ setenv CLASSPATH "$CLASSPATH":.
SO NOW THE CLASSPATH IS
echo $CLASSPATH
foo/axis-1_1RC2:foo/axis-1_1RC2/lib/axis.jar:foo/axis-1_1RC2/
lib/commons-logging.jar:foo/axis-1_1RC2/lib/axis.jar:foo/axis-1_1RC2/
lib/commons-logging.jar:foo/axis-1_1RC2/lib/jaxrpc.jar:foo/axis-1_
1RC2/lib/log4j-1.2.4.jar:foo/axis-1_1RC2/lib/wsdl4j.jar:foo/axis-1_1RC2/
lib/xerces.jar:foo/junit3.8.1/junit.jar:.
I ran it from Axis_home and got a similar message
[Me ~]$ cd $AXIS_HOME
[Me axis-1_1RC2]$ java samples.userguide.example2.CalcClient -p8080 2 5
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/utils/Options
at samples.userguide.example2.CalcClient.main(CalcClient.java:68)
Any more ideas Please it's so important that I get this working as soon as possible

Similar Messages

  • NEED HELP...FORMATING SIZE PROBLEM

    I've been succesfully building and formating projects that only lasted 30 minutes.
    I'm having some problems with my latest project (1 hour and 20 minutes)...
    I did compress with "90 minutes best quality".
    and when I import in dvdsp, the file size is 6 GB.
    Now it won't format into a blank dvd-R.
    I am kinda new at this and need to put it on a dvd for a client.
    Could somebody tell me what should I do ?
    Should I compress again or can I still burn it with another form of blank dvd?
    I need help...
    Thank you.

    Make sure to select A.Pack/Dolby (make sure that file is made) and use that in the project, not the .aif file

  • My Creative Cloud subscription has expired, and I assigned the monthly payment, but I can not open any progam creative cloud, I need help how to solve this problem

    my Creative Cloud subscription has expired, and I assigned the monthly payment, but I can not open any progam creative cloud, I need help how to solve this problem

    Carlos-
    Start by signing out and back in to see if it will see the subscription: 
    How to sign in and sign out of creative cloud (activate/deactivate)
    If the apps are installed fine and close after launch see this link:
    CC applications close immediately after launch
    If the problem is something different, please let us know the error you see or what is happening on the screen so we can advise  you on a solution
    Pattie

  • IDVD virgin needs help! Widescreen ration aspect problems

    Hi,
    I created QT movies from FCPx all as widescreen, when I play the QT movies they are widescreen but then when I create a iDVD, the ration changes to standard (even though it is set in iDVD to wide). When I am iDVD and look at the preview there is gray around the edges and it looks standard ration. What have I done wrong??  I found this advice:
    f a gray border appears in the iDVD windo
    When you drag the iDVD window to make it larger, the menu in the iDVD window always maintains the correct aspect ratio of your project (4:3 for standard video and 16:9 for widescreen). The extra space around your menu appears as a gray border.
    To return the iDVD window to normal size:
    Choose Window > Actual Size.
    You can also drag the window, reducing its size until the gray borders disappear.
    But I cannot work out how to do this, I have clicked on Actual size etc but nothing seems to change.... I'm so crap at this, I really need help! thanks!

    With the QT files I made straight from FCPx it says, 195.8mb 720 x 576. Then I used 'prism' and converted all the chapters and now they say 11.3mb 1024 x 576. I put them back into iDVD and it solved the widescreen problem. When I view the converted files in iDVD now they are widescreen and work. HOWEVER, I seem to have a new problem! Now there are 2 things that happen.
    1. Everything is widescreen but when I click on the chapters to view the video's, it automatically stops being full screen and goes down to a smaller screen and then you need to click 'full screen' for it to go back, this only happens on a few of them.
    2. Some parts of the DVD don't work, the footage goes all funny like ghosts and it jumps around and doesn't play nicely, then all of a sudden it works for a bit, then back to not working.
    I tried using 2 different themes and the same thing happened. Any thoughts?

  • Hello I Download Adobe Photoshop CC 2014 Last Night i INSTALLED it But it Crashes in 30-40 Sec After i Launch the Product Without Any Error Message I Need Help Can You Resolve This Problem i Tried Creative Cloud Sign Out Nd Sign iN But iT DidnT ReSolve My

    Hello I Download Adobe Photoshop CC 2014 Last Night
     i INSTALLED it But it Crashes in 30-40 Sec After i Launch the Product Without Any Error Message
    I Need Help Can You Resolve This Problem

    Lotfi are you receiving any error messages during the installation?  I would recommend reviewing your installation logs for errors.  Please see Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html for information on how to locate and interpret your installation log files.  You are welcome to post any specific errors you discover to this discussion.

  • I need help with an Apple ID problem...

    I own a Macbook and an iPod touch, I have downloaded numerous apps for the iPod over the years. 18 months ago my boyfriend got an iPhone 3GS and created an Apple ID but it would not let him download apps due to some kind of issue registering his bank card. At the time I tried to sort it out and told him to get in touch with Apple support but he was impatient and wanted to start getting apps right away so I caved in and let him use my Apple ID. The next day I realised this was a stupid thing to do when all his apps started appearing in my iTunes. However I didn't see it as too much of a problem at the time...
    Tomorrow I am going to pick up my shiny new iPhone 5 (my first iPhone ) and I am worried about plugging it into my Mac and having all these apps that I really don't want around in my iTunes. I am imagining an absolute pain in the bum trying to sort all these apps out and syncing them to the right devices? I would absolutely love to just shift all his apps over to his Apple ID, he has loads of stuff that he needs to keep now. He does not have a computer himself, but there is no real need to plug his iPhone into my macbook ever again. After having a quick read around the forums, there seems to be no simple answer to this problem. If anyone could help with this I would be extremely grateful!

    DoubleSkin wrote:
    I would absolutely love to just shift all his apps over to his Apple ID,
    You can't. All apps are forever tied to the ID used to originally obtain them. In your case, that would be your ID. He really needs to get his own ID, delete these apps, then purchase them using his ID.
    For you, just delete what you don't want from your iTunes library.

  • Need help with a very strange problem

    I've been using Macs since the Apple IIe and I haven't seen anything like this. I need some help "diagnosing" where the problem might lie, and what to do about it.
    I have the dock to appear and disappear automatically. But when I run the mouse down to the bottom of the screen, it doesn't appear. I have to "click" in that area to get it to appear. Also, when I select a menu in the finder or in an application, and then scroll through the menu items, they do not highlight as they should. I can click on an item to activate it, but they aren't highlighted as I scroll through.
    Also, in some applications, windows don't appear and disappear normally as they should. For example, with Adobe Lightroom I have it set up so that the adjustment panels on the left and right automatically appear and disappear. But they aren't doing that anymore.
    A restart and permissions repair will temporarily solve the problem, but it inevitably returns (sometimes within an hour, sometimes a few days). I have three users on my computer, and it happens in each user account.
    A couple days ago, I did an archive & install. That didn't fix it. Then yesterday I did a full reinstall of Leopard and then used Migration Assistant and Time Machine to migrate my users & applications to the new install. After I repaired permissions and rebooted, the problem was right there again.
    It doesn't seem like the problem is with a user account, since all three accounts have it. So why didn't a reinstall of the system fix it? And what can I do now?

    Althought the behavior is the same in all three accounts, if all are working accounts I would suspect there is something all of them have installed that could be the source of the problem. Try creating a new admin account, and leave it just the way Apple creates it--don't add anything nor modify it in any way. Log into that account and see if it works correctly.
    If that account is also misbehaving, try restarting, and when you hear the chime hold down the Shift key so that you boot into Safe Mode (you'll see a notice in the splash screen about being in Safe Mode). The boot will take longer (perhaps even considerably longer) as the system runs disk repair, empties some caches, disables all third party startup items, as well as all Apple startup items not strictly necessary for the machine to run. See the menus and Dock now behave correctly.
    Since the problem is evidently somewhat intermittent in nature it may take some patience to discover what is wrong. You might also disconnect everything that didn't come with the Mac, reboot, and use only the Apple keyboard and Apple mouse and run for a bit to see how that works. If you are using a third party mouse that required installing something that would be my guess as a "prime suspect" for the cause of the problems.
    Francine
    Francine
    Schwieder

  • Need help with notify() / wait() synchronization problem.

    I am trying to overcome a race condition that seems to be coming from the use of the swing ui file chooser in my code. I tried to solve this problem using wait/notify but I ended up in an infinite loop so and was wondering if anyone could help me out. Here are some code snipets:
    //Create a new monitor
    final private Object monitor = new Object();
    //in method getAppletdirectory()
    synchronized(monitor)
    //initialize the wizard which is a filechooser then call using the swingui showCenteredDialog
    DialogUtils.showCenteredDialog(wizard, -1, -1);
    monitor.notifyAll();
    //return some info from the wizard
    // in main method of this class
    File appletDirectory = getAppletDirectory(controller);
    synchronized(monitor) {
    try
    monitor.wait();
    catch (InterruptedException e){
    The method causes in infinite loop, I believe this is happening because the notify is being called before the dialog window has completed then when the wait is set up there is no notify to come. My problem is the wizard is used in other circumstances where it will not look for this. Would it be okay to add the notify() to the wizard's functionality even though sometimes there will be no monitor waiting for it? Can anyone give me any advice on this? Thanks.

    >
    The reason I believe this was a race condition is because when I run this code without the synchronized call and the DialogUtils.showinfoDialog commented out as shown below. When the zip occurs some of the files do not show up in the newly created .zip. But if I uncomment the dialog call then the .zip contains everything I expect it to.
    >
    Okay, so let's restate this:
    Problem
    I try to zip a file, but when I try to run the code above, then some of the files don't make it to the Zip archive. Some do, some don't.
    Diagnostics
    I notice when I call DialogUtils.showinfoDialog then the zip is formed properly. I think this is because the showinfoDialog method makes the user click on a button before returning. So my concern is that I am generating a race condition by <doing something... I have no idea what...>.
    Okay, so now we have that out of the way, You also say "Also, the reason I think this is an infinite loop is because when I added the synchronized calls and it gets to this part of the program it hangs and must be force quit." For there to be an infinite loop, there first has to be a loop, then there has to be a condition for ending the loop that never is reached. I still see no loop in your code, so it is impossible to have an infinte loop in any code that you have shown (there may be an infinite loop someplace else that you aren't showing). That said, your computer can hang for any number of other reasons, including any un-interrupted blocking operation (reading from a Stream, waiting on a BlockingQueue, calling wait() without notify()), or a deadlock situation. The problem with saying that you have an infinite loop is that the first thing to do to fix that is to look at the loop. If you don't know what is causing a hang, just say 'The program is hanging here.' That way we can look at different reasons for hangs, rather than getting caught up in a red herring of an infinite loop.
    Okay, down to the problem:
    1) Why are you including any synchronization? Why do you think you need it? How many Threads do you create? And where?
    2) We can't help you with the code you provided. It tells us nothing about what is going on. What is DialogUtils? FileUtils? RistrettoWizard? No clue. Don't know what any of those methods do. What context is this method called in? Why the synchronization?
    What you need to do is generate a short, working sample that shows the problem. Read [this site for examples.|http://sscce.org/] Make it simple, and complete. If I can't copy the code and run it to see your problem then I can't help diagnose it.

  • Help to solve this simple problem- please

    Hi !
    Is there any method to resolve this problem.
    In my db there are 2 tables called Employee and Insurance. There fields as follows.
    Employee(empno,name,age,address,phone)
    Insurance(empno,insurName,insurCompany)
    Now I want to do this.In my HTML form,there are textboxes to input all of these data.
    Eg: empno,name,age,address,phone,insurName,insurCompany (All of these enter into 1 form)
    Now my problem is, how to save these data into the 2 seperate tables by using PreparedStatement.See am I right?
    INSERT INTO Employee,Insurance VALUES (?,?,?,?,?,?,?);
    Is it right? I'am confusing about these para's, because how can I tell to insert that first para (empno) into 2 tables.
    I using Java2 SDK,JSP,TOMCAT with MySQL db for this.
    Please anyone can answer this, help me.

    No, you need one INSERT statement for each table.

  • Need HELP with objects and classes problem (program compiles)

    Alright guys, it is a homework problem but I have definitely put in the work. I believe I have everything right except for the toString method in my Line class. The program compiles and runs but I am not getting the right outcome and I am missing parts. I will post my problems after the code. I will post the assignment (sorry, its long) also. If anyone could help I would appreciate it. It is due on Monday so I am strapped for time.
    Assignment:
    -There are two ways to uniquely determine a line represented by the equation y=ax+b, where a is the slope and b is the yIntercept.
    a)two diffrent points
    b)a point and a slope
    !!!write a program that consists of three classes:
    1)Point class: all data MUST be private
    a)MUST contain the following methods:
    a1)public Point(double x, double y)
    a2)public double x ()
    a3public double y ()
    a4)public String toString () : that returns the point in the format "(x,y)"
    2)Line class: all data MUST be private
    b)MUST contain the following methods:
    b1)public Line (Point point1, Point point2)
    b2)public Line (Point point1, double slope)
    b3)public String toString() : that returns the a text description for the line is y=ax+b format
    3)Point2Line class
    c1)reads the coordinates of a point and a slope and displays the line equation
    c2)reads the coordinates of another point (if the same points, prompt the user to change points) and displays the line equation
    ***I will worry about the user input later, right now I am using set coordinates
    What is expected when the program is ran: example
    please input x coordinate of the 1st point: 5
    please input y coordinate of the 1st point: -4
    please input slope: -2
    the equation of the 1st line is: y = -2.0x+6.0
    please input x coordinate of the 2nd point: 5
    please input y coordinate of the 2nd point: -4
    it needs to be a diffrent point from (5.0,-4.0)
    please input x coordinate of the 2nd point: -1
    please input y coordinate of the 2nd point: 2
    the equation of the 2nd line is: y = -1.0x +1.0
    CODE::
    public class Point{
         private double x = 0;
         private double y = 0;
         public Point(){
         public Point(double x, double y){
              this.x = x;
              this.y = y;
         public double getX(){
              return x;
         public double setX(){
              return this.x;
         public double getY(){
              return y;
         public double setY(){
              return this.y;
         public String toString(){
              return "The point is " + this.x + ", " + this.y;
    public class Line
         private double x = 0;
         private double y = 0;
         private double m = 0;
         private double x2 = 0;
         private double y2 = 0;
         public Line()
         public Line (Point point1, Point point2)
              this.x = point1.getX();
              this.y = point1.getY();
              this.x2 = point2.getX();
              this.y2 = point2.getY();
              this.m = slope(point1, point2);
         public Line (Point point1, double slope)
              this.x = point1.getX();
              this.y = point1.getY();
         public double slope(Point point1, Point point2)//finds slope
              double m1 = (point1.getY() - point2.getY())/(point1.getX() - point2.getX());
              return m1;
         public String toString()
              double temp = this.x- this.x2;
              return this.y + " = " +temp + "" + "(" + this.m + ")" + " " + "+ " + this.y2;
              //y-y1=m(x-x1)
    public class Point2Line
         public static void main(String[]args)
              Point p = new Point(3, -3);
              Point x = new Point(10, 7);
              Line l = new Line(p, x);
              System.out.println(l.toString());
    }My problems:
    I dont have the right outcome due to I don't know how to set up the toString in the Line class.
    I don't know where to put if statements for if the points are the same and you need to prompt the user to put in a different 2nd point
    I don't know where to put in if statements for the special cases such as if the line the user puts in is a horizontal or vertical line (such as x=4.7 or y=3.4)
    Edited by: ta.barber on Apr 20, 2008 9:44 AM
    Edited by: ta.barber on Apr 20, 2008 9:46 AM
    Edited by: ta.barber on Apr 20, 2008 10:04 AM

    Sorry guys, I was just trying to be thorough with the assignment. Its not that if the number is valid, its that you cannot put in the same coordinated twice.
    public class Line
         private double x = 0;
         private double y = 0;
         private double m = 0;
         private double x2 = 0;
         private double y2 = 0;
         public Line()
         public Line (Point point1, Point point2)
              this.x = point1.getX();
              this.y = point1.getY();
              this.x2 = point2.getX();
              this.y2 = point2.getY();
              this.m = slope(point1, point2);
         public Line (Point point1, double slope)
              this.x = point1.getX();
              this.y = point1.getY();
         public double slope(Point point1, Point point2)//finds slope
              double m1 = (point1.getY() - point2.getY())/(point1.getX() - point2.getX());
              return m1;
         public String toString()
              double temp = this.x- this.x2;
              return this.y + " = " +temp + "" + "(" + this.m + ")" + " " + "+ " + this.y2;
              //y-y1=m(x-x1)
    public class Point2Line
         public static void main(String[]args)
              Point p = new Point(3, -3);
              Point x = new Point(10, 7);
              Line l = new Line(p, x);
              System.out.println(l.toString());
    }The problem is in these lines of code.
    public double slope(Point point1, Point point2) //if this method finds the slope than how would i use the the two coordinates plus "m1" to
              double m1 = (point1.getY() - point2.getY())/(point1.getX() - point2.getX());
              return m1;
         public String toString()
              double temp = this.x- this.x2;
              return this.y + " = " +temp + "" + "(" + this.m + ")" + " " + "+ " + this.y2;
              //y-y1=m(x-x1)
         }if slope method finds the slope than how would i use the the two coordinates + "m1" to create a the line in toString?

  • Need help with a very simple example.  Trying to reference a value

    Im very new to Sql Load and have created this very simple example of what I need to do.
    I just want to reference the ID column from one table to be inserted into another table as DEV_ID.
    Below are my: 1) Control File, 2) Datafile, 3) Table Description, 4) Table Description
    1) CONTROL FILE:
    LOAD DATA
    INFILE 'test.dat'
    APPEND
    INTO TABLE p_ports
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    DEV_id REF(CONSTANT 'P_DEVICES',NAME),
    NAME FILLER ,
    PORT_NO
    2) DATAFILE:
    COMM881-0326ES09,6
    3) TABLE DESCRIPTION:
    SQL> describe p_ports
    Name Null? Type
    ID NOT NULL NUMBER(10)
    DEV_ID NOT NULL NUMBER(10)
    PORT_NO     NUMBER(3)

    hi,
    i managed to do this for my app. (think i referred to viewTransitions sample code and modified quite a bit)
    i can't remember this well cos i did this quite a while back, but i will try to help as much as possible
    1) from the appdelegate i initialize a root controller (view controller class)
    2) this root controller actually contains two other view controllers, let's call it viewAController and viewBController, for the screens which u are going to toggle in between. and there's also a function, let's call it toggleMenu, which will set the menus to and fro. i copied this whole chunk from the sample code. it actually defines the code on what to do, i.e. if current view is A switch to B and vice versa.
    3) inside the controller files, you need to implement the toggleMenu function too, which basically calls the rootController's toggleMenu
    4) we also need viewA and viewB files(view class)
    5) need to add the .xib files for the respective views and link them up to the controller class. i did not use the .xib files for ui layout though, because of my app's needs. however, it will not work properly without the .xib files.
    5) inside the view class of both views, i.e. viewA.m and viewB.m, you need to create a button, that will call the toggleMenu function inside the respective controller class.
    it will look something like this:
    [Button addTarget:ViewAController action:@selector(toggleMenu:) forControlEvents:UIControlEventTouchUpInside];
    so the flow is really button (in view)-> toggleMenu(viewController) -> toggleMenu(rootController)
    i'm sorry it sounds pretty hazy, i did this part weeks before and can't really remember. i hope it helps.

  • Need Help with a very simple view transition scenario

    Hello All,
    I am trying to learn how view transitions work and I am having a very hard time with the sample apps (like transition view app etc)...I need something much more simple at first. Can you please provide me a little guidelines on how to set up this following scenario:
    App loads up and shows a title screen with a button that says go. When you click on the go button the title screen fades out and a new view fades in (or slides in, or anything at all).
    Right now I have 3 nib files. There is the main one that is called on application start (tied with MainViewController, a subclass of IUViewcontroller just like in the hello world app. After the app loads the app delegate object tells the MainViewController object to load in another view controller object (via addSubview) which is tied with the second nib file; my title screen with the button. When I press the button I was thinking in the IBAction function to tell the MainViewController object to remove (or transition out somehow) the title screen view controller object then add the other view (third nib file in). This is the part I can't get working. Am I on the right track or have a gone hideously astray? Thank you!

    hi,
    i managed to do this for my app. (think i referred to viewTransitions sample code and modified quite a bit)
    i can't remember this well cos i did this quite a while back, but i will try to help as much as possible
    1) from the appdelegate i initialize a root controller (view controller class)
    2) this root controller actually contains two other view controllers, let's call it viewAController and viewBController, for the screens which u are going to toggle in between. and there's also a function, let's call it toggleMenu, which will set the menus to and fro. i copied this whole chunk from the sample code. it actually defines the code on what to do, i.e. if current view is A switch to B and vice versa.
    3) inside the controller files, you need to implement the toggleMenu function too, which basically calls the rootController's toggleMenu
    4) we also need viewA and viewB files(view class)
    5) need to add the .xib files for the respective views and link them up to the controller class. i did not use the .xib files for ui layout though, because of my app's needs. however, it will not work properly without the .xib files.
    5) inside the view class of both views, i.e. viewA.m and viewB.m, you need to create a button, that will call the toggleMenu function inside the respective controller class.
    it will look something like this:
    [Button addTarget:ViewAController action:@selector(toggleMenu:) forControlEvents:UIControlEventTouchUpInside];
    so the flow is really button (in view)-> toggleMenu(viewController) -> toggleMenu(rootController)
    i'm sorry it sounds pretty hazy, i did this part weeks before and can't really remember. i hope it helps.

  • Need Help In Solving Rotation Image Problem

    1 down vote favorite
    Hi guys ,
    I need your help please. I have spent hours trying to solve it but not working.
    I have an image i am rotating when the user clicks on a button. But it is not working.
    I would like to see the image rotating gradually till it stops but it doesn't. This it what it does. After i click the button, i don't see it rotating. But when i minimize and maximize the main window, i see the image just rotate(flip) fast like that. It does the rotation but i don't see it as it is doing. It just rotate in a second after minimize and maximize the main window.
    I thimk the problem deals with updating the GUI as it is rotating but i don't know how to fix it.
    these are the code . Please i have trimed down the code for easy reading.
    public class KrusPanel extends JPanel{
         private Image crossingImage;
         private int currentRotationAngle;
         private int imageWidth;
         private int imageHeight;
         private AffineTransform affineTransform;
         private boolean clockwise;
         private static int ROTATE_ANGLE_OFFSET = 2;
         private int xCoordinate;
         private int yCoordinate;
         private javax.swing.Timer timer;
         private void initialize(){
          this.crossingImage = Toolkit.getDefaultToolkit().getImage("images/railCrossing3.JPG");
          this.imageWidth = this.getCrossingImage().getWidth(this);
          this.imageHeight = this.getCrossingImage().getHeight(this);
          this.affineTransform = new AffineTransform();
          this.setCurrentRotationAngle(90);
          timer = new javax.swing.Timer(20, new MoveListener());
    public KrusPanel (int x, int y) {
      this.setxCoordinate(x);
      this.setyCoordinate(y);
      this.setPreferredSize(new Dimension(50, 50));
      this.setBackground(Color.red);
      TitledBorder border = BorderFactory.createTitledBorder("image");
      this.setLayout(new FlowLayout());
      this.initialize();
    public void paintComponent(Graphics grp){
               Rectangle rect = this.getBounds();
               Graphics2D g2d = (Graphics2D)grp;
               g2d.setColor(Color.BLACK);
               this.getAffineTransform().setToTranslation(this.getxCoordinate(), this.getyCoordinate());
               this.getAffineTransform().rotate(Math.toRadians(this.getCurrentRotationAngle()), this.getCrossingImage().getWidth(this) /2,
                                       this.getCrossingImage().getHeight(this)/2);
              g2d.drawImage(this.getCrossingImage(), this.getAffineTransform(), this);
    public void rotateCrossing(){
                 this.currentRotationAngle += ROTATE_ANGLE_OFFSET;
                 int test = this.currentRotationAngle % 90;
                 if(test == 0){
                  this.setCurrentRotationAngle(this.currentRotationAngle);
                  timer.stop();
             repaint();
      private class MoveListener implements ActionListener {
             public void actionPerformed(ActionEvent e) {
                rotateCrossing();
                repaint();
    //  There are getters and setters method here but i have removed them to make the code shorter.
    }Next 2 Classes
    // I have removed many thins in this class so simplicity. This class is consists of Tiles of BufferdImage and the
    // KrusPanel class is at the array position [2][2]. It is the KrusPanel class that i want to rotate.
    public class SeePanel extends JPanel{
          private static KrusPanel crossing;
          private void initializeComponents(){
       timer = new javax.swing.Timer(70, new MoveListener());
       this.crossing = new CrossingPanel(261,261);
        public SeePanel(){
      this.initializeComponents();
         public void paintComponent(Graphics comp){
       super.paintComponent(comp);
      comp2D = (Graphics2D)comp;
      BasicStroke pen = new BasicStroke(15.0F, BasicStroke.CAP_BUTT,BasicStroke.JOIN_ROUND);
         comp2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                 RenderingHints.VALUE_ANTIALIAS_ON);
         comp2D.setPaint(Color.red);
         comp2D.setBackground(Color.WHITE);
         comp2D.drawImage(img, 0, 0, null);
         comp2D.draw(this.horizontalRail);
         this.crossing.paintComponent(comp2D);
         this.rob.drawRobot(comp2D);
      public static void rotateCrossing(){
       this.crossing.getTimer().start();
       repaint();
    // i tried below code also it didn't work. so i put them in comments
       Runnable rotateCrossing1 = new Runnable(){  // to be removed
             public void run() {
            crossing.getTimer().start();
          SwingUtilities.invokeLater(rotateCrossing1);
    // MAIN CLASS
    // This is the GUI class which consists of buttons and others
    public class MainAPP{
       SeePanel = new SeePanel();
      // Buttons declarations here and others
    public MainAPP(){
      // all listener registers here
    // Here i call the rotateCrossing() of the SeePanel class but it is not working as i want.
    // I would like to see the image rotating gradually till it stops but it doesn't.
    //This it what it does. After i click the button, i don't see it rotating. But when i minimize and maximize the main window,
    // i see the image  just rotate(flip) fast like that.
    public void actionPerformed(ActionEvent e){
        SeePanel.rotateCrossing();                 
        public static main(string[] str){
    }Please do help me to fix it.
    thanks

    kap wrote:
    1 down vote favoriteHuh?
    ..Please i have trimed down the code for easy reading. ..Perhaps I am just lazy, but I don't actually like reading code until I've seen it compile in my editor & run. That is why I will advise that for better help sooner, post an SSCCE. For SSCCEs that use images, either generate an image in the code, or hot-link to an image available on the internet. I offer some [images at my site|http://pscode.org/media/#image] that you can hot-link to.

  • I need help, I got a download problem!

    Hello there!
    I just bought a used MacBook a few days ago. It is about one year old and pretty used. Evrything seemed to work fine, untill I wanted to download something with my Firefox. The download started but then jusr stopped just before it was done. I tried again and again and again, it just didnt finish. I tried the same download in Safari, same problem. I thought I need an update maybe, so I tried to download the updates, but the just stopped too. I did manage to download some smal files now and then, and I did get iTunes without any problems. But mostly they just stop. Same thing if I try to stream a movie from youtube, it loads for some time, then just stops.
    I have reinstalled the OS X once, and the problem is still there. Somebody got a solution, this is realy bothering me right now.

    At this point I think you should get Applejack...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    After installing, reboot holding down CMD+s, then when the prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    At least it'll eliminate some questions if it doesn't fix it.
    The 5 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.

  • Need help with a SpryImageSlideShow load problem

    I am using Dreamweaver CS5.
    I have a spryImageSlideshow on my site. I can't get the slideshow to load if there are only 2 images or less in the slideshow. It only automatically loads the large image when there are 3 photos or more in the slideshow. How do I fix this to start with only 1-2 photos in the slideshow?

    Hi
    We usually need to see ALL your code to solve your issue quickly and accurately without a lot of guessing and questions back-and-forth.
    Just rename a copy of your problem page  (such as "test.html")  and upload it to your server, in whatever folder the original page was located, and simply post a link in the Forum and tell us your problem.
    This saves you having to cut and paste miles of code into the Forum for the page and all the dependent CSS, JS etc. files.and saves us from having to recreate all your filles, find your images and then repair your code and test the solution for you.
    I trust this is helpful.

Maybe you are looking for