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.
Tomcat throws ClassNotFound exceptions for classes in other open eclipse projects
What you need to do is this:
- In Eclipse go to Window > Show View > Servers > and open tab called Servers
- In Servers, double click the server you want
- This action should open a window entitled Overview, with your selected Server in the TAB
- In this window select: Open launch configuration, and click the link.
- In the Edit Configuration window, select the tab called Classpath
- In the ClassPath textbox, select the line: User Entries
- Now push the button on the right entitled: Add Projects
- In the resulting Project Selection window select the external project you want the server to find via click.
- Close these windows by clicking Apply then OK as appropriate as you work up the stack
- 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
How to Fix 'Android.Os.Networkonmainthread
exception'
Update Eclipse With Android Development Tools V. 23
Showing Firebase Data in Listview
Java Command Not Found on Linux
Why Am I Getting a Noclassdeffounderror in Java
How to Create a Java String from the Contents of a File
Setting the Default Java Character Encoding
Run Java Class File from PHP Script on a Website
How to Return Datasnapshot Value as a Result of a Method
How to Render a Pdf File in Android
How to Declare a Variable in Gradle Usable in Java
Set Imageview Width and Height Programmatically
Limit Jvm Process Memory on Ubuntu
Java String to Date Conversion
How to Get Latitude and Longitude of the Mobile Device in Android