Featured post
java - Create web service using Eclipse -
i trying create first webservice using eclipse javaee under axis2, following turorial eclipse tutorial learn how make it.i make webservice when want assure ws has been deployed through viewing through url, http status 400 occure. how can know error?? here make exactly:
- i make settings in preferences [ ant , axis2, tomcat , java ].
- new -> new dynamic web page
- new ->java (i create class want convert ws)
- new ->web service (i want create bottom ws).
- type http://localhost:8080/axis2/services/listservices in url of browser
this return http status 404 - /services/listservices
can 1 tell me how can know error? or how can define it?
edit: exception happen in console of eclipse :
org.apache.axis2.transport.http.axisadminservlet java.lang.classnotfoundexception: org.apache.axis2.transport.http.axisadminservlet
what should ,in configuration specify axis2 , eclipse shows
axis2 runtime loaded
after creating new work space , create webservice again, output appears in console
dec 20, 2010 8:32:04 pm org.apache.catalina.core.aprlifecyclelistener init info: apr based apache tomcat native library allows optimal performance in production environments not found on java.library.path: c:\program files\java\jdk1.6.0_18\bin;.;c:\windows\sun\java\bin;c:\windows\system32;c:\windows;f:/alaa college/year 4/1st semester/advance sw/libraries/eclipse/jre/bin/client;f:/alaa college/year 4/1st semester/advance sw/libraries/eclipse/jre/bin;d:\app\alooosh\product\11.1.0\db_1\bin;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files\java\jdk1.6.0_18\bin;%ant_home%\bin;%axis2_home%\bin;%catalina_home%\bin;c:\program files\matlab\r2008a\bin;c:\program files\matlab\r2008a\bin\win32; dec 20, 2010 8:32:05 pm org.apache.tomcat.util.digester.setpropertiesrule begin warning: [setpropertiesrule]{server/service/engine/host/context} setting property 'source' 'org.eclipse.jst.jee.server:testfirst' did not find matching property. dec 20, 2010 8:32:05 pm org.apache.coyote.http11.http11protocol init info: initializing coyote http/1.1 on http-8080 dec 20, 2010 8:32:05 pm org.apache.catalina.startup.catalina load info: initialization processed in 401 ms dec 20, 2010 8:32:05 pm org.apache.catalina.core.standardservice start info: starting service catalina dec 20, 2010 8:32:05 pm org.apache.catalina.core.standardengine start info: starting servlet engine: apache tomcat/6.0.29 [info] deploying module: addressing-1.4 - file:/d:/eclipseexcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testf irst/web-inf/modules/addressing-1.4.mar [info] deploying module: metadataexchange-1.4 - file:/d:/eclipseexcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testfirst/web-inf/modules/mex-1.4.mar [info] deploying module: ping-1.4 - file:/d:/eclipseexcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testfirst/web-inf/modules/ping-1.4.mar [info] deploying module: script-1.4 - file:/d:/eclipseexcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testfirst/web-inf/modules/scripting-1.4.mar [info] deploying module: smtpfault - file:/d:/eclipseexcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testfirst/web-inf/modules/smtpfault.mar [info] deploying module: soapmonitor-1.4 - file:/d:/eclipseexcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testfirst/web-inf/modules/soapmonitor-1.4.mar [info] deploying web service: converter - file:/d:/eclipseexcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testfirst/web-inf/services/converter/ [info] deploying web service: version.aar - file:/d:/eclipseexcercises/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testfirst/web-inf/services/version.aar dec 20, 2010 8:32:06 pm org.apache.coyote.http11.http11protocol start info: starting coyote http/1.1 on http-8080 dec 20, 2010 8:32:06 pm org.apache.jk.common.channelsocket init info: jk: ajp13 listening on /0.0.0.0:8009 dec 20, 2010 8:32:06 pm org.apache.jk.server.jkmain start info: jk running id=0 time=0/19 config=null dec 20, 2010 8:32:06 pm org.apache.catalina.startup.catalina start info: server startup in 1383 ms
these own post creating webservice , use service in android. work properly.
try once below link
http://lukencode.com/2010/04/27/calling-web-services-in-android-using-httpclient/#comment-179
- Get link
- X
- Other Apps
Comments
Post a Comment