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 Michael Sutter <Mi...@ipe.fzk.de> on 2007/12/17 17:22:29 UTC

apache module with SVN version

Hello list,

I checked out the SVN version and built it with apache2 daemon. After 
compiling I copied the libmod_axis2.so to apache module folder and 
changed the configuration of the module in /etc/apache2/httpd.conf.local 
to my current version:

LoadModule axis2_module /usr/lib/apache2-prefork/mod_axis2.so
Axis2RepoPath /home/auger/axis2c-1.2.0/
Axis2LogFile /tmp/axis2.log
Axis2LogLevel trace
# possible values: AXIS2_LOG_LEVEL_DEBUG AXIS2_LOG_LEVEL_TRACE
#Axis2LogLevel AXIS2_LOG_LEVEL_TRACE
<Location /axis2>
    SetHandler axis2_module
</Location>

After that I restarted the apache server and want to access it with a 
client. The problem is, that I directly get a Segmentation fault when 
accessing the service. In the log file /tmp/axis2.log is only one line:
[Mon Dec 17 13:10:25 2007] [info]  [Axis2] Axis2 worker created
But there must be much more as I used trace log level.

The client is working without problems with the axis_simple_server. I 
only changed the port for the apache server in it. Also I was using the 
apache module in version 1.1 without problems. Have I done something 
wrong or could it be a error in the module?

BTW im using apache 2.0.49 with gcc 3.3.3 but I also tried it with gcc 
4.1 - the same problem. I attached the log file of my client. It would 
be nice if anybody could help me.

Kind regards
Michael




Re: apache module with SVN version

