Downgrading from JDK 1.5.x to JDK 1.4.x

Hi there,
I hope someone helps me with an issue:
I developed a web app using JDev 10.1.3.3 using the JDK 1.5 included with JDev.
As we are now faced with the fact that this app has to run on an OAS 10.1.2, which to my knowledge uses JDK 1.4.x I have to downgrade from JDK1.5.x->1.4.x.
The technologies that I used are Toplink, EJB 3.0 Session Bean and ADF Faces for the UI layer.
I already downloaded and installed JDK 1.4.2_15 from Sun and changed the default JDK from 1.5.x in JDeveloper to use 1.4.2_15. When I recompiled my Model Project, as excected, I got the following compilation errors on my Bean Class java source file:
Error(29,1): errorIllegalCharacter
Error(29,2): 'class', 'interface', or 'enum' expected
on the same line where I had the EJB 3.0 annotation as follows:
@Stateless(name = "NordPublicFacade")
and also on my Local Interface source:
Error(22,1): errorIllegalCharacter
Error(22,2): 'class', 'interface', or 'enum' expected
for the line:
@Local
OK, I know that these annotations/injections(or whatever they're called) are new features of EJB 3.0 and can only be used with JDK 1.5.
I also have red underlines in some facade methods where generics are used for Toplink Named Queries (please remember this is generated code) so for example:
List<CompanyStructure> findAllCompanyStructure();
On my ViewController project (the UI project) I get the following errors:
refresh = false;
Error(37,17): operator = not applicable to class java.lang.Boolean and boolean
JSFUtils.setManagedBeanValue(ctx,"userState.refresh",true);
Error(92,7): method setManagedBeanValue(javax.faces.context.FacesContext, java.lang.String, boolean) not found in class NordMaintApp.view.util.JSFUtils
My questions
1) What's the best way to go about downgrading?
a) Should I create a new EJB 2.x Session Bean or should I use the Java Service Facade (which I hope creates a POJO and therefore is EJB version independant or not?)
b) Is it necessary to do anything special to the Toplink classes?
2) What are the errors that I get in my ViewController project ?
Thanks In Advance
G.P.

Hi again Shay and THANK YOU!
We simply downloaded OC4J 10.1.3 & installed it (all we had to do is simply unzip it) in a separate directory on its own, on the SAME Server as OAS (10.1.2.02 EE, which includes Discoverer and Portal) AND IT WORKED !
We're now back on using JD 10.1.3 with all its new features etc etc. We even downloaded JDK1.5 and got OC4J working with this JDK WITHOUT, of course, affecting our OAS 10.1.2 installation which works with JDK1.4.2. That woudn't have been possible without your feedback.
It's just that looking at that reference you gave me, I thought that I would have to create a separate instance on the OAS 10.1.2 installation and install 10.1.3 on that one. But eventually it was so much simpler than that. And the memory overhead of OC4J is not that much.
I could create a simple ADF JSF page which just displays data from a table and it's OK!
I could deploy it just fine, though I found out that I have to deploy the ADF Runtimes first; OC4J doesn't come with them. Other than that, it was just fine!
As I said, I'm now using ADF JSF pages for my front-end and ADF BC for my back end; it's so much easier than using Toplink directly.
Only one problem left though (sorry to bother you like that):
In one of the previous emails you mentioned it might be better to use Webcenter for ADF Faces. Unfortunately we cannot go with this option I'm afraid, because we already have an existing portal running on the Oracle Portal that's already included with our OAS 10.1.2.02. I assume that the Oracle Portal's version is also 10.1.2.02. Can I deploy ADF JSF faces as a portlet on this one ? I realise that JDev 10.1.3 comes with some wizards to do this and it seems that I have 2 options: Oracle PDK-Java Portlets or JSR-168 based portlets. I just want whichever one will allow me to have my ADF JSF pages deployed as Portlets on OP 10.1.2.02, so that it can be integrated into any one of the exisiting Portal pages that a colleague of mine already developed (and are waiting for my pages to finish, which currently, when called from a link inside a Portal page displays it in a new page and the user can get back to the Portal page by clicking on the browser's back button). I realise that If I have the JSF page as a portlet, it will then be possible to be integrated into an existing page, that is, have my page to occupy it's own region in a Portal's page.
Once again, Thanks for your help and Thanks In Advance.
R,
G.P.

