Hi Dan,
you are absolutely right except that this doesn't work when running Tomcat as an NT service in Windows. I haven't yet figured out where the service gets its settings (like classpaths) from, until I find that out copying the jar was the easiest solution. Thanks anyway, this will surely help others having the same problem. NB: Wouldn't it be wise to mention this problem (+solution) in the User Guide on the AXIS website? -Tako > -----Original Message----- > From: Daniel Chisholm [mailto:[EMAIL PROTECTED]] > Sent: woensdag 1 mei 2002 18:59 > To: [EMAIL PROTECTED] > Subject: Re: Can't get it running > > > Tako, > > I noticed that you offered the following suggestion. > > "...copy the jaxrpc.jar (the one from xml-axis/lib) to > Tomcat's common/lib > directory." > > That fix worked for me when I tried to run the Axis examples > on Tomcat 4.0.3 > using the 1.4 version of Java. Later, however, I found a better fix > described on a Sun web page. > > http://developer.java.sun.com/developer/technicalArticles/WebS > ervices/wsj2ee > / > > "Note: The system property java.endorsed.dirs specifies one > or more directories where the Java runtime environment searches > for JAR files. You must set this system property only when > running J2EE SDK 1.3.x on the J2SDK 1.4." > > Of course, J2EE SDK 1.3.x uses Tomcat. > > I set the java.endorsed.dirs system variable in the > %CATALINA_HOME%\bin\setclasspath.bat file. Of course, UNIX > users should use > setclasspath.sh > > The setclasspath.bat file already contained a line that sets the > java.endorsed.dirs argument. I just added the > axis\WEB-INF\lib directory. > The new line is as shown below. > > rem Set the default -Djava.endorsed.dirs argument > set > JAVA_ENDORSED_DIRS=%BASEDIR%\bin;%BASEDIR%\common\lib;%BASEDIR > %\webapps\axis > \WEB-INF\lib > > Dan > > ----- Original Message ----- > From: "Tako Schotanus" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, May 01, 2002 1:56 AM > Subject: RE: Can't get it running > > > > The first check you can make is: > > 1. install Tomcat > 2. copy the webapps/axis directory to Tomcat's webapps directory > 3. go to http://localhost:8080/axis > > Do you get a page with a message from AXIS? > > If so at least your Tomcat installation is working correctly. > > Second check: > > 1. go to http://localhost:8080/axis/StockQuoteService.jws > > Do you get a message saying that you'ce accessed an AXIS service? > > If so.... I have no idea what your problem could be :-) > If not, copy the jaxrpc.jar (the one from xml-axis/lib) to Tomcat's > common/lib directory. > > Now restart Tomcat and try the second check again. Hopefully > it works now. > > -Tako > > > > -----Original Message----- > > From: LuckyLuke [mailto:[EMAIL PROTECTED]] > > Sent: woensdag 1 mei 2002 2:52 > > To: [EMAIL PROTECTED] > > Subject: Can't get it running > > > > > > Hi there! > > > > I really don't know what I'm doing wrong. I've no practice > > with tomcat (or > > java) but I got the examples to work. > > Now I installed the latest version of Axis and tried to follow the > > installation-instructions. I got to Step 4, don't think > that I really > > understood Step 5 but thougt, that Step 6 (the test) should > > run anyway - it > > didn't. > > > > Then I tried to use the really very simple Example > > "Calculator.jws". It also > > doesen't work. Here what the tomcat-logfile says... > > > > 2002-05-01 02:34:31 - Ctx( /axis ): Exception in: R( /axis + > > /Calculator.jws > > + null) - java.lang.NoSuchMethodError > > at > > org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocume > > nt.java:106) > > at > > org.apache.axis.configuration.FileProvider.configureEngine(Fil > eProvider.java > > :209) > > at org.apache.axis.AxisEngine.init(AxisEngine.java:173) > > at org.apache.axis.AxisEngine.<init>(AxisEngine.java:158) > > at > > org.apache.axis.server.AxisServer.<init>(AxisServer.java:121) > > at > > org.apache.axis.server.DefaultAxisServerFactory.createNewServe > > r(DefaultAxisS > > erverFactory.java:155) > > at > > org.apache.axis.server.DefaultAxisServerFactory.getServer(Defa > ultAxisServerF > > actory.java:93) > > at > > org.apache.axis.server.AxisServer.getServer(AxisServer.java:105) > > at > > org.apache.axis.transport.http.AxisServlet.getEngine(AxisServl > et.java:202) > > at > > org.apache.axis.transport.http.AxisServlet.getEngine(AxisServl > et.java:166) > > at > > > org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:215) > > at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > > at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at > > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java) > > at org.apache.tomcat.core.Handler.service(Handler.java) > > at > > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java) > > at > > org.apache.tomcat.core.ContextManager.internalService(ContextM > anager.java) > > at > > org.apache.tomcat.core.ContextManager.service(ContextManager.java) > > at > > org.apache.tomcat.service.http.HttpConnectionHandler.processCo > > nnection(HttpC > > onnectionHandler.java) > > at > > > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java) > > at > > > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java) > > at java.lang.Thread.run(Thread.java:484) > > > > Maybe I have some problem with my CLASSPATH and/or any other > > requirements. > > My CLASSPATH looks like this at the moment: > > > > CLASSPATH=/opt/jakarta/webapps/axis/WEB-INF/lib/axis.jar:/opt/ > jakarta/webapp > > s/axis/WEB-INF/lib/commons-logging.jar:/opt/jakarta/webapps/ax > is/WEB-INF/lib > > /log4j-core.jar:/opt/jakarta/webapps/axis/WEB-INF/lib/tt-bytec > ode.jar:/opt/j > > akarta/webapps/axis/WEB-INF/lib/jaxrpc.jar:/opt/jakarta/webapp > s/axis/WEB-INF > > /lib/jaxp.jar:/opt/jakarta/webapps/axis/WEB-INF/lib/crimson.ja > r:/opt/jakarta > > /webapps/axis:/home/harald/download/xml-axis-beta2:. > > > > I don't know if I need everything there and I don't know if I > > need something > > else. > > > > I really would like to understand that all, maybe it's not > > much that I'm > > doing wrong? > > > > Any help is welcome. > > > > > > Yours, > > > > Luke. > > > > > > >
