aspose file tools
The moose likes Web Services and the fly likes deploy web service Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "deploy web service" Watch "deploy web service" New topic
Author

deploy web service

feda alshahwan
Ranch Hand

Joined: Jul 26, 2008
Posts: 170
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

Joined: Jan 10, 2002
Posts: 56221
    
  13

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 ]

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
feda alshahwan
Ranch Hand

Joined: Jul 26, 2008
Posts: 170
Ok I am sorry but can someone help me?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56221
    
  13

Looks like you need activation.jar and mail.jar.
[ August 03, 2008: Message edited by: Bear Bibeault ]
feda alshahwan
Ranch Hand

Joined: Jul 26, 2008
Posts: 170
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
Marshal

Joined: Mar 22, 2005
Posts: 35253
    
    7
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 ]

Android appsImageJ pluginsJava web charts
feda alshahwan
Ranch Hand

Joined: Jul 26, 2008
Posts: 170
There are many service.xml files how can I know which one belongs to my web service?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35253
    
    7
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

Joined: Jul 26, 2008
Posts: 170
Dear
There is no Meta-Inf directory I created the package using NetBeans.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35253
    
    7
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: deploy web service
 
Similar Threads
Package doesnot exist
Ant error on trying to run an taskdef
Exception in thread main
Problems with Axis 1.0 and wsdl2java
can't generate java from wsdl file please help!