You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Suzy Fynes <su...@sentenial.ie> on 2004/10/01 10:28:18 UTC

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:jai.thomas@monsanto.com] 
Sent: 30 September 2004 20:16
To: 'axis-user@ws.apache.org'
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:suzanne.fynes@sentenial.ie]
Sent: Thursday, September 30, 2004 1:14 PM
To: axis-user@ws.apache.org
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/Initial
isationTest.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/Initial
isationTest.java
 faultActor: 
 faultNode: 
 faultDetail: 
   {}Errors: Error compiling
/usr/local/jakarta-tomcat-5.0.27/webapps/axis/WEB-INF/jwsClasses/Initial
isationTest.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/Initial
isationTest.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:ttwright@myfamilyinc.com] 
Sent: 30 September 2004 18:09
To: axis-user@ws.apache.org
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:suzanne.fynes@sentenial.ie] 
Sent: Thursday, September 30, 2004 10:57 AM
To: axis-user@ws.apache.org
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