Hi,
I'm using Maven 1.0 to generate the ear and deploy it in JBoss 4.0.
The issue I'm facing is, the java module entries in
ear/META-INF/application.xml are incorrect. I have placed all jars inside a
'library' folder under the ear. But in application.xml, only the name of the
jar is
mentioned without the directory prefix.
ear structure
--------------
ear
|
-- META-INF
|
-- application.xml
|
-- library
|
-- CertificateServer.jar
Code snippets given below.
Project.xml (only the dependency section)
-----------
<dependency>
<groupId>mstr</groupId>
<artifactId>CertificateServer</artifactId>
<version>1.0</version>
<type>jar</type>
<properties>
<ear.module>true</ear.module>
<ear.bundle.dir>lib</ear.bundle.dir>
</properties>
</dependency>
The generated application.xml (only the module entry)
-----------------------------
<module>
<java>CertificateServer.jar</java>
</module>
Since it is not prefixed by the 'library' folder, JBoss is not able to find
it and throws ClassNotFoundException.
I would want the above entry to be like this -
<module>
<java>library/CertificateServer.jar</java>
</module>
On manually prefixing the folder, JBoss is able to find the jar.
How should I prefix the jar file path during build ? Any help is
appreciated.
Thanks,
Sundeep
--
View this message in context:
http://maven.40175.n5.nabble.com/Jar-file-path-in-application-xml-incorrect-Maven-1-0-JBoss-4-0-tp5085994p5085994.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]