Thanks to the respondents.  I was using the Axis alpha2,
so that wasn't the problem, nor was the location of the jars.
I finally figured  out the problem with more fiddling, and
TCPMon proved beneficial as well.

The rather mundane source of my troubles was that I had
executed run-tomcat.bat by double-clicking on it in the
Windows Explorer, instead of operating from a command
prompt and changing to the BWS examples directory,and
from there executing .\bin\run-tomcat.bat (as the
install.html instructions actually do explicitly say ...

except for the command shell bit! mea culpa ...).
As a result, apparently setenv.bat set EXAMPLES_HOME
to the wrong directory (one too deep), and from there
of course everything went downhill, including the fact
that I couldn't deploy properly!

I've now written myself a little batch file run-examples.bat,
whose contents are as follows, with appropriate corresponding

mods to run-tomcat.bat and setenv.bat to make use of BWS_HOME.
This way, I can either run run-examples.bat from the command
line, or double-click on it in the Explorer, with equal success:

===============================================================
@echo off
setlocal ENABLEDELAYEDEXPANSION

if not "%BWS_HOME%"=="" goto gotBwsHome
set /P BWS_HOME="Please input BWS_HOME here> "
:gotBwsHome

echo BWS_HOME=%BWS_HOME%

REM set BWS_HOME="C:\XML_Books\Building_Web_Services_with_Java"
call %BWS_HOME%\examples\bin\run-tomcat.bat

endlocal

===============================================================

Hope this helps someone else avoid the easy pitfall!

Best regards,

  -- Ivan



"Michael Joyner" <[EMAIL PROTECTED]>

01/31/2002 03:51 PM
Please respond to axis-user

       
        To:        <[EMAIL PROTECTED]>
        cc:        
        Subject:        Re: trouble with "Building Web Services" ch3 ex2: please help!



I had problems like that with 3.2.4 working with the jars in the mywebapp_location/WEB-INF/lib. In Tomcat 4, it worked properly. I moved them to Tomcat's [TOMCAT_HOME]/lib, and it worked with 3.2.
----- Original Message -----
From: Ivan Filippenko
To: [EMAIL PROTECTED]
Sent: Wednesday, January 30, 2002 6:03 PM
Subject: trouble with "Building Web Services" ch3 ex2: please help!


Hi,


I'm having trouble running Chapter 3 Example 2 from the otherwise

very good book "Building Web Services with Java", and since I'm

new at this it's hard to figure out where the problem is.  I've setup

Tomcat 3.2.4 and the examples according to the book's example

installation instructions.  Up to that point, all examples work properly.

However, when I press the "Check inventory" button on that example,

I get a
java.lang.Exception: Null response message!,
the first part of which is reproduced further on below.


It's true that during example deployment, I got this rather strange

message from Axis, which I don't know whether it's an indication

of a real problem or not (and if so, what is it?):


Axis status messages:

Processing file: C:\Tomcat\jakarta-tomcat-3.2.4\webapps\bws\resources\deploy.xml
Null response message!
Doing a list
Null response message!


Axis deployment response:

null

Axis deployment listing:

null


Please help.  I think this book will be very useful to me for learning

about Web Services, but if this basic example doesn't run, I'm stymied.

I followed the instructions precisely, and therefore had the expectation

that the examples would work correctly, out of the box!

Oh yeah, I'm using JDK 1.3.1_02.  Many thanks!  -- Ivan


Error: 500

Location: /bws/ch3/ex2/index.jsp

Internal Servlet Error:

AxisFault
faultCode: http://xml.apache.org/axis/:Server.generalException
faultString: java.lang.Exception: Null response message!
               at org.apache.axis.client.ServiceClient.invoke(ServiceClient.java:582)
               at org.apache.axis.client.ServiceClient.invoke(ServiceClient.java:494)
               at ch3.ex2.InventoryCheckClient.doCheck(InventoryCheckClient.java:27)
               at ch_00033.ex_00032._0002fch_00033_0002fex_00032_0002findex_0002ejspindex_jsp_0._jspService(_0002fch_00033_0002fex_00032_0002findex_0002ejspindex_jsp_0.java:127)
               at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)


Reply via email to