title: No bean named [x] is defined
body: <p>I've been looking and toiling most of the day trying to get something to work. Here's the situation:</p>
  
  <h2>The Situation</h2>
  
  <p>I am working on an audit-trail for a tool we have at work; this tool is used to edit info (such as texts on websites). Right now everything works fine, but there's one teeny issue:
  Right now I am storing the user-data (username, password, ipAddress) in a @context-info (MSSQL). This works fine whenever one user is logged in at a time, but this rarely happens</p>
  
  <p>Example:</p>
  
  <ul>
  <li>I log on</li>
  <li>I edit stuff</li>
  <li>Stuff I edited gets logged under my name</li>
  <li>Someone else logs into the system</li>
  <li>Stuff I edit is logged under this other user's name, instead of my own, because the @context-info changed at login.</li>
  </ul>
  
  <h2>The Solution</h2>
  
  <p>A Session-scoped bean that stores local session-data and then passes parameters per Database Query to the Context info through an Interceptor.</p>
  
  <h2>What have I done so far</h2>
  
  <p>I am currently following this guide: <a href="http://www.tutorialspoint.com/spring/spring_bean_scopes.htm" rel="nofollow">Spring Bean Scopes - Tutorialspoint</a> for the purpose of getting a Session-scoped bean. I have the following defined in my <em>support-servlet.xml</em> (this is where we define beans):</p>
  
  <pre><code>&lt;!-- Session Beans --&gt;
  &lt;bean id="helloWorld" class="com.lcmg.ticket.support.service.HelloWorld" scope="session"&gt;
  
  &lt;/bean&gt;
  </code></pre>
  
  <p>The <em>.java</em> files have been taken from the tutorial, and work up to a certain point. For instance:</p>
  
  <pre><code>ApplicationContext context = new ClassPathXmlApplicationContext("support-servlet.xml");
  </code></pre>
  
  <p>Gave me issues, untill I changed the parameter to</p>
  
  <pre><code>("classpath*:support-servlet.xml")
  </code></pre>
  
  <p>And then this happened..</p>
  
  <h2>The problem</h2>
  
  <p>The problem lies herein:</p>
  
  <pre><code>HelloWorld hwA = (HelloWorld)context.getBean("helloWorld");
  </code></pre>
  
  <p>If I debug and step over this line, I get a <strong><em>No bean named 'helloWorld' is defined</em></strong> exception thrown at my face as soon as I log into the tool. I have googled, tinkered, and fiddled and now at the end of the day I still have no solution.</p>
  
  <p>So the question is:
  How do I get this <strong><em>session-bean</em></strong> to work?</p>
  
  <p>I hope I have provided sufficient information, but do not hesitate to ask if you need more information.</p>