I haven't done the pet store thing but I usually get those kinds of errors when my web.xml or jboss-web.xml files are misconfigured some how in the project.
Thank you very much for your reply! I've already cheked those two files, including the application.xml file. Everything looks right to me (I didn't modify the existing scripts because they look OK to me.) I don't understand why it doesn't work. Thanks again!