-
1. Re: jboss-6.0.0.Final: DeploymentException: 'No module with relative path' problem
jaikiran Dec 29, 2010 7:50 AM (in response to ebross)What does your application.xml contents look like?
-
2. Re: jboss-6.0.0.Final: DeploymentException: 'No module with relative path' problem
ebross Dec 29, 2010 10:19 AM (in response to jaikiran)Hi jaikiran,
Exactly the one I gave at http://community.jboss.org/thread/160387 but here it is:
<application...[too much to type here]>
<display-name>odmsEAR<display-name>
<module>
<ejb>odmsEJB.jar</ejb>
</module>
<module>
<web>
<web-url>odmsWeb.war</web-url>
<context-root> odmsWeb</context-root>
</web>
<module>
</application>Mind you I have been using it on JBoss-5.0.0 and then Jboss-5.1.0 for the past two year with no problem except with JBoss-6.0.0-CR and now Jboss-6.0.0.Final.
Please also see my workaround at http://community.jboss.org/thread/160387Thanks
-
3. Re: jboss-6.0.0.Final: DeploymentException: 'No module with relative path' problem
jaikiran Dec 29, 2010 11:37 AM (in response to ebross)I replied to that other thread. Can you add some more details to that thread, like are you using any IDE to generate that EAR?
-
4. Re: jboss-6.0.0.Final: DeploymentException: 'No module with relative path' problem
ebross Dec 29, 2010 12:31 PM (in response to jaikiran)Hi jaikirin,
I have seen your response on the “other thread”, but since that was about jboss-6.0.0-CR1which has now been superseded by Jboss-6.0.0.Final – albeit the same problem-- , could we use this thread for all further discussions – if you don't mind – but still use the other thread for reference?
IDE: Eclipse Helios (version: 3.6.1)
OS: Linux (Mandriva 2010)
AS: Jboss-6.0.0.Final -
5. Re: jboss-6.0.0.Final: DeploymentException: 'No module with relative path' problem
jaikiran Dec 30, 2010 2:55 AM (in response to ebross)Sure, let's continue the discussion in this thread.
This appears to be a bug to me. For some reason, the odmsJPA.jar is being considered a "module" (i.e. a web, EJB or app client module). Can you please create a JIRA https://issues.jboss.org/browse/JBAS and attach a sample application if possible?
-
6. jboss-6.0.0.Final: DeploymentException: 'No module with relative path' problem
ftg314159 Jan 14, 2011 10:04 AM (in response to jaikiran)Reported as https://issues.jboss.org/browse/JBAS-8803 . Also, see http://community.jboss.org/message/580671#580671
-
7. Re: jboss-6.0.0.Final: DeploymentException: 'No module with relative path' problem
ebross Jan 16, 2011 10:04 AM (in response to ftg314159)Hi Frank Griffin,
When jaikiran pai suggested that I create a JIRA, I remember sending myself a “todo” note but it seems I had missed and forgotten to create the JIRA. Thanks Frank.
-
8. jboss-6.0.0.Final: DeploymentException: 'No module with relative path' problem
ftg314159 Jan 16, 2011 8:00 AM (in response to ebross)No prob, glad to help out.
-
9. jboss-6.0.0.Final: DeploymentException: 'No module with relative path' problem
henk53 Mar 28, 2011 4:37 PM (in response to ftg314159)Just wondering about this, is it actually legal to have an EJB JAR in the EAR/lib directory as opposed to directly putting it in the root of the EAR?
Are EJBs inside a jar in the EAR/lib directory supposed to be scanned and started?
-
10. Re: jboss-6.0.0.Final: DeploymentException: 'No module with relative path' problem
jaikiran Mar 29, 2011 4:09 AM (in response to henk53)henk de boer wrote:
Are EJBs inside a jar in the EAR/lib directory supposed to be scanned and started?
No they won't be scanned implicitly. Anything under EAR/lib is plain java libraries unless explicitly specified (like for example as a module via application.xml)
-
11. jboss-6.0.0.Final: DeploymentException: 'No module with relative path' problem
henk53 Mar 29, 2011 5:24 AM (in response to jaikiran)jaikiran pai wrote:
No they won't be scanned implicitly. Anything under EAR/lib is plain java libraries unless explicitly specified (like for example as a module via application.xml)
Interesting. I just did a very quick test by just bluntly dumping an EJB JAR in the EAR/lib directory of an app I happened to be working on (JBoss AS 5.1), and see what happened. It seemed the EJBs were being processed here too. It eventually crapped out when it couldn't find the persistence unit referenced by some of the EJBs. (persistence.xml is included in that jar though).
So JBoss AS 5.1 too scans the EJBs in a jar in EAR/lib, but doesn't try to look for the persistence.xml file in that jar's META-INF.