<!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;">
    hello world example not working
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/kdougan">Ken Dougan</a> in <i>Snowdrop</i> - <a href="http://community.jboss.org/message/638266#638266">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p><span style="font-size: 10pt; font-family: Arial;">I am new to Spring 3 so I thought I would try out Snowdrop 2 on Jboss 6.&#160; So <span class="ctext">I downloaded the spring deployer from <a class="jive-link-external-small" href="http://www.jboss.org/snowdrop/downloads">http://www.jboss.org/snowdrop/downloads</a> and selected the JBoss AS 6 with Spring 3. Seems pretty easy to install in JBoss's server/default/deployers/spring.deployer/ directory.&#160; I did however bundle the spring .jars within the application archive as you will see below.</span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: Arial;"><span style="font-size: 10pt;">I found a simple hello world example to try out: </span><span style="font-size: 10pt;"><a class="jive-link-external-small" href="http://viralpatel.net/blogs/2010/06/spring-3-mvc-create-hello-world-application-spring-3-mvc.html">http://viralpatel.net/blogs/2010/06/spring-3-mvc-create-hello-world-application-spring-3-mvc.html</a>.&#160; However I could not get the example to work so I am frustrated.&#160; I also didn't like that I have to do this all through eclipse.&#160; I wanted to understand how to deploy a .war/.jar directly to server/default/deploy/.</span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: Arial; font-size: 10pt;">So what I did was package the example with the following:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: Courier; font-size: 8pt;">C:\MyProjects\eclipse\workspace\Spring3MVC\dist&gt;jar tvf Spring3MVC.war<br/>&#160;&#160;&#160;&#160; 0 Thu Nov 24 09:18:24 MST 2011 META-INF/<br/>&#160;&#160;&#160; 71 Thu Nov 24 09:18:24 MST 2011 META-INF/MANIFEST.MF<br/>&#160;&#160; 144 Mon Jun 21 17:38:52 MDT 2010 index.jsp<br/>&#160;&#160;&#160;&#160; 0 Thu Nov 24 09:17:34 MST 2011 WEB-INF/<br/>&#160;&#160;&#160;&#160; 0 Thu Nov 24 09:17:34 MST 2011 WEB-INF/classes/<br/>&#160;&#160;&#160;&#160; 0 Thu Nov 24 09:17:34 MST 2011 WEB-INF/classes/net/<br/>&#160;&#160;&#160;&#160; 0 Thu Nov 24 09:17:34 MST 2011 WEB-INF/classes/net/viralpatel/<br/>&#160;&#160;&#160;&#160; 0 Thu Nov 24 09:17:34 MST 2011 WEB-INF/classes/net/viralpatel/spring3/<br/>&#160;&#160;&#160;&#160; 0 Thu Nov 24 09:17:34 MST 2011 WEB-INF/classes/net/viralpatel/spring3/controller/<br/>&#160; 1022 Wed Nov 23 21:50:20 MST 2011 WEB-INF/classes/net/viralpatel/spring3/controller/HelloWorldController.class<br/>&#160;&#160;&#160;&#160; 0 Thu Nov 24 09:17:34 MST 2011 WEB-INF/jsp/<br/>&#160;&#160; 131 Mon Jun 21 17:39:02 MDT 2010 WEB-INF/jsp/hello.jsp<br/>&#160;&#160;&#160;&#160; 0 Thu Nov 24 09:17:34 MST 2011 WEB-INF/lib/<br/>&#160; 4467 Fri Aug 26 21:19:32 MDT 2011 WEB-INF/lib/aopalliance.jar<br/> 69784 Tue Oct 18 15:51:00 MDT 2011 WEB-INF/lib/snowdrop-deployers.jar<br/> 22804 Tue Oct 18 15:50:48 MDT 2011 WEB-INF/lib/snowdrop-vfs.jar<br/>321428 Tue Oct 18 15:50:38 MDT 2011 WEB-INF/lib/spring-aop.jar<br/> 53082 Tue Oct 18 15:50:36 MDT 2011 WEB-INF/lib/spring-asm.jar<br/>556590 Tue Oct 18 15:50:42 MDT 2011 WEB-INF/lib/spring-beans.jar<br/>101450 Tue Oct 18 15:50:40 MDT 2011 WEB-INF/lib/spring-context-support.jar<br/>670258 Tue Oct 18 15:50:38 MDT 2011 WEB-INF/lib/spring-context.jar<br/>382184 Tue Oct 18 15:50:38 MDT 2011 WEB-INF/lib/spring-core.jar<br/>169752 Tue Oct 18 15:50:38 MDT 2011 WEB-INF/lib/spring-expression.jar<br/>398149 Tue Oct 18 15:50:44 MDT 2011 WEB-INF/lib/spring-web.jar<br/>419488 Tue Oct 18 15:50:40 MDT 2011 WEB-INF/lib/spring-webmvc.jar<br/>&#160;&#160; 922 Sat Jun 19 15:58:10 MDT 2010 WEB-INF/spring-servlet.xml<br/>&#160;&#160; 806 Mon Jun 21 19:20:26 MDT 2010 WEB-INF/web.xml</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt;"><span style="font-family: Arial;">If you need to see the source then go to </span><a class="jive-link-external-small" href="http://viralpatel.net/blogs/2010/06/spring-3-mvc-create-hello-world-application-spring-3-mvc.html"><span style="font-family: Arial;">http://viralpatel.net/blogs/2010/06/spring-3-mvc-create-hello-world-application-spring-3-mvc.html</span></a><span style="font-family: Arial;">.&#160;&#160; I didn't change anything.&#160; All I did was create a deployable archive.&#160; But it doesn't not work when I click on the 'Say Hello' link in the index.jsp I get the following message:</span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-family: Arial; font-size: 10pt;"> </span>&#160;</p><p><strong>message</strong> <span style="text-decoration: underline;">/Spring3MVC/hello</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-family: Arial; font-size: 10pt;"> </span>&#160;</p><p><span style="font-family: Arial; font-size: 10pt;"><strong>description</strong> <span style="text-decoration: underline;">The requested resource (/Spring3MVC/hello) is not available.</span></span></p><p><span style="font-size: 10pt; font-family: Arial; text-decoration: underline;"><br/></span></p><p><span style="font-family: Arial; font-size: 10pt;">If I look in the Jboss \server\default\work\ directory I only see the index.jsp servlet.&#160; So there must be something wrong with the deployment package and the spring .xml files.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: Arial; font-size: 10pt;">Does anyone have any advice how to fix this please?</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: Arial; font-size: 10pt;">Thanks</span></p><p><span style="font-family: Arial; font-size: 10pt;">Ken</span></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/638266#638266">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Snowdrop at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2082">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>