Skip to main content

Posts

Showing posts from December, 2005

Eclipse Startup Issue: java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory

Today when I started my Eclipse, it simply refused to!!! It simply flashed an alert asking to look into log file. And log file simply said: !SESSION Dec 31, 2005 10:50:19.810 --------------------------------------------- eclipse.buildId=I200406251208 java.version=1.3.1_01 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US !ENTRY org.eclipse.osgi Dec 31, 2005 10:50:19.810 !MESSAGE Error registering XML parser services. !STACK 0 java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory 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 java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.eclipse.core.runtime.adaptor.EclipseAd...

Useless Facts

It is impossible to lick your elbow. A crocodile can’t stick it’s tongue out. A shrimp’s heart is in their head. A pregnant goldfish is called a twit. On average, a human being will have sex more than 3,000 times and spend two weeks kissing in their lifetime. Rats and horses can’t vomit. If you sneeze too hard, you can fracture a rib. If you try to suppress a sneeze, you can rupture a blood vessel in your head or neck and die. If you keep your eyes open by force, they can pop out. Rats multiply so quickly that in 18 months, two rats could have over million descendants. Wearing headphones for just an hour will increase the bacteria in your ear by 700 times. If the government has no knowledge of aliens, then why does Title 14, Section 1211 of the Code of Federal Regulations of US, implemented on July 16, 1969, make it illegal for U.S. citizens to have any contact with extraterrestrials or their vehicles? The cigarette lighter was invented before the match. Thirty-five percent of the peop...

Google Search: Hello Microsoft World

" Is you primary platform Microsoft based? Do you work with Microsoft products most of the time? Are most of your Google Searches Microsoft products based? Well then, this url www.google.com/microsoft should be your first stop, instead of the regular www.google.com. Initially I thought it was a joke. Especially with the Google logo sitting snugly on the Windows XP background. But a quick search for Hello World brought me hello world occurences only from the Microsoft world! Neat, pretty neat! I set about to unearth the other such topic based searches that google supported (yes, thats what they are called "Topic-Specific Searches."... "

Using AJAX with Java Technology

Greg Murray has written an introductory article on AJAX with Java for Sun's Enterprise Java Technologies Tech Tips series. " Java technology and AJAX work well together. Java technology provides the server-side processing for AJAX interactions. It can provide this through servlets, JavaServer Pages (JSP) technology, JavaServer Faces (JSF) technology, and web services. The programming model for handling AJAX requests uses the same APIs that you would use for conventional web applications. JSF technology can be used to create reusable components that generate the client-side JavaScript and corresponding server-side AJAX processing code. Let's look at an example that uses AJAX and servlets.... "

Remote Debugging with Eclipse

Levent Gurses has published an article on Remote Debugging with Eclipse. He has touched Weblogic, JBoss and Tomcat server. " How many times trying to fix a server-side Java problem appeared trivial, but getting to the source of the problem took all the time? A debugger attached to a remote Java application can shorten the defect-discovery times significantly and make the process more enjoyable... "

toString() Generator plugin for Eclipse

While working in my latest project, I came across a situation where I needed a toString method for my TO (Transfer Object) classes. Instead of using reflection, I simply downloaded Eclipse Plugin for toString generation . Restart the Eclipse and it is ready to be used. For any class that require a toString(), switch to Package Explorer, and right click on the class name. Select 'Generate toString' from the context menu, select the fields, and the method is there in the class! I had this plugin for quite some time, and had actually forgotton that its not the part of Eclipse. So, in my current project, when I failed to see 'toString generator', I realized it a plugin :) Besides toString, if you like to see equals() and hashCode() methods as well, use Commonclipse plugin .

What Matters Most is how U See Yourself

[Received in an email]