You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Hanno Fietz <ha...@theuprightape.net> on 2005/09/09 17:15:01 UTC

Apache says 404 on calling http://localhost/axis, all libraries found, simple_axis_server and base do work

I am looking for hints on the following issue:

I have installed Axis 1.5.0 with xerces 2.2.0 and Apache 2.0.48. The box
is running SuSE 9.0. The Apache installation has a path layout which is
different from that assumed in most documentations, especially the
config file layout is different. I symlinked all files in
$AXISCPP_DEPLOY/lib and $XERCESC_HOME/lib to /usr/local/lib, which is in
my LD_LIBRARY_PATH as well as in ld.so.conf.

On starting Apache, I get no errors whatsoever. No Axis log file is
created (yes - the log path named in axiscpp.conf exists and is
writeable). All paths to libraries etc seem correct. I can run
"simple_axis_server" without errors and "base" seems to be able to talk
to it OK (3 times "invoking echoString", no errors).
"run_interoptests.sh" and other scripts were not included in the
distribution (which I got from the main dist site).

Now: If I run "base" without arguments, I get an HttpNotFound exception,
the browser gives me Apache's 404 error page. All comments I could find
on the web advise me to double-check all library paths, which I did
about ten times. To be absolutely sure, I ran "strace -f -e
trace=open,read" on the Apache startup script and could see all Axis
files (libxerces and the like) being opened and read from with no
problems. There were some files that could not be opened, but apparently
(from their names and paths) they have nothing to do with Axis.

I have no idea as to how to get more information on what isn't working.
Downgrading to 1.4.0 did not solve the issue.

Any suggestions?

Thanks
Hanno

-- 
------------------------------------------------------------
"A fly can't bird but a bird can fly
  Ask me a riddle and I will reply:
  Cottleston, Cottleston, Cottleston Pie"
  - A Great Western Taoist -



Re: Apache says 404 on calling http://localhost/axis, all libraries found, simple_axis_server and base do work

Posted by Samisa Abeysinghe <sa...@gmail.com>.
On 9/12/05, Hanno Fietz <ha...@theuprightape.net> wrote:
> Samisa,
> 
> I just tried the following procedure:
> - install Apache 2.0.54 manually
> - listen on port 8080
> - insert LoadModule and SetHandler directives into httpd.conf according
> to Axis installation manual
> - changed _nothing_ with the Axis configuration
> - start Apache
> 
> ... and it works!
> 
> So apparently, the problem must be one of
>     a) Apache version (tried with 2.0.48 so far)
>     b) unusual path layout of pre-installed Apache
> 
> I would place my bet on b), what do you think? Is there any way to find
> out what exactly Axis doesn't like about different Apache path layouts?
> Is there a way to get it working with different layouts? When I'm going
> to install Axis on our productive system, I'm dealing with four servers
> with pre-installed Apaches, all readily configured and running. I would
> very much like to avoid reinstalling and reconfiguring everything, just
> to get Axis working.

I too think that it would be b) most probably. May be you have to re
build Axis against 2.0.48 apache version header files and it would
work.
So if you know the pre-installed apache version, please try rebuilding
against the header files of that perticualr version.

Thanks,
Samisa...

> 
> Thank you
> Hanno
> 
> --
> ------------------------------------------------------------
>  "A fly can't bird but a bird can fly
>   Ask me a riddle and I will reply:
>   Cottleston, Cottleston, Cottleston Pie"
>   - The Tao of Pooh -
> 
>

Re: Apache says 404 on calling http://localhost/axis, all libraries found, simple_axis_server and base do work

Posted by Hanno Fietz <ha...@theuprightape.net>.
Samisa,

I just tried the following procedure:
- install Apache 2.0.54 manually
- listen on port 8080
- insert LoadModule and SetHandler directives into httpd.conf according 
to Axis installation manual
- changed _nothing_ with the Axis configuration
- start Apache

... and it works!

So apparently, the problem must be one of
    a) Apache version (tried with 2.0.48 so far)
    b) unusual path layout of pre-installed Apache

