Migrating an application from Struts to EJB

Hi folks, Prsently I have an application which is following the Struts architecture.Now I have to migrate it to EJB.What all are the major chnages I have to incorporate?? Any usefull links other than the Sun J2EE Blueprints??
Thanx Pradeep

Hi folks, Prsently I have an application which is
following the Struts architecture.Now I have to
migrate it to EJB.What all are the major chnages I
have to incorporate?? Any usefull links other than the
Sun J2EE Blueprints??That's something I'm starting to wonder about. All you should have to do is call the EJBs in your Action class - theoretically.
I'm wondering more about the deploytool. I've given it a quick try, but am unsure as to how I should set up a Struts webapp.
On top of that, I'm trying to get the J2EE server to run as a WinNT service using JSL. That's got it's own problems.

Similar Messages

  • Migration of application from Oracle Express 6.3.4 to Essbase 9

    I got a requirement to migrate an application from Oracle Express to Essbase.Can any one help me if there is any documentation for migration or else do I have to rebuild a new application in Essbase with the same functionality as in Oracle Express.
    Rgrds,
    G.K

    As far as I am aware there is no migration tool to convert to essbase and you will have to build a new application in essbase.
    On a side note this campaign from Oracle back in 1998 amuses me - http://books.google.co.uk/books?id=4VEEAAAAMBAJ&lpg=PA17&ots=Amg-YO3m5X&pg=PA17#v=onepage&q&f=false
    The line "Oracle Express Server slaughtered Arbor Essbase in both load and calculation times and query times" is a classic.
    I wonder if Oracle feel the same way now :)
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Beginner's Guide for migrating an application from WLS6.1 to 10

    Hi,
    I am new to Bea WLS and need migrate an application from WLS 6.1 to 10. Right now I am trying to reconfigure the deployment descriptors but as I am new to this I don't really know where to start.
    Has sw. did the same or knows good resources / documentation about that issue?
    Help woud be really apreciated.
    Kind regards

    Looks like a good candidate for TheDailyWTF...
    The error happens when the username is an empty string (""), likely the SQL query isn't returning any results. Have you tested this with users that are set up in the database? Are you able to connect to the SQL instance?
    As an aside, I suggest you change the sa password for your SQL Server instance now that you've published the password. Or better still create a dedicated SQL Login for this application or use Windows authentication.
    Jason Warren
    Habanero Consulting Group
    habaneroconsulting.com/Insights
    @jaspnwarren

  • I'm wanting to migrate certain applications from my MacBook Pro over to my newer Mini, but Migration Assistant doesn't allow doing this by choosing which applications to migrate-how can I pick only certain ones?

    I'm wanting to migrate certain applications from my MacBook Pro over to my newer Mini, but Migration Assistant doesn't allow doing this by choosing which applications to migrate-how can I pick only certain ones?

    You only bought it four months ago, so it's still under warrantly.
    Call Applecare or call your nearest Applestore to make an appointment. Tell them your mac has serious technical issues, describe them shortly.

  • I need help migrating my applications from my old G5 power mac to my new macbook pro

    Im struggling migrating my applications from my G5 power mac to my new macbook pro. My G5 runs on OS X 10.5.8 and when using the traditional tool of Migration assistant my new macbook urges me to update my G5 which it obviously it can't due to its original licensing agreements. I have no codes for my software as it came on the pc: I need , Logic pro 9, the complete adobe CS4 package and final cut pro . How can i put this on my new mac ??

    So you never really owned the software to begin with then. Software is licensed and has to be transferred and when you bought your Mac (PC) they really did not.
    I have no codes for my software as it came on the pc: I need , Logic pro 9, the complete adobe CS4 package and final cut pro . How can i put this on my new mac ??
    As for a temporary solution, you can run 10.6.8 as a VM under later versions of Mac OS X like Mavericks so you can have use of Rosetta and it runs the PowerPC code.
    Your new Intel Mac can run Windows natively also, can dual boot both Mac and Windows, if that is of any use, for some it is.
    Right now you are not in the MacBook Pro forum! :-) This is Mac Pro sans "Book" and is not a laptop at all, but a 'trash can' or tower.
    Lappy would be here:
    MacBook Pro

  • Error while migrating JMS application from Weblogic8.1 to Weblogic10.3

    Hi All,
    I am migrating my JMS application from weblogic8.1 to 10.3. I'm able to publish and subscribe message from local weblogic server. But when i'm configuring ldap server in weblogic-ejb-jar.xml, while deploying the application itself i'm getting the below error. Same thing working fine in weblogic8.1.
    For this am i need to use foreignjms?. If this is the case please let me know how to configure foreignjms in weblogic10.3 server.
    below are the details i'm giving in weblogic-ejb-jar.xml:
    <message-driven-descriptor>
    <pool>
    <max-beans-in-free-pool>10</max-beans-in-free-pool>
    <initial-beans-in-free-pool>3</initial-beans-in-free-pool>
    </pool>
         <destination-jndi-name>evtTESTEH3Queue</destination-jndi-name>
    <initial-context-factory>com.sun.jndi.ldap.LdapCtxFactory</initial-context-factory>
    <provider-url>ldap://192.168.20.18:389/ou=mqseries,o=crimsonlogic.com</provider-url>
    <connection-factory-jndi-name>ivtQCF</connection-factory-jndi-name>
    </message-driven-descriptor>
    Error:
    weblogic.application.ModuleException: Exception activating module: EJBModule(evtEJB.jar)
    Unable to deploy EJB: JMSTESTEVTEventSubscriberMDBean from evtEJB.jar:
    unable to find EndPointFinder for ldap://192.168.20.18:389/ou=mqseries,o=crimsonlogic.com
    at weblogic.ejb.container.deployer.EJBModule.activate(EJBModule.java:493)
    at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:107)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$2.next(DeploymentCallbackFlow.java:411)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:74)
    Truncated. see log file for complete stacktrace
    java.lang.AssertionError: unable to find EndPointFinder for ldap://192.168.20.18:389/ou=mqseries,o=crimsonlogic.com
    [email protected] on Mar 18, 2009 3:07 AM

    Hello TomB,
    Could you elaborate a bit on your explanation? I'm having the same problem as talk2srujan. I currently have an application which works fine in weblogic81 and, when migrated to weblogic103, fails at deployment time. The error I get is: unable to find EndPointFinder for tibjmsnaming://host:port
    We didn't have to register any foreign servers in weblogic81, should I do this in weblogic103?
    Could you also give a pointer to the known bug you mentioned?
    Thanks in advance,
    Rudra

  • Migrate ADF application from version 10.1.2 to 10.1.3

    Dear all,
    I have migrated a ADF application from version 10.1.2 to 10.1.3.
    The original project has been opened with jdeveloper 10.1.3 and the 10.1.2 libraries set in the server.xml and orion-application.xml files as explained in this page
    http://www.oracle.com/technetwork/developer-tools/jdev/10g-howto-deploy-a-1012-adf-applica-090135.html?ssSourceSiteId=otnjp
    When I tried to run the application Ihad the following Java exception
    Does anyone ever had the same problem?
    java.lang.NoSuchMethodError: java.lang.String oracle.adf.model.BindingContext.findBindingContainerIdByPath(java.lang.String)     at oracle.adf.controller.v2.struts.actions.DataAction.mappingCreate(DataAction.java:284)     at oracle.adf.controller.v2.struts.actions.DataAction.execute(DataAction.java:101)     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:644)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:226)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:127)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:116)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)

    java.lang.NoSuchMethodError: java.lang.String oracle.adf.model.BindingContext.findBindingContainerIdByPath(java.lang.String) at oracle.adf.controller.v2.struts.actions.DataAction.mappingCreate
    Refer Steve's blog
    http://radio-weblogs.com/0118231/stories/2006/02/28/notesOnMigratingAdfstruts1012ApplicationsTo1013.html

  • Info : Migrating Apex Application from Non-SSO to SSO environment

    Hi All,
    This post is to share my experience while working on APEX. This may be useful to some apex developer.
    If we migrate an apex application from a non-sso (i.e. http) to sso (i.e. https) environment, the flash chart doesn't work.
    I found that in the source of a Flash Chart region, we use #HOST# variable to locate the swf file. The environment variable takes the correct path but with "http" as prefix. But to access application pages "https" is used. Because of which, the swf file couldn't be located by the application.
    Work-around Solution : If I hard code the value i.e. the application path having "https" replacing #HOST# variable then the flash chart works fine. I couldn't found a way by which the #HOST# parameter value can be updated to take "https".
    The same environment host other non-sso applications as well.
    Any comments on this are welcomed.
    Regards,
    Mangal

    Hi Dirk,
    Thanks for the reply.
    As I mentioned earlier, by Non-SSO I mean "http" and by SSO I mean "https". This is because, before migration the application was accessible using "http" and now we have to use "https" alongwith SSO to access the application. I only want to highlight the Flash Chart issue with this migration.
    The problem doesn't solves with your solution as I am getting correct instance/environment name with #HOST# but prefixed with "http" and not "https". Hence the application won't be able to locate the required swf file.
    Even the workaround I mentioned is only feasible, if an application has only few Flash Charts. However, if there are large no. of Flash charts in an application, then it would be a tedious task to update all flash chart source either by an application item (as you mentioned in your post) or hard coding the path itself. Also, every new Flash Chart source needs to be updated by a developer to fix this.
    A better solution is required by which the Flash chart source is not touched and the #HOST# variable for the application is updated to take the "https" prefixed to the swf file path.
    Regards,
    Mangal
    Edited by: Mangal on Mar 5, 2009 11:31 PM

  • Migrating an application from JDev 10.1.3 to JDev 10.1.3.2

    Hi,
    I am having trouble migrating an application made with JDev 10.1.3 to 10.1.3.2.
    Everything is fine when I run it on the embedded OC4J, but when I try to deploy I have problems.
    The application is deployed on OAS 10.1.3R3.
    What I have done so far was to install the new ADF libraries using ADFinstaller, editing server.xml as per Note:417812.1 and include adf-faces-api.jar, adf-faces-impl.jar, jsf-api.jar, jsf-impl.jar and adfshare.jar from JDev 10.1.3.2 to my project WEB-INF/lib folder.
    Some pages are working as they should, but when a date is to be displayed I have this error:
    javax.faces.el.EvaluationException: java.lang.NoSuchMethodError: oracle.jbo.domain.Date.timestampValue()Ljava/sql/Timestamp;So, am I missing some jar to be included? Have I missed a step or two?
    Thank you for your help.
    adsm

    Solved.
    For some reason, once the application has been migrated, the following lines were added to orion-application.xml:
        <imported-shared-libraries>
            <import-shared-library name="adf.generic.domain" min-version="10.1.3"></import-shared-library>
            <remove-inherited name="adf.oracle.domain"></remove-inherited>
        </imported-shared-libraries>
    -------I do not know if the migration tool was directly responsible for this. Anyway, as this project has been migrated time and time again from a JDev version anterior to 10, this kind of thing was bound to happen someday.
    Cheers,
    adsm

  • How to migrate custom application from AK to MDS ?

    I have got a custom application in Apps 11.5.8 where the data is stored in the AK_REGIONS table, etc. and the custmo application is registered in FND_APPLICATION table correctly. When applying the OAF 5.7 patch, the data is not migrated to MDS.
    Answer:
    This is because the OAF 5.7 patch does not migrate product data automatically. It is up to the development teams to do this.
    With Custom applications, there is apparently no documented or supported mechanism to migrate this data from AK to MDS.
    Solution:
    OA Framework 5.7 (or OAF 5.10) can read the page definitions out of AK, so there is no pressing need to migrate the page definitions anyway. (See Metalink Note 216823.1 for example of this) When a page needs to be changed, the page will need to be changed via AK Developer as before, or manually recreated using JDeveloper which will then be using the MDS repository.

    Do you mind telling me how you do it from the client ? All the libraries for the import utilities seem to be present in the application server. How (and what) to bring to the client where my jdeveloper resides ?
    Thanks in advance...

  • Problems while migrating PDK applications from Portal 7.1 to Portal 7.3

    Hi All,
    I am facing a problem while migrating a PDK application from Portal 7.1 to Portal 7.3.
    Since Portal 7.3 doesnt support PAR files any more it provided with a tool to convert the PAR to an EAR file and deploy the resultant EAR to the new portal.
    I converted the PAR into EAR and deployed the file but the application is not executing. When I looked into the log files i found the following exception. The application is not able to identify the tag "documentBody". I checked the protalapp.xml and the "SharingReference" is properly maintained in the file but the error message suggests that its not able to fine the reference to the tagLib uri maintained in the portalapp.xml
    Now my question is why is it not able to obtain a reference to the taglib? Did any one face similar problem previously. Can you please provide me with any document for migrating / developing PDK application for Portal 7.3
    Parser [PRT] - JspParseException is thrown while parsing JSP file </SAP/sap/POD/J00/j2ee/cluster/apps/TestOrg.co.uk/TestOrg~cas~ptlsvc/servlet_jsp/CASPortalService/root/WEB-INF/pagelet/CASFramework.jsp> :
    com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Cannot parse custom tag with short name [documentBody].
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.customTagAction(JspElement.java:969)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.action(JspElement.java:228)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:59)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.customTagAction(JspElement.java:994)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.action(JspElement.java:228)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:59)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.customTagAction(JspElement.java:994)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.JspElement.action(JspElement.java:228)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:59)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.syntax.ElementCollection.action(ElementCollection.java:69)
    at com.sap.engine.services.servlets_jsp.jspparser_api.jspparser.GenerateJavaFile.generateJavaFile(GenerateJavaFile.java:72)
    at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.parse(JSPProcessor.java:272)
    at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.generateJavaFile(JSPProcessor.java:196)
    at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.parse(JSPProcessor.java:128)
    at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.getClassName(JSPChecker.java:377)
    at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.compileAndGetClassName(JSPChecker.java:306)
    at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.getClassNameForProduction(JSPChecker.java:236)
    Thanks in advance
    PK

    Hi Amit,
    Thanks for your reply. I could see some progress after "thoroughly" going through those links. Thanks a lot (gave points too )
    Now I am facing another problem. The application did deploy successfully but with a warning. When i checked the warning it says that the deployment was successful but can not be started.
    The log file has the following error message.
    Global [startApp] operation of application [newsint.co.uk/newsint~cas~ptlsvc] finished with errors for [5] ms on server process [2721950] [
    >>> Errors <<<
    1). com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Application newsint.co.uk/newsint~cas~ptlsvc cannot be started. Reason: it has hard reference to the following resources, which are currently not available on the system: hard to SAPPORTAL/com.sapportals.htmlb (public) (f=true, cl=false); .
    In order to start the application, components that provide the missing resources should be successfully deployed.
    at com.sap.engine.services.deploy.server.ReferenceResolver.isResolved(ReferenceResolver.java:137)
    at com.sap.engine.services.deploy.server.LifecycleController.startReferencedComponents(LifecycleController.java:173)
    at com.sap.engine.services.deploy.server.application.StartTransaction.beginCommon(StartTransaction.java:200)
    at com.sap.engine.services.deploy.server.application.StartTransaction.begin(StartTransaction.java:166)
    at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:421)
    at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhases(ParallelAdapter.java:465)
    at com.sap.engine.services.deploy.server.application.StartTransaction.makeAllPhases(StartTransaction.java:605)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:1828)
    I dont understand why is SAPPORTAL/com.sapportals.htmlb is not available. As per my understanding it is some thing that should be available with the portal server by default.
    Any hints from any one?
    thanks in advance
    PK

  • Best Way to Migrate an application from one server to another

    I couldn't seem to find the best way to this by Googling. If you have two instances of Sun Web Server 7, and you want to migrate a web application from one server to another, what is the best way to that?

    I am sorry. My question was poorly worded after some hours of frustration. What I am really trying to do is develop a base virtual machine snapshot with Sun Web Server Loaded and a base set of applications.
    When the need arises, I need to deploy another VM and start it up. There seems to be some issue with the host name of the VM and the administration server, or something. It is my impression that as longs as I have everything contained in one directory like /webserver, I should be able to copy everything to a new machine and start it up. I know I need the listeners listening on all ip addresses and the jdk being used would need to be in that directory as well. Is there anything I am missing here or that I need to watch out for?

  • Migrate DRM application from PROD to TEST environment

    How I can migrate all DRM application from PROD to TEST environment. The first way this is using migrate utility and then create all export/import utility. But this way does not give 100% guaranty of identity the PROD and TEST environment.
    As relation database I am using Oracle DB. Can I migrate DRM application using exp/imp utility for oracle users (MDM and MDM_DB) and after that changing information directly in oracle tables in the TEST environment?

    This response is not timely but others may find it useful...
    You can use the Oracle database export and import processes, but there are several additional steps in the process. In general this is a high risk endevour that should not be attempted by the faint of heart. (See #3 below!) Attempt at your own peril.
    1) Make a copy of the Username table so that you have the Test versions of the encrypted passwords for DRM internally managed accounts. These will need to be updated post import if there are any differences.
    2) After you delete the tables in Test, it's best to create them with the install scripts prior to import because once an Oracle table containing a blob datatype has a stored value the Oracle import is no longer tolerant of changes in target tablespace names for all tables containing blobs within that schema. (Known bug) However, the create tables install script has an insert statement or two that need to be commented out or the import will create duplicate rows that will cause errors enabling constraints.
    3) After the import completes all exports and books need to be modified to no longer point to production target locations, especially for exports to database tables! Ideally this step would be completed and QA'd prior to starting the application server; however, the application server must be running if the migration utility is going to be leveraged to propagate these updates so the process I use is to lockout all users until this step is completed.
    4) Also note that if the Prod and Test app servers are not using the same authentication settings the system preference needs to be changed or the application server may not start.

  • Migrating perl application from 32 bit to 64 bit

    Hello,
    I am migrating an application which is written in perl from 32-bit Solaris 2.5 to 64-bit Solaris 9. What part of code should I concentrate? Is there any guidelines available for the same? Any help would be greatly appreciated.
    Devesh.

    There are Sun 32bit to 64bit programming guides. Check http://docs.sun.com/ .
    Also, Perl is an interpeted language. Unless you're using the "C" interface and/or doing some bit twiddling, I would think it would run "as is". You may want to google perldoc.com for more info.
    HTH,
    Roger S.

  • Migrating an application from oracle 9i portal to oracle 10g portal

    Hi,
    I'm new to this portal.I want to migrate our application which is in oracle 9i portal to our new oracle 10g portal.Can any body give me step how i should go about doing it.
    Thank you

    You can upgrade your Application Server from release 9i to 10G. This will also upgrade your Portal application.
    Check http://www.oracle.com/technology/products/ias/portal/upgrade.html for upgrade paths available.

