it must be either under WEB-INF/classes or in a jar in webapp's classpath
Jai
-----Original Message-----
From: Suzy Fynes [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 3:28 AM
To: [EMAIL PROTECTED]
Subject: RE: deploying web service with database class import

Havent set the class path to point to those files should i? as in, in .bashrc where I have classpath = to all the jars of axis have it also point to those classes?

 

-----Original Message-----
From: THOMAS, JAI [AG-Contractor/1000] [mailto:[EMAIL PROTECTED]
Sent:
30 September 2004 20:16
To: '[EMAIL PROTECTED]'
Subject: RE: deploying web service with database class import

 

Are these classes ie.DataManagerException and ie.DataManager in the webapp's class path?

 

 -----Original Message-----
From: Suzy Fynes [mailto:[EMAIL PROTECTED]
Sent:
Thursday, September 30, 2004 1:14 PM
To: [EMAIL PROTECTED]
Subject: RE: deploying web service with database class import

Hey,

 

I’m having trouble importing the two classes (that I created as part of the project)  I’m getting the following error. If anyone can help please do!

 

Thanks

 

AXIS error

Sorry, something seems to have gone wrong... here are the details:

Fault - Error while compiling:  /usr/local/jakarta-tomcat-5.0.27/webapps/axis/WEB-INF/jwsClasses/InitialisationTest.java

 
AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.compileError
 faultSubcode: 
 faultString: Error while compiling:  /usr/local/jakarta-tomcat-5.0.27/webapps/axis/WEB-INF/jwsClasses/InitialisationTest.java
 faultActor: 
 faultNode: 
 faultDetail: 
   {}Errors: Error compiling /usr/local/jakarta-tomcat-5.0.27/webapps/axis/WEB-INF/jwsClasses/InitialisationTest.java:
Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
/usr/local/jakarta-tomcat-5.0.27/webapps/axis/WEB-INF/jwsClasses/InitialisationTest.java:4: Class ie.DataManager not found in import.
import ie.DataManager;
       ^
 
Line 5, column 7:  Class ie.DataManagerException not found in import.
Line 6, column 7:  Class ie.DataManagerFactory not found in import.
Line 0, column 0: 
3 errors, 1 warning
 

 

 

-----Original Message-----
From: Tami Wright [mailto:[EMAIL PROTECTED]
Sent:
30 September 2004 18:09
To: [EMAIL PROTECTED]
Subject: RE: deploying web service with database class import

 

In your web.xml of your web-app add this:

 

<servlet>
      <servlet-name>axis</servlet-name>
      <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
  </servlet>
  <servlet-mapping>
      <servlet-name>axis</servlet-name>
      <url-pattern>/ws/*</url-pattern>
  </servlet-mapping>

 

Make sure that the axis webapp (that comes with the Axis tar/zip when you download and extract) is under your "webapps" directory of your appserver.  Also, ensure that all the axis jars and axis' dependency jars are under the $APPSERVERHOME/common/lib directory (this is  more specific to Tomcat, so make sure the jars are where your appserver can find them when it loads itself up upon start or restart).  You don't have to port anything to axis but the object you want to axis-ize.  You should be able to continue to access your database if your using straight jdbc.  Make sure to package all axis jars and dependency jars with your war, too.  (Just to ensure your web service can find everything it needs to run correctly.)

 

If you have any other questions, let me know.  There are some intermediary steps that I didn't touch on as far as turning an object into a axis web-service is concerned.  (Like generating a WSDL, then changing it to what you really want; generating stubs/deploy.wsdd with wsdl2java then putting your server-config.wsdd under the $APPROOT/WEB-INF directory, etc.)  I'm starting my own blog here in the next day or two, and I'm going to post a series of blogs called "The Axis/Web-service Interop Files".  As soon as it is up, if your interested I'll let you know.

 

Tami

 


From: Suzy Fynes [mailto:[EMAIL PROTECTED]
Sent:
Thursday, September 30, 2004 10:57 AM
To: [EMAIL PROTECTED]
Subject: deploying web service with database class import

Hi,

 

I want to deploy my java class as a web service. If this class imports 3 other classes from my project do I need to deploy them too? Also one of these classes accesses a mysql database on the server, will this effect the deployment?

 

Thanks

Suzy

 

Reply via email to