Hi! Today I had a problem with starting my project in JavaEE on Glassfish 3.1. It was long fight to made it work. But I lost the fight ( but not the war ) and made new instance of Glassfish server. The error i always get when starting serwer was:
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
Problem was with file: glassfish3/glassfish/domains/domain1/config/domain.xml I think my IDE change encondig of this file from UTF-8 to ASCII (I use IntelliJ and Netbeans). After some time I decide to install a fresh instance of Glassfish server. After that my application deploy successful. So i ask one question: