이 콘텐츠는 선택한 언어로 제공되지 않습니다.
1.3.3. Deploying and testing
To deploy this application for testing we must create a Web ARchive (WAR). First we must define the WAR descriptor as
src/main/webapp/WEB-INF/web.xml
To build and deploy call
mvn package
in your project directory and copy the hibernate-tutorial.war
file into your $JBOSS_HOME/server/$CONFIG/deploy
directory.
Once deployed and JBoss is running, access the application at
http://localhost:8080/hibernate-tutorial/eventmanager
. Watch the server log (in $JBOSS_HOME/server/$CONFIG/log/server.log
) to see Hibernate initialize when the first request hits your servlet (the static initializer in HibernateUtil
is called) and to get the detailed output if any exceptions occurs.