It's not a secret anymore!
The moose likes Tomcat and the fly likes HTTP 500 error when deploying war file in Apache Tomcat 7.0.25 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "HTTP 500 error when deploying war file in Apache Tomcat 7.0.25" Watch "HTTP 500 error when deploying war file in Apache Tomcat 7.0.25" New topic
Author

HTTP 500 error when deploying war file in Apache Tomcat 7.0.25

Anu Nandan
Greenhorn

Joined: Aug 15, 2012
Posts: 1
I get the below error when deploying my war file in tomcat 7.0.25 in linux.

javax.servlet.ServletException: java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.Compiler.<init>(Lorg/eclipse/jdt/internal/compiler/env/INameEnvironment;Lorg/eclipse/jdt/internal/compiler/IErrorHandlingPolicy;Lorg/eclipse/jdt/internal/compiler/impl/CompilerOptions;Lorg/eclipse/jdt/internal/compiler/ICompilerRequestor;Lorg/eclipse/jdt/internal/compiler/IProblemFactory;)V
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)


This seems to happening only in one system, tested in other 2 systems and they seem to work fine. Not sure if Linux version has anything to do with it.

Can some please help me with this one.

Thank you, in advance.

Anu
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17039
    
  26

Welcome to the JavaRanch, Anu!

The offending class belongs to Eclipse IDE, not Tomcat. If you are truly deploying this WAR and not simply testing it, there shouldn't be any Eclipse-specific classes in it. Eclipse doesn't have any proprietary classes that it includes in application builds the way that older IDEs did. Which, to me, is one of its virtues.


An IDE is no substitute for an Intelligent Developer.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: HTTP 500 error when deploying war file in Apache Tomcat 7.0.25
 
It's not a secret anymore!