On 17.02.2010 11:28, Robert Maschek wrote:
> Hello,
> Not a lot to do (at least at the moment) for myself.
>
> I reduced the Apache.cls file to just having the ::class statements
> inside with no sucess.
> As soon as I put the ::requires statement in the script Apache crashes
> :-(
>   

Yes, but this does not reveal what the reason is. Maybe you could test,
whether all external methods can be successfully loaded in "Apache.cls"
. To do so you could try to run the following program to test. It will
list all external methods as found in "Apache.cls" and whether it is
possible to load them as external methods into ooRexx (in the output
sucess=1=.true, failure=0=.false):

    /* ---rgf, 2010-02-17, test availability of external mod_ooRexx-methods */

       externalMethodArray=.array~new
       externalMethodArray~append("LIBRARY mod_oorexx WWWNewReqRec")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecConnection")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecServer")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecNext")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecPrev")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecMain")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecIsMain")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecThe_request")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecProxyreq")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecHeader_only")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecProtocol")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecStatus_line")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecStatus")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecMethod")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecMethod_number")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecAllowed")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecBytes_sent")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecHeader_in")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecHeader_out")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecErr_header_out")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecSubprocess_env")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecNotes")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecContent_type")
       externalMethodArray~append("LIBRARY mod_oorexx 
WWWReqRecContent_encoding")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecHandler")
       externalMethodArray~append("LIBRARY mod_oorexx 
WWWReqRecContent_languages")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecNo_cache")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecUri")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecFilename")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecPath_info")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecArgs")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecFinfo_stmode")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecUser")
       externalMethodArray~append("LIBRARY mod_oorexx WWWReqRecAuth_type")
       externalMethodArray~append("LIBRARY mod_oorexx WWWNewSrvRec")
       externalMethodArray~append("LIBRARY mod_oorexx WWWSrvRecServer_admin")
       externalMethodArray~append("LIBRARY mod_oorexx WWWSrvRecServer_hostname")
       externalMethodArray~append("LIBRARY mod_oorexx WWWSrvRecPort")
       externalMethodArray~append("LIBRARY mod_oorexx WWWSrvRecIs_virtual")
       externalMethodArray~append("LIBRARY mod_oorexx WWWNewCnxRec")
       externalMethodArray~append("LIBRARY mod_oorexx WWWCnxRecAborted")

       say "testloading external methods:"
       do descriptor over externalMethodArray~sortWith(.CaselessComparator~new)
          parse var descriptor . . externalEntryName '"'
          say "  " pp(externalEntryName) testExternalMethodLoading(descriptor)
       end

    ::routine testExternalMethodLoading
      parse arg descriptor
      return .method~loadExternalMethod("testMethod", descriptor)<>.nil


    ::routine pp      -- "pretty-print"
      parse arg value
      return ("[" || value || "] ")~left(30, ".")
      

If you run the above program all loaded external methods should show
"1", if they all could be loaded.

HTH,

---rony



Ok, now we have something to go on.
>> It appears that Mod_ooRexx is loaded and functional. You get output
>> and at least some of the external function interfaces are working.
>> The problem is with the oo methods. This may take some time to debug
>> from your end but here are the steps to go with.
>>
>> The following will determine if any of the oo method calls are not 
>> loading (this is what I believe the problem is):
>>
>> 1. In the Apache.cls file comment out ALL of the external method 
>> definitions. Now add the ::requires statement back into you script
>> and retest. Proceed to the next step if your script succeeds.
>> 2. Repeat this step as often as necessary. Uncomment a small section
>> od the method definitions in the Apache.cls file and retest. We will
>> repeat until we find all the offending statement(s).
>>
>> What I hope you can figure out is which methods are NOT linking 
>> dynamically at script startup (if any). This will give me a starting 
>> point for me to try and debug things at my end.
>>
>> Thanks,
>> David Ashley
>>
>> ----------------------------------------------------------------------
>> -------- SOLARIS 10 is the OS for Data Centers - provides features
>> such as DTrace, Predictive Self Healing and Award Winning ZFS. Get
>> Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev
>>     

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to