While upgrading a webapp which is written for jboss 4.x to jboss 5.x, I got the following exception:
Caused by: java.lang.RuntimeException: work.ejb3 module listed in application.xml is not a recognized deployment, .ear: work.ear
at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:277)
... 25 more
It is related to the file extension, as it turns out.
But when I tried to investigate this problem, I am struck by this problem:
Line 277 of the EARStructure.java is:
if (structureContext.determineChildStructure(archive) == false)
structureContext here is actually of type StructureContext which lives in the package org.jboss.deployers.vfs.spi.structurem, in an external jar file called jboss-deployers-vfs-spi.jar
I ran through the Jboss 5.1.0.GA src and could not locate this file. Using google code search I can only locate this in some people's git repository.
So, here is my question:
Where can I locate the source code files on the official jboss website?
Why the StructureContext.java live outside of the Jboss AS source tree?