此内容没有您所选择的语言版本。
2.5.4. 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.