Thursday, June 16, 2011

Failed to open service control manager

This error occurs when an application tries to create a new service in you machine.
This would be probably because you have logged in as a user who do not have administrator rights.

It is easy to fix the issue..
Either login as administrator or run the application as administrator(windows 7: right click > run as admistrator).

You can see all the services in
  • Control Panel > Administrative Tools > services.

If the application fails to start the service automatically you can start it manually also..


Let me know if it was helpful.
Enjoy coding!

Wednesday, March 16, 2011

Exception in thread "main" java.lang.UnsupportedClassVersionError: Solved

If you get any error like this:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/springfr

mework/roo/bootstrap/Main (Unsupported major.minor version 49.0)

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$100(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 java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClassInternal(Unknown Source)


It is because you have not properly set path for java or you are using wrong version of java.

Solution (for windows):

Check the version of your jdk and jre executing following commands in command prompt:

javac -version

java -version

If any of this is showing no version or an old version set the path in environment variable ( set in both System and User variables).

Make sure you are using the latest version of java.

It will fix the problem,

Happy Coding!!


Thursday, March 10, 2011

Web Service. IWAB0506E Error when copying Axis jar files to web project.



IWAB0506E Error when copying Axis jar files to web project
java.io.FileNotFoundException: /lib/saaj.jar
at org.eclipse.osgi.framework.internal.protocol.bundleentry.Handler.findBundleEntry(Handler.java:44)


1. Go to STS installation directory.
2. Open Plugins folder.

There you can find a bundle
javax.xml.soap_1.2.0.v201005080501 and javax.xml.soap_1.3.0.v201005080502.jar file.

3. Delete the javax.xml.soap_1.3.0.*****.jar file

Restart the sts. Now it will work.

Enjoy coding!!!!