Posted by Lahiru Gunathilake <la...@wso2.com>.
On Tue, 2007-12-18 at 14:29 +0530, Dinesh Premalal wrote:
> 
>         The problem I think is that the options are not mentioned on
>         the webpage 
>         for configuration of http daemon
>         (http://ws.apache.org/axis2/c/docs/axis2c_manual.html#mod_axis2)
	I did the modifications in this manual today mentioning about the
Axis2MaxLogFileSize and Axis2GlobalPoolSize.

>          - 

>         or I
>         simply wasn't able to find them. It would be nice to put them
>         on the 
>         page to solve further questions with the daemon configuration.
> 
> +1 , I think we should mentions new values that need to include in
> httpd.conf  in the axis2c manual. 
> 
> 
> thanks,
> Dinesh
> 
> -- 
> Dinesh Premalal
> http://xydinesh.wordpress.com
Regs
lahiru


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


Re: apache module with SVN version

Posted by Dinesh Premalal <xy...@gmail.com>.
> The problem I think is that the options are not mentioned on the webpage
> for configuration of http daemon
> (http://ws.apache.org/axis2/c/docs/axis2c_manual.html#mod_axis2) - or I
> simply wasn't able to find them. It would be nice to put them on the
> page to solve further questions with the daemon configuration.
>

+1 , I think we should mentions new values that need to include in
httpd.conf  in the axis2c manual.

thanks,
Dinesh

-- 
Dinesh Premalal
http://xydinesh.wordpress.com

Re: apache module with SVN version

Posted by Michael Sutter <Mi...@ipe.fzk.de>.
Hello,

with your help I found the problem. If I don't have the
Axis2GlobalPoolSize 10
Axis2MaxLogFileSize 10
in my httpd.conf I got two log files /tmp/axis.log and 
/tmp/axis.log.old. Both with only one line of log messages. When I 
change the permissions of both files so that the user running the http 
daemon can write into it everything works fine.

When I put the options into the httpd.conf everything works fine without 
changing the permissions to the /tmp/axis.log. Then I also get only one 
log file. As I understand right the options are for a shared memory for 
logging.

The problem I think is that the options are not mentioned on the webpage 
for configuration of http daemon 
(http://ws.apache.org/axis2/c/docs/axis2c_manual.html#mod_axis2) - or I 
simply wasn't able to find them. It would be nice to put them on the 
page to solve further questions with the daemon configuration.

Regards Michael

Samisa Abeysinghe wrote:
> I had a look and this must be due to your log file /tmp/axis2.log not 
> having write permissions.
>
> Please check.
>
> Samisa...
>
> Samisa Abeysinghe wrote:
>> Dinesh Premalal wrote:
>>> Hi Michael,
>>>
>>> Michael Sutter <Mi...@ipe.fzk.de> writes:
>>>  
>>>> LoadModule axis2_module /usr/lib/apache2-prefork/mod_axis2.so
>>>> Axis2RepoPath /home/auger/axis2c-1.2.0/
>>>> Axis2LogFile /tmp/axis2.log
>>>> Axis2LogLevel trace
>>>> # possible values: AXIS2_LOG_LEVEL_DEBUG AXIS2_LOG_LEVEL_TRACE
>>>> #Axis2LogLevel AXIS2_LOG_LEVEL_TRACE
>>>> <Location /axis2>
>>>>    SetHandler axis2_module
>>>> </Location>
>>>>
>>>> After that I restarted the apache server and want to access it with a
>>>> client. The problem is, that I directly get a Segmentation fault when
>>>> accessing the service. In the log file /tmp/axis2.log is only one
>>>> line:
>>>> [Mon Dec 17 13:10:25 2007] [info]  [Axis2] Axis2 worker created
>>>> But there must be much more as I used trace log level.
>>>>     
>>>
>>> I think you have missed some of the httpd.conf values here which
>>> introduced recently.
>>> Axis2GlobalPoolSize 10
>>> Axis2MaxLogFileSize 10
>>>
>>> that may cause the segmentation fault. If it is the cause, Please
>>> raise a jira issue.
>>>   
>>
>> That is not supposed to cause seg faults :(
>>
>> Samisa...
>>> thanks,
>>> Dinesh
>>>
>>> ---------------------------------------------------------------------
>>> 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
>

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


Re: apache module with SVN version

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Samisa Abeysinghe wrote:
> I had a look and this must be due to your log file /tmp/axis2.log not 
> having write permissions.

This bug was fixed. You may try with the latest svn.

Samisa...


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


Re: apache module with SVN version

Posted by Samisa Abeysinghe <sa...@wso2.com>.
I had a look and this must be due to your log file /tmp/axis2.log not 
having write permissions.

Please check.

Samisa...

Samisa Abeysinghe wrote:
> Dinesh Premalal wrote:
>> Hi Michael,
>>
>> Michael Sutter <Mi...@ipe.fzk.de> writes:
>>  
>>> LoadModule axis2_module /usr/lib/apache2-prefork/mod_axis2.so
>>> Axis2RepoPath /home/auger/axis2c-1.2.0/
>>> Axis2LogFile /tmp/axis2.log
>>> Axis2LogLevel trace
>>> # possible values: AXIS2_LOG_LEVEL_DEBUG AXIS2_LOG_LEVEL_TRACE
>>> #Axis2LogLevel AXIS2_LOG_LEVEL_TRACE
>>> <Location /axis2>
>>>    SetHandler axis2_module
>>> </Location>
>>>
>>> After that I restarted the apache server and want to access it with a
>>> client. The problem is, that I directly get a Segmentation fault when
>>> accessing the service. In the log file /tmp/axis2.log is only one
>>> line:
>>> [Mon Dec 17 13:10:25 2007] [info]  [Axis2] Axis2 worker created
>>> But there must be much more as I used trace log level.
>>>     
>>
>> I think you have missed some of the httpd.conf values here which
>> introduced recently.
>> Axis2GlobalPoolSize 10
>> Axis2MaxLogFileSize 10
>>
>> that may cause the segmentation fault. If it is the cause, Please
>> raise a jira issue.
>>   
>
> That is not supposed to cause seg faults :(
>
> Samisa...
>> thanks,
>> Dinesh
>>
>> ---------------------------------------------------------------------
>> 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


Re: apache module with SVN version

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Dinesh Premalal wrote:
> Hi Michael,
>
> Michael Sutter <Mi...@ipe.fzk.de> writes:
>   
>> LoadModule axis2_module /usr/lib/apache2-prefork/mod_axis2.so
>> Axis2RepoPath /home/auger/axis2c-1.2.0/
>> Axis2LogFile /tmp/axis2.log
>> Axis2LogLevel trace
>> # possible values: AXIS2_LOG_LEVEL_DEBUG AXIS2_LOG_LEVEL_TRACE
>> #Axis2LogLevel AXIS2_LOG_LEVEL_TRACE
>> <Location /axis2>
>>    SetHandler axis2_module
>> </Location>
>>
>> After that I restarted the apache server and want to access it with a
>> client. The problem is, that I directly get a Segmentation fault when
>> accessing the service. In the log file /tmp/axis2.log is only one
>> line:
>> [Mon Dec 17 13:10:25 2007] [info]  [Axis2] Axis2 worker created
>> But there must be much more as I used trace log level.
>>     
>
> I think you have missed some of the httpd.conf values here which
> introduced recently. 
>
> Axis2GlobalPoolSize 10
> Axis2MaxLogFileSize 10
>
> that may cause the segmentation fault. If it is the cause, Please
> raise a jira issue.
>   

That is not supposed to cause seg faults :(

Samisa...
> thanks,
> Dinesh
>
> ---------------------------------------------------------------------
> 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


Re: apache module with SVN version

Posted by Dinesh Premalal <xy...@gmail.com>.
Hi Michael,

Michael Sutter <Mi...@ipe.fzk.de> writes:
> LoadModule axis2_module /usr/lib/apache2-prefork/mod_axis2.so
> Axis2RepoPath /home/auger/axis2c-1.2.0/
> Axis2LogFile /tmp/axis2.log
> Axis2LogLevel trace
> # possible values: AXIS2_LOG_LEVEL_DEBUG AXIS2_LOG_LEVEL_TRACE
> #Axis2LogLevel AXIS2_LOG_LEVEL_TRACE
> <Location /axis2>
>    SetHandler axis2_module
> </Location>
>
> After that I restarted the apache server and want to access it with a
> client. The problem is, that I directly get a Segmentation fault when
> accessing the service. In the log file /tmp/axis2.log is only one
> line:
> [Mon Dec 17 13:10:25 2007] [info]  [Axis2] Axis2 worker created
> But there must be much more as I used trace log level.

I think you have missed some of the httpd.conf values here which
introduced recently. 

Axis2GlobalPoolSize 10
Axis2MaxLogFileSize 10

that may cause the segmentation fault. If it is the cause, Please
raise a jira issue.

thanks,
Dinesh

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