ClassDefNotFound first time I start Tomcat from within Eclipse
I have a Tomcat application which, the first time I start Tomcat after starting Eclipse, I get an odd NoClassDefFoundError. If I then stop and restart Tomcat through Eclipse, it works fine. I have single, double, and triple checked the classpath and everything seems fine. Anyone ever seen anything like this before?
relevant versions:
Tomcat 5.5.17
eclipse 3.3 europa
tomcat plug-in for eclipse by sysdeo:
com.sysdeo.eclipse.tomcat_3.2.1
Asked by: Sophia928 | Posted: 23-01-2022
Answer 1
I notice that this is a pretty old version of Tomcat, that might be contributing to the problem. You could try the following
- Start Eclipse.
- Clean your webapp project (build if automatic build is off)
- Start the Tomcat server.
That's the only thing I can think of. Other than that I would recommend getting the latest 5.5 version of tomcat (I think it is 5.5.25)
Answered by: Catherine874 | Posted: 24-02-2022Answer 2
I had problems like these as well, I think I solved it by linking in a whole folder of classes, a different folder though, there were copies of the libraries in a few places, and the Tomcat server needs the libraries from it's runtime imported into the project.
Answered by: Sienna389 | Posted: 24-02-2022Answer 3
I've found the tomcat plugin to be generally buggy, and have stopped using it.
In my consulting job, I worked with a team that had all manner of stability issues with their application in development. Removing the tomcat plugin, and just having them start/stop tomcat from the command-line fixed all of the issues.
Answered by: Robert630 | Posted: 24-02-2022Answer 4
What is the class that is missing? Have you trying starting and stopping tomcat with wtp instead of sysdeo?
Answered by: Emma401 | Posted: 24-02-2022Answer 5
Nope, never saw it. It is very unlikely that the class is present and that it is a classloader problem. What is the class that is missing. It is probably that it is occasionally going through some error condition
e.g. trying to open a port that is already open
and the error is causing it to try and load this specific class
Answered by: Richard276 | Posted: 24-02-2022Similar questions
java - GWT: ClassDefNotFound error
I am trying to build a GWT/SmartClient widget which accepts a set of items which will be rendered into a dashboard... depending on the exact item type, it may render as a grid, a chart, a label, etc. The abstract class is
public abstract class DashboardItem<T> implements IsWidget {
public abstract Widget render(T t);
private T t;
public DashboardItem(T t) {
this.t = t;
}
...
makefile - Solution for error ClassDefNotFound in Java
I have five class files Servant.class, Server.class, Client.class, TransferRequest.class and TransferResponse.class. My Makefile is at the below. I have this error for any of my class file:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
Makefile:11: recipe for target 'TransferRequest.class' failed
How can I cop...
Rpg call Java Constructor, error ClassDefNotFound on Exception handler
Error NoClassDefFound for Exception Handling in Constructor
this is Constructor in Java Code
public Class MyBook{
String name;
public MyBook(){
try{
name = "BookName";
} catch(javax.xml.rpc.ServiceException se){}
}
}
this is how i call MyBook in RPG
DBookObj S O Class(*java:'com.abc.MyBook')
DMy...
PHP Java Bridge: ClassDefNotFound error
currently I am working with PHP Java Bridge. I am following this tutorial to make php run java code. But I don't know why, after I followed that instruction, I got this error:
classdefnotfound when referencing a java project on android
I am experiencing what appears to be a unique error when trying to compile my Android project. I am developing for API level 21 (lollipop)
My project references a java project I created previously. The project contains no error.
I have seen there are similar projects that have the same error. I have tried the following to fix the error:
Moved Android dependencies to first in the orders and e...
java - Classdefnotfound exception while using bean.xml in spring
org.springframework.context.support.AbstractApplicationContext
prepareRefresh INFO: Refreshing
org.springframework.context.support.FileSystemXmlApplicationContext@fb509a:
startup date [Fri Jul 17 21:34:24 IST 2015]; root of context hierarchy
Exception in thread "main" java.lang.NoClassDefFoundError:
org/springframework/core/OrderComparator$OrderSourceProvider at
org.springframework.context.suppo...
java - ClassDefNotFound Error in Android when AWS connection is made
I have been working on a android project to connect to the tables stored at my EC2 instances. I have made the connection code separately and tested it. It is showing the output as desired but the issue is that when i try to integrate the code to an Android Project it throws the error "ClassDefNotFound" Error of some Hive libraries.
MainActivity.java
package com.example.blockbuster;
import android.co...
java - Anthill remoting API ClassDefNotFound error
I am trying to automate BUILDS with anthill3 using remoting API but am getting an error when i try to get the Workflows from a project.
It seems the jar commons-graph.jar which is required to run this is not provided in anthill3-devkit.
As per the below link it says to download the JAr from anthill 5 , but i get an error when i try to download any fixes or release of anthill5 .
So if anybody has a resolutio...
java - Embedded tomcat ClassDefNotFound exception sometimes?
I have 2 maven projects A and B. Project A is a dependency of project b.
I can access everything in project A while compiling. When I tomcat:run my project b through maven tomcat plugin i get classdefnotfoundexception but once a day after clean-installing projects many times it works until i make a tiny change in project a then it starts giving me the exceptions for hours.
What is the reason of this and why does i...
Still can't find your answer? Check out these amazing Java communities for help...
Java Reddit Community | Java Help Reddit Community | Dev.to Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)