The problem seems to be in the creation of the service object.
This can happen due to couple of reasons:
   - the service DLL cannot be located
   - the service DLL is there, but is corrupted
In case the service DLL is currupted, can you please ensure that you re-compile and link to the new libs that you created with the new compiler options.

Samisa...
[EMAIL PROTECTED] wrote:
hello users,

when I compile the echo service with '/FORCE:MULTIPLE',
deploy the echo.dll, start axis2_http_server.exe
(debug command in project-settings) and go to a
commandline to start the echo client, the server crashed.
When i compile the dll as RELEASE the axis2_http_server.exe
crash, with DEBUG the Error is (transl. ger->en):

unknown exception at 0x00633ad8 (axis2_engine.dll) in axis2_http_server.exe:
0xC0000005: access violation when reading
at position 0x00000000.

the debugger stops in 'msg_recv.c' in the function
'axis2_msg_recv_make_new_svc_obj' when it tries to
init with AXIS2_SVC_SKELETON_INIT((axis2_svc_skeleton_t *)impl_class, env);

the output is :

exception (1st try) at 0x00633ad8 (axis2_engine.dll) in axis2_http_server.exe:
0xC0000005: access violation when reading
at position 0x00000000.
unhandled exception bei 0x00633ad8 (axis2_engine.dll) in axis2_http_server.exe:
0xC0000005: access violation when reading
at position 0x00000000.

'impl_class' is 0x00000000 (seems to be the problem here)
'env' seems to be correct

2 line above in 'msg_recv.c' :
impl_class = axutil_class_loader_create_dll(env, impl_info_param);
axis2_svc_set_impl_class(svc, env, impl_class);

'svc' and 'impl_info_param' seems to be ok.

ok, this happened, when i used '/TP' and '/FORCE:MULTIPLE'.
when i only used '/TC' everthing works fine.

what happens, when you use '/TP' ? did you get the LNK2005
_axutil_error_messages already defined in echo.obj or not?
what happens when you use '/TP' and '/FORCE:MULTIPLE', no crash ?

mh, i am at a loss with this prob, seems that i am stumped,
i am grateful for any advice what else could lead to this
problem.

thx derMark


[EMAIL PROTECTED] schrieb:
Hello Mark,

What you mean with server crash (what is the error)? Yes of course my Server
is running.
Regards Lars

-----Original Message-----
From: Mark Nüßler [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 10. Mai 2007 17:08
To: Apache AXIS C User List
Subject: Re: LNK2005 axutil_error_messages

hello users, hello lars,

if have used '/FORCE:MULTIPLE' or '/FORCE' and
can build the dll, but this dll's crashes the
axis2_http_server.exe, so this is no good solution ;-)
When you compile with /FORCE:MULTIPLE didn't your
server crash ?

thx + mfg derMark


[EMAIL PROTECTED] schrieb:
I have solved the problem with /FORCE:MULTIPLE

Regards Lars

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 10. Mai 2007 14:24
To: [email protected]
Subject: Re: LNK2005 axutil_error_messages

Hello users, hello Samisa,

i took the echo-sample, with /TC there is no prob, i can compile, deploy, run
-
but with /TP not. Both times I use /MDd.

the error is :

'echo_skeleton.obj : error LNK2005: _axutil_error_messages already defined in
echo.obj'

Here is the begin of the build process, i've used '/VERBOSE' to see more
information.

1>------ Erstellen gestartet: Projekt: echo, Konfiguration: Debug Win32
------
1>Kompilieren...
1>echo.c
1>echo_skeleton.c
1>Code wird generiert...
1>Verknüpfen...
1>Durchlauf 1 gestartet
1>/DEFAULTLIB:MSVCRTD wurde verarbeitet.
1>/DEFAULTLIB:OLDNAMES wurde verarbeitet.
1>echo_skeleton.obj : error LNK2005: _axutil_error_messages ist bereits in
echo.obj definiert.
1>Bibliotheken werden durchsucht.
1>    Durchsuchen von ../../../lib/axiom.lib:
1>      [EMAIL PROTECTED] gefunden.
1>        In "echo.obj" referenziert
1>        "axiom.lib(axiom.dll)" geladen


thx 4 your time

mfg derMark




hello users,

same issue again, i've downloaded the current svn-version (Revision 536815),
compiled it, set the enviroment vars, etc.

my system(s) : WinXP, vs2003 + vs2005

The problem with 'error LNK2005: _axutil_error_messages already defined'
appears, when i compile any sample as C++ (/TP), not as C (/TC).

Does it say where it was already defined? Please send the full error.

Samisa...


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Samisa Abeysinghe : http://www.bloglines.com/blog/samisa


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to