I would place my bet on b), what do you think? Is there any way to find 
out what exactly Axis doesn't like about different Apache path layouts? 
Is there a way to get it working with different layouts? When I'm going 
to install Axis on our productive system, I'm dealing with four servers 
with pre-installed Apaches, all readily configured and running. I would 
very much like to avoid reinstalling and reconfiguring everything, just 
to get Axis working.

Thank you
Hanno

-- 
------------------------------------------------------------
 "A fly can't bird but a bird can fly
  Ask me a riddle and I will reply:
  Cottleston, Cottleston, Cottleston Pie"
  - The Tao of Pooh -


Re: Apache says 404 on calling http://localhost/axis, all libraries found, simple_axis_server and base do work

Posted by Samisa Abeysinghe <sa...@gmail.com>.
On 9/12/05, Hanno Fietz <ha...@theuprightape.net> wrote:
>  Samisa,
>  
>  thank you very much for your reply.
>  
>  Samisa Abeysinghe wrote: 
>  Did you have a look into httpd's error log? Sometimes it may tell you
> why it is giving you the 404 message.
> Also, the welsome page is at http://localhost/axis/ (note the trailing '/')
>  
>  Apache log just gives me "No such file or directory", as if it was ignoring
> the "SetHandler" directive for "<Location /axis>". However, it isn't
> ignoring it: when I replace "SetHandler axis" with "SetHandler
> server-status", I get the Apache status page for http://localhost/axis. If I
> put in "SetHandler no-such-handler", I get the same result as with "axis".
>  
>  I tried the URL with and without the trailing "/". Also, the "base" program
> in $AXISCPP_DEPLOY/bin probably uses the correct path and it, too, gets a
> 404 error ("HttpTransport exception: HttpNotFound").
>  
>  I am rather sure I can rule out the following: Apache malfunction, lib
> paths not found, wrong URL. Can you think of any other possible
> configuration error etc? The Apache setup has a different path layout than
> most standard installations, modules are in /usr/lib/apache, configuration
> is in /etc/apache etc, rather than having everything in /usr/local/apache.
> Do you think that could influence Axis? As mentioned before, when I do an
> strace of Apache and its child processes, it seems as if all files can be
> found and are successfully opened and read from.
>  
>  To have the logging going, please try enable trace.
>  
>  Which logging are you referring to? How do I "enable trace"?

I am referring to Axis C++ logging.
Please see http://ws.apache.org/axis/cpp/antbuild-guide.html on how to
enable while building.

>  
>  
>  I have no idea as to how to get more information on what isn't working.
> Downgrading to 1.4.0 did not solve the issue.
>  
>  I would propose that you use latest code from cvs, or a nightly build
> because 1.4 has many bugs that are resolved by now.
>  I just downgraded to 1.4.0 temporarily, to see if it would make a
> difference. Meanwhile, I'm back on 1.5.0 (the main binary distribution).
>  
>  Do you think it might help to build Axis myself?

Yes I hope so.

Thanks,
Samisa...

> 
>  
>  Thanks
>  Hanno
>  -- 
> ------------------------------------------------------------
>  "A fly can't bird but a bird can fly
>  Ask me a riddle and I will reply:
>  Cottleston, Cottleston, Cottleston Pie"
>  - A Great Western Taoist -
> 
>

Re: Apache says 404 on calling http://localhost/axis, all libraries found, simple_axis_server and base do work

Posted by Hanno Fietz <ha...@theuprightape.net>.
Samisa,

thank you very much for your reply.

Samisa Abeysinghe wrote:

>Did you have a look into httpd's error log? Sometimes it may tell you
>why it is giving you the 404 message.
>Also, the welsome page is at http://localhost/axis/ (note the trailing '/')
>  
>
Apache log just gives me "No such file or directory", as if it was 
ignoring the "SetHandler" directive for "<Location /axis>". However, it 
isn't ignoring it: when I replace "SetHandler axis" with "SetHandler 
server-status", I get the Apache status page for http://localhost/axis. 
If I put in "SetHandler no-such-handler", I get the same result as with 
"axis".

