Run logic AFTER oc4j started

My J2EE requires a lot of initialization action for data caching and resources preload. Typically, this initialization action takes 5 mins to finish. I execute this action in my servlet's init() function, which is invoked during OC4J. However, in my oc4j, I need to run 5 J2EE applications of this kind. It means my OC4J takes 25 mins to start. It makes my oc4j 'seems to be' failed to start for most of the time.
Apart from servlet's init() and startup class, is there any way I can execute my initialization actions AFTER oc4j startup? It can at least make my oc4j start normally and timely. Thx

There's no inherent functionality in OC4J that can do this for you. I think you need to look at your architecture -- if this was me, I'd be offloading the work to a MDB or something of that manner so it can be executed asynchronously and in parallel. The tricky bit there is to work out how to stop the corresponding applications from being used until there cache initialization is completed, and perhaps also sharing the cache between the worker and the consumer. You could synchronize the application aliveness on a file, or perhaps use an MBean in which an active attribute is checked by the application and updated from the end result of the MDB processing.
-steve-

Similar Messages

  • TS3212 I get the file download window and I push "run", but after it starts to install, I get a window that says that they was a problem with the installation and I need to check with the manufacturer of my software. WHat does that mean?

    I get to the file download window to install itunes and push run, but after it starts to install, it stops and I get an error message that installation can no continue and everything is uninstalled. It tells me to check with my software company to resolve. What does that mean?

    Repair your Apple software update.
    Go to START/ALL PROGRAMS/Apple Software Update. If it offers you a newer version of Apple Software Update, do it but Deselect any other software offered at the same time. Once done, try another iTunes install
    If you don't find ASU, go to Control Panel:
    START > CONTROL PANEL > Add n Remove Programs / highlight ASU and click CHANGE then REPAIR,

  • How to run class after Tomcat starts?

    Hello!,
    I want to run a class after Tomcat start.
    How can I achieve?
    Reg,
    Chetan

    Well the official way to do it it to create a class which implements org.apache.catalina.LifecycleListener. Then you can name the class in a <Listener> element in server.xml. It can appear at various levels e.g. inside the Engine block, and it will receive notification when that level starts and stops.

  • Auto-Run Code on OC4J start

    Hi,
    Is is possible to Auto-Run a piece of code, either by
    calling a method on a Session bean or calling a Servlet,
    when OC4J is started up?
    Cheers,
    Ro

    Hi
    You can also use a servlet that implements ServletContextListener - this fires before the application server opens up for user requests. Great for loading lookup codes, etc....

  • How to Recover a running composites after system crash?

    The Weblogic server has unexpected restart while some long-time composites were running.
    After Weblogic started again, those composites had state "Running". But nothing changes. They never neither finish neither fault.
    Is there a something necessary to configure in weblogic, or composites to successfully continue all running composites after system start-up after a crash?

    Hi there,
    please have a look at http://download.oracle.com/docs/cd/E15586_01/integration.1111/e10226/bp_mang.htm#BABCEIBC.
    In section "13.4 Performing BPEL Process Service Engine Message Recovery" you can read how a manual recovery of undelivered invoke or callback messages due to a transaction rollback in the process instance can be performed. Please have a look an let me know if it helpful for you.
    Best regards,
    Danilo

  • After a start-up I'm told "Firefox update cannot be completed, Please close existing Firefox. There is no other Firefox running after a fresh start-up.

    If Firefox is sending me updates they won't come thru because I'm told that Firefox is already running. I get this message whether it is the first time I'm using it for the day or even after a start-up. This started about two days ago.

    Hi,
    Please try this: https://www.mozilla.org/en-US/firefox/new/

  • Issue while running page OC4J start up failed.

    Hi,
    I am working on two instances one is Local and another is in abroad.
    Now when I am running simple Hello World Page by giving Local Instance connections The page is loading quickly and running fine.
    Now when I am running the same Hello World Page by giving Abroad Instance connections The page load is taking almost 9-10 mins and running fine.
    In the above cases what might be the issue with Abroad Instances for loading page.
    1) Is it the Network Issue?
    2) Is it the OC4J Issue?
    Can anyone breif this senario and how to over come this issue.
    And one more Issue is
    Took the remote desktop of the Abroad Machine Installed JDeveloper in it and while running the Hello World page the Message OC4J start up failed is getting popedup in the Message.
    In which cases we will get OC4J start up failed error.
    Thanks,
    Krishna
    Edited by: user1000 on Feb 7, 2011 5:29 AM

    I am working on two instances one is Local and another is in abroad.What is your application release?
    In the above cases what might be the issue with Abroad Instances for loading page.
    1) Is it the Network Issue?Could be one or more.
    Can you reproduce the issue with other Self-Service pages? Any performance issues with forms?
    2) Is it the OC4J Issue?What about local users who access the same page from the same network, do they encounter the same performance issues?
    Can anyone breif this senario and how to over come this issue.Before investigating the performance issues with the instance/server (which are discussed many times in the forum, so just search old threads for performance tuning and you will get many hits), I would suggest you answer the above two questions to determine whether this is a network issue or an instance/server issue.
    And one more Issue is
    Took the remote desktop of the Abroad Machine Installed JDeveloper in it and while running the Hello World page the Message OC4J start up failed is getting popedup in the Message.
    In which cases we will get OC4J start up failed error.What is the error?
    Thanks,
    Hussein

  • Logic won't start up after updating to 7.2.3

    Hi guys,
    Sorry to bug you again with problems but I am stuck. I just updated to 7.2.3 and now logic will not start up at all. All I get is the "The application quit unexpectedly... Would you like to: Reopen ... When I look at the crash logs in the console this is what I see, however I can't make any sense out of it:
    Host Name: **-power-mac-g5
    Date/Time: 2007-08-08 22:20:40.110 -0400
    OS Version: 10.4.10 (Build 8R218)
    Report Version: 4
    Command: Logic Pro
    Path: /Applications/Logic Pro.app/Contents/MacOS/Logic Pro
    Parent: WindowServer [72]
    Version: 7.2.3 (961.9)
    Build Version: 14
    Project Name: Logic
    Source Version: 9610900
    PID: 260
    Thread: 0
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNINVALIDADDRESS (0x0001) at 0x72537760
    Thread 0 Crashed:
    0 <<00000000>> 0x72537760 0 + 1918072672
    1 <<00000000>> 0x014fc26c 0 + 22004332
    2 <<00000000>> 0x014fc158 0 + 22004056
    3 <<00000000>> 0x014fc038 0 + 22003768
    4 <<00000000>> 0x014fc000 0 + 22003712
    5 com.apple.CoreGraphics 0x903fcf40 CPSRegisterWithServer + 576
    6 com.apple.HIServices 0x918419d4 RegisterProcess + 76
    7 com.apple.HIServices 0x91841840 INIT_Processes + 188
    8 com.apple.HIServices 0x91841748 GetCurrentProcess + 56
    9 com.apple.logic.pro 0x001ec9e4 0x1000 + 2013668
    10 com.apple.logic.pro 0x0000b968 0x1000 + 43368
    11 com.apple.logic.pro 0x00003224 0x1000 + 8740
    12 com.apple.logic.pro 0x000030cc 0x1000 + 8396
    Thread 0 crashed with PPC Thread State 64:
    srr0: 0x0000000072537760 srr1: 0x100000000000f030 vrsave: 0x0000000000000000
    cr: 0x24200204 xer: 0x0000000000000000 lr: 0x00000000014fc20c ctr: 0x0000000000000000
    r0: 0x0000000072537761 r1: 0x00000000bffff500 r2: 0x0000000000000e03 r3: 0x00000000014fc1e0
    r4: 0x00000000014fcf5d r5: 0x00000000bffff578 r6: 0x0000000000000034 r7: 0x0000000000000e03
    r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x000000000312f5c0 r11: 0x00000000afdf2a28
    r12: 0x0000000000000000 r13: 0x00000000014fcf49 r14: 0x0000000000000000 r15: 0x0000000000000000
    r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000000000 r19: 0x0000000000000000
    r20: 0x0000000000000000 r21: 0x00000000a038cd08 r22: 0x00000000a038cd08 r23: 0x0000000000000104
    r24: 0x00000000a0390670 r25: 0x0000000000000002 r26: 0x00000000bffffd8c r27: 0x00000000afdedfe8
    r28: 0x0000000000000180 r29: 0x0000000080001513 r30: 0x00000000bffff730 r31: 0x00000000904009b4
    Binary Images Description:
    0x1000 - 0xd8efff com.apple.logic.pro 7.2.3 (961.9) /Applications/Logic Pro.app/Contents/MacOS/Logic Pro
    0x141a000 - 0x146dfff com.apple.LogicLoopBrowser 7.2 (16.3) /Applications/Logic Pro.app/Contents/Frameworks/LogicLoopBrowser.framework/Versions/A/LogicLoopBrow ser
    0x1497000 - 0x14a2fff libaafintp.dylib /Applications/Logic Pro.app/Contents/Frameworks/libaafintp.dylib
    0x14b1000 - 0x14c2fff com.apple.EHardwareSupport 1.0.0 (21. /Applications/Logic Pro.app/Contents/Frameworks/EHardwareSupport.framework/Versions/A/EHardwareSupp ort
    0x1605000 - 0x16a4fff com.apple.eloop 3.1.0 (24. /Applications/Logic Pro.app/Contents/Frameworks/ELoop.framework/Versions/A/ELoop
    0x1736000 - 0x178efff libaafpgapi.dylib /Applications/Logic Pro.app/Contents/Frameworks/libaafpgapi.dylib
    0x2008000 - 0x2268fff libcom-api.dylib /Applications/Logic Pro.app/Contents/Frameworks/libcom-api.dylib
    0x25d4000 - 0x2638fff com.apple.ecore 1.1.0 (44.4) /Applications/Logic Pro.app/Contents/Frameworks/ECore.framework/Versions/A/ECore
    0x8fe00000 - 0x8fe52fff dyld 46.12 /usr/lib/dyld
    0x90000000 - 0x9018ffff com.apple.prokit 4.0.1 (689.2) /System/Library/PrivateFrameworks/ProKit.framework/Versions/A/ProKit
    0x90293000 - 0x90344fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x90373000 - 0x9072efff com.apple.CoreGraphics 1.258.75 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x907bb000 - 0x90894fff com.apple.CoreFoundation 6.4.7 (368.2/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFounda tion
    0x908dd000 - 0x908ddfff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x908df000 - 0x909e1fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
    0x90a3b000 - 0x90abffff libobjc.A.dylib /usr/lib/libobjc.A.dylib
    0x90ae9000 - 0x90b5bfff com.apple.framework.IOKit 1.4 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x90b71000 - 0x90b83fff libauto.dylib /usr/lib/libauto.dylib
    0x90b8a000 - 0x90e61fff com.apple.CoreServices.CarbonCore 681.15 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x90ec7000 - 0x90f47fff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x90fe7000 - 0x90ffffff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServ icesCore.framework/Versions/A/WebServicesCore
    0x9100f000 - 0x91090fff com.apple.SearchKit 1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x910d6000 - 0x910fffff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x91110000 - 0x9111efff libz.1.dylib /usr/lib/libz.1.dylib
    0x91121000 - 0x912dcfff com.apple.security 4.6 (29770) /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x913db000 - 0x913e4fff com.apple.DiskArbitration 2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x913eb000 - 0x913f3fff libbsm.dylib /usr/lib/libbsm.dylib
    0x913f7000 - 0x9141ffff com.apple.SystemConfiguration 1.8.3 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x91432000 - 0x9143dfff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x91442000 - 0x914bdfff com.apple.audio.CoreAudio 3.0.4 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x914fa000 - 0x914fafff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    Any help with this is greatly appreciated... I really don't feel like reinstalling from scratch logic
    Thank you in advance.
    p.s. THe machine is dual g5 2ghz, w/ 2.5gb ram. Interface is Metric Halo ULN-2, with only a Mackie Control Universal and a M-Audio Keystation 49 midi controllers connected.
    tim

    hi xs4is, thanks for the reply
    No, that's not the problem, I mean it installs perfectly from the DVD -- no errors, no indication of any problems whatsoever, however when I double click the app to start logic up, instead of starting up I get the error message: The Application Logic Pro has unexpectedly quit. What would you like to do: Close, Reopen, blah blah, not even a splash screen shows up. nothing. I am using Onyx on a regular basis and have been running all cleanup and optimization scripts in it. didn't help at all. And I really don't want to create a second user on my machine -- it's only my machine, nobody else uses it, and I have only had problems with multipe users in the past (especially with authorizations and stuff), but I also don't think it has anything to do with accounts
    Message was edited by: phile

  • I tried to update the latest software update for my MacBook pro (which was on 10/12) and after it started to update it restarted like normal but when it started back up it was running painfully slow and none oft programs will open.They all quit unexpectal

    I tried to update the latest software update for my MacBook pro (which was on 10/12) and after it started to update it restarted like normal but when it started back up it was running painfully slow and none oft programs will open.They all quit unexpectedly. iTunes microsoft word all of them quit unexpectedly. Help!

    Exact same problem with my 2010 MBP 2.4ghz 4gb ram 10.6.8. iTunes said update was needed, Software Update ran with various updates including a security update, truthfully didn't pay much attention, I always install the Apple updates. After the restart it took 3-4 times longer than normal to get to the login screen, same to get to the desktop but I'm familiar with that occurring on update restarts. Unfortunately it got worse from there. Performed a full shutdown and startup. Same long boot.  After the desktop finally loads every mouse button press received a 2 minute beachball. I use menu-meters and both processors are under 10%. Waited a few minutes for disk utilities to launch, repair permissions estimates 3 hours for a typical <10 minute process. Activity monitor shows nothing over 10% CPU most of the time however ReportCrash pops to the top often. Any suggestions would be greatly appreciated. BTW zero problems until this update.

  • After upgrading to 8.0 the add-on compatability tool runs and the Getting Started web page loads every time the browser starts.

    After upgrading to 8.0 from 7.0.1 every time I start FF I get the add-on compatibility tool to run and the Getting Started web page loads along with my homepage in separate tabs as well. So far I have tried running the installer again, disabling all add-0ns and custom settings and restarting and turning off automatic updates. Nothing worked there. I got the same behavior each time. I don't know what else to try other than a full uninstall and reinstall. Something I'd like to avoid if it's possible because of the time involved. This is the second time I have posted regarding this issue. The first time I didn't get a response. A solution or a possible workaround would be greatly appreciated if anyone knows of any. As a staff member and a global forum moderator for an anti-virus company I understand how hectic things can be at times but some feedback, good or bad, on this issue would be very welcomed! Regards, Ritchie...

    Hi michaell, thanks for the reply. I tried everything in the Preferences are not saved link you provided and nothing worked there. If creating a new profile will delete all my add-ons and custom settings I might as well just do a complete uninstall and reinstall. That actually would be easier. That article told me how to save my bookmarks though so I don't have to loose those which is nice. I don't know if this makes any difference but there is a discrepancy between the preference file in the article which is: prefs.js and what's showing on my PC which is: prefs with no .js suffix. I tried to rename the file to prefs.js and restarted. No luck there either. It just created another prefs file. I guess we've pretty much exhausted all the avenues to try! I'm just going to go ahead and do a reinstall when I get the time. Thanks so much for your help michaell. I do appreciate the effort. Regards, Ritchie...

  • Since yesterday I am facing problem,when it goes in sleep mode it actually turn off and does not come up after pressing start button but every time I have to hard reset it.It is 4 gen running on 4.3.3

    Since yesterday I am facing problem,when it goes in sleep mode it actually turn off and does not come up after pressing start button but every time I have to hard reset it to turn it on .It is 4 gen running on 4.3.3.Please help

    so I have called HP tech support 12 times over the last 6 weeks and still my HP Officejet 4620 loses connection overnight. Of course becasue it was a birthday present I spent more time than I normally would have on this issue. While the tech are very polite they have not fixed my problem and now it is too late to return printer to store. This is a lot of money wasted and I think they need to admit this is a bug in this printer and resolve the problem!!!!!

  • Computer Shuts Down When Running Logic

    this just started. while running logic, the computer shuts down to where i can restart it unless i pull plug and let it recycle. a friend of mine thought it was the power supply, possibly the the cpu intense program is too much on p supply. he had me change in energy saver under options proccesor performance to reduced. but still shutting down. anyone have any clue where i should start trouble shooting or what this couyld be. i'm not ready for a new computer yet. i wouldn't mind buying a new power supply of i knew for sure it was that. i can get it to shut down in any other applications.
    thanks

    cleaned out dust, fans sound like they're working
    ran Apple Hardware Test extended and it looked like it passed everything. it just stopped after 1hour 43 minutes.
    what do you think is the next step. a tech said he would charge me 50 to run a diagnostic on it. he thinks its one of the cpu. will a diagnostic be my next step?
    thanks

  • SOA Suite 11g TP4 "Configure SOA" step fails, after OC4J startup successful

    I followed the installation instructions and got stuck in step 10d.
    The build fails after announcing "*Trying to override old definition of task admin_client*", Oc4j has already started successfully.
    The soa-infra-java.log file shows the publishing of shared libraries to fail because two libraries aren't found:
    - apache.commons.fileupload
    - oracle.fabric.runtime
    The first is on the BAM import list, the other is for B2B. I did specify "Configure Basic SOA Components" though.
    Both of these errors are announced as WARNING, but the build fails and SOA configuration is announced as failed too.
    The startsoa.log file has several WARNINGs, including some SEVERE ones:
    ---snip---snip---
    19-mei-2009 9:59:32 oracle.j2ee.xml.XMLMessages warningException
    WARNING: Exception Encountered
    09/05/19 10:00:27 SEVERE: AbstractInfo.getAnnotation oracle.webservices.annotations.async.AsyncWebService cannot be found in the given classpath.
    09/05/19 10:00:27 SEVERE: AbstractInfo.getAnnotation oracle.webservices.annotations.async.AsyncWebService cannot be found in the given classpath.
    19-mei-2009 10:00:29 oracle.j2ee.util.AnnotatedLogger logWithThrowable
    WARNING: J2EE JNDI-00002
    19-mei-2009 10:00:29 oracle.j2ee.util.AnnotatedLogger log
    WARNING: No javax.jms.ConnectionFactory found at null
    19-mei-2009 10:00:30 oracle.j2ee.deployment.DeploymentMessages warningDuplicateServletMapping
    WARNING: There are multiple mappings for servlet name: WSRPServiceDescriptionService, but only the first one (/portlets/WSRPServiceDescriptionService) will be considered for webservice endpoint
    19-mei-2009 10:00:30 oracle.j2ee.deployment.DeploymentMessages warningDuplicateServletMapping
    WARNING: There are multiple mappings for servlet name: WSRP_v2_ServiceDescription_Service, but only the first one (/portlets/WSRP_v2_ServiceDescription_Service) will be considered for webservice endpoint
    19-mei-2009 10:00:30 oracle.j2ee.deployment.DeploymentMessages warningDuplicateServletMapping
    WARNING: There are multiple mappings for servlet name: WSRPServiceDescriptionService, but only the first one (/portlets/WSRPServiceDescriptionService) will be considered for webservice endpoint
    19-mei-2009 10:00:30 oracle.j2ee.deployment.DeploymentMessages warningDuplicateServletMapping
    WARNING: There are multiple mappings for servlet name: WSRP_v2_ServiceDescription_Service, but only the first one (/portlets/WSRP_v2_ServiceDescription_Service) will be considered for webservice endpoint
    19-mei-2009 10:01:11 oracle.j2ee.xml.XMLMessages warningException
    WARNING: Exception Encountered
    09/05/19 10:01:15 SEVERE: AbstractInfo.getAnnotation oracle.webservices.annotations.async.AsyncWebService cannot be found in the given classpath.
    09/05/19 10:01:15 SEVERE: AbstractInfo.getAnnotation oracle.webservices.annotations.async.AsyncWebService cannot be found in the given classpath.
    19-mei-2009 10:01:17 oracle.j2ee.util.AnnotatedLogger logWithThrowable
    WARNING: J2EE JNDI-00002
    19-mei-2009 10:01:17 oracle.j2ee.util.AnnotatedLogger log
    WARNING: No javax.jms.ConnectionFactory found at null
    19-mei-2009 10:01:18 oracle.j2ee.deployment.DeploymentMessages warningDuplicateServletMapping
    WARNING: There are multiple mappings for servlet name: WSRPServiceDescriptionService, but only the first one (/portlets/WSRPServiceDescriptionService) will be considered for webservice endpoint
    19-mei-2009 10:01:18 oracle.j2ee.deployment.DeploymentMessages warningDuplicateServletMapping
    WARNING: There are multiple mappings for servlet name: WSRP_v2_ServiceDescription_Service, but only the first one (/portlets/WSRP_v2_ServiceDescription_Service) will be considered for webservice endpoint
    19-mei-2009 10:01:18 oracle.j2ee.deployment.DeploymentMessages warningDuplicateServletMapping
    WARNING: There are multiple mappings for servlet name: WSRPServiceDescriptionService, but only the first one (/portlets/WSRPServiceDescriptionService) will be considered for webservice endpoint
    19-mei-2009 10:01:18 oracle.j2ee.deployment.DeploymentMessages warningDuplicateServletMapping
    WARNING: There are multiple mappings for servlet name: WSRP_v2_ServiceDescription_Service, but only the first one (/portlets/WSRP_v2_ServiceDescription_Service) will be considered for webservice endpoint
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    [TopLink Info]: 2009.05.19 10:01:35.477--ServerSession(12473995)--TopLink, version: Oracle TopLink - 11g Technology Preview 4 (11.1.1.0.0) (Build 080422)
    [TopLink Info]: 2009.05.19 10:01:36.384--ServerSession(12473995)--userprefs login successful
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    19-mei-2009 10:01:51 oracle.j2ee.xml.XMLMessages warningException
    WARNING: Exception Encountered
    19-mei-2009 10:01:51 oracle.j2ee.xml.XMLMessages warningException
    WARNING: Exception Encountered
    ---snip---snip---
    Question:
    - Java 5 or 6?
    - The preferences are set to use the integrated OC4J, the log refers to "standalone oc4j".
    - How is oc4j started? Must the Environments variables be set through the system properties or on a startup script for JDev?
    Bert laverman
    PS
    You might want to update the page header on the installation instructions to show "Tech Preview 4" instead of 3. Document title at start is correct though.

    Hello,
    I am running into same errors. Were you able to resolve your problem?
    Mustafa

  • Please I can not get a .jar file to run on XP SP3 start/run/cmd/

    I can not get a .jar file to run on XP SP3 start/run/cmd/
    Please help if can figure this out. I'm convinced it is a Windows XP SP3 problem from searching on google and seeing other ppl on XP SP3 with same problem (but no working solution for myself). I'll try to be complete-listing all I've done.
    I had installed: Java SE Runtime Environment v6u14 for Windows Multi-language
    I had checked here it was working properly: http://www.java.com/en/download/manual.jsp
    I'm trying to run this jar file (soht-client-0.6.2.jar):
    http://prdownloads.sourceforge.net/telnetoverhttp/soht-java-client-0.6.2.zip?download
    http://www.ericdaugherty.com/dev/soht/javaclient.html < this is the information for the program.
    (yes the file can be executed and should open the program's window
    I wanted to post screenshot of it but friend that it's working for isn't here)
    _(Please find log of all cmds I did in this post here: http://pastebin.com/f792983df )_
    _I have extracted +'all' the files to: C:\062\+_ (I have tried using other directories, same problem)
    ++I then start/open/run/cmd+
    then I: cd C:\062\+
    then I try various commands - all+ of these do absolutely nothing- meaning no errors, no reply, no window opens, nothing except enters that directoy again:
    java -jar soht-client-0.6.2.jar
    java -jar -client soht-client-0.6.2.jar
    java -client -jar soht-client-0.6.2.jar
    java -jar soht-client-0.6.2.jar soht.properties
    soht-client-0.6.2.jar
    So I try this cmd: java soht-client-0.6.2.jar
    Reply:
    C:\062>java soht-client-0.6.2.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: soht-client-0/6/2/jar
    Caused by: java.lang.ClassNotFoundException: soht-client-0.6.2.jar
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: soht-client-0.6.2.jar. Program will exit.
    I try this cmd:
    java -jar soht-client-0.6.2.jar -client
    Reply:
    C:\062>java -jar soht-client-0.6.2.jar -client
    Unable to load configuration file: -client - java.io.FileNotFoundException: -cli
    ent (The system cannot find the file specified)
    SOHT Java Client
    The SOHT Java Client requires a properties file. Either start
    the application in the same directory as the soht.properties
    file, or specify the file name on the command line:
    java -jar soht-cleint-<version>.jar c:\soht.properties
    So then I do these cmds which produce the exact same error/reply just above; Unable to load..:
    j_ava -jar soht-client-0.6.2.jar -client soht.properties_
    java -jar soht-client-0.6.2.jar -client C:\062\soht.properties
    So then I copy soht.properties to C root and do:
    java -jar soht-client-0.6.2.jar -client C:\soht.properties <same error as above
    Then from other information I have read I right click on the .jar file, select open with Always open with:
    _"C:\Program Files\Java\jre6\bin\javaw.exe"_
    Try again.. same problem.
    Then I do cmd:
    _"C:\Program Files\Java\jre6\bin\javaw.exe" -jar "C:\062\soht-client-0.6.2.jar"_
    does nothing, retry the other commands same thing (either nothing or those same replies)
    Then I read (http://forums.sun.com/thread.jspa?threadID=5384879) someone had the same problem as I and they solved it by uninstalling all Java/reboot/ then install JDK 6 Update 14 with NetBeans 6.5.1 start NetBeans and then it worked for them.
    So I unistalled all Java, rebooted and gave the cmd another try (before re-installing), now a new error, of course:
    C:\062>java -jar soht-client-0.6.2.jar
    'java' is not recognized as an internal or external command, operable program or batch file.
    Then I install  Java SE and NetBeans Cobundle (JDK 6u14 and NB 6.5.1) Final Release/ reboot/ open Netbeans/
    go to test java page; all is good, run cmds again -and still nothing..
    C:\062>java -version
    java version "1.6.0_14"
    Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
    Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
    I reassociate program with: C:\Program Files\Java\jre1.6.007\bin\javaw.exe_
    same thing.. nothing
    Thank you very much for your time :D_
    PS. My computer has been newly reformatted so needing another reformat I'm sure is not the solution.

    Thank you very much for your replies Taggert_77 & swmtgoet_x :D
    Taggert77_: I have never used NetBeans. I only installed it in the bundle as I had read on another post that somehow installing the bundle magically helped another user with the same problem (he didn't know why it worked after that either).
    Before XP SP3 I was able to execute .jar file through cmd prompt. Now I am not.
    This file is executable, grab it and you will see. Here is a screen shot (program in front is FlashFXP, behind is the cmd prompt and what should happen):http://www.freeimagehosting.net/uploads/53273b4ddf.jpg
    swmtgoetx_: I only did the other cmd's to try to make it spit out something, anything lol :D
    The proper cmd is simply: java -jar soht-client-0.6.2.jar
    I did give your cmd a try, and it produced nothing :( (just like the other correct cmds)
    java -client -jar soht-client-0.6.2.jar soht.properties
    Thank you again...the mystery remains
    PS. If you do a search for this you'll find an amazing amount of XP SP3 users with the same problem and no solution posted that I could find except one chap that did the unistall install order that I did above).

  • I have a new Macbook pro, about 2 months old, and at times running video, the fans starts and does not stop. how do you get it to stop.

    I have a new Macbookbook, about 2 months old, and at times running video, the fans starts and does not stop. how do you get it to stop. Also i am thinking once the video is done  the fan should be slowing down and getting quiet on its own.

    Your fan(s) will run at high speed (i.e., loudly) while video is playing, and you can't get around that.
    If your fans are not slowing down within 2-4 minutes after CPU- and/or GPU-intensive usage ends, and the application that was showing the video is still running, Quit that application. (In fact, if you're accustomed to Windows, you may not realize that simply closing a Mac application's window does not quit the application. You still need to use the Quit command in the application-name menu. There will always be a bright dot beside or below the application icon in your Dock for each application that is open.) Quit the ones you aren't using, and see whether that allows the fans to slow down without restarting the machine. If that doesn't do the trick, reset the SMC:
    http://support.apple.com/kb/HT3964?viewlocale=en_US&locale=en_US

Maybe you are looking for