2013-04-22 83 views
5

Tôi đã thử chạy máy chủ apache-james-3.0-beta4 trên Linux Mint 64bit (Debian) với Java jdk 1.7u17, nhưng nó không hoạt động do lỗi thư viện JAXB. Theo tài liệu, tệp jar khác nhau sẽ được tải xuống (http://jaxb.java.net/2.1.13/JAXB2_20100510.jar) và được đưa vào thư mục conf/lib. Tôi đã làm điều đó, nhưng vấn đề vẫn còn đó. Khi tôi chuyển sang jdk 1.6, mọi thứ bắt đầu hoạt động tốt.Khởi động Apache James với jdk 1.7

Có ai đã giải quyết vấn đề này không?

Đây là một phần của stack trace:

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

Tôi chưa gặp vấn đề này với James (nhưng tôi đã tạo ra quan điểm JBoss), và để khắc phục nó, bạn phải khai báo rõ ràng tệp JAR trong đường dẫn lớp trước bất kỳ ký tự đại diện nào. Có lẽ điều đó sẽ giúp –

+0

Có vẻ như phiên bản beta5 tiếp theo sẽ được sửa https://issues.apache.org/jira/browse/JAMES-1450 – Sasa

+0

Không, beta5-854 cũng không hoạt động. Tuy nhiên, theo dõi stack khác nhau. – Sasa

Trả lời

6

File Tôi đã tải không phải là mới nhất. Khi tôi đã tải xuống newer version of beta5 nó hoạt động tốt.

+3

Liên kết bị hỏng .. bạn có thể tìm thấy bản beta5 tại đây https://repository.apache.org/content/repositories /snapshots/org/apache/james/apache-james/3.0-beta5-SNAPSHOT/ –

+0

Ya, mọi liên kết trực tiếp sẽ phanh từ time2time, khi có bản sửa đổi mới. Họ chỉ giữ được 2 bản sửa đổi cuối cùng. Bạn có thể xem bản sửa đổi nào hiện có sẵn ở đó và chọn bản nào bạn thích. – Sasa

Các vấn đề liên quan