Blog

Running Multiple Commands with SSHExec ANT Task

Did you have to figure out how to run multiple commands within the Ant’s Optional SSHExec task? Here’s how to do it: <sshexec host=”${host.name}” trust=”true” username=”${user}” password=”${pw}” keyfile=”${optional.keypair}” command=”command1 &amp;&amp; command2 &amp; command3″/> You just basically chain the commands consecutively with “&amp;&amp;”

Continue reading →

Apache2 Proxy Disabled Connection on (localhost)

If you ever tried to set a proxy connection where you’re using Apache to serve as the front-end host for a webapp (via Tomcat) on the same server and you ran into a similar error message: [error] proxy: HTTP: disabled connection for (localhost) -or- [error] ap_proxy_connect_backend disabling worker for (localhost) You can try this to [...]

Continue reading →

Rookie Gradle Errors I Made

This is just a beginning of a long series of posts documenting the rookie mistakes that I’ve made while getting acquainted with Gradle. Ever received this error? * What went wrong: Could not compile build file ‘/path/to/build.gradle’. > startup failed: build file ‘/path/to/build.gradle’: 4: expecting anything but ”\n”; got it anyway @ line 4, column [...]

Continue reading →

Set “ulimit” parameters to fix “Too Many Open Files” Error

If you ever run into the following errors with the below stacktrace, there’s a more than likely easy fix for it at the bottom of this article. java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.TestContext.get ApplicationContext(TestContext.java:308) at org.springframework.test.context.support.DependencyInjection TestExecutionListener.injectDependencies (DependencyInjectionTestExecutionListener.java:109) at org.springframework.test.context.support.DependencyInjection TestExecutionListener.prepareTestInstance (DependencyInjectionTestExecutionListener.java:75) at org.springframework.test.context.TestContextManager.prepareTestInstance (TestContextManager.java:321) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest (SpringJUnit4ClassRunner.java:211) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1. runReflectiveCall(SpringJUnit4ClassRunner.java:287) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at [...]

Continue reading →

modprobe loop FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory

Ever run into an error message like this? modprobe loop FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory If you take a peek into the /lib/modules, what do you see? Do you just see this? 2.6.21-1.3194.fc7 You can just simply create a symlink of 2.6.16-xenU to that to stop the error messages: cd [...]

Continue reading →

/sbin/mingetty[1823]: tty2: No such file or directory

Did you ever get this similar error messages? Aug 12 12:46:39 ip-10-10-10-99 /sbin/mingetty[1736]: tty2: No such file or directory Aug 12 12:46:39 ip-10-10-10-99 /sbin/mingetty[1737]: tty3: No such file or directory Aug 12 12:46:39 ip-10-10-10-99 /sbin/mingetty[1738]: tty4: No such file or directory Aug 12 12:46:39 ip-10-10-10-99 /sbin/mingetty[1739]: tty5: No such file or directory Aug 12 12:46:39 [...]

Continue reading →