2012-12-06 18 views
1

的最後2個字,我試圖從JBoss的5.1應用程序遷移到7.1,我有這樣的Error message,我不知道爲什麼我得到這個錯誤。如果有人有任何想法,請幫助我。JBoss7.1 IllegalAnnotationExceptions

更新:1

@Stateless 
@Remote(PackageService.class) 
@Interceptors(CrossContextSpringBeanAutowiringInterceptor.class) 
@WebContext(contextRoot="/appname_web_services", urlPattern="/MaintenanceService", authMethod="", secureWSDLAccess=false) 
@WebService(
    name="MaintenanceService", 
    targetNamespace = "http://appname.com/web/services", 
    serviceName = "MaintenanceService") 
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) 
@HandlerChain(file = "WebServiceHandlerChains.xml") 
@TransactionTimeout(10800) 
public class MaintenanceServiceBean implements MaintenanceService { 

    private static final Logger logger = Logger.getLogger(MaintenanceServiceBean.class); 

    @Resource(mappedName="/ConnectionFactory") 
    ConnectionFactory connectionFactory; 

    @Resource(mappedName="topic/manager_system_topic") 
    javax.jms.Destination systemTopic; 

    @Autowired 
    MaintenanceService MigrationService; 

    @WebMethod 
    public List<Long> getSoftDeletedPackageIds(Long performedBy) throws Exception { 
     return MigrationService.getSoftDeletedPackageIds(null); 
    } 

這是我認爲它失敗的類。

回答

1

您正在使用您的JAXB映射你沒有提供足夠的信息來運行它也能夠結合實際實現的接口。如果沒有更多的代碼包含在你的問題中,很難推薦一個特定的解決方案,但通常你會用@XmlAnyElement註解包含的接口。

你可以通過閱讀this useful tutorial以確定您可能的情況下最好的解決方案。

+0

那麼到底在哪我要設置註釋,因爲我想要遷移的應用程序是不是我寫的,但我可以提供一些代碼示例,如果你想爲特定類,如果你可以從錯誤日誌中哪些類看你會需要。 –

+0

請在你的問題中加入[SSCCE](http://sscce.org/)。 – Perception

+0

我已經添加了失敗的類。 –

相關問題