Help, I can't get the Embedded OC4J Server to restart!

I've run into the following problem (well, actually a collegue) in that I can not get the OC4J application to restart once I kill it. She has a JSP page which will run once upon the first time JDeveloper 9i is run. However, from that point on, changes are compiled, but the I.E. page never comes up. I traced the problem down to the OC4J internal server is not being restarted. It seems the underlying reason is that somehow the embedded server gets in a state where it can't be shutdown.
I've tried directly killing it via the run manager tab, and I've even looked at task manager and in both cases, I don't see anything corresponding to the server. Even restarting JDeveloper proper doesn't seem to clear it.
Any thoughts?
Thanks.
Please post here, and email me at [email protected]
Dave Blake

I assume you are asking about JDev 9.0.2. If it's another version, please let me know. I can offer some suggestions based on the most likely causes:
1) Try disabling the proxy server in JDev. Go to Tools | Preferences - Proxy Server, and uncheck the "Use HTTP Proxy Server" checkbox. You will have to quit and relaunch JDev for the change to get picked up. Then try running your JSP again.
2) Try telling JDev to use a specific hostname for your machine other than the default. Go to Tools | Preferences - Deployment, and click on the radio button that says "Specify host name:" Try putting localhost or 127.0.0.1 here. You may have to use this in combination with 1).
The embedded OC4J proces will show up in the Windows task manager as a javaw.exe process. You shouldn't have any zombie OC4J processes, but if you do end up with them and have a reproducible case, please post the steps-to-reproduce here.

