• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deploy web service

 
feda alshahwan
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I installed Axis with tomcat,I created a small web service and created deployement file when I tried to execute it I got the following:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Program Files\Java\jdk1.5.0_16\bin>java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient %AXIS_HOME%\WEB-INF\lib\deploy.wsdd
- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
Processing file C:\TOMCAT50-JWSDP\TOMCAT50-JWSDP\WEBAPPS\AXIS\WEB-INF\lib\deploy.wsdd
Exception: C:\TOMCAT50-JWSDP\TOMCAT50-JWSDP\WEBAPPS\AXIS\WEB-INF\lib\deploy.wsdd
(The system cannot find the file specified)

C:\Program Files\Java\jdk1.5.0_16\bin>


CAN YOU HELP ME SOLVING THE PROBLEM?
[ August 02, 2008: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by feda alshahwan:
CAN YOU HELP ME SOLVING THE PROBLEM?
Please read this for information regarding posting in all uppercase. I have adjusted the title topic for you.
[ August 02, 2008: Message edited by: Bear Bibeault ]
 
feda alshahwan
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I am sorry but can someone help me?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you need activation.jar and mail.jar.
[ August 03, 2008: Message edited by: Bear Bibeault ]
 
feda alshahwan
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After I deployed the service and access the server I got the following error:

And now... Some Services
AXIS error
Sorry, something seems to have gone wrong... here are the details:

Fault - Could not find class for the service named: C:\tomcat50-jwsdp\tomcat50-jwsdp\webapps\axis\WEB-INF\classes\SilverService
Hint: you may need to copy your class files/tree into the right location (which depends on the servlet system you are using).; nested exception is:
java.lang.ClassNotFoundException: C:\tomcat50-jwsdp\tomcat50-jwsdp\webapps\axis\WEB-INF\classes\SilverService
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: Could not find class for the service named: C:\tomcat50-jwsdp\tomcat50-jwsdp\webapps\axis\WEB-INF\classes\SilverService
Hint: you may need to copy your class files/tree into the right location (which depends on the servlet system you are using).; nested exception is:
java.lang.ClassNotFoundException: C:\tomcat50-jwsdp\tomcat50-jwsdp\webapps\axis\WEB-INF\classes\SilverService
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:moon-
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the value of the ServiceClass attribute in the service.xml file?

Is there a file C:\tomcat50-jwsdp\tomcat50-jwsdp\webapps\axis\WEB-INF\classes\SilverService.class? If so, is the class in a package?
[ August 04, 2008: Message edited by: Ulf Dittmer ]
 
feda alshahwan
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are many service.xml files how can I know which one belongs to my web service?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The one in the META-INF directory of your service. Are you deploying the service using an *.aar file, or using an exploded directory structure?
 
feda alshahwan
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear
There is no Meta-Inf directory I created the package using NetBeans.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should read http://ws.apache.org/axis2/1_4/quickstartguide.html#create on how to create and deploy services with Axis. NetBeans may hide the fact that a services.xml is involved, but Axis sure needs one.

That's why I don't recommend using an IDE for developing WS - they hide too many of the details that you really need to understand in order to successfully develop and deploy WS.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic