Return-Path: X-Original-To: apmail-axis-java-user-archive@www.apache.org Delivered-To: apmail-axis-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A409778D for ; Sun, 21 Aug 2011 18:59:39 +0000 (UTC) Received: (qmail 63546 invoked by uid 500); 21 Aug 2011 18:59:38 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 63342 invoked by uid 500); 21 Aug 2011 18:59:37 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 63334 invoked by uid 99); 21 Aug 2011 18:59:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Aug 2011 18:59:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of seba.wagner@gmail.com designates 209.85.220.173 as permitted sender) Received: from [209.85.220.173] (HELO mail-vx0-f173.google.com) (209.85.220.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Aug 2011 18:59:32 +0000 Received: by vxi32 with SMTP id 32so4639181vxi.32 for ; Sun, 21 Aug 2011 11:59:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=nLbtblmgNp8ZB1OXdcMp1TFuTL6HJXh/gcFDuxB5pVM=; b=a7fSHEKR39yyeRLJ/TB6XLmQKDCGGxqc3FWvCcUS+YutBsyt8wfBu0V/mzqNa5Y+aY 4Gvr8e/9kGrGdJeOOqnSy6d4RRpUtNI/wAC4aHRLR5o4TL5IiC0LMCnzwfVgSdTcojt1 3eDKISgsCGgVjOKMIH9fDr164zWq91EYBEutk= Received: by 10.52.29.42 with SMTP id g10mr1500507vdh.36.1313953150051; Sun, 21 Aug 2011 11:59:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.114.105 with HTTP; Sun, 21 Aug 2011 11:58:50 -0700 (PDT) In-Reply-To: References: From: "seba.wagner@gmail.com" Date: Sun, 21 Aug 2011 20:58:50 +0200 Message-ID: Subject: Re: Axis2 Spring integration Issues To: java-user@axis.apache.org Content-Type: multipart/alternative; boundary=20cf307ca3d0c2a54e04ab088e0f --20cf307ca3d0c2a54e04ab088e0f Content-Type: text/plain; charset=ISO-8859-1 So here we go. I am testing the Service called *UserService* service.xml including that service: http://code.google.com/p/openmeetings/source/browse/branches/dev/injection/src/META-INF/services.xml The application-Context file from Spring that gets loaded and the link to the line of the xml where the Bean is defined that Axis2 will reference: http://code.google.com/p/openmeetings/source/browse/branches/dev/injection/WebContent/WEB-INF/openmeetings-applicationContext.xml#256 The UserService Class that gets deployed as WebService: http://code.google.com/p/openmeetings/source/browse/branches/dev/injection/src/userservice/org/openmeetings/axis/services/UserServiceProxy.java All very simple I think and alligned exactly to what is written at: http://axis.apache.org/axis2/java/core/docs/spring.html#With_a_ServletContext The service.xml is compiled into a file called: OpenMeetingsService.aar and situated in webapp/WEB-INF/services The UserServiceProxy.java class is bundled into a openmeetings-WebService.jar and situated in webapp/WEB-INF/lib The exception on startup of Tomcat is: 2011-08-21 20:49:23,552 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/6.0.24 2011-08-21 20:49:26,011 [main] ERROR o.a.a.deployment.ServiceDeployer - The OpenMeetingsService.aar service, which is not valid, caused The following error occurred during schema generation: Axis2 Can't find Spring's ApplicationContext org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Axis2 Can't find Spring's ApplicationContext ... Thanks Sebastian 2011/8/21 seba.wagner@gmail.com : > Thanks Robert, > > I will modify the sources aligned with the inital approach again and > send you the details. > > Sebastian > > 2011/8/21 robert lazarski : >> On Sun, Aug 21, 2011 at 1:58 PM, robert lazarski >> wrote: >>> On Sun, Aug 21, 2011 at 1:33 PM, seba.wagner@gmail.com >>> wrote: >>>> Hi Robert, >>>> >>>> I have exactly read and applied this one first. >>>> >>>> You mean: >>>> >>>> >>>> simple spring example >>>> >>>> org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier >>>> springAwareService >>>> >>>> >>> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/> >>>> >>>> >>>> >>>> => It results in a situation where the WSDL file is generated but ZERO >>>> methods are in the Service. >>>> >>>> If you manually add one like this: >>>> >>>> >>>> (of course with a different method name that really exist in our case >>>> and with a SpringBean that does exist et cetera it results in: >>>> Service Object cannot be found ... which means that much like it was >>>> not able to find the Bean. >>>> >>>> >>>> Sebastian >>>> >>> >>> I'm not sure what exactly your problem is - you've mentioned at least >>> loading order, wsdl issues and ungenerated methods, best I can tell. >>> The axis2 spring integration guide requires you follow it exactly, and >>> works when done so. You are pasting incomplete configs and no stack >>> traces, so its hard to see where you are going wrong. I don't think >>> you mentioned what version of axis2 you are using, but I suggest you >>> try going over the guide another time as it typically works for >>> everyone eventually. >>> >> >> If all else fails, if you paste all your configs as outined in the >> guide, and you stack traces, on the latest released axis2, I'll see if >> I can help. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org >> For additional commands, e-mail: java-user-help@axis.apache.org >> >> > > > > -- > Sebastian Wagner > http://www.webbase-design.de > http://openmeetings.googlecode.com > http://www.wagner-sebastian.com > seba.wagner@gmail.com > -- Sebastian Wagner http://www.webbase-design.de http://openmeetings.googlecode.com http://www.wagner-sebastian.com seba.wagner@gmail.com --20cf307ca3d0c2a54e04ab088e0f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable So here we go.

I am testing the Service called *UserService*
service.xml including that service:
http://code.google.com/p/openmeetings/source/browse/branches/dev/injecti= on/src/META-INF/services.xml

The application-Context file from Spring that gets loaded and the link = to the line of the xml where the Bean is defined that Axis2 will reference:=
= http://code.google.com/p/openmeetings/source/browse/branches/dev/injection/= WebContent/WEB-INF/openmeetings-applicationContext.xml#256

The UserService Class that gets deployed as WebService:
http:/= /code.google.com/p/openmeetings/source/browse/branches/dev/injection/src/us= erservice/org/openmeetings/axis/services/UserServiceProxy.java

All very simple I think and alligned exactly to what is written at:
= http://axis.apache.org/axis2/java/core/docs/spring.html#With= _a_ServletContext

The service.xml is compiled into a file called: OpenMeetingsService.aar= and situated in webapp/WEB-INF/services
The UserServiceProxy.java class= is bundled into a openmeetings-WebService.jar and situated in webapp/WEB-I= NF/lib

The exception on startup of Tomcat is:
2011-08-21 20:49:23,552 [main= ] INFO=A0 o.a.catalina.core.StandardEngine - Starting Servlet Engine: Apach= e Tomcat/6.0.24
2011-08-21 20:49:26,011 [main] ERROR o.a.a.deployment.Se= rviceDeployer - The OpenMeetingsService.aar service, which is not valid, ca= used The following error occurred during schema generation: Axis2 Can't= find Spring's ApplicationContext
org.apache.axis2.deployment.DeploymentException: The following error occurr= ed during schema generation: Axis2 Can't find Spring's ApplicationC= ontext
...


Thanks
Sebastian


2011/8/21 seba.wagner@gmail.com <seba.wagner@gmail.com>:
> Thanks Robert,
>
> I will modify the sources aligned with = the inital approach again and
> send you the details.
>
>= Sebastian
>
> 2011/8/21 robert lazarski <robertlazarski@gmail.com>:
>> On Sun, Aug 21, 2011 at 1:58 PM, robert lazarski
>> <<= a href=3D"mailto:robertlazarski@gmail.com">robertlazarski@gmail.com>= wrote:
>>> On Sun, Aug 21, 2011 at 1:33 PM, seba.wagner@gmail.com
>>> <seba.wagner@gmail= .com> wrote:
>>>> Hi Robert,
>>>>
&= gt;>>> I have exactly read and applied this one first.
>>= >>
>>>> You mean:
>>>> <service name=3D"Spr= ingAwareService">
>>>> =A0 =A0<description>>>>> =A0 =A0 =A0 =A0simple spring example
>>>> = =A0 =A0</description>
>>>> =A0 =A0<parameter name=3D"ServiceObjectSupplier&qu= ot;>org.apache.axis2.extensions.spring.receivers.SpringServletContextObj= ectSupplier</parameter>
>>>> =A0 =A0<parameter name= =3D"SpringBeanName">springAwareService</parameter>
>>>> =A0 =A0<operation name=3D"getValue">
&g= t;>>> =A0 =A0 =A0 =A0<messageReceiver
>>>> class= =3D"org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>>>>> =A0 =A0</operation>
>>>> </service>
>>>>
>>>> = =3D> It results in a situation where the WSDL file is generated but ZERO=
>>>> methods are in the Service.
>>>>
>= ;>>> If you manually add one like this:
>>>> <operation name=3D"getValue">
>>&= gt;>
>>>> (of course with a different method name that re= ally exist in our case
>>>> and with a SpringBean that does = exist et cetera it results in:
>>>> Service Object cannot be found ... which means that much l= ike it was
>>>> not able to find the Bean.
>>>&g= t;
>>>>
>>>> Sebastian
>>>> >>>
>>> I'm not sure what exactly your problem is = - you've mentioned at least
>>> loading order, wsdl issues = and ungenerated methods, best I can tell.
>>> The axis2 spring = integration guide requires you follow it exactly, and
>>> works when done so. You are pasting incomplete configs and no = stack
>>> traces, so its hard to see where you are going wrong.= I don't think
>>> you mentioned what version of axis2 you = are using, but I suggest you
>>> try going over the guide another time as it typically works fo= r
>>> everyone eventually.
>>>
>>
>&= gt; If all else fails, if you paste all your configs as outined in the
>> guide, and you stack traces, on the latest released axis2, I'l= l see if
>> I can help.
>>
>> ------------------= ---------------------------------------------------
>> To unsubscr= ibe, e-mail: java-= user-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-user-help@axis.apache.org
>>
>>=
>
>
>
> --
> Sebastian Wagner
> http://www.webbase-design.de
> http://openmeetings.goo= glecode.com
> http://= www.wagner-sebastian.com
> seba.wagner@gmail.com
>



--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.wagner-sebastian.com
seba.wagner@gmail.com

--20cf307ca3d0c2a54e04ab088e0f--