Open source software supply chain lighting plan, waiting for you>>>
Today, with the development of e-mail system, the sender can run smoothly in the main function. However, after the deployment to tomcat, the server will be started, and the following will appear first:
source not found for webappclassloader.loadclass (string, Boolean) line: 41
eclipse requires opening the debug window to debug the program.
enter the debug trace, and the debugger entry points to the sender’s class, Press F6 to throw:
exception in thread “thread-1” java.lang.noclassdeffounderror: javax/activation/datasource
at com.roadway.edserver.blo.senderbo. & lt; init>( SenderBO. java:24 )
at com.roadway.edserver.blo.SenderManager.managerSendingMail(SenderManager. java:37 )
at com.roadway.edserver.blo.SenderManager.run(SenderManager. java:17 )
at java.lang.Thread.run(Thread. java:595 )
I haven’t done the project of sending email before. After checking a lot of information, I found that the activation.jar package was not added to the project.
write it down, Hope to meet the same problem of friends and help themselves
Everything else is right, except for the activation. Jar package. After importing the jar package, it will run perfectly
Similar Posts:
- Error occurred when Android connected to cloud MySQL: java.lang.NoClassDefFoundError : Failed resolution of: Ljava/sql/SQLType
- IDEA error: javax/xml/bind/DatatypeConverter [How to Solve]
- [Solved] java.lang.NoClassDefFoundError: org/junit/runner/manipulation/Filter
- Sqlite Error:com.intellij.execution.ExecutionException: Exception in thread “main” java….
- Weblogic startup error: java.lang.noclassdeffounderror [How to Solve]
- java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory
- Spring integrates mybatis error reporting collection, summary and update
- On the non thread safety problem of simpledateformat and its solution
- [Java. Lang. unsupported classversionerror] version inconsistency error
- [How to Solve] Hive: Unsupported major.minor version 51.0