Eclipse/Tomcat: Deploy Doesn't Work Any More (Classnotfoundexception)

eclipse/tomcat: deploy doesn't work any more (ClassNotFoundException)

While on Tomcat 6 and Eclipse Ganymede I found out the following chain to work like charm:

1 stop server

2 project -> clean

3 project build (I had automatic build disabled)

4 delete server

5 delete Servers folder

6 restart Eclipse

7 create new server, add project and start :)

takes some time but worked like charm. My problem was a irritating Listener start problem, but this seems to be something similar: a property at tomcat. Btw: nowadays I am also a big Glassfish fan.

ClassNotFoundException when using User Libraries in Eclipse build path

In project's properties, go to Deployment Assembly. Add there the buildpath entries as well which you've manually added as user libraries. It'll end up in /WEB-INF/lib of the deployed WAR.

Sample Image

Tomcat throws ClassNotFound exceptions for classes in other open eclipse projects

What you need to do is this:

  1. In Eclipse go to Window > Show View > Servers > and open tab called Servers
  2. In Servers, double click the server you want
  3. This action should open a window entitled Overview, with your selected Server in the TAB
  4. In this window select: Open launch configuration, and click the link.
  5. In the Edit Configuration window, select the tab called Classpath
  6. In the ClassPath textbox, select the line: User Entries
  7. Now push the button on the right entitled: Add Projects
  8. In the resulting Project Selection window select the external project you want the server to find via click.
  9. Close these windows by clicking Apply then OK as appropriate as you work up the stack
  10. Restart your server in the Overview window

You should be ready to go. It's actually only a 2 minute exercise. Good luck

Linked projects/folders in Eclipse don't deploy in tomcat

PortalCommon must not be a web project, it must be just java project.

Add PortalCommon to PortalLogin's "Build Path" and "Deployment Assesmbly"

Then Tomcat>Clean.

java.lang.ClassNotFoundException with Tomcat WAR file

Looks like the file didn't export correctly from Eclipse, making it manually fixed the problem.

EDIT: Turns out the problem was that my source folder was not the folder Eclipse was attempting to export. Going into Properties > Deployment assembly and changing the source folder fixed it (Thanks @Piotr P Karwasz!)



Related Topics



Leave a reply



Submit