Hi Gerry, its really common to block http traffic. At my current employer we do exactly this ;) I think we should just include the xsd files in the build and load them from classpath.
Bye, Norman 2010/11/16 Gerry Matte <[email protected]>: > An attempt to retrieve a schema file uses only the http protocol which no > firewall would ever block. > When the firewall is up, can you browse to other web pages ? > Does the schema display in your browser if you paste the schema URL into your > browser and try to read the file ? > http://activemq.apache.org/schema/core/activemq-core-5.4.1.xsd > Gerry > > ----- Original Message ----- > From: Norman Maurer <[email protected]> > Date: Monday, November 15, 2010 9:44 pm > Subject: Re: James Server 3.0-M2 failed to start because of firewall? > To: James Users List <[email protected]> > >> Hi there, >> >> could you open a jira issue so we can take care of it for the >> next release? >> >> >> https://issues.apache.org/jira/browse/JAMES >> >> Thx, >> Norman >> >> 2010/11/15 Zhou Wu <[email protected]>: >> > >> > I started James Server-M2 on Windows 7 successfully without >> firewall. But I >> > got the following error when the firewall is on (I don't think >> it is good >> > idea to depend on external xsd in such case). >> > >> > >> > C:\temp\james-server-container-spring-3.0-M2\james-server- >> container-spring-3.0-M2\bin>run >> > INFO 19:04:19,012 | >> > >> org.apache.james.container.spring.JamesServerApplicationContext | Refreshing >> > org.apache.james.conta >> > iner.spring.jamesserverapplicationcont...@1193779: startup >> date [Sun Nov 14 >> > 19:04:19 PST 2010]; root of context hierarch >> > y >> > WARN 19:04:39,778 | >> > org.springframework.beans.factory.xml.XmlBeanDefinitionReader >> | Ignored XML >> > validation warning >> > org.xml.sax.SAXParseException: schema_reference.4: Failed to >> read schema >> > document 'http://activemq.apache.org/schema/cor >> > e/activemq-core-5.4.1.xsd', because 1) could not find the >> document; 2) the >> > document could not be read; 3) the root eleme >> > nt of the document is not <xsd:schema>. >> > at >> > >> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown> >> Sou >> > rce) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) >> > at >> > >> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) >> > at >> > >> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown> >> Source) >> > at >> > >> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)> >> at >> > >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.j> >> ava:388) >> > at >> > >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.jav> >> a:334) >> > at >> > >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.jav> >> a:302) >> > at >> > >> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini> >> tionReader.java:143) >> > at >> > >> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini> >> tionReader.java:178) >> > at >> > >> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini> >> tionReader.java:149) >> > at >> > >> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini> >> tionReader.java:212) >> > at >> > >> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationC> >> ontext.java:126) >> > at >> > >> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationC> >> ontext.java:92) >> > at >> > >> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefresha> >> bleApplicationContext.java:130) >> > at >> > >> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationCont> >> ext.java:467) >> > at >> > >> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)> >> at >> > >> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java> >> :139) >> > at >> > >> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java> >> :93) >> > at >> > >> org.apache.james.container.spring.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:37)> >> > at org.apache.james.container.spring.Main.main(Main.java:29) >> > Exception in thread "main" >> > >> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line >> > 155 in XML docume >> > nt from class path resource [spring-beans.xml] is invalid; >> nested exception >> > is org.xml.sax.SAXParseException: cvc-comple >> > x-type.2.4.c: The matching wildcard is strict, but no >> declaration can be >> > found for element 'amq:broker'. >> > at >> > >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.j> >> ava:396) >> > at >> > >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.jav> >> a:334) >> > at >> > >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.jav> >> a:302) >> > at >> > >> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini> >> tionReader.java:143) >> > at >> > >> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini> >> tionReader.java:178) >> > at >> > >> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini> >> tionReader.java:149) >> > at >> > >> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini> >> tionReader.java:212) >> > at >> > >> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationC> >> ontext.java:126) >> > at >> > >> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationC> >> ontext.java:92) >> > at >> > >> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefresha> >> bleApplicationContext.java:130) >> > at >> > >> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationCont> >> ext.java:467) >> > at >> > >> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)> >> at >> > >> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java> >> :139) >> > at >> > >> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java> >> :93) >> > at >> > >> org.apache.james.container.spring.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:37)> >> > at org.apache.james.container.spring.Main.main(Main.java:29) >> > Caused by: org.xml.sax.SAXParseException: cvc-complex- >> type.2.4.c: The >> > matching wildcard is strict, but no declaration ca >> > n be found for element 'amq:broker'. >> > at >> > >> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown> >> Sou >> > rce) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown> >> Source) >> > at >> > >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) >> > at >> > >> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) >> > at >> > >> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown> >> Source) >> > at >> > >> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)> >> at >> > >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.j> >> ava:388) >> > ... 15 more >> > >> > C:\temp\james-server-container-spring-3.0-M2\james-server- >> container-spring-3.0-M2\bin>notepad >> > run.bat >> > >> > C:\temp\james-server-container-spring-3.0-M2\james-server- >> container-spring-3.0-M2\bin> >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > -- >> > View this message in context: http://old.nabble.com/James- >> Server-3.0-M2-failed-to-start-because-of-firewall-- >> tp30222680p30222680.html> Sent from the James - Users mailing >> list archive at Nabble.com. >> > >> > >> > --------------------------------------------------------------- >> ------ >> > To unsubscribe, e-mail: [email protected] >> > For additional commands, e-mail: [email protected] >> > >> > >> >> ----------------------------------------------------------------- >> ---- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > =========== [email protected] ============ > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
