Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 322DD100A8 for ; Thu, 1 Aug 2013 06:33:56 +0000 (UTC) Received: (qmail 73967 invoked by uid 500); 1 Aug 2013 06:33:54 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 73935 invoked by uid 500); 1 Aug 2013 06:33:54 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 73324 invoked by uid 99); 1 Aug 2013 06:33:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Aug 2013 06:33:51 +0000 Date: Thu, 1 Aug 2013 06:33:51 +0000 (UTC) From: "Freeman Fang (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-5170) java.lang.ClassCastException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-5170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13726112#comment-13726112 ] Freeman Fang commented on CXF-5170: ----------------------------------- Please post your question on users mailing list, and elaborate your scenario. You shouldn't use jira to ask questions. About your question here, service model is generated from your wsdl|code, the namespace used there determine the package > java.lang.ClassCastException > ---------------------------- > > Key: CXF-5170 > URL: https://issues.apache.org/jira/browse/CXF-5170 > Project: CXF > Issue Type: Bug > Components: Dynamic Languages > Affects Versions: 2.7.6 > Environment: win7,eclips,spring3.1+ibatis2.3 > Reporter: pendaqu > Fix For: 2.7.6 > > > i'm using CXF in my project , i want the service to return a java bean class back, when i test the client,it throws this exception: > java.lang.ClassCastException: com.ootam.webservice.dao.SystransferMeterDataBean cannot be cast to test.SystransferMeterDataBean > at test.Test.main(Test.java:33) > i use the same java bean to test ,and the bean is in test folder,there isn't any bean in com.ootam.webservice.dao,is there anyone hava seen this before and help me?? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira