Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Executing the Servlet on Weblogic

Status
Not open for further replies.

Milleniumlegend

IS-IT--Management
Dec 16, 2003
135
I am not sure what the problem is but I compiled my servlet using the weblogic Version of JDK but I am getting the following error. Could someone please let me know what could be the likely cause.

I have packaged the whole directory into a WAR file.

The error is as below.

Code:
Error 500--Internal Server Error 
javax.servlet.ServletException: [HTTP:101253][ServletContext(id=35250198,name=marketdataform,context-path=/marketdataform)]: Servlet class SendEmail for servlet SendEmail could not be defined. The class file could be corrupt.
java.lang.UnsupportedClassVersionError: SendEmail (Unsupported major.minor version 49.0).
	at weblogic.servlet.internal.ServletStubImpl.prepareServlet(Lweblogic.servlet.internal.RequestCallback;)V(ServletStubImpl.java:846)
	at weblogic.servlet.internal.ServletStubImpl.getServlet(Lweblogic.servlet.internal.RequestCallback;)Ljavax.servlet.Servlet;(ServletStubImpl.java:535)
	at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:373)
	at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315)
	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6452)
	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321)
	at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118)
	at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3661)
	at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2630)
	at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)
	at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
	at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
 
It looks you have compiled the your class with JDK newer than the one Weblogic use.
I recommend you use the JDK of Weblogic. Matching the version number is not enough. You must use JDK of Weblogic because the compiler has been modified by Weblogic and you must use its own compiler.
Please check carefully.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top