FAQ Database Discussion Community


Where is jenkins config.xml? And why is this error appearing?

jenkins,openshift,config,startup
These two parts are together because I think they're related to each other. I'm running Jenkins' latest LTS war file (v1.596.2) directly from the command line. I'm using an Openshift DIY cartridge to do this. I have set my "JENKINS_HOME" environment variable to "$OPENSHIFT_DATA_DIR/jenkins". export JENKINS_HOME=$OPENSHIFT_DATA_DIR/jenkins Part 1: where is...

@PostConstruct called twice on simple @Singleton @Startup bean

java,singleton,ejb,startup,postconstruct
my problem is that the @PostConstruct is called twice even though it shouldn't. I searched a lot and found similiar problems with jersey https://java.net/jira/browse/JERSEY-1883?filter=-3. However I tried to make a small example which apparently still causes the problem even without any clatter. import javax.annotation.PostConstruct; import javax.ejb.Singleton; import javax.ejb.Startup; @Singleton @Startup...

Insert data in collection at Meteor's startup

javascript,json,meteor,data,startup
I would like to insert data at Meteor's startup. (And after from a JSON file) At startup, I create a new account and I would like to insert data and link it to this account once this one created. This is the code that creates the new account at startup:...

Where is the appropriate spot to seed and login a default user with ASP.NET MVC Identity 2.0?

c#,asp.net-mvc,asp.net-mvc-4,startup,asp.net-identity-2
I have an application that uses Identity 2.0 with Owin. I want the application to seed a default user and log in automatically while on development (I'm wrapping the method and its call with #if DEBUG condition). I tried adding the following method to IdentityConfig.csApplicationUserManager.Create method , but after calling...

Java move application to startup folder

java,move,startup,autostart
I am trying to add my APP to startup folder. public class info { public static String getautostart() { return System.getProperty("java.io.tmpdir").replace("Local\\Temp\\", "Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup"); } public static String gettemp() { String property = "java.io.tmpdir"; String tempDir = System.getProperty(property); return tempDir; } public static String getrunningdir() { String runningdir = ProjectGav.class.getProtectionDomain().getCodeSource().getLocation().getPath(); return...

WildFly 8.2.0 (JBOSS) standalone server unable to start

java,jboss,startup,wildfly-8
I'm new to application servers. I downloaded the latest version of JBOSS (WildFly 8.2.0) and I wanted to start the standalone server as specified here. I have properly set the JAVA_HOME (I use jdk 1.8.0_40) and JBOSS_HOME variables and also used the standalone.bat opposed to .sh file specified in the...

Simulate @Startup on EJB 3.0 (WebLogic 11gR1)

java,java-ee,ejb-3.0,startup,weblogic11g
My goal is to set up a scheduled job that starts running at startup. on EJB 3.1, I could do something like: @Startup @Stateless public class SchedulePoller { @Resource TimerService timerService; @PostConstruct public void defineScheduler() { timerService.createTimer(60000, 60000, null); } @Timeout public void checkSchedule(Timer timer) { System.out.println("time: " + new...

Best way to start Zookeeper automatically on Ubuntu Server 14.04?

ubuntu,startup,zookeeper,boot
I have installed Zookeeper using sudo apt-get install zookeeper on an Ubuntu server 14.04. I am having trouble understanding how to configure Zookeeper to start automatically, on boot. Also, I can manually start it successfully only with root priviledges. I have looked at the documentation from the official page and...

Measure java service performance during machine startup?

java,scalability,startup,performance-testing,java-service-wrapper
We have several java applications which run as Windows services using Tankui's java service wrapper. Our customer is encountering a scalability problem when the machine is starting up (first 30 seconds). Traditionally, we've used jconsole/visualvm to monitor Java Virtual Machine health. But these tools aren't very good for capturing java.exe...

AZURE VM refuses to start “Starting (Could not start)”

azure,virtual-machine,startup
We have set up a small AZURE VM (plain windows 2012 R2 image as provided by Microsoft) with a lightweight DEMO application that happily runs with SQLExpress and 1GB RAM. This VM did run quite fine for a month. A few days ago we shut down the VM and the...

SignalR - OWIN - Multiple endpoints

signalr,owin,startup
I have a scenario as such. A base class which modules are derived from. Each module has it's own signalr hubs. I want to host all modules in a single host, separated by module name. Some modules will share hub names. namespace domain.com.base { public class BaseClass { public string...

How can I fix a form's mobile view?

php,css,wordpress,css3,startup
I have a WordPress site: http://www.clevercontracts.co.za/contracts/ with a form on the one page. The problem is in mobile view the form is cut off completely! I think it has something to do with my box (padding). I tried a few variants, but nothing seems to work. I use the Contact...

How do I hide a C# program at Windows startup, but not when opening the program normally?

c#,windows,startup,launch,system-tray
I have a (.NET) program that boots automatically when Windows starts up. However, I don't want the main GUI window to show (I would have it hidden away in the tray). However, I want the window to of course show when the user opens the program in the normal way...

Increase neo4j startup

neo4j,timeout,startup
I am trying to increase the neo4j statup timeout but I didn't find the configuration to do so. I increased the timeout in neo4j daemon but it didn't change the startup timeout. Mt graph is very large(140GB) and 120 second is probably is not enough. I have neo4j 2.1.7 installed...

How to run a script on startup in hidden mode

batch-file,vbscript,windows-8.1,startup
I have a batch file, named prova.bat, and I need to launch it at the startup of the computer, and I need to launch it in hidden mode (with no visible prompt). I have found on the net solutions to launch the batch at the startup OR solutions to launch...

Splash screen in iOS games

ios,sprite-kit,loading,startup,splash-screen
I know there is a HIG about launch images, and the primary (and only) purpose of an launch image is to give users the impression that app is fast and responsive. But this is more usual for applications (weather application for example), not for the games. Every game almost always...

Android app start up animation

android,animation,startup
i just need to know how is it possible to create a start-up animation in your app. When the app is launched I would like it to go through custom animation and then it reaches the content of the app (main activity) ... Thanks for all your help...

Why is the Configuration method of the SignalR Startup class invoked twice

asp.net-mvc,signalr,startup,owin
I am running some initialization code in the Startup class used by SignalR. The code is invoked in the Configuration method (this is in as ASPNET MVC app). The initialization code needs to run exactly once and is placed in the Configuration(IAppBuilder app) method of the Startup class like so:...

How WebSphere manages startup order of EJB jars?

startup,ejb-3.1,websphere-8
When an ear would contain two ejb modules modulea.jar and moduleb.jar. And modulea.jar contains an @Startup ejbX, that calls another ejbY, which is not an @Startup ejb, from moduleb.jar during the startup of the bean X it is required that moduleb.jar is started first as otherwise the app server is...

Python/Pygame How to make something disappear off of screen after a set amount of time?

python,timer,pygame,startup
I was wondering if there was any sort of code to make something disappear from the screen after a set time? Something like an intro to your game?

Run C# app on Startup?

c#,permissions,startup
I have created a simple weather application and I added the code below to let the user let it run on Startup: RegistryKey rk = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true); if (startupCheck.Checked) { rk.SetValue("WeTile", "\"" + Application.ExecutablePath.ToString() + "\""); } else { rk.DeleteValue("WeTile", false); } Now this runs fine on both my computers....