Similar Messages

  • Upgrade from JDK 1.2.2 to JDK 1.4.2. Any code changes required?

    Hi,
    We are in the processes of upgrading the JDK versions on servers to JDK 1.4.2 to support other software upgrades.
    The JDK versions on each of the servers are at different versions. On one of the servers, the version of JDK is currently at JDK 1.2.2_10. Can somebody please advise me if there would be any code changes required to support this upgrade (such as some methods being depreciated)?
    We are also evaluating if we need to upgrade to JDK 1.4.5. In such a case, would there be any code changes required to upgrade from JDK 1.4.1_x to JDK 1.4.5. I assume there wouldn't be any changes for this minor upgrade but just want to confirm.
    I would really appreciate an early reply.
    Thanks in advance.
    Regards,
    Vamshi

    "1.4.5" - you meant "1.5" ? :)
    About deprecations -- you will be warned by the compiler. E.g. "assert", "enum" are keywords and cannot be used as method names.
    The rest depends on your application. The more complex it is, the more differences can be encountered. You certainly need to run a test cycle for it with the new platform.
    From my experience, I can list some issues that I have read about or have experienced myself:
    1) serialization: the algorithm used to calculate the serialVersionUID had some changes between Java versions, due to compiler-added extra methods.
    If you don't have serialized instances, or your serialVersionUID is specified explicitly, you are safe.
    2) class loading order can be different in different platforms
    Once ago I have seen a paper from BEA Systems highlighting some open topics that can arise when migrating between different vendor's JVMs. Probably, it is the one:
    http://edocs.bea.com/jrockit/geninfo/devapps/codeprac.html
    In my friend's case, there was some class-initialization logic, that behaved differently when class loading order changed.
    3) Swing applications can sometimes behave slightly different.
    E.g., I observed some changes in focus handling, although minor ones. Fixed with several lines of code.
    4) Some libraries can depend on particular J2SE version. E.g. J2EE ones.
    E.g. I was not able to run J2EE 1.4 thick client application with JRE 1.5. The j2ee library used by the app either had some dependencies on sun.* classes, or on some protocols (not sure, I don't remember it well).
    5) Regression bugs are sometimes encountered. I.e. something that worked, does not work now.
    Summary: You need testing.

  • Downgrading from Windows 8.1 to Windows 8

    I have upgraded to Windows 8.1 on my PC. Windows 8 came with my PC so i did not have to install now. It is working fine with me but I am an accountant and i use Sage Pastel. Ever since I upgraded to Windows 8.1 my Pastel has completely stopped working. I
    want to uninstall Windows 8.1 and use Windows 8. I do have Microsoft Office on my PC aswell. How to i revert back to Windows 8?
    I need assistance.
    Thanks
     

    Refer :
    http://social.technet.microsoft.com/Forums/windows/en-US/a8055fbc-d88b-4dd2-8563-d9786a65eb30/downgrade-from-windows-81-to-windows-8?forum=w7itproinstall
    http://social.technet.microsoft.com/Forums/windows/en-US/5b1efb21-8711-464a-874f-49ed60eb8746/how-to-downgrade-from-windows-81-to-windows-8-?forum=w81previtpro
    Arnav Sharma | Facebook |
    Twitter Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members
    reading the thread.

  • Windows XP Pro SP2 cd-rom after downgrading from Vista

    Hi everybody.
    I successfully downgraded my T61p from Vista to XP Pro SP2 using the downgrade cd-roms send by Lenovo.
    Everything seems to work well. I downloaded all drivers. No problem.
    But I recently installed a rather old software that I frequently used on my old A31p. This software (a Microsoft program !) has automatically modified some files from XP Pro without any autorization. 
    Once it was done, I was asked by the system to insert the original Windows XP Pro SP2 cd-rom to repair this modification.
    Of course, the (Vista to XP) downgrade cd-rom set was not recognized by the Thinkpad as the original XP set.
    An original cd-rom which I finally don't have !
    I tried with an original XP Pro SP2 cd-rom bought a few years ago for my A31p. Unsuccessful.
    Where could I find the XP Pro SP2 cd-rom corresponding to the downgraded system ?
    Thanks for your help and suggestions.
    Regards.
    J.L.
    Jean-Louis L.
    Thinkpad A31p - T42p - T61p - TP Tablet

    James,
    thanks for your answer.
    But I wrote on my first post "I tried with an original XP Pro SP2 cd-rom bought a few years ago for my A31p. Unsuccessful."
    Thus, I don't see any difference between an original Microsoft Windows XP2 Pro SP2 version cd-rom and one created by burning a downloaded version of the OS. An original was not recognized, what would a copy do ?
    If possible, it might be probably better to create an XP Pro SP2 cd-rom from the "Rescue and Recovery" files which were reinstalled when downgrading from Vista to XP. (I hate the word "downgrade" : while I was doing it, I had the feeling I was upgrading my Thinkpad !)
    I have been using for several years (and still use) an A31p (Since 2002, 8 to 10 hours a day) and a T42p. IMHO, the T61p is the same category of "great" notebooks. Thinkpads are really the best notebooks I have ever used. I noted no significant difference between IBM and Lenovo Thinkpads.
    Jean-Louis L.
    Thinkpad A31p - T42p - T61p - TP Tablet

  • How Do I Downgrade From Windows Vista To XP On A 3000 N100 Series Notebook?

    Hello. Here is the problem. I have Windows Vista Pre-loaded on my 3000 N100 Notebook, absolutely dislike this operating system and want to erase and load Windows XP. From reading other forum messages I have learned several things.
    1) The install disk On Windows XP Home & Professional will not recognize Sata Hard Drives, when it reaches the point of loading where it looks for the hard drive it "BOMBS OUT" with error messages.
    Several options are open .............
    1) Log into the BIOS, locate the SATA option, and change to compatibility mode.
    2) Have a USB external floppy connected with a Sata Driver on it and when installing Windows XP press the "F6" button when Windows asks for any external drivers you want to load.
    Here is the problem with the 3000 N100 Notebook series..........
    1)There is "NO SATA OPTION" in the BIOS of the 3000 N100 series notebooks to choose. In this model Lenovo stripped the BIOS down to the bare essentials.......and I Do Mean.... "BARE". The latest BIOS upgrade also has no Sata option. Why they did not offer at least this choice of downgrading to XP is beyond me. LENOVO..... I'm not impressed with your notebook.  As usual.... Microsoft has all vendors jumping to their tune..... Nothing but "VISTA" at this point in time. What if you hate it??????
    2) I have hunted all over the Lenovo Web Site for a "SATA DRIVER" that would work with a 3000 N100 Notebook, no such critter exists.  LENOVO..... Couldn't you have at least offered this????  I'M NOT IMPRESSED.
    Has anyone been able to downgrade to Windows XP successfully on a 3000 N100 Series Notebook??? How Did You Do It?? Has Anyone Located A "SATA DRIVER" That Works???  IF So, Please Explain To Me Step-By-Step How I Can Get Rid of Vista and Load XP.
    Help........Help.......Help........Help......Help!!!!!!!!!!!
    Regards

    Hello Himleung. Thank you for answering this message. Where did you find a "Sata Hard Drive Driver" that works?? Perhaps you could pass that along to this message forum in case someone else that has a 3000 N100 (may also work with the N200 series) Notebook wants to downgrade from Vista to Windows XP.
     This is what baffles me to no end. The Lenovo web site has every driver you need to load Windows XP on the notebook.....**EXCEPT**..... the Sata HD Driver......**OR**...... the ability in BIOS to change to "compatability mode".  Duh!!!..... whats wrong with this story. I have never seen such a weak BIOS as the one in the 3000 N100. If I had known this I probably would have gone to another brand. They should have advertised this notebook as...... "Non-Geek Compatible".
    Not knowing exactly how you could forward the driver to me I did the following....... I created a new Web email location that you could use to send the driver as an email attachment. The address is....... [email protected] This address will exist just long enough to obtain the driver..... and then......"Hasta-La-Vista" baby......end of story......as I do not want to be bombarded with ads, trash, or perhaps a virus of some sort..... although.....I'm SURE we have GREAT PEOPLE on this message center.
    I'm not familiar with the "NLITE" program you mentioned. Again....perhaps you could mention where I can get it and what I need to do to set the program up to run the driver.
    Thanks again, Himleung.
    Regards,
    Train500

  • Is there a way to downgrade from iOS 5.1.1 to iOS 4.1 without any unauthorised modifications (e.g. jailbreaking)?

    I found this piece of information: http://osxdaily.com/2012/06/18/downgrade-ios-6-beta-to-ios-5/ Yes, it's about downgrading from iOS 6 beta, not iOS 6, but the way to downgrade to a previous version of iOS is basically the same.
    I have an iPhone 4 running iOS 5.1.1 and an iPod touch 4 running iOS 5.1.1 as well. None of them is 'jailbroken'. I upgraded my iPod touch to iOS 6 for exploring it a bit more and reverted back to iOS 5.1.1. How? I did it the way stated by the website I mentioned above: just by Option-Clicking the 'Restore' button on iTunes and select the iOS 5.1.1 software. No need to enter recovery mode or DFU mode whatsoever.
    In fact, Apple doesn't allow users to downgrade to a previous version of iOS: 'Downgrading to a previous version of iOS is not supported.' (http://support.apple.com/kb/TS3694) The reason why I could downgrade from iOS 6 to iOS 5.1.1 may be, as the above website said, 'Typically you can’t downgrade iOS versions so easily, but because Apple is still signing iOS 5.1.1 this allows downgrading to commence with minimal effort.'
    I was wondering whether I could revert all the way from iOS 5.1.1 to iOS 4.1 (the version that was shipped along with the launch of the iPod touch 4 in September 2010). (for experimental purposes)
    I downloaded the iOS 4.1 (a list of iOS software: http://osxdaily.com/2010/10/30/download-ipod-touch-firmware-ipsw/) and tried Option-Clicking when restoring this iOS 4.1 — no luck. iTunes said 'This device is not eligible for the requested build'. And I did a bit of research and found that there are ways to downgrade from iOS 5.1.1 to iOS 4.1, but it seems you have to jailbreak the device, which is complicated and I don't want to do.
    So, is there a way to downgrade from iOS 5.1.1 to iOS 4.1 without any unauthorised modifications (e.g. jailbreaking)? Thanks in advance.

    No, downgrading from any version of iOS to an earlier version is not supported.

  • Is it still possible to downgrade from ios 6 to ios 5.1.1 on my ipod touch 4th gen as of Sept.24?Also, if I use a backup created AFTER updating to ios 6 when I restore/downgrade to ios 5.1.1, does it become ios 6 again because of the backup?

    Is it still possible to downgrade from ios 6 to ios 5.1.1 on my ipod touch 4th gen as of Sept.24? Also, if I use a backup created AFTER updating to ios 6, when I restore/downgrade to ios 5.1.1, does it become ios 6 again because of the version of ios 6 that I created the backup on?

    There has never been a legit way to downgrade.
    It will always restore to the latest available software.

  • Downgrading from Windows 8.1 x64 to Windows 7 Professional 32bit on HP 15-r036tu

    Hello,
    Is that possible to downgrade from factory installed windows 8.1 to windows 7 on HP 15-R063TU  Notebook?
    Please guide for neccesary steps at earliest.
    Regards
    Arvind Singh

    Why 32 bit? I do not recommend that but here is a past thread dealing with your exact question:
    http://h30434.www3.hp.com/t5/Notebook-Operating-Systems-and-Software/Downgrading-from-Windows-8-1-to...
    The "downgrade" will not be free. You will have to buy Windows7 or have a real licensed copy available. 

  • Downgrade from Windows 8.1 enterprise to windows 7 Ultimate or Professional

    I have installed windows 8.1 and am not happy neither with its performance or it's UI; I have my own copy of Windows 7 Ultimate can I downgrade from Windows 8.1 to Windows 7 Ultimate? I need to keep my applications and files.

    Hi,
    Like Carey said, you need to format the whole drive and do a clean install. The most important is don't forget do a backup in an external hard drive. You will be need to restore it after roll back to Windows 7.
    Karen Hu
    TechNet Community Support

  • 15-f019dx downgraded from windows 8.1 to windows 7 home premium 64 bit: need drivers

    Hp Pavilion 15-f019dx downgraded from windows 8.1 to windows 7 home premium 64 bit.
    Stopped:
    Internet driver
    Wireless
    USB controller
    Network Controller
    PCI Device
    PCI simple communications controller
    SM bus controller
    maybe other stuff I haven't noticed?
    I see others on this forum have had similar problems going back to windows 7. I tried some of their driver solutions that were posted, but to no avail. Can I get some help? Maybe some links to where I can find drivers to help me? Windows update cannot find and automatically install replacement drivers.

    Hi:
    Looking at the hardware specs for your model you should be able to use all of the W7 x64 drivers and software from the HP Probook 450 G2 on your model except the BIOS and firmware files.
    Your model uses the Intel HD graphics driver and the Realtek RTL8188EE wireless card driver.
    http://h20565.www2.hp.com/hpsc/swd/public/readIndex?sp4ts.oid=6943827&swLangOid=8&swEnvOid=4058

  • How to downgrade from windows 8.1 to 7

    Some games I have will not work on Windows 8.1 and still not comforatble with format.  Have Windows 7 at work.  How can I downgrade to Windows 7?

    Hello @JEH-17703,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that you are looking to downgrade from Windows 8.1 to Windows 7, and I would be happy to help you!
    To better assist you, I would encourage you to post your product number for your computer. Below is a is an HP Support document that will demonstrate how to find your computer's product number. Since a downgrade involves the complete removal of your present OS, and the installation of another, It is also important to note that there is no guarantee if your computer will support Windows 7 as a compatible operating system. 
    How Do I Find My Model Number or Product Number?
    Please re-post with the necessary information, this way I will be able to research this further for you. I look forward to your reply!
    Cheers!
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • How to downgrade from ios 8.0.2

    how come there is no way to downgrade from ios 8.0.2 to ios 7 !!! i don't think its legal from apple to close the way back
    but let me ask may be there is something i don't know
    is there any way back to ios 7.1.2 ????
    thanks
    kh

    There is no way to downgrade. Apple probably doesn't allow it because then people would downgrade a lot. People rarely like the new update when they download it. Also, Apple doesn't support past iOS things…So if someone is on iOS 3, Apple wouldn't support fixing problems or whatever (if I remember right).
    So, sadly there is no way to downgrade. Sorry!

  • How to downgrade from iOS 8.3 back to iOS 8.2?

    How to downgrade from iOS 8.3 back to iOS 8.2?

    A handful of people scream about every update that is ever put out. It is the nature of technology and blame. Perhaps try addressing your issue instead of blaming yet another update. you would never had of installed 8.2 if you took these forums as any true representation of iOS users.
    Cheers
    Pete

  • How to downgrade from iOS 8.1.1 to ios 7.1.2

    How to downgrade from iOS 8.1.1 to ios 7.1.2

    I think the best iOS version for iPad mini 1st gen was 7.1.2.
    I use my iPad with music production software and still it was on 7.1.2 I got no problems, but now I'm in trouble using AudioBus for memory problems when I record to a DAW. Synth softwares are laggy, many crack here and there, like it has no more power to reproduce all the voices I need.
    Really the only way is the jailbreak? 8.1.1 is not optimized for older devices: the update had to be not released through iTunes.
    Bye.

  • How to downgrade from iOS 8.1 to 7.1.2 for iPhone 5 ?

    Dear Experts
    How to downgrade from iOS 8.1 to 7.1.2 for iPhone 5 ?
    The situation is that in Hong Kong, I bought the iPhone 5 for my mainland China friend.
    The seller said that the iPhone 5 was brand new and was come from USA.
    I found that iPhone 5 was in iOS 8.1. I wonder that why brand new iPhone 5 would be installed in iOS8.1?
    My friend finds that the response of iPhone 5 is so late.
    He prefers to downgrade to iOS 7.1.2.
    Please reply.
    Thank you
    Regards
    Lawrence

    How to downgrade from iOS 8.2 to 7.1.2 for iPhone 5
    Asking the same question a 2nd time will not get a different answer.

Maybe you are looking for