Jetty does not start with a WTP plugin

When I start the Jetty server in Eclipse (using the jetty-wtp plugin), the console displays this error message: Caused by: java.lang.NoClassDefFoundError: javax/transaction/UserTransaction

My installed environment:

How can i solve this?

+3
source share
2 answers

Try adding the JTA API to your classpath. You can download from java.net Maven repo in

http://download.java.net/maven/2/javax/transaction/jta/
+3
source
  

"uhhh. how to add jta jar to CP"

  

"" ( ), Jetty . . " ". , classpath : javax.transaction_1.1.1. /lib. - Oracle, .

+2

Source: https://habr.com/ru/post/1785580/


All Articles