wood burning stoves*
The moose likes Web Services and the fly likes Problem while Deploy web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem while Deploy web service" Watch "Problem while Deploy web service" New topic
Author

Problem while Deploy web service

Raj Shri
Greenhorn

Joined: May 02, 2010
Posts: 28
Hi All,

Please help me.. I am creating web services. It's about to salt setp. I am getting bellow error when I m going to deploy.

d:\WS-Sample\src>java org.apache.axis.client.AdminClient org\kamal\wssample\ws\g
enerated\deploy.wsdd
log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.
Processing file org\kamal\wssample\ws\generated\deploy.wsdd
Exception: AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (404)Not Found
faultActor:
faultNode:
faultDetail:
{}:return code: 404
<html><head><title>Apache Tomcat/6.0.26 - Error report</tit
le><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;ba
ckground-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;
color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Ari
al,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-f
amily:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-famil
y:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:
Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color :
black;}A.name {color : black;}HR {color : #525D76;}--></style> </hea
d><body><h1>HTTP Status 404 - /axis/services/AdminService</h1&
gt;<HR size="1" noshade="noshade"><p><b>ty
pe</b> Status report</p><p><b>message</b> <u>
;/axis/services/AdminService</u></p><p><b>description<
;/b> <u>The requested resource (/axis/services/AdminService) is not ava
ilable.</u></p><HR size="1" noshade="noshade"
><h3>Apache Tomcat/6.0.26</h3></body></html>
{http://xml.apache.org/axis/}HttpErrorCode:404


Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41877
    
  63
The requested resource (/axis/services/AdminService) is not available.

This is the important part. Is the Axis web app up and happy? Is the AdminService available?


Ping & DNS - my free Android networking tools app
Raj Shri
Greenhorn

Joined: May 02, 2010
Posts: 28
Ulf Dittmer wrote:
The requested resource (/axis/services/AdminService) is not available.

This is the important part. Is the Axis web app up and happy? Is the AdminService available?



First I would like to thanks to you.


Yes I think is available. coz when ever I m write http://localost:8080/axis2/

I am getting a axis page. there is Administration link is coming and i can logged in by admin/axis .

So please can suggest me what I need to do.

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41877
    
  63
In that case, check the Tomcat logs if there is more information. You may also want to turn the access log to see which exact URL is being accessed.
Raj Shri
Greenhorn

Joined: May 02, 2010
Posts: 28
Ulf Dittmer wrote:In that case, check the Tomcat logs if there is more information. You may also want to turn the access log to see which exact URL is being accessed.


Hi,

Thanks,

Now I am doing like this

java org.apache.axis.client.AdminClient org\kamal\wssample\ws\generated\deploy.wsdd -l http://localhost:8080/axis2/axis2-admin/ -u admin -w axis2

and now I am getting another error.

D:\WS-Sample\src>java org.apache.axis.client.AdminClient org\kamal\wssample\ws\g
enerated\deploy.wsdd -l http://localhost:8080/axis2/axis2-admin/ -u admin -w axi
s2
log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.
Processing file org\kamal\wssample\ws\generated\deploy.wsdd
Exception: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Bad envelope tag: html
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Bad en
velope tag: html
at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.
java:71)
at org.apache.axis.encoding.DeserializationContext.startElement(Deserial
izationContext.java:1048)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startEle
ment(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
StartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSCo
ntentDriver.scanRootElementHook(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog
Driver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(Deserialization
Context.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
ava:796)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:1792)
at org.apache.axis.client.AdminClient.process(AdminClient.java:439)
at org.apache.axis.client.AdminClient.process(AdminClient.java:404)
at org.apache.axis.client.AdminClient.process(AdminClient.java:410)
at org.apache.axis.client.AdminClient.process(AdminClient.java:320)
at org.apache.axis.client.AdminClient.main(AdminClient.java:463)


Can you please help me. I checked the tomcat logs but there I did not getting ant error.

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41877
    
  63

That's most likely the wrong URL; check the Axis documentation for how to properly invoke the AdminClient.
vignesh manohar
Greenhorn

Joined: Oct 28, 2009
Posts: 7
Hi.. I am facing a similar kind of problem. I am using eclipse and have jboss server. I am using Axis2 for web service (installed the plug-in).
I dont get any error while creating using bottom up approach.
But when i hit end point, i get 404 error.

As you were telling before, i am not able get admin servlet.
HTTP Status 404 - /WebApp/services/AdminServlet

I am able to understand this problem slightly, but how to resolve this? Please help
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41877
    
  63
As you were telling before, i am not able get admin servlet.
HTTP Status 404 - /WebApp/services/AdminServlet

Is anything configured to listen at this URL? Is Axis running and happy?
cnivas redy
Greenhorn

Joined: Apr 19, 2008
Posts: 17
check your web.xml for Admin servlet mappings and also web-inf/classes check for your admin servlet class. if you dont need admin servlet you can just remove the mappings. in my case the axis plugin was not providing the Admin Servlets. so I used to directly hit the service by typing the entire URL.
try something like http://localhost:8080/<ur web app name>/services/<your service class name>?wsdl --> this will give you the WSDL of your service or
http://localhost:8080/<ur web app name>/services/listServices --> this URL will provide you the list of available services. there if your service is not listed then try debugging your code and jars that you are using.
hope this helps.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem while Deploy web service