Hibernate error message: unexpected token: NULLS (error in script file line: 13 unexpected token: NULLS)
In learning Hibernate, I have encountered a very vague error message. First some quick back ground. I previously has a single table database that was working fine. Now I have added a second table and the first table features a collection of the second table. To put it more clearly, I previously had a Team table. Now I have added a Player table. The Team includes an attribute that will hold the team members of that team. Of course the team members are made of players. I want to get this working but I don't understand the error messages. I have included the files that I think are relevant. I have omitted my home controller and team controller and associated views as these were never touched from the previous working version. Also omitted are the DAO and Service layer; again not touched. Here is the error log:

    WARN : org.hibernate.util.DTDEntityResolver - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
    WARN : org.hibernate.cfg.AnnotationBinder - Package not found or wo package-info.java: com.ryans.MVCproject1
    WARN : hsqldb.db.HSQLDB3310D13292.ENGINE - unexpected token: NULLS
    org.hsqldb.HsqlException: unexpected token: NULLS
    	at org.hsqldb.error.Error.parseError(Unknown Source)
    	at org.hsqldb.ParserBase.unexpectedToken(Unknown Source)
    	at org.hsqldb.ParserCommand.compileSetDatabaseProperty(Unknown Source)
    	at org.hsqldb.ParserCommand.compileSet(Unknown Source)
    	at org.hsqldb.ParserCommand.compilePart(Unknown Source)
    	at org.hsqldb.ParserCommand.compileStatement(Unknown Source)
    	at org.hsqldb.Session.compileStatement(Unknown Source)
    	at org.hsqldb.scriptio.ScriptReaderText.readDDL(Unknown Source)
    	at org.hsqldb.scriptio.ScriptReaderBase.readAll(Unknown Source)
    	at org.hsqldb.persist.Log.processScript(Unknown Source)
            .
            .
            .
    
    WARN : hsqldb.db.HSQLDB3310D13292.ENGINE - Script processing failure
    org.hsqldb.HsqlException: error in script file line: 13 unexpected token: NULLS
    	at org.hsqldb.error.Error.error(Unknown Source)
    	at org.hsqldb.scriptio.ScriptReaderText.readDDL(Unknown Source)
    	at org.hsqldb.scriptio.ScriptReaderBase.readAll(Unknown Source)
    	at org.hsqldb.persist.Log.processScript(Unknown Source)
    	at org.hsqldb.persist.Log.open(Unknown Source)
    	at org.hsqldb.persist.Logger.openPersistence(Unknown Source)
    	.
            .
            .
    Caused by: org.hsqldb.HsqlException: unexpected token: NULLS
    	at org.hsqldb.error.Error.parseError(Unknown Source)
    	at org.hsqldb.ParserBase.unexpectedToken(Unknown Source)
    	at org.hsqldb.ParserCommand.compileSetDatabaseProperty(Unknown Source)
    	at org.hsqldb.ParserCommand.compileSet(Unknown Source)
    	at org.hsqldb.ParserCommand.compilePart(Unknown Source)
    	at org.hsqldb.ParserCommand.compileStatement(Unknown Source)
    	at org.hsqldb.Session.compileStatement(Unknown Source)
    	... 111 more


Here are the files associated with this little program...