I tried the URL with and without the trailing "/". Also, the "base" 
program in $AXISCPP_DEPLOY/bin probably uses the correct path and it, 
too, gets a 404 error ("HttpTransport exception: HttpNotFound").

I am rather sure I can rule out the following: Apache malfunction, lib 
paths not found, wrong URL. Can you think of any other possible 
configuration error etc? The Apache setup has a different path layout 
than most standard installations, modules are in /usr/lib/apache, 
configuration is in /etc/apache etc, rather than having everything in 
/usr/local/apache. Do you think that could influence Axis? As mentioned 
before, when I do an strace of Apache and its child processes, it seems 
as if all files can be found and are successfully opened and read from.

>To have the logging going, please try enable trace.
>  
>
Which logging are you referring to? How do I "enable trace"?

>>I have no idea as to how to get more information on what isn't working.
>>Downgrading to 1.4.0 did not solve the issue.
>>    
>>
>
>I would propose that you use latest code from cvs, or a nightly build
>because 1.4 has many bugs that are resolved by now.
>
I just downgraded to 1.4.0 temporarily, to see if it would make a 
difference. Meanwhile, I'm back on 1.5.0 (the main binary distribution).

Do you think it might help to build Axis myself?

Thanks
Hanno

-- 
------------------------------------------------------------
 "A fly can't bird but a bird can fly
  Ask me a riddle and I will reply:
  Cottleston, Cottleston, Cottleston Pie"
  - A Great Western Taoist -


Re: Apache says 404 on calling http://localhost/axis, all libraries found, simple_axis_server and base do work

Posted by Samisa Abeysinghe <sa...@gmail.com>.
On 9/9/05, Hanno Fietz <ha...@theuprightape.net> wrote:
> I am looking for hints on the following issue:
> 
> I have installed Axis 1.5.0 with xerces 2.2.0 and Apache 2.0.48. The box
> is running SuSE 9.0. The Apache installation has a path layout which is
> different from that assumed in most documentations, especially the
> config file layout is different. I symlinked all files in
> $AXISCPP_DEPLOY/lib and $XERCESC_HOME/lib to /usr/local/lib, which is in
> my LD_LIBRARY_PATH as well as in ld.so.conf.
> 
> On starting Apache, I get no errors whatsoever. No Axis log file is
> created (yes - the log path named in axiscpp.conf exists and is
> writeable). All paths to libraries etc seem correct. I can run
> "simple_axis_server" without errors and "base" seems to be able to talk
> to it OK (3 times "invoking echoString", no errors).
> "run_interoptests.sh" and other scripts were not included in the
> distribution (which I got from the main dist site).

> 
> Now: If I run "base" without arguments, I get an HttpNotFound exception,
> the browser gives me Apache's 404 error page. All comments I could find
> on the web advise me to double-check all library paths, which I did
> about ten times. To be absolutely sure, I ran "strace -f -e
> trace=open,read" on the Apache startup script and could see all Axis
> files (libxerces and the like) being opened and read from with no
> problems. There were some files that could not be opened, but apparently
> (from their names and paths) they have nothing to do with Axis.

Did you have a look into httpd's error log? Sometimes it may tell you
why it is giving you the 404 message.
Also, the welsome page is at http://localhost/axis/ (note the trailing '/')

To have the logging going, please try enable trace.

> 
> I have no idea as to how to get more information on what isn't working.
> Downgrading to 1.4.0 did not solve the issue.

I would propose that you use latest code from cvs, or a nightly build
because 1.4 has many bugs that are resolved by now.

Thanks,
Samisa...

> 
> Any suggestions?
> 
> Thanks
> Hanno
> 
> --
> ------------------------------------------------------------
> "A fly can't bird but a bird can fly
>   Ask me a riddle and I will reply:
>   Cottleston, Cottleston, Cottleston Pie"
>   - A Great Western Taoist -
> 
> 
>