2013-04-22 13 views
5

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 
] 
... 
+0

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à –

+0

Sembra che la prossima versione beta5 sarebbe stata corretta https://issues.apache.org/jira/browse/JAMES-1450 – Sasa

+0

No, anche la beta5-854 non funziona. Traccia pila diversa però. – Sasa

risposta

6

Il file che ho scaricato non era il più recente. Quando ho scaricato newer version of beta5 ha funzionato bene.

+3

Il link è rotto .. puoi trovare la beta5 qui https://repository.apache.org/content/repositories /snapshots/org/apache/james/apache-james/3.0-beta5-SNAPSHOT/ –

+0

Ya, ogni collegamento diretto si interrompe da time2time, quando sono disponibili nuove revisioni. Stanno mantenendo disponibili solo le ultime 2 revisioni. Puoi vedere quale revisione è attualmente disponibile e scegliere quello che ti piace. – Sasa

Problemi correlati