|
|
Re: Cant find my service listed in Axis2 [message #533015 is a reply to message #532973] |
Tue, 11 May 2010 17:05   |
Eclipse User |
|
|
|
This is the type of error you get when a class, or the jar that contains
it, isn't included in a web application at runtime. The "some how" in
"I some how managed to get the correct Axis2" may have caused the jar
containing HttpResponseFactory, and possibly others, not to be included
in your web application.
With the "Axis2 runtime location" specified on the Axis2 Preferences
page, adding the Axis2 Web Services facets should copy the Axis2 jars
into the "WebContent/WEB-INF/lib" folder of your project. These jars
would automatically be included in your web application when run.
Cheers,
Larry
Ron wrote:
> I some how managed to get the correct Axis2 in Eclipse when i "run as
> server" (http://localhost:8080/Axis2BottomUp3/). But when i click on
> Services, i get this error Can someone decipher this?
>
>
> May 11, 2010 2:01:07 PM org.apache.catalina.core.ApplicationContext log
> SEVERE: StandardWrapper.Throwable
> java.lang.NoClassDefFoundError: org/apache/http/HttpResponseFactory
> at org.apache.axis2.transport.http.SimpleHTTPServer.init(Simple
> HTTPServer.java:116)
> at org.apache.axis2.engine.ListenerManager.init(ListenerManager
> .java:74)
> at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet
> .java:449)
> at org.apache.catalina.core.StandardWrapper.loadServlet(Standar
> dWrapper.java:1161)
> at org.apache.catalina.core.StandardWrapper.allocate(StandardWr
> apper.java:806)
> at org.apache.catalina.core.StandardWrapperValve.invoke(Standar
> dWrapperValve.java:129)
> at org.apache.catalina.core.StandardContextValve.invoke(Standar
> dContextValve.java:175)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo
> stValve.java:128)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
> rtValve.java:102)
> at org.apache.catalina.core.StandardEngineValve.invoke(Standard
> EngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd
> apter.java:263)
> at org.apache.coyote.http11.Http11Processor.process(Http11Proce
> ssor.java:844)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand
> ler.process(Http11Protocol.java:584)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin
> t.java:447)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.http.HttpResponseFactory
> at org.apache.catalina.loader.WebappClassLoader.loadClass(Webap
> pClassLoader.java:1358)
> at org.apache.catalina.loader.WebappClassLoader.loadClass(Webap
> pClassLoader.java:1204)
> ... 15 more
> May 11, 2010 2:01:07 PM org.apache.catalina.core.StandardWrapperValve
> invoke
> SEVERE: Allocate exception for servlet AxisServlet
> java.lang.ClassNotFoundException: org.apache.http.HttpResponseFactory
> at org.apache.catalina.loader.WebappClassLoader.loadClass(Webap
> pClassLoader.java:1358)
> at org.apache.catalina.loader.WebappClassLoader.loadClass(Webap
> pClassLoader.java:1204)
> at org.apache.axis2.transport.http.SimpleHTTPServer.init(Simple
> HTTPServer.java:116)
> at org.apache.axis2.engine.ListenerManager.init(ListenerManager
> .java:74)
> at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet
> .java:449)
> at org.apache.catalina.core.StandardWrapper.loadServlet(Standar
> dWrapper.java:1161)
> at org.apache.catalina.core.StandardWrapper.allocate(StandardWr
> apper.java:806)
> at org.apache.catalina.core.StandardWrapperValve.invoke(Standar
> dWrapperValve.java:129)
> at org.apache.catalina.core.StandardContextValve.invoke(Standar
> dContextValve.java:175)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo
> stValve.java:128)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
> rtValve.java:102)
> at org.apache.catalina.core.StandardEngineValve.invoke(Standard
> EngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd
> apter.java:263)
> at org.apache.coyote.http11.Http11Processor.process(Http11Proce
> ssor.java:844)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand
> ler.process(Http11Protocol.java:584)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin
> t.java:447)
> at java.lang.Thread.run(Unknown Source)
>
|
|
|
|
Re: Cant find my service listed in Axis2 [message #533268 is a reply to message #533235] |
Wed, 12 May 2010 15:28  |
Eclipse User |
|
|
|
Ron wrote:
> Thank you Larry.
>
> I have the axis2 runtime set "Axis2 runtime loaded successfully" and
> have the facets checked. So shouldn't the jars be automatically placed
> in the webcontent/web-inf/lib? Or rather, i probably have a setting on
> my server for JBOSS wrong?
>
> Not sure what information to post for help but it looks like the app is
> being deployed to:
> /C:/EnterprisePlatform-5.0.0/jboss-as/server/default/tmp/5c2
> s2s1e-4eb0bc-g932uen5-1-g94cgwd0-a2/Axis2BottomUp3.war
>
> When I look in the war file and under the web-inf\lib directory, i see
> the axis2 jar files are in the directory.
>
> Do you think there is a setting for the jboss wrong or do you believe
> the issues may be with the application itself?
>
> Once again, thank you for your assistance.
>
> Ron
I haven't worked much with web services or Axis2, but if I set my Axis2
runtime to an "axis2-1.3" location, I notice that creating a project
with the Axis2 Web Services facets doesn't include all of the jars from
the "axis2-1.3/lib" folder. I only get 41 of the 60 jars copied to the
project's "WebContent/WEB-INF/lib" folder. One of the jars that is
missing is "httpcore-4.0-alpha5.jar" which is the one that contains the
HttpResponseFactory class. If something similar is happening for you as
well, it would explain your error. You may want to make sure all jars
in your Axis2 "lib" folder are copied to the project's
"WebContent/WEB-INF/lib" folder. I don't know if you really need all of
them, but it looks like you may need more than you have now.
Cheers,
Larry
|
|
|
Powered by
FUDForum. Page generated in 2.01700 seconds