|
|
Re: Cant find my service listed in Axis2 [message #533015 is a reply to message #532973] |
Tue, 11 May 2010 21:05 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
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 #533235 is a reply to message #533015] |
Wed, 12 May 2010 16:13 |
Ron Messages: 3 Registered: May 2010 |
Junior Member |
|
|
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.
A little more information: From the Axis2 home page, the Validate and Services both produce an "internal error" while the Administration link returns "Requested resource not found!"
Do you think there is a setting for the jboss wrong or do you believe the issues may be with the application itself?
And i have seen some similar issues in newsgroups that were solved but adding httpcore-xx.jar and axis2 jars to the classpath. Do you think that will work and how do i do that?
Once again, thank you for your assistance.
Ron
[Updated on: Wed, 12 May 2010 18:29] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02012 seconds