How to get SJSC2-created webapps run on servers?

Hi everybody,
we have developed a nice little webapp with the Sun Studio Creator 2.0 on my local desktop-computer (Windows XP, running Tomcat 5.5). This webapp runs fine on this computer. Then we have packed this webapp as a webapp.war-file and now we want to deploy this application on other machines as well. But on 5 of 5 other machines we're getting this error, after deploying the war-file under Tomcat-servers:
Exception Details: com.sun.rave.web.ui.appbase.ApplicationException
org.apache.jasper.JasperException: Base is null: sites$main$login
Possible Source of Error:
  Class Name: com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl
  File Name: ViewHandlerImpl.java
  Method Name: destroy
  Line Number: 601The only system on which we can get this webapp to work under Tomcat 5.5 is the computer the webapp has been developed on (wich has Sun Java Studio Creator installed). All the other machine we tried to get it to work are just server (Windows and Linux, without SJSC2).
Is it possible that the installation of SJSC2 sets some important Classpath-parameters or anything else? Why can we just use our applications on computers where SJSC2 is installed on?
This is the full stacktrace:
Exception Handler
Description: An unhandled exception occurred during the execution of
the web application. Please review the following stack trace for more
information regarding the error.
Exception Details: org.apache.jasper.JasperException
Base is null: sites$main$login
Possible Source of Error:
  Class Name: org.apache.jasper.servlet.JspServletWrapper
  File Name: JspServletWrapper.java
  Method Name: handleJspException
  Line Number: 510
Source not available. Information regarding the location of the
exception can be identified using the exception stack trace below.
Stack Trace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.apress.projsf.weblets.faces.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:70)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)
Exception Details: javax.faces.FacesException
org.apache.jasper.JasperException: Base is null: sites$main$login
Possible Source of Error:
  Class Name: com.sun.faces.context.ExternalContextImpl
  File Name: ExternalContextImpl.java
  Method Name: dispatch
  Line Number: 327
Source not available. Information regarding the location of the
exception can be identified using the exception stack trace below.
Stack Trace:
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:327)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.apress.projsf.weblets.faces.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:70)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)
Exception Details: com.sun.rave.web.ui.appbase.ApplicationException
org.apache.jasper.JasperException: Base is null: sites$main$login
Possible Source of Error:
  Class Name: com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl
  File Name: ViewHandlerImpl.java
  Method Name: destroy
  Line Number: 601
Source not available. Information regarding the location of the
exception can be identified using the exception stack trace below.
Stack Trace:
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:601)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:316)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)We have defnitly no idea what we might do wrong...

For some reason Tomcat (or any other servlet-engine) can not create the valuebindings which have been automaticly created by SJSC2 for the webui-taglib (binding="#{folder$subfolder$jspfile.component}"):
com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: Exception in JSP: /sites/main/login.jsp:12
9:                 <ui:head id="head1" title="#{mainMessages.webAppName}">
10:                     <ui:link id="link1" url="/resources/stylesheet.css"/>
11:                 </ui:head>
12:                 <ui:body binding="#{sites$main$login.body1}" id="body1" style="-rave-layout: grid">
13:                     <f:subview rendered="#{currentUser.legallyLoggedIn == false}" id="securityCheckOkay">
14:                     <ui:form binding="#{sites$main$login.form2}" id="form2" style="height: 250px; left: 410px; top: 235px; position: absolute; width: 330px">
15:                         <h:panelGrid binding="#{sites$main$login.gridPanel1}" columns="2" footerClass="mainFormFooter" headerClass="mainFormHeader"
Stacktrace:
     com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:601)
     com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:316)
     org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:367)
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
     com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)But why??? The binding is correctly defined in managed-beans.xml and the corresponding classes also do exist.
What am I doing wrong???