Maybe you are looking for

  • Sound not working & iTunes won't play & Netflix error

    Sometimes my sound stops working, and songs on iTunes won't play when this happens. Also if I try to watch Netflix an error message comes up: "Netflix Playback Error N8157 3140" and it says it could have something to do with my Silverlight plugin. Th

  • InfoProviders backup Strategy in SAP BW

    Hello;     Does any one experienced a backup issue with BW especially when you would like to perform a risky modification. Is there any backup strategy that is supported by SAP for any modifcation senario, if it is a small modification or also a big

  • Install Lightroom 4 on OSX 10.6.8 Error

    I am trying to install Lightroom 4 on a brand new 27" iMac. I am running OSX 10.6.8 and have 16 gb of ram, plaenty of hard drive space, and I keep getting an error while trying to install the Lightroom 4 beta. Here is the dump from the Installer log:

  • IOS IPS - Sig 4050 UDP Bomb apparent false alarms?

    Hi, I'm trying the IOS IPS solution out in a lab environment and I seem to be getting lots of false alarms on sig 4050 - UDP bomb. Looking at the signature description via go/mysdn, and looking at it's configuration on the router via SDM, I can see i

  • Add search bar to navigation bar of iPad in ios 8

    Hi, The search bar is set as self.navigationItem.titleView = self.searchBar; For cancel button : [self.navigationItem setRightBarButtonItem:cancelBtn animated:YES]; It is coming in correct alignment for IOS7 , But in IOS 8 search bar and cancel butto