Auto start web application in scheduler task

hi expert,
I 'd like to change an standard package in portal and run it in scheduler task, this is an application which is writte in HTMLB java.
I have download the package and extract it in NWDS. This application obtains the parameters from URL , ie. via
IPortalComponentRequest/IPortalComponentReponse component.
Is it possible to runing this in scheduler task service? any experience where I shall start ?
Many thanks
Ben.J.

hi, Sudha, thanks for ur reply, anyway, I have tried, but PITY me..still can't solve it, here's my code in app/web-inf/web.xml
the "/home.jsp" stated below is my main page in the application,
THANK U~
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>
default
</servlet-name>
<jsp-file>
/home.jsp
</jsp-file>
<load-on-startup>
1
</load-on-startup>
</servlet>
<welcome-file-list>
     <welcome-file>
index.jsp
</welcome-file>
     <welcome-file>
index.html
</welcome-file>
<welcome-file>
index.htm
</welcome-file>
<welcome-file>
home.jsp
</welcome-file>
</welcome-file-list>
</web-app>

Similar Messages

  • There was an error during processing of the managed application service auto-start for application pool: 'SecurityTokenServiceApplicationPool'.

    HI
    in sharepoint 2013 WFE servers event viewer i receive following error many times
    Log Name:      Application
    Source:        Microsoft-Windows-IIS-W3SVC-WP
    Date:          4/14/2015 2:23:56 PM
    Event ID:      2303
    Task Category: None
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      TSharepint2013.test.com
    Description:
    There was an error during processing of the managed application service auto-start for application pool: 'SecurityTokenServiceApplicationPool'.  Some application services may not have been processed correctly.  Please check the configuration for application
    service auto-start for the application(s) assigned to this application pool.  The data field contains the error code.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-IIS-W3SVC-WP" Guid="{670080D9-742A-4187-8D16-41143D1290BD}" EventSourceName="W3SVC-WP" />
        <EventID Qualifiers="32768">2303</EventID>
        <Version>0</Version>
        <Level>3</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-04-14T11:23:56.000000000Z" />
        <EventRecordID>183840</EventRecordID>
        <Correlation />
        <Execution ProcessID="0" ThreadID="0" />
        <Channel>Application</Channel>
        <Computer>TSharepint2013.test.com</Computer>
        <Security />
      </System>
      <EventData>
        <Data Name="ApplicationPool">SecurityTokenServiceApplicationPool</Data>
        <Binary>02000780</Binary>
      </EventData>
    </Event>
    adil

    HI
    in sharepoint 2013 WFE servers event viewer i receive following error many times
    Log Name:      Application
    Source:        Microsoft-Windows-IIS-W3SVC-WP
    Date:          4/14/2015 2:23:56 PM
    Event ID:      2303
    Task Category: None
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      TSharepint2013.test.com
    Description:
    There was an error during processing of the managed application service auto-start for application pool: 'SecurityTokenServiceApplicationPool'.  Some application services may not have been processed correctly.  Please check the configuration for application
    service auto-start for the application(s) assigned to this application pool.  The data field contains the error code.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-IIS-W3SVC-WP" Guid="{670080D9-742A-4187-8D16-41143D1290BD}" EventSourceName="W3SVC-WP" />
        <EventID Qualifiers="32768">2303</EventID>
        <Version>0</Version>
        <Level>3</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-04-14T11:23:56.000000000Z" />
        <EventRecordID>183840</EventRecordID>
        <Correlation />
        <Execution ProcessID="0" ThreadID="0" />
        <Channel>Application</Channel>
        <Computer>TSharepint2013.test.com</Computer>
        <Security />
      </System>
      <EventData>
        <Data Name="ApplicationPool">SecurityTokenServiceApplicationPool</Data>
        <Binary>02000780</Binary>
      </EventData>
    </Event>
    adil

  • OC4J 9.0.4 won't start web applications event if they marked as to be...

    OC4J 9.0.4 won't start web applications after it was restarted even if they marked as to be loaded on startup.
    I have following line in my http-web-site.xml oc4j configuration file:
    <web-app application="default" name="app" root="/app" load-on-startup="true"/>
    and in web.xml (<web-app>/<servlet>/)
    <load-on-startup>0</load-on-startup>
    But when I invoke following command:
    java -jar admin.jar ormi://localhost admin Matrox -restart
    my application won't be started after server was restarted... :( If I shut it down and start it then it will be started...
    Is this a bug? How can I fix this? Please help! SOS! Mayday!

    Can you try the "-updateConfig" option of admin.jar?
    java -jar admin.jar ormi://localhost admin Matrox -updateConfigTo my vague memory, the "-restart" option does not necessarily implies reading the config files again.

  • Include WDJ application in Scheduler task

    Hi all,
    I would like to schedule an WDJ application : I have the par file for scheduler task, and the ear for web dynpro application,
    How can I include the ear in par ? shall I do this in portapp.xml ?
    Any code snippest ?
    Thanks
    Benjamin - Ben.J.

    Ben,
    I don't think that we can a WD application to run periodically.
    But there is an option to run a job periodically using KM Scheduler and schedule the same in portal.
    You can create a KM Schedler application using NWDS and deploy this into portal. Basically, this a PAR based application.
    To schedule a job in portal: System Admin -> System Config -> Knowledge Management -> Content Management -> Global Services -> Scheduler Task -> set the time table to schedule.
    Ram

  • Failed to start web application in weblogic server 11g R1 RBACx

    Hi friends,
    I have an error when starting Oracle Identity Analitycs 11g R1, someone can help me solve the problem
    Log Weblogic Server server when starting the web application rbacx.war:
    ####<Apr 7, 2011 11:57:37 AM GMT-05:00> <Warning> <HTTP> <vkpeoplesoft000> <RbacxAdmin> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1302195457218> <BEA-101162> <User defined listener org.springframework.web.util.Log4jConfigListener failed: java.lang.IllegalStateException: Cannot set web app root system property when WAR file is not expanded.
    java.lang.IllegalStateException: Cannot set web app root system property when WAR file is not expanded
    at org.springframework.web.util.WebUtils.setWebAppRootSystemProperty(WebUtils.java:139)
    at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:118)
    at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:47)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1863)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3126)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
    at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
    at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    ####<Apr 7, 2011 11:57:37 AM GMT-05:00> <Info> <Deployer> <vkpeoplesoft000> <RbacxAdmin> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1302195457234> <BEA-149059> <Module rbacx.war of application rbacx is transitioning from STATE_ADMIN to STATE_PREPARED on server RbacxAdmin.>
    ####<Apr 7, 2011 11:57:37 AM GMT-05:00> <Info> <ServletContext-/rbacx> <vkpeoplesoft000> <RbacxAdmin> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1302195457234> <BEA-000000> <Shutting down log4j>
    ####<Apr 7, 2011 11:57:37 AM GMT-05:00> <Info> <Deployer> <vkpeoplesoft000> <RbacxAdmin> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1302195457265> <BEA-149060> <Module rbacx.war of application rbacx successfully transitioned from STATE_ADMIN to STATE_PREPARED on server RbacxAdmin.>
    See the full log:
    http://yourpaste.net/7984
    Grateful

    No wonder you are having problems. The document you have linked to is full of errors and inconsistencies.
    Anyway, find log4j.properties under your expanded war file location and update it so that
    log4j.appender.file.file=logs/rbacx.log
    is updated to point to a location that exists and is writable by weblogic, eg:
    log4j.appender.file.file=/opt/oracle/weblogic/user_projects/OIA/logs/rbacx.log

  • Stop/Start Web Application - Not redeploy

              (WLS 6.1 SP3)
              When I deploy an application using the console the JSPs are all seen as up-to-date
              and it does not need to recompile them.
              If I try to deploy it using the command line "weblogic.deploy update" the JSPs
              are always seen as out-of-date and it has to recompile them.
              Is it possible to use the command line option to start my web application without
              it having to reload the application directory and then recompile all the JSPs?
              Thanks
              Gary
              

    Hi SarathMohan,
    Thanx for the reply..
    but my web.xml file resembles the pattern of web.xml file in tomcat/webapps/examples
    even then the problem remains..
    actually i think it's something related to the org.xml.sax.SAXParseException
    if anybody knows something about this exeption..
    Please help me..

  • Starting Web Application Designer

    Is it possible to start the BEX Web Application Designer from GUI?  I know you can start BEx Query Designer by running RRMX.  Is there a similar command in BW GUI that also starts the Web Application Designer?
    Thanks.

    Hi,
    There is a no tx code to open WAD.
    You have open via srart ->Bex Explorer->Web application Designer.
    Thanks,
    Michael

  • What requirements do I need for starting web application?

    We have Oracle7.3.4 Server, Developer2000, Forms4.5, and
    Designer2000 2.1 in our company's development environment. The
    Oracle7 Server deploys on Unix. However, we try to use
    Designer2000 to creat web application.
    What requirements in term of hardwares and softwares do I need
    to start the Web applications? Our company is going to upgrade
    the Oracle Server from 7 to 8.05. Do we need different
    requirements for Web application if we upgrade?
    null

    On a webform what all local resources one can access, printer,
    hard disk etc
    Thanks
    Amir Razavi (guest) wrote:
    : Based on my experience I strongly recommend upgrading the D2K
    to
    : Forms 5.0 (6.0 is even better). The rest I think is OK. I have
    : found Webfroms based on Froms 6.0 a whole lot more stable than
    : 5.0.
    : -- Amir
    : peter (guest) wrote:
    : : We have Oracle7.3.4 Server, Developer2000, Forms4.5, and
    : : Designer2000 2.1 in our company's development environment.
    : The
    : : Oracle7 Server deploys on Unix. However, we try to use
    : : Designer2000 to creat web application.
    : : What requirements in term of hardwares and softwares do I
    need
    : : to start the Web applications? Our company is going to
    : upgrade
    : : the Oracle Server from 7 to 8.05. Do we need different
    : : requirements for Web application if we upgrade?
    null

  • Auto Start Air Application

    I know in most of the 3rd party projectors like Zinc and
    mProjector you can install an application to automatically startup
    with the O.S. How would we do that in AIR?

    startAtLogin is probably what you are looking for.
    -ted

  • Auto-start application on Container/Server restart

    What's the easiest was to have the container auto-launch a specific application whenever it is started/restarted? I assume this would also happen if the entire server were rtestarted?
    _mike                                                                                                                                                                                                                                                                                                                                                                                                   

    Hello,
    If you put a server in your project and you put the servlet at auto-start your application will start automatically when the server will start.
    To do that you just have to use the element:
    <load-on-startup>1</load-on-startup>
    in the servlet tag.
    server.xml:
    <application name="foo" path="../applications/foo.ear" auto-start="true" />
    http-web-site.xml:
    <web-app application="foo" name="foo-web" load-on-startup="true" root="/foo" />
    Regards
    Tugdual Grall

  • Auto start Java Card application

    Hello,
    is it possible to start a Java Card application from the SIM card right after the mobile is switched on?
    I talked to a guy from a SIM card manufacturer and he told me it's possible since the device checks on start if a Java Card application is present to display it in the phone's menu, but it's device dependant how it's done and if the application really will be started (which sounds kind of strange).
    Can someone give me more details if it's possible to auto start a application and how it's done ( code snippet would be great ; )?
    Thanks in advance,
    teric

    The first event after ME startup, which STK applet could catch is Terminal Profile.
    So, in applet class constructor should be smthng like
    ToolkitRegistry reg = ToolkitRegistry.getEntry();
    reg.setEvent(EVENT_PROFILE_DOWNLOAD);
    and applet will trigger on Terminal Profile arrival.

  • How to redeploy Calculation Manager Web Application Server

    Hi All,
    I am installing a patch(13925741) for Calculation Manager, i stuck at the following point:
    6. Perform the standard Calculation Manager Web application server deployment task using Hyperion Enterprise Performance Management System Configurator (EPM System Configurator). See the Oracle Hyperion Enterprise Performance Management System Installation and Configuration Guide for instructions.
    I don't know how to redeploy Calculation Manager Web Application Server, plz help me in deploying this.
    The readme for the patch can be found at:
    https://updates.oracle.com/Orion/Services/download?type=readme&aru=15356919#_Toc330987031

    909062 wrote:
    Hi All,
    I am installing a patch(13925741) for Calculation Manager, i stuck at the following point:
    6. Perform the standard Calculation Manager Web application server deployment task using Hyperion Enterprise Performance Management System Configurator (EPM System Configurator). See the Oracle Hyperion Enterprise Performance Management System Installation and Configuration Guide for instructions.
    I don't know how to redeploy Calculation Manager Web Application Server, plz help me in deploying this.
    The readme for the patch can be found at:
    https://updates.oracle.com/Orion/Services/download?type=readme&aru=15356919#_Toc330987031
    Hi,
    Did you actually try to look at the Oracle Hyperion Enterprise Performance Management System Installation and Configuration Guide for instructions as suggested ?
    To redeploy a component, run the configurator that can be found in the start menu under Foundation Services. Then select "modify an existing instance". Then for Calculation manager, check the box "Deploy to application server".
    Thanks,
    JM

  • How to disable scheduled task through database?

    I would like to know to disable scheduled task without OIM running, preferably through the database.
    OIM has out of the box schedule tasks that are set to run when OIM starts, and I would like to prevent that from happening.
    Is is possible to disable these tasks when OIM is not running?
    if possible I would like to know what I need to do, preferably through the database

    The QRTZ92_TRIGGERS table contains the trigger time of the schedule tasks. You can directly modify the START_TIME and the NEXT_FIRE_TIME columns to future dates in order to prevent the scheduled jobs from starting.
    You can also stop the Scheduler, which is responsible for kicking off the scheduled jobs.
    To manually stop the Scheduler go to http://OIM_HOST:OIM_PORT/SchedulerService-web/status
    You can configure the oim-config.xml so that the Scheduler is not started when OIM starts.
    Reference: Managing Scheduled Tasks
    To disable a schedule task, you have to have OIM running. You can use the APIs, modify the schedule tasks metadata (<taskStatus>false</taskStatus>), or use the UI to disable the schedule tasks.

  • Powershell scheduled task & Excel

    Hey,
    I have created the following script which converts .xls to .csv file which I want to run as scheduled task.(it is a part of a bigger script)
    $Error.Clear()
    $LogFile = $MyInvocation.MyCommand.Definition + ".log"
    $TempFile = 'D:\ConfigMgr_Tools\Maintenance\CreateADStructure.xls'
    Start-Transcript $LogFile
    "Userprofile $env:USERPROFILE"
    #PREVENT ERROR: http://support.microsoft.com/kb/320369/en-us
    $OldCulture = [System.Threading.Thread]::CurrentThread.CurrentCulture
    $OldUICulture = [System.Threading.Thread]::CurrentThread.CurrentUICulture
    "Recieved cultures $OldCulture , $OldUICulture "
    # cultures to en-US
    [System.Threading.Thread]::CurrentThread.CurrentCulture = "en-US"
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = "en-US"
    "Set cultures"
    $objExcel = New-Object -ComObject Excel.Application
    "Created excel object"
    $objworkbook = $objExcel.Workbooks.Open($TempFile)
    "Created workbook object"
    $CSVTempFile = $TempFile -replace ".xl\w*$",".csv"
    if(Test-path $CSVTempFile)
    Remove-Item -Path $CSVTempFile -Force | Out-Null
    Start-Sleep -Seconds 1
    "Removed old csv"
    $objworkbook.SaveAs($CSVTempFile,6) # 6 is the code for .CSV
    $objworkbook.Saved = $true
    "Saved workbook: $CSVTempFile"
    $objworkbook.Close($false)
    $objExcel.Quit()
    #$objExcel.Dispose
    Start-Sleep -Seconds 1
    Stop-Process -Name *EXCEL* -Force
    # reset cultures
    [System.Threading.Thread]::CurrentThread.CurrentCulture = $OldCulture
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $OldUICulture
    Stop-Transcript
    When I run the script from normal powershell it works without any problem.
    See Transcript output here:
    Windows PowerShell transcript start
    Start time: 20150403135125
    Username: MyDomain\SCCM_CMD
    RunAs User: MyDomain\SCCM_CMD
    Machine: SRV-SCCM02 (Microsoft Windows NT 6.3.9600.0)
    Host Application: powershell.exe -Command & {C:\Users\SCCM_CMD\Desktop\Untitled5.ps1} -executionpolicy Unrestricted
    Process ID: 11300
    Transcript started, output file is C:\Users\SCCM_CMD\Desktop\Untitled5.ps1.log
    Userprofile C:\Users\SCCM_CMD
    Recieved cultures de-DE , en-US
    Set cultures
    Created excel object
    Created workbook object
    Saved workbook: D:\ConfigMgr_Tools\Maintenance\CreateADStructure.csv
    Windows PowerShell transcript end
    End time: 20150403135129
    But when I start the script from scheduled task (using the same powershell.exe parameter) I receive
    following error:
    Exception calling "Open" with "1" argument(s): "Microsoft Excel cannot access
    the file 'D:\ConfigMgr_Tools\Maintenance\CreateADStructure.xls'. There are
    several possible reasons:
    ... The file name or path does not exist.
    ... The file is being used by another program.
    ... The workbook you are trying to save has the same name as a currently open
    workbook."
    Here the whole transcript output:
    Windows PowerShell transcript start
    Start time: 20150403135143
    Username: MyDomain\SCCM_CMD
    RunAs User: MyDomain\SCCM_CMD
    Machine: SRV-SCCM02 (Microsoft Windows NT 6.3.9600.0)
    Host Application: powershell.exe -Command & {C:\Users\SCCM_CMD\Desktop\Untitled5.ps1} -executionpolicy Unrestricted
    Process ID: 10604
    Transcript started, output file is C:\Users\SCCM_CMD\Desktop\Untitled5.ps1.log
    Userprofile C:\Users\SCCM_CMD
    Recieved cultures de-DE , en-US
    Set cultures
    Created excel object
    Exception calling "Open" with "1" argument(s): "Microsoft Excel cannot access
    the file 'D:\ConfigMgr_Tools\Maintenance\CreateADStructure.xls'. There are
    several possible reasons:
    • The file name or path does not exist.
    • The file is being used by another program.
    • The workbook you are trying to save has the same name as a currently open
    workbook."
    At C:\Users\SCCM_CMD\Desktop\Untitled5.ps1:21 char:5
    + $objworkbook = $objExcel.Workbooks.Open($TempFile)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ComMethodTargetInvocation
    Created workbook object
    Removed old csv
    You cannot call a method on a null-valued expression.
    At C:\Users\SCCM_CMD\Desktop\Untitled5.ps1:31 char:5
    + $objworkbook.SaveAs($CSVTempFile,6) # 6 is the code for .CSV
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
    The property 'Saved' cannot be found on this object. Verify that the property
    exists and can be set.
    At C:\Users\SCCM_CMD\Desktop\Untitled5.ps1:32 char:5
    + $objworkbook.Saved = $true
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound
    Saved workbook: D:\ConfigMgr_Tools\Maintenance\CreateADStructure.csv
    You cannot call a method on a null-valued expression.
    At C:\Users\SCCM_CMD\Desktop\Untitled5.ps1:35 char:5
    + $objworkbook.Close($false)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
    Windows PowerShell transcript end
    End time: 20150403135147
    Any idea what can cause this?
    I already checked the file exists and there is a folder "desktop" for the user which runs the scheduled task (same user as in normal powershell)

    Just read the first error:
    Exception calling "Open" with "1" argument(s): "Microsoft Excel cannot access
    the file 'D:\ConfigMgr_Tools\Maintenance\CreateADStructure.xls'. There are
    several possible reasons:
    • The file name or path does not exist.
    • The file is being used by another program.
    • The workbook you are trying to save has the same name as a currently open
    workbook."
    Access is denied except when running elevated.  You need to be sure the account has access.
    Microsoft does not support or recommend using Excel in a non-interactive session.
    ¯\_(ツ)_/¯

  • Unable to start Oracle Application services on Apps Tier12.1.3

    Hi,
    I've configured a Apps Tier on AWS, it was up and successfully running.
    I stopped it using Execute $INST_TOP/admin/scripts/adstpall.sh
    When I'm trying to start it again using $INST_TOP/admin/scripts/adstrtal.sh , it is failing with :
    [Service Control Execution Report]
    The report format is:
    <Service Group> <Service> <Script> <Status>
    Root Service Enabled
    Root Service Oracle Process Manager for VISION_ip-10-189-119-235 adopmnctl.sh Started
    Web Entry Point Services Enabled
    Web Entry Point Services Oracle HTTP Server VISION_ip-10-189-119-235 adapcctl.sh Started
    Web Entry Point Services OracleTNSListenerAPPS_VISION_ip-10-189-119-235 adalnctl.sh Already Started
    Web Application Services Enabled
    Web Application Services OACORE OC4J Instance VISION_ip-10-189-119-235 adoacorectl.sh Failed
    Web Application Services FORMS OC4J Instance VISION_ip-10-189-119-235 adformsctl.sh Failed
    Web Application Services OAFM OC4J Instance VISION_ip-10-189-119-235 adoafmctl.sh Failed
    Batch Processing Services Enabled
    Batch Processing Services OracleConcMgrVISION_ip-10-189-119-235 adcmctl.sh Started
    Batch Processing Services Oracle Fulfillment Server VISION_ip-10-189-119-235 jtffmctl.sh Started
    Other Services Disabled
    Other Services OracleFormsServer-Forms VISION_ip-10-189-119-235 adformsrvctl.sh Disabled
    Other Services Oracle Metrics Client VISION_ip-10-189-119-235 adfmcctl.sh Disabled
    Other Services Oracle Metrics Server VISION_ip-10-189-119-235 adfmsctl.sh Disabled
    Other Services Oracle MWA Service VISION_ip-10-189-119-235 mwactlwrpr.sh Disabled
    ServiceControl is exiting with status 3
    09/20/12-01:19:38 :: You are running adstrtal.sh version 120.15.12010000.3
    =================================================================
    I've attached here the complete log for your reference.
    Amit

    Complete adstrtal.log :
    =================================================================
    09/20/12-01:19:33 :: You are running adstrtal.sh version 120.15.12010000.3
    Setting Service Group Root Service to mode 2
    Setting Service Group Web Entry Point Services to mode 2
    Setting Service Group Web Application Services to mode 2
    Setting Service Group Batch Processing Services to mode 2
    Service Group Other Services is disabled.
    Executing service control script:
    /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/admin/scripts/adopmnctl.sh start
    Timeout specified in context file: 100 second(s)
    script returned:
    You are running adopmnctl.sh version 120.6.12010000.5
    Starting Oracle Process Manager (OPMN) ...
    opmnctl: opmn is already running.
    adopmnctl.sh: exiting with status 0
    adopmnctl.sh: check the logfile /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/logs/appl/admin/log/adopmnctl.txt for more information ...
    .end std out.
    .end err out.
    Executing service control script:
    /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/admin/scripts/adalnctl.sh start
    Timeout specified in context file: 100 second(s)
    script returned:
    adalnctl.sh version 120.3
    Checking for FNDFS executable.
    Listener APPS_VISION has already been started.
    adalnctl.sh: exiting with status 2
    adalnctl.sh: check the logfile /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/logs/appl/admin/log/adalnctl.txt for more information ...
    .end std out.
    .end err out.
    Executing service control script:
    /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/admin/scripts/adapcctl.sh start
    Timeout specified in context file: 100 second(s)
    script returned:
    You are running adapcctl.sh version 120.7.12010000.2
    Starting OPMN managed Oracle HTTP Server (OHS) instance ...
    opmnctl: opmn is already running.
    opmnctl: starting opmn managed processes...
    ================================================================================
    opmn id=ip-10-189-119-235.ec2.internal:6201
    no processes or applications matched this request
    adapcctl.sh: exiting with status 0
    adapcctl.sh: check the logfile /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/logs/appl/admin/log/adapcctl.txt for more information ...
    .end std out.
    .end err out.
    Executing service control script:
    /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/admin/scripts/adoacorectl.sh start
    Timeout specified in context file: 100 second(s)
    script returned:
    You are running adoacorectl.sh version 120.13
    Starting OPMN managed OACORE OC4J instance ...
    adoacorectl.sh: exiting with status 150
    adoacorectl.sh: check the logfile /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/logs/appl/admin/log/adoacorectl.txt for more information ...
    .end std out.
    .end err out.
    Executing service control script:
    /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/admin/scripts/adformsctl.sh start
    Timeout specified in context file: 100 second(s)
    script returned:
    You are running adformsctl.sh version 120.16.12010000.3
    Starting OPMN managed FORMS OC4J instance ...
    Calling txkChkFormsDeployment.pl to check whether latest FORMSAPP.EAR is deployed...
    Program : /u01/E-BIZ/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChkFormsDeployment.pl started @ Thu Sep 20 01:19:37 2012
    *** Log File = /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Sep_20_01_19_36_2012/txkChkFormsDeployment_Thu_Sep_20_01_19_36_2012.log
    File "/u01/E-BIZ/apps/tech_st/10.1.3/j2ee/forms/applications/forms/formsweb/WEB-INF/lib/frmsrv.jar" exists. Proceeding to check the size...
    =============================================
    *** Latest formsapp.ear has been deployed ***
    =============================================
    Program : /u01/E-BIZ/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChkFormsDeployment.pl completed @ Thu Sep 20 01:19:37 2012
    Perl script txkChkFormsDeployment.pl got executed successfully
    adformsctl.sh: exiting with status 150
    adformsctl.sh: check the logfile /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/logs/appl/admin/log/adformsctl.txt for more information ...
    .end std out.
    *** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
    *** Log File = /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Sep_20_01_19_36_2012/txkChkFormsDeployment_Thu_Sep_20_01_19_36_2012.log
    .end err out.
    Executing service control script:
    /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/admin/scripts/adoafmctl.sh start
    Timeout specified in context file: 100 second(s)
    script returned:
    You are running adoafmctl.sh version 120.8
    Starting OPMN managed OAFM OC4J instance ...
    adoafmctl.sh: exiting with status 150
    adoafmctl.sh: check the logfile /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/logs/appl/admin/log/adoafmctl.txt for more information ...
    .end std out.
    .end err out.
    Executing service control script:
    /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/admin/scripts/adcmctl.sh start
    Timeout specified in context file: 1000 second(s)
    script returned:
    You are running adcmctl.sh version 120.17.12010000.5
    Starting concurrent manager for VISION ...
    Starting VISION_0920@VISION Internal Concurrent Manager
    Default printer is noprint
    adcmctl.sh: exiting with status 0
    adcmctl.sh: check the logfile /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/logs/appl/admin/log/adcmctl.txt for more information ...
    .end std out.
    .end err out.
    Executing service control script:
    /u01/E-BIZ/inst/apps/VISION_ip-10-189-119-235/admin/scripts/jtffmctl.sh start
    Timeout specified in context file: 100 second(s)
    script returned:
    You are running jtffmctl.sh version 120.3
    Validating Fulfillment patch level via /u01/E-BIZ/apps/apps_st/comn/java/classes
    Fulfillment patch level validated.
    Starting Fulfillment Server for VISION on port 9301 ...
    jtffmctl.sh: exiting with status 0
    .end std out.
    .end err out.
    [Service Control Execution Report]
    The report format is:
    <Service Group> <Service> <Script> <Status>
    Root Service Enabled
    Root Service Oracle Process Manager for VISION_ip-10-189-119-235 adopmnctl.sh Started
    Web Entry Point Services Enabled
    Web Entry Point Services Oracle HTTP Server VISION_ip-10-189-119-235 adapcctl.sh Started
    Web Entry Point Services OracleTNSListenerAPPS_VISION_ip-10-189-119-235 adalnctl.sh Already Started
    Web Application Services Enabled
    Web Application Services OACORE OC4J Instance VISION_ip-10-189-119-235 adoacorectl.sh Failed
    Web Application Services FORMS OC4J Instance VISION_ip-10-189-119-235 adformsctl.sh Failed
    Web Application Services OAFM OC4J Instance VISION_ip-10-189-119-235 adoafmctl.sh Failed
    Batch Processing Services Enabled
    Batch Processing Services OracleConcMgrVISION_ip-10-189-119-235 adcmctl.sh Started
    Batch Processing Services Oracle Fulfillment Server VISION_ip-10-189-119-235 jtffmctl.sh Started
    Other Services Disabled
    Other Services OracleFormsServer-Forms VISION_ip-10-189-119-235 adformsrvctl.sh Disabled
    Other Services Oracle Metrics Client VISION_ip-10-189-119-235 adfmcctl.sh Disabled
    Other Services Oracle Metrics Server VISION_ip-10-189-119-235 adfmsctl.sh Disabled
    Other Services Oracle MWA Service VISION_ip-10-189-119-235 mwactlwrpr.sh Disabled
    ServiceControl is exiting with status 3
    09/20/12-01:19:38 :: You are running adstrtal.sh version 120.15.12010000.3
    =================================================================

