2013-04-22 12 views
5

Java jdk 1.7u17 ile Linux Mint 64bit (Debian) üzerinde apache-james-3.0-beta4 sunucusunu çalıştırmayı denedim, ancak JAXB kitaplığı hatası nedeniyle çalışmadı. Belgelere göre farklı jar dosyası (http://jaxb.java.net/2.1.13/JAXB2_20100510.jar) indirilmeli ve conf/lib dizinine konulmalıdır. Bunu yaptım, ama sorun hala var. Jdk 1.6'ya geçtiğimde, her şey iyi çalışmaya başladı.jdk ile Apache James'i başlatın 1.7

Bu sorunu çözmüş olan var mı?

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

James ile bu sorunu yaşamadım (ancak JBoss perspektifini oluşturdum) ve düzeltmek için herhangi bir joker karakterden önce sınıf yolunuzda JAR dosyasını açıkça belirtmeniz gerekiyordu. Belki bu –

+0

yardımcı olacaktır Gelecek beta5 sürümü sabit olacak gibi görünüyor https://issues.apache.org/jira/browse/JAMES-1450 – Sasa

+0

Hayır, beta5-854 de çalışmıyor. Farklı yığın izi olsa da. – Sasa

cevap

6

Ben indirdiğiniz dosyanın en yeni değildi: Burada

yığın izlemesi bir parçasıdır. newer version of beta5'u indirdiğimde iyi çalıştı.

+3

Link bozuk .. https://repository.apache.org/content/repositories burada beta5 bulabilirsiniz /snapshots/org/apache/james/apache-james/3.0-beta5-SNAPSHOT/ –

+0

Ya, her yeni bağlantı, yeni revizyonlar mevcut olduğunda time2time'dan frenlenir. Sadece son 2 revizyona devam ediyorlar. Orada hangi revizyonun mevcut olduğunu görebilir ve istediğinizi seçebilirsiniz. – Sasa