Return-Path: Delivered-To: apmail-jakarta-jetspeed-dev-archive@www.apache.org Received: (qmail 65933 invoked from network); 6 Oct 2004 08:53:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 6 Oct 2004 08:53:35 -0000 Received: (qmail 30460 invoked by uid 500); 6 Oct 2004 08:53:33 -0000 Delivered-To: apmail-jakarta-jetspeed-dev-archive@jakarta.apache.org Received: (qmail 30273 invoked by uid 500); 6 Oct 2004 08:53:31 -0000 Mailing-List: contact jetspeed-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jetspeed Developers List" Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@jakarta.apache.org Received: (qmail 30258 invoked by uid 99); 6 Oct 2004 08:53:31 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_NJABL_PROXY,RCVD_IN_SORBS_MISC X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [128.178.50.33] (HELO sicdec1.epfl.ch) (128.178.50.33) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 06 Oct 2004 01:53:30 -0700 Received: from sicdec1.epfl.ch (localhost.localdomain [127.0.0.1]) by sicdec1.epfl.ch (8.12.11/8.12.11) with ESMTP id i968rEr0023108 for ; Wed, 6 Oct 2004 10:53:14 +0200 Received: (from apache@localhost) by sicdec1.epfl.ch (8.12.11/8.12.11/Submit) id i968rEOG023105 for jetspeed-dev@jakarta.apache.org; Wed, 6 Oct 2004 10:53:14 +0200 To: jetspeed-dev@jakarta.apache.org Subject: SAXParseException X-Imap-User: xavier.lawrence@epfl.ch Message-ID: <1097052794.4163b27a99866@imapwww.epfl.ch> Date: Wed, 06 Oct 2004 10:53:14 +0200 (MEST) From: Xavier Lawrence MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.8 X-Originating-IP: 212.53.114.187 X-Scanned-By: MIMEDefang 2.39 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I am getting these stange org.xml.sax.SAXParseException: Content is not allowed in prolog and I don't understand why... Anybody would have a clue where I shoul start looking ? (I see nothing wrong in my config XML files...) I am sure that my files do not contain unauthorized white spaces before the tag. I am trying to make a simple struts-portlet work with jetspeed-2 and Tomcat 5. Thanks in advance Xavier INFO: Loading portlet application from web archive C:\Tomcat5\webapps\jetspeed\ WEB-INF\deploy\FirstStrutsPortlet-demo.war INFO: Preparing to (re) deploy portlet app "FirstStrutsPortlet-demo" INFO: Deploying portlet applicaion WAR FirstStrutsPortlet-demo.war INFO: Portlet application deployment target directory is C:\Tomcat5\webapps\jet speed/..//FirstStrutsPortlet-demo Writing out infused web.xml for FirstStrutsPortlet-demo org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1586) at org.apache.jetspeed.util.descriptor.PortletApplicationDescriptor.crea tePortletApplication(PortletApplicationDescriptor.java:148) at org.apache.jetspeed.util.descriptor.PortletApplicationWar.createPortl etApp(PortletApplicationWar.java:208) at org.apache.jetspeed.tools.pamanager.FileSystemPAM.registerApplication (FileSystemPAM.java:355) at org.apache.jetspeed.tools.pamanager.FileSystemPAM.sysDeploy(FileSyste mPAM.java:304) at org.apache.jetspeed.tools.pamanager.FileSystemPAM.deploy(FileSystemPA M.java:120) at org.apache.jetspeed.tools.pamanager.ApplicationServerPAM.deploy(Appli cationServerPAM.java:81) at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.doD eploy(DeployPortletAppEventListener.java:262) at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.inv okeDeploy(DeployPortletAppEventListener.java:165) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatc h(StandardDeploymentManager.java:305) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDep loymentEvent(StandardDeploymentManager.java:196) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSys temScanner.run(StandardDeploymentManager.java:459) ERROR: Unable to register portlet application, FirstStrutsPortlet-demo, through the portlet registry: org.apache.jetspeed.tools.pamanager.PortletApplicationExce ption: Could not unmarshal portlet.xml. org.xml.sax.SAXParseException: Content i s not allowed in prolog. org.apache.jetspeed.tools.pamanager.PortletApplicationException: Could not unmar shal portlet.xml. org.xml.sax.SAXParseException: Content is not allowed in prolo g. at org.apache.jetspeed.util.descriptor.PortletApplicationDescriptor.crea tePortletApplication(PortletApplicationDescriptor.java:178) at org.apache.jetspeed.util.descriptor.PortletApplicationWar.createPortl etApp(PortletApplicationWar.java:208) at org.apache.jetspeed.tools.pamanager.FileSystemPAM.registerApplication (FileSystemPAM.java:355) at org.apache.jetspeed.tools.pamanager.FileSystemPAM.sysDeploy(FileSyste mPAM.java:304) at org.apache.jetspeed.tools.pamanager.FileSystemPAM.deploy(FileSystemPA M.java:120) at org.apache.jetspeed.tools.pamanager.ApplicationServerPAM.deploy(Appli cationServerPAM.java:81) at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.doD eploy(DeployPortletAppEventListener.java:262) at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.inv okeDeploy(DeployPortletAppEventListener.java:165) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatc h(StandardDeploymentManager.java:305) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDep loymentEvent(StandardDeploymentManager.java:196) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSys temScanner.run(StandardDeploymentManager.java:459) Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1586) at org.apache.jetspeed.util.descriptor.PortletApplicationDescriptor.crea tePortletApplication(PortletApplicationDescriptor.java:148) ... 10 more ERROR: Unexpected exception deploying portlet application: org.apache.jetspeed.e xception.RegistryException: Unable to register portlet application, FirstStrutsP ortlet-demo, through the portlet registry: org.apache.jetspeed.tools.pamanager.P ortletApplicationException: Could not unmarshal portlet.xml. org.xml.sax.SAXPars eException: Content is not allowed in prolog. attempting rollback... org.apache.jetspeed.exception.RegistryException: Unable to register portlet appl ication, FirstStrutsPortlet-demo, through the portlet registry: org.apache.jetsp eed.tools.pamanager.PortletApplicationException: Could not unmarshal portlet.xml . org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.jetspeed.tools.pamanager.FileSystemPAM.registerApplication (FileSystemPAM.java:394) at org.apache.jetspeed.tools.pamanager.FileSystemPAM.sysDeploy(FileSyste mPAM.java:304) at org.apache.jetspeed.tools.pamanager.FileSystemPAM.deploy(FileSystemPA M.java:120) at org.apache.jetspeed.tools.pamanager.ApplicationServerPAM.deploy(Appli cationServerPAM.java:81) at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.doD eploy(DeployPortletAppEventListener.java:262) at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.inv okeDeploy(DeployPortletAppEventListener.java:165) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatc h(StandardDeploymentManager.java:305) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDep loymentEvent(StandardDeploymentManager.java:196) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSys temScanner.run(StandardDeploymentManager.java:459) Caused by: org.apache.jetspeed.tools.pamanager.PortletApplicationException: Coul d not unmarshal portlet.xml. org.xml.sax.SAXParseException: Content is not allow ed in prolog. at org.apache.jetspeed.util.descriptor.PortletApplicationDescriptor.crea tePortletApplication(PortletApplicationDescriptor.java:178) at org.apache.jetspeed.util.descriptor.PortletApplicationWar.createPortl etApp(PortletApplicationWar.java:208) at org.apache.jetspeed.tools.pamanager.FileSystemPAM.registerApplication (FileSystemPAM.java:355) ... 8 more Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1586) at org.apache.jetspeed.util.descriptor.PortletApplicationDescriptor.crea tePortletApplication(PortletApplicationDescriptor.java:148) ... 10 more INFO: Exception in deploy. Rollback of application deployment... INFO: Rollback: Remove C:\Tomcat5\webapps\jetspeed/..//FirstStrutsPortlet-demo and all sub-directories. ERROR: org.apache.jetspeed.deployment.DeploymentException: Error (re)deploying p ortlet app: org.apache.jetspeed.tools.pamanager.PortletApplicationException: org .apache.jetspeed.exception.RegistryException: Unable to register portlet applica tion, FirstStrutsPortlet-demo, through the portlet registry: org.apache.jetspeed .tools.pamanager.PortletApplicationException: Could not unmarshal portlet.xml. o rg.xml.sax.SAXParseException: Content is not allowed in prolog. org.apache.jetspeed.deployment.DeploymentException: Error (re)deploying portlet app: org.apache.jetspeed.tools.pamanager.PortletApplicationException: org.apache .jetspeed.exception.RegistryException: Unable to register portlet application, F irstStrutsPortlet-demo, through the portlet registry: org.apache.jetspeed.tools. pamanager.PortletApplicationException: Could not unmarshal portlet.xml. org.xml. sax.SAXParseException: Content is not allowed in prolog. at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.doD eploy(DeployPortletAppEventListener.java:302) at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.inv okeDeploy(DeployPortletAppEventListener.java:165) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatc h(StandardDeploymentManager.java:305) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDep loymentEvent(StandardDeploymentManager.java:196) at org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSys temScanner.run(StandardDeploymentManager.java:459) Caused by: org.apache.jetspeed.tools.pamanager.PortletApplicationException: org. apache.jetspeed.exception.RegistryException: Unable to register portlet applicat ion, FirstStrutsPortlet-demo, through the portlet registry: org.apache.jetspeed. tools.pamanager.PortletApplicationException: Could not unmarshal portlet.xml. or g.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.jetspeed.tools.pamanager.FileSystemPAM.sysDeploy(FileSyste mPAM.java:327) at org.apache.jetspeed.tools.pamanager.FileSystemPAM.deploy(FileSystemPA M.java:120) at org.apache.jetspeed.tools.pamanager.ApplicationServerPAM.deploy(Appli cationServerPAM.java:81) at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.doD eploy(DeployPortletAppEventListener.java:262) ... 4 more Caused by: org.apache.jetspeed.exception.RegistryException: Unable to register p ortlet application, FirstStrutsPortlet-demo, through the portlet registry: org.a pache.jetspeed.tools.pamanager.PortletApplicationException: Could not unmarshal portlet.xml. org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.jetspeed.tools.pamanager.FileSystemPAM.registerApplication (FileSystemPAM.java:394) at org.apache.jetspeed.tools.pamanager.FileSystemPAM.sysDeploy(FileSyste mPAM.java:304) ... 7 more Caused by: org.apache.jetspeed.tools.pamanager.PortletApplicationException: Coul d not unmarshal portlet.xml. org.xml.sax.SAXParseException: Content is not allow ed in prolog. at org.apache.jetspeed.util.descriptor.PortletApplicationDescriptor.crea tePortletApplication(PortletApplicationDescriptor.java:178) at org.apache.jetspeed.util.descriptor.PortletApplicationWar.createPortl etApp(PortletApplicationWar.java:208) at org.apache.jetspeed.tools.pamanager.FileSystemPAM.registerApplication (FileSystemPAM.java:355) ... 8 more Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1586) at org.apache.jetspeed.util.descriptor.PortletApplicationDescriptor.crea tePortletApplication(PortletApplicationDescriptor.java:148) ... 10 more ERROR: Error deploying C:\Tomcat5\webapps\jetspeed\WEB-INF\deploy\FirstStrutsPor tlet-demo.war --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org