Maybe you are looking for

  • Is there a way to determine if an application is 32-bit or 64-bit?

    Is there a way to determine if an application is 32-bit or 64-bit? To be more specific, I want to be able to determine if a 32-bit application is being emulated under WOW64. I'm trying to use the Call Library Function and selecting IsWOW64Process fro

  • Sales analysis report- showing & totaling both Invoices & Credit memos on o

    I have written a Several sales analysis reports based on INV1 tables and RIN1 tables, (Invoice lines and Credit memo lines) for SAP B1 using crystal. I would like the data from both the invoices & the credit memo to list & total on the same report. B

  • Saving source code

    Hi Experts, is there any possibility to save the source code with 1 step? (E.g. main program in one file, includes in another file(s), etc...) So I would like to save the main program and every subroutines that belongs to it into one or different TXT

  • In house consumption of own products

    Is there a standard SAP methodology to handle inhouse (internal) consumption for a company's own products for asset capitalization, as gifts to employees or gifts. This is a one time activity. e.g. once in a while a company decides to issue its own p

  • Failing to print letters in Recruitment

    Can anyone help me on how to solve the following problem written in capital letters-INTERNAL ERROR IN SAP OLE DOCUMENT CONTAINER CONTROL. i am not able to print or display applicant letters in Recruitment