problems in deploying EAR in as7
oourfali Jun 23, 2011 3:40 AMHey,
I'm trying to test a deployment of an EAR on AS7 (I have it working in jboss EAS 5.1).
Are there guidelines for migrating from previous versions of jboss to as7?
The EAR contains a few jars, and a few wars.
First issue I saw is that jars referenced in the classpath entry in <ear>/dummy.jar/META-INF/MANIFEST.MF, got errors of the type:
"Class Path entry .... does not point to a valid jar for a class path reference".
The referenced jars are in <ear>/lib.
Changing the jar class-path entries from ref1.jar, ref2.jar.... to ../ref1.jar,../ref2.jar... solved this issue.
But I still get these errors/warnings:
09:05:28,700 WARN [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry jaxb-api.jar in "/root/git/jboss-as/build/target/jboss-7.0.0.Beta4-SNAPSHOT/standalone/deployments/<ear>/<war>/WEB-INF/lib/jaxb-impl-2.1.12.jar" does not point to a valid jar for a Class-Path reference.
09:05:28,701 WARN [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry activation.jar in "/root/git/jboss-as/build/target/jboss-7.0.0.Beta4-SNAPSHOT/standalone/deployments/<ear>/<war>/WEB-INF/lib/jaxb-impl-2.1.12.jar" does not point to a valid jar for a Class-Path reference.
09:05:28,701 WARN [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry jsr173_1.0_api.jar in "/root/git/jboss-as/build/target/jboss-7.0.0.Beta4-SNAPSHOT/standalone/deployments/<ear>/<war>/WEB-INF/lib/jaxb-impl-2.1.12.jar" does not point to a valid jar for a Class-Path reference.
09:05:28,701 WARN [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry jaxb1-impl.jar in "/root/git/jboss-as/build/target/jboss-7.0.0.Beta4-SNAPSHOT/standalone/deployments/<ear>/<war>/WEB-INF/lib/jaxb-impl-2.1.12.jar" does not point to a valid jar for a Class-Path reference.
09:05:28,739 WARN [org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor] (MSC service thread 1-2) Could not read annotations on EJB interface com.demo.IResourceManager
09:05:28,740 WARN [org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor] (MSC service thread 1-2) Could not read annotations on EJB interface com.demo.IResourceManager
09:05:28,903 INFO [org.jboss.as.server] (MSC service thread 1-2) Service status report
service module.spec.service."deployment.ejb3-persistence-1.0.2.GA.jar".main (missing) required by [service jboss.deployment.subunit."<ear>"."<jar>".POST_MODULE, service jboss.deployment.subunit."<ear>"."<jar>".POST_MODULE, service module.service."deployment.<ear>"."<jar>".main, service module.service."deployment.<ear>"."<jar1>".main
service module.spec.service."deployment.hibernate-annotations-3.4.0.GA.jar".main (missing) required by [service......
I get more messages of the type "service ... (missing)".
the jars complained about in the class path warnings are found in jboss-eap5.1/lib and jboss-eap5.1/lib/endorsed. I put them inside the ear/lib in as7, while trying to make it work, but it didn't help.
Also, I don't know what is the problem with reading the annotations of that class.
Help will be appreciated.
I can provide more details if needed.
Thank you,
Oved