Similar Messages

  • How to get services which are running currently

    How to get services which are running currently in the system by a java program. And also how to write a service so that i can start/stop the service from the control panel -> services.

    triple post
    http://forum.java.sun.com/thread.jsp?forum=31&thread=364090&start=0&range=15#1532232
    http://forum.java.sun.com/thread.jsp?forum=31&thread=364088&tstart=0&trange=15

  • How to get updated value at run time in oracle forms

    How to get updated value form oracle database on a field in oracle forms 6.0 at run time if the same form is opened by multiple users and both have get the same maximum value if one commit the record then how other would get that maximum value with out exiting that form...

    This issue is fairly common and Forms handles the situation by displaying the error, "Record has been updated by another user. Requery to see changes." if a user tries to update a record that was updated by another user.
    If your data is in a base table block, you can check before you save by checking the value in the form against the database using the Get_Item_Property('<BLOCK.ITEM>',DATABASE_VALUE). You can compare the value returned by the built-in against the value in the field to see if they have changed. This could be a lot of work and a lot of network traffic if you are checking numerous items in your data block. Forms has a standard locking mechanism that will lock the queried record as soon as a user makes any changes. If another user queries and attempts to change the record locked by another user - they will receive a "Record Locked" message.
    Francois brings up a valid point. Perhaps you should review the link Francios provided as well as this one: How to ask questions the smart way
    It is always a good idea to review your thread before you post it and ask yourself, "Could I answer this question given the information I've provided and the way I've asked the question?"
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • New Computer..how to get Ipod up and running

    my old computer broke down and I have a new one. No access to old computer. How do I get my ipod up and running with new comp? I get a message saying my ipod is synched with another computer (the broken one)?

    Synching to the new computer will wipe everything off the iPod.
    If you have it enabled for disk use, mount it as a drive then copy off all of the hidden folders into your new iTunes. The hidden files will have nonsense names, but all the music is there, and iTunes will rename everything if you have it set to copy to your new library.
    Otherwise, try these links from another thread (thanks PT):
    *Copying from iPod to Computer threads...*
    http://discussions.apple.com/thread.jspa?threadID=1534227&tstart=0
    http://discussions.apple.com/thread.jspa?threadID=893334&tstart=0
    http://discussions.apple.com/thread.jspa?messageID=797432&#797432
    *Also these useful internet articles...*
    http://www.ilounge.com/index.php/articles/comments/copying-music-from-ipod-to-co mputer/
    http://www.engadget.com/2004/11/02/how-to-get-music-off-your-ipod/
    http://playlistmag.com/secrets/2006/12/twowaystreet20/index.php
    http://playlistmag.com/help/2005/01/2waystreet/

  • How to get Adobe up and running?

    This download then go back and sign some agreement is stupid and it is not evident that there is anything to sign. I have clicked on agree several times and am still unable to get it to work. This is a Macbook Pro computer and I'm tired of not being able torun PDF's. Please help me get this up and running. there has to be a better way to go about this. Michael Allison

    Not sure what you mean by "sign agreement"; do you mean accept the license agreement?  To do that you must open Reader by itself and accept the EULA, before you can use it online.
    If I misunderstood, please clarify.

  • How to get list of VMs running under SCVMM using SCORCH activities

    hello,
    I am in learning phase on SCORCH...I wants to know steps required to get list of VMs running under SCVMM using SCORCH activities.
    Thanks
    Richa KM

    Hi,
    Here is  a list of activities:
    System Center Virtual Machine Manager Activities
    Integration Packs for System Center 2012 - Orchestrator
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How to get my apache server running on my ip address?

    I am new to apache server. I installed apache server as described in :
    https://wiki.archlinux.org/index.php/LAMP
    Firstly where do I store the files that I want to open using my apache server and how do I like map my public ip to apache server?
    say my public ip is x.x.x.x
    how do I get it work such that next time in browser instead of typing http://localhost/ if I type my public ip it shows the contents on my server.
    Thanks

    Read completely before trying.....
    1. Register an account at www.dyndns.org, its free, up to two domains.
    2. Login to dyndns and create a domain of your choice.
    3. This dyndns keeps track of your router IP addresses which is typically dynamic.
    4. Now we need to update the ip addresses of the domain when ever it changes. It generally changes every time we restart the router. In order to do it automatically we will setup the dyndns account on the router.
    5. On the router, login as admin to change/setup the settings. The router can be reached with the ip 192.168.1.1, this ip addresses changes with the manufacturer, like for belkin its 192.168.2.1
    6. On the router check for something which says DDNS, here you can setup the dyndns.
    7. Give the login details for your dyndns and the domain name.
    8. So, now you have linked your router to your dyndns and you can reach the router from anywhere in the world by type the domain name. The ip is not reliable since its dynamic and so it changes.
    9. No to use an application on a computer connected to the router. You need to use port forwarding.
    10. By using port forwarding, we can make the router redirect the requests to a computer on the network.
    11. Now again, your computer is typically connected to router using DHCP or dynamic ip. So need a static ip address for the computer as well so that it will remain constant all the times and the router can redirect the requests to this ip.
    12. Make the computer acquire a static ip. Configure your system for static ip. You just need to specify some ip address out of the dhcp range. So a static ip address can be 192.168.1.101 (as first 100 are for dhcp).
    13. Now on the router look for Port-Forwarding or Virtual Servers etc...
    14. You will be able to see a list of text boxes for ip and port.
    15. Now specify ip address of the static ip address computer and any port number like 8080. Make the private port or the internal port as the port number of your application. Application name can be anything. Type can be UDP or Choose Both, use TCP only if your are connected with a LAN cable.
    16. Here is an example...
    If we are using a webserver on our computer which runs on port 8080, we use it by typing..
    http://localhost:8080
    If someone on the same router whats to use our webserver they can type in:
    http://<ip-address>:8080 which can be http://192.168.1.5:8080
    Here as you can see, the ip address is dynamic, so change it to 101 from 5. When you choose static, the OS will ask you to specify the ip address, then just specify the ip as 101.
    Now you can access the web server by using the ip:
    http://192.168.1.101:8080
    But this can be done only by the people connected to the same router. Now we need to make it accessible by anyone in the world. So we need to make people access your computer which is behind the router.
    So first we need to make people access the router. But since the router's public IP is dynamic. We need something to keep track of the ever changing ip address of the router. Such kind of service is the dyndns.org
    By specifying the login details and domain from dyndns inside the router, the router uploads the new IP everytime it changes to the dyndns servers. The dyndns keeps track of the ip address.
    lets say our domain is registerd as: project.dyndns.org
    we provide this domain and login details to our router, and the router updates the ip address in case of any changes.
    We will now be able to reach the router by typing:
    http://project.dyndns.org
    we dont have to worry about the ip address any more.
    But still we need to get to the computer to access the web server.
    So we have to link the router to the computer. As we know our computer is at IP 192.168.1.101
    Now we will setup the port forwarding so that any request to a port A on the router will be redirected to a port B of the IP 192.168.1.101, which is the computer itself.
    Here port B is 8080 on the computer with the IP 192.168.1.101
    So we need to link a port say 8090 on the router to the 8080 on the computer.
    So, configure your router for port forwarding so that the 8090 on the router will point to 8080 on 192.168.1.101
    Now, anyone can access the router by typing:
    http://project.dyndns.org
    But to reach the computer we need to type the port as well, so type:
    http://project.dyndns.org:8090
    So any request to 8090 will be redirected to the 8080 on the computer which is handled by the webserver on the computer.
    EDIT:
    Once everything is setup, you can use the domain for SSH and other remote access tools. Just do the port forwarding for the required tools separately.
    Last edited by gopichand (2011-12-05 15:16:23)

  • How to get application names currently running on Windows?

    Hi Experts,
    Please help me how do I get application names (tasks) currently running (as shown in Windows Task Manager-Application Tab) in Windows.
    Thanks,
    Deepak

    Hi....
    probably it's a unusual solution but you could try it....
    Create a *.bat file   call it test.bat .. Create it on your local machine or on your server folder..
    PARAMETERS: DOSCMD(30) DEFAULT 'c:\test.bat' LOWER CASE.
    call function 'GUI_EXEC'
      exporting
        command          = DOSCMD.
    Inside your test.bat file put this code..(it's a dos command to create a txt file containing the output  of tasklist.exe command
    tasklist > c:\test.txt
    In your test.txt file you will have a list of tasks running on windows...
    Hope to help...
    bye...

  • How to get value from Thread Run Method

    I want to access a variable from the run method of a Thread externally in a class or in a method. Even though I make the variable as public /public static, I could get the value till the end of the run method only. After that it seems that scope of the variable gets lost resulting to null value in the called method/class..
    How can I get the variable with the value?
    This is sample code:
    public class SampleSynchronisation
    public static void main(String df[])
    sampleThread sathr= new sampleThread();
    sathr.start();
    System.out.println("This is the value from the run method "+sathr.x);
    /* I should get Inside the run method::: But I get only Inside */
    class sampleThread extends Thread
         public String x="Inside";
         public void run()
              x+="the run method";

    I think this is what you're looking for. I hold up main(), waiting for the results to be concatenated to the String.
    public class sampsynch
        class SampleThread extends Thread
         String x = "Inside";
         public void run() {
             x+="the run method";
             synchronized(this) {
              notify();
        public static void main(String[] args) throws InterruptedException {
         SampleThread t = new sampsynch().new SampleThread();
         t.start();
         synchronized(t) {
             t.wait();
         System.out.println(t.x);
    }

  • How to get installer created via LV project to install executables on a Vista machine which are in admin mode?

    I have an installer for a program created via a LV project which installs two executables.
    On Vista, only one of the executables is in admin mode.  So, I always have to right click
    on the other and select 'run as administrator'.
    Any way of getting both of them set to run as administrator by default?

    Do your executables include a manifest inside them or are you installing a manifest file next to your executables?
    What happens if you just manually copy the executables to your system rather than installing them? Same thing, or different behavior?
    -Bob

  • How to get an app to run again without forcing quit.

    I was working on a paper and have multiple Word windows open. Once I logged on to my computer, I could not use/edit the current window that was open. I opened another window that was minimized and that one did not respond. I opened all of them and they all have the spinning rainbow thing that makes you wait until it loads. I would force quit, but I have unsaved documents (my paper). I did create a document which is saved in a folder on my desktop, but I worked on it since the last time I saved it and I do not know how much I would lose if I forced quit. Is there any way I could close other apps, delete downloads or create space (I am guessing that will help it load) that will allow it to load? I do not remember the last update I installed. I am almost positive I have not updated it from Mavericks to Yosemite.

    if you force quit you loose everything. If you have no choice but to force quit your best bet is to restart the computer before you attempt to launch the application again to rule out a corrupt session. If the problem persists it could be a bug in the app, an incompatibility with something else running or permission issue.
    reboot, if the problem persists try quitting out of all open applications and repairing permissions
    Macintosh HD:Applications:Utilities:Disk Utilities
    click your boot drive, click REPAIR PERMISSIONS and let it finish.

  • How to Get the created Request Activity Status using SCSM 2012 SDK

    Hi, i have created a ServiceRequest,
    so there are Activities related to Servicerequest.
    I am trying to know the Status of the each Activity (Completed,Failed etc)
    and the Change of Activity (like from ReviewActivity to RunBookActivity).
    how can we get the Activity status change programmatically.
    so that i could Display this Status to other Portal, 
    I am Creating a CustomActivity with ActivityID as Parameter to Workflow inheriting WorkflowActivityBase
    protected
    override
    ActivityExecutionStatus Execute(ActivityExecutionContext
    executionContext)
    Is this a Right Approach..???
    Plz respond as m not getting the way ..

    I'm not entirely clear on what you're trying to accomplish, but I can give you some guidance on getting the status of activities that are part of a service request.
    Quick overview before we get to the code: After we connect to the database we want to retrieve some management packs, a relationship, and a type projection. We then want to create some criteria for querying the Service Manager database. Then we execute the
    query and traverse the results, displaying the activity ID and it's status.
    //Connect to Service Manager
    EnterpriseManagementGroup emg = new EnterpriseManagementGroup("<your management server>");
    //Get some management packs
    ManagementPack mpSystem = emg.ManagementPacks.GetManagementPack(SystemManagementPack.System);
    ManagementPack mpSRLib = emg.ManagementPacks.GetManagementPack("ServiceManager.ServiceRequest.Library", mpSystem.KeyToken, new Version("7.5.1464.0"));
    ManagementPack mpWorkItemLibrary = emg.ManagementPacks.GetManagementPack("System.WorkItem.Library", mpSystem.KeyToken, new Version("7.5.1464.0"));
    ManagementPack mpActivityLib = emg.ManagementPacks.GetManagementPack("System.WorkItem.Activity.Library",mpSystem.KeyToken,new Version("7.5.1464.0"));
    //Get the relationship and type projection we'll be using for this query
    ManagementPackRelationship mprWIContainsActivity = mpActivityLib.GetRelationship("System.WorkItemContainsActivity");
    ManagementPackTypeProjection mptpWIActivities = mpSRLib.GetTypeProjection("System.WorkItem.ServiceRequestAndActivityViewProjection");
    //This is the work item (such as a service request) ID that we're looking for
    String WorkItemID = "SR123";
    //Setup the criteria. This will instruct service manager to "Get me the service request with ID SR123"
    String strWICriteria = String.Format(@"
    <Criteria xmlns=""http://Microsoft.EnterpriseManagement.Core.Criteria/"">
    <Reference Id=""System.WorkItem.Library"" PublicKeyToken=""{0}"" Version=""{1}"" Alias=""WILib"" />
    <Expression>
    <SimpleExpression>
    <ValueExpressionLeft>
    <Property>$Target/Property[Type='WILib!System.WorkItem']/Id$</Property>
    </ValueExpressionLeft>
    <Operator>Equal</Operator>
    <ValueExpressionRight>
    <Value>" + WorkItemID + @"</Value>
    </ValueExpressionRight>
    </SimpleExpression>
    </Expression>
    </Criteria>
    ", mpWorkItemLibrary.KeyToken, mpWorkItemLibrary.Version.ToString());
    //Build the projection criteria
    ObjectProjectionCriteria opcWI = new ObjectProjectionCriteria(strWICriteria, mptpWIActivities,emg);
    //Perform the query
    IObjectProjectionReader<EnterpriseManagementObject> oprWIs = emg.EntityObjects.GetObjectProjectionReader<EnterpriseManagementObject>(opcWI,ObjectQueryOptions.Default);
    //oprWIs contains all of the work items with ID "SR123" (and there will only be one work item with that ID)
    //We loop through all the work items in the oprWIs collection
    foreach (EnterpriseManagementObjectProjection emopWI in oprWIs)
    //Next we loop through all of the activities contained by our work item, using the WorkItemContainsActivity relationship
    //NOTE that these activities are in no particular order. You'll have to use the icpActivity.Object[null,"SequenceId"].Value to order them
    foreach (IComposableProjection icpActivity in emopWI[mprWIContainsActivity.Target])
    //Since activity status is an enumeration, we want to display it's displayname, not it's value (enumeration values are just GUIDs or other unique identifiers)
    ManagementPackEnumeration status = (ManagementPackEnumeration)icpActivity.Object[null, "Status"].Value;
    //For this little snippet, we're just outputting the activity ID and it's status
    Console.WriteLine(icpActivity.Object[null,"Id"].Value + " " + status.DisplayName);
    Regarding the rest of your post, I'm not sure what you meant when you said you wanted the "change of activity". Are you trying to display the time that an activity's status changed (stored in the activity's history records)?
    Second, if you're displaying this information on some other custom portal, what is the purpose for the workflow?
    A couple disclaimers: Use this code at your own risk, there are no guarantees, etc etc :) Second, I'm assuming you're on Service Manager 2012 RC at least (otherwise the "versions" in the code will need to be changed)
    Are you new to the SCSM SDK? If so, this code snippet might seem overwhelming. I recommend reading the Service Manager blog to get an idea about how classes, objects, relationships, type projections, etc all work.
    Here's a link to a post by Travis that uses the SDK..he also references a lot of the information necessary to best understand Service Manager's inner workings :)
    http://blogs.technet.com/b/servicemanager/archive/2010/10/04/using-the-sdk-to-create-and-edit-objects-and-relationships-using-type-projections.aspx

  • How to get File created Date

    Hi..
    I need to get the file deleted date. Based on that i ve to remove those files which dates are less than 2004dec31.
    i can use fobj.delete(), for deleting the file. But how can i get the file created date?
    Regards
    KC.

    JNI.

  • How to get Illustrator 10 to run on windows 7 ultimate and not in XP mode?

    I have been running Illustrator 10 on windows 7 pro with no problems. I upgraded to a new computer with windows 7 Ultimate and Illustrator will only run in XP mode. It will not open my existing files stating that they were created in a newer version.
    How can Illustrator be run in windows 7 Ultimate?

    Actually, if you go to the program .exe file (usually in Program files(x86)\Adobe\Illustrator 10\Support Files\Contents\Windows).
    Right click on it and select properties.
    Select the Compatibility tab.
    In the section "Compatibility mode".
    Check the box "Run this program ...."
    From the dropdown list select Windows 7
    In the "Settings" section
    Check "Disable visual themes" and "Disable desktop composition"
    This will allow Illustrator to run normally in Windows 7 Pro and Ultimate 64bit systems.

  • Had to reload windows nt 4.0 how to get oracle 8.05 running again

    I had to reload win nt 4.0. How do I get oracle running again?

    I would assume you'd have to reinstall the Oracle software to get the Registry Entries and Services re-added to the machine.

Maybe you are looking for

  • How to Restore Windows 8 if System Crashes

    Okay I purchased three HP Pavilions (1 last month two last year) from Best Buy.  They did not come with Windows 8.1 Recovery Disk.  So how can I restore Windows 8.1 if my disk crashes?  How can I get the media and the product key for Win 8.1 for my s

  • Material wise Sales area and customer master

    Hi, Suppose I have a plant 4002, if i want to see all the material of plant 4002 then i can see those to following MM60 transaction code but if i want to see a particular material and that material is belongs to which sales area and which customer ma

  • I keep trying to update my itunes and it keeps coming up with error 87... could someone please help me.

    recently i downloaded I.O.S 7 and a few days later it says Activation Error.... This device is not register as part of the iphone developer program. If you are a member of the iphone developer program, please register your device in the iphone develo

  • Previews do not show correctly

    Hi, I have previously used LR only occasionally and mainly done all my work with Photoshop. Now started seriously using LR 3.2 instead. Imported all my aproximately 40 000 ready made pictures (mainly 16 bit PSDs but also TIFFs and jpegs) into one LR

  • Latest DisplayLink Drivers For Running Dual Monitors on Mac Lion OS Crashes Fireworks CS5

    I run dual monitors off of my 2011 MacBook Pro via the Diamond BVU195 HD USB Display Adapter. The Diamond BVU195 uses DisplayLink drivers. I upgraded my Mac OS to Lion yesterday and had to update my DisplayLink drivers to the latest version: 1.7b2. T