Expand my Community achievements bar.

Executing a job request programatically

Avatar

Former Community Member
Hi,



i copy the documentation example 2.7 - Executing a job request and linked the relevant libraries to the Java project.



in the line asm = home.create i get the compilation error:



"The type javax.ejb.CreateException cannot be resolved. It is indirectly referenced from required .class files"



any idea of what library is missing?



Hagai
2 Replies

Avatar

Former Community Member
You'll need the j2ee libraries for the app server that you're using, for instance jbossall-client.jar for JBoss.

Don

Avatar

Former Community Member
Thanks for the Don Walling's message. It gave me some hint.

For JBoss 4, jboss-j2ee.jar file is needed to be included in the classpath. This jar file can be found in the lib directory of the default server configuration.