Start Up class

Hi,experts
1. Im creating a a new project
2.I deleted a default from in .Net
3.I passed command line argument
4.I added a module with my project
5.now i want assign that module as start up file
6.but it is not showing my module in start list
plz help me...

Hi,
It contains sub Main but module which is added by me is not coming.
i gave my module as startUp
in my project there is no sub main module
thx for ur reply

Similar Messages

  • My 4s worked fine until i upgraded to IOS8. Is anyone starting a class action lawsuit against Apple?

    My 4s worked fine until i upgraded to IOS8. Is anyone starting a class action lawsuit against Apple?

    I already had all of the features turned off, had 20% free, all transparency were turned off and a few apps were on refresh and now are all turned off.
    Like I said, my phone worked fine until I installed IOS 8 and now the screen will freeze intermittingly and runs very slowly when searching it. In other words IOS 8 significantly diminished the operation of a perfectly good phone and Apple will not let you roll it back to IOS 7. They F’d up my phone intentionally to sell us all the latest model.

  • Stop all Message delivery until start-up class executes

              On fail-over, I need to be able to keep any messages from topics/queues from being
              sent to the destinations until a start-up class has been executed and initialized
              the application. The problem is that the mdb's get deployed prior to the start-up
              class and immediately receive messages. This causes problems since the mdb's
              rely on the start-up class executing prior to onMessage().
              Is there a way to disable message delivery on start-up, prior to the deployment
              of the mdb's? I have implemented a temporary solution of checking to see if the
              start-up class has been bootstrapped, and if no, do a thread sleep for a specified
              time period and repeat...
              

    I had the same issue. We wrote a startup class that spawns a new thread to
              make a JMX call to see if the server is up. Once the server is up, the
              thread would deploy the MDB using JMX.
              Adarsh
              Looks like you came up with a good workaround.
              "Josh Zook" <[email protected]> wrote in message
              news:3cbd9fff$[email protected]..
              >
              > On fail-over, I need to be able to keep any messages from topics/queues
              from being
              > sent to the destinations until a start-up class has been executed and
              initialized
              > the application. The problem is that the mdb's get deployed prior to the
              start-up
              > class and immediately receive messages. This causes problems since the
              mdb's
              > rely on the start-up class executing prior to onMessage().
              >
              > Is there a way to disable message delivery on start-up, prior to the
              deployment
              > of the mdb's? I have implemented a temporary solution of checking to see
              if the
              > start-up class has been bootstrapped, and if no, do a thread sleep for a
              specified
              > time period and repeat...
              

  • ClassNotFoundException while calling start-up class in EAR

    Hi,
    I have a seemingly strange problem while executing a start-up class in my deployed
    (exploded) EAR. As suggested in WebLogic docs, I'm using the weblogic-application.xml
    to configure my startup class:
    <weblogic-application>
    <listener>
    <listener-class>com.i2.srm.integration.utils.IntegServerStartupManager</listener-class>
    </listener>
    </weblogic-application>
    When the start-up class is executed, it configures a listener class for some JMS
    queues. But Weblogic JMS code cannot find the listener class, even though other
    classes in the same jar & package are resolved (please see stack trace below).
    Also, here is the dir structure of my application:
    <application EAR dir>
         /APP-INF
              /lib
                   messaging-sb-client.jar
                   sourcingInteg.jar
         /META-INF
              application.xml
              weblogic-application.xml
         /messaging
              /com/i2/srm/messaging/..
              /META-INF
         /test
              /com/i2/srm/integration/test/..
              /META-INF
    Both the listener class & the class 'not found' are in the same jar file: sourcingInteg.jar.
    Stack Trace :
    weblogic.jms.common.JMSException: Error create server session pool
         at weblogic.jms.backend.BackEnd.serverSessionPoolCreate(BackEnd.java:1733)
         at weblogic.jms.backend.BackEnd.invoke(BackEnd.java:2863)
         at weblogic.jms.dispatcher.Request.wrappedFiniteStateMachine(Request.java:609)
         at weblogic.jms.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.java:153)
         at weblogic.jms.frontend.FEConnection.serverSessionPoolCreate(FEConnection.java:906)
         at weblogic.jms.frontend.FEConnection.invoke(FEConnection.java:1629)
         at weblogic.jms.dispatcher.Request.wrappedFiniteStateMachine(Request.java:609)
         at weblogic.jms.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.java:153)
         at weblogic.jms.backend.BEServerSessionPoolFactory.createServerSessionPool(BEServerSessionPoolFactory.java:133)
         at weblogic.jms.backend.BEServerSessionPoolFactory.getServerSessionPool(BEServerSessionPoolFactory.java:72)
         at com.i2.srm.messaging.controllers.JmsHelper.setSessionPool(JmsHelper.java:97)
         at com.i2.srm.messaging.controllers.ListenerManager.registerListener(ListenerManager.java:179)
         at com.i2.srm.integration.messaging.SRMServerListenerManager.createQueues(SRMServerListenerManager.java:94)
         at com.i2.srm.integration.messaging.SRMServerListenerManager.init(SRMServerListenerManager.java:55)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.i2.srm.rfc.utils.RWBaseServerStartupManager.invokeInit(RWBaseServerStartupManager.java:54)
         at com.i2.srm.rfc.utils.RWBaseServerStartupManager.invokeAllStartups(RWBaseServerStartupManager.java:131)
         at com.i2.srm.integration.utils.IntegServerStartupManager.postStart(IntegServerStartupManager.java:26)
         at weblogic.j2ee.ListenerInvocationAction.run(ListenerInvocationAction.java:58)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
         at weblogic.j2ee.J2EEApplicationContainer.notifySecureListener(J2EEApplicationContainer.java:4449)
         at weblogic.j2ee.J2EEApplicationContainer.notify(J2EEApplicationContainer.java:4426)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2098)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2052)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2000)
         at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivation(SlaveDeployer.java:3073)
         at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:1647)
         at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:403)
         at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:230)
         at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
         at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:927)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:354)
         at weblogic.Server.main(Server.java:32)
    Caused by: weblogic.jms.common.ConfigurationException: Listener class, com.i2.srm.integration.messaging.IntegMessageListener,
    not found
         at weblogic.jms.backend.BEServerSessionPool.setListener(BEServerSessionPool.java:283)
         at weblogic.jms.backend.BEServerSessionPool.initialize(BEServerSessionPool.java:220)
         at weblogic.jms.backend.BEServerSessionPool.<init>(BEServerSessionPool.java:130)
         at weblogic.jms.backend.BackEnd$4.run(BackEnd.java:1713)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:123)
         at weblogic.jms.backend.BackEnd.serverSessionPoolCreate(BackEnd.java:1709)
         ... 36 more
    Any clues are appreciated!
    Thanks in advance,
    - Gagan

    Avi, I was just waiting for the "servlet hack".
    I really prefer the application client way, much cleaner, no servlet container needed, and could be tested outside the container.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                       

  • Order of starting startup classes

    I am using WLS 4.5. Is there a way to tell the server in which order to
    start the startup classes?
    I have tried putting them in certain order in the properties file, but that
    certainly does not
    do it. Any other tricks?

    per the WLS 4.5.1 documentation you can start the classes in a specific
    order by putting them in the same line in the properties file separated by
    commas.
    e.g.
    virtual class name= class A, class B, class C
    Read the part on start up classes in the doc on the WebLogic properties
    file.
    farnaz <[email protected]> wrote in message
    news:8i5nph$ifu$[email protected]..
    I am using WLS 4.5. Is there a way to tell the server in which order to
    start the startup classes?
    I have tried putting them in certain order in the properties file, butthat
    certainly does not
    do it. Any other tricks?

  • BB protect: Error starting net_rim_bb_dryad_gui:Class 'net.rim.device.api.iui.theme.Themes$Writer' not found

    Hello there.
    I am using a blackberry curve 8520. It came with version 4 of the OS. I upgradede it yesterday, 15 feb to version 5. After the upgrade so far I am experiencing 2 technical problems.
     1 is with the blackberry protect app. which when I launch give me this error message: BB protect: Error starting net_rim_bb_dryad_gui:Class 'net.rim.device.api.iui.theme.Themes$Writer' not found with an OK button. 
    2. When I enter the blackberry app world it give me the following message: A BlackBerry Idenity update is neeeded. Would you like to install it now ? yes/no. The problem here is, it never installs, tried it the whole day yesterday as I am still trying it now. I have rebooted the device, removed battery and sim several times. Still. This is what it give me instead. Blackberry idenity installation failed. Please try again later. (80003).
    Sorry if I am askign basic questions but I am not a techy person at all. Thanks in advance, 

    Hi and welcome to the forums!
    We need to fix your issues in reverse order.
    The Blackberry Protect program requires a valid Blackberry ID to operate.
    (To use BlackBerry Protect you must have the following items:
    • BlackBerry® ID account
    • Data plan from your wireless service provider)
    I suggest we use KB29613 to fix the Blackberry Identity problem.
    Once your Blackberry ID is established you can access Blackberry App World
    and download the latest version of Blackberry Protect.
    Let us know how it goes!
    Thanks,
    Bifocals
    KB29613 The error "BlackBerry Identity installation failed. Please try again later. (80003)" is displayed within BlackBerry App World
    User Guide - BlackBerry Protect
    Security Note - BlackBerry Protect
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • Serious Problem with Start-up Classes

    Hi,
    I'm using Start-up classes (implementing com.evermind.server.OC4JStartup) to automatically cache some metadata on Server Start-up.
    Its a great feature and works really well on OC4J Standalone, but I'm having difficulties getting it to work with the Full OAS.
    My code looks up a servlet then passes requests into that servlet to cache the data.
    However, when I look up the Servlet (@ http://127.0.0.1/ismart/iSmartServlet/Dispatcher) I get a 500 error returned. But if I got to that URL in a browser on the PC itself, all is returned ok.
    Is there anything that I am doing wrong here ?
    Has anyone come across something similar ?
    Cheers,
    Ronan

    I'm having similar problem - computer gets a flashing ? on startup, started off os install and disk utility, first aid - shows HD but will not verify. Disk Warrior may be my only hope at this point as I've gone through the list provided by Apple. I also hooked up an external drive and it did give me a verify disk option on it? So my question is, I believe it's a disk directory problem, but what are the chances it's a bad hard drive? Any tell, tell signs? I hear the drive spinning but nothing really out of the ordinary that I can tell.
    Thanks

  • Call EJB from Start Up class

    I'm using OC4J 10.1.3 Standalone.
    I have a requirement to initialize web services and configuration parameters during app server start up.
    Accordingly,I planned to call a EJB 2.0 stateless session bean from a StartUp class.
    The ejb is responsible for initializing some configurations and web services.The ejb is dependent on some other classes which are present as utility jars .
    However,I cannot somehow figure out how to refer the EJB from my startup class because the EAR which contains the EJB jar is in a child loader to that containing the startup class.
    Please guide me!! Please suggest if some alternative approach could be taken to suffice my requirement.
    TIA

    Avi, I was just waiting for the "servlet hack".
    I really prefer the application client way, much cleaner, no servlet container needed, and could be tested outside the container.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                       

  • NullPointer Exception ,web start Static class loading in sun JRE with JNLP

    I have a netbenas based application and using with jre 1.6.0_22.
    i am getting NPE as
    java.lang.NullPointerException
    at com.sun.deploy.security.CPCallbackHandler.isAuthenticated(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler.access$1300(Unknown Source)
    at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.osi.solutions.platform.classbuilder.view.ClassExplorerTopComponent.<init>(ClassExplorerTopComponent.java:89)
    at com.osi.solutions.platform.classbuilder.view.ClassExplorerTopComponent.getDefault(ClassExplorerTopComponent.java:143)
    at com.osi.solutions.platform.classbuilder.view.ClassExplorerTopComponent$ResolvableHelper.readResolve(ClassExplorerTopComponent.java:198)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeReadResolve(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.readSerial(XMLSettingsSupport.java:544)
    at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:576)
    at org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:420)
    at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:531)
    at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:641)
    at org.netbeans.core.windows.PersistenceHandler.getTopComponentForID(PersistenceHandler.java:422)
    at org.netbeans.core.windows.PersistenceHandler.load(PersistenceHandler.java:147)
    at org.netbeans.core.windows.WindowSystemImpl.load(WindowSystemImpl.java:69)
    [catch] at org.netbeans.core.NonGui$2.run(NonGui.java:178)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    This issue comes very occassionaly .
    Does someone have any idea what is wrong. Is this related to any jre bug.
    Thanks,
    totaram

    Hi I'm the one who posted those findings... though further investigation found that increasing your heap size can help, but at best it only reduces the occurances of the problem.
    The real cause of the issue is that the Signer's info for a CachedJarFile is held onto by softreferences and is not "rebuilt" if it has been garbage collected. the Reason that increasing your initial heap size works, is that it helps to delay the conditions on which these softreferences are garbage collected. (SoftReferences become eligible for garbage collection when the heap needs to be expanded)
    I've put together a hack that traverses all of the jars in a webstart application, finds their corresponding CachedJarFile instance and sticks all of the relevant SoftReferences into a static list, so that they become "hard references" and are never garbage collected.
    Below is my JarSignersHardLinker.java hack To use it, just call JarSignersHardLinker.go() it will then
    * Check that you are running on webstart and you are on java 1.6 update 19 or higher.
    * If the above is true then it will spawn a new thread and create hard links to all the jarsigners for each jar on the classpath.
    If you need more info email me on my gmail account. My user name is squaat. I've also posted this code at Re: Error with Java WebStart Signed Jars on 1.6.0_19's new Mixed  Code
    If you find this helpful and it solves your problems, please leave a positive comment and/or vote for the bug at:
    http://bugs.sun.com/view_bug.do?bug_id=6967414
    If any oracle/sun webstart engineers are reading this, please contact me... we'd really like this bug fixed.
    import java.io.IOException;
    import java.lang.ref.SoftReference;
    import java.lang.reflect.Field;
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    import java.net.JarURLConnection;
    import java.net.URL;
    import java.net.URLConnection;
    import java.util.ArrayList;
    import java.util.Enumeration;
    import java.util.LinkedHashSet;
    import java.util.List;
    import java.util.Set;
    import java.util.jar.JarFile;
    * A utility class for working around the java webstart jar signing/security bug
    * see http://bugs.sun.com/view_bug.do?bug_id=6967414 and http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6805618
    * @author Scott Chan
    public class JarSignersHardLinker {
        private static final String JRE_1_6_0 = "1.6.0_";
         * the 1.6.0 update where this problem first occurred
        private static final int PROBLEM_JRE_UPDATE = 19;
        public static final List sm_hardRefs = new ArrayList();
        protected static void makeHardSignersRef(JarFile jar) throws java.io.IOException {
            System.out.println("Making hard refs for: " + jar );
            if(jar != null && jar.getClass().getName().equals("com.sun.deploy.cache.CachedJarFile")) {
                 //lets attempt to get at the each of the soft links.
                 //first neet to call the relevant no-arg method to ensure that the soft ref is populated
                 //then we access the private member, resolve the softlink and throw it in a static list.
                callNoArgMethod("getSigners", jar);
                makeHardLink("signersRef", jar);
                callNoArgMethod("getSignerMap", jar);
                makeHardLink("signerMapRef", jar);
    //            callNoArgMethod("getCodeSources", jar);
    //            makeHardLink("codeSourcesRef", jar);
                callNoArgMethod("getCodeSourceCache", jar);
                makeHardLink("codeSourceCacheRef", jar);
         * if the specified field for the given instance is a Softreference
         * That soft reference is resolved and the returned ref is stored in a static list,
         * making it a hard link that should never be garbage collected
         * @param fieldName
         * @param instance
        private static void makeHardLink(String fieldName, Object instance) {
            System.out.println("attempting hard ref to " + instance.getClass().getName() + "." + fieldName);
            try {
                Field signersRef = instance.getClass().getDeclaredField(fieldName);
                signersRef.setAccessible(true);
                Object o = signersRef.get(instance);
                if(o instanceof SoftReference) {
                    SoftReference r = (SoftReference) o;
                    Object o2 = r.get();
                    sm_hardRefs.add(o2);
                } else {
                    System.out.println("noooo!");
            } catch (NoSuchFieldException e) {
                e.printStackTrace();
                return;
            } catch (IllegalAccessException e) {
                e.printStackTrace();
         * Call the given no-arg method on the given instance
         * @param methodName
         * @param instance
        private static void callNoArgMethod(String methodName, Object instance) {
            System.out.println("calling noarg method hard ref to " + instance.getClass().getName() + "." + methodName + "()");
            try {
                Method m = instance.getClass().getDeclaredMethod(methodName);
                m.setAccessible(true);
                m.invoke(instance);
            } catch (SecurityException e1) {
                e1.printStackTrace();
            } catch (NoSuchMethodException e1) {
                e1.printStackTrace();
            } catch (IllegalArgumentException e) {
                e.printStackTrace();
            } catch (IllegalAccessException e) {
                e.printStackTrace();
            } catch (InvocationTargetException e) {
                e.printStackTrace();
         * is the preloader enabled. ie: will the preloader run in the current environment
         * @return
        public static boolean isHardLinkerEnabled() {
             boolean isHardLinkerDisabled = false;  //change this to use whatever mechanism you use to enable or disable the preloader
            return !isHardLinkerDisabled && isRunningOnJre1_6_0_19OrHigher() && isRunningOnWebstart();
         * is the application currently running on webstart
         * detect the presence of a JNLPclassloader
         * @return
        public static boolean isRunningOnWebstart() {
            ClassLoader cl = Thread.currentThread().getContextClassLoader();
            while(cl != null) {
                if(cl.getClass().getName().equals("com.sun.jnlp.JNLPClassLoader")) {
                    return true;
                cl = cl.getParent();
            return false;
         * Is the JRE 1.6.0_19 or higher?
         * @return
        public static boolean isRunningOnJre1_6_0_19OrHigher() {
            String javaVersion = System.getProperty("java.version");
            if(javaVersion.startsWith(JRE_1_6_0)) {
                //then lets figure out what update we are on
                String updateStr = javaVersion.substring(JRE_1_6_0.length());
                try {
                    return Integer.parseInt(updateStr) >= PROBLEM_JRE_UPDATE;
                } catch (NumberFormatException e) {
                    //then unable to determine updatedate level
                    return false;
            //all other cases
            return false;
          * get all the JarFile objects for all of the jars in the classpath
          * @return
         public static Set<JarFile> getAllJarsFilesInClassPath() {
              Set<JarFile> jars = new LinkedHashSet<JarFile> ();
             for (URL url : getAllJarUrls()) {
                 try {
                     jars.add(getJarFile(url));
                 } catch(IOException e) {
                      System.out.println("unable to retrieve jar at URL: " + url);
             return jars;
         * Returns set of URLS for the jars in the classpath.
         * URLS will have the protocol of jar eg: jar:http://HOST/PATH/JARNAME.jar!/META-INF/MANIFEST.MF
        static Set<URL> getAllJarUrls() {
            try {
                Set<URL> urls = new LinkedHashSet<URL>();
                Enumeration<URL> mfUrls = Thread.currentThread().getContextClassLoader().getResources("META-INF/MANIFEST.MF");
                while(mfUrls.hasMoreElements()) {
                    URL jarUrl = mfUrls.nextElement();
    //                System.out.println(jarUrl);
                    if(!jarUrl.getProtocol().equals("jar")) continue;
                    urls.add(jarUrl);
                return urls;
            } catch(IOException e) {
                throw new RuntimeException(e);
         * get the jarFile object for the given url
         * @param jarUrl
         * @return
         * @throws IOException
        public static JarFile getJarFile(URL jarUrl) throws IOException {
            URLConnection urlConnnection = jarUrl.openConnection();
            if(urlConnnection instanceof JarURLConnection) {
                // Using a JarURLConnection will load the JAR from the cache when using Webstart 1.6
                // In Webstart 1.5, the URL will point to the cached JAR on the local filesystem
                JarURLConnection jcon = (JarURLConnection) urlConnnection;
                return jcon.getJarFile();
            } else {
                throw new AssertionError("Expected JarURLConnection");
         * Spawn a new thread to run through each jar in the classpath and create a hardlink
         * to the jars softly referenced signers infomation.
        public static void go() {
            if(!isHardLinkerEnabled()) {
                return;
            System.out.println("Starting Resource Preloader Hardlinker");
            Thread t = new Thread(new Runnable() {
                public void run() {
                    try {
                        Set<JarFile> jars = getAllJarsFilesInClassPath();
                        for (JarFile jar : jars) {
                            makeHardSignersRef(jar);
                    } catch (Exception e) {
                        System.out.println("Problem preloading resources");
                        e.printStackTrace();
                    } catch (Error e) {
                         System.out.println("Error preloading resources");
                         e.printStackTrace();
            t.start();
    }Edited by: 855200 on 04-Jul-2011 17:31

  • Letting tomcat start a class

    I have a class which runs as a daemon thread. I want this class to start right after tomcat boots. Is there a way to make Tomcat execute a class on startup?
    The only way I can think of is creating a simple class which fetches a JSP that starts the thread. If anyone knows a better solution, I would be grateful.

    If you want to run something on startup you can do it via a web.xml file:
       <servlet>
          <servlet-name>StartupServlet</servlet-name>
          <servlet-class>xxx.xxx.xxx.xxx.StartupServlet</servlet-class>
          <init-param>
          <param-name>name</param-name>
          <param-value>value</param-value>
          </init-param>
          <init-param>
          <param-name>name2</param-name>
          <param-value>value2</param-value>
          </init-param>
          <load-on-startup>1</load-on-startup>     
       </servlet> 

  • Starting a class as a Windows Service??

    I�ve developed a server which has a startup class. What is the best way for me to install this class as a windows service that start up automatically at computer startup??
    please help... I�m dying here
    thanx Iceland

    You could create a BAT script that starts your Java program and then use the program SRVANY.EXE to register the BAT-file as a Service.
    SRVANY is on the Resource Kit.
    Perhaps you can use http://www.firedaemon.com/ instead.
    /rolex

  • Trouble w/ multiple applets dynamically starting and Class.forName()

    I'm trying to start applets dynamically and I see strange behavior on some systems it works fine and gets the applet class from the jar file. On other systems it makes an http request back to the server to try and get the class. I don't know where in the Class or ClassLoader it's deciding whether to get this class from the jarfile or from the server and all of these classes are contained in the jarfile? Any suggestions?
    Here's the method to start new applets
    public Component startApplet( String className ) {
    System.out.println("Starting applet "+className);
    Class appletClass = null;
    JApplet japplet = null;
    try {
    appletClass = Class.forName("com.actsolar.ui.applet."+className);
    System.out.println(appletClass);
    japplet = (JApplet)appletClass.newInstance();
    japplet.init();
    } catch (Exception e) {
    System.out.println("startapplet Exception: "+e.getMessage());
    return japplet;
    thanks,
    andrew

    Hi,
    I have seen the same problem when I mix up small letters and BIG LETTERS.
    Ex :
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <applet code="Function3.class"width="100" height="100">
    </applet>
    </html>
    will work with Function3.class
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <applet code="function3.class"width="100" height="100">
    </applet>
    </html>
    Will NOT work.
    Maybe this will help you , I am also new on JAVA so maybe you make the same mistake like I did ?
    Best Regards,
    Didier.

  • Cannot start Startup class in WL6.0

    Hi, I have a question regarding the startup class with WL6.0. here is the config.xml:
    =================================================================
    <StartupClass
    Arguments="connectionFactory=javax.jms.QueueConnectionFactory,queue=com.lasso.email.emailQueue"
    ClassName="com.lasso.service.mail.StartupEmailSender"
    FailureIsFatal="true" Name="EmailSender" Targets="localserver"/>
    <StartupClass Arguments="" ClassName="com.lasso.util.StartupLoad"
    FailureIsFatal="true" Name="StartupLoad1" Targets="localserver"/>
    <Security Name="lassov2" PasswordPolicy="wl_default_password_policy" Realm="wl_default_realm"/>
    ================================================================
    Here is what I got after start weblogic server 6.0:
    ================================================================
    <Jul 9, 2001 1:50:35 PM CDT> <Notice> <WebLogicServer> <WebLogic Server started>
    <Jul 9, 2001 1:50:35 PM CDT> <Notice> <WebLogicServer> <ListenThread listening
    o
    n port 80>
    <Jul 9, 2001 1:50:35 PM CDT> <Notice> <WebLogicServer> <SSLListenThread listenin
    g on port 443>
    <Jul 9, 2001 1:50:35 PM CDT> <Error> <Performance Pack> <Unable to load performa
    nce pack, using Java I/O.
    java.lang.ThreadDeath
    >
    <Jul 9, 2001 1:50:36 PM CDT> <Emergency> <WebLogicServer> <ListenThread.run()
    fa
    iled: java.lang.ThreadDeath>
    <Jul 9, 2001 1:50:36 PM CDT> <Emergency> <WebLogicServer> <The WebLogic Server
    i
    s no longer listening for connections. You should probably restart it.>
    <Jul 9, 2001 1:50:36 PM CDT> <Alert> <WebLogicServer> <Server shutdown has been
    requested by system>
    <Jul 9, 2001 1:50:36 PM CDT> <Alert> <WebLogicServer> <The shutdown sequence has
    been initiated.>
    <Jul 9, 2001 1:50:58 PM CDT> <Critical> <Kernel> <Execute Thread: 'ExecuteThread
    : '0' for queue: 'default'' stopped.>
    <Jul 9, 2001 1:51:06 PM CDT> <Critical> <Kernel> <Execute Thread: 'ExecuteThread
    : '1' for queue: 'default'' stopped.>
    <Jul 9, 2001 1:51:06 PM CDT> <Critical> <Kernel> <Execute Thread: 'ExecuteThread
    : '2' for queue: 'default'' stopped.>
    <Jul 9, 2001 1:51:06 PM CDT> <Critical> <Kernel> <Execute Thread: 'ExecuteThread
    : '3' for queue: 'default'' stopped.>
    <Jul 9, 2001 1:51:06 PM CDT> <Critical> <Kernel> <Execute Thread: 'ExecuteThread
    : '4' for queue: 'default'' stopped.>
    <Jul 9, 2001 1:51:06 PM CDT> <Critical> <Kernel> <Execute Thread: 'ExecuteThread
    : '5' for queue: 'default'' stopped.>
    <Jul 9, 2001 1:51:06 PM CDT> <Critical> <Kernel> <Execute Thread: 'ExecuteThread
    ==============================================================
    What can I do to start those StartUp classes successfully?
    Thanks.
    Alan Zhang

    Seems like your startup class is generating error that causing wl to
    shutdown. This is because you told wls that you don't want it to start if
    your startup class fails (FailureIsFatal="true" ).
    Take a look at your startup calss and see why is it failing...
    .raja
    "Alan Zhang" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi, I have a question regarding the startup class with WL6.0. here is theconfig.xml:
    =================================================================
    <StartupClass
    Arguments="connectionFactory=javax.jms.QueueConnectionFactory,queue=com.lass
    o.email.emailQueue"
    ClassName="com.lasso.service.mail.StartupEmailSender"
    FailureIsFatal="true" Name="EmailSender" Targets="localserver"/>
    <StartupClass Arguments="" ClassName="com.lasso.util.StartupLoad"
    FailureIsFatal="true" Name="StartupLoad1" Targets="localserver"/>
    <Security Name="lassov2" PasswordPolicy="wl_default_password_policy"Realm="wl_default_realm"/>
    ================================================================
    Here is what I got after start weblogic server 6.0:
    ================================================================
    <Jul 9, 2001 1:50:35 PM CDT> <Notice> <WebLogicServer> <WebLogic Serverstarted>
    >
    <Jul 9, 2001 1:50:35 PM CDT> <Notice> <WebLogicServer> <ListenThreadlistening
    o
    n port 80>
    <Jul 9, 2001 1:50:35 PM CDT> <Notice> <WebLogicServer> <SSLListenThreadlistenin
    g on port 443>
    <Jul 9, 2001 1:50:35 PM CDT> <Error> <Performance Pack> <Unable to loadperforma
    nce pack, using Java I/O.
    java.lang.ThreadDeath
    >
    <Jul 9, 2001 1:50:36 PM CDT> <Emergency> <WebLogicServer><ListenThread.run()
    fa
    iled: java.lang.ThreadDeath>
    <Jul 9, 2001 1:50:36 PM CDT> <Emergency> <WebLogicServer> <The WebLogicServer
    i
    s no longer listening for connections. You should probably restart it.>
    <Jul 9, 2001 1:50:36 PM CDT> <Alert> <WebLogicServer> <Server shutdown hasbeen
    requested by system>
    <Jul 9, 2001 1:50:36 PM CDT> <Alert> <WebLogicServer> <The shutdownsequence has
    been initiated.>
    <Jul 9, 2001 1:50:58 PM CDT> <Critical> <Kernel> <Execute Thread:'ExecuteThread
    : '0' for queue: 'default'' stopped.>
    <Jul 9, 2001 1:51:06 PM CDT> <Critical> <Kernel> <Execute Thread:'ExecuteThread
    : '1' for queue: 'default'' stopped.>
    <Jul 9, 2001 1:51:06 PM CDT> <Critical> <Kernel> <Execute Thread:'ExecuteThread
    : '2' for queue: 'default'' stopped.>
    <Jul 9, 2001 1:51:06 PM CDT> <Critical> <Kernel> <Execute Thread:'ExecuteThread
    : '3' for queue: 'default'' stopped.>
    <Jul 9, 2001 1:51:06 PM CDT> <Critical> <Kernel> <Execute Thread:'ExecuteThread
    : '4' for queue: 'default'' stopped.>
    <Jul 9, 2001 1:51:06 PM CDT> <Critical> <Kernel> <Execute Thread:'ExecuteThread
    : '5' for queue: 'default'' stopped.>
    <Jul 9, 2001 1:51:06 PM CDT> <Critical> <Kernel> <Execute Thread:'ExecuteThread
    ==============================================================
    What can I do to start those StartUp classes successfully?
    Thanks.
    Alan Zhang

  • Has anyone looked into starting a class action laws

    Just like the title says . Has anyone checked into this to see if there is one starting up. i was at the store yesterday and all of creatives cards on the self had vista compat. stickers on them NOW WE ALL KNOW THIS ISNT TRUE. AND SO DOES CREATIVE

    This is obviously not an appropriate forum for this topic.
    Dale

  • Create start-up class in the config.xml

    Is there a specific location to insert <startup-class>...</startup-class> in the config.xml? It doesn't seems to work when I inserted it at the end between </saf-agent> and </domain> in the config.xml. Any idea?

    rwooleen,
    I am writing a script to insert the <startup-class> .. </startup-class> into the config.xml. Any hints as to where is a reliable spot to insert in the config.xml? Aside from this, is there any straight forward command prompt to do this.
    Thanks.

Maybe you are looking for

  • More Than One App Window Open At A Time

    Hi, Having just done a complete fresh Erase & Install of OS X 10.6, after having had 10..4.11, I find that if I have more than one applications window open with another applications window on the screen ~ say a Finder window, and a Photoshop window,

  • Install Disk Doesn't Open to Do a Clean Install

    I have a 6-year-old Powerbook that was badly dropped which started freezes occurring in every program. 4-5 freezes per day. I backed up everything, then tried to do a clean install with my MacOSX.5 Installer disk, but can't get the computer to read t

  • Placing Subtotals within a Table - assistance needed!

    Hi Experts, I have a requirement for a change in a report that is created using XML Publisher and the output is from Release 12. There are a table of values where the output presently looks like this (not every column included, to ease clarity): Paye

  • Cannot send mail "recipient rejected because server does not allow relaying"

    Just went to Verizon store with new Iphone4.  They tried, but didn't help.  I can receive my email, but cannot reply or compose and send msgs.  The message says, "Cannot send mail.  A copy has been place in your Outbox.  The recipient xxxxxx was rege

  • Report Builder 3.0 Category Listing

    .  I have a budget report assembled with user drop-down parameters of "Budget Year", "Budget Department", and "Departmental Category". The report runs just fine with a single selected "Departmental Category" but if I select multiple "Departmental Cat