<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Trying to get Duke's Bank to start
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/jstoner99">John Stoner</a> in <i>JBoss AS Documentation</i> - <a href="http://community.jboss.org/message/560328#560328">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I am working with the Getting Started JBoss tutorial, and I've run into a few problems. I've resolved some, but there seem to be a lot of them and it's taking a while to get a simple tutorial to work.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am running JBoss 5.1.0 GA, and I have downloaded the j2eetutorial14 from Oracle, and I got the JBoss code from</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><a class="jive-link-external-small" href="http://www.iomule.com/JBoss/v5/jbossj2ee-src.zip" target="_blank">http://www.iomule.com/JBoss/v5/jbossj2ee-src.zip</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>as indicated on</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><a class="jive-link-external-small" href="http://www.iomule.com/JBoss/" target="_blank">http://www.iomule.com/JBoss/</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am trying to deploy the application to the server, and seeing</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;"><span style="font-size: 8pt; font-family: courier new,courier; "><span>Deployment "vfszip:/Users/jstoner/Documents/jboss-5.1.0.GA/server/default/deploy/JBossDukesBank.ear/" is in error due to the following reason(s): org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'description'. One of '{"</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/j2ee" target="_blank">http://java.sun.com/xml/ns/j2ee</a><span>":display-name, "</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/j2ee" target="_blank">http://java.sun.com/xml/ns/j2ee</a><span>":icon, "</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/j2ee" target="_blank">http://java.sun.com/xml/ns/j2ee</a><span>":module}' is expected. @ vfszip:/Users/jstoner/Documents/jboss-5.1.0.GA/server/default/deploy/JBossDukesBank.ear/META-INF/application.xml[6,18]</span></span></p><p style="padding-left: 30px;"></p><p style="padding-left: 30px;"><span style="font-size: 8pt; font-family: courier new,courier; ">    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)<br/>    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)<br/>    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)<br/>    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)<br/>    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)<br/>    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)<br/>    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)<br/>    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)<br/>    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)<br/>    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)<br/>    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)<br/>    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)<br/>    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br/>    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br/>    at java.lang.Thread.run(Thread.java:637)</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>It looks like an XML problem with application.xml. This is the file that came with jbossj2ee-src.zip:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;"><span style="font-size: 8pt; font-family: courier new,courier; "><?xml version="1.0" encoding="UTF-8"?><br/><span><application xmlns="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/j2ee" target="_blank">http://java.sun.com/xml/ns/j2ee</a><span>" version="1.4"</span><br/><span>    xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span><br/><span>    xsi:schemaLocation="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/j2ee" target="_blank">http://java.sun.com/xml/ns/j2ee</a><span> </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" target="_blank">http://java.sun.com/xml/ns/j2ee/application_1_4.xsd</a><span>"></span><br/>    <display-name>JBossDukesBank</display-name><br/>    <description>application description</description><br/>    <module><br/>        <ejb>bank-ejb.jar</ejb><br/>    </module><br/>    <module><br/>        <java>app-client.jar</java><br/>    </module><br/>    <module><br/>        <web><br/>            <web-uri>web-client.war</web-uri><br/>            <context-root>bank</context-root><br/>        </web><br/>    </module><br/>    <security-role><br/>        <role-name>BankAdmin</role-name><br/>    </security-role><br/>    <security-role><br/>        <role-name>BankCustomer</role-name><br/>    </security-role><br/></application></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I've monkeyed with this file a fair amount and produced different errors on deploy. Two questions come to mind:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>1. how should this be formatted?</p><p>2. Is there a more up-to-date getting started tutorial for 5.1.0 that 'just works?' This one has been kind of ridiculous to work with. Compile errors, bad classpaths, and this bad XML...</p><p>3. If the answer to 2 is 'no,' I guess I'm making one. When it works who should I give it to?</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/560328#560328">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS Documentation at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2079">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>