Please help.  Got TopLink working, but now I can't run a JSP page

I am using JDeveloper 9.0.3.
I got TopLink working successfully. Meaning I can access the DB using my mapped TopLink classes from my java code in JDeveloper.
However, now I can't even run the default .jsp page.
I am getting the error:
Error instantiating application at file:/C:/LBIT/LBIT-oc4j-app.xml: Error parsing data-sources config at file:/C:/LBIT/LBIT-data-sources.xml: Fatal error at line 0 offset 0 in file:/C:/LBIT/LBIT-data-sources.xml: The encoding "windows-1252" is not supported.
If I go change the "LBIT-data-sources.xml" file to "ISO-8859-1," as soon as I run the .jsp page (from JDeveloper) the "LBIT-data-sources.xml" file gets overwritten with a new one that contains the "windows-1252" encoding line again.
What can I do to fix this???
I know someone else has run into this problem!!!
Please help. Thanks so much.
Andy

You could change the encoding by doing the following.
Stop Embedded OC4J Server (Run | Terminate | Embedded OC4J Server)
Tools | Preferences
Select Environment
Change the Encoding to ISO-xxxxx
Click OK
Run your JSP now.
Atleast this should fix encoding generated into data-sources.xml
raghu
JDev Team

Similar Messages

  • I paid for a rented film on my iPad, got the receipt but now i can't find the film and its not in my purchase history. Help!

    I paid for a rented film on my iPad, got the receipt but now i can't find the film and its not in my purchase history. Help!

    If you rented and downloaded it on your iPad then it should be in the Videos app - if it doesn't show in there then have you got a film age rating set in Settings > General > Restrictions that is hiding it ?

  • HT1495 My husband and I share an i cloud account but each have our own separate ipads. We were told this would work, but now I can't find a book that I've downloaded on my ipad anymore. Where would I find it?

    My husband and I share an i cloud account but each have our own separate ipads. We were told this would work, but now I can't find a book that I've downloaded on my ipad anymore. Where would I find it?

    You and your husband can share a store account and still have seperate iCloud accounts for your contacts, bookmarks and stuff like that.  Click here for instructions to make an apple account without entering a credit card.  Make sure you use a different email address for each apple account. 
    Set up your iPhone/iPad whatever using the new account for iCloud.  Then go into settings/store and sign in with your purchasing account, you may need to sign out of the other account.  To the best of my knowledge, your household is allowed to share purchased legally, someone please correct me if I'm wrong.
    Once you each have your own devices set to your own accounts you can set them to backup to that account and it will keep all your contacts seperate.

  • PLEASE HELP!!! using servlet to generate an image in jsp page

    Hi,
    I am so stuck on this... please help.
    I have a servlet that generated a gif image dynamically. It uses a bean that stores the gif image in a byte array.
    The servlet outputs the byte data to the output stream. The code is really simple and looks like this:
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            //HttpSession session = request.getSession();
            try {
                ServletOutputStream stream = response.getOutputStream();
                ImageByteInformation imageByteInfo = (ImageByteInformation) request.getAttribute("imageByteInformation");
                response.setContentType("image/gif");
                response.setContentLength(imageByteInfo.getByteData().length);
                stream.write(imageByteInfo.getByteData(), 0, imageByteInfo.getByteData().length);
                stream.flush();
            }catch( Exception e){   
                System.out.println("You are hooped!: " + e.getMessage() + " " + e.toString());           
            }When I redirect from the dispatch servlet straight to this servlet an image shows up in the browser window.
    However when I try to use this jsp page to display the image nothing happens...
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
            <h2>Hello World!</h2>
            <img src="servlets/Map24ImageDisplayServlet"/>
             //I also tried src/servlets/Map24..., /src/servlets/Map24..., /display, servlets/display
            <h2>Did you see the image?</h2>
        </body>
    </html>My web.xml is here if it helps...
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
      <display-name>HelloProject</display-name>
    <servlet>
        <display-name>ServletDispatcher</display-name>
        <servlet-name>ServletDispatcher</servlet-name>
        <servlet-class>servlets.ServletDispatcher</servlet-class>
      </servlet>
      <servlet>
        <display-name>Map24ImageDisplayServlet</display-name>
        <servlet-name>Map24ImageDisplayServlet</servlet-name>
        <servlet-class>servlets.Map24ImageDisplayServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>ServletDispatcher</servlet-name>
        <url-pattern>/hello</url-pattern>
      </servlet-mapping>
      <error-page>
        <error-code>404</error-code>
        <location>/404_error.html</location>
      </error-page>
      <servlet-mapping>
        <servlet-name>Map24ImageDisplayServlet</servlet-name>
        <url-pattern>/display</url-pattern>
      </servlet-mapping>
    </web-app>I can never get an image to come up. In fact I can never get the jsp page to run the servlet at all! HELP!!! What am I doing wrong?
    Thanks
    Edited by: Kind_of_Green on May 5, 2008 3:55 PM
    Edited by: Kind_of_Green on May 5, 2008 4:00 PM

    OK... so you WERE absolutely right about the src path for the image tag.
    However I also had another problem that was quite a bit more insidious and mostly just a symptom
    of how little I know about what goes on under the hood of a web app.
    My bean storing the image info was stored as a request attribute. When the servlet was called from the
    jsp page the request object was either reset or just never initialized. Anyway it is not the same request
    object I assumed it was being passed in the doGet method. I added my bean as a session
    attribute and everything is sparkly :)
    I can only assume that when a request is neither forwarded nor included (as is the case with
    calling the servlet from the img tag) it is disappeared.
    Anyway, thanks a mint man. I so totally appreciate your time.
    Ciao :)

  • Please help, got so far but won't work

    I went thru a tutorial from 3school about  adding a button to a flash web site and linking it to our facebook page. I got almost all the way thru it step by step - I got the button imported to the library, resized and then inserted it onto the front page of our web site. After following all directions even running the mouse over the button it turns to a thumb to click on BUT it wont go to the web page link. I get to the point where the tutorial says to rt click on the image and choose actions. Everything still fine - then it says click on the plus sign > then choose basic actions > and get URL. This is where I think the problem starts - I have nothing that says basic actions - I have to go to global functions > browser/networks > then get URL. I insert my URL and click button assignment then ok. Save and publish. Hers where the problem starts when I publish it reads an error code and description : Scene = main, layer>div>, frame = 1, line 1 and in description it says : or expected. It wont connect to the web site and I am sure it is the correct URL because I tried it in windows and it took me to the facebook page. I am using Flash CS 5 and shouldn't matter but windows 7. Thank you in advance for any help or suggestions. I got so far and assumed I had it but cant connect to link. New to the site so be gentle with me, ha

    Here is my URL I am trying to connect this button to - http://www.facebook.com/home.php#!/pages/Poopys-Pub-n-Grub/296159796425 and I think I am using actions script 2.0 how do I tell for sure? In actions it says actions script 1.0 and 2.0 at the top. Thanks for the responses. Our web site is www.poopys.com and you can see the button I added on the front page. Appriciate your help. Dale

  • My phone fell in water and I put it in rice and everything works but now I can't get the charger in the charging thing. Like it won't go in... What do I do?

    I had my iPhone 5c in my pocket the other day and it fell in the toilet... I was mortified. I immediately grabbed it out and ran and got a bowl of rice and stuck it in. Siri was going crazy all night cause the home button wasn't working so I turned it off for the night. When I turned it on she was working perfectly! Until today when I tried to plug in the charger. The charger just will not go in! I don't know if rice got stuck in there or what but I do not know what to do! Please give me some suggestions guys!!! Also hopefully cheap cause I don't have the money to pay for a new one lols... Thank you

    First of all, you are fortunate that everything works.  Secondly, I agree that rice may be the culprit in the charging port.  However there is a chance that your trying to fix it could actually harm the port and cost you, so I suggest you first get under a bright light and use a magnifying glass to see exactly what and where the obstruction is.  Attempting to connect the charging cable has probably already forced the obstructing substance further down into the port.  Obviously the port is small and will require some kind of tool to help you remove whatever is in there.  I suggest a plastic toothpick that is not likely to break and shouldn't do damage to the contacts.  Tweezers may be useful but if utilized be very cautious not to scrape anything if at all possible. 

  • EA6350: Set up worked fine, my nw is working, but now I can't login to the router

    The setup went well, I was able to configure the network wirelessly on the web-based console.  The networks are working fine (both 2.4 and 5Gz).   A few days have passed and I wanted to check out some of the other management feature of the console (checking who is logged in, etc) and keep getting the message below.  Why can't I access the router?
    Your router was not successfully setup.
    Follow these steps:
    1. Press and hold the red Reset button on the back of your router for at least 10 seconds.
    2. During reset, the router will restart and the power light will flash. Wait until the power light is solid.
    3. Reconnect this computer or device to the default wireless network. You can find the wireless network name and password in the Quick Start Guide or on the label on the back of your router.
    4. When finished, click here to run through setup again.
    If you follow the steps above and see this error screen again, visit our website for troubleshooting tips or to chat with a Customer Support representative. To access the website, you may have to use a different computer or mobile device that has Internet access, or connect this computer directly to your modem. 
    www.linksys.com/supportError code: 2318

    Are you using the local log in link or the smartwifi log in? Try the local log in link.
    PC 3rd Party Security Software Configurations
    Turn off all anti virus and firewall programs on PC while testing. 3rd party firewalls are not generally needed when using routers as they are effective on blocking malicious inbound traffic.
    Turn off all devices accept for one wired LAN PC while testing.
    Disable any downloading client software managers, i.e. Torrents or similar.
    PC Web Browser Configurations
    What browser are you using?
    Try Opera or FF? If IE 8, 9, 10 or 11, set compatibility mode and test again.
    Disable any security browser Add-ons like No Script and Ad-Block or configure them to allow All Pages when connected to the router.
    Clear all browser caches.
    Be sure to log into the Admin account on the router.
    Try turning off these features in Chrome:
    Top right corner, little bars for options > Settings > Settings (on left) > Show advanced settings.
    Uncheck these:
    Use a web service to help resolve navigation errors
    Use a prediction service to help complete searches and URLs typed in the address bar
    Predict network actions to improve page load performance
    Enable phishing and malware protection

  • Trying to update my apps...it says I have 4 updates but when I click on update all nothing happens ...it seem to go blank...the App Store works but now I can't update

    HAving problems updating my apps...for the last five days...I now have 4 to update but nothing happens when I click update all...why is that

    The update server is down; try this temporary workaround
    App Store>Purchased>Select "All"
    Note: Look out for apps that have the word "Update"
    http://i1224.photobucket.com/albums/ee374/Diavonex/9c256282736869f322d4b3071bbb2 a82_zps51a6f546.jpg

  • I recently got i cloud but now i can't see or access any of my music! where has it gone and how do i get it back?

    How do I acess the music in my itunes library? Since installing icloud I can't see any of my music or access it and it's really stressing me out! Help!

    Sounds that you previously had the about:newtab page when you opened Firefox and this now has changed to a Facebook page.
    You can check the startup setting:
    *Tools > Options > General > Startup: "When Firefox Starts"
    *"Show my home page"
    You will have to set the home page to about:newtab to gt the page with recently visited websites.
    *https://support.mozilla.org/kb/How+to+set+the+home+page
    See this article about the New Tab page (about:newtab):
    *https://support.mozilla.org/kb/new-tab-page-show-hide-and-customize-top-sites

  • I have updated the squite.places file to prevent Firefox from hanging constantly. This seems to have worked but now I can't see the comments on news websites.

    Over the last few days Mozilla Firefox has been hanging every few seconds. I updated the squite.places file as instructed which seems to have corrected the problem, however it has had a side effect. I can no longer see the comments on newspaper sites, e.g. The Times, the Independent both of which I believe use Disqus. Does anyone know how to fix this?

    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Tried to Uninstall PS Elements 9.  Got Error 1316.  Now I can't run or uninstall program

    I bought PS Elements 12. I started to install PS Elements 12 and realized I needed to uninstall PS Elements 9 for space.  I got an "error code 1316 A Network error while attempting to access C:/windows/installer/Adobe/Photoshop Elements 9.MSI"  So, the uninstall failed.  Now the program will not run or uninstall. 
    I rolled back to Windows 7 Pro system to before I attempted to uninstall.  Still no luck.  I tried to reinstall frim the disk but it will only try to uninstall the PSE 9 - it will not give me an option to install.  I cannnot find anything on line and the Chat people told me to contact Adobe.come/support and that is not working ( I find Adobe the least friendly of all the software I use).
    Can anyone help with the uninstall?
    Thanks,
    Bax

    Bax3
    From your description, it sounds like you are working with Photoshop Elements 9 (photo editor) and not Premiere Elements 9.0/9.0.1 (video editor).
    If that is correct, you have posted in the wrote forum. You want the Adobe Photoshop Elements Forum.
    http://forums.adobe.com/community/photoshop_elements
    You can repost there or wait for a moderator here to see your thread and move it from here to there.
    Thanks.
    ATR
    Add On, wait you wait to be transferred
    There seems to be at least one thread on your topic in the Photoshop Elements Forum at Adobe. Please check it out to see if this earlier work is
    any help to you.
    http://forums.adobe.com/message/4962612

  • PLEASE HELP! my iPod got stolen but i got it back . and now it can be off i try to charge it and it would go to the silver apple and it would have a loading circle and it freezes |: PLEASE HELP

    PLEASE HELP! my iPod got stolen but i got it back . and now it can be off i try to charge it and it would go to the silver apple and it would have a loading circle and it freezes |: PLEASE HELP

    Hi,
    This Link contains the Steps on How to Restore your Device...
    http://support.apple.com/kb/HT1414
    Cheers,
    More Support Here:
    http://www.apple.com/support/ipod/

  • I just got my cable company to switch my wireless router to a wired one considering now I have the wireless airport device (the newest one) but now I can't get a wireless signal. The router works when directlyplugged in,the aiport wireless device is green

    I just got my cable company to switch my wireless router to a wired one considering now I have the wireless airport device (the newest one) but now I can't get a wireless signal. The router works when directlyplugged in,the aiport wireless device is green. I've tried going through my new MacBook Pro settings and it the diagnostics check, it says network changes detected, I tell it that it "yes" does connect to a cable modem, it tells me to restart it, after I do it asks if there are any other devices hooked up ( firewall) and when I say no it tells me that it can't fix the problem.
    Now I know that I probably have a new IP address because of the cable company switching the boxes but it was working fine with the other box, now there isn't a signal to be had on it!
    Please anybody out there that can help!!!??

    Any time you change networking hardware it is always a good idea to perform a complete power recycle with the new equipment. Check out the following AirPort User Tip. Please post back your results.

  • I just got an iphone 5s and now it wont connect to any of my windows 7 PCs, it just gets detected as an unknown device and is unable to be detected correctly.  It was connected to one windows 7 pc about a week ago and worked but now I tested it on 2others

    It is a 64 GB Iphone 5s and I am running Windows 7 x64 on all of my pcs.
    I just got an iphone 5s and now it wont connect to any of my windows 7 PCs, it just gets detected as an unknown device and is unable to be detected correctly.  It was connected to one windows 7 pc about a week ago and worked but now I tested it on 4 other computers including a macbook running osx and it isnt detected.  I tried the whole Apple Guide and it was no help.

    install the latest version of itunes

  • I just used stellar phoenix mac data recovery and it seemed to work but now my files won't open.  Even though they are "jpeg, mov" files the error message is  could not be opened. The movie's file format isn't recognized. "  Any help or are they corrupted

    I just used stellar phoenix mac data recovery and it seemed to work but now my files won't open.  Even though they are "jpeg, mov" files, the error message is  "could not be opened". The movie's file format isn't recognized. "  Any help or are they corrupted?

    Sounds to me like the file is probably corrupt. If you had hard drive corruption or damage, that could easily result in recovered files not being fully intact. If you were trying to recover accidentally deleted files, it's possible they might have been partially overwritten before recovering. There are never any guarantees with file recovery.
    Without more information on the circumstances that led you to try recovery, it's hard to give advice on what to try from here. You could always try another file recovery tool, like Data Rescue 3. Just be sure you're taking appropriate precautions when doing recovery. See Recovering deleted files.

Maybe you are looking for