Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 81576 invoked from network); 4 Dec 2008 20:57:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2008 20:57:46 -0000 Received: (qmail 94414 invoked by uid 500); 4 Dec 2008 20:57:55 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 94374 invoked by uid 500); 4 Dec 2008 20:57:55 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 94363 invoked by uid 99); 4 Dec 2008 20:57:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Dec 2008 12:57:55 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ammulder@gmail.com designates 74.125.92.144 as permitted sender) Received: from [74.125.92.144] (HELO qw-out-1920.google.com) (74.125.92.144) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Dec 2008 20:56:26 +0000 Received: by qw-out-1920.google.com with SMTP id 5so1110033qwc.30 for ; Thu, 04 Dec 2008 12:57:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=vwkr7wpIjwwNX+uXn3LV24I6dpAzwwhBKpC+m0jD9BU=; b=I3gAkMN+BG0f9z3SRkyBVjiEg2HVxgx01slo+qr/gp0Pwi1NB4MRzKx7pEEpaj+Bl2 57mzmJS3J2n6tXfdpdYly/YLTGRjZMxMwPNj4HGv47NycshYtyhj045gNJjU9Lsij1i4 ZuUiXNKvhNJyaBf19hS6csJw3Kpmcwjesj+9k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=L3KhS0Chkq2/pXG/SgqMrCsuZkGL1Cy5j6/89/ZP94hmX6+4FqJ7IEa1XOh6525/Hv VKdjvbjsS7zHze7vLFAb1omQEiVXxnO/O7wGWa+meBZYm2SneupcL2zbxoN1dbMuE3dA stRiXssCNfLh4bVirbqqePfVn4a97mxEJQny8= Received: by 10.214.184.1 with SMTP id h1mr15486801qaf.176.1228424233286; Thu, 04 Dec 2008 12:57:13 -0800 (PST) Received: by 10.215.12.8 with HTTP; Thu, 4 Dec 2008 12:57:13 -0800 (PST) Message-ID: <74e15baa0812041257m34f4f3fhe57c5882afea6f4f@mail.gmail.com> Date: Thu, 4 Dec 2008 15:57:13 -0500 From: "Aaron Mulder" Sender: ammulder@gmail.com To: users@cxf.apache.org Subject: Re: JAX-WS services in WebLogic 10 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <74e15baa0812041135l101532dfse70fc29002610e74@mail.gmail.com> <74e15baa0812041220h6e28921du32ee915e125167a4@mail.gmail.com> X-Google-Sender-Auth: 08f9123f29904dd6 X-Virus-Checked: Checked by ClamAV on apache.org Well, what I've done is basically what that page outlines, as far as setting up the paths where it should prefer the app versions instead of the server versions of various libraries. The problem I'm having seems to be slightly different -- as far as I can tell it's getting the right version of the javax.xml.soap API, but the wrong default implementation. I'm not sure how to correct that -- the settings on the page you mentioned apply to XML parsers, but not SOAP factories. If someone knows what META-INF file to whack or something I could try that. Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: weblogic.webservice.core.soap.MessageFactoryImpl at javax.xml.soap.MessageFactory.newInstance(Unknown Source) Thanks, Aaron On Thu, Dec 4, 2008 at 3:30 PM, Nepali, Sonam (GE Healthcare, consultant) wrote: > If you are trying to do CXF with JMS transport in weblogic, then there > is a documentation on > http://cwiki.apache.org/CXF20DOC/appserverguide.html that gives you a > better clue. How does your code look like? > > Thanks > > Sonam Nepali > > > -----Original Message----- > From: ammulder@gmail.com [mailto:ammulder@gmail.com] On Behalf Of Aaron > Mulder > Sent: Thursday, December 04, 2008 1:21 PM > To: Nepali, Sonam (GE Healthcare, consultant) > Cc: users@cxf.apache.org > Subject: Re: JAX-WS services in WebLogic 10 > > OK, so I found a blog post about wrapping the WAR with an EAR and > putting various excludes in the Weblogic DD. That got my app deploying. > However, when I try to invoke a service at runtime, I get > this: > > ... > Caused by: javax.xml.soap.SOAPException: Unable to create message > factory for SOAP: weblogic.webservice.core.soap.MessageFactoryImpl > at javax.xml.soap.MessageFactory.newInstance(Unknown Source) > at > org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor.handleMessage(SAAJOu > tInterceptor.java:80) > ... 29 more > > It looks like even if I force the app to use the latest spec JARs and > things, the WebLogic SOAP implementation is being used as default > instead of whatever CXF would prefer. Any idea how I can avoid this? > Putting in a prefer package line for javax.xml.soap.* wasn't enough. > > Thanks, > Aaron > > On Thu, Dec 4, 2008 at 2:42 PM, Nepali, Sonam (GE Healthcare, > consultant) wrote: >> In Weblogic you may need to add the information about packages that >> need to be used from your project versus out of the weblogic library > jars. >> It is done by adding the info in the application deplyoment descriptor > >> file. I think weblogic jars are perhaps being used instead of your >> cxf jars. >> >> thanks >> >> Sonam Nepali >> >> >> -----Original Message----- >> From: ammulder@gmail.com [mailto:ammulder@gmail.com] On Behalf Of >> Aaron Mulder >> Sent: Thursday, December 04, 2008 12:35 PM >> To: users@cxf.apache.org >> Subject: JAX-WS services in WebLogic 10 >> >> So I have a Spring-and-CXF app that works fine in Jetty. The Web >> Services in the app are done using a element in the >> Spring config file. >> >> When I deploy this in WebLogic 10, it blows up. Apparently WebLogic >> finds the beans with the JAX-WS annotations, and tries to deploy them >> as Web Services itself -- before CXF is ever involved. This blows up >> because it uses the Sun RI that expects some generated code that CXF >> does not require. >> >> Has anyone seen this before? Any ideas for how I can convince >> WebLogic to ignore the JAX-WS services so that CXF will be the only >> thing that handles them? >> >> Thanks, >> Aaron >> >