java ee - JBoss Wildfly 10 Ear deployment guide needed -


i'm can't seem find rich source configuring jee ear deployment on wildfly 10. i'm still stuck defining application.xml.

i have doc - https://docs.jboss.org/author/display/wfly8/deployment+descriptors+used+in+wildfly, , referenced xsd application.xml, still cannot seem ear deploy. need information bridge document real application.

i have server running; using eclipse neon ; moved existing jboss 5.2 app enterprise application project (i.e. have *web.war, *ejb.jar, *connector.rar, *client.jar).

<?xml version "1.0" encoding="utf-8"?> <application> <module>     <resources>     <resources-root>myearclient.jar</resources-root>     <resources>     <resources>     <resources-root>myearejb.jar</resources-root>     <resources>     <resources>     <resources-root>myearconnector.jar</resources-root>     <resources> </module> <module>    <web>        <web-uri>myearweb.war</web-uri>        <context-root>mycompany</context-root>    </web> </module>  </application> 

the error when deploy is:

"error ...msc service thread 1-2) msc000001: failed start service jboss.deployment.unit."wilddlm.ear".structure: org.jboss.msc.service.startexception in service jboss.deployment.unit."myapp.ear".structure: wflysrv0153: faild process phase structure of deployment "myapp.ear" ... cause ...deploymentunitprocessingexception wflyee0053: failed parse "/c:/wildfly-10.1.0.final/standalone/deployments/myear.ear/meta-inf/application.xml"

i same error if remove ejb , connector resources (aka. not using these yet; have dumming package in ejb module.) i've tried looking through - https://docs.jboss.org/author/display/modules/home it's empty, , work in progress.
/examples directory under wildfly 10 installation not have app code, seems examples running server.

i've tried experimenting xml elements see in similar posts on stackoverflow, it's guessing game anymore.

should use as7 documentation?

any appreciated! need on solid ground because have more code modules add , alot of refactoring do.

thanks,

anne

i think you're mixing 2 different module concepts here. application.xml there no <resources> element. looks concept module.xml jboss modules. if you're looking define ejb library module more this:

<?xml version "1.0" encoding="utf-8"?> <application>     <module>         <ejb>myearejb.jar</ejb>     </module>     <module>         <web>             <web-uri>myearweb.war</web-uri>             <context-root>mycompany</context-root>         </web>     </module> </application> 

the other 2 libraries should in ear/lib directory.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -