RE: Axis2 service and spring problem, can't find Spring's ApplicationContext.

2009-04-02 Thread Azazel Se

Hi.

 

Thanks alot!

When I created my own ApplicationContextHolder everything worked.

Thanks for all your help, much appreciated after this has taken me alot more 
time then it probably should have.. :)

 

 

-Az.

 

 

> Apart from this code, is spring and axis2 running together in your web
> service? I thought you said it was. I think I know what your are
> asking for, but without knowing what "TavernaBaseProfile" is doing,
> I'd be concerned that it creates two separate Spring worlds in your
> app - you probably don't want that. Anyways, with that caveat, if you
> just need "ApplicationContext" to pass into "TavernaBaseProfile" , I
> would do the following:
> 
> Keep axis2 and spring as is, since its working. The idea behind the
> axis2 ApplicationContextHolder is a known way to get an
> ApplicationContext, and can be used outside axis2. So I think you
> should create your own. Its easy, and it seems far less confusing, at
> least to me, to use your own ApplicationContextHolder outside of axis2
> when using SpringServletContextObjectSupplier. So you'd need this xml
> in your Spring config:
> 
> 
>  class="mypackage.spring.ApplicationContextHolder" />
> 
> 
> And this class in your app:
> 
> package mypackage.spring;
> 
> import org.springframework.beans.BeansException;
> import org.springframework.context.ApplicationContext;
> import org.springframework.context.ApplicationContextAware;
> 
> /** Implementation of a Spring interface who is configured in Spring's
> * applicationContext.xml or some other Spring type of way. This class
> * and the spring bean needed to wire it could be used as an alternative
> * to getting the ApplicationContext from the ServletContext. It also can
> * be used to get access to spring beans in places like junit that are not
> * spring aware.
> */
> public class ApplicationContextHolder implements ApplicationContextAware {
> 
> private static ApplicationContext appCtx;
> 
> public ApplicationContextHolder() {}
> 
> /** Spring supplied interface method for injecting app context. */
> public void setApplicationContext(ApplicationContext applicationContext)
> throws BeansException {
> appCtx = applicationContext;
> }
> 
> /** Access to spring wired beans. */
> public static ApplicationContext getContext() {
> return appCtx;
> }
> 
> }
> 
> Then instead of:
> 
> ApplicationContext context = new
> RavenAwareClassPathXmlApplicationContext("context.xml");
> 
> Do this:
> 
> ApplicationContext ctx = ApplicationContextHolder.getContext();
> TavernaBaseProfile profile = new TavernaBaseProfile(context);
> 
> Good luck,
> Robert


_
Ditt liv. Dine ting. Alt på ett sted med Windows Live™.
http://windowslive.no

RE: Axis2 service and spring problem, can't find Spring's ApplicationContext.

2009-04-02 Thread Azazel Se

> Date: Thu, 2 Apr 2009 15:01:48 -0300
> Subject: Re: Axis2 service and spring problem, can't find Spring's 
> ApplicationContext.
> From: robertlazar...@gmail.com
> To: axis-user@ws.apache.org
> 
> On Thu, Apr 2, 2009 at 1:48 PM, Azazel Se  wrote:
> >> From: robertlazar...@gmail.com
> >>
> >> "ApplicationContextHolder.getContext()" isn't needed when using
> >> SpringServletContextObjectSupplier. If spring and axis2 are working
> >> together, you are done. You have to configure Spring to use
> >> ApplicationContextHolder, otherwise it will return null values.
> >>
> >> - R
> >
> >> From: sagara.gunathu...@gmail.com
> >> To: axis-user@ws.apache.org
> >
> >> Here, how you try to use context .and can you provide error trace you
> >> got ? i cant get any clue with supplied details .
> >> > .   ApplicationContext ctx = ApplicationContextHolder.getContext();
> >> I don't think you need to have this line to access SpringContext
> >> explicitly , because "MyServ " is already a Spring manged bean. if you
> >> want to access any other bean inside "MyServ " use Spring injection
> >> instead of access through ApplicationContextHolder.
> >
> >
> >
> >
> > Hi, thanks for the replies.
> >
> > I have an application which I didn't make which uses spring, it has an API
> > which hides the details and preferably I don't add any more stuff to it. The
> > goal is to just use a few of the methods and get returns as normal and not
> > interact directly with spring. I have never used Spring before so my
> > knowledge about the innerworkings is small but if I get the API to work I
> > shouldn't need to either. The springappl needs the context at initiating. I
> > have tested it in a jsp file and it works, but I want to move it to a web
> > service. In the jsp file I had the same context stuff added to the web.xml
> > and this is in the jsp file:
> >
> > MyApplWithSpring  ap = new
> > MyApplWithSpring(WebApplicationContextUtils.getWebApplicationContext(getServletContext()));
> >
> > This worked and I could use some of its methods afterwards.
> > So I thought it would work in the web service as well if I used
> > ApplicationContextHolder.getContext() and used new
> > MyApplWithSpring(ApplicationContextHolder.getContext()). If possible how do
> > I configure spring to use the ApplicationContextHolder so that it isn't
> > null? Or is there any other(/better) way I can do this?
> >
> > -Az.
> >
> 
> So the "springappl" you didn't write requires an ApplicationContext
> reference, even though you are successfully using
> SpringServletContextObjectSupplier that doesn't really require an
> ApplicationContext reference? If so, I'll show you how to do it.
> 
> - R


 

 

