1

I've installed and started AS7 with Ant-- ant install.demo + ant start.demo. Everything starts fine -- H2 database, JBOSS, and Eclipse.

Following this tutorial video -->

I've imported the Java evaluation project into Eclipse. When I try Debug As--> Java Application, it crashes with:

"Exception in thread "main" java.lang.IllegalArgumentException: Argument is not of type EntityManagerFactory."

I added a "main" method as there was none in the class:

 public static void main(String args[]) 
 {     ProcessTest pt = new ProcessTest();    
       pt.testEvaluationProcess();      
 }

Please advise.

-TU

T. Ujasiri
  • 317
  • 1
  • 3
  • 14

1 Answers1

0

I acquired the necessary information to get this going. It turns out this should be run as a JUnit test and not as a Java application. Works!

T. Ujasiri
  • 317
  • 1
  • 3
  • 14