axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yair Zaslavsky" <y...@imagine-com.com>
Subject RE: Axis can't find my xerces library
Date Thu, 08 Jun 2006 15:36:28 GMT
Hi Adrian,
Yes, I succeeded building with Xerces v2.7.0 - but I got errors (during
runtime) indicating that this is an incompatible version.
I then saw that I should have built with v2.2.0 - and then I failed to
perform the build (and of course, the Axis build failed as well).
I also took a look at the opened tar.gz file of xerces v2.2.0 - it
includes a build guide, which is almost the same as the one of v2.7.0. I
repeated my test to build xerces 2.2.0 separately and failed again (with
the same errors).
Any idea what can be wrong?

Yair





-----Original Message-----
From: Adrian Dick [mailto:adrian.dick@uk.ibm.com] 
Sent: Thursday, June 08, 2006 6:24 PM
To: Apache AXIS C User List
Subject: RE: Axis can't find my xerces library

Hi,

When Axis-C is built it is linked with a dependency on the version of
Xerces-C present while building.
This means, if you build against Xerces-C v2.2.0 then you will need
Xerces-C v2.2.0 available when running Axis-C.

I'm surprised you're able to build Axis-C, when Xerces-C v2.2.0 failed
to
build -- but presumably that means it managed to build the artefacts
required by Axis-C ( which is actually a surprisingly small subset of
the
Xerces-C objects).

Have you tried re-building Axis-C using your successful Xerces-C v2.7.0
build?   And then also running with that version?


Regards,
Adrian
_______________________________________
Adrian Dick (adrian.dick@uk.ibm.com)


"Yair Zaslavsky" <yair@imagine-com.com> wrote on 08/06/2006 15:42:43:

