I need to deploy scheduler within my project on JBoss 4.2.1. This is the error from the console:
11:15:05,628 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss-4.2.1.GA/server/default/deploy/MyProject.ear
org.jboss.deployment.DeploymentException: Failed to find module file: myService.sar
at org.jboss.deployment.EARDeployer.init(EARDeployer.java:295)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
The ear file structure is:
MyProject.ear
+com
+META-INF
application.xml
ejb-jar.xml
jboss.xml
jboss-app.xml
MANIFEST.MF
+myService.sar
+com
+META-INF
MANIFEST.MF
scheduler-service.xml
MyProject.jar
This is what I have in jboss-app.xml
<!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd">
<jboss-app>
<module>
<service>myService.sar</service>
</module>
</jboss-app>
My question is why it can't not find the .sar file when I deploy to jboss?
Thanks for any help.
A.