Similar Messages

  • How to use the HTTP Analyzer with the embedded OC4J server?

    JDeveloper version: Studio Edition Version: 10.1.3.0.3.3412
    I have a web application, which I run in the embedded OC4J server.
    I tried to use the HTTP analyzer to inspect http requests and responses, but I could not make the analyzer work.
    I tried to setup the HTTP analyzer by looking at the help entry, but I could not make it work.
    If the HTTP analyzer works for you in the embedded OC4J server, please write the steps on how to setup the analyzer.
    (Maybe I could not make the correct settings about port numbers?)
    Thanks in advance,
    Regards,
    Turgay Zengin

    I was able to use the HTTP Analyzer by changing the proxy setting directly in Internet Options. Check the browser/proxy settings set in JDeveloper preferences and copy them to the Connections tab of Internet Options. See if that works for you.

  • Plz Help, How can I get the Information from the net conneted machine?

    Suppose Person x has login on the network by using
    dial-up network connection? I want to know that wheather he is on the network and get the data from his machine ?
    Suppose I know his username/Password and phone no
    for dial up...
    Plz, suggest me how can I do this?
    How can get information from that machine?
    Thanks
    Pramod

    Hi,
    I dont know whether I understood your question completely.Anyway,let the users be X and Y and be on diff machines,
    Since X is logging in using a dialup network the ip is allotted dynamically and so, Y cannot know X's ip till he logs in and tell Y about it explicitly. Workaround is that either X's or Y's ip must be constant/static or there should be another way that X know about the ip of Y each time he logs in.
    If X's ip is static, Y can poll certain port at X where u's alpplication is running and if conn. is succ, after some authentication, get the information u want. For writing u'r own services there should be u'r own components at both ends, one requesting connection and other accepting. Please get back to me if more doubts or if I have'nt understood u'r problem fully..
    regards Stallon

  • Error running the login sample under the embedded OC4J server

    Does anyone have any ideas why I am getting the following error:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\JDeveloper10g\jdev\system9.0.5.2.1618\oc4j-config>
    C:\j2sdk1.4.2_04\bin\javaw.exe -client -classpath C:\JDeveloper10g\j2ee\home\oc4j.jar;C:\JDeveloper10g\jdev\lib\jdev-oc4j.jar -Xverify:none -Ddisable.checkForUpdate=true -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false com.evermind.server.OC4JServer -config C:\JDeveloper10g\jdev\system9.0.5.2.1618\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    04/08/20 11:12:25 *** (WARNING) Fri Aug 20 11:12:25 CDT 2004 [Thread[Orion Launcher,5,main]] getHostTimePrefix java.net.UnknownHostException: extreme-dev: extreme-dev
    04/08/20 11:12:26 Error creating the ORB :
    04/08/20 11:12:27 java.net.UnknownHostException: extreme-dev: extreme-dev
    04/08/20 11:12:27      at java.net.InetAddress.getLocalHost(InetAddress.java:1191)
    04/08/20 11:12:27      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.sendMessage(Oc4jNotifier.java:97)
    04/08/20 11:12:27      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.postInitApplicationServer(Oc4jNotifier.java:55)
    04/08/20 11:12:27      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1585)
    04/08/20 11:12:27 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
    04/08/20 11:12:27      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
    04/08/20 11:12:27      at java.lang.Thread.run(Thread.java:534)

    I tried already and the resolution only works for a app without a db connection.
    My app required to connect to Oracle 10g db.
    Now I'm and getting this error.
    connectionjavax.naming.NameNotFoundException
    exception occurred during method invocation: oracle.oc4j.rmi.OracleRemoteException: java.lang.NullPointerException; nested exception is:
         java.lang.NullPointerException
    Caught exception: oracle.oc4j.rmi.OracleRemoteException: java.lang.NullPointerException; nested exception is:
         java.lang.NullPointerException

  • PLEASE help, I can't get the sound on the videos on my iPod to work!

    I converted them and everything because they werent in the proper format, but now when I try to play them on my iPod there's a fine picture but no sound! Somebody please help me!

    Quicktime, Quicktime Pro and iTunes don't convert "muxed" ( muxed means multiplexed where the audio and video are stored on the same track) video files properly. It only plays the video and not the audio.
    See:iPod plays video but not audio.
    You need a 3rd party converter to convert the file with both audio and video.
    Search this forum for recommendations, but beware of spammers trying to sell you their own product.

  • Ask for help: I can not get the HelloWorld example done.

    Hi,
    I followed this tutorial to start my first BPEL project using Oracle BPEL Process Manager 2.2, which is based on Eclipse SDK Version: 3.5.1:
    http://www.oracle.com/technology/obe/obe_as_1012/integration/bpel/1st_bpel_prj/1st_bpel_prj.htm
    However, it does not work. When I tried to build it, following error occurred:
    Buildfile: C:\product\10.1.3.1\OraBPEL_1\bpel\workspace\HelloWorld\build.xml
    main:
    *[bpelc] BPEL validation failed.*
    *[bpelc] BPEL source validation failed, the errors are:*
    *[bpelc]*
    *[bpelc] [Error ORABPEL-10071]: unresolved xpath function*
    *[bpelc] [Description]: in line 36 of "C:\product\10.1.3.1\OraBPEL_1\bpel\workspace\HelloWorld\HelloWorld.bpel", could not resolve xpath function "",*
    because function "bpws:getVariableData" not registered.
    *[bpelc] [Potential fix]: please make sure to register this function in xpath-functions.xml file located under domain config directory and make sure that*
    function prefix is mapped to correct namespace in <process> activity.
    *[bpelc] .*
    BUILD FAILED
    C:\product\10.1.3.1\OraBPEL_1\bpel\workspace\HelloWorld\build.xml:28: Validation error
    Total time: 140 milliseconds
    I searched and found many solutions in this forum, but none of them works. Would anybody help, PLZ? Millions of thanks!

    And the other problem is that you didn't fix the problem from your last thread correctly.
    This is wrong.
    OBT.find( findString);
    System.out.println("Searching for " + findString[i] +":" + OBT.isEmpty());Just do this already.System.out.println("Searching for " + findString[i] +":" + OBT.find( findString[i]));                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Please help - We can't get JDEV 9.0.3.1035 to work for us

    Hi, we installed and configured JDEV 9.0.3.1035 and are experiencing this persistent problem, whenever we try to run our app the second or any subsequent time:
    C:\JDEV\jdk\bin\javaw.exe -ojvm -classpath C:\JDEV\j2ee\home\oc4j.jar -Dhttp.proxyHost=DELL -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts= -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true com.evermind.server.OC4JServer -config C:\JDEV\jdev\system9.0.3.1035\oc4j-config\server.xml
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    [waiting for the server to complete its initialization...]
    Error starting HTTP-Server: Address in use: JVM_Bind
    Error creating the ORB :
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    **** Warning: JDeveloper timed out waiting for OC4J to startup.
    **** Please check your HTTP proxy server settings in the IDE Preferences dialog.
    Embedded OC4J startup time: 120156 ms.
    This is happening since we switched from JDEV 9.0.2 which always started up cleanly. It appears that the port is not being released on OC4J server termination. We are not running any other web servers and verified that there are no open ports with netstat -a.

    Hi Raghu, thank you for your response and help.
    Here is the beginning of the log from the first run that works:
    C:\JDEV\jdk\bin\javaw.exe -ojvm -classpath C:\JDEV\j2ee\home\oc4j.jar -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true com.evermind.server.OC4JServer -config C:\JDEV\jdev\system9.0.3.1035\oc4j-config\server.xml
    [Starting OC4J using the following ports: HTTP=8999, RMI=23891, JMS=9227.]
    [waiting for the server to complete its initialization...]
    Embedded OC4J startup time: 3024 ms.
    Target URL -- http://martinator2.ESTAR2K:8999/eStarGlobal-eStarGlobal-context-root/servlet/com.estar.servlet.eStarMainServlet
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    doGet Character Encoding: null
    ***** NEW SESSION *****
    // Connected to Database: Microsoft SQL Server Microsoft SQL Server 2000 - 8.00.194 (Intel
    X86) Aug 6 2000 00:57:48 Copyright (c) 1988-2000 Microsoft Corporation Enterprise Edition
    on Windows NT 5.0 (Build 2195: Service Pack 2) with JDBC driver: SQLServer 2.2.0002
    Then I killed the browser session and terminated the Embedded OC4J Server .
    There was a javaw.exe task, I killed it but still get the same error. I also noticed that the Terminate Embedded OC4J Server can take quite a long time.
    Here is the log from a second run:
    C:\JDEV\jdk\bin\javaw.exe -ojvm -classpath C:\JDEV\j2ee\home\oc4j.jar -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true com.evermind.server.OC4JServer -config C:\JDEV\jdev\system9.0.3.1035\oc4j-config\server.xml
    [Starting OC4J using the following ports: HTTP=8999, RMI=23891, JMS=9227.]
    [waiting for the server to complete its initialization...]
    Error starting HTTP-Server: Address in use: JVM_Bind
    Error creating the ORB :
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    **** Warning: JDeveloper timed out waiting for OC4J to startup.
    **** Please check your HTTP proxy server settings in the IDE Preferences dialog.
    Embedded OC4J startup time: 120173 ms.
    Target URL -- http://martinator2.ESTAR2K:8999/eStarGlobal-eStarGlobal-context-root/servlet/com.estar.servlet.eStarMainServlet
    Process exited.
    Here is the result of netstat -a. Note four references to port 8999 even after I terminate the OC4J server:
    Active Connections
    Proto Local Address Foreign Address State
    TCP martinator2:epmap dell.ESTAR2K:0 LISTENING
    TCP martinator2:microsoft-ds dell.ESTAR2K:0 LISTENING
    TCP martinator2:1047 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1061 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1079 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1175 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1180 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1232 dell.ESTAR2K:0 LISTENING
    TCP martinator2:8999 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1046 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1051 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1075 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1135 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1174 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1178 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1184 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1243 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1250 martinator2.ESTAR2K:8999 TIME_WAIT
    TCP martinator2:netbios-ssn dell.ESTAR2K:0 LISTENING
    TCP martinator2:netbios-ssn dell.ESTAR2K:0 LISTENING
    TCP martinator2:netbios-ssn dell.ESTAR2K:0 LISTENING
    TCP martinator2:1079 DELL:ldap CLOSE_WAIT
    TCP martinator2:1175 DELL:ms-sql-s ESTABLISHED
    TCP martinator2:1180 DELL:ms-sql-s ESTABLISHED
    TCP martinator2:1181 DELL:microsoft-ds TIME_WAIT
    TCP martinator2:1223 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1223 ANDY:netbios-ssn ESTABLISHED
    TCP martinator2:1227 dell.ESTAR2K:0 LISTENING
    TCP martinator2:1227 PLUTO:netbios-ssn ESTABLISHED
    TCP martinator2:1232 JOE:microsoft-ds ESTABLISHED
    TCP martinator2:8999 DELL:37723 FIN_WAIT_2
    TCP martinator2:8999 DELL:37724 FIN_WAIT_2
    UDP martinator2:epmap *:*
    UDP martinator2:microsoft-ds *:*
    UDP martinator2:1026 *:*
    UDP martinator2:1040 *:*
    UDP martinator2:1054 *:*
    UDP martinator2:1078 *:*
    UDP martinator2:1302 *:*
    UDP martinator2:1645 *:*
    UDP martinator2:1646 *:*
    UDP martinator2:radius *:*
    UDP martinator2:radacct *:*
    UDP martinator2:2967 *:*
    UDP martinator2:1062 *:*
    UDP martinator2:1063 *:*
    UDP martinator2:1139 *:*
    UDP martinator2:1185 *:*
    UDP martinator2:netbios-ns *:*
    UDP martinator2:netbios-dgm *:*
    UDP martinator2:isakmp *:*
    UDP martinator2:netbios-ns *:*
    UDP martinator2:netbios-dgm *:*
    UDP martinator2:isakmp *:*
    UDP martinator2:netbios-ns *:*
    UDP martinator2:netbios-dgm *:*
    UDP martinator2:isakmp *:*

  • Setting a deployment context when using the embedded OC4J

    I'm trying to debug a servlet using the embedded OC4J server. I have a simple project that includes a servlet source file and and a web.xml file. The web.xml file defines context
    parameters that I want the servlet to read and use when it is deployed. However I don't know
    how to get JDeveloper to set up the servlet context on the debugging environment to use the
    contents of the web.xml file. Could anyone tell me how to do this? I cannot see how to
    do this from the help files.
    Many thanks in advance

    The trick is to ensure that you use a 'Project with Web Module' rather than
    'Empty Project' and then add a new 'HTTP Servlet'. When you do this
    JDeveloper automatically creates a web.xml file. You can add context
    parameters, or practically any other configuration items by right clicking
    on the web.xml tree node inthe system navigator and selecting settings.
    The web.xml file is saved into the directory specified by the 'HTML Root Directory' on the 'Input Paths' panel in the project settings dialog.

  • Embeded Oc4j server not starting up in Jdeveloper 10g 10.1.3.0.3

    hi,
    I have created simle hello.jsp , but i try to run it with the embedded OC4j server i get the following error .
    C:\jdk1.4\bin\javaw.exe -client -classpath C:\jdev\j2ee\home\oc4j.jar;C:\jdev\jdev\lib\jdev-oc4j-embedded.jar -Dhttp.proxyHost=172.16.233.34 -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=local.|localhost|127.0.0.1 -Dhttps.proxyHost=172.16.233.34 -Dhttps.proxyPort=8080 -Dhttps.nonProxyHosts=local.|localhost|127.0.0.1 -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\jdev\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Sep 30, 2005 6:23:17 PM com.evermind.server.XMLDataSourcesConfig parseRootNode
    INFO: Legacy datasource detected...attempting to convert to new syntax.
    Error: cannot read: java.lang.Enum
    05/09/30 18:23:23 Application: system is in state FAILED
    05/09/30 18:23:23 Error initializing server: Error initializing ejb-modules: Error loading module file:/C:/jdev/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/applications/admin_ejb.jar: Syntax error in source or compilation failed in: C:\jdev\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\application-deployments\admin_ejb\generated\MBeanServerEjbRemote_StatefulSessionBeanWrapper0.java
    Error: cannot read: java.lang.Enum
    05/09/30 18:23:24 Fatal error: server exiting
    Process exited with exit code 1.
    Can anyone help

    The 10.1.3 version of JDeveloper (and the embedded OC4J) requires JDK 5.0 to run.
    You can however set your project to work with JDK 1.4 in the project properties.

  • JDBC datasoure that works for embedded OC4J server of JDeveloper 10.1.3.4

    Hi all,
    I have this in the Application Module as JDBC datasource: java:comp/env/jdbc/DBCON
    That works fine if I deploy the application on Oracle application- or tomcat-server.
    On the connections tab in JDeveloper I have made a database connection with the name DBCON.
    But when I run the application from Jdeveloper with the embedded OC4J server I get this error:
    Unable to lookup Data Source at context java:comp/env/jdbc/DBCON
    What do I do wrong?
    Thanks in advance.

    Hi,
    Edit the <application_name>-data-sources.xml file under the root directory of your application, and setup a managed data source and connection pool with the data source having the correct jndi name, eg. jdbc/DBCON
    You can either do this manually (which I find easier), or use the tool within JDev
    Tools - > Embedded OC4J Preferences -> Current Workspace -> Data Sources -> New
    -chris

  • JDeveloper 10.1.3.3 and Embedded OC4J server

    This is the Embedded OC4J server on JDeveloper 10.1.3.3 I have pointed it to compile in Java SDK 1.4.2_14
    I have set up the projects datasources to use the JDBC driver ojdbc14.jar
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    C:\jdev\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config>
    C:\j2sdk1.4.2_14\bin\javaw.exe -ojvm -classpath C:\jdev\j2ee\home\oc4j.jar;C:\jdev\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\jdev\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    *WARNING: Code-source C:\jdev\jdbc\lib\ojdbc14.jar (from <library> in /C:/jdev/jdev/mywork/NJTransit/NJTransit-oc4j-app.xml) has the same filename but is not identical to /C:/jdev/jdbc/lib/ojdbc14dms.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.root:0.0.0.
    *Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 4421 ms.
    Target URL -- http://207.200.160.250:8988/NJTransit-NJTransit-context-root/index.jsp
    12/03/08 14:58:05 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
    My question is why is it having trouble distinguishing between ojdbc14.jar and ojdbc14dms.jar
    as a result I am getting unexpected behavior from the Application
    Declaration in my code
    int mypidm;
    String sql1 = "SELECT SPRIDEN_PIDM FROM SPRIDEN WHERE SPRIDEN_ID = UPPER(?)";
    try{
    PreparedStatement pstmt = conn.prepareStatement(sql1);
    pstmt.setString(1, studid);
    ResultSet rs;
    rs = pstmt.executeQuery();
    //mypidm = rs.getInt("SPRIDEN_PIDM");
    This part of the code drops through i.e. rs.next() always gets a false result
    while (rs.next()) //evaluates to false so mypidm is always zero.
    mypidm = rs.getInt("SPRIDEN_PIDM");
    I am thinking that these two things are related.
    Any Thoughts.

    The tables are not created by default. You can configure your persistence.xml to define how you want tables to be created. The persistence.xml properties are defined in the TopLink class, EntityManagerFactoryProvider (oracle.toplink.<essentials>.ejb.cmp3).
    Set the property, "toplink.ddl-generation" to "drop-and-create-tables" if you want them recreated every time your redeploy. Note this will delete all previous data in the tables, so make sure you do not leave this setting on when you go into production.

  • BUG: JDev 10.1.3.0.4 Embedded OC4J Server Preferences

    If we specify in the Embedded OC4J Server Preferences->startup a OC4J installation to use for running and debbuging, click ok, and then delete the choosen directory and try again to access the Embedded OC4J Server Preferences, an error occurs. Appears an dialog and we can not alter this anymore.

    Hi,
    not sure on the limitation of dbms_output.put, but 4000 characters happens to be the maximum size of a varchar2 column....
    I normally use dbms_output.put_line for debugging PL/SQL.
    You could also post in the database forum if you have no luck here.
    regards,
    Brenden

  • SQL not showing in Embedded OC4J Server window

    Previously, when we'd run a page through JDeveloper, the sql statements that were used to execute the query would appear in the Embedded OC4J Server window in JDeveloper. Now they no longer appear (along with a lot of other logging data that used to appear). Is there a configuration setting somewhere to make this info appear again?

    There is no such setting for OC4J log. Are you sure that you are looking at the right tab because there are generally 3 tabs on the bottom most log window which are Messages, Compiler and Embedded OC4J Server.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Can I use your Embeded LDAP Server?

    Hi,
    WebLogic Server 7.0 and 8.1 comes with an embedded LDAP Server?
    I have an application that requires iPlanet Directory Server for 7000 entries.
    Can I use the embedded LDAP Server to put my own entries and use it?
    Regards,
    Shanmugavel R P

    Are these videos on mozilla.org somewhere? Please see the last section of the following page, on "Site Licensing": http://www.mozilla.org/about/legal.html

  • My LCD screen burned out. I have it connected to a tv now, but can't get the menu bar or the function bars to show up. Please help!

    My LCD Screen burned out, but the computer still works. I currently have it connected to an HDTV via, Mini DVI to VGA, VGA to VGA on the tv. Problem is, I can't get the function bar (maybe not the right term) or the bar at the bottom with all my programs on it. I get my screen saver and have managed to drag (by sheer luck since I can't see anything on my iMac screen) some of my pics I had on my desktop over, but nothing else. Please help!

    Hello
    you should have on your key board "mirroring key" , or F7 on old keyboard
    for now your tv is an extended screen for your imac not a miror , so you can not see menue barre on top of screen
    http://docs.info.apple.com/article.html?path=Mac/10.5/en/8525.html
    HOPE you are in 10.6
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/8525.html
    "On some keyboards, you can press the F7 key, or Command-F1, as a shortcut to turn video mirroring on or off."
    HTH
    Pierre

Maybe you are looking for