[JK2] Some questions
Hola, isapi_redirector2.dll has started to load and log this night :) and is giving me a beautiful NPE when trying the ajp13 connector from tc33, it's suppoused to work, ? i have some caveats about the way the default logger logs by default ;), the code is trying printf to stderr, what can i do? into IIS there is no stderr to log to by default, i'll need to readd the register keys for default logger file and log level :(, It seems to me rather messy because i will need to override and/or ignore those properties setted in the wk2.p file, to, at least, be consistent and to have only one place to configure log.. ANother Caveat is the serverRoot property, there is no serverRoot available here in CrapLand ;), i've mimic the serverRoot with a registry value, but it seems to me that the default config values should be more agnostic.. Saludos , Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [JK2] Some questions
First - Nacho, my next commit ( probably tommorow, after I check everything ) will be large, please commit whatever you have changed and I'll resolve the conflicts. The biggest change is using JK_OK / JK_ERR consistently for return types and using java style rc=function() if( rc != JK_OK ) ... instead of the if( function() ) { } The second change is some cleanup in the dispatch() and jk_handle, so JNI/SHM will use the same mechanism and code. Now answers: isapi_redirector2.dll has started to load and log this night :) and is giving me a beautiful NPE when trying the ajp13 connector from tc33, it's suppoused to work, ? Is it a NPE or a core dump ? I got it working with Apache + 3.3, 4.0, 4.1 ( ajp13-socket, unix, jni ), but I only did basic tests. Send me the trace, I'll take a look. i have some caveats about the way the default logger logs by default ;), the code is trying printf to stderr, what can i do? into IIS there is no stderr to log to by default, 2 choices - either don't do anything until the file is set, or implement a jk_log_windows.c that sends all messages to the windows even log. The second can sit in common/ and be conditionally compiled - in case someone else wants to use it ( for apache or another server ), it's not specific to IIS ( but windows ). ( the log should go to whatever IIS or the server is using normally ) i'll need to readd the register keys for default logger file and log level :(, It seems to me rather messy because i will need to override and/or ignore those properties setted in the wk2.p file, to, at least, be consistent and to have only one place to configure log.. If you need to - then add them. That's not the biggest problem and we can change later. ANother Caveat is the serverRoot property, there is no serverRoot available here in CrapLand ;), i've mimic the serverRoot with a registry value, but it seems to me that the default config values should be more agnostic.. serverRoot is used to locate the conf/ and logs/ and will be used to locate webapps/ ( with Glen's fix ). ( I'm not sure - there are 2 servers - probably we should find a way to keep all logs, confs, files in the same place ). BTW, many thanks - I can't finish this without your help, is much harder than I ever expected. Costin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [JK2] Some questions
First - Nacho, my next commit ( probably tommorow, after I check everything ) will be large, please commit whatever you have changed and I'll resolve the conflicts. Done, go ahead.. Is it a NPE or a core dump ? I got it working with Apache + 3.3, 4.0, 4.1 ( ajp13-socket, unix, jni ), but I only did basic tests. Send me the trace, I'll take a look. jk_uriMap.c/411, it seems the worker is null, it gives a NPE when trying to log the worker name found to service the uri. i have some caveats about the way the default logger logs by default ;), 2 choices - either don't do anything until the file is set, or This way I've lost all the logs at the jk start, prior to read the wk2.p file, it's hard to debug a config failure this way.. implement a jk_log_windows.c that sends all messages to the windows even log. I'll try this weekend, not very difficult, i'm starting to understand the undergoings of jk2, and is nice, verbose but nice.. ;) i'll need to readd the register keys for default logger file and log level :(, It seems to me rather messy because i will need to override and/or ignore those properties setted in the wk2.p file, to, at least, be consistent and to have only one place to configure log.. If you need to - then add them. That's not the biggest problem and we can change later. Well, i would like to reduce the registry settings needed at a minimun, registry settings are little evil to me, tomcat-user is plenty of problems related to config settings, at least until these nice installers came into play, I much prefer text configs.. value, but it seems to me that the default config values should be more agnostic.. serverRoot is used to locate the conf/ and logs/ and will be used to locate webapps/ ( with Glen's fix ). ( I'm not sure - there are 2 servers - probably we should find a way to keep all logs, confs, files in the same place ). This can work for apache, win32 or *x but for IIS it's really hard, i much prefer to keep all this things near tomcat, not near the System32 directory :), anyway having a totally agnostic way, given the OOP over C style jk2 has, this could be done by making a specialized config ( inheriting from the actual one ) for every server? this specialized config would make the need asumptions for the server using jk2? Saludos , Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [JK2] Some questions
On Thu, 25 Apr 2002, Ignacio J. Ortega wrote: keep all logs, confs, files in the same place ). This can work for apache, win32 or *x but for IIS it's really hard, i much prefer to keep all this things near tomcat, not near the System32 directory :), anyway having a totally agnostic way, given the OOP over C style jk2 has, this could be done by making a specialized config ( inheriting from the actual one ) for every server? this specialized config would make the need asumptions for the server using jk2? The set serverRoot to tomcat.home/catalina.base. We need a base directory for all locations. That should be the only setting you need in the registry - the top level dir where we can start seeing conf/, logs/, etc. That's very confusing for apache - we have apache/conf and tomcat/conf, but for IIS it should be easier - you have only one dir :-) Advanced configuration is possible - but we should start with workers2.properties then do 'auto-guessing' ( Glen ) and special settings on the various components. Costin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]