javaee-api

37 views
Skip to first unread message

Richard Ward

unread,
May 8, 2014, 1:26:17 PM5/8/14
to subs...@googlegroups.com
Hi,

I am getting the below issue when running substeps via the substeps plugin - but there are no problems when executing directly via a maven target.

java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/ejb/NoSuchEJBException

This is caused by the javaee-api being used rather than the actual implementation of the ee api that we have as a dependency on an dependent project. As it runs fine via a normal maven target, the only thing we can think that can be affecting it is something in the substeps eclipse plugin.

Any ideas?!
Kind regards,
Richard

Stu Forbes

unread,
May 9, 2014, 5:05:35 AM5/9/14
to subs...@googlegroups.com
Hi Richard,

That's a strange issue - not something we've ever seen before.

The eclipse plugin itself doesn't have any dependencies on the javaee-api interfaces. For reference, here's a list of all the libraries it 
does depend on:

commons-io-2.1
guava-10.0
kxml2-2.2.2
slf4j-api-1.6.4
velocity-1.5
xmlpull-1.1.3.1
xstream-1.4.2

substeps-core-1.1.0
substeps-core-api-1.1.0


I think the next question to ask would be, how did you create your Eclipse project initially? Was it from within Maven?
If you examine the Referenced Libraries from within your Package Explorer, are there any indications of an additional dependency
on javaee-api?

Regards,
Stu

Richard

unread,
May 12, 2014, 4:19:00 AM5/12/14
to subs...@googlegroups.com
Hi,

Thanks for getting back to me. The project was initially created using the sample substeps project and has been tweaked since to add our own additional dependencies to a local project for calling our ejb layer. The javaee-api library doesn't appear anywhere in the dependencies list, which is what made us think that it could the the ecpilse plugin rather than be in the project itself. Interestingly we can run the FeatureFileRunner as a Junit test absolutely fine - it's doing a "run as substeps feature test" that seems to have this issue.

Kind regards,
Richard

Stu Forbes

unread,
May 14, 2014, 5:10:48 AM5/14/14
to subs...@googlegroups.com
Hi Richard, apologies for not replying sooner.

I'm afraid I'm unable to reproduce this issue. Would it be possible to send me the contents of your Eclipse run configuration for the Substeps execution you're trying to run? Specifically the contents of the Classpath and JRE tabs please?

Regards,
Stu

Richard

unread,
May 16, 2014, 9:47:56 AM5/16/14
to subs...@googlegroups.com
Sorry for being slow too!

Attached are screenshots of the tabs you have requested.

Kind regards,
Richard
classpath.PNG
JRE.PNG
Reply all
Reply to author
Forward
0 new messages