Return-Path: X-Original-To: apmail-openejb-users-archive@www.apache.org Delivered-To: apmail-openejb-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D677DFDA for ; Mon, 20 Aug 2012 17:54:29 +0000 (UTC) Received: (qmail 39318 invoked by uid 500); 20 Aug 2012 17:54:29 -0000 Delivered-To: apmail-openejb-users-archive@openejb.apache.org Received: (qmail 39271 invoked by uid 500); 20 Aug 2012 17:54:29 -0000 Mailing-List: contact users-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openejb.apache.org Delivered-To: mailing list users@openejb.apache.org Received: (qmail 39263 invoked by uid 99); 20 Aug 2012 17:54:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2012 17:54:29 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [108.163.194.218] (HELO s13-chicago.accountservergroup.com) (108.163.194.218) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2012 17:54:21 +0000 Received: from ip68-97-0-238.ok.ok.cox.net ([68.97.0.238] helo=[192.168.1.11]) by s13-chicago.accountservergroup.com with esmtpa (Exim 4.69) (envelope-from ) id 1T3WAo-000FhQ-KJ for users@openejb.apache.org; Mon, 20 Aug 2012 12:53:58 -0500 Message-ID: <503279AA.5030602@thinkology.org> Date: Mon, 20 Aug 2012 12:53:46 -0500 From: David Nordahl User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: users@openejb.apache.org Subject: Re: Exceptions in my deployed environment References: <4FF9E7C2.3010708@thinkology.org> <4FF9EEEA.3050800@thinkology.org> <4FF9F7DF.8060305@thinkology.org> <4FF9FB31.5080609@thinkology.org> <4FF9FFB8.9050406@thinkology.org> <4FFA31D4.4040000@thinkology.org> <4FFB1129.4050908@thinkology.org> <502EA618.2040203@thinkology.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - s13-chicago.accountservergroup.com X-AntiAbuse: Original Domain - openejb.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - thinkology.org X-Source: X-Source-Args: X-Source-Dir: I discovered my ide started leaving out the class files for some reason.. I think I've got that fixed. But now starting up tomee I get the error: SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"] java.net.SocketException: Unrecognized Windows Sockets error: 10106: create using netstat and other tools I don't see that port 10106 is in use and I'm not sure why it's trying to connect and open this port to begin with. Also I was wondering with a web app with EJB's if it is needed to build an EAR file, or if you can put the entity classes in the classes folder of WEB-INF in the WAR file? On 8/17/2012 3:55 PM, Romain Manni-Bucau wrote: > Did you generate jpa meta classes? > Le 17 ao�t 2012 22:14, "David Nordahl" a �crit : > >> I'm having trouble making TomEE happy on my deployed server and I'm not >> sure what is different from my dev environment. Basically I have my EJB >> class files included in a jar in the lib folder of TomEE as well as in my >> deployed WAR web app. >> >> When EJBs are invoked, I get exceptions like: >> >> ClassCastException: cannot convert class A to class A. >> >> I also get exceptions about duplicate NamedQuery's. >> >> So I assume duplicate instances of class files present and TomEE is not >> able to sort this out for some reason. So if I remove the EJB classes >> contained in the /lib folder jar of my class files, I get: >> >> WARNING: Meta class "com.company.entities.**Customer_" for entity class >> com.company.entities.Customer can not be registered with following >> exception "java.security.**PrivilegedActionException: java.lang.**ClassNotFoundException: >> com.company.entities.Customer_**" >> Aug 17, 2012 12:39:26 PM null >> >> Any advice regarding what I might be doing wrong ? 2-1 seems to equal 0 >> here :-) >> >> >> >> >>