pom.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    	<modelVersion>4.0.0</modelVersion>
    	<groupId>com.ryans</groupId>
    	<artifactId>MVCproject1</artifactId>
    	<name>abc</name>
    	<packaging>war</packaging>
    	<version>1.0.0-BUILD-SNAPSHOT</version>
    	<properties>
    		<java-version>1.6</java-version>
    		<org.springframework-version>3.0.5.RELEASE</org.springframework-version>
    		<org.springframework.roo-version>1.0.2.RELEASE</org.springframework.roo-version>
    		<org.aspectj-version>1.6.9</org.aspectj-version>
    		<org.slf4j-version>1.5.10</org.slf4j-version>
    	</properties>
    	<dependencies>
    		<!-- Spring -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-context</artifactId>
    			<version>${org.springframework-version}</version>
    			<exclusions>
    				<!-- Exclude Commons Logging in favor of SLF4j -->
    				<exclusion>
    					<groupId>commons-logging</groupId>
    					<artifactId>commons-logging</artifactId>
    				</exclusion>
    			</exclusions>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-webmvc</artifactId>
    			<version>${org.springframework-version}</version>
    		</dependency>
    		<!-- this was added by me for JPA annotations -->
    		<dependency>
    			<groupId>javax.persistence</groupId>
    			<artifactId>persistence-api</artifactId>
    			<version>1.0</version>
    			<optional>true</optional>
    		</dependency>
    
    		<!-- Object-to-Relation-Mapping (ORM) integration with Hibernate, JPA, 
    			and iBatis. (depends on spring-core, spring-beans, spring-context, spring-tx) 
    			Define this if you need ORM (org.springframework.orm.*) -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-orm</artifactId>
    			<version>${org.springframework-version}</version>
    		</dependency>
    
    
    		<!-- Roo dependencies -->
    		<dependency>
    			<groupId>org.springframework.roo</groupId>
    			<artifactId>org.springframework.roo.annotations</artifactId>
    			<version>${org.springframework.roo-version}</version>
    			<scope>provided</scope>
    		</dependency>
    
    		<!-- AspectJ -->
    		<dependency>
    			<groupId>org.aspectj</groupId>
    			<artifactId>aspectjrt</artifactId>
    			<version>${org.aspectj-version}</version>
    		</dependency>
    
    		<!-- Logging -->
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>slf4j-api</artifactId>
    			<version>${org.slf4j-version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>jcl-over-slf4j</artifactId>
    			<version>${org.slf4j-version}</version>
    			<scope>runtime</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>slf4j-log4j12</artifactId>
    			<version>${org.slf4j-version}</version>
    			<scope>runtime</scope>
    		</dependency>
    		<dependency>
    			<groupId>log4j</groupId>
    			<artifactId>log4j</artifactId>
    			<version>1.2.15</version>
    			<exclusions>
    				<exclusion>
    					<groupId>javax.mail</groupId>
    					<artifactId>mail</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>javax.jms</groupId>
    					<artifactId>jms</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>com.sun.jdmk</groupId>
    					<artifactId>jmxtools</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>com.sun.jmx</groupId>
    					<artifactId>jmxri</artifactId>
    				</exclusion>
    			</exclusions>
    			<scope>runtime</scope>
    		</dependency>
    
    		<!-- @Inject -->
    		<dependency>
    			<groupId>javax.inject</groupId>
    			<artifactId>javax.inject</artifactId>
    			<version>1</version>
    		</dependency>
    
    		<!-- Servlet -->
    		<dependency>
    			<groupId>javax.servlet</groupId>
    			<artifactId>servlet-api</artifactId>
    			<version>2.5</version>
    			<scope>provided</scope>
    		</dependency>
    		<dependency>
    			<groupId>javax.servlet.jsp</groupId>
    			<artifactId>jsp-api</artifactId>
    			<version>2.1</version>
    			<scope>provided</scope>
    		</dependency>
    		<dependency>
    			<groupId>javax.servlet</groupId>
    			<artifactId>jstl</artifactId>
    			<version>1.2</version>
    		</dependency>
    
    		<!-- Test -->
    		<dependency>
    			<groupId>junit</groupId>
    			<artifactId>junit</artifactId>
    			<version>4.7</version>
    			<scope>test</scope>
    		</dependency>
    
    		<dependency>
    			<groupId>commons-dbcp</groupId>
    			<artifactId>commons-dbcp</artifactId>
    			<version>1.4</version>
    		</dependency>
    
    
    		<dependency>
    			<groupId>org.hsqldb</groupId>
    			<artifactId>hsqldb</artifactId>
    			<version>2.2.4</version>
    		</dependency>
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-core</artifactId>
    			<version>3.6.7.Final</version>
    			<type>jar</type>
    			<scope>compile</scope>
    		</dependency>
    		
    	<!--  added for hibernate annotations 2/3/12 -->	
        	<dependency>
          		<groupId>org.hibernate</groupId>
          		<artifactId>hibernate-annotations</artifactId>
        		<version>${hibernate-core-version}</version>
        	</dependency>
    		
    		
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-proxool</artifactId>
    			<version>4.0.0.CR4</version>
    			<type>jar</type>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>javassist</groupId>
    			<artifactId>javassist</artifactId>
    			<version>3.12.1.GA</version>
    			<type>jar</type>
    			<scope>compile</scope>
    		</dependency>
    	</dependencies>
    	<repositories>
    		<!-- For testing against latest Spring snapshots -->
    		<repository>
    			<id>org.springframework.maven.snapshot</id>
    			<name>Spring Maven Snapshot Repository</name>
    			<url>http://maven.springframework.org/snapshot</url>
    			<releases>
    				<enabled>false</enabled>
    			</releases>
    			<snapshots>
    				<enabled>true</enabled>
    			</snapshots>
    		</repository>
    		<!-- For developing against latest Spring milestones -->
    		<repository>
    			<id>org.springframework.maven.milestone</id>
    			<name>Spring Maven Milestone Repository</name>
    			<url>http://maven.springframework.org/milestone</url>
    			<snapshots>
    				<enabled>false</enabled>
    			</snapshots>
    		</repository>
    		
    			<!-- For hibernate support -->
    			<repository>
    				<id>jboss</id>
    				<url>https://repository.jboss.org/nexus/content/groups/public/</url>
    			</repository>
    		
    
    
    	</repositories>
    	<build>
    		<plugins>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-compiler-plugin</artifactId>
    				<configuration>
    					<source>${java-version}</source>
    					<target>${java-version}</target>
    		

servlet-context.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <beans:beans xmlns="http://www.springframework.org/schema/mvc"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
    	xmlns:beans="http://www.springframework.org/schema/beans"
    	xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
    	xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
    		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
    		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd 
    		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
    
    
    	<!-- DispatcherServlet Context: defines this servlet's request-processing 
    		infrastructure -->
    
    	<!-- Enables the Spring MVC @Controller programming model -->
    	<annotation-driven />
    	<!-- Enables the transactional annotations -->
    	<tx:annotation-driven transaction-manager="transactionManager"></tx:annotation-driven>
    
    	<!-- Handles HTTP GET requests for /resources/** by efficiently serving 
    		up static resources in the ${webappRoot}/resources directory -->
    	<resources mapping="/resources/**" location="/resources/" />
    
    	<!-- Connection to Database 
    	
    	*****   hsqldb.lock_file=false *****
    	
    	-->
    	<beans:bean id="datasource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    		<beans:property name="driverClassName" value="org.hsqldb.jdbcDriver" />
    		<beans:property name="url" value="jdbc:hsqldb:G:/SpringProjects/MVCProj1/database;shutdown=true" />										
    		<beans:property name="username" value="ryan" />
    		<beans:property name="password" value="ryan" />
    	</beans:bean>
    
    	<!-- Resolves views selected for rendering by @Controllers to .jsp resources 
    		in the /WEB-INF/views directory -->
    	<!-- View Resolver -->
    	<beans:bean
    		class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    		<beans:property name="prefix" value="/WEB-INF/views/" />
    		<beans:property name="suffix" value=".jsp" />
    	</beans:bean>
    
    	<!-- MessageSource -->
    	<beans:bean
    		class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
    		<beans:property name="basename" value="classpath:messages" />
    		<beans:property name="defaultEncoding" value="UTF-8" />
    	</beans:bean>
    
    	<!-- Hibernate SessionFactory -->
      	<!-- <beans:bean id="sessionFactory"
    		class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">   this was the original working bean class 2/3/12-->
    	  	
    	  	<beans:bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
    		<beans:property name="dataSource" ref="datasource"></beans:property>
    		<beans:property name="configLocation" value="classpath:hibernate.cfg.xml"></beans:property>
    		<beans:property name="configurationClass" value="org.hibernate.cfg.AnnotationConfiguration"></beans:property>
    	  	<beans:property name="annotatedClasses">
    			<beans:list>
    				<beans:value>com.ryans.MVCproject1.Team</beans:value>
    				<beans:value>com.ryans.MVCproject1.Player</beans:value>
    			</beans:list> 
    		
    		</beans:property>
    		<beans:property name="hibernateProperties">
    			<beans:props>
    				<beans:prop key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</beans:prop>
    				<beans:prop key="hibernate.show_sql">true</beans:prop>
    				<beans:prop key="hibernate.hbm2dll.auto">create-drop</beans:prop>
    			</beans:props>
    		</beans:property>
    	</beans:bean>
    	
    
    	
    	 <!-- Define a transaction Manager -->
    	<beans:bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
    	<beans:property name="sessionFactory" ref="sessionFactory"></beans:property>
    	</beans:bean>
    	
    	
    	
    	<!-- Custom Greeter Bean -->
    	<beans:bean id="umpire" class="com.ryans.MVCproject1.Greeter">
    	<beans:property name="theMessage" value="I am the umpire!"></beans:property>
    	</beans:bean>
    	
    	<beans:bean id="theTeam" class="com.ryans.MVCproject1.Team"></beans:bean>
    	
    	<beans:bean id="removedTeam" class="com.ryans.MVCproject1.Team"></beans:bean>
    	
    	<beans:bean id="thePlayer" class="com.ryans.MVCproject1.Player"></beans:bean>
    	
    	<beans:bean id="playerManager" class="com.ryans.MVCproject1.baseballServiceImp">
    	<beans:constructor-arg ref="baseballDAO"></beans:constructor-arg>
    	</beans:bean>
    	
    	<beans:bean id="baseballservice" class="com.ryans.MVCproject1.baseballServiceImp"> 
    	<beans:constructor-arg ref="baseballDAO"></beans:constructor-arg>
    	</beans:bean>
    	
    	<beans:bean id="teamManager" class="com.ryans.MVCproject1.baseballServiceImp">
    	<beans:constructor-arg ref="baseballDAO"></beans:constructor-arg>
    	</beans:bean> 
    	
    	<beans:bean id="baseballDAO" class="com.ryans.MVCproject1.BaseballDAOimp">
    	<beans:property name="sessionFactory" ref="sessionFactory"></beans:property>
    	</beans:bean> 
    
    
    	<context:component-scan base-package="com.ryans.MVCproject1" />
    
    
    </beans:beans>

hibernate.cfg.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE hibernate-configuration PUBLIC
        "-//Hibernate/Hibernate Configuration DTD//EN"
        "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
     
    <hibernate-configuration>
        <session-factory>
            <mapping package="com.ryans.MVCproject1" />
            <mapping class="com.ryans.MVCproject1.Player"/>
            <mapping class="com.ryans.MVCproject1.Team"/>
        </session-factory> 
     
    </hibernate-configuration>

PlayerController.java

    package com.ryans.MVCproject1;
    
    import java.util.List;
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.stereotype.Controller;
    import org.springframework.ui.Model;
    import org.springframework.validation.BindingResult;
    import org.springframework.web.bind.annotation.ModelAttribute;
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RequestMethod;
    
    /**
     * 
     * @author Captain Duh
     * 
     * Handle Requests for the player page
     *
     */
    
    @Controller
    @RequestMapping(value="/player")
    public class PlayerController {
    	
    	private static final Logger logger = LoggerFactory.getLogger(PlayerController.class);
    	@Autowired
    	private Team thePlayer;
    	@Autowired
    	private baseballService playerManager;
    	@Autowired baseballService baseballservice; //all teams in the database
    	
    	
    	
    	@RequestMapping(method=RequestMethod.GET)
    	public String PlayerPage(Model model){
    		logger.info("You have entered the player controller.");
    		model.addAttribute("thePlayer", thePlayer);
    		return "player";
    	}
    	
    	@RequestMapping("/storePlayer")
    	public String storePlayer(@ModelAttribute("thePlayer")Player enteredPlayer,BindingResult result){
    		playerManager.addPlayer(enteredPlayer); //the @ModelAttribute is binding to the model attribute added in the get method
    		
    		return "redirect:/home";
    	}
    	
    	public void getAllTeams(Model model){
    		logger.info("Getting all teams for player...");
    		//ModelAndView mav = new ModelAndView("home");
    		List<Team> teamsToSelect = baseballservice.getAllTeams(); //Query for all teams in database
    		//mav.addObject("GET_TEAMS_KEY", allTeams); 
    		model.addAttribute("teamsToSelect", teamsToSelect);
    		return;    
    	}
    	
    }


player.jsp

    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
    <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>    
    
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Team Player Management</title>
    </head>
    <body>
    <h3>Welcome to the Player Manager</h3>
    
    <form:form method="POST" modelAttribute="thePlayer" action="player/storePlayer">
    <table>
    <tr>
                  <td>Player First Name:</td>
                  <td><form:input path="firstName" /></td>
              </tr>
              <tr>
                  <td>Last Name:</td>
                  <td><form:input path="lastName" /></td>
              </tr>
              <tr>
              		<td>Jersey No.</td>
              		<td><form:input path="jerseyNumber"/></td>	
              </tr>
              <tr>
              		<c:forEach var="team" items="${teamsToSelect}"></c:forEach>
              		<form:select path="playerTeam">
              		<form:option value="NONE" label="**Select a Team **"/>
              		<form:options items="${teamsToSelect}"/>
              		</form:select>
              </tr>
              
              <tr>
                  <td colspan="2">
                      <input type="submit" value="Create Player" />
                  </td>
              </tr>
    
    </table>
    </form:form>
    <a href="home">Back Home</a>
    
    </body>
    </html>

Please let me know if you need more information. This doesn't make sense to me. Thanks.
Hibernate error message: unexpected token: NULLS (error in script file line: 13 unexpected token: NULLS)
===

In learning Hibernate, I have encountered a very vague error message. First some quick back ground. I previously has a single table database that was working fine. Now I have added a second table and the first table features a collection of the second table. To put it more clearly, I previously had a Team table. Now I have added a Player table. The Team includes an attribute that will hold the team members of that team. Of course the team members are made of players. I want to get this working but I don't understand the error messages. I have included the files that I think are relevant. I have omitted my home controller and team controller and associated views as these were never touched from the previous working version. Also omitted are the DAO and Service layer; again not touched. Here is the error log:

    WARN : org.hibernate.util.DTDEntityResolver - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
    WARN : org.hibernate.cfg.AnnotationBinder - Package not found or wo package-info.java: com.ryans.MVCproject1
    WARN : hsqldb.db.HSQLDB3310D13292.ENGINE - unexpected token: NULLS
    org.hsqldb.HsqlException: unexpected token: NULLS
    	at org.hsqldb.error.Error.parseError(Unknown Source)
    	at org.hsqldb.ParserBase.unexpectedToken(Unknown Source)
    	at org.hsqldb.ParserCommand.compileSetDatabaseProperty(Unknown Source)
    	at org.hsqldb.ParserCommand.compileSet(Unknown Source)
    	at org.hsqldb.ParserCommand.compilePart(Unknown Source)
    	at org.hsqldb.ParserCommand.compileStatement(Unknown Source)
    	at org.hsqldb.Session.compileStatement(Unknown Source)
    	at org.hsqldb.scriptio.ScriptReaderText.readDDL(Unknown Source)
    	at org.hsqldb.scriptio.ScriptReaderBase.readAll(Unknown Source)
    	at org.hsqldb.persist.Log.processScript(Unknown Source)
            .
            .
            .
    
    WARN : hsqldb.db.HSQLDB3310D13292.ENGINE - Script processing failure
    org.hsqldb.HsqlException: error in script file line: 13 unexpected token: NULLS
    	at org.hsqldb.error.Error.error(Unknown Source)
    	at org.hsqldb.scriptio.ScriptReaderText.readDDL(Unknown Source)
    	at org.hsqldb.scriptio.ScriptReaderBase.readAll(Unknown Source)
    	at org.hsqldb.persist.Log.processScript(Unknown Source)
    	at org.hsqldb.persist.Log.open(Unknown Source)
    	at org.hsqldb.persist.Logger.openPersistence(Unknown Source)
    	.
            .
            .
    Caused by: org.hsqldb.HsqlException: unexpected token: NULLS
    	at org.hsqldb.error.Error.parseError(Unknown Source)
    	at org.hsqldb.ParserBase.unexpectedToken(Unknown Source)
    	at org.hsqldb.ParserCommand.compileSetDatabaseProperty(Unknown Source)
    	at org.hsqldb.ParserCommand.compileSet(Unknown Source)
    	at org.hsqldb.ParserCommand.compilePart(Unknown Source)
    	at org.hsqldb.ParserCommand.compileStatement(Unknown Source)
    	at org.hsqldb.Session.compileStatement(Unknown Source)
    	... 111 more


Here are the files associated with this little program...

pom.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    	<modelVersion>4.0.0</modelVersion>
    	<groupId>com.ryans</groupId>
    	<artifactId>MVCproject1</artifactId>
    	<name>abc</name>
    	<packaging>war</packaging>
    	<version>1.0.0-BUILD-SNAPSHOT</version>
    	<properties>
    		<java-version>1.6</java-version>
    		<org.springframework-version>3.0.5.RELEASE</org.springframework-version>
    		<org.springframework.roo-version>1.0.2.RELEASE</org.springframework.roo-version>
    		<org.aspectj-version>1.6.9</org.aspectj-version>
    		<org.slf4j-version>1.5.10</org.slf4j-version>
    	</properties>
    	<dependencies>
    		<!-- Spring -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-context</artifactId>
    			<version>${org.springframework-version}</version>
    			<exclusions>
    				<!-- Exclude Commons Logging in favor of SLF4j -->
    				<exclusion>
    					<groupId>commons-logging</groupId>
    					<artifactId>commons-logging</artifactId>
    				</exclusion>
    			</exclusions>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-webmvc</artifactId>
    			<version>${org.springframework-version}</version>
    		</dependency>
    		<!-- this was added by me for JPA annotations -->
    		<dependency>
    			<groupId>javax.persistence</groupId>
    			<artifactId>persistence-api</artifactId>
    			<version>1.0</version>
    			<optional>true</optional>
    		</dependency>
    
    		<!-- Object-to-Relation-Mapping (ORM) integration with Hibernate, JPA, 
    			and iBatis. (depends on spring-core, spring-beans, spring-context, spring-tx) 
    			Define this if you need ORM (org.springframework.orm.*) -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-orm</artifactId>
    			<version>${org.springframework-version}</version>
    		</dependency>
    
    
    		<!-- Roo dependencies -->
    		<dependency>
    			<groupId>org.springframework.roo</groupId>
    			<artifactId>org.springframework.roo.annotations</artifactId>
    			<version>${org.springframework.roo-version}</version>
    			<scope>provided</scope>
    		</dependency>
    
    		<!-- AspectJ -->
    		<dependency>
    			<groupId>org.aspectj</groupId>
    			<artifactId>aspectjrt</artifactId>
    			<version>${org.aspectj-version}</version>
    		</dependency>
    
    		<!-- Logging -->
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>slf4j-api</artifactId>
    			<version>${org.slf4j-version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>jcl-over-slf4j</artifactId>
    			<version>${org.slf4j-version}</version>
    			<scope>runtime</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>slf4j-log4j12</artifactId>
    			<version>${org.slf4j-version}</version>
    			<scope>runtime</scope>
    		</dependency>
    		<dependency>
    			<groupId>log4j</groupId>
    			<artifactId>log4j</artifactId>
    			<version>1.2.15</version>
    			<exclusions>
    				<exclusion>
    					<groupId>javax.mail</groupId>
    					<artifactId>mail</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>javax.jms</groupId>
    					<artifactId>jms</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>com.sun.jdmk</groupId>
    					<artifactId>jmxtools</artifactId>
    				</exclusion>
    				<exclusion>
    					<groupId>com.sun.jmx</groupId>
    					<artifactId>jmxri</artifactId>
    				</exclusion>
    			</exclusions>
    			<scope>runtime</scope>
    		</dependency>
    
    		<!-- @Inject -->
    		<dependency>
    			<groupId>javax.inject</groupId>
    			<artifactId>javax.inject</artifactId>
    			<version>1</version>
    		</dependency>
    
    		<!-- Servlet -->
    		<dependency>
    			<groupId>javax.servlet</groupId>
    			<artifactId>servlet-api</artifactId>
    			<version>2.5</version>
    			<scope>provided</scope>
    		</dependency>
    		<dependency>
    			<groupId>javax.servlet.jsp</groupId>
    			<artifactId>jsp-api</artifactId>
    			<version>2.1</version>
    			<scope>provided</scope>
    		</dependency>
    		<dependency>
    			<groupId>javax.servlet</groupId>
    			<artifactId>jstl</artifactId>
    			<version>1.2</version>
    		</dependency>
    
    		<!-- Test -->
    		<dependency>
    			<groupId>junit</groupId>
    			<artifactId>junit</artifactId>
    			<version>4.7</version>
    			<scope>test</scope>
    		</dependency>
    
    		<dependency>
    			<groupId>commons-dbcp</groupId>
    			<artifactId>commons-dbcp</artifactId>
    			<version>1.4</version>
    		</dependency>
    
    
    		<dependency>
    			<groupId>org.hsqldb</groupId>
    			<artifactId>hsqldb</artifactId>
    			<version>2.2.4</version>
    		</dependency>
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-core</artifactId>
    			<version>3.6.7.Final</version>
    			<type>jar</type>
    			<scope>compile</scope>
    		</dependency>
    		
    	<!--  added for hibernate annotations 2/3/12 -->	
        	<dependency>
          		<groupId>org.hibernate</groupId>
          		<artifactId>hibernate-annotations</artifactId>
        		<version>${hibernate-core-version}</version>
        	</dependency>
    		
    		
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-proxool</artifactId>
    			<version>4.0.0.CR4</version>
    			<type>jar</type>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>javassist</groupId>
    			<artifactId>javassist</artifactId>
    			<version>3.12.1.GA</version>
    			<type>jar</type>
    			<scope>compile</scope>
    		</dependency>
    	</dependencies>
    	<repositories>
    		<!-- For testing against latest Spring snapshots -->
    		<repository>
    			<id>org.springframework.maven.snapshot</id>
    			<name>Spring Maven Snapshot Repository</name>
    			<url>http://maven.springframework.org/snapshot</url>
    			<releases>
    				<enabled>false</enabled>
    			</releases>
    			<snapshots>
    				<enabled>true</enabled>
    			</snapshots>
    		</repository>
    		<!-- For developing against latest Spring milestones -->
    		<repository>
    			<id>org.springframework.maven.milestone</id>
    			<name>Spring Maven Milestone Repository</name>
    			<url>http://maven.springframework.org/milestone</url>
    			<snapshots>
    				<enabled>false</enabled>
    			</snapshots>
    		</repository>
    		
    			<!-- For hibernate support -->
    			<repository>
    				<id>jboss</id>
    				<url>https://repository.jboss.org/nexus/content/groups/public/</url>
    			</repository>
    		
    
    
    	</repositories>
    	<build>
    		<plugins>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-compiler-plugin</artifactId>
    				<configuration>
    					<source>${java-version}</source>
    					<target>${java-version}</target>
    		

servlet-context.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <beans:beans xmlns="http://www.springframework.org/schema/mvc"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
    	xmlns:beans="http://www.springframework.org/schema/beans"
    	xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
    	xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
    		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
    		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd 
    		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
    
    
    	<!-- DispatcherServlet Context: defines this servlet's request-processing 
    		infrastructure -->
    
    	<!-- Enables the Spring MVC @Controller programming model -->
    	<annotation-driven />
    	<!-- Enables the transactional annotations -->
    	<tx:annotation-driven transaction-manager="transactionManager"></tx:annotation-driven>
    
    	<!-- Handles HTTP GET requests for /resources/** by efficiently serving 
    		up static resources in the ${webappRoot}/resources directory -->
    	<resources mapping="/resources/**" location="/resources/" />
    
    	<!-- Connection to Database 
    	
    	*****   hsqldb.lock_file=false *****
    	
    	-->
    	<beans:bean id="datasource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    		<beans:property name="driverClassName" value="org.hsqldb.jdbcDriver" />
    		<beans:property name="url" value="jdbc:hsqldb:G:/SpringProjects/MVCProj1/database;shutdown=true" />										
    		<beans:property name="username" value="ryan" />
    		<beans:property name="password" value="ryan" />
    	</beans:bean>
    
    	<!-- Resolves views selected for rendering by @Controllers to .jsp resources 
    		in the /WEB-INF/views directory -->
    	<!-- View Resolver -->
    	<beans:bean
    		class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    		<beans:property name="prefix" value="/WEB-INF/views/" />
    		<beans:property name="suffix" value=".jsp" />
    	</beans:bean>
    
    	<!-- MessageSource -->
    	<beans:bean
    		class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
    		<beans:property name="basename" value="classpath:messages" />
    		<beans:property name="defaultEncoding" value="UTF-8" />
    	</beans:bean>
    
    	<!-- Hibernate SessionFactory -->
      	<!-- <beans:bean id="sessionFactory"
    		class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">   this was the original working bean class 2/3/12-->
    	  	
    	  	<beans:bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
    		<beans:property name="dataSource" ref="datasource"></beans:property>
    		<beans:property name="configLocation" value="classpath:hibernate.cfg.xml"></beans:property>
    		<beans:property name="configurationClass" value="org.hibernate.cfg.AnnotationConfiguration"></beans:property>
    	  	<beans:property name="annotatedClasses">
    			<beans:list>
    				<beans:value>com.ryans.MVCproject1.Team</beans:value>
    				<beans:value>com.ryans.MVCproject1.Player</beans:value>
    			</beans:list> 
    		
    		</beans:property>
    		<beans:property name="hibernateProperties">
    			<beans:props>
    				<beans:prop key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</beans:prop>
    				<beans:prop key="hibernate.show_sql">true</beans:prop>
    				<beans:prop key="hibernate.hbm2dll.auto">create-drop</beans:prop>
    			</beans:props>
    		</beans:property>
    	</beans:bean>
    	
    
    	
    	 <!-- Define a transaction Manager -->
    	<beans:bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
    	<beans:property name="sessionFactory" ref="sessionFactory"></beans:property>
    	</beans:bean>
    	
    	
    	
    	<!-- Custom Greeter Bean -->
    	<beans:bean id="umpire" class="com.ryans.MVCproject1.Greeter">
    	<beans:property name="theMessage" value="I am the umpire!"></beans:property>
    	</beans:bean>
    	
    	<beans:bean id="theTeam" class="com.ryans.MVCproject1.Team"></beans:bean>
    	
    	<beans:bean id="removedTeam" class="com.ryans.MVCproject1.Team"></beans:bean>
    	
    	<beans:bean id="thePlayer" class="com.ryans.MVCproject1.Player"></beans:bean>
    	
    	<beans:bean id="playerManager" class="com.ryans.MVCproject1.baseballServiceImp">
    	<beans:constructor-arg ref="baseballDAO"></beans:constructor-arg>
    	</beans:bean>
    	
    	<beans:bean id="baseballservice" class="com.ryans.MVCproject1.baseballServiceImp"> 
    	<beans:constructor-arg ref="baseballDAO"></beans:constructor-arg>
    	</beans:bean>
    	
    	<beans:bean id="teamManager" class="com.ryans.MVCproject1.baseballServiceImp">
    	<beans:constructor-arg ref="baseballDAO"></beans:constructor-arg>
    	</beans:bean> 
    	
    	<beans:bean id="baseballDAO" class="com.ryans.MVCproject1.BaseballDAOimp">
    	<beans:property name="sessionFactory" ref="sessionFactory"></beans:property>
    	</beans:bean> 
    
    
    	<context:component-scan base-package="com.ryans.MVCproject1" />
    
    
    </beans:beans>

hibernate.cfg.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE hibernate-configuration PUBLIC
        "-//Hibernate/Hibernate Configuration DTD//EN"
        "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
     
    <hibernate-configuration>
        <session-factory>
            <mapping package="com.ryans.MVCproject1" />
            <mapping class="com.ryans.MVCproject1.Player"/>
            <mapping class="com.ryans.MVCproject1.Team"/>
        </session-factory> 
     
    </hibernate-configuration>

PlayerController.java

    package com.ryans.MVCproject1;
    
    import java.util.List;
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.stereotype.Controller;
    import org.springframework.ui.Model;
    import org.springframework.validation.BindingResult;
    import org.springframework.web.bind.annotation.ModelAttribute;
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RequestMethod;
    
    /**
     * 
     * @author Captain Duh
     * 
     * Handle Requests for the player page
     *
     */
    
    @Controller
    @RequestMapping(value="/player")
    public class PlayerController {
    	
    	private static final Logger logger = LoggerFactory.getLogger(PlayerController.class);
    	@Autowired
    	private Team thePlayer;
    	@Autowired
    	private baseballService playerManager;
    	@Autowired baseballService baseballservice; //all teams in the database
    	
    	
    	
    	@RequestMapping(method=RequestMethod.GET)
    	public String PlayerPage(Model model){
    		logger.info("You have entered the player controller.");
    		model.addAttribute("thePlayer", thePlayer);
    		return "player";
    	}
    	
    	@RequestMapping("/storePlayer")
    	public String storePlayer(@ModelAttribute("thePlayer")Player enteredPlayer,BindingResult result){
    		playerManager.addPlayer(enteredPlayer); //the @ModelAttribute is binding to the model attribute added in the get method
    		
    		return "redirect:/home";
    	}
    	
    	public void getAllTeams(Model model){
    		logger.info("Getting all teams for player...");
    		//ModelAndView mav = new ModelAndView("home");
    		List<Team> teamsToSelect = baseballservice.getAllTeams(); //Query for all teams in database
    		//mav.addObject("GET_TEAMS_KEY", allTeams); 
    		model.addAttribute("teamsToSelect", teamsToSelect);
    		return;    
    	}
    	
    }


player.jsp

    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
    <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>    
    
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Team Player Management</title>
    </head>
    <body>
    <h3>Welcome to the Player Manager</h3>
    
    <form:form method="POST" modelAttribute="thePlayer" action="player/storePlayer">
    <table>
    <tr>
                  <td>Player First Name:</td>
                  <td><form:input path="firstName" /></td>
              </tr>
              <tr>
                  <td>Last Name:</td>
                  <td><form:input path="lastName" /></td>
              </tr>
              <tr>
              		<td>Jersey No.</td>
              		<td><form:input path="jerseyNumber"/></td>	
              </tr>
              <tr>
              		<c:forEach var="team" items="${teamsToSelect}"></c:forEach>
              		<form:select path="playerTeam">
              		<form:option value="NONE" label="**Select a Team **"/>
              		<form:options items="${teamsToSelect}"/>
              		</form:select>
              </tr>
              
              <tr>
                  <td colspan="2">
                      <input type="submit" value="Create Player" />
                  </td>
              </tr>
    
    </table>
    </form:form>
    <a href="home">Back Home</a>
    
    </body>
    </html>

Please let me know if you need more information. This doesn't make sense to me. Thanks.