File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Got an error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Got an error" Watch "Got an error" New topic

Got an error

smita mishra
Ranch Hand

Joined: May 18, 2006
Posts: 31
when I try to call Servlet2 from index.html I got an error
Error 500--Internal Server Error
java.lang.NoClassDefFoundError: java/lang/StringBuilder
at Servlet2.doGet(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at weblogic.servlet.internal.ServletStubImpl$
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.WebAppServletContext$
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(
at weblogic.servlet.internal.ServletRequestImpl.execute(
at weblogic.kernel.ExecuteThread.execute(

How can I fix it?
Carol Enderlin
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
UseAMeaningfulSubjectLine, lots of people are here asking questions because they got an error. The fact that you got an error doesn't help determine whether someone might be able to or are interested in trying to help.

On to your error...

Sound like a java version issue. StringBuilder was added in Java 5. What versions of java and weblogic are you using?
I agree. Here's the link:
subject: Got an error
It's not a secret anymore!