james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Charles (JIRA)" <server-...@james.apache.org>
Subject [jira] Commented: (JAMES-1141) James Server 3.0-M2 failed to start because of firewall.
Date Wed, 16 Mar 2011 16:12:33 GMT

    [ https://issues.apache.org/jira/browse/JAMES-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13007532#comment-13007532
] 

Eric Charles commented on JAMES-1141:
-------------------------------------

Hereafter the stacktrace I received yesterday morning when connectivity between my server
 and apache hosts were not stable.
The error shown is the same as the first stacktrace in this jira, so it should be reponed
(not resolved).
The strange think is that the log is a WARN, but James didn't start.
I was too hurry to wait, but it's possible that it would have started after a network timeout.
I waited a few minutes, and when apache connectivity was back, I restarted james server without
problem.

I don't think issue comes from "clearly unreachable hosts". You can start james offline. In
my case, I had some "http connection reset" in my browser when I tried to to to http://*.apache.org"
(I don't have firewalls between).
Firewalls between can probably also reset connection.

It will be difficult for me to directly reproduce the conditions atm.

As Felix pointed, we could at least update the spring.schemas with 
         http\://activemq.apache.org/schema/core/activemq-core-5.4.1.xsd=activemq.xsd

and also add there the references to
          http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
          http://camel.apache.org/schema/spring/camel-spring-2.5.0.xsd

Received stacktrace:

INFO  08:24:32,413 | org.apache.james.container.spring.context.JamesServerApplicationContext
| Refreshing org.apache.james.container.spring.context.JamesServerApplicationContext@651dba45:
st
artup date [Tue Mar 15 08:24:32 CET 2011]; root of context hierarchy
WARN  08:24:33,382 | 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/core/activemq-core-5.4.1.xsd',
because 1) could not find the document; 2)
 the document could not be read; 3) the root element of the document is not <xsd:schema>.
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:99)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:383)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:321)
        at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:2545)
        at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:2536)
        at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:1840)
        at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:535)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:555)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2440)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1785)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:709)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:376)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2732)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:741)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:288)
        at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
        at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:126)
        at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:92)
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.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.context.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:39)
        at org.apache.james.container.spring.Main.main(Main.java:39)


> James Server 3.0-M2 failed to start because of firewall.
> --------------------------------------------------------
>
>                 Key: JAMES-1141
>                 URL: https://issues.apache.org/jira/browse/JAMES-1141
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: Spring Container
>    Affects Versions: 3.0-M2
>         Environment: Any OS system with proxy in place 
>            Reporter: Zhou Wu
>            Assignee: Norman Maurer
>             Fix For: 3.0-M3
>
>         Attachments: spring.schemas
>
>
> The error is:
> 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.JamesServerApplicationContext@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>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message