> Good day Adrian (and all),
> I'm compiling Axis C- 1.6B with Xerces-C 2.2.0.
> I fail to build Xerces-C 2.2.0
> I tried building (as experiment) Xerces-C 2.7.0 (without building axis
-
> just to see I undertstand how to build xerces) and succeeded, and
> provided an error log.
> Can you tell me what I'm doing wrong?
> Can you elaborate more about the "built time" and "run time" versions
of
> xerces - I didn't fully understand this issue.
> Thanks
> Yair
>
>
>
> -----Original Message-----
> From: Adrian Dick [mailto:adrian.dick@uk.ibm.com]
> Sent: Thursday, June 08, 2006 5:37 PM
> To: Apache AXIS C User List
> Subject: RE: Axis can't find my xerces library
>
> Hi,
>
> So, you're saying that you're trying to use Axis-C 1.6b with Xerces-C
> 2.7.0
> ?
> If this is the case and assuming you're using using the binary
> distribution
> of Axis-C you will have problems, as this was built against Xerces-C
> 2.2.0
> (hence not finding the correct library).
>
> My initial reaction is to suggest building Axis-C from source against
> your
> desired version of Xerces-C --- we've found it doesn't particularly
> matter
> which version you use, as long as it is the same version and build
time
> and
> runtime.
> Alternatively, you may also wish to try a recent nightly build, which
I
> believe uses Xerces-C 2.6.0  (as the highest level compatible with the
> compilers across our build machines).
>
> Regards,
> Adrian
> _______________________________________
> Adrian Dick (adrian.dick@uk.ibm.com)
>
>
> "Yair Zaslavsky" <yair@imagine-com.com> wrote on 08/06/2006 15:13:20:
>
> > As explained in previous emails, I am trying to compile axis on
> > linux 64bit machine.
> > I downloaded xerces c++ 2.2.0 for that.
> > Apache's xerces instructions are for 2.7.0. I tried building xerces
> > c++ 2.2.0 with these versions, but in vein.
> > I tried budiling xerces c++ 2.7.0 with the instructions and
succeeded.
> >
> > Here is my xerces-c-root environment variable value:
> > echo $XERCESCROOT
> > /home/yair/xerces-c-src2_2_0/xerces-c-src2_2_0/
> >
> > I ran:
> > autoconf
> > ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative
-rpthread
> -b64
> > gmake
> >
> >
> > In file included from /home/yair/xerces-c-src2_2_0/xerces-c-
> > src2_2_0//include/xercesc/util/RefArrayVectorOf.hpp:30,
> >                  from XMLString.cpp:74:
> > /home/yair/xerces-c-src2_2_0/xerces-c-
> > src2_2_0//include/xercesc/util/RefArrayVectorOf.c: In destructor
> > `xercesc_2_2::RefArrayVectorOf<TElem>::~RefArrayVectorOf()':
> > /home/yair/xerces-c-src2_2_0/xerces-c-
> > src2_2_0//include/xercesc/util/RefArrayVectorOf.c:21: error:
> > `fAdoptedElems' undeclared (first use this function)
> > /home/yair/xerces-c-src2_2_0/xerces-c-
> > src2_2_0//include/xercesc/util/RefArrayVectorOf.c:21: error: (Each
> > undeclared identifier is reported only once for each function it
> appears
> in.)
> > /home/yair/xerces-c-src2_2_0/xerces-c-
> > src2_2_0//include/xercesc/util/RefArrayVectorOf.c:23: error:
> > `fCurCount' undeclared (first use this function)
> > /home/yair/xerces-c-src2_2_0/xerces-c-
> > src2_2_0//include/xercesc/util/RefArrayVectorOf.c:24: error:
> > `fElemList' undeclared (first use this function)
> > gmake[1]: *** [XMLString.o] Error 1
> > gmake[1]: Leaving directory `/home/yair/xerces-c-src2_2_0/xerces-c-
> > src2_2_0/src/xercesc/util'
> >
> >
> >
> > Without this, I cannot use axis.
> > Any help is appreciated.
> >
> >
> >
> > From: John Hawkins [mailto:HAWKINSJ@uk.ibm.com]
> > Sent: Wednesday, June 07, 2006 5:49 PM
> > To: Apache AXIS C User List
> > Subject: RE: Axis can't find my xerces library
> >
> >
> > I'm going to guess that you don't have correct versions of xerces in
> > your lib path and readable
> >
>
> >
> > "Yair Zaslavsky" <yair@imagine-com.com>
> > 07/06/2006 15:03
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org>
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org>
> >
> > cc
> >
> >
> >
> > Subject
> >
> > RE: Axis can't find my xerces library
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > I performed the rename (libaxis_xerces.so -> libaxis_xmlparser.so ),
> > and now I get the following error:
> >
> > terminate called after throwing an instance of 'std::logic_error'
> >   what():  basic_string::_S_construct NULL not valid
> >
> >
> > I did use both runtime tracing and startup tracing, but I do not see
> > log files, so it's hard for me to provide more info:
> >
> > The startup tracing is set using the envrioment variable:
> > AXISCPP_STARTUP_TRACE and set it /home/yair/axis_startup.log
> > At the axiscpp.conf file I added the following line:
> > LogPath:/home/yair/axis_runtime.log
> >
> > Do you have any ideas for the cause of the error?
> >
> > Thanks
> >
> > Yair
> >
> >
> >
> >
> > the names are wrong - you need the libaxis_xerces - you'll have to
> > rename it in the axiscppconf file (or rename the axis_xerces lib to
> > the one that simpleaxisserver is looking for.)
> > It's not clear to me but it looks like you might not have set
> > axiscpp_deploy correctly because the conf file below is correct.
>
> >
> > "Yair Zaslavsky" <yair@imagine-com.com>
> > 07/06/2006 14:22
> >
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org>
> >
> >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org>
> >
> > cc
> >
> >
> >
> > Subject
> >
> > RE: Axis can't find my xerces library
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > You are correct John, thanks!
> > I compiled xerces 2.2 on my machine(64bit)
> > And I have also built axis , however, when I run the simple server,
> > it cannot find the libaxis_xml_parser.so library.
> >
> > I looked at the "lib" directory both of the binary distribution I
> > downloaded, and both of the version I built and packaged and I
> > cannot see such a shared object. Where do I obtain it?
> >
> >
> > So you've taken the axis bins from the site? This could be an issue
> > with 32 bit  (what the bins are built on) v 64 bit (what you might
> > have built xerces with)
> >
> > Other than that this should just be a simple case of ensuring libs
> > are readable and in the right places.
> >
> > It would appear you are reading the axis_parser libs OK because it's
> > them that have the dependency on the xerces lib. I would try to
> > write a simple program to load the xerces lib in the same way we
> > load them in axis (see the src in axis3/transport).
>
> >
> > "Yair Zaslavsky" <yair@imagine-com.com>
> > 07/06/2006 13:17
> >
> >
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org>
> >
> >
> >
> >
> > To
> >
> > <axis-c-user@ws.apache.org>
> >
> > cc
> >
> >
> >
> > Subject
> >
> > Axis can't find my xerces library
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > I downloaded xerces-c 2.2.0, and built it.
> > I downloaded the axis distribution for linux (our machine is 64 bit,
> > little endian, and we're running redhat).
> > When I try to run the axis simple server it fails to locate the
> > xerces library - libxerces-c.so.22
> >
> > Here is  additional information agbout the configuration, I just
> > cant see what I'm doing wrong ...
> >
> > echo $XERCESCROOT
> > /home/yair/xerces-c-src2_2_0/xerces-c-src2_2_0
> >
> > echo $XERCESHOME
> > /home/yair/xerces-c-src2_2_0/xerces-c-src2_2_0
> >
> > echo $LD_LIBRARY_PATH
> > :/home/yair/xerces-c-src2_2_0/xerces-c-src2_2_0/lib:
> > /home/yair/axis_bin/axis-c-linux-current-bin/axis-c-1.6b-Linux-
> > trace-bin/lib:/home/yair/axis_bin/axis-c-linux-current-bin/axis-c-1.
> > 6b-Linux-trace-bin/lib/axis
> >
> > echo $AXISCPP_DEPLOY
> >
>
/home/yair/axis_bin/axis-c-linux-current-bin/axis-c-1.6b-Linux-trace-bin
> >
> >
> > more axisconf.deploy
> > # Path to server trace log path (only required if you want server
> trace)
> > LogPath:/home/yair/axis_server.log
> >
> > # Path to HTTP Transport library
> > Transport_http:/home/yair/axis_bin/axis-c-linux-current-bin/axis-
> > c-1.6b-Linux-trace-bin/lib/axis/libhttp_transport.so
> >
> > # Path to Axis XML Parser library
> > XMLParser:/home/yair/axis_bin/axis-c-linux-current-bin/axis-c-1.6b-
> > Linux-trace-bin/lib/axis/libaxis_xerces.so
> >
> > A part of the startup log , showing the exception:
> >
> >
> > [07/06/2006 15:09:46:214 IDT] 4159387328 AxisEngineException >
> > getMessageForExceptionCode @0xffffcef0,29
> > [07/06/2006 15:09:46:214 IDT] 4159387328 AxisEngineException <
> > getMessageForExceptionCode @0xffffcef0,"DLOPEN FAILED in loading
> > parser library"
> > [07/06/2006 15:09:46:214 IDT] 4159387328 AxisEngineException >
> > getMessageForExceptionCode @0xffffcef0,29
> > [07/06/2006 15:09:46:214 IDT] 4159387328 AxisEngineException <
> > getMessageForExceptionCode @0xffffcef0,"DLOPEN FAILED in loading
> > parser library"
> > [07/06/2006 15:09:46:214 IDT] 4159387328 AxisEngineException <
> > AxisEngineException @0xffffcef0
> > [07/06/2006 15:09:46:214 IDT] 4159387328 AxisEngineException >
> > AxisEngineException @0x8058760,------------>
> > [07/06/2006 15:09:46:214 IDT] 4159387328 - I AxisException(_,
> > "DLOPEN FAILED in loading parser library DLOPEN FAILED in loading
> > parser library Failed to load parser within server engine:
> > [07/06/2006 15:09:46:214 IDT] 4159387328 - I                  Error
> > Message='Success'                Error Code='0'
> > [07/06/2006 15:09:46:214 IDT] 4159387328 - I                  Load
> > lib error='libxerces-c.so.22: cannot open shared object file: No
> > such file or directory'
> > [07/06/2006 15:09:46:214 IDT] 4159387328 - I ")
> > [07/06/2006 15:09:46:214 IDT] 4159387328 AxisEngineException <
> > AxisEngineException @0x8058760
> > [07/06/2006 15:09:46:214 IDT] 4159387328 AxisEngineException >
> > ~AxisEngineException @0xffffcef0
> > [07/06/2006 15:09:46:214 IDT] 4159387328 AxisEngineException <
> > ~AxisEngineException @0xffffcef0
> > [07/06/2006 15:09:46:214 IDT] 4159387328 AxisEngineException >
> > ~AxisEngineException @0x8058408
> > [07/06/2006 15:09:46:214 IDT] 4159387328 AxisEngineException <
> > ~AxisEngineException @0x8058408
> > [07/06/2006 15:09:46:214 IDT] 4159387328 - X initialize_module @3
> caught
> "..."
> >
> >
> > I would really appreciate if someone can help me,
> >
> > Thanks
> >
> > Yair
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message