ho cercato di eseguire il server apache-james-3.0-beta4 su Linux Mint 64 bit (Debian) con Java JDK 1.7u17, ma non ha funzionato a causa della libreria di bug JAXB. Secondo la documentazione, è necessario scaricare diversi file jar (http://jaxb.java.net/2.1.13/JAXB2_20100510.jar) e inserirli nella directory conf/lib. L'ho fatto, ma il problema è ancora lì. Quando sono passato a jdk 1.6, tutto ha cominciato a funzionare bene.avviare Apache James con JDK 1.7
Qualcuno ha risolto questo problema?
Ecco una parte della traccia dello stack:
INFO 19:45:24,669 | org.apache.james.container.spring.context.JamesServerApplicationContext | Refreshing org.apac[email protected]11641923: startup date [Mon Apr 22 19:45:24 CEST 2013]; root of context hierarchy
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Failed to create the JAXB binder; nested exception is javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory could not be instantiated: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
Class has two properties of the same name "outputs"
this problem is related to the following location:
at public java.util.List org.apache.camel.model.ResequenceDefinition.getOutputs()
at org.apache.camel.model.ResequenceDefinition
this problem is related to the following location:
at private java.util.List org.apache.camel.model.ResequenceDefinition.outputs
at org.apache.camel.model.ResequenceDefinition
- with linked exception:
[com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
Class has two properties of the same name "outputs"
this problem is related to the following location:
at public java.util.List org.apache.camel.model.ResequenceDefinition.getOutputs()
at org.apache.camel.model.ResequenceDefinition
this problem is related to the following location:
at private java.util.List org.apache.camel.model.ResequenceDefinition.outputs
at org.apache.camel.model.ResequenceDefinition
]
...
non ho avuto questo problema con James (ma ho formare una prospettiva JBoss), e per risolvere il problema si doveva dichiarare in modo esplicito il file JAR nel classpath prima di qualsiasi caratteri jolly. Forse ciò aiuterà –
Sembra che la prossima versione beta5 sarebbe stata corretta https://issues.apache.org/jira/browse/JAMES-1450 – Sasa
No, anche la beta5-854 non funziona. Traccia pila diversa però. – Sasa