Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem running Apache axis

 
igwe kalu kalu ogba
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I've installed Apache AXIS on my system but I am having one problem. My programs compile but each time I try to run them I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service

Any ideas on how to fix this?
Thanks.
 
sergio mendez-rueda
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
after the installation you must copy the directory
YourAXIS-Home/webapps/axis
into (by example!!) C:\Programme\Tomcat5.0\webapps
(axis runs as wepapps!!) yue need an application server (T:-)Cat)?
if you are working with resin:
into C:\Programme\resin-3.0.12\webapps
On the box:
this is my batch file to start tomcat and axis:
rem begin of file setJava.bat
@echo off
@rem -----------------------------------------
@rem setJava.bat
@rem
@rem Sets up the Java environment
@rem by adding the correct java files for JDK Ver 1.4.2_04
@rem to the PATH
@rem ant environment will be initialized
@rem Xalan environment will be initialized
@rem xerces environment will be initialized
@rem junit environment will be initialized
@rem tomcat environment will be initialized
@rem -----------------------------------------
set CATALINA_HOME=C:\Programme\Tomcat5.0
set CATALINA_BASE=C:\Programme\Tomcat5.0
set JAVA_HOME=D:\Programme\j2sdk1.4.2_04
set JUNIT_HOME=D:\Programme\XerTom\junit3.8.1
set PATH=%JAVA_HOME%\bin;%PATH%
set CLASSPATH=%JAVA_HOME%\lib\tools.jar
set ANT_HOME=D:\Programme\apache-ant-1.6.2
set PATH=%ANT_HOME%\bin;%JUNIT_HOME%;%PATH%
set CLASSPATH=.;D:\Programme\XerTom\xerces-2_2_0\xercesImpl.jar;%CLASSPATH%
set CLASSPATH=C:\Sun\AppServer\lib\j2ee.jar;%CLASSPATH%
set CLASSPATH=%CLASSPATH%;D:\Programme\XerTom\xalan-j_2_4_1\bin\xalan.jar
set CLASSPATH=%CLASSPATH%;D:\Programme\XerTom\xalan-j_2_4_1\bin\xml-apis.jar
set CLASSPATH=%CLASSPATH%;D:\Programme\XerTom\xalan-j_2_4_1\bin\xalansamples.jar
set CLASSPATH=%CLASSPATH%;D:\Programme\XerTom\xalan-j_2_4_1\bin\xalanservlet.jar
set CLASSPATH=%CLASSPATH%;%JUNIT_HOME%\junit.jar
set CLASSPATH=%CLASSPATH%;D:\Programme\jndi\lib\fscontext.jar
set CLASSPATH=%CLASSPATH%;D:\Programme\jndi\lib\providerutil.jar
set AXISCLASSPATH=D:\Programme\axis-1_1\lib\axis.jar
set AXISCLASSPATH=%AXISCLASSPATH%;D:\Programme\axis-1_1\lib\axis-ant.jar
set AXISCLASSPATH=%AXISCLASSPATH%;D:\Programme\axis-1_1\lib\commons-discovery.jar
set AXISCLASSPATH=%AXISCLASSPATH%;D:\Programme\axis-1_1\lib\commons-logging.jar
set AXISCLASSPATH=%AXISCLASSPATH%;D:\Programme\axis-1_1\lib\jaxrpc.jar
set AXISCLASSPATH=%AXISCLASSPATH%;D:\Programme\axis-1_1\lib\log4j-1.2.8.jar
set AXISCLASSPATH=%AXISCLASSPATH%;D:\Programme\axis-1_1\lib\saaj.jar
set AXISCLASSPATH=%AXISCLASSPATH%;D:\Programme\axis-1_1\lib\wsdl4j.jar
@rem call %CATALINA_HOME%\bin\startup.bat
@rem end of file setJava.bat
You need perhaps only the set AXISCLASSPATH's
enjoy AXIS
ser
 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My programs compile but each time I try to run them I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service


Just have a look into axis documentation files. Firstly go through install.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic