Problem running application on JDev on linux machine

i get the following exception when i try to run my application from JDev on my linux machine
oracle.jsp.parse.JspParseException:
/adflib/sdk/templateDefNoForm.jspx: Line # 175, <jsp:directive.include file="/sdk/requiredJavaScript.jspx" xmlns:jsp="http://java.sun.com/JSP/Page"/>
Error: Include file not found: /sdk/requiredJavaScript.jspx
Can I do something to get rid of it?

Confirmed:
I'm seeing intermittent IOExceptions with beta1 and beta2. These never happened in Java 1.4.2.
There are no stack traces available on the server (tomcat logs + jnlpDownloadServlet.log).
All the client sees is:
An error occurred while launching/running the application.
Title: ScheduleWorldLocalhost
Vendor: Web Service Solutions, Inc.
Category: Download Error
Unable to load resource: http://localhost/sw/ScheduleWorldLocalhost.jnlp
Exception:
JNLPException[category: Download Error : Exception: java.io.IOException: Stream closed. : LaunchDesc: null ]
at com.sun.javaws.cache.DownloadProtocol$RetrieveAction.actionDownload(DownloadProtocol.java:425)
at com.sun.javaws.cache.DownloadProtocol.doDownload(DownloadProtocol.java:602)
at com.sun.javaws.cache.DownloadProtocol.getLaunchFile(DownloadProtocol.java:684)
at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(LaunchDownload.java:145)
at com.sun.javaws.Launcher.downloadResources(Launcher.java:946)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:335)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
at com.sun.javaws.Launcher.run(Launcher.java:165)
at java.lang.Thread.run(Thread.java:595)

