To have the skeleton and the spring service bean get linked, you need to manually tweak your services.xml . Try that, and if you still have problems, paste your services.xml .
Robert On Mon, Jun 2, 2008 at 10:29 AM, Dwipin C <[EMAIL PROTECTED]> wrote: > > Hi Robert, > I have the required web.xml entries - > > <listener> > > <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> > </listener> > <context-param> > <param-name>contextConfigLocation</param-name> > <param-value>/WEB-INF/applicationContext.xml</param-value> > </context-param> > > From the spring logs, I can see the beans being initialised. Its > just that axis skeleton and the spring service bean did not get linked. > I couldnt find anything in the server log too. > > Thanks and Regards, > Dwipin Chandran > Tata Consultancy Services > Discoverer Bldg, 4th Floor > International Technology Park Ltd, Whitefield Road > Bangalore - 560066,Karnataka > India > Mailto: [EMAIL PROTECTED] > Website: http://www.tcs.com > ____________________________________________ > Experience certainty. IT Services > Business Solutions > Outsourcing > ____________________________________________ > > > "robert lazarski" <[EMAIL PROTECTED]> > > 06/02/2008 06:34 PM > > Please respond to > [email protected] > To > [email protected] > cc > Subject > Re: Spring service bean not initialized in the skeleton class. > > > > > The way you describe your service, you would need some web.xml entries > to load spring, ie, axis2 expects spring to be configured when using > SpringServletContextObjectSupplier. By putting spring in debug, you > should see it initializing correctly - in which case axis2 should be > able to find it. If you can start spring, but axis2 can't find it - > try looking at the servlet container logs. If you still have problems > after all that, let us know. > > HTH, > Robert > > On Mon, Jun 2, 2008 at 9:54 AM, Dwipin C <[EMAIL PROTECTED]> wrote: >> >> Hi, >> I am in the process of integrating Axis2 with Spring2.5. >> Scenario - >> I have created the aar with the xsds, services.xml, the wsdl file. >> The rest of my classes are present under the WEB-INF/classes folder and >> the >> dependant jars in the WEB-INF/lib of the axis2 app. >> I've updated the services.xml to have the "serviceObjectSupplier" as >> >> "org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier" >> and "SpringBeanName" set as the skeleton class. >> >> When I call this web-service, I get a NullpointerException from this >> skeleton class because the service (which is supposed to be injected by >> Spring) class was not initialised. >> I am not sure if I've missed out something here; Any help or pointers >> would >> be of great help. >> >> Thanks, >> Dwipin Chandran >> >> ForwardSourceID:NT00014DF2 >> ForwardSourceID:NT00014E02 >> >> =====-----=====-----===== >> Notice: The information contained in this e-mail >> message and/or attachments to it may contain >> confidential or privileged information. If you are >> not the intended recipient, any dissemination, use, >> review, distribution, printing or copying of the >> information contained in this e-mail message >> and/or attachments to it are strictly prohibited. If >> you have received this communication in error, >> please notify us by reply e-mail or telephone and >> immediately and permanently delete the message >> and any attachments. Thank you >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > ForwardSourceID:NT00014E1A > > =====-----=====-----===== > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
