File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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(Servlet2.java:23)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

How can I fix it?
Carol Enderlin
drifter
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?
 
jQuery in Action, 2nd edition
 
subject: Got an error
 
Similar Threads
SocketTimeoutException in Weblogic Server
BEA Weblogic deployment problem.
Error 500--Internal Server Error...
Internal server error with weblogic
JSP error