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
Similar Messages
-
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> -
How to include Windows environment variables in e-mail action scheduled task
Hello Support,
Is it possible to include Windows environment variables such as %username% or %computername% in the subject line or body of the "Send e-mail" action item of the Task Scheduler? For example, I would like when I setup a scheduled
task to perform a certain task and send an e-mail message, the email should include either the user name or computer name in the subject line and body of the e-mail. Is that possible?
ThanksHi,
You can create a new Scheduled Task preference item to solve your requirement.
Checkout the below link for more information,
http://technet.microsoft.com/en-us/library/dd851678.aspx
Regards,
Gopi
JiJi
Technologies
I created a scheduled task and that does not provide what I need. The scheduled task will simple send an mail, but I want to know from which machine or user triggered the email. I also tried adding the batch file to the scheduled
task and that did not work even though the scheduled task has the following settings.
User Configuration >> Prefence >> Control Panel Settings >> Scheduled Tasks
When running the task, use the following user account
NT AUTHORITY\System
Run whether user is logged on or not
Run with highest privileges HighestAvailable
Configure for: Windows 7
I also tried with Computer Configurations -
Which solution is better for schedules task? Console application or windows service?
I have a "MULTI-LEVEL" XML file that I will be getting on daily basis and I want to accomplish following tasks:
1) I have to read and parse the "MULTI-LEVEL" XML data
2) Then I have to set or create some kind of .net service (c#) that read the xml and parse the data once a day (daily)?
3) Now I have SOAP service from other software where I want to feed this XML data to. The schedules service will compare the XML data with software data and update (or add) based on the comparision.
For this task, I come to conclusion that there are 2 best ways to do this:
1) Create a console application and use windows task scheduler to run it everyday
2) Create a windows service that runs in the background
Which is a better way (or reliable) solution to do this task? Please adviseThere are several things to keep in mind when writing an app that is designed to run without a user logged in. One of the most common mistakes is requiring some sort of user input. Since the task will run without user intervention you don't want
any sort of calls to Console.ReadLine, MessageBox.Show, etc. They will cause the task to freeze and eventually need to be terminated. You also don't want to rely on any sort of desktop apps running since a user may or may not be logged on at the
time.
Also be aware that a task can be scheduled to run under any user context. As such you either need to ensure it runs under an account with sufficient privileges or that your app needs no special privileges. You mentioned you tried to run it from
bin\debug but you most likely have your project under your Documents directory. Only you would have permissions to that folder and therefore will run into issues if the task is run under a different context. You also mentioned you put it in the
C:\ but users don't have write privileges to that folder and therefore if you tried to write a file out it would fail. If you need to read/write files then you should pick a common location that all users have access to or at least the one that will run the
scheduled task. Be aware that, by default, Task Scheduler will not run a task elevated. You need to check the option to run elevated when you configure the user to run the task under.
One of the key things to ensure you do with a task is verify it is working properly as a normal app. You should also ensure that you have good logging so that if it does fail you can trace down the failure more easily. One common thing that people
tend to do in console apps is put a try-catch around the main function and display a message if an unhandled exception occurs. This is going to cause problems in a task. Simply log the exception and rethrow it so Task Scheduler will flag the run as a
failure.
If you still cannot figure out why your task is failing then please add some logging and then tell us what code is being run at the time and what the failure is. -
Hi,
I created a task by following this blog:
https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1515
It doesn't seem that my job is starting up. Where do I go to look at a log of an execution? Do I need to stop and restart the J2EE engine in order for the scheduler jobs to start up? (I am on NW2004)
My steps were:
1. Create portal application project
2. Create the Respository Framework 7.1.5 Schduler Task wizard
3. Put my java code in the "run" method - I did execute the same code in a standalone project to be sure it doesn't contain bugs.
4. Created PAR file and uploaded to portal server
5. Configured the Scheduler task as shown in the BLOG- I was not sure if I should check off a CM System- I have tried both ways and it doesn't seem to run either way.
Any help would be appreciated.
Thanks.Hi Dana,
You can use the standalone log-viewer to view the log files. See the documentation on sap help. http://help.sap.com/saphelp_nw04/helpdata/en/47/209779bbe64a318454b64148a0c76d/frameset.htm
The best way would be to include some tracing and logging statements in your scheduler code.
Create a new location in your code
private static Location logger = Location.getLocation("mylocation");
and put some trace statements in your code
logger.intoT("start of method");
But you will have to create a new location in Log Configurator in the VA and set the severity level to INFO. Then in the default.trc you can filter on your location name to get the relevant traces.
Akhilesh -
Deployed KM Scheduler Task Does Not Appear in Global Services / Scheduler T
Hi All,
I've deployed a portal service and a KM scheduler task in the same DC but cannot see the scheduler task listed under System Admin -> System Config -> Knowledge Management -> Content Management -> Global Services -> Scheduler Tasks.
The service works correctly and performs its periodic processing once on initialisation of the service, and I can see the resulting log statements to make sure it has worked.
Both the service and the scheduler task are packed inside the same DC, which builds and deploys without any errors.
There are no errors in the log regarding the deployment of the DC, or the scheduler task.
There is a log statement about registering the classloader for the DC, which I assume is the statement in the IRFServiceWrapper init() that goes:
CrtClassLoaderRegistry.addClassLoader(this.getKey(), this.getClass().getClassLoader());
But I still dont see the task listed in Global Services -> Scheduler Tasks.
Does anyone know what might be causing this or how to diagnose the problem further?
Cheers,
SteveHi Srini,
No it doesn't it just has the run method which is generated automatically.
I have created a local Portal Application project, which is not in a DC, and this also does not have a default constructor ether but appears in the Scheduler Tasks list as soon as it is deployed.
I also tried to create a Portal Applicaiton DC and Portal Applicaiton (Packaged as SDA) DC and despite the scheduler task being the same, both the DC tasks do not appear in the Scheduler Tasks.
The only one I can get to work is the local Portal Application project. This is no use as we cant store this in DTR (unless someone can explain how to do this???).
The Portal Application project packages up the RF Framework JARS inside its PAR file, but the DC and SDA projects dont, so I tried including them via an Assembly Public Part to an External Library DC, which does include the JARs in the deployment files but they still dont appear in the Scheduler Tasks.
Has anyone out there got a working Scheduler Task in a Portal Application DC?
Cheers,
Steve -
Call Multiple Files From Single ColdFusion Scheduled Task
Our host only allows us to have 5 scheduled tasks per account but we need to run cfml applications to import data for multiple sites (at least 15 processes). What I'd like to do is combine all the 'sample requests' for all sites into ONE scheduled task that will run them one after another thus cutting back on the number of scheduled tasks needed.
We're using ColdFusion to connect to a MySQL DB to gather all sample requests. First the app retrieves all the unflagged records from a remote db then begins looping through all the returned records. On the each loop, the app 'scrubs' the data by properly formatting phone numbers, fixing address abbreviations, etc. Next the app saves the scrubbed data to a local MS SQL table then starts the loop over on the next row. Lastly the app sends out an email saying it has completed successfully.
What I'm trying to do is Create a New Parent App that will run as a scheduled task to do the following:
- New Parent App Runs as Scheduled Task and calls/includes first of X sample request app files
- New Parent App runs first sample request app as described above (which can take up to a minute to process)
- Parent app waits until after first sample request app completes, then Parent App goes on to second sample request app, etc.
- After all sample requests are complete New App sends completion email with date and time
The problem I'm having is getting the scheduled task to wait for apppage1.cfm to finish before loading apppage2.cfm and so on. Can you give me a simple codeset that accomplishes this?
I've attached a sample of the include page the needs to complete before moving on!Our approach is a bit more comprehensive.
First, we (meaning my co-workers) wrote a custom tag that does something like this:
<cftry>
<cfinclude the template>
<cfcatch>
log any errors
Then our actual scheduled job go like this:
set a really long timeout (and none of the actual jobs can have their own timeout)
set some variables
use the custom tag for each job we want to run
send mail if any errors occurred. -
GPP Scheduled Task Fails in Group Policy Modeling depending on DC
We have multiple domain controllers running at a 2003 functional level.
We have 1 DC running Server 2003 x86 SP2 and the rest run Server 2008 (maybe R2)
I created a GPO that includes a Scheduled Task Group Policy Preference under Computer Configuration.
In order to test this I used Group Policy Modeling in the GPMC on a 2008 R2 Machine where I am editing Group Policy.
If I run the modeling (perform the simulation on the 2003 DC it fails. (Note I am modeling the GPO for a different computer, not the 2003 SP2 DC, I am running the modeling for a Workstation)
Information from the Component Status on the Summary Tab of the Modeling Report
Component Name Status
Group Policy Infrastructure Success
EFS recovery Success (no data)
Group Policy Scheduled Tasks Failed
Group Policy Scheduled Tasks failed due to the error listed below and failed to log resultant set of policy information.
Additional information may have been logged. Review the application event log on the domain controller on which the simulation was run for events between 2/28/2014 10:07:36 AM and 2/28/2014 10:07:36 AM.
Registry Success
Security Success
Info on the Settings Tab of the Modeling Report below.
An error has occurred while collecting data for Scheduled Tasks.
The following errors were encountered:
An unknown error occurred while data was gathered for this extension. Details: Invalid class
If I run the modeling using a 2008 DC to perform the simulation it works fine.
Per the instructions on the Summary Tab regarding the scheduled task failure I look at the event log on the 2003 domain controller and this is what i find.
The event I get on the 2003 DC is 8196 and I will place the details below.
Event Type: Error
Event Source: Group Policy Scheduled Tasks
Event Category: Disk
Event ID: 8196
Date: 2/27/2014
Time: 4:48:47 PM
User: NT AUTHORITY\SYSTEM
Computer: <computername>
Description:
The client-side extension caught the unhandled exception '0xC0000005' inside: 'threadEntry : client main' See trace file for more details. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
So, should I be concerned that this is failing on the 2003 DC, does this mean that if my workstations authenticate to my 2003 DC that the preference will not process?
I was reading that in 2003 client side extensions were not there and can be installed, would this make the modeling succeed?
How do I get verified, I tried to post screenshots, but I could not. :(Hi Jonathan,
As you have found the reason, I want to confirm whether the issue has been fixed.
In fact, for Windows Server 2003 to apply or process Group Policy Preferences settings, we must install client-side extensions of GPP for Windows Server 2003.
Although this is not related to this case, for your information, if our clients are Windows XP or Windows Vista, to use GPP, we must install client-side extensions for these
workstations respectively.
Regarding GPP, the following article can be referred to for more information.
Group Policy Preferences Getting Started Guide
http://technet.microsoft.com/en-us/library/cc731892(v=WS.10).aspx
Best regards,
Frank Shen -
Symptom:
We used Task Scheduler to create a scheduled task. For example, we configured a daily task, starting from 3 AM 9/3/2014, recurring the task every 1 day, and set the expiration time as 3 AM 9/3/2015 (See Figure 1). Under
Settings tab, we checked If the task is not scheduled to run again, delete if after:
option, and set the value as 30 days (See Figure 2).
However, in the Task Scheduler Library snap-in, we saw that the Next Run Time of the task is 3AM 10/3/2015, which equals expiration date plus days to delete (See Figure 3), but the right value should be 3 AM 9/2/2014 because the task has never been run.
Figure 1
Figure 2
Figure 3
Cause:
This is a Task Scheduler interface displaying issue. Although the next run time that is displayed in the Task Schedule is incorrect, the trigger will be fired correctly.
Solution:
We can install the hotfix in the following KB article to fix the displaying issue, though the symptom in the article is different.
An incorrect value for Next Run Time is displayed when you specify multiple triggers to schedule a task in Windows Vista, Windows 7, Windows Server 2008 or Windows Server 2008 R2
http://support.microsoft.com/kb/2495489
After installing the hotfix, we need to restart computers to make it take effect.
In this example, after installing the hotfix and restarting the computer, we see that the next run time of the task is displayed correctly in Task Scheduler (Figure 4).
Figure 4I am not running out of space, but I do have the same problem. Every so often TM does a backup which is about 60 GB bigger than expected. The extra is always a new backup of /System /Applications /usr etc. - that is the 'system files'.
The key thing is, as you have noticed:
Examining the content of the latest backup, the one that did not fail, shows that some system directories, /Applications, /usr, and /bin are missing
As a consequence the next backup is, in my case, 60 GB bigger because it includes all the system files.
It is as if 'systemFilesExcluded' was turned on for the previous backup (the one that 'did not fail'). But I have looked in the .exclusions.plist for this backup and it is exactly the same as for other backups and does include:
<key>systemFilesExcluded</key>
<false/>
It seems that TM is treating this as if <true/>.
Like you, I have done a disk verify and it finds no errors.
I think this must be a bug. I have had this on four occassions since upgrading to Mountain Lion. And it is doing a large one right now - I have caught it in the act! -
Calling schedule task on server
I have a question about schedule task on server and semaphore operation on server.
For example, I have 10 lab computers and 1 server. All the lab computers will do the same thing at different/same time through a LabVIEW exe. They would generate some data, put them in the database, and access the html that the server has generated with the most recent data in the database. I want to do the following:
1. At the end of the program on the lab computer, I want it to trigger the scheduled task on the server, so that the html will get updated with the newest data. How do I do that?
2. Since multiple lab computers can run at the same time, I want to create a semaphore that will allow only one lab computer access the scheduled task on server at a given time, and the rest of the computers have to wait. It is a semaphore condition, but I am not sure how to do this in a server context.
Thanks!
Kudos and Accepted as Solution are welcome!jyang72211 wrote:
The VI server approach sounds great. The server will contain a VI that wait for a notification from a lab computer, and the server VI will run when it receives a notification. Then, the server VI will send another notification back when the update is competed. I can send a server/lab computer specified message within the notified to tell the notification apart. I noticed that when multiple lab computers are sending notification to server at approximately the same time, some of the notification is dropped. I think a notifier alone may not work for my application.
I think I need a semaphore to restrict access, since the lab computer will wait if a semaphore is taken; and a notifier from the server when the server is done with the task. Did I over complicate things? What do you think?
If you haven't yet determined the communication mechanism, then how were you able to notice that some notifications are dropped?
Using VI Server there's no need for a semaphore; LabVIEW will handle it for you. VI Server documentation and examples are included with LabVIEW. My suggested approach is:
In the server program, create an action-engine type VI that stores a reference to a queue. In your main server VI, create the queue, then store the reference to it in the action engine. The action engine should have a second action to enqueue data. Each of the client computers will obtain a reference to that subVI. When the client completes its task, it calls that subVI - remotely, by reference using VI server, and passing the data to enqueue. The server VI waits for new data in that queue and updates the HTML file as new data arrives. If you only need the latest data from the most recent client connection, you could use a notifier instead of a queue. LabVIEW will prevent more than one client from running the VI at the same time, the same way it does in a normal LabVIEW program that tries to run the same non-reentrant VI in multiple places concurrently. This happens quietly, without generating an error, and you don't have to manage it at all. -
Scheduled task won't run .bat file
Hi. On Windows Server 2008 I have a scheduled task that calls a .bat file. The fist step in the .bat file is write to a log file to the same directory in which the .bat file exists. This allows me to find out if it is ever run. When the .bat file is run from a command prompt it runs as expected writing to the log file and completing its actions. My problem is that when I run the scheduled task manually or allow it to run when scheduled it appears to run but the .bat file is never run. No log file is ever created. The History tab in the properties of the scheduled tasks shows the task being started and running then completing with an operation code of 2. I've disabled the UAC for the user account. I've set the task to run as the Administrator user and verified the permissions for that user. I know the password is correct for the task because I can make changes to the properties and save those changes with the username/password. I'm at a loss for further troubleshooting steps. Can anyone point me in the right direction to figure out why these .bat files are not being run?
So I had this problem, I double clicked on the .bat and notepad opened the .bat. I ran through this whole long and very absorbing thread of this forum. I wanted to save the entries that were most helpful, so I copied and pasted into
a notepad document (.txt) I could not find a way to attach it here, so I copied and pasted that below. I called it a synopsis.... Did I spell that right?
As you can see, I added my experience at the top (A and B). The stuff I copied is noted with the original author. This is the first time I posted anything to these here microsoft forums, although I have been telling computers what to do for 40+ years.
So hope I did not break any social protocols here.
==================================== Begin ====================================
Running A Dot Bat File in Windows Server 2008 Vista 7 etc and beyond V01
============================================================================
This was created as a synopsis of the entries at the following forum location:
http://social.technet.microsoft.com/Forums/en/winservermanager/thread/d47d116e-10b9-44f0-9a30-7406c86c2fbe
A) manually
This is an opinion added by Thomas Rock
1) Open a command window (that would be cmd.exe)
2) In the command window navigate to the directory containing the .bat file and it's dependents
ex... C:\Program Files (x86)\Bobs\Your\Uncle
3) Run the .bat file by typing the name including the .bat extension (in the command window of course)
TheBatFile.bat
Note: Using this method, the .bat file will run in the current command window directory (the directory where the .bat file is located)
(this is the key for getting it to run in the task scheduler... Start in folder option)
B) The double click
This is an opinion added by Thomas Rock
1) Using Windows exlporer, find the .bat file
2) use the mouse or other device to double click on the .bat file
3) if it does not run (in my case the wordpad application opened the .bat file)
a) make sure that the .bat file extension is associated with the program c:\windows\system32\cmd.exe
b) make sure the profile you are using has rights to run the cmd.exe
c) make sure the profile has the rights to the directories, the .bat and any other objects used or affected by the .bat file processing.
C) As a task using task scheduler
Proposed As Answer by Brian Vandemark Wednesday, September 02, 2009 9:36 PM
1) Make sure that the task is set to "configure for Windows Vista or Windows 2008" on the first page of the task properties (under the "general" tab)
2) Make sure that the task is set to "start in" the folder that contains the batch file:
a) open the task properties
b) click on the "actions" tab
c) click on the action and then the "edit" button at the bottom.
d) In the "Edit Action" Window there is a field for "start in (optional)" that you set to the path to the batch file.
e) be sure to include an end backslash for the start in path "C:\dir1\dir2\" (the last backslash is not optional)
3) Make sure that the task is running as an account that has explicit "Full access" permissions to all these things:
a) the .bat file itself
b) the folder containing the .bat file
c) the target files/folders that are affected by the .bat script.
Note: Inherited permissions did not seem to work.
4) Make sure that the account running the task is a member of the local "administrators" group for this machine
5) Make sure that the task is set to "run whether logged on or not"
6) Tick the box "Run with highest privileges".
Note: Point 6 here was from Edson F. Lima Wednesday June 30 2010 1:35 PM
The original point 6 was moved to point 7.
7) The Task should run successfully with expected output when you right-click on the task and select "run"
If it does that then it will run successfully when you are logged off.
D) Still another way as a task using task scheduler
Proposed As Answer byDarren Wallace Thursday, July 15, 2010 1:41 AM
This has been bugging me for 6 or 7 months.
I don't have admin rights to the box and the guy who does is very busy...
so I've felt the range of emotions mentioned above.
I tried most everything above as well. But what seemed to get my processes processing, was ...
• on the General tab, I clicked the Change User or Group button
• in Select User or Group (first smaller dialog box) I clicked the Advanced... button
• in the next Select User or Group (second bigger dialog box) I clicked the Find Now button
• in the Search results I selected the Administrators (a group) and it returned SERVERname\Administrators into the "Enter the object name to select" entry in the previous dialog box
• then I clicked OK and returned to the General tab above
• the options to Run only when user is logged on and Run whether user is logged on or not are no longer available
• then I made sure that the Run with highest privileges was checked
• then I clicked OK and during the next scheduled time to run ... it ran
Note: See note in A) Manually above.
E) Task scheduler recommendation
Proposed As Answer byTamusJRoyceThursday, December 01, 2011 3:42 PM
I have found .bat and .cmd files do not run correctly either.
My solution: Don't run the batch file directly.
Have TaskScheduler run: cmd.exe
with parameter: /C YourBatchFile.bat
and start in: C:\SomePath\ (without quotes!) where C:\SomePath\YourBatchFile.bat exists.
And then select the radio button for it to run regardless if you are logged in or not.
Exit errors may not be logged to the Event Log (they weren't when the .bat ran directly from Task Scheduler when I was logged in), so I find it best to manually log your own Event in case a error occurs and you want to send an email.
REM Logs an event which causes eventlog to send an email when it fails. Also, "/l application" needs to be lowercase.
eventcreate /t error /id 203 /l application /d "your logged description."
And then make a completely separate task with a trigger: On an event. Basic Selected. Log: Application. Source: EventCreate. Event ID: 203. And have the action on this task send an email (attaching any generated log files, if needed).
Hopefully helpful (took me 3 days to figure all this out...gar)
===================================== End ===================================
Running A Dot Bat File in Windows Server 2008 Vista 7 etc and beyond V01
============================================================================
-
Reference for Connecting EJB in KM scheduler Task
Hi,
What are the main References we need to add portalapp.xml,when we connect Ejb in Km scheduler Tasks
For Example:
portalapp.xml
<?xml version="1.0" encoding="UTF-8"?>
<application >
<application-config>
<property name="SharingReference" value="usermanagement, knowledgemanagement,landscape, htmlb, exportalJCOclient, exportal, com.sap.portal.admin.wizardframework"/> </application-config>
<components/>
<services>
<service name="RFServiceWrapper">
<service-config>
<property name="className" value="com.sap.netweaver.rf.wrapper.RFServiceWrapper"/>
<property name="startup" value="true"/>
</service-config>
</service>
</services>
</application>
Regards,
VinoHi,
Try some thing like this:
ClassLoader originalContextClassLoader = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
Context initial = new InitialContext();
Object objref = initial.lookup("JNDI Name Of the Session Bean");
Object obj = PortableRemoteObject.narrow(objref, BeanHome.class);
} catch (NamingException ex) {
ex.printStackTrace();
} catch (Exception ex) {
ex.printStackTrace();
finally {
Thread.currentThread().setContextClassLoader(originalContextClassLoader);
Regards,
Praveen Gudapati -
Hello All,
I have created a scheduler task for the , for the same I have created a PAR file , have successfully Build the project and deployed , Have configured the time in the Global services . But for some reason I could not see the task being running in the "Component Monitor" (when I select the Services-->scheduler >select one of the CM systems (have two currently)>click on on the CM system ) I could not see my custom task .
As well as When I go to "Service configuration" --> Portal Application , there also I could not see my custome application .
Initially whenever there use to be any error (for example -- CM systems not assigned etc etc ).
Is it something I am missing while deployement , Or has it being deployed properly?
Regards,
RonnieeHello Detlev,
Any Inputs on this please.
I have opened a new thread but a different Query
http://forums.sdn.sap.com/thread.jspa?threadID=2155357
Regards,
Ronniee. -
KM Scheduler Task is not running...
Dear All,
I have created a KM Scheduler Task using the NDWS Wizard. I followed prakash's blog (http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1515). My doubt is where exactly the attributes are created? and can any one guide how to create the attributes in .cc.xml file. And how does public void run( String id, Properties properties ) it works?
The application was successfully deployed. I am able to see my task under System Administration->System Configuration->Knowledge Management->Configuration->Content Management->Global Services->Scheduler Tasks. but I think it is not running. Can any one give some clue on this. As i'm not finding any thing uder Kmcontent>Documents.
Do i need to configure anything to run KM scheduler Task?
Thanks and Regards,
JAGAN.
Edited by: Jagan456533 on Jan 19, 2011 11:10 AMHi Jagan,
The status "0" for your task in "Component Monitor" is fine.
Navigate to System Administration> System Configuration>Service Configuration. You can see here Applications and Portal runtime.
Open Applications--> and you Task. Right click on your task folder and say Administrate. Here you check whether your task has been stopped, running. Make sure its running. ( Try refresh, if its already running ).
In you task folder, you will see "Service Folder" under this, you will see "RFServiceWrapper", right click on it and say configure, make sure the values are like shown below:
Name : http://sapportals.com/xmlns/cm/sch
Value: Value1
Also make sure in your portalapp.xml, the values are same:
RFServiceWrapper
service-config
className= com.sap.netweaver.rf.wrapper.RFServiceWrapper
startup= true
service-profile
Name= = http://sapportals.com/xmlns/sch
Prof= Value1
You see tha the same name is used "Value1" in RFServiceWrapper both in portalapp.xml and in Service Configuration.
You can use any other name but the it should be same in both the places.
Make all these changes, and then restart your task in Service configuration again. Any changes in portalappl.xml, restart is necessary.
Kind Regards,
Poornima -
KM Scheduler Tasks Missing!!
We have been experiencing KM Scheduler Tasks issues. The installed custom KM Schedulers disappear for some days and shows up again. There are four schedulers currently missing which we have installed with the last transport. We were able to see those schedulers after the transport migration. We have experienced the same issue last month and then the scheduler tasks started acting normal after multiple server restarts. However this time the server has been restarted four times since last one week but we still couldn't get to the missing four scheduler tasks.
We have checked the deployment log and the transport installed successfully
SAP NetWeaver 7.0 SP14
Please Help!!Hi Dana,
You can use the standalone log-viewer to view the log files. See the documentation on sap help. http://help.sap.com/saphelp_nw04/helpdata/en/47/209779bbe64a318454b64148a0c76d/frameset.htm
The best way would be to include some tracing and logging statements in your scheduler code.
Create a new location in your code
private static Location logger = Location.getLocation("mylocation");
and put some trace statements in your code
logger.intoT("start of method");
But you will have to create a new location in Log Configurator in the VA and set the severity level to INFO. Then in the default.trc you can filter on your location name to get the relevant traces.
Akhilesh
Maybe you are looking for
-
Back then when I had the older update with iTunes i never had this problem with trying to put my mp3 files of music into my iTunes library. Now it doesn't want to be put into the library. Once I try to drag the music file to the iTunes library nothin
-
Hi Friends, I created the same Queries in Dev which exist in Prod. After creating them in Dev, I saved them in Favorities with Tr.req. How can I assign them in role. Could you please advice now. Can I create all the queries the (same exist in Prod).
-
Hi I have a nokia 5230, it keeps saying the phone software needs to be updated to version number 21.0.004, but every time I start the update it just says processing for about 30 seconds then stops and doesn't do any thing, can anyone help?
-
RESTORE IPOD SHUFFLE WINDOWS 7
RESTORE IPOD SUFFLE.WHEN I WENT TO CHARGE IT IT SAID TO RESTORE THOUGH ITUNES, BUT I HAVE WINDOWS 7. DELL PC
-
We have developed a applet using swing componenets . We have used dispose, callled gc() and made references null and removed the listeners to enable the components for garbage collection. We have used windows NT. When we see the task manager the memo