-
1. Re: Met "Services with missing/unavailable dependencies" when deploy old version ear to AS7.0.1
jaikiran Sep 23, 2011 3:29 AM (in response to adrianzuo)How are you deploying it? There should be some more exception stacktraces before this log message. Post that stacktrace.
-
2. Re: Met "Services with missing/unavailable dependencies" when deploy old version ear to AS7.0.1
adrianzuo Sep 23, 2011 3:31 AM (in response to jaikiran)I copied the ear file to the deployment folder directly. Sorry, above is the whole error log, no more exception stacktrace.
-
3. Re: Met "Services with missing/unavailable dependencies" when deploy old version ear to AS7.0.1
jaikiran Sep 23, 2011 8:56 AM (in response to adrianzuo)Nothing in server.log too? Also, can you try this against 7.0.2 which has been released today?
-
4. Re: Met "Services with missing/unavailable dependencies" when deploy old version ear to AS7.0.1
adrianzuo Sep 25, 2011 10:56 PM (in response to jaikiran)Hi jaikiran
I just tried under the 7.0.2, it has the same issue. I attached the whole log.
-
server.log.zip 2.6 KB
-
-
5. Re: Met "Services with missing/unavailable dependencies" when deploy old version ear to AS7.0.1
jaikiran Sep 26, 2011 1:53 AM (in response to adrianzuo)Post the output of:
jar -tf vtm3oui.ear
and also the contents of the application.xml in that .ear.
-
6. Re: Met "Services with missing/unavailable dependencies" when deploy old version ear to AS7.0.1
adrianzuo Sep 26, 2011 1:57 AM (in response to jaikiran)The output of "jar -tf vtm3oui.ear":
META-INF/
META-INF/MANIFEST.MF
ejb/
sar/
war/
META-INF/application.xml
META-INF/jboss-app.xml
ejb/M3OUIApplication-ejb.jar
sar/M3OUIApplicationStartup.sar
war/m3oui.war
The content of the application.xml is as below:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
<application id="M3OUI">
<display-name>M3OUI</display-name>
<module>
<ejb>ejb/M3OUIApplication-ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>war/m3oui.war</web-uri>
<context-root>m3oui</context-root>
</web>
</module>
</application>
-
7. Re: Met "Services with missing/unavailable dependencies" when deploy old version ear to AS7.0.1
adrianzuo Sep 26, 2011 5:24 AM (in response to jaikiran)jaikiran
I just re-structue the ear, now the output of the "jar -tf vtm3oui.ear":
m3oui.war
M3OUIApplication-ejb.jar
M3OUIApplicationStartup.sar
META-INF/
META-INF/application.xml
META-INF/jboss-app.xml
META-INF/MANIFEST.MF
The content of the application.xml is as below:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
<application id="M3OUI">
<display-name>M3OUI</display-name>
<module>
<ejb>M3OUIApplication-ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>m3oui.war</web-uri>
<context-root>m3oui</context-root>
</web>
</module>
</application>
The content of the jboss-app.xml is as below:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-app>
<security-domain>java:/jaas/VTBA-domain</security-domain>
<module-order>strict</module-order>
<loader-repository>
vtm3oui:loader=vtm3oui.ear
<loader-repository-config>
java2ParentDelegation=false
</loader-repository-config>
</loader-repository>
<module>
<service>M3OUIApplicationStartup.sar</service>
</module>
</jboss-app>
The content of the jboss-service.xml is as below:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server
PUBLIC "-//JBoss//DTD MBean Service 3.2//EN"
"http://www.jboss.org/j2ee/dtd/jboss-service_3_2.dtd">
<server>
<!-- The standard mbean for calling startup code in JBoss -->
<mbean code="com.test.m3oui.jbossservice.M3OUIApplicationStartupService" name="com.test.m3oui:service=M3OUIApplicationStartupService">
</mbean>
</server>
I have attached the whole log.
-
server.log.zip 3.2 KB
-
-
8. Re: Met "Services with missing/unavailable dependencies" when deploy old version ear to AS7.0.1
jaikiran Sep 26, 2011 11:57 PM (in response to adrianzuo)Here's the error:
17:14:46,127 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.subunit."vtm3oui.ear"."M3OUIApplicationStartup.sar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."vtm3oui.ear"."M3OUIApplicationStartup.sar".PARSE: Failed to process phase PARSE of subdeployment "M3OUIApplicationStartup.sar" of deployment "vtm3oui.ear" at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26] at java.lang.Thread.run(Thread.java:662) [:1.6.0_26] Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to parse service xml ["/D:/yoda/export/home/jboss/bin/content/vtm3oui.ear/M3OUIApplicationStartup.sar/META-INF/jboss-service.xml"] at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:94) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final] ... 5 more Caused by: com.ctc.wstx.exc.WstxParsingException: Received event DTD, instead of START_ELEMENT or END_ELEMENT. at [row,col {unknown-source}]: [4,57] at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:606) at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:479) at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:464) at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1143) at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:57) at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:87) ... 6 more
Your jboss-service.xml is incorrect. You should be using this xsd https://github.com/jbossas/jboss-as/blob/master/build/src/main/resources/docs/schema/jboss-service_7_0.xsd. See this for an example https://github.com/jbossas/jboss-as/blob/master/demos/legacy/src/main/resources/archives/sar-example.sar/META-INF/jboss-service.xml
-
9. Re: Met "Services with missing/unavailable dependencies" when deploy old version ear to AS7.0.1
adrianzuo Sep 27, 2011 1:03 AM (in response to jaikiran)jaikiran
Thanks for your help, now the issue is gone.
Regards,
Candice