At the bottom are the first few lines of the code that works in eclipse. The 
problems arise when wanting to deploy to axis2 and tomcat. The application I am 
making a small wrapper for is very big and complex and the context.xml imports 
several other xml files. The goal of the web service is to receive a string 
from the client, use the application to do some stuff with a file and the 
string as input, then return the results to the client. The application uses 
spring, hibernate etc. 

 

-Az.

 

 

//Create Platform.
ApplicationContext context = new 
RavenAwareClassPathXmlApplicationContext("context.xml");
TavernaBaseProfile profile = new TavernaBaseProfile(context);

//Get workflow parser, load workflow.
WorkflowParser parser = profile.getWorkflowParser();
URL workflowURL = new URL("http://foo.com/workflow.xml";);
Dataflow workflow = parser.createDataflow(workflowURL);


_
Windows Live™ Mail. Flere kontoer på ett sted.
http://download.live.com/wlmail

RE: Axis2 service and spring problem, can't find Spring's ApplicationContext.

2009-04-02 Thread Azazel Se

> From: robertlazar...@gmail.com
> 
> "ApplicationContextHolder.getContext()" isn't needed when using
> SpringServletContextObjectSupplier. If spring and axis2 are working
> together, you are done. You have to configure Spring to use
> ApplicationContextHolder, otherwise it will return null values.
> 
> - R


> From: sagara.gunathu...@gmail.com
> To: axis-user@ws.apache.org


> Here, how you try to use context .and can you provide error trace you
> got ? i cant get any clue with supplied details .
> > .   ApplicationContext ctx = ApplicationContextHolder.getContext();
> I don't think you need to have this line to access SpringContext
> explicitly , because "MyServ " is already a Spring manged bean. if you
> want to access any other bean inside "MyServ " use Spring injection
> instead of access through ApplicationContextHolder.

 

 

 

 

Hi, thanks for the replies.

 

I have an application which I didn't make which uses spring, it has an API 
which hides the details and preferably I don't add any more stuff to it. The 
goal is to just use a few of the methods and get returns as normal and not 
interact directly with spring. I have never used Spring before so my knowledge 
about the innerworkings is small but if I get the API to work I shouldn't need 
to either. The springappl needs the context at initiating. I have tested it in 
a jsp file and it works, but I want to move it to a web service. In the jsp 
file I had the same context stuff added to the web.xml and this is in the jsp 
file:

 

MyApplWithSpring  ap = new 
MyApplWithSpring(WebApplicationContextUtils.getWebApplicationContext(getServletContext()));

 

This worked and I could use some of its methods afterwards.

So I thought it would work in the web service as well if I used 
ApplicationContextHolder.getContext() and used new 
MyApplWithSpring(ApplicationContextHolder.getContext()). If possible how do I 
configure spring to use the ApplicationContextHolder so that it isn't null? Or 
is there any other(/better) way I can do this?

 

-Az.

 

 

 

 

New java class, only added the fourth line and this gives an error since con is 
null:

---

public class MyServ {
 public String serExe() {
  ApplicationContext con = ApplicationContextHolder.getContext();
  MyApplWithSpring ap = new MyApplWithSpring(con);
  return "testWithSpringAppl";
 }
}

 

 

