Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Cant find my service listed in Axis2(Cant find my service listed in Axis2)
Cant find my service listed in Axis2 [message #532874] Tue, 11 May 2010 12:38 Go to next message
Ron  is currently offline Ron Friend
Messages: 3
Registered: May 2010
Junior Member
I am going through the bottom up web service sample ( http://www.eclipse.org/webtools/community/tutorials/BottomUp Axis2WebService/bu_tutorial.html) and i thought it was going well until the last step where I select the project (a dynamic web porject) and "Run On Server". A window in Eclipse opens up and give me a 404 error with the URL being "http://localhost:8080/Axis2TestBottomUp/" From the same window, i can navigate to "http://localhost:8080/axis2/services/listServices" and it will list services but on the Version one and not my webservice.

When i created the service using the converter class and the wizard, i used "JBoss V5.0 at localhost" as my server and Axis2 as my runtime.

I can see where Eclipse drops the EAR file in the deploy directory.

I am obviously a noob so any help is appreciated.

Ron
Re: Cant find my service listed in Axis2 [message #532973 is a reply to message #532874] Tue, 11 May 2010 18:02 Go to previous messageGo to next message
Ron  is currently offline Ron Friend
Messages: 3
Registered: May 2010
Junior Member
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 #533015 is a reply to message #532973] Tue, 11 May 2010 21:05 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
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 Go to previous messageGo to next message
Ron  is currently offline Ron Friend
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

Re: Cant find my service listed in Axis2 [message #533268 is a reply to message #533235] Wed, 12 May 2010 19:28 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
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
Previous Topic:Occasional server start-up error
Next Topic:Re: JavaScript highlighting in CDATA content
Goto Forum:
  


Current Time: Fri Apr 19 16:27:13 GMT 2024

Powered by FUDForum. Page generated in 0.02012 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top