Similar Messages

  • Application Web Catalog on linux machines.

    When tried to have Application Web Catalog on Linux machines like Cent-OS 6.3 and Ubuntu 12.04 thorugh firefox, It is asking for Silverlight to be installed. The Windows machines controlled by the same SCCM servers, are able to access the web catalog using
    Silverlight 5.0. 
    For firefox on Linux, the latest available Silverlight is 4.0. Web catalog is not working with this version of Silverlight.
    Is there any work-around to have Application Web Catalog on Linux Machines?

    As additional context, the design point for the Linux and UNIX capabilities in ConfigMgr is specifically for servers, not desktops.  Our thinking is that in a server-only scenario, user targeted policies don't really make any sense, and the
    Application Catalog doesn't really make any sense, as there isn't a "user" logged in to the console to interact with the catalog.
    If you have additional input on this topic, I'd be happy to hear it.  You can contact me offline at username mikelley with the usual "at" microsoft.com.
    Michael Kelley, Lead Program Manager, Open Source Technology Center

  • I can not run application in Jdev 11g

    hello,
    I can not run my application in Jdev 11g.
    [Running application mapsEditor on Server Instance IntegratedWebLogicServer...]
    [02:33:39 PM] ---- Deployment started. ----
    [02:33:39 PM] Target platform is (Weblogic 10.3).
    [02:33:40 PM] Retrieving existing application information
    [02:33:40 PM] Running dependency analysis...
    [02:33:40 PM] Deploying 3 profiles...
    [02:33:41 PM] Wrote Web Application Module to C:\Users\dema\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\drs\mapsEditor\ViewControllerWebApp.war
    [02:33:41 PM] Wrote EJB Module to C:\Users\dema\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\drs\mapsEditor\ModelEJB.jar
    [02:33:42 PM] Wrote Enterprise Application Module to C:\Users\dema\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\drs\mapsEditor
    [02:33:42 PM] Deploying Application...
    <01.03.2010 14:33:42 MSK> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1267443222659' for task '0'. Error is: 'weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].'
    weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].
         at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:54)
         Truncated. see log file for complete stacktrace
    >
    <01.03.2010 14:33:42 MSK> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'mapsEditor [Version=V2.0]'.>
    <01.03.2010 14:33:42 MSK> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false].
         at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:54)
         Truncated. see log file for complete stacktrace
    >
    [02:33:42 PM] #### Deployment incomplete. ####
    [02:33:42 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    What is this?
    Dema.

    Hi,
    what is the content in your application's weblogic-application.xml file that references adf.oracle.domain ? Does it look like this?
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <weblogic-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-application http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd"
    xmlns="http://www.bea.com/ns/weblogic/weblogic-application">
    <listener>
    <listener-class>oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener</listener-class>
    </listener>
    <listener>
    <listener-class>oracle.mds.lcm.weblogic.WLLifecycleListener</listener-class>
    </listener>
    <library-ref>
    <library-name>adf.oracle.domain</library-name>
    </library-ref>
    </weblogic-application>
    Frank

  • Font problems running a swing app under Linux

    I have an application running well under the Win family (NT, 2000, etc.)... and it also runs well under a Linux Red Hat os... but in the linux environment I've observed the folloowing font errors displayed in the screen:
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    this is a unexpected issue because I'm not setting any font in my code... How can I solve it ?
    It's a Java or OS configuration problem ??

    Here is a solution:-
    Copy SYMBOL.TTF to /usr/java/jdk1.3.1_01/jre/lib/fonts or wherever.
    Note the copy should have lower case name!
    Do a chmod 444 symbol.ttf
    I don't say where to get a copy from but you can imagine!!
    Modify the file fonts.dir in the same directory as follows:
    Change the first line by 1 ie if its 72 change to 73.
    Insert the following line:
    symbol.ttf -monotype-symbol-medium-r-normal--0-0-0-0-p-0-abode-fontspecific
    You have to do the above as root of course.

  • Problems running Application with Web Service Client

    Im having some problems maybe related to some classpath details?
    I am running a Web Service another computer which works fine. I have also made an application using Sun ONE Studio 1 consisting of a Web Service Client etc. and GUI which uses the Client to get data from the Web Service. This works fine as long as I use Sun ONE Studio to execute the application, but now I have packaged the application to a .jar file and have encountered problems:
    When running the application from the .jar file I get the exception:
    java.lang.NoClassDefFoundError: com/sun/xml/rpc/client/BasicService
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at util.servicelocator.ServiceLocator.getServant(ServiceLocator.java:68)
    at lagerApp.eHandelLager.jRegisterBrukerListeActionPerformed(eHandelLager.java:784)
    at lagerApp.eHandelLager.access$400(eHandelLager.java:20)
    at lagerApp.eHandelLager$5.actionPerformed(eHandelLager.java:277)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    I have searched the forum and found simular topics which are resolved by adding some lines to the classpath.
    How do I set the classpath? Do i have to use the classpath parameter from command window? How can I know which classpaths to include (libraries)..
    Any help would be nice.. : )

    Thank you for the reply..
    But im still geting the same error. I have tried to include all the libraries in JWSDP pack but still.. I have managed to narrow down the place where the error occures.. It actually happens when I try to get the WebService Client Servant which is located in the package LSC:
    ---> LSC.LWServiceGenClient.LWS_Impl service = new LSC.LWServiceGenClient.LWS_Impl();
    LSC.LWServiceGenClient.LWSServantInterface lagerServiceServant = LSC.LWServiceGenClient.LWSServantInterface_Stub)service.getLWSServantInterfacePort();
    return lagerServiceServant;
    Could something be wrong with the way I package the Jar? I'm using Sun One Studio and have tried including the 5 packages the application consists of; I have tried including just the files; moving the main class to <root>.. Still same problem..
    Or could there be some different fundemental thingy I have forgotten ??
    thanks
    Aqoi

  • NameNotFoundException in session bean  while running application from jdeve

    hi
    i am getting NameNotFoundException while connection to session bean when i run from Jdeveloper;
    i put ejb.jar.xml and orion-ejb-jar.xml put in classes/META-INF folder;
    in my application index.jsp connects to sessionbean;
    when i run index.jsp i am getting the follo
    [Starting OC4J using the following ports: HTTP=9000, RMI=23891, JMS=9227.]
    C:\j2sdk1.4.2_06\bin\javaw.exe -client -classpath C:\JDeveloper903\j2ee\home\oc4j.jar -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true com.evermind.server.OC4JServer -config C:\JDeveloper903\jdev\system9.0.3.1035\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    Embedded OC4J startup time: 4640 ms.
    Target URL -- http://192.168.68.214:9000/1304Release3-etrans-context-root/index.jsp
    Copying default deployment descriptor from archive at C:\JDeveloper903\jdev\mywork\1304Release3.0\EJB\classes/META-INF/orion-ejb-jar.xml to deployment directory C:\JDeveloper903\jdev\system9.0.3.1035\oc4j-config\application-deployments\current-workspace-app\classes...
    Auto-deploying file:/C:/JDeveloper903/jdev/mywork/1304Release3.0/EJB/classes/ (New server version detected)...
    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError
    Error compiling C:\JDeveloper903\jdev\mywork\1304Release3.0\EJB\classes: Syntax error in source
    Log4j Properties file Initialized with Path = C:\JDeveloper903\jdev\mywork\1304Release3.0\etrans\WEB-INF\log4j.properties
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    No of Hits to this page : 1
    [ERROR   ] ESACLoginController.jsp -- Un Authorised User Not Enough Credentials : ANIL
    [ERROR   ] ESACLoginController.jsp -- Un Authorised User Not Enough Credentials : ANIL
    [ERROR   ] ESACLoginController.jsp -- Un Authorised User Not Enough Credentials : ANIL
    javax.naming.NameNotFoundException: AccessControlSessionBean not found
    at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:130)
    at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:195)
    at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:66)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at ESACLoginController.jspService(ESACLoginController.jsp:89)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:721)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)
    wing in jdeveloper console;

    java.lang.OutOfMemoryError
    Set the jdev.conf directive
    AddVMOption     -Xmx512M

  • Problem running Java GUI apps in Linux

    When launching GUI Java apps a blank window with only a title appears and nothing more happens. Have no idea of how to deal with it..
    pvs@pvs-laptop:~$ uname -a
    Linux pvs-laptop 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux
    pvs@pvs-laptop:~$ java -version
    java version "1.5.0_14"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
    Java HotSpot(TM) Server VM (build 1.5.0_14-b03, mixed mode)

    Try wrapping the code that actually displays the GUI in a SwingUtilities.invokeLater (...)
    db

  • Problem with setTraficClass()  in Linux machine

    Hi
    We are facing some problem with setTraficClass() method in java.net.Socket . When we try to set a value 34 using this method in windows it is not setting. when try to see the Ip header in the packet using wireshark it is showing 00.
    After lot of googling we found in sun forum that in Windows os there is no support for TOS/DSCP. if we want to set a value we need to add a registry parameter. Now it is setting in Windows XP [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4696356]
    But our problem is we are trying to run the same thing on linux machine RedHat 2.6.18.92.e15-pae-1686 it is setting 00 . Please find the code bellow
    Is there any setting we need to do in linux machine to call the setTraficClass() method. I am new to linux and not able to fix this issue.
    Please help me
    Thanks in advance.
    Sethu
    Server code
    import java.net.*;
    import java.io.*;
    class server
    public static void main(String args[]) throws Exception
    byte[] receive_data = new byte[1024];
    byte[] send_data = new byte[1024];
    int recv_port;
    DatagramSocket server_socket = new DatagramSocket(5000);
    System.out.println ("UDPServer Waiting for client on port 5000");
    while(true)
    DatagramPacket receive_packet = new DatagramPacket(receive_data,
    receive_data.length);
    server_socket.receive(receive_packet);
    server_socket.getTraficClass()
    String data = new String(receive_packet.getData(),0 ,0
    ,receive_packet.getLength());
    System.out.println("socketIP"+server_socket.getTrafficClass());
    server_socket.setTrafficClass(0x18);
    InetAddress IPAddress = receive_packet.getAddress();
    recv_port = receive_packet.getPort();
    if (data.equals("q") || data.equals("Q"))
    break;
    else
    System.out.println("( " + IPAddress + " , " + recv_port
    + " ) said :" + data );
    Client code
    import java.net.*;
    import java.io.*;
    class Client
    public static void main(String args[]) throws Exception
    byte[] send_data = new byte[1024];
    BufferedReader infromuser =
    new BufferedReader(new InputStreamReader(System.in));
    DatagramSocket client_socket = new DatagramSocket();
    InetAddress IPAddress = InetAddress.getByName("127.0.0.1");
    while (true)
    System.out.println("Type Something (q or Q to quit): ");
    String data = infromuser.readLine();
    if (data.equals("q") || data.equals("Q"))
    break;
    else
    send_data = data.getBytes();
    DatagramPacket send_packet = new DatagramPacket(send_data,
    send_data.length,
    IPAddress, 5000);
    client_socket.setTraficClass(34)
    client_socket.send(send_packet);
    client_socket.close();

    Hi,
    when I use setsockopt() API on linux machine. I am able to set the DSCP value in the UDP socket.
    I can see the visibility of DSCP marking on the wireShark.
    when I use the setTraficClass(34) API on linux machine. I am not able to set the DSCP value in the UDP socket. It
    always takes the default value as 0. I cant see the visibility of DSCP marking on the wireShark.
    setSockopt() API supported in Linux machine. Why not SetTrafficClass() API?.
    Is there any changes required to make the SetTrafficClass() API to work on Linux platform?.

  • Java program runs differently on Windows and Linux

    Hi!
    I would like to run a java application (which is written and run on windows platform) on linux platform. I don't know wether it is possible or not, but I tired on the following way:
    I have made a small java application. It worked correctly on windows (I developed it on windows). I copied first only the class file (Start.class) to the linux machine (which has exactly the same JDK as windows machine). When I type the command:
    java Startit gives me the folloving error:
    Exception in thread "main" java.lang.ClassFormatError: Start (unrecognized class file version)
       at java.lang.VMClassLoader.defineClass(libgcj.so.7rh)
       at java.lang.ClassLoader.defineClass(libgcj.so.7rh)
       at java.security.SecureClassLoader.defineClass(libgcj.so.7rh)
       at java.net.URLClassLoader.findClass(libgcj.so.7rh)
       at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
       at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
       at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
       at gnu.java.lang.MainThread.run(libgcj.so.7rh)After that I was trying to compile the source file on linux with the command:
    javac Start.javabut the compiler gave me an error in the source file.
    Is there any way to run the formerly written java application (on windows) on linux machine?
    Thanks

    When I type the command java-version I get the following:
    java version "1.4.2"
    gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-46)
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.The JDK on linux and windows is the latest (I was download it today).
    How can I upgrade the jdk/jre on linux?
    Here is the compiler error:
    [root@Linux-oracle app]# javac DataMining.java
    1. ERROR in DataMining.java (at line 77)
            ArrayList<String> temp = new ArrayList<String>();
            ^^^^^^^^^
    The type ArrayList is not generic; it cannot be parameterized with arguments <String>
    2. ERROR in DataMining.java (at line 77)
            ArrayList<String> temp = new ArrayList<String>();
                      ^^^^^^
    Syntax error, parameterized types are only available if source level is 5.0
    3. ERROR in DataMining.java (at line 77)
            ArrayList<String> temp = new ArrayList<String>();
                                         ^^^^^^^^^
    The type ArrayList is not generic; it cannot be parameterized with arguments <String>
    4. ERROR in DataMining.java (at line 77)
            ArrayList<String> temp = new ArrayList<String>();
                                                   ^^^^^^
    Syntax error, parameterized types are only available if source level is 5.0
    5. WARNING in DataMining.java (at line 240)
            String youtube[][] = new String[20][5];
                   ^^^^^^^
    The local variable youtube is never read
    6. WARNING in DataMining.java (at line 267)
            int e;
                ^
    The local variable e is never read
    7. ERROR in DataMining.java (at line 329)
            for(int i=1;i<Video+1;i++)
                          ^^^^^^^
    The operator + is undefined for the argument type(s) Integer, int
    7 problems (5 errors, 2 warnings)

  • Compiling on a dual core machine and running the class files on linux.

    does compiling on a dual core machine and running the class files on linux have any effect?

    well, the problem that i felt was that when i runmy
    class files on my machine(windows xp, dual core),
    Thread.sleep(60000) sleeps for 1 minute. but wheni
    run it on a linux machine, Thread.sleep(60000)sleeps
    for 2 minutes. my application has a lot ofthreads.
    I can't be 100% sure, but I'm pretty sure that
    sleep(60000) doesn't sleep for 2 minutes on the other
    machine.I, wholeheartedly, agree.
    Due to timing issues it may seem to sleep a few milliseconds more, but not double.
    Of course, if there is a "real-time" (or even simply higher than the Java app) priority program running that is using a lot of the CPU it may seem like it sleeps a lot longer than 60000, but that is a different issue.

  • How to get all AD User accounts, associated with any application/MSA/Batch Job running in a Local or Remote machine using Script (PowerShell)

    Dear Scripting Guys,
    I am working in an AD migration project (Migration from old legacy AD domains to single AD domain) and in the transition phase. Our infrastructure contains lots
    of Users, Servers and Workstations. Authentication is being done through AD only. Many UNIX and LINUX based box are being authenticated through AD bridge to AD. 
    We have lot of applications in our environment. Many applications are configured to use Managed Service Accounts. Many Workstations and servers are running batch
    jobs with AD user credentials. Many applications are using AD user accounts to carry out their processes. 
    We need to find out all those AD Users, which are configured as MSA, Which are configured for batch jobs and which are being used for different applications on
    our network (Need to find out for every machine on network).
    These identified AD Users will be migrated to the new Domain with top priority. I get stuck with this requirement and your support will be deeply appreciated.
    I hope a well designed PS script can achieve this. 
    Thanks in advance...
    Thanks & Regards Bedanta S Mishra

    Hey Satyajit,
    Thank you for your valuable reply. It is really a great notion to enable account logon audit and collect those events for the analysis. But you know it is also a tedious job when thousand of Users come in to picture. You can imagine how complex it will be
    for this analysis, where more than 200000 users getting logged in through AD. It is the fact that when a batch / MS or an application uses a Domain Users credential with successful process, automatically a successful logon event will be triggered in associated
    DC. But there are also too many users which are not part of these accounts like MSA/Batch jobs or not linked to any application. In that case we have to get through unwanted events. 
    Recently jrv, provided me a beautiful script to find out all MSA from a machine or from a list of machines in an AD environment. (Covers MSA part.)
    $Report= 'Audit_Report.html'
    $Computers= Get-ADComputer -Filter 'Enabled -eq $True' | Select -Expand Name
    $head=@'
    <title>Non-Standard Service Accounts</title>
    <style>
    BODY{background-color :#FFFFF}
    TABLE{Border-width:thin;border-style: solid;border-color:Black;border-collapse: collapse;}
    TH{border-width: 1px;padding: 2px;border-style: solid;border-color: black;background-color: ThreeDShadow}
    TD{border-width: 1px;padding: 2px;border-style: solid;border-color: black;background-color: Transparent}
    </style>
    $sections=@()
    foreach($computer in $Computers){
    $sections+=Get-WmiObject -ComputerName $Computer -class Win32_Service -ErrorAction SilentlyContinue |
    Select-Object -Property StartName,Name,DisplayName |
    ConvertTo-Html -PreContent "<H2>Non-Standard Service Accounts on '$Computer'</H2>" -Fragment
    $body=$sections | out-string
    ConvertTo-Html -Body $body -Head $head | Out-File $report
    Invoke-Item $report
    A script can be designed to get all scheduled back ground batch jobs in a machine, from which the author / the Owner of that scheduled job can be extracted. like below one...
    Function Get-ScheduledTasks
    Param
    [Alias("Computer","ComputerName")]
    [Parameter(Position=1,ValuefromPipeline=$true,ValuefromPipelineByPropertyName=$true)]
    [string[]]$Name = $env:COMPUTERNAME
    [switch]$RootOnly = $false
    Begin
    $tasks = @()
    $schedule = New-Object -ComObject "Schedule.Service"
    Process
    Function Get-Tasks
    Param($path)
    $out = @()
    $schedule.GetFolder($path).GetTasks(0) | % {
    $xml = [xml]$_.xml
    $out += New-Object psobject -Property @{
    "ComputerName" = $Computer
    "Name" = $_.Name
    "Path" = $_.Path
    "LastRunTime" = $_.LastRunTime
    "NextRunTime" = $_.NextRunTime
    "Actions" = ($xml.Task.Actions.Exec | % { "$($_.Command) $($_.Arguments)" }) -join "`n"
    "Triggers" = $(If($xml.task.triggers){ForEach($task in ($xml.task.triggers | gm | Where{$_.membertype -eq "Property"})){$xml.task.triggers.$($task.name)}})
    "Enabled" = $xml.task.settings.enabled
    "Author" = $xml.task.principals.Principal.UserID
    "Description" = $xml.task.registrationInfo.Description
    "LastTaskResult" = $_.LastTaskResult
    "RunAs" = $xml.task.principals.principal.userid
    If(!$RootOnly)
    $schedule.GetFolder($path).GetFolders(0) | % {
    $out += get-Tasks($_.Path)
    $out
    ForEach($Computer in $Name)
    If(Test-Connection $computer -count 1 -quiet)
    $schedule.connect($Computer)
    $tasks += Get-Tasks "\"
    Else
    Write-Error "Cannot connect to $Computer. Please check it's network connectivity."
    Break
    $tasks
    End
    [System.Runtime.Interopservices.Marshal]::ReleaseComObject($schedule) | Out-Null
    Remove-Variable schedule
    Get-ScheduledTasks -RootOnly | Format-Table -Wrap -Autosize -Property RunAs,ComputerName,Actions
    So I think, can a PS script be designed to get the report of all running applications which use domain accounts for their authentication to carry out their process. So from that result we can filter out the AD accounts being used for those
    applications. After that these three individual modules can be compacted in to a single script to provide the desired output as per the requirement in a single report.
    Thanks & Regards Bedanta S Mishra

  • Unable to launch application on Linux machine

    Hi,
    We have a Java based product developed as desktop application. This product has a tree structure built-in. and while connecting to few of the nodes, we are getting the following error: "*Cannot write XdndAware property*".
    Note:
    1. We are running the application on a Linux machine.
    2. We are using JNLP to launch the application.
    3. Only few nodes are causing this issue.
    4. Tried putting -DsuppressSwingDropSupport=true in JNLP file, but no progress.
    5. This happens on JDK1.6.0_23 and above
    Can someone help us to resolve this issue.
    Thank you.
    Regards,
    KNP

    Let me explain my current requirement.
    1. All the client jars should be downloaded every time I click a link (as of now its a JNLP link, but this can change).
    2. And this should be platform independent
    3. I stated in the earlier description I should be able to pass arguments (suppressSwingDropSupport, etc) to VM to resolve the actual issue.
    Can someone please suggest any other approach?
    I have one more generic question: Can I write my own JNLP defining XSD & DTD, so that it can accept all the arguments whichever I can pass to the VM? If so, how to do this?
    Please respond

  • Problem to Load the data Flat file to Oracle table on Linux Machine

    hi,
    when i change the path of source flat file from windows to Linux machine. Now it gives the error. Basicalyy this file will load the files names into Oracle table. but in windows path its fine. All things r running fine in Linux. when i run the interface it gives this>>>>>>>>
    SQL*Loader: Release 11.2.0.1.0 - Production on Wed Dec 19 16:40:16 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
    ORA-12162: TNS:net service name is incorrectly specified
    Thanks
    Regards,
    Edited by: AMSI on Dec 19, 2012 6:01 AM

    I assume you're using the "LKM file to Oracle SQL Loader".
    For test purpose, can you just try with "LKM file to SQL" (slower) ?
    We could check if the problem comes from the SQL Loader.
    Your unix server has access to the oracle database ?

  • Can I build an application for a linux machine from a windows machine?

    Is it possible, with LV2012, to build an application for a target other than the the machine type that I am working on?
    meaning, can I build an application to run on a linux machine from my development machine, which runs on windows?
    alternatively, can I build an applications to run (natively, no WOW) on a 32-bit OS from a development machine that is a 64-bit OS and 64-bit labview?
    Or does LV only build for similar targets as the development platform, and I would need to move the source code to another development machine to generate code for a different type of target machine?
    Thank you!
    Solved!
    Go to Solution.

    You can only do a build for the OS that you have a license for and for the OS bitness that you are using. In other words, you need LabVIEW for Linux or LabVIEW for Mac to build exe's for them and you need LabVIEW Windows 64-bit to build a 64 bit exe. It does require moving the source code to the other development systems.

  • Execute a script in a Linux machine from a Java application

    Hi,
    I am trying to execute a script in a Linux machine from a Java application on a Windows environment. My code is
    commande="rsh 185.30.30.30 -l goku /newfolder/bench/bin/Agent start ";
    try{
    Process process = Runtime.getRuntime().exec(commande);
    catch(Throwable t){}
    It works fine but the script takes too much time to start (almost 3 minutes). My question is there exists anther way to execute the script, another command? I have already tried ssh but windows doesn�t recognize it
    If somebody has any idea please let me know...
    Thanks

    The script starts and stops a process (Agent) so it doesn�t take too much time to execute itself. It is when I execute the script from my java program that i must wait to watch my process running in my Linux server.

Maybe you are looking for

  • How to move library only (not data) to new SSD

    I currently have an iMac with a 2TB drive which contains my OS, application and all data (iTunes etc). However, I am about to install a 240GB SSD as an additional drive which I intend to use for the only for the OS and applications. I would like my i

  • Acrobat 9 Pro - Forms Not Calculating on any MAC platform?

    Neither basic calculations (multipying the value of two fields) or javascripted fields function on any MAC platform (so far tested MAC 10x and IPad).  Everything runs flawlessly on every PC tested.  Form is accurate, no javascript errors.  Replicatin

  • Problems with enveloping in Flash

    I'm trying to create a shape tween, in which I use the envelop transform. Somehow, when I change the position of the points on the left side of the object, the object rotates during the shape tween; if I change the position of the points on the left

  • Can i run itunes from an external harddrive and if so how?

    LIke i'm not a complete pleb and i know full well that this should work in theory i am just worried about moving the "itunes" folder to my external harddrive because i feel itunes will then say 'can't find library' or something. I have a G4 emac you

  • HP Pavillion p6120f needs a new graphics card

    Will Asus Low Profile NVIDIA GeForce 210 1GB GDDR2 PCI Express 2.0 Graphics Card Model: EN210 SILENT/DI/1GD2(LP)   work without requiring a new power supply? Running Windows Vista but may upgrade to Win 7.   Thx!