Exception in eclipse when running client:

---

Exception in thread "main" org.apache.axis2.AxisFault: Cannot attach a profile 
to a null context
 at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
 at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
 at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
 at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
 at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
 at xyz.MyServStub.serExe(MyServStub.java:183)
 at xyz.MyServClient.main(MyServClient.java:17)

 

 

Output of Exception at runtime in the tomcat server:

--

ERROR - RPCMessageReceiver.invokeBusinessLogic(157) | Cannot attach a profile to
 a null context
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.jav
a:165)
at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
(RPCMessageReceiver.java:102)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusines
sLogic(AbstractInOutMessageReceiver.java:40)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe
ssageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1
33)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(St

RE: Axis2 service and spring problem, can't find Spring's ApplicationContext.

2009-04-02 Thread Azazel Se

Thanks Sagara.

I actually tried that one first but I didn't know which of the suppliers was 
the correct one so I tried both. In my mail I pasted the exception from 
SpringAppContextAwareObjectSupplier twice by accident. When using 
SpringServletContextObjectSupplier I got a "No bean named 'MyServ' exception, 
but when I added:

 


 

 

to the context.xml file the error went away. So now it deploys and runs without 
errors, I also got the test string back in my ws-client. But later when I tried 
using the context I get from ApplicationContextHolder.getContext() I found that 
it has value null??? Anyone know why?


 

-Az.

 

 

(I have added the information about my files written in my first mail since 
this might be needed to see the new error.)

 

MyServ.java

-

. import org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder;
. import org.springframework.context.ApplicationContext;

. public class MyServ {
.  public String serExe() {
.   ApplicationContext ctx = ApplicationContextHolder.getContext();
.   return "test";
 }
}

 

 

The services.xml:
-


 
  blabla
 
 
org.apache.axis2.extensions.spring.receivers.

SpringServletContextObjectSupplier
   MyServ
   xyz.MyServ

 
  


 
 

Added to rest of the properties etc in the context.xml file:

-







 

 


The web.xml:

http://java.sun.com/dtd/web-app_2_3.dtd"; >
 

 Blabla
 
  AxisServlet
  Apache-Axis Servlet
  
   org.apache.axis2.transport.http.AxisServlet
  
  1
 
 
AxisServlet
/services/*
 
 
 
  contextConfigLocation
  /WEB-INF/context.xml
 
 
  contextClass
  
   ( path of a specific kind of WebApplicationContext class which the 
SpringAppl expects...)
  
 
 
  
   org.springframework.web.context.ContextLoaderListener
  
 


_
Få nye Windows Live™ Messenger.
http://download.live.com/messenger

Axis2 service and spring problem, can't find Spring's ApplicationContext.

2009-04-02 Thread Azazel Se

Hi.

I have added Axis2 and a service to a web application. I tried first with a 
simple echo string method in the service which I have gotten to work. But when 
I add ApplicationContextHolder.getContext() to the method there is an exception 
when the client tries to connect to the web service, and Tomcat shows the error 
can't find Spring's ApplicationContext. When deployed to Tomcat there was no 
errors. I have read about the spring axis2 integration problem and tried 
following the guides (for instance on the apache axis2 site).

 

My goal is to get the context.xml so that I can send it as parameter when 
instantiating an application I want to use which uses spring (  new SpringAppl 
sa = new SpringAppl(ApplicationContextHolder.getContext());  ) and then use a 
couple of methods in that class and return a result to the client using the 
service.

 

Anyone know what I am doing wrong? Exceptions and content of the files I am 
using are pasted below.

 

-Az.

 

 

 

The exceptions: (The first from when I used "springappcontext.." in the 
services.xml and the second when I used the "springappcontext...")

 

Caused by: java.lang.Exception: Axis2 Can't find Spring's ApplicationContext

at org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObj
ectSupplier.getServiceObject(SpringAppContextAwareObjectSupplier.java:53)
... 28 more

---

Caused by: org.apache.axis2.AxisFault: Axis2 Can't find Spring's ApplicationCont
ext
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObj
ectSupplier.getServiceObject(SpringAppContextAwareObjectSupplier.java:63)
... 28 more
Caused by: java.lang.Exception: Axis2 Can't find Spring's ApplicationContext
at org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObj
ectSupplier.getServiceObject(SpringAppContextAwareObjectSupplier.java:53)
... 28 more


 

 

The java class:

---

. package xyz;

. import org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder;
. import org.springframework.context.ApplicationContext;

. public class MyServ {
.  public String serExe() {
.ApplicationContext ctx = ApplicationContextHolder.getContext();
.return "test";
. }
.}

 

 

 

The services.xml:

-



 
  blabla
 
 
org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier
   MyServ
   xyz.MyServ

 
  



 

 

The web.xml:



http://java.sun.com/dtd/web-app_2_3.dtd"; >
 


 Blabla

 
  AxisServlet
  Apache-Axis Servlet
  
   org.apache.axis2.transport.http.AxisServlet
  
  1
 

 
AxisServlet
/services/*
 

 

 
  contextConfigLocation
  /WEB-INF/context.xml
 
 
  contextClass
  
   ( path of a specific kind of WebApplicationContext class which the 
SpringAppl expects...)
  
 
 
  
   org.springframework.web.context.ContextLoaderListener
  
 



_
Ditt liv. Dine ting. Alt på ett sted med Windows Live™.
http://windowslive.no

RE: Adding Axis2 service to existing web application.

2009-04-01 Thread Azazel Se


 

> Date: Wed, 1 Apr 2009 19:09:23 -0300
> Subject: Re: Adding Axis2 service to existing web application.
> From: robertlazar...@gmail.com
> To: axis-user@ws.apache.org
> 
> On Wed, Apr 1, 2009 at 6:13 PM, Azazel Se  wrote:
> >
> > java.lang.ClassNotFoundException: javax.wsdl.xml.WSDLLocator
> > 
> 
> You need that class, the wsdl4j jar that was released with axis2
> should contain one. Try putting that jar in WEB-INF/lib .
> 
> - R

 

Thanks. :)

As mentioned in my mail I added the entire axis2 lib to the maven pom.xml file 
and thought this was enough. But as I added the jar file you mentioned to the 
lib I got another axis2 classnotfoundexception so I manually added all the jars 
to the war file and then it worked. 

 

I am new to maven, why isn't it enough to add the jars to the pom and thereby 
the Maven Dependencies folder/library? I thought this was the purpose for 
dependency, that it everything is copied when using for instance maven package?


-Az.

_
Windows Live™ Mail. Flere kontoer på ett sted.
http://download.live.com/wlmail

Adding Axis2 service to existing web application.

2009-04-01 Thread Azazel Se

I have a working web application and want to add an axis2 service to it.

The aar file I have been testing with is a simple java class with a public 
method which echos a string.

The service is tested and worked in axis2 standalone server and when axis2 is a 
web application in Tomcat (axis2.war).

 

But I cannot get it to work when trying to add the service only through my web 
application.

I have added the aar file to the folder "myApp.war"/WEB-INF/services/ 

It contains:

net/

HelloEcho.class

META-INF/

MANIFEST

services.xml

zzz.wsdl

 

The wsdl is auto-made by java2wsdl and the aar file is made by the service 
archiver codegen in eclipse.

 

I read in an article 
(http://www.developer.com/open/article.php/10930_3777111_2) that it could be 
done by adding the text written at the bottom to the web.xml file in my war 
which I did. I also added a dependency for axis2 (see below).

It deploys without error and the original web application works, but I cannot 
get the service to work. I get the error mentioned at the bottom when trying to 
type in http://localhost:8080/myAppl/services/zzz?wsdl . Actually I get this 
not matter what I write behind the services/ . But zzz is the name of the 
service and what I wrote in the axis2 servers so I guess the error has to do 
with axis2 not being properly configured? The article in the link above 
mentions axis2.xml in a conf/ folder in the WEB-INF, but doesn't say where it 
is from or what it contains..  Do I have to add more dependencies to maven or 
more in the web.xml file? 

Anything I have forgotten or is there an easier way to do what I want?

 

-Az.

 

Web.xml:

   AxisServlet
   Apache-Axis Servlet
   
  org.apache.axis2.transport.http.AxisServlet
   
   1


   AxisServlet
   /services/*
--Pom.xml:
   org.apache.axis2
   axis2
   1.4.1
-Error when trying to check if service is 
deployed/working:javax.servlet.ServletException: Servlet.init() for servlet 
AxisServlet threw exception

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)

root cause java.lang.NoClassDefFoundError: javax/wsdl/xml/WSDLLocator

org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516)
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)

root cause java.lang.ClassNotFoundException: javax.wsdl.xml.WSDLLocator

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516)
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)


_
Ditt liv. Dine ting. Alt på ett sted med Windows Live™.
http://windowslive.no

RE: Spring application made available as a web service through Axis2

2009-03-31 Thread Azazel Se

Hi again.

Everything which has something to do with the spring application, including the 
apllication, are in jars and placed in the WEB-INF/lib folder.

The context xml files are filled with bean id and properties which are used by 
the springapplication. The only thing I need from it I get through the 'main' 
api class. I'm completely new to spring so the idea was to hide it behind a 
thin wrapper.

 

-Joey.

 

> Date: Tue, 31 Mar 2009 17:39:16 -0300
> Subject: Re: Spring application made available as a web service through Axis2
> From: robertlazar...@gmail.com
> To: axis-user@ws.apache.org
> 
> On Tue, Mar 31, 2009 at 5:30 PM, Azazel Se  wrote:
> > SEVERE: Exception sending context initialized event to listener instance of
> > class org.springframework.web.context.ContextLoaderListener
> > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
> > class [--springappl---] for bean with name 'appl.rted.Wpi' defined in
> > ServletContext resource [/WEB-INF/context-parts/basic-profile.xml]; nested
> > exception is java.lang.ClassNotFoundException: net.de.impl.WpiImpl
> > Caused by: java.lang.ClassNotFoundException: net.de.impl.wpiImpl
> 
> Um, maybe put net.de.impl.WpiImpl in WEB_INF/classes or if its in a
> jar, put the jar in WEB_INF/lib ?
> 
> - R


_
Få Windows Live Messenger på mobilen.
http://windowslivemobile.msn.com/Homepage.aspx?lang=nb-no&ocid=30032

RE: Spring application made available as a web service through Axis2

2009-03-31 Thread Azazel Se

Sorry. Yes I have been using the axis guides at the apache site, for instance: 
http://ws.apache.org/axis2/1_3/spring.html

Last two attempts I tried with SpringServletContextObjectSupplier first and 
then SpringAppContextAwareObjectSupplier in the services.xml file.

And tried to get the context into the web service class and instatiated the 
spring application with through org.springframework.context.ApplicationContext 
and the method ApplicationContextHolder.getContext().

I then got the error below.

I've tried a few different layouts. Last times:

 

WEB-INF/
. classes/
..  mApp/

...  myAppl.class
.  context-parts/
..  -several context xml files
.  lib/ 
.. -spring axis etc etc
.  services/ 
.  wSer/
..   services.xml
.  context.xml  (imports from the xml to the context folder)
.  plat.properties
.  web.xml

 

 

org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of 
class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find 
class [--springappl---] for bean with name 'appl.rted.Wpi' defined in 
ServletContext resource [/WEB-INF/context-parts/basic-profile.xml]; nested 
exception is java.lang.ClassNotFoundException: net.de.impl.WpiImpl
Caused by: java.lang.ClassNotFoundException: net.de.impl.wpiImpl
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
 at org.springframework.util.ClassUtils.forName(ClassUtils.java:201)
 at 
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:325)
 at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1033)
 at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:274)
 at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360)
 at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:241)
 at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
 at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
 at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
 at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1247)
 at 
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:604)
 at 
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:129)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
 at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Thread.java:619)
 
> Date: Tue, 31 Mar 2009 17:01:32 -0300
> Subject: Re: Spring application made available as a web service through Axis2
> From: robertlazar...@gmail.com
> To: axis-user@ws.apache.org
> 
> On Tue, Mar 31, 2009 at 4:40 PM, Joey S.  wrote:
> >
> > It works as wanted, but as mentioned I want it available as a web service.
> > Considering all the problems with Spring and Axis2 together what is the
> > easiest way to make a web service out off it? I have used quite some time
> > trying the different stuff from the tutorial, but cannot get it to work.
> >
> > -Joey
> >
> 
> You mean the spring / axis2 tutorial at the axis2 site? If you could
> be more specific than "but cannot get it to work" maybe we can help.
> If you already have spring up, getting it plugged into axis2 isn't
> much harder.
> 
> - R