Basic Authentication via .htaccess
Can someone point me in the right direction. I need to setup Basic Authenication. I am currently using a .htaccess file and I would like to use it to authenticate users. So I have in my web.xml security-constraint web-resource-collection web-resource-nameProtected Area/web-resource-name url-pattern/free?action=getMemberform/url-pattern http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameAdmin/realm-name /login-config Obviously I don't have a realm named Admin or a role named Admin. Does anyone know how to get it to use the .htaccess?
Any instance of Win2K with TOMCAT?
Hi! Everybody, 1. Has anyone out there used this combination successfuly - TOMCAT (running as an NT service), IIS5 on Windows 2000 Server? 2. TOMCAT works fine on port 8080 but when I call the default examples context, via IIS (i.e. on port 80) I get a 404. The log files seem to show the redirection (using isapi_redirect.dll) being executed. Can anyone suggest a possible cause /or solution? 3. What do the entries in isapi.log mean? log file entries: isapi.log [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters IIS Log 2001-05-03 04:39:40 192.168.0.250 - W3SVC3 PODCWS 192.168.0.250 80 GET /jakarta/isapi_redirect.dll+ - 404 2 3406 270 0 HTTP/1.1 podc.cop Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0) ASPSESSIONIDQMFC=GCNHONGAPFOLKILALHEBIEDJ - Any help will be highly appreciated. thanks sachin
RE: Connection Pooling with different databases problems
u can try DbConnectionBroker for pooling connections ; www.javaexchange.com it is easy and powerful . regards .. -Original Message- From: Sab This [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 6:28 AM To: [EMAIL PROTECTED] Subject: Connection Pooling with different databases problems Dear all, I used Tomcat 3.2.1 with Poolman 1.4.1 running on an iis4 webserver. I have configured Poolman serving 4 databases with the MSSQL server installed on the same machine. All servlets run well and can get connections at the beginning, however, general error (from Tomcat console) and access violation (windows system alert)occur from time to time which rendered the JVM (I used sun jdk 1.3.01) and Tomcat died. I already spend alot of time to fix this but still didnt get any clues Thanks __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: JDBCRealm enhancements
Many thanks for the FeedBack Peter..You can attach the patch to BugZilla Bug itself.. TIA Saludos , Ignacio J. Ortega -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En nombre de Peter B. West Enviado el: jueves 3 de mayo de 2001 3:17 Para: [EMAIL PROTECTED] Asunto: Re: JDBCRealm enhancements Following Ignacio's suggestion, I checked out the cvs of 3.3 and tested the message digest password fucntions again. They are working as (not) advertised. Not being familiar with Java or Java security, I am still not sure of the supported message digest algorithms, but, according to http://java.sun.com/products/jdk/1.2/docs/guide/security/Crypt oSpec.html#AppA, they include MD5, MD2 and SHA. I tested MD5. I wrote a small app to generate md5 versions of the plaintext passwords in the users table of my postgresql 7.1 database. The html howto on JDBCRealm in the distribution is out of date and a bit misleading. It documents this entity in server.xml: RequestInterceptor className=org.apache.tomcat.request.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority?user=test;pass word=test userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / In 3.3, this entity becomes JDBCRealm, and the className attribute disappears. This is documented in the server.xml file. The howto has this in the discussion of attributes to the previous entity. Digest The algorithm used for digest passwords or No for plain passwords, the values can be MD5, etc... (Optional) I have used lower-case `digest'; i.e. digest=MD5 Then there is the following setion on digested passwords. Using digested passwords To use digested password you need to store them digested. To achieve this, you will need to use the same digest strategies that JDBCrealm uses to store the passwords, inside JDBCRealm there is a static method with signature final public static String Digest(String password,String algorithm) this method is provided as a tool to be used outside JDBCRealm by an application that want to store passwords readable by JDBCRealm. Again, the method is all lower case, i.e. final public static String digest(String password, String algorithm) Furthermore, there is a main in JDBCRealm.java which allows the class to be used as an app to generate the digested passwords. Format is java org.apache.tomcat.modules.aaa.JDBCRealm -a MD5 passwd1 [passwd2 ...] and the -a argument is your desired algorithm. Ignacio, I have just put a note in bugzilla. I have a patchfile for the howto. Where should I send it? Peter Ignacio J. Ortega wrote: digested passwords is on 3.3 nightly builds not exactly as yours ..some slightly better with MessageDigest and bit more configurable...the other can be done but i think it's partiicular need for your app, subject of inheritance thought .. in all cases the changes only can go to 3.3 ..3.2.x is in bug fix only mode.. Thanks for the feedback.. post the RFE in http://nagoya.apache.org/bugzilla with your code as an attach following guidelines on jakarta site http://jakarta.apache.org/site/source.html .. TIA Saludos , Ignacio J. Ortega -Mensaje original- De: Christian Hargraves [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 2 de mayo de 2001 16:37 Para: [EMAIL PROTECTED] Asunto: JDBCRealm enhancements First off. Is JDBCRealm just an example of what can be done or is it meant for actual use? If it's only meant as an example of how to write a RequestInterceptor, then don't bother to read on, please just respond and tell me so. We need to add some functionality to JDBCRealm that I think a lot of other people might also be able to use. The following modifications are: 1) The option to put in the password encode type -- This is for those companies that encode the password (I think most do). Currently only 'base64' and 'none' are supported. This is done by adding an attribute in the server.xml tag in the RequestInterceptor called encryptMethod. I just used the SecurityTools.base64Decode(password) method to do this. 2) The option of storing the userid as well as the username. -- This is done by adding another optional attribute that states the userid column. This enables user-role table to be queried against the userid instead of the username for those sites that have a lot of users. It also throws the userid in the session for those that need the userid throughout the entire application. Please tell me what you think. We already added the functionality so there is no work for anyone else to do, but to review the code. Christian Hargraves -- Peter B. West [EMAIL PROTECTED] http://powerup.com.au/~pbwest Lord, to
Re: Connection Pooling with different databases problems
thx a lot mateI've try it b4, but it doesn't work fine for me. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 3:14 PM Subject: RE: Connection Pooling with different databases problems u can try DbConnectionBroker for pooling connections ; www.javaexchange.com it is easy and powerful . regards .. -Original Message- From: Sab This [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 6:28 AM To: [EMAIL PROTECTED] Subject: Connection Pooling with different databases problems Dear all, I used Tomcat 3.2.1 with Poolman 1.4.1 running on an iis4 webserver. I have configured Poolman serving 4 databases with the MSSQL server installed on the same machine. All servlets run well and can get connections at the beginning, however, general error (from Tomcat console) and access violation (windows system alert)occur from time to time which rendered the JVM (I used sun jdk 1.3.01) and Tomcat died. I already spend alot of time to fix this but still didnt get any clues Thanks __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: JDBCRealm changes
Hi Christian, I'm writing a document on interceptors at the moment, I can help you out if you need my help. The TC 3.2.1 JDBC realm is a pretty poor implementation since it is not using a connection pool or anything, also, if the connection breaks it will not reconnect either. Connection Pooling will be available when the Jakarta-commons dbcp package been released itself... and your other complaint ..theoretically JDBCRealm tries to reconnect when found the connection closed or null, and prior to trying to reconnect it nullifies the connection and gets another connection... if you have a suggestion about JDBCRealm or a bug that involves it ..please post the RFE or bug in http://nagoya.apache.org/bugzilla with your code attached to the bug or rfe following guidelines on jakarta site http://jakarta.apache.org/site/source.html .. TIA Thanks for the Feedback.. Saludos , Ignacio J. Ortega let me know if you need some assistance reply to my personal email mailto:[EMAIL PROTECTED] Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Christian Hargraves [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 11:15 AM To: [EMAIL PROTECTED] Subject: JDBCRealm changes Hi all, I sent a message earlier this morning about enhancing JDBCRealm. We are going to do this anyways. I think it would be better if we could somehow work together and put the changes in the tomcat release. Does anyone have anything to say about this? Does anyone care? Is anyone out there? I'm beginnig to feel lonely.. Anyways, I would appreciate some form of feedback, even if it's go to hell and leave us alone. Thanks, Christian Saludos , Ignacio J. Ortega
Re: Tomcat, IIS and virtual hosts
Apache is a much better solution for virtual hosts than IIS He's using IIS and I'm using Apache. What we have in common is that we're both after examples of setting up Tomcat to work with virtual hosts. I'm sorry if that was not clear. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Connection Pooling with different databases problems
hi kium, I am using poolman1.4.1 to serve more than one database(to run with different servlets) with traditional JDBC methods.does it mean I can solve those general error, access violation(0xc005) problem by using JNDI for Driver-Access ? - Original Message - From: Winfried Klum [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 2:26 PM Subject: Re: Connection Pooling with different databases problems Dear all, I used Tomcat 3.2.1 with Poolman 1.4.1 running on an iis4 webserver. I have configured Poolman serving 4 databases with the MSSQL server installed on the same machine. All servlets run well and can get connections at the beginning, however, general error (from Tomcat console) and access violation (windows system Are you using JNDI for Driver-Access ? I figured out that this is the only access-mode in wich poolman isn't corrupting database access from different web-apps (Servlets) alert)occur from time to time which rendered the JVM (I used sun jdk 1.3.01) and Tomcat died. I already spend alot of time to fix this but still didnt get any clues Thanks __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Forwarding
forward() will only send it to another servlet or jsp, I think. However, sendRedirect() will work with external URLs. Just do response.sendRedirect(http://www.misMuelas.com;); Un saludo, Alex. Zsolt Koppany wrote: Thank you for the idea, I know the jsp:forward command but I was not able to forward to a complete different URL for example http://www.sun.com:8080;. Do you know how to do that? Zsolt Barthélémy TEHAM wrote: by using jsp:forward Action exple: jsp:forward page=dest.jsp / Documentation source: http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-JSP.html#Section8.6 --- Zsolt Koppany [EMAIL PROTECTED] a écrit : Hi, how can I forward to a page that the user does not see where he was forwarded to? The reason is, we might change the target host or page and if the user makes a bookmark to the forwarded page he cannot come back if we change the target host or the page. Zsolt -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart Tel: +49-711-7871080 Fax: +49-711-7871017 = Barthélémy TEHAM - E-mail : [EMAIL PROTECTED] Website: http://teham.free.fr ___ Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart Tel: +49-711-7871080 Fax: +49-711-7871017
Re: Objects in Vector are loosing type
On Wed, 2 May 2001, Joel Parramore wrote: | | Well, Endre, comments such as classloading is totally fucked, while having | a nice kewl sound-bite quality, really don't explain what is going on too | well to someone who hasn't encountered the problem before. It's just that it kind of annoys me. It's definately an huge itch, but I don't have the time to scratch it. Stupid thing to say, but what's annoying is that it's not quite recongized by the developers as a problem, which truly puzzles me.. I have to restart tomcat each and every time I make one single change to _anyting_ of my code. This is the most time consuming part of developing on Tomcat, I feel. (How's Jetty doing, btw??) Also, forgot to mention, the reloader doesn't notice if any _other_ classes have changed, e.g. your User object or whatever. Only the directly affected Servlet, and only the first one hit, will get reloaded. If not totally fucked, it's definately pretty messed up..! ;) Endre
RE: TC 3.2.2b4 URI Rewriting with mod_ssl
If you could send an example code, I'll try to fix it - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 12:13 AM To: tomcatUser Subject: TC 3.2.2b4 URI Rewriting with mod_ssl I have testet the TC3.2.2b4 now with the ajp13 protocol over the new mod_jk-eapi.so and mod_jk-stdapi.so (release 4/30), and nothing will work with URI Rewriting. Have I something more to do ? set TOMCAT_OPS like below, or to copy the jsee.jar and jnet.jar in the lib dir ? Greetings and sorry for the massive questions, Michael Marc Saegesser wrote: There were two problems that I knew about and both are described in the bug report http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578. One problem is addressed by defining java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol and other problem was that it wouldn't set the default port correctly for https URLs. Both of these bugs have been fixed in beta 4. If your still seeing a problem there must be something else wrong that I haven't seen yet. One thing to note, however, is that there is a known issue with AJP12 that prevents URL rewritting from working correctly on ports other than 443. For example, if your using Apache to serve HTTPS on port 8443 then Tomcat won't know that the connection is secure and will think the URL scheme is actually HTTP. This is a limitation of the AJP protocol and we can't fix it. The AJP13 protocol does not have this problem. -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 2:55 PM To: [EMAIL PROTECTED] Subject: Tomcat 3.2.2 beta 4 mod_ssl URI Hello, i have one question about the session tracking (URI) with mod_ssl. You have said, that you have fixed it. But in TC3.2.2b4 it isn't fixed, did you mean you fixed it only in the final release ? I think session tracking and mod_ssl is some important thing, that should work together. Please worte back, Michael
RE: Why Use apache
W.r.t. static content: suppose you have a lot of static content and thus decide to run Apache next to Tomcat, then I wonder: why use the plugin? The plugin itself may be a bottleneck if not configured properbly, and may also be a source of bugs in itself. I would propose to run Apache on port 80, then run Tomcat stand-alone for dynamic content parallel on some other port (such as 8080). Static pages on Apache can give a link to tomcat, and tomcat gererated HTML documents can include static content such as images with an absolute URL pointing to the Apache server. It may also be more efficient, since dynamic content is returned to the client directly, and not via an extra rerouting through Apache. Just a thought for those that want to avoid the plugin. -- Peter Mutsaers | Dübendorf| UNIX - Live free or die [EMAIL PROTECTED] | Switzerland | Sent via FreeBSD 4.3-stable
Tomcat on sun sparc station performance ?
hello all this is a little bit off topic i think. i am using apache tomcat for a while on linux and i have only experience with intel machines ! new to me: i am the owner of an old sparc 20 256 mb mem and now there is a change to upgrade the sparc to quad(4) ross hypersparcs 200mhz 512kb cache. upgrade costs at about 1500$. my questions: 1. does someone know the performance of this configuration as a web server ? 2. is the upgrade worth the money ? or should i buy a new intel box for the 1500$ ? 3. is the java port from blackdown for sparc linux ok ? or should i use solaris with the sun's java. 4. are there any problems with apache tomcat on sparc linux ? thank's in advance lothar sorry if it's to off topic but i don't know whom i should ask otherwise.
Re: TC 3.2.2b4 URI Rewriting with mod_ssl
Thanks, but this should be the old Bug, when you have to make URI Rewriting with mod_ssl, like the bug#578, this should be fiex in the new 3.2.2b4 Version, but it isn't. I have checked it with this new Version with the ajp12 and ajp13 Protocol and the new Version of mod_jk (mod_jk-eapi.so and mod_jk-stdapi.so), but no one will work ;-(( Greetings and thanks, Wolle GOMEZ Henri wrote: If you could send an example code, I'll try to fix it - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 12:13 AM To: tomcatUser Subject: TC 3.2.2b4 URI Rewriting with mod_ssl I have testet the TC3.2.2b4 now with the ajp13 protocol over the new mod_jk-eapi.so and mod_jk-stdapi.so (release 4/30), and nothing will work with URI Rewriting. Have I something more to do ? set TOMCAT_OPS like below, or to copy the jsee.jar and jnet.jar in the lib dir ? Greetings and sorry for the massive questions, Michael Marc Saegesser wrote: There were two problems that I knew about and both are described in the bug report http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578. One problem is addressed by defining java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol and other problem was that it wouldn't set the default port correctly for https URLs. Both of these bugs have been fixed in beta 4. If your still seeing a problem there must be something else wrong that I haven't seen yet. One thing to note, however, is that there is a known issue with AJP12 that prevents URL rewritting from working correctly on ports other than 443. For example, if your using Apache to serve HTTPS on port 8443 then Tomcat won't know that the connection is secure and will think the URL scheme is actually HTTP. This is a limitation of the AJP protocol and we can't fix it. The AJP13 protocol does not have this problem. -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 2:55 PM To: [EMAIL PROTECTED] Subject: Tomcat 3.2.2 beta 4 mod_ssl URI Hello, i have one question about the session tracking (URI) with mod_ssl. You have said, that you have fixed it. But in TC3.2.2b4 it isn't fixed, did you mean you fixed it only in the final release ? I think session tracking and mod_ssl is some important thing, that should work together. Please worte back, Michael -- __ Gruss, Wolle --- [EMAIL PROTECTED]
mod_jk or mod_jserv on an AIX4.3.3, JDK1.1.8 Apache1.3.19
I'm using the gcc version 2.8.1 and I can't build the mod_jk or the mod_jserv. For the mod_jk, I try the command : apxs -I ../jk -I /usr/jdk_base/include -I /usr/jdk_base/include/aix -c -o mod_jk.so mod_jk.c ../jk/jk_ajp12_worker.c ../jk/j_connect.c ../jk/jk_msg_buff.c ../jk/jk_util.c ../jk/jk_ajp13.c ../jk/jk_jni_worker.c ../jk/jk_pool.c ../jk/jk_worker.c ../jk/jk_ajp13_orker.c ../jk/jk_lb_worker.c ../jk/jk_sockbuf.c ../jk/jk_map.c ../jk/jk_uri_worker_map.c gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/bin-gms/Binaries/AIX/apache_1.3.19/include -I../jk -I/usr/jdk_base/include -I/usr/jdk_base/include/aix -c mod_jk.c all seems OK gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/bin-gms/Binaries/AIX/apache_1.3.19/include -I../jk -I/usr/jdk_base/include -I/usr/jdk_base/include/aix -c ../jk/jk_jni_worker.c ../jk/jk_jni_worker.c:764: warning: #warning --- ../jk/jk_jni_worker.c:765: warning: #warning NO JAVA 2 HEADERS! SUPPORT FOR JAVA 2 FEATURES DISABLED ../jk/jk_jni_worker.c:766: warning: #warning --- In file included from /usr/jdk_base/include/aix/float_md.h:21, from /usr/jdk_base/include/aix/jni_md.h:22, from /usr/jdk_base/include/jni.h:36, from ../jk/jk_jni_worker.c:67: /usr/jdk_base/include/aix/longlong_md.h:350: conflicting types for `uint32_t' /usr/include/sys/inttypes.h:78: previous declaration of `uint32_t' /usr/jdk_base/include/aix/longlong_md.h:359: conflicting types for `int32_t' /usr/include/sys/inttypes.h:67: previous declaration of `int32_t' In file included from /usr/jdk_base/include/jni.h:36, from ../jk/jk_jni_worker.c:67: /usr/jdk_base/include/aix/jni_md.h:91: parse error before `*' /usr/jdk_base/include/aix/jni_md.h:91: warning: initialization makes pointer from integer without a cast /usr/jdk_base/include/aix/jni_md.h:91: initializer element is not constant /usr/jdk_base/include/aix/jni_md.h:91: warning: data definition has no type or storage class /usr/jdk_base/include/aix/jni_md.h:91: parse error before `if' /usr/jdk_base/include/aix/jni_md.h:91: parse error before `1' /usr/jdk_base/include/aix/jni_md.h:91: warning: data definition has no type or storage class /usr/jdk_base/include/aix/jni_md.h:91: parse error before `-' /usr/jdk_base/include/aix/jni_md.h:91: redefinition of `_currentSuspendState' /usr/jdk_base/include/aix/jni_md.h:91: `_currentSuspendState' previously defined here /usr/jdk_base/include/aix/jni_md.h:91: warning: data definition has no type or storage class /usr/jdk_base/include/aix/jni_md.h:91: parse error before `}' /usr/jdk_base/include/aix/jni_md.h:130: warning: This file contains more `}'s than `{'s. /usr/jdk_base/include/jni.h:1858: warning: This file contains more `}'s than `{'s. apxs:Break: Command failed with rc=1 For the mod_jserv, I try the command : apxs -c mod_jserv.c jserv*.c gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/bin-gms/Binaries/AIX/apache_1.3.19/include -c mod_jserv.c ...all seems OK between this... gcc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/bin-gms/Binaries/AIX/apache_1.3.19/include -c jserv_wrapper_win.cld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bI:/bin-gms/Binaries/AIX/apache_1.3.19/libexec/httpd.exp -lc -o mod_jserv.so jserv_wrapper_win.o jserv_wrapper_unix.o jserv_wrapper.o jserv_watchdog.o jserv_utils.o jserv_status.o jserv_protocols.o jserv_mmap.o jserv_image.o jserv_balance.o jserv_ajpv12.o jserv_ajpv11.o mod_jserv.o ld: 0711-244 ERROR: No csects or exported symbols have been saved.apxs:Break: Command failed with rc=8It is only the linking who has a problem ! All the compilation has be done successfully... If someone could provide me any help, I would be very grateful. Thanks in advance. Charles
AW: Why Use apache
Your proposal has some drawbacks, just some of them: - You loose a common access log for all request to the site - If your side needs authentication you have to do it twice. You have to setup apache and tomcat to do the authentication and the users will have to logon twice. - You will lock out users who are behind a firewall that denies HTTP request on other ports than 80 (that's quite common) - Quite some overhead for the development to set all links right - You can't use apache features for dynamic content. (like mod_gzip, mod_rewrite, mod_) -Ursprüngliche Nachricht- Von: Peter Mutsaers [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 3. Mai 2001 10:36 An: [EMAIL PROTECTED] Betreff: RE: Why Use apache W.r.t. static content: suppose you have a lot of static content and thus decide to run Apache next to Tomcat, then I wonder: why use the plugin? The plugin itself may be a bottleneck if not configured properbly, and may also be a source of bugs in itself. I would propose to run Apache on port 80, then run Tomcat stand-alone for dynamic content parallel on some other port (such as 8080). Static pages on Apache can give a link to tomcat, and tomcat gererated HTML documents can include static content such as images with an absolute URL pointing to the Apache server. It may also be more efficient, since dynamic content is returned to the client directly, and not via an extra rerouting through Apache. Just a thought for those that want to avoid the plugin. -- Peter Mutsaers | Dübendorf| UNIX - Live free or die [EMAIL PROTECTED] | Switzerland | Sent via FreeBSD 4.3-stable
RE: Tomcat, IIS and virtual hosts
I didn't spend too long on this, as we only needed the vhosts as a stop-gap solution, and only needed three at that, but the only way I found to do it was to have vhosts defined in both Apache and Tomcat. Apache's vhosting knows the difference for the static pages, and any .jsps/servlets for *any* of the servers are handed off to Tomcat without vhosting. Tomcat then knows the correct vhost as well, and serves the relevant jsp. I forget which (but I believe Apache) complained about the mod_jk config appearing within a vhost definition. I've no idea about IIS unfortunately - I only use real web-servers! The rest of the information you need is in the docs, and you should be able to work it out yourself. There may be a better way to do it, but I didn't have the time to find it. Hope this helps, Duncan. P.S. I can probably dig the old config files out if you need them, but I don't have them to hand at the mo. -Original Message- From: Brian Murray [mailto:[EMAIL PROTECTED]] Sent: 03 May 2001 08:42 To: [EMAIL PROTECTED] Subject: Re: Tomcat, IIS and virtual hosts Apache is a much better solution for virtual hosts than IIS He's using IIS and I'm using Apache. What we have in common is that we're both after examples of setting up Tomcat to work with virtual hosts. I'm sorry if that was not clear. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ This message contains information which may be privileged and confidential and subject to legal privilege. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by e-mail, facsimile, or telephone and return or destroy the original message. Sopheon and its officers are not responsible for any statements or material in this e-mail and in any attachment to it which might give rise to any criminal or civil claim.
regarding installation
dear sir/madam, i had a question regarding installation of Jakarta TomCat can we intall Jakarta TomCat on Compact Disk.Please mail me the answer to the above question. hope u will do the needful. _ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com
Re: Connection Pooling with different databases problems
First try to upgrade to poolman2.0 and use the Datasource Access method. I have tested only the 2.0 release. Here's how to get a connection, code (sample from original doc) looks like this: // Get a Connection DataSource ds = PoolMan.findDataSource(JNDINameOfMyPool); Connection con = null; con = ds.getConnection(); // ... etc. ... This works for me. There's actually no JNDI involved I think, the codesnippet is misleading here. Getting the database Driver with class.forName, I have encountered some access problems when using multiple web-apps in the servlet container (also with web-apps hwo aren't using poolman at all). Best regards, Winfried hi kium, I am using poolman1.4.1 to serve more than one database(to run with different servlets) with traditional JDBC methods.does it mean I can solve those general error, access violation(0xc005) problem by using JNDI for Driver-Access ? - Original Message - From: Winfried Klum [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 2:26 PM Subject: Re: Connection Pooling with different databases problems
Re: regarding installation
You can do that, First thinng is unzip in hard drive and rewrite whole contents on the compact disk. You r compact Dick is nothing but a different hard drive. - Original Message - From: menon narayan prasad [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 7:33 PM Subject: regarding installation dear sir/madam, i had a question regarding installation of Jakarta TomCat can we intall Jakarta TomCat on Compact Disk.Please mail me the answer to the above question. hope u will do the needful. _ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com
isapi
Hi! Can anyone tell me what "NULL parameter" means in the isapi.log --[jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULLparameter -- thanks sachin
/servlet/ mapping
I am new to Tomcat, so please be gentle. To access a servlet, the default is to use: http://myhost.com:8080/bob/servlet/bob How can I change the mapping to use the following instead: http://myhost.com:8080/servlet/bob
Re: /servlet/ mapping
you have to change the settings in server.xml file. Thats is everything is going to be fine. - Original Message - From: Patrick Medhurst [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 8:40 PM Subject: /servlet/ mapping I am new to Tomcat, so please be gentle. To access a servlet, the default is to use: http://myhost.com:8080/bob/servlet/bob How can I change the mapping to use the following instead: http://myhost.com:8080/servlet/bob
FW: /servlet/ mapping
-BEGIN PGP SIGNED MESSAGE- Hi all! I'm having the same problem ... but a little more complicated I think. I have a back-end application server running Tomcat and Cocoon, and serving the content by an Apache Server in another machine, as front-end. I want to map my servlet http://www.domain.com/xxx/servlet/MyOwnServlet (/home/xxx/WEB-INF/classes/MyOwnServlet.class), that is working correctly, to http://www.domain.com/MyOwnServlet. Any clue on how to do this?¿ TIA Ivan -BEGIN PGP SIGNATURE- Version: PGP 7.0.1 iQEVAwUBOvE4lDYaMh/d7Z1mAQHw2QgArk1pKueh+RejqP+D41Cuw95H4dl6rQV1 V5qAjaCk09OSPziepeGdIGjtivVsKJv8GLxGvE5mxs6ZCpgG0vh/P8fFiGzXqhJD nOV6Kfw+1G/Dw1tJCuK/CBKXv7vkydcK7ytx29oguylCjSLm0ErBHoTZhrhv6cit Xx1C8K7mCLzl7j4P0Asaqjb5Yd6FG2EP2BZeEzxKlMesiLT4utX5aQUKCUXlhRWQ w/4a2kKbMJPAnQI0xwASrRKkdf2L7YjAtYPBPSAzIeSxV0FyacaknJH4AFL8kVpa WW1Bp1vEd+yhwQ5dAgohKtY2pd2BVoxOwH2Kmg2g3bUds8yI3QhSZw== =OwCc -END PGP SIGNATURE-
Still trying to configure mod_jk
Redhat 6.2 Apache -1.3.6-1 httpd start gives the following error Syntax error on line 214 of /etc/httpd/conf/httpd.conf: API module structure 'jk_module' in file /user/libexec/apache/mod_jk.so is garbled - perhaps this is not an apache module DSO? How do I fix? Can anyone shed some light, pleeeaaassse? Desperate Laurence
virtualHosting of apache
Hi Everybody, I just installed the apache server and changed the port to 8181.I can access it using http://192.9.203.178:8181/ .Now i want that it should be accessible by using http://myname.com .If anyone can suggest how it can be done, it will be a great help.I tried editing the httpd.conf file in following way: NameVirtualHost 192.9.203.178:8181 VirtualHost 192.9.203.178 # ServerAdmin [EMAIL PROTECTED] # DocumentRoot /www/docs/host.some_domain.com ServerName guninder.com # ErrorLog logs/host.some_domain.com-error_log # CustomLog logs/host.some_domain.com-access_log common /VirtualHost what else should i do to access it by name. Thanks and Regards Guninder
Re: Still trying to configure mod_jk
Lots of people have this problem. The downloadable mod_jk seems to work for some people, but not all. I'd suggest downloading the mod_jk source and build it yourself. Give your system, this shouldn't be too hard. sam - Original Message - From: Laurence Mayer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 1:10 PM Subject: Still trying to configure mod_jk Redhat 6.2 Apache -1.3.6-1 httpd start gives the following error Syntax error on line 214 of /etc/httpd/conf/httpd.conf: API module structure 'jk_module' in file /user/libexec/apache/mod_jk.so is garbled - perhaps this is not an apache module DSO? How do I fix? Can anyone shed some light, pleeeaaassse? Desperate Laurence
Re: virtualHosting of apache
err..I'm not an Apache expert or something, but I think for a name based virtual server you want: VirtualHost virtual.host.com instead? sam - Original Message - From: Guninder To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 12:31 PM Subject: virtualHosting of apache Hi Everybody, I just installed the apache server and changed the port to 8181.I can access it using http://192.9.203.178:8181/ .Now i want that it should be accessible by using http://myname.com .If anyone can suggest how it can be done, it will be a great help.I tried editing the httpd.conf file in following way: NameVirtualHost 192.9.203.178:8181 VirtualHost 192.9.203.178 # ServerAdmin [EMAIL PROTECTED] # DocumentRoot /www/docs/host.some_domain.com ServerName guninder.com # ErrorLog logs/host.some_domain.com-error_log # CustomLog logs/host.some_domain.com-access_log common /VirtualHost what else should i do to access it by name. Thanks and Regards Guninder
RE: Jakarta NT Service
It sounds like one of three things: 1. When you ran jk_nt_service -i, you specified the wrong path to the wrapper.properties file 2. You have installed Tomcat or your JDK into a directory that contains spaces (a big problem with the service) 3. Your wrapper.properties file isn't configured correctly (probably JAVA_HOME variable) Randy -Original Message- From: MAURER,ALEXANDRE (HP-Switzerland,ex1) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 3:59 PM To: [EMAIL PROTECTED] Subject: Jakarta NT Service Hi ! My environment : NT 4.0 Worksation SP5 192 Mb RAM I managed to have Tomcat run on my NT notebook, I even managed to connect it to Apache (well the instructions were very simple and clear). Tomcat is running using the startup batch files. I still have a problem running Tomcat as a NT Service; I downloaded the jk_nt_service.exe and configured to whole as described in the doc, which works; well partially : - Registery entries are correctly done - I can hence see the Service using the appropriate Control in the Control Panel .. but the service won't start net start JK_Tomcat ( the name I gave) results in : The JK_Tomcat service is starting. (working) The JK_Tomcat service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. My questions are quite simple : Is there a way to produce verbose output from jk_nt_service ? Is there a place where log information about that can be found ? I tried to trace the Registery/File access done by the JVM (only one running on my system) using some utilities from SysInternals but the JVM is not started at all (or it does no Registery/File accesses I could trace !). Thank you for your help -- Alexandre MAURER Phone : +41 (0) 1 735 7495 Hewlett-Packard SwitzerlandFax: +41 (0) 1 735 7708 HP Consulting Zurich Mobile : +41 (0)79 634 8037 [mailto:[EMAIL PROTECTED]] --
RE: Any instance of Win2K with TOMCAT?
Answers: 1. Yes 2. Lots of things, usually problems with your registry entries 3. Either the path to the uriworkermap.properties file is incorrect in the registry, or the file doesn't contain any valid mappings (mapping are valid when they map a URL or URL fragment to a valid connector defined in workers.properties. Randy -Original Message- From: Sachin Phatak [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 3:01 AM To: [EMAIL PROTECTED] Subject: Any instance of Win2K with TOMCAT? Hi! Everybody, 1. Has anyone out there used this combination successfuly - TOMCAT (running as an NT service), IIS5 on Windows 2000 Server? 2. TOMCAT works fine on port 8080 but when I call the default examples context, via IIS (i.e. on port 80) I get a 404. The log files seem to show the redirection (using isapi_redirect.dll) being executed. Can anyone suggest a possible cause /or solution? 3. What do the entries in isapi.log mean? log file entries: isapi.log [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters IIS Log 2001-05-03 04:39:40 192.168.0.250 - W3SVC3 PODCWS 192.168.0.250 80 GET /jakarta/isapi_redirect.dll+ - 404 2 3406 270 0 HTTP/1.1 podc.cop Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0) ASPSESSIONIDQMFC=GCNHONGAPFOLKILALHEBIEDJ - Any help will be highly appreciated. thanks sachin
RE: virtualHosting of apache
Haven't you forgotten to change the VirtualHost directive too? i.e. VirtualHost should now be VirtualHost 192.9.203.178:8181 James -Original Message-From: Sam Newman [mailto:[EMAIL PROTECTED]]Sent: 03 May 2001 12:40To: [EMAIL PROTECTED]Subject: Re: virtualHosting of apache err..I'm not an Apache expert or something, but I think for a name based virtual server you want: VirtualHost virtual.host.com instead? sam - Original Message - From: Guninder To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 12:31 PM Subject: virtualHosting of apache Hi Everybody, I just installed the apache server and changed the port to 8181.I can access it using http://192.9.203.178:8181/ .Now i want that it should be accessible by using http://myname.com .If anyone can suggest how it can be done, it will be a great help.I tried editing the httpd.conf file in following way: NameVirtualHost 192.9.203.178:8181 VirtualHost 192.9.203.178 # ServerAdmin [EMAIL PROTECTED] # DocumentRoot /www/docs/host.some_domain.com ServerName guninder.com # ErrorLog logs/host.some_domain.com-error_log # CustomLog logs/host.some_domain.com-access_log common /VirtualHost what else should i do to access it by name. Thanks and Regards Guninder ** This e-mail (including any documents which may accompany it) contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this e-mail or the information in it or attached to it is strictly prohibited and may be unlawful. If you have received this e-mail in error please notify us immediately by e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 and delete the e-mail. Please advise immediately if you or your employer do not consent to Internet E-Mail for messages of this type. Information or opinions in this message that do not relate to the business of Windsor plc and/or subsidiary and/or associated companies shall be treated as neither given or endorsed by it. **
Memory usage
Hi to all, I havein troublewith the memory usage with Tomcat 3.21, on WinNt 2000 and Jdk 1.3 of Sun. the problem is that any operation does not release the memory occuped; to control the memory usage I use the Task Manager; when Tomcat start, the memory used from theprocess Javais of 9608 K; when I request a Jsp page thathas an error, like a variable not declared, the memory used is11868K; if I wait for 1 ay also, this value does not change, so the memory used is not released, running a correct Jsp page, the memory used increase, and this is not released yet; I have written a log on the finalize method of my class, and this is called, so the garbage collector release all my object. This behavoir is normal? Probably changing the version of Tomcat this problem may be corrected. What doyou think about this? Thank you.
Re: /servlet/ mapping
Hi, Patrick Can you tell us a little bit more about your set-up? Are you using mod_jserv or mod_jk? What version of Tomcat are you using? Did you alter anything from the default install? If so, what? I could go into a lengthy explanation into servlet mapping and connector configuration, but you said be gente. :-) Regards, Noel Lecaros Patrick Medhurst wrote: I am new to Tomcat, so please be gentle. To access a servlet, the default is to use: http://myhost.com:8080/bob/servlet/bob How can I change the mapping to use the following instead: http://myhost.com:8080/servlet/bob
Re: virtualHosting of apache
Hi Sam, This is what the example in httpd.conf looks like: #VirtualHost ip.address.of.host.some_domain.com# ServerAdmin [EMAIL PROTECTED]# DocumentRoot /www/docs/host.some_domain.com# ServerName host.some_domain.com# ErrorLog logs/host.some_domain.com-error_log# CustomLog logs/host.some_domain.com-access_log common#/VirtualHost I think writing VirtualHost virtual.host.com will not solve the problem.Thanks Regards Guninder - Original Message - From: Sam Newman To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 5:10 PM Subject: Re: virtualHosting of apache err..I'm not an Apache expert or something, but I think for a name based virtual server you want: VirtualHost virtual.host.com instead? sam - Original Message - From: Guninder To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 12:31 PM Subject: virtualHosting of apache Hi Everybody, I just installed the apache server and changed the port to 8181.I can access it using http://192.9.203.178:8181/ .Now i want that it should be accessible by using http://myname.com .If anyone can suggest how it can be done, it will be a great help.I tried editing the httpd.conf file in following way: NameVirtualHost 192.9.203.178:8181 VirtualHost 192.9.203.178 # ServerAdmin [EMAIL PROTECTED] # DocumentRoot /www/docs/host.some_domain.com ServerName guninder.com # ErrorLog logs/host.some_domain.com-error_log # CustomLog logs/host.some_domain.com-access_log common /VirtualHost what else should i do to access it by name. Thanks and Regards Guninder
Re: Memory usage
On Thu, 3 May 2001, Garry De Toffoli wrote: | What do you think about this? How's the long run behaviour? It might be that tomcat is initializing itself (creates servlets and the like) as you go along, and that after some time things will even out and go up and down just a little... -- Mvh, Endre
Re: virtualHosting of apache
Hi James, I changed the virtualHost Directive to VirtualHost 192.9.203.178:8181 but still it doesn't work.Thanks Guninder - Original Message - From: Williamson, James To: '[EMAIL PROTECTED]' Sent: Thursday, May 03, 2001 5:16 PM Subject: RE: virtualHosting of apache Haven't you forgotten to change the VirtualHost directive too? i.e. VirtualHost should now be VirtualHost 192.9.203.178:8181 James -Original Message-From: Sam Newman [mailto:[EMAIL PROTECTED]]Sent: 03 May 2001 12:40To: [EMAIL PROTECTED]Subject: Re: virtualHosting of apache err..I'm not an Apache expert or something, but I think for a name based virtual server you want: VirtualHost virtual.host.com instead? sam - Original Message - From: Guninder To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 12:31 PM Subject: virtualHosting of apache Hi Everybody, I just installed the apache server and changed the port to 8181.I can access it using http://192.9.203.178:8181/ .Now i want that it should be accessible by using http://myname.com .If anyone can suggest how it can be done, it will be a great help.I tried editing the httpd.conf file in following way: NameVirtualHost 192.9.203.178:8181 VirtualHost 192.9.203.178 # ServerAdmin [EMAIL PROTECTED] # DocumentRoot /www/docs/host.some_domain.com ServerName guninder.com # ErrorLog logs/host.some_domain.com-error_log # CustomLog logs/host.some_domain.com-access_log common /VirtualHost what else should i do to access it by name. Thanks and Regards Guninder**This e-mail (including any documents which may accompany it) containsinformation which is confidential and may also be privileged.It is for the exclusive use of the intended recipient(s).If you are not the intended recipient(s) please note that any form ofdistribution, copying or use of this e-mail or the information in itor attached to it is strictly prohibited and may be unlawful.If you have received this e-mail in error please notify us immediatelyby e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 anddelete the e-mail.Please advise immediately if you or your employer do not consent toInternet E-Mail for messages of this type.Information or opinions in this message that do not relate to thebusiness of Windsor plc and/or subsidiary and/or associated companiesshall be treated as neither given or endorsed by it.**
AW: Memory usage
That your finalize method is called, doesn't mean that the garbage collector has released your objects. The only way to be shure that this happens, is to explicitly run System.gc(). Otherwise it's up to the VM when it will free the memory. (Sun's JDK per default only releases memory if otherwise an OutOfMemoryError would occur, so unless you reach this border the VM will constanly grow) See also the options for the JVM: -verbose:gc (Any VM) -Xincgc (Sun SDK 1.3.*) -Xms (Sun + IBM) -Xmx (Sun + IBM) -Ursprüngliche Nachricht- Von: Garry De Toffoli [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 3. Mai 2001 14:34 An: [EMAIL PROTECTED] Betreff: Memory usage snip/ I have in trouble with the memory usage with Tomcat 3.21, WinNt 2000 and Jdk 1.3 of Sun. the problem is that any operation does not release the memory occuped; to control the memory usage I use the Task Manager; when Tomcat start, the memory used from the process Java is of 9608 K; when I request a Jsp page that has an error, like a variable not declared, the memory used is 11868K; if I wait for 1 ay also, this value does not change, so the memory used is not released, running a correct Jsp page, the memory used increase, and this is not released yet; I have written a log on the finalize method of my class, and this is called, so the garbage collector release all my object. This behavoir is normal? Probably changing the version of Tomcat this problem may be corrected. snip/
Re: Any instance of Win2K with TOMCAT?
Thanks a Lot Randy. May I impose on you with 2 more questions? 1. I have made the registry entries as mentioned in the documentation bundled with TC, but that is for NT4 not W2K. In W2K registry when a value is added it asks for Datatype, which defaults to REG_SZ (I guess this was not the case with NT4, as it is not mentioned in the Documentation). What should the datatype be? I have used REG_SZ? 2. valid mappings ... in workers.properties Can you illustrate this with an example please? I am very new to this. thanks sachin - Original Message - From: Randy Layman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 4:42 PM Subject: RE: Any instance of Win2K with TOMCAT? Answers: 1. Yes 2. Lots of things, usually problems with your registry entries 3. Either the path to the uriworkermap.properties file is incorrect in the registry, or the file doesn't contain any valid mappings (mapping are valid when they map a URL or URL fragment to a valid connector defined in workers.properties. Randy -Original Message- From: Sachin Phatak [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 3:01 AM To: [EMAIL PROTECTED] Subject: Any instance of Win2K with TOMCAT? Hi! Everybody, 1. Has anyone out there used this combination successfuly - TOMCAT (running as an NT service), IIS5 on Windows 2000 Server? 2. TOMCAT works fine on port 8080 but when I call the default examples context, via IIS (i.e. on port 80) I get a 404. The log files seem to show the redirection (using isapi_redirect.dll) being executed. Can anyone suggest a possible cause /or solution? 3. What do the entries in isapi.log mean? log file entries: isapi.log [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters IIS Log 2001-05-03 04:39:40 192.168.0.250 - W3SVC3 PODCWS 192.168.0.250 80 GET /jakarta/isapi_redirect.dll+ - 404 2 3406 270 0 HTTP/1.1 podc.cop Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0) ASPSESSIONIDQMFC=GCNHONGAPFOLKILALHEBIEDJ - Any help will be highly appreciated. thanks sachin
Workers Redirector
Hi gurus! I didn't manage to figure out the real difference between in-process workers and plug-in/redirector. I mean, I know which is the diference, but according to what HOW-TOs say, I don't find it clear when ie: I thought that the workers.propoerties file was only used by the worker architecture, but in the HOW-TO it shows the example in which it's configured also for the redirector architecture. BTW, I think that when working with redirector, I have to start up by hand Tomcat as another process and so, mod_jk will redirect servlet requests from Apache to Tomcat, cause they're different processes. On the other hand, the workers architecture, allows Apache to run Tomcat within the same process space, and I don't have to startup Tomcat by hand. Am I wrong? If not, why should I configure a workers.properties file despite I'm working with a redirector architecture? any idea will be appreciated. m- Lic. Martin O. Mauri Profesion + Auge A.F.J.P Parana 666 - Cap. Federal TE: (011) 4373-7786/7 int: 422 [EMAIL PROTECTED] www.profesi.com.ar
Re: FW: mod_jk
On Red Hat you've got to install glibc-devel package to compile stuff. Check your system: rpm -q glibc-devel Nikolai Laurence Mayer wrote: I am having problems compiling mod_jk on Redhat 6.2 Apache 1.3.12-2 jakarta-tomcat-3.2.1 tomcat-mod-3.2.1-1.i386 There errors are like : In file included from mod_jk.c:66 /usr/include/apache/ap_config.h:85: sys/types.h: No such file or directory I get many many like this. Ideas or suggestions? Thanks Laurence -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 8:09 PM To: '[EMAIL PROTECTED]' Subject: Re: mod_jk build on Solaris On Wed, 2 May 2001, Mark Crouch wrote: I tried updating the apxs perl script with the following: my $CFG_TARGET= 'q(httpd)';# substituted via Makefile.tmpl my $CFG_CC= 'q(gcc)';# substituted via Makefile.tmpl my $CFC_CFLAGS= 'q( -DSOLARIS=260 -DMOD_PERL -DUSE_PERL_SSI -I/usr/local/include -DUSE_EXPAT -I../lib/expat-lite `../apaci`)'; my $CFC_CFLAGS_SHLIB = 'q(-fPIC -DSHARED_MODULE)'; my $CFG_LD_SHLIB = 'q(ld)'; my $CFG_LDFLAGS_SHLIB = 'q(-G)'; my $CFG_LIBS_SHLIB= 'q()'; my $CFG_PREFIX= 'q(/usr/apache)'; my $CFG_SBINDIR = 'q(/usr/apache/bin)'; my $CFG_INCLUDEDIR= 'q(/usr/apache/include)'; my $CFG_LIBEXECDIR= 'q(/usr/apache/libexec)'; my $CFG_SYSCONFDIR= 'q(/usr/apache)'; When executing the script, I now receive the following errors: Global symbol $CFG_FLAGS requires explicit package name at /usr/apache/bin/apxs line 91. Global symbol $CFG_CFLAGS_SHLIB requires explicit package name at /usr/apache/bin line 371. I was unable to copy verbatim the settings that John had mentioned due to differences in the location of certain apache directories. Does anyone have an idea why this is failing? I don't really know what you're trying to do, but the above looks like a simple perl problem. Note that when you define the variables, the names are $CFC_CFLAGS and $CFC_CFLAGS_SHLIB, while the error messages ^ ^ are for $CFG_CFLAGS and $CFG_CFLAGS_SHLIB. Looks like a simple typo. ^ ^ Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
RE: TC 3.2.2b4 URI Rewriting with mod_ssl
so scould you detail us an example so we could mimic to test and fix the problem ? - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 10:57 AM To: [EMAIL PROTECTED] Subject: Re: TC 3.2.2b4 URI Rewriting with mod_ssl Thanks, but this should be the old Bug, when you have to make URI Rewriting with mod_ssl, like the bug#578, this should be fiex in the new 3.2.2b4 Version, but it isn't. I have checked it with this new Version with the ajp12 and ajp13 Protocol and the new Version of mod_jk (mod_jk-eapi.so and mod_jk-stdapi.so), but no one will work ;-(( Greetings and thanks, Wolle GOMEZ Henri wrote: If you could send an example code, I'll try to fix it - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 12:13 AM To: tomcatUser Subject: TC 3.2.2b4 URI Rewriting with mod_ssl I have testet the TC3.2.2b4 now with the ajp13 protocol over the new mod_jk-eapi.so and mod_jk-stdapi.so (release 4/30), and nothing will work with URI Rewriting. Have I something more to do ? set TOMCAT_OPS like below, or to copy the jsee.jar and jnet.jar in the lib dir ? Greetings and sorry for the massive questions, Michael Marc Saegesser wrote: There were two problems that I knew about and both are described in the bug report http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578. One problem is addressed by defining java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol and other problem was that it wouldn't set the default port correctly for https URLs. Both of these bugs have been fixed in beta 4. If your still seeing a problem there must be something else wrong that I haven't seen yet. One thing to note, however, is that there is a known issue with AJP12 that prevents URL rewritting from working correctly on ports other than 443. For example, if your using Apache to serve HTTPS on port 8443 then Tomcat won't know that the connection is secure and will think the URL scheme is actually HTTP. This is a limitation of the AJP protocol and we can't fix it. The AJP13 protocol does not have this problem. -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 2:55 PM To: [EMAIL PROTECTED] Subject: Tomcat 3.2.2 beta 4 mod_ssl URI Hello, i have one question about the session tracking (URI) with mod_ssl. You have said, that you have fixed it. But in TC3.2.2b4 it isn't fixed, did you mean you fixed it only in the final release ? I think session tracking and mod_ssl is some important thing, that should work together. Please worte back, Michael -- __ Gruss, Wolle --- [EMAIL PROTECTED]
How is your knowledge on TomCat??????
I have sent three questions on how to get tomcat running on NetWare, I havent even got one single answer on how to do it or not even any ideas. Cant you anything about TomCat, now have I give up though Novell Portal Services is running on Apache and TomCat. All I want is a startscript but nooo.
Re: Unsubscribing problem
Marian Ganuci wrote: Hi, everybody It seems that is no solution to get out this list, but to change the email address. However, this is isn't a solution, or at least not a good one. I've sent email to: mailto:[EMAIL PROTECTED] with the unsubscribe in the subject field STATUS: doesn't work mailto:[EMAIL PROTECTED] but with my very own data. My emal address is [EMAIL PROTECTED], so I sent the email at mailto:[EMAIL PROTECTED] STATUS: doesn't work Although, in the welcome message, it was clearly specified that a confirmation email will be sent back to me, no such thing happened. So I guess that we're all stuck in here, unless someone has another idea. Marius Yes, this is exactly what happened to me, please list-owner correct this!
IIS 5.0 + Tomcat + SSL ??
Our setup is like this: We have a win2k Server running IIS 5.0 with Tomcat serving JSP's. This works fine when using http. I Downloaded a test SSL certificate from Verisign in order to decide if/when we will implement this. I have never worked with ssl and when I install the certificate and attempt to access the site via https it doesn't find the page. Thank you in advance for any help. Todd
2nd Posting: Context Logging with TC4b3
(binary installation on RedHat 7 with kernel 2.42) I would expect that the following context settings, within server.xml, would give me log specific (ie; localhost_xyz_log) entries when servlets running in that particular context (/xyz) are run, but it doesn't: !-- xyz Context -- Context path=/xyz docBase=xyz debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_xyz_log. suffix=.txt timestamp=true/ /Context It seemed to work fine with TC4b1. Any suggestions? Thank You, Anthony ---
RE: Memory usage
That your finalize method is called, doesn't mean that the garbage collector has released your objects. The only way to be shure that this happens, is to explicitly run System.gc(). Even that's not sufficient: it just suggests to the VM that garbage-collecting might be a good idea right now. Any actual garbage collection would take place later, in another thread. And, even when it does happen, that doesn't mean all the memory will necessarily be released to the OS: the VM will hold on to some so that it won't need to go back to the OS on the next allocation. You might want to get a memory profiler (like JProbe) and see where the memory is going. At the very least, try doing something like, Runtime rt = Runtime.getRuntime(); System.err.println(Free=+rt.freeMemory()+, total=+rt.totalMemory()); often, to see how much memory is actually in use, and how much is just allocated from the OS. -- Bill K. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 5:51 AM To: '[EMAIL PROTECTED]' Subject: AW: Memory usage That your finalize method is called, doesn't mean that the garbage collector has released your objects. The only way to be shure that this happens, is to explicitly run System.gc(). Otherwise it's up to the VM when it will free the memory. (Sun's JDK per default only releases memory if otherwise an OutOfMemoryError would occur, so unless you reach this border the VM will constanly grow) See also the options for the JVM: -verbose:gc (Any VM) -Xincgc (Sun SDK 1.3.*) -Xms (Sun + IBM) -Xmx (Sun + IBM) -Ursprüngliche Nachricht- Von: Garry De Toffoli [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 3. Mai 2001 14:34 An: [EMAIL PROTECTED] Betreff: Memory usage snip/ I have in trouble with the memory usage with Tomcat 3.21, WinNt 2000 and Jdk 1.3 of Sun. the problem is that any operation does not release the memory occuped; to control the memory usage I use the Task Manager; when Tomcat start, the memory used from the process Java is of 9608 K; when I request a Jsp page that has an error, like a variable not declared, the memory used is 11868K; if I wait for 1 ay also, this value does not change, so the memory used is not released, running a correct Jsp page, the memory used increase, and this is not released yet; I have written a log on the finalize method of my class, and this is called, so the garbage collector release all my object. This behavoir is normal? Probably changing the version of Tomcat this problem may be corrected. snip/
RE: How is your knowledge on TomCat??????
I don't think insulting people on the list is the right way to get an answer... Gary PS. I don't know how to start it on Netware! -Original Message- From: Magnus Jansson [mailto:[EMAIL PROTECTED]] Sent: 03 May 2001 13:58 To: Subject: How is your knowledge on TomCat?? I have sent three questions on how to get tomcat running on NetWare, I havent even got one single answer on how to do it or not even any ideas. Cant you anything about TomCat, now have I give up though Novell Portal Services is running on Apache and TomCat. All I want is a startscript but nooo.
TC4 B3 SSL: Error in SSLServerSocketFactory: initProxy()?
Dev environment: Win2K Pro, JDK1.3, TC4 B3, latest JSSE, openssl, apache 1.3.19 I don't have a connector for apache compiled on this platform yet, so I'm trying direct SSL on TOMCAT The JSSE seem to be properly setup: I have the JSSE in the CLASSPATH also under $JAVA_HOME\jre\lib\ext, and $CATALINA_HOME/server/lib, also registered the Provider in $JAVA_HOME\jre\lib\security\java.security Server.xml: Connector className=org.apache.catalina.connector.http.HttpConnector port=8443 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS keystorePass=administrator keystoreFile=c:\jdk\tomcat4-b3\conf\keystore keystoreType=JKS / /Connector I tried both openssl certificates and keytool generated ceritificates. I tried the code of SSLServerSocketFactory (initProxy) in a test class and it works fine, with or without Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); So it's not a JVM setup issue. Is there a problem with this JSSE? So what am I missing? Your help will be greatly appreciated!! PK - initProxy: java.security.NoSuchAlgorithmException: Class com.sun.net.ssl.intern al.ssl.SSLContextImpl configured for SSLContext not a SSLContext java.security.NoSuchAlgorithmException: Class com.sun.net.ssl.internal.ssl.SSLCo ntextImpl configured for SSLContext not a SSLContext at com.sun.net.ssl.b.a([DashoPro-V1.2-120198]) at com.sun.net.ssl.SSLContext.getInstance([DashoPro-V1.2-120198]) at org.apache.catalina.net.SSLServerSocketFactory.initProxy(SSLServerSoc ketFactory.java:385) at org.apache.catalina.net.SSLServerSocketFactory.initialize(SSLServerSo cketFactory.java:328) at org.apache.catalina.net.SSLServerSocketFactory.createSocket(SSLServer SocketFactory.java:281) at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j ava:734) at org.apache.catalina.connector.http.HttpConnector.start(HttpConnector. java:888) at org.apache.catalina.core.StandardService.start(StandardService.java:3 60) at org.apache.catalina.core.StandardServer.start(StandardServer.java:458 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:707) at org.apache.catalina.startup.Catalina.execute(Catalina.java:627) at org.apache.catalina.startup.Catalina.process(Catalina.java:177) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:177) Catalina.start: LifecycleException: HttpConnector[8443].open: java.io.IOExcept ion: java.security.NoSuchAlgorithmException: Class com.sun.net.ssl.internal.ssl. SSLContextImpl configured for SSLContext not a SSLContext LifecycleException: HttpConnector[8443].open: java.io.IOException: java.securi ty.NoSuchAlgorithmException: Class com.sun.net.ssl.internal.ssl.SSLContextImpl c onfigured for SSLContext not a SSLContext at org.apache.catalina.connector.http.HttpConnector.start(HttpConnector. java:890) at org.apache.catalina.core.StandardService.start(StandardService.java:3 60) at org.apache.catalina.core.StandardServer.start(StandardServer.java:458 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:707) at org.apache.catalina.startup.Catalina.execute(Catalina.java:627) at org.apache.catalina.startup.Catalina.process(Catalina.java:177) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:177)
Re: Memory usage
Hei, i had the the error with Tomcat 3.2.2b2 and I've started the VM with -verbose:gc, so it shows me if the Garbage Collector will work. his Work was Ok, but doesn't release the memory. I have change ther Version of TC to 3.2.2b3 and the memory rising has stopped, and he gives memory back after using ! So try the TC3.2.2b3 or b4 Greetings, Wolle Garry De Toffoli wrote: Hi to all, I have in trouble with the memory usage with Tomcat 3.21, on WinNt 2000 and Jdk 1.3 of Sun. the problem is that any operation does not release the memory occuped; to control the memory usage I use the Task Manager; when Tomcat start, the memory used from the process Java is of 9608 K; when I request a Jsp page that has an error, like a variable not declared, the memory used is 11868K; if I wait for 1 ay also, this value does not change, so the memory used is not released, running a correct Jsp page, the memory used increase, and this is not released yet; I have written a log on the finalize method of my class, and this is called, so the garbage collector release all my object. This behavoir is normal? Probably changing the version of Tomcat this problem may be corrected. What do you think about this? Thank you.
AW: How is your knowledge on TomCat??????
Hi Magnus Jansson, I'm sorry, but I use Tomcat only on a Windows plattform. Beside that I've very little time to work with it, because I've to learn for my final exam. Perhaps you should send your questions to the tomcat-user mailinglist and not to my personal mailbox :) Best regards, Robert -Ursprungliche Nachricht- Von: Magnus Jansson [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 03. Mai 2001 14:58 An: Betreff: How is your knowledge on TomCat?? I have sent three questions on how to get tomcat running on NetWare, I havent even got one single answer on how to do it or not even any ideas. Cant you anything about TomCat, now have I give up though Novell Portal Services is running on Apache and TomCat. All I want is a startscript but nooo.
RE: How is your knowledge on TomCat??????
Could be that nobody here is using Tomcat with Netware? ;-) -Mensaje original- De: Magnus Jansson [SMTP:[EMAIL PROTECTED]] Enviado el: jueves 3 de mayo de 2001 14:58 Para: Asunto: How is your knowledge on TomCat?? I have sent three questions on how to get tomcat running on NetWare, I havent even got one single answer on how to do it or not even any ideas. Cant you anything about TomCat, now have I give up though Novell Portal Services is running on Apache and TomCat. All I want is a startscript but nooo.
AW: How is your knowledge on TomCat??????
hi magnus i have no knowledge of novell at all but just searched the archive of this mailing list and found the following. all list - sorry for posting it again, but i felt it was seemed necessary, as there seem to be lots of netware folks who have probs w/ tomcat. regards, -nico (mailing list archive: http://www.mail-archive.com/ ;) == Can you, or anyone provide setup/installation information? Thanks -jim Yes. Mikko Peltonen wrote the following instructions at devforums.novell.com. They have worked for me. But, first of all, download the JVM from Novell. Cristian Ramos Prange () Subject: Re: Info on Jakarta/Tomcat port to Netware Date: Fri, 1 Dec 2000 11:56:13 +0200 From: Mikko Peltonen [EMAIL PROTECTED] Organization: Another Netscape Collabra Server User Newsgroups: novell.devsup.jvm References: 1 , 2 , 3 OK. There seemed not to be any documentation concerning NetWare on the official release package of Tomcat 3.2, even though there are now compiled nlm's, so I'll try to briefly give some instructions: - Download Tomcat 3.2 (http://jakarta.apache.org/builds/tomcat/release/v3.2/bin/) and extract it to SYS volume. - Add the following lines to sys:\etc\java.cfg and restart JVM: TOMCAT_HOME=sys:\jakarta-tomcat-3.2 CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\ant.jar CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\jasper.jar CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\jaxp.jar CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\parser.jar CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\servlet.jar CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\webserver.jar - Create sys:\system\tomcat.ncf, and put in it line: java -Dtomcat.home=sys:/jakarta-tomcat-3.2 org.apache.tomcat.startup.Tomcat - Start Tomcat by executing the ncf file you just created At this point, you should be able to use Tomcat with the Tomcat's built-in http server, which by default listens in port 8080. Try pointing your browser to http://your-server-ip:8080/examples/. If you want to integrate with the Enterprise Server, do the following: - Copy the nsapi_rd.nlm file to sys:/jakarta-tomcat-3.2/bin -directory. This file is the nsapi plugin that handles the communications between Enterprise Server and Tomcat. By default communication is done through sockets by using the ajp12 protocol. - Disable Novell's Servlet Gateway. Go to Web Manager (https://your-server-ip:2200/), Enterprise Web Server configuration - Programs - Novell Servlet Gateway - Activate Servlet Gateway=No. Save Apply. - Edit the sys:\Novonyx\suitespot\https-SERVERNAME\config\obj.conf. Add the following lines. To the Init section, add: Init fn=load-modules funcs=jk_init,jk_service shlib=sys:/jakarta-tomcat-3.2/bin/nsapi_rd.nlm Init fn=jk_init worker_file=sys:/jakarta-tomcat-3.2/conf/workers.properties log_level=debug log_file=sys:/jakarta-tomcat-3.2/logs/nsapi.log To the NameTrans section of the default object, add: NameTrans fn=assign-name from=/servlet/* name=servlet NameTrans fn=assign-name from=/examples/* name=servlet To the end of the file, add new servlet object: Object name=servlet ObjectType fn=force-type type=text/plain Service fn=jk_service worker=ajp12 /Object - Restart Enterprise Server Now you should be able to get to Tomcat examples through Enterprise Server (http://your-server-ip/examples/). If you want to configure more contexts (URLs) for Tomcat, or want to setup Tomcat to serve only dynamic pages in its contexts, additional information can be found from file sys:\jakarta-tomcat-3.2\doc\tomcat-netscape-howto.html (sections Adding Additional Contexts and Advanced Config Configuration).
RE: Tomcat, IIS and virtual hosts
here is what i am using to Vhost with tomcat and in the server.xml Host name=xxx.com Context path= docBase=webapps/xxx debug=0 reloadable=true / /Host Host name=www.xxx.com Context path= docBase=webapps/xxx debug=0 reloadable=true / /Host with apache i just include the mod_jk.conf-auto i assume that IIS has a mechanism to include the iis_redirect.conf-auto file. i found the only other thing to do is ensure the webserver can't server the WEB-INF and META-INF directories. hope this helps chris -Original Message- From: Brian Murray [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 9:32 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat, IIS and virtual hosts snip Can someone send me an example of how to configure Tomcat to work with virtual hosts? Hi Mr. Lebowitz. I've been after the same thing. Unfortunately the score sits at Requests 2, Responses 0. If you receive any help off the list, I'd greatly appreciate it if you would share it with me. If I receive any, I'll certainly pass it along to you. Good luck. = __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
How to obtain user's IP address
Hello, I need to know who visits my web page. In jsp, I got null when I used request.getRemoteUser(). Then any other mehods can obtain user's name or IP address? Thanks Jack Li
RE: Memory usage
Correct me if I'm wrong. If for instance I want a bean removed knowing that System.gc() does not happen immediately, would setting the bean equal to null force the bean to be removed from memory right away and not have to rely on the garbage collection to eventually take place? Mark -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 10:07 AM To: '[EMAIL PROTECTED]' Subject:RE: Memory usage That your finalize method is called, doesn't mean that the garbage collector has released your objects. The only way to be shure that this happens, is to explicitly run System.gc(). Even that's not sufficient: it just suggests to the VM that garbage-collecting might be a good idea right now. Any actual garbage collection would take place later, in another thread. And, even when it does happen, that doesn't mean all the memory will necessarily be released to the OS: the VM will hold on to some so that it won't need to go back to the OS on the next allocation. You might want to get a memory profiler (like JProbe) and see where the memory is going. At the very least, try doing something like, Runtime rt = Runtime.getRuntime(); System.err.println(Free=+rt.freeMemory()+, total=+rt.totalMemory()); often, to see how much memory is actually in use, and how much is just allocated from the OS. -- Bill K. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 5:51 AM To: '[EMAIL PROTECTED]' Subject: AW: Memory usage That your finalize method is called, doesn't mean that the garbage collector has released your objects. The only way to be shure that this happens, is to explicitly run System.gc(). Otherwise it's up to the VM when it will free the memory. (Sun's JDK per default only releases memory if otherwise an OutOfMemoryError would occur, so unless you reach this border the VM will constanly grow) See also the options for the JVM: -verbose:gc (Any VM) -Xincgc (Sun SDK 1.3.*) -Xms (Sun + IBM) -Xmx (Sun + IBM) -Ursprüngliche Nachricht- Von: Garry De Toffoli [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 3. Mai 2001 14:34 An: [EMAIL PROTECTED] Betreff: Memory usage snip/ I have in trouble with the memory usage with Tomcat 3.21, WinNt 2000 and Jdk 1.3 of Sun. the problem is that any operation does not release the memory occuped; to control the memory usage I use the Task Manager; when Tomcat start, the memory used from the process Java is of 9608 K; when I request a Jsp page that has an error, like a variable not declared, the memory used is 11868K; if I wait for 1 ay also, this value does not change, so the memory used is not released, running a correct Jsp page, the memory used increase, and this is not released yet; I have written a log on the finalize method of my class, and this is called, so the garbage collector release all my object. This behavoir is normal? Probably changing the version of Tomcat this problem may be corrected. snip/
Re: TC 3.2.2b4 URI Rewriting with mod_ssl
Hello, yes, sorry Henri I will discribe it now, I have wrote some Servlet , which uses the resopnse.encodeURL and response.EncodeRedirectURL. They will work fine without ssl, when you disable Cookie, the sessionID attached to the URL. When you use the same Servlet and the same enviroment over mod_ssl, Session Tracking will not be possible. That is a known Bug ,see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578 Marc has said, that he has fixed in the current release TC3.2.2b4, but it won't work. What should I describe now ? The workaround was 1. install the jnet.jar and jsse.jar in the ROMCAT/lib dir. 2.set the TOMCAT_OPTS =-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol 3. Modify the HttpServletResponseFacade.java: retrieving revision 1.6.2.3 diff -u -r1.6.2.3 HttpServletResponseFacade.java --- src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java 2001/03/06 17:38:13 1.6.2.3 +++ src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java 2001/03/20 13:29:41 @@ -353,10 +353,14 @@ return (false); if (!request.getServerName().equalsIgnoreCase(url.getHost())) return (false); -// Set the URL port to HTTP default if not available before comparing +// Set the URL port to protocol default if not available before comparing int urlPort = url.getPort(); if (urlPort == -1) { -urlPort = 80; +if(http.equalsIgnoreCase(url.getProtocol())) { +urlPort = 80; +} else if (https.equalsIgnoreCase(url.getProtocol())) { +urlPort = 443; +} } if (request.getServerPort() != urlPort) return (false); I have made this with TC3.2.2b2 and TC3.2.2b3, and this works. Then it doesn't matter if you use the ajp12 or ajp13 Protocol (I have read that this is important to use ajp13) so please help, Greetings and thanks for inconvenience, Wolle GOMEZ Henri wrote: so scould you detail us an example so we could mimic to test and fix the problem ? - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 10:57 AM To: [EMAIL PROTECTED] Subject: Re: TC 3.2.2b4 URI Rewriting with mod_ssl Thanks, but this should be the old Bug, when you have to make URI Rewriting with mod_ssl, like the bug#578, this should be fiex in the new 3.2.2b4 Version, but it isn't. I have checked it with this new Version with the ajp12 and ajp13 Protocol and the new Version of mod_jk (mod_jk-eapi.so and mod_jk-stdapi.so), but no one will work ;-(( Greetings and thanks, Wolle GOMEZ Henri wrote: If you could send an example code, I'll try to fix it - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 12:13 AM To: tomcatUser Subject: TC 3.2.2b4 URI Rewriting with mod_ssl I have testet the TC3.2.2b4 now with the ajp13 protocol over the new mod_jk-eapi.so and mod_jk-stdapi.so (release 4/30), and nothing will work with URI Rewriting. Have I something more to do ? set TOMCAT_OPS like below, or to copy the jsee.jar and jnet.jar in the lib dir ? Greetings and sorry for the massive questions, Michael Marc Saegesser wrote: There were two problems that I knew about and both are described in the bug report http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578. One problem is addressed by defining java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol and other problem was that it wouldn't set the default port correctly for https URLs. Both of these bugs have been fixed in beta 4. If your still seeing a problem there must be something else wrong that I haven't seen yet. One thing to note, however, is that there is a known issue with AJP12 that prevents URL rewritting from working correctly on ports other than 443. For example, if your using Apache to serve HTTPS on port 8443 then Tomcat won't know that the connection is secure and will think the URL scheme is actually HTTP. This is a limitation of the AJP protocol and we can't fix it. The AJP13 protocol does not have this problem. -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 2:55 PM To: [EMAIL PROTECTED] Subject: Tomcat 3.2.2 beta 4 mod_ssl URI Hello, i have one question about the session tracking (URI) with mod_ssl. You have said, that you have fixed it. But in TC3.2.2b4 it isn't fixed, did you mean you
bug - iis tomcat
hi ! i've set up tomcat to serve jsp files within iis (redirection) everything works perfect but if i connect via telnet to iis at port 80 and try to GET a specific site the server returns the WHOLE jsp code ! is this a known problem ? thanks thomas marban werksleitung werk3AT internetmedien oeg rosenstrasse 1 4040 linz tel. +43 (0) 732 71 65 29 12 fax. +43 (0) 732 71 65 29 3 mail-direkt. [EMAIL PROTECTED] mail-all. [EMAIL PROTECTED] web. www.werk3.at
Re: How is your knowledge on TomCat??????
I asked a friend that worked for Novell for 7 years as a developer for Novell. his first impression to this question was that NetWare doesn't have very good scripting support. I wish I could tell you more, but even he doesn't know how to do it. His suggestion would be to simplify it a lot and try hard-coding some of the stuff in there.. Christian On Thursday 03 May 2001 06:58, you wrote: I have sent three questions on how to get tomcat running on NetWare, I havent even got one single answer on how to do it or not even any ideas. Cant you anything about TomCat, now have I give up though Novell Portal Services is running on Apache and TomCat. All I want is a startscript but nooo.
Re: How is your knowledge on TomCat??????
I do not think anybody is running Tomcat on Netware or they would help you. Perhaps you should consider running Tomcat on a free operating system like Linux. Linux supports the NetWare protocol for file and print services, etc, it is widely used, runs on a veritable plethora of hardware, and is free. ;-) Sincerely yours; Mark Mynsted VHA Management Information Systems Client Services [EMAIL PROTECTED] (972) 830 - 0592, Internal x1592 [EMAIL PROTECTED] 5/3/2001 7:58:09 AM I have sent three questions on how to get tomcat running on NetWare, I havent even got one single answer on how to do it or not even any ideas. Cant you anything about TomCat, now have I give up though Novell Portal Services is running on Apache and TomCat. All I want is a startscript but nooo.
Re: Basic Authentication via .htaccess
you can add a user / password in tomcat-users.xml and assign the roles=admin to this user. Can you restrict access to a servlet using .htaccess in tomcat. I am pretty interseted in it also. - Original Message - From: Cory L Hubert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 4:20 AM Subject: Basic Authentication via .htaccess Can someone point me in the right direction. I need to setup Basic Authenication. I am currently using a .htaccess file and I would like to use it to authenticate users. So I have in my web.xml security-constraint web-resource-collection web-resource-nameProtected Area/web-resource-name url-pattern/free?action=getMemberform/url-pattern http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameAdmin/realm-name /login-config Obviously I don't have a realm named Admin or a role named Admin. Does anyone know how to get it to use the .htaccess?
Tomcat 3.2.1 worker processes
Hi, Can anyone tell me if it is possible to stop a tomcat worker process in Tomcat 3.2.1 without stopping ALL worker processes? Regards, Ronan.
Error when compiling mod_jk under HPUX 11.00 : jk_global.h
Hi, I'm trying to compile mod_jk under HPUX 11.00 with gcc. gcc (2.95.2) works find, i've ever compiled some opensources with it. I've also installed binutils before gcc. I've installed apache from the source and it works properly with a DSO support. I've download jakarta-tomcat-3.2.1-bin, and it work properly on hpux 11.00, but now i'd like to compile mod_jk. So, i've download jakarta-tomcat-3.2.1-src, and i went in src/native/apache1.3 to compile mod_jk. I'm trying to compile mod_jk with the following Makefile (Notes that all the path are correct on my system): OS=hp-ux JAVA_INCL=-I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/${OS} JAVA_LIB=-L ${JAVA_HOME}/jre/lib/${ARCH} -L ${JAVA_HOME}/lib/${ARCH}/native_threads #ifndef APXS APXS=/usr/sbin/apxs #endif JK=../jk/ SRCS=../jk/jk_ajp12_worker.c ../jk/jk_connect.c ../jk/jk_msg_buff.c ../jk/jk_util.c ../jk/jk_ajp13.c \ ../jk/jk_jni_worker.c ../jk/jk_pool.c ../jk/jk_worker.c ../jk/jk_ajp13_worker.c ../jk/jk_lb_worker.c \ ../jk/jk_sockbuf.c ../jk/jk_map.c ../jk/jk_uri_worker_map.c all: mod_jk.so mod_jk.so: $(APXS) -I ../jk ${JAVA_INCL} -c -o $@ mod_jk.c $(SRCS) clean: rm *.o *.so Then, i did a make, and the result is : In file included from mod_jk.c:89: ../jk/jk_global.h:91: sys/select.h: No such file or directory apxs:Break: Command failed with rc=1 *** Error exit code 1 Stop. Daniel Brack said on Fri, 9 Mar 2001 on this list that he know that there are problems compiling on HPUX11 and modifications in jk_global.h and jk_pool.h are neccesary. Ok, maybe, but i don't know what sort of modifications in jk_global.h and jk_pool.h i need to apply ? Of course, on hpux, there is no sys/select.h anywhere... It's a glibc lib ! Does anyone can help me, and show me these modifications ? Regards, Marc-Henri PAMISEUX Administrateur Systèmes et Réseaux [EMAIL PROTECTED] CLG 34 Avenue des Champs Elysées 75008 Paris
RE: TC4 B3 SSL: Error in SSLServerSocketFactory: initProxy()?
The JSSE seem to be properly setup: I have the JSSE in the CLASSPATH also under $JAVA_HOME\jre\lib\ext, and $CATALINA_HOME/server/lib, also registered the Provider in $JAVA_HOME\jre\lib\security\java.security Does it work if you remove the jsse jars from $CATALINA_HOME/server/lib?
setting default locale
i developed web aplication on win98 and i set default locale by setting system properties user.language and user.region to preferred values. everything worked fine, dates were displayed in my native language. however, aplication is deployed on linux and i properties ares set to correct values but default locale is, to my surprise, US_en and also dates are displayed in english. how am i supposed to set default locale then __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: How to obtain user's IP address
I think request..getRemoteHost() will get the IP address. I do not think there is a reliable way to get the name of the user unless they have logged onto the server in some way, usually by password protecting the directories that have the server files. Andy C - Original Message - From: Jack Li [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 3:35 PM Subject: How to obtain user's IP address Hello, I need to know who visits my web page. In jsp, I got null when I used request.getRemoteUser(). Then any other mehods can obtain user's name or IP address? Thanks Jack Li
Re: Connection Pooling with different databases problems
thanks a lot Kium !! I will try it !! chonsiu : ) - Original Message - From: Winfried Klum [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 6:06 PM Subject: Re: Connection Pooling with different databases problems First try to upgrade to poolman2.0 and use the Datasource Access method. I have tested only the 2.0 release. Here's how to get a connection, code (sample from original doc) looks like this: // Get a Connection DataSource ds = PoolMan.findDataSource(JNDINameOfMyPool); Connection con = null; con = ds.getConnection(); // ... etc. ... This works for me. There's actually no JNDI involved I think, the codesnippet is misleading here. Getting the database Driver with class.forName, I have encountered some access problems when using multiple web-apps in the servlet container (also with web-apps hwo aren't using poolman at all). Best regards, Winfried hi kium, I am using poolman1.4.1 to serve more than one database(to run with different servlets) with traditional JDBC methods.does it mean I can solve those general error, access violation(0xc005) problem by using JNDI for Driver-Access ? - Original Message - From: Winfried Klum [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 2:26 PM Subject: Re: Connection Pooling with different databases problems
grant - codeBase Problem??
I use tomcat with security. And I want to assign FilePermissions on different directories for different users /home/user1 /home/user2. Each user should have permission to write his own directory. Unfortunally it seems that the codeBase part of an grant section does not work. If I granted FilePermission to a directory without codeBase set it works. With codeBase set it does not work. Is there anything to know about how Tomcat needs grant entries or did I miss to configure something? If you need my policy file I will post it. Thanks for your help Daniel
Re: How to obtain user's IP address
They are different things. The remote user only appears if the user did enter his user id and password. The IP address you want is the remote host, so you would use request.getRemoteHost(); Un saludo, Alex. Jack Li wrote: Hello, I need to know who visits my web page. In jsp, I got null when I used request.getRemoteUser(). Then any other mehods can obtain user's name or IP address? Thanks Jack Li
Re: How is your knowledge on TomCat??????
Magnus Jansson wrote: I have sent three questions on how to get tomcat running on NetWare, I havent even got one single answer on how to do it or not even any ideas. Cant you anything about TomCat, now have I give up though Novell Portal Services is running on Apache and TomCat. All I want is a startscript but nooo. It's probably not that no one knows Tomcat, but that no one knows Netware. Why don't you just take what's in the Windoze .bat file for starting up Tomcat and change it into a tomcat.ncf file, put it on your netware box(s), rconsole in and type in 'tomcat.ncf' and see if that starts it up. Otherwise begin to debug from teh error messages that it spews. Then when you get it working added tomcat.ncf into autoexec.ncf so that it'll start every time you reboot your server. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * I'm really easy to get along with once you people learn to worship me. *
RE: How to obtain user's IP address
getRemoteUser() returns the name of the user as authenticated by the servlet engine: if you don't have authentication turned on, you'll always get back null. getRemoteAddr() and getRemoteHost() will work, though,... assuming that there's no weird address translation (like NAT) going on. You could also plow through the request headers you're getting: some user agents may tell you something useful. -- Bill K. -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 7:35 AM To: [EMAIL PROTECTED] Subject: How to obtain user's IP address Hello, I need to know who visits my web page. In jsp, I got null when I used request.getRemoteUser(). Then any other mehods can obtain user's name or IP address? Thanks Jack Li
RE: Memory usage
setting the bean to null just marks the object as ready to be collected calling System.gc() requests to the vm when you are ready, please do your stuff. But gc only occurs when nothing else is happening ... it is a LOW priority thread. So as long as you have requests, GC will probably not happen but, this is vm implementation dependant ... so maybe it will :) depends on the vendor. -Original Message- From: Jurrius, Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 11:43 AM To: [EMAIL PROTECTED] Subject: RE: Memory usage Correct me if I'm wrong. If for instance I want a bean removed knowing that System.gc() does not happen immediately, would setting the bean equal to null force the bean to be removed from memory right away and not have to rely on the garbage collection to eventually take place? Mark -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 10:07 AM To: '[EMAIL PROTECTED]' Subject: RE: Memory usage That your finalize method is called, doesn't mean that the garbage collector has released your objects. The only way to be shure that this happens, is to explicitly run System.gc(). Even that's not sufficient: it just suggests to the VM that garbage-collecting might be a good idea right now. Any actual garbage collection would take place later, in another thread. And, even when it does happen, that doesn't mean all the memory will necessarily be released to the OS: the VM will hold on to some so that it won't need to go back to the OS on the next allocation. You might want to get a memory profiler (like JProbe) and see where the memory is going. At the very least, try doing something like, Runtime rt = Runtime.getRuntime(); System.err.println(Free=+rt.freeMemory()+, total=+rt.totalMemory()); often, to see how much memory is actually in use, and how much is just allocated from the OS. -- Bill K. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 5:51 AM To: '[EMAIL PROTECTED]' Subject: AW: Memory usage That your finalize method is called, doesn't mean that the garbage collector has released your objects. The only way to be shure that this happens, is to explicitly run System.gc(). Otherwise it's up to the VM when it will free the memory. (Sun's JDK per default only releases memory if otherwise an OutOfMemoryError would occur, so unless you reach this border the VM will constanly grow) See also the options for the JVM: -verbose:gc (Any VM) -Xincgc (Sun SDK 1.3.*) -Xms (Sun + IBM) -Xmx (Sun + IBM) -Ursprüngliche Nachricht- Von: Garry De Toffoli [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 3. Mai 2001 14:34 An: [EMAIL PROTECTED] Betreff: Memory usage snip/ I have in trouble with the memory usage with Tomcat 3.21, WinNt 2000 and Jdk 1.3 of Sun. the problem is that any operation does not release the memory occuped; to control the memory usage I use the Task Manager; when Tomcat start, the memory used from the process Java is of 9608 K; when I request a Jsp page that has an error, like a variable not declared, the memory used is 11868K; if I wait for 1 ay also, this value does not change, so the memory used is not released, running a correct Jsp page, the memory used increase, and this is not released yet; I have written a log on the finalize method of my class, and this is called, so the garbage collector release all my object. This behavoir is normal? Probably changing the version of Tomcat this problem may be corrected. snip/
RE: Memory usage
Nope. If you _didn't_ null out the reference, you're guaranteed that it _won't_ get garbage-collected; but if you _do_ null it out, you're only making it _available_ for garbage collection. The actual garbage collection only happens when the VM runs out of memory, or some unspecified time after calling System.gc(). Or, when the VM just plain wants to--the JLS isn't specific about this. -- Bill K. -Original Message- From: Jurrius, Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 7:43 AM To: [EMAIL PROTECTED] Subject: RE: Memory usage Correct me if I'm wrong. If for instance I want a bean removed knowing that System.gc() does not happen immediately, would setting the bean equal to null force the bean to be removed from memory right away and not have to rely on the garbage collection to eventually take place? Mark -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 10:07 AM To: '[EMAIL PROTECTED]' Subject: RE: Memory usage That your finalize method is called, doesn't mean that the garbage collector has released your objects. The only way to be shure that this happens, is to explicitly run System.gc(). Even that's not sufficient: it just suggests to the VM that garbage-collecting might be a good idea right now. Any actual garbage collection would take place later, in another thread. And, even when it does happen, that doesn't mean all the memory will necessarily be released to the OS: the VM will hold on to some so that it won't need to go back to the OS on the next allocation. You might want to get a memory profiler (like JProbe) and see where the memory is going. At the very least, try doing something like, Runtime rt = Runtime.getRuntime(); System.err.println(Free=+rt.freeMemory()+, total=+rt.totalMemory()); often, to see how much memory is actually in use, and how much is just allocated from the OS. -- Bill K. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 5:51 AM To: '[EMAIL PROTECTED]' Subject: AW: Memory usage That your finalize method is called, doesn't mean that the garbage collector has released your objects. The only way to be shure that this happens, is to explicitly run System.gc(). Otherwise it's up to the VM when it will free the memory. (Sun's JDK per default only releases memory if otherwise an OutOfMemoryError would occur, so unless you reach this border the VM will constanly grow) See also the options for the JVM: -verbose:gc (Any VM) -Xincgc (Sun SDK 1.3.*) -Xms (Sun + IBM) -Xmx (Sun + IBM) -Ursprüngliche Nachricht- Von: Garry De Toffoli [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 3. Mai 2001 14:34 An: [EMAIL PROTECTED] Betreff: Memory usage snip/ I have in trouble with the memory usage with Tomcat 3.21, WinNt 2000 and Jdk 1.3 of Sun. the problem is that any operation does not release the memory occuped; to control the memory usage I use the Task Manager; when Tomcat start, the memory used from the process Java is of 9608 K; when I request a Jsp page that has an error, like a variable not declared, the memory used is 11868K; if I wait for 1 ay also, this value does not change, so the memory used is not released, running a correct Jsp page, the memory used increase, and this is not released yet; I have written a log on the finalize method of my class, and this is called, so the garbage collector release all my object. This behavoir is normal? Probably changing the version of Tomcat this problem may be corrected. snip/
Re: Memory usage
Hi Mark! I don't think so. When you set a bean equal to null, you just erase a reference to it. Any other references left around would make it linger in memory, and there might be a few. Are you talking about EJBs? Anyway, if you set to null the only existing reference, you'll have to wait for the next gc cycle. If you call System.gc() explicitly, you're forcing this cycle and the object might go away. Un saludo, Alex. Jurrius, Mark wrote: Correct me if I'm wrong. If for instance I want a bean removed knowing that System.gc() does not happen immediately, would setting the bean equal to null force the bean to be removed from memory right away and not have to rely on the garbage collection to eventually take place? Mark -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 10:07 AM To: '[EMAIL PROTECTED]' Subject:RE: Memory usage That your finalize method is called, doesn't mean that the garbage collector has released your objects. The only way to be shure that this happens, is to explicitly run System.gc(). Even that's not sufficient: it just suggests to the VM that garbage-collecting might be a good idea right now. Any actual garbage collection would take place later, in another thread. And, even when it does happen, that doesn't mean all the memory will necessarily be released to the OS: the VM will hold on to some so that it won't need to go back to the OS on the next allocation. You might want to get a memory profiler (like JProbe) and see where the memory is going. At the very least, try doing something like, Runtime rt = Runtime.getRuntime(); System.err.println(Free=+rt.freeMemory()+, total=+rt.totalMemory()); often, to see how much memory is actually in use, and how much is just allocated from the OS. -- Bill K. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 5:51 AM To: '[EMAIL PROTECTED]' Subject: AW: Memory usage That your finalize method is called, doesn't mean that the garbage collector has released your objects. The only way to be shure that this happens, is to explicitly run System.gc(). Otherwise it's up to the VM when it will free the memory. (Sun's JDK per default only releases memory if otherwise an OutOfMemoryError would occur, so unless you reach this border the VM will constanly grow) See also the options for the JVM: -verbose:gc (Any VM) -Xincgc (Sun SDK 1.3.*) -Xms (Sun + IBM) -Xmx (Sun + IBM) -Ursprüngliche Nachricht- Von: Garry De Toffoli [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 3. Mai 2001 14:34 An: [EMAIL PROTECTED] Betreff: Memory usage snip/ I have in trouble with the memory usage with Tomcat 3.21, WinNt 2000 and Jdk 1.3 of Sun. the problem is that any operation does not release the memory occuped; to control the memory usage I use the Task Manager; when Tomcat start, the memory used from the process Java is of 9608 K; when I request a Jsp page that has an error, like a variable not declared, the memory used is 11868K; if I wait for 1 ay also, this value does not change, so the memory used is not released, running a correct Jsp page, the memory used increase, and this is not released yet; I have written a log on the finalize method of my class, and this is called, so the garbage collector release all my object. This behavoir is normal? Probably changing the version of Tomcat this problem may be corrected. snip/
RE: bug - iis tomcat
Which versions of tomcat are you trying ? Saludos , Ignacio J. Ortega -Mensaje original- De: thomas marban [werk3AT] [mailto:[EMAIL PROTECTED]] Enviado el: jueves 3 de mayo de 2001 16:52 Para: [EMAIL PROTECTED] Asunto: bug - iis tomcat Importancia: Alta hi ! i've set up tomcat to serve jsp files within iis (redirection) everything works perfect but if i connect via telnet to iis at port 80 and try to GET a specific site the server returns the WHOLE jsp code ! is this a known problem ? thanks thomas marban werksleitung werk3AT internetmedien oeg rosenstrasse 1 4040 linz tel. +43 (0) 732 71 65 29 12 fax. +43 (0) 732 71 65 29 3 mail-direkt. [EMAIL PROTECTED] mail-all. [EMAIL PROTECTED] web. www.werk3.at application/ms-tnef
RE: How to obtain user's IP address
Title: RE: How to obtain user's IP address The name of the 'user' would be dependent on the machine which called the servlet. Where did you get request.getRemoteUser()?? There is a getRemoteHost and getRemoteAddr method to the ServletRequest class which will return either the host or IP-Address of the calling machine... public abstract String getRemoteHost() Returns the fully qualified host name of the agent that sent the request. Same as the CGI variable REMOTE_HOST. Never having tried it myself, cannot say if it is reliable under all browsers or calling contexts -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 7:35 AM To: [EMAIL PROTECTED] Subject: How to obtain user's IP address Hello, I need to know who visits my web page. In jsp, I got null when I used request.getRemoteUser(). Then any other mehods can obtain user's name or IP address? Thanks Jack Li
RE: How is your knowledge on TomCat??????
TomCat relies on a web server's availability, which Netware isn't. (Which might explain the lack of response, til this.) Look into whatever web server might be available - start there. Arnold Shore Annapolis, MD USA -Original Message- From: Christian Hargraves [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 10:48 AM To: [EMAIL PROTECTED] Subject: Re: How is your knowledge on TomCat?? I asked a friend that worked for Novell for 7 years as a developer for Novell. his first impression to this question was that NetWare doesn't have very good scripting support. I wish I could tell you more, but even he doesn't know how to do it. His suggestion would be to simplify it a lot and try hard-coding some of the stuff in there.. Christian On Thursday 03 May 2001 06:58, you wrote: I have sent three questions on how to get tomcat running on NetWare, I havent even got one single answer on how to do it or not even any ideas. Cant you anything about TomCat, now have I give up though Novell Portal Services is running on Apache and TomCat. All I want is a startscript but nooo.
Re: Objects in Vector are loosing type
On Thu, 3 May 2001, Endre Stølsvik wrote: On Wed, 2 May 2001, Joel Parramore wrote: | Well, Endre, comments such as classloading is totally fucked, | while having a nice kewl sound-bite quality, really don't explain | what is going on too well to someone who hasn't encountered the | problem before. It's just that it kind of annoys me. It's definately an huge itch, but I don't have the time to scratch it. Stupid thing to say, but what's annoying is that it's not quite recongized by the developers as a problem, which truly puzzles me.. How do you know they don't consider it a problem? Maybe it's not as easy to solve as you think it is. Or maybe there are other things they consider higher priority. Maybe you can contribute some time and code the solution yourself. I have to restart tomcat each and every time I make one single change to _anyting_ of my code. This is the most time consuming part of developing on Tomcat, I feel. (How's Jetty doing, btw??) *Every* time, for any change? That doesn't sound right. Servlet reloading works for me (I'm using Tomcat 3.2.1). The classloader/class cast issue is different than simple reloading of servlets. Also, forgot to mention, the reloader doesn't notice if any _other_ classes have changed, e.g. your User object or whatever. Only the directly affected Servlet, and only the first one hit, will get reloaded. [ ... ] I don't believe this is correct either -- for classes that are in the servlet directories (as opposed to the classpath), I believe reloading works. Maybe your app could use some reorganizing. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
RE: TOMCAT and ORACLE
Hi, I still get the same error message after i tried the way that you all provided.. By the way , what does this error means: java.sql.SQLEXception, IOException:Connection refused(error=1257469)... regards, Josephine From: Christopher Kirk [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: TOMCAT and ORACLE Date: Wed, 2 May 2001 11:21:22 +0100 MIME-Version: 1.0 Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id MHotMailBCB92B30009A4004315B40D02A2910780; Wed May 02 03:23:45 2001 Received: (qmail 29715 invoked by uid 500); 2 May 2001 10:21:50 - Received: (qmail 29623 invoked from network); 2 May 2001 10:21:40 - Received: from smtp.gtl.com (HELO ?194.203.31.196?) (194.203.31.196) by h31.sny.collab.net with SMTP; 2 May 2001 10:21:40 - From tomcat-user-return-33343-siewlinglim Wed May 02 03:25:44 2001 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:[EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] X-Mailer: Internet Mail Service (5.5.2650.21) X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Your problem is the service name, the string you used was meant to use a SID.. try the following instead, it uses the service name as specified from your TNS. jdbc:oracle:thin:@(description=(address=(host=myhost)(protocol=tcp)(port=152 1))(connect_data=(service_name=oracle -Original Message- From: Lim SiewLing [mailto:[EMAIL PROTECTED]] Sent: 02 May 2001 11:14 To: [EMAIL PROTECTED] Subject: RE: TOMCAT and ORACLE The contents of my TnsName.ora is as follow: HRPDB = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(PORT = 1521)(HOST = myhost)) ) (CONNECT_DATA = (SERVICE_NAME = oracle) ) ) beside, I could connect to the database using SQL+. Regards, Josephine From: Herrick, Chuck Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' Subject: RE: TOMCAT and ORACLE Date: Tue, 1 May 2001 14:40:53 -0500 MIME-Version: 1.0 Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id MHotMailBCB8622100324004324F40D02A290EFB0; Tue May 01 13:05:53 2001 Received: (qmail 44949 invoked by uid 500); 1 May 2001 20:05:40 - Received: (qmail 44931 invoked from network); 1 May 2001 20:05:39 - Received: from hqfirex1.agedwards.com (192.52.184.62) by h31.sny.collab.net with SMTP; 1 May 2001 20:05:39 - Received: from hqmswpn1.agedwards.com by hqfirex1.agedwards.com via smtpd (for h31.sny.collab.net [64.208.42.41]) with SMTP; 1 May 2001 20:05:43 UT Received: from hqhampn2.agedwards.com (hqhampn2.agedwards.com) by hqmswpn1.agedwards.com (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; Tue, 1 May 2001 15:00:06 -0500 Received: from hqexchn2.agedwards.com (unverified) by hqhampn2.agedwards.com (Content Technologies SMTPRS 2.0.15) with ESMTP id for ; Tue, 01 May 2001 14:35:27 -0500 Received: by hqexchn2.agedwards.com with Internet Mail Service (5.5.2650.21)id ; Tue, 1 May 2001 14:35:27 -0500 From tomcat-user-return-33269-siewlinglim Tue May 01 13:07:19 2001 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list [EMAIL PROTECTED] Message-Id: X-Mailer: Internet Mail Service (5.5.2650.21) X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N It would also help to know if you've been able to connect to your Oracle using SQL+. And, the contents of your TNSNames.ora file. -Original Message- From: John Towell [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 2:34 PM To: '[EMAIL PROTECTED] ' Subject: RE: TOMCAT and ORACLE Hi Lim It would help to see the connection string you're using ... John -Original Message- From: Lim SiewLing To: [EMAIL PROTECTED] Sent: 5/1/01 2:22 PM Subject: TOMCAT and ORACLE Hi, I'm currently engaged on a school project which uses Tomcat3.2.1, ORACLE and Java to develop an intranet application. My program run smoothly when retrieving data in Access database but the data could not be retrieve using ORACLE. The error message that I get is The Network adapter could not establish a connection. Could anyone please help me by telling me what is the problems of connecting the Tomcat to the ORACLE? I had start the listener and the ORACLE database but still got the same error. Do I need to configure the server.xml or web.xml file? Please help meYour help will be very much appreciated. Regards, Josephine _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com . *** WARNING: All e-mail sent to and from this address will be received or otherwise recorded by the A.G. Edwards
Re: /servlet/ mapping
On Thu, 3 May 2001, Hari Yellina wrote: you have to change the settings in server.xml file. Thats is everything is going to be fine. You're also going to need to make some changes in the tomcat/apache conf file so that apache knows to pass the relevant URLs to tomcat. And beware, if you make such a change (to avoid having to put a context name in the URL), you may end up with more things going to tomcat than you really want. - Original Message - From: Patrick Medhurst [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 8:40 PM Subject: /servlet/ mapping I am new to Tomcat, so please be gentle. To access a servlet, the default is to use: http://myhost.com:8080/bob/servlet/bob How can I change the mapping to use the following instead: http://myhost.com:8080/servlet/bob Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Novell GroupWise WebAccess
I'll ask again and please try to keep the laughter at a minimum. Remember it wasn't my decision to use Novell's GroupWise. I am running Apache 1.3.17 on an NT 4.0 server with SP6. I have installed Tomcat and the examples are running OK. I am running into trouble installing and running the GroupWise WebAccess 5.5.4.1 components. Novell does not support Apache under NT. Is there anyone who has a similar setup that would be willing to assist me in getting WebAccess running. Thanks, Doug Herendeen U.S. Bureau of Reclamation 916-978-5426 [EMAIL PROTECTED]
tomcat 3.2.1 hanging
Hi, I have tomcat 3.2.1 running on linux with Sun jvm 1.2 (native threads) with apache. At least once a day (but usually more often) tomcat will hang, i.e. it won't accept anymore requests. This will happen whether Irequest a servlet or a JSP-page. Once this happens no more requests are fullfilled, all connections time out. The only way to fix the problem is to kill the jvm and restart tomcat. I had no problems at all running the same webapp on apache/tomcat on a Win2K box. Is this a known problem? Does anyone have a solution? I really don't know where to start looking for this one. Thanx, Dante le Poole
Re: Objects in Vector are loosing type - classload problems
I have to restart tomcat each and every time I make one single change to _anyting_ of my code. This is the most time consuming part of developing on Tomcat, I feel. (How's Jetty doing, btw??) Of course, you are free to use any implementation, or you could even submit an example of how to fix it. Personally, I think the classloader scheme itself is rather broken, which apparently is why there are so many problems. It seems absurd to me that the classloader hierarchy only allows you to go UP, but now down. We've seen this problem so many times, such as when using JMS and wanting to put the JMS files in a base classloader (like on the CLASSPATH) or JCE/JNDI code that may be loaded in the initial classloaders because they are defined in lib/ext or in java.security properties file. If you call those libraries and they need to serialize your object or anything, they can't do it because your object was probably created using the classloader created by the Tomcat context. I can see that the first check for a class should be in the current classloader, then it can move its way up the hierarchy to the top level classloader, but if it's not found, it would be great if it could then start to look DOWN the hierarchy to see if it can find it. I suspect there's some odd security reason not to do this, but it seems unlikely since you first give the system the ability to look up the chain and only go down if it's not found. But Tomcat 4.0 was supposed to fix things, but my quick test shows there are still problems keeping the classloaders all separated. When I run two virtual host contexts in the same Tomcat instance, and both contexts make use of JMS, JNDI, JDBC and JCE, there's always a conflict that makes it not work (like static/singleton instances being created under one context being reused in the other context). By putting them in separate Tomcats, everything works. So, there's either a longstanding bug in the Tomcat 3.2 and 4.0 classloader scheme, or there's a basic conflict in the behavior of classloaders that is really not workable. This probably gets even worse in EJB worlds, but I'm not sure. David
Ang: How is your knowledge on TomCat??????
First: I'm sorry that I have insulted all you people here in the group, but after three tries without a single comment I had to try something. Second: I've got my answer. Thank you a million times (and again sorry) In some of the answers I was recommended to use Linux wich is a very good alternative. But there are some things about using NetWare in my environment that I cant find on other Os:es for example using virtual homedirectories on other servers, when someone uses the /~username in a url I look into a folder in that users homedirectory witch is on another servers and some servers is over a wan link (those servers are of course NetWare). I use Ftp like that too. I'ts things like that that makes me use NetWare, Apache and now TomCat. Another thing is I dont have time to learn Linux enough to make the server safe, and I dont want to use MS products more than I absolutely have to. I think it's bad that there are nothing about using TomCat on NetWare in the manuals. Novell have a product called Novell Portal Services wich is running on Apache and TomCat (even on NetWare), but all documents there say you'll use a strttc12.ncf file to start TomCat and that file comes with NPS. Have a nice day [EMAIL PROTECTED] 2001-05-03 14:58:09 I have sent three questions on how to get tomcat running on NetWare, I havent even got one single answer on how to do it or not even any ideas. Cant you anything about TomCat, now have I give up though Novell Portal Services is running on Apache and TomCat. All I want is a startscript but nooo.
Re: How to obtain user's IP address
Hi Jack, Try get request.getRemoteAddr(). Good Luck ;) Francis --- Jack Li [EMAIL PROTECTED] wrote: Hello, I need to know who visits my web page. In jsp, I got null when I used request.getRemoteUser(). Then any other mehods can obtain user's name or IP address? Thanks Jack Li __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Error when compiling mod_jk under HPUX 11.00 : jk_global.h
Hi, In general, it's an iterative process. You don't have sys/select.h on your machine. Fine. Comment it out and try your compile again. This time it'll fail because those items that it expected to find definitions for in that header file aren't there. So you'll need to find where on your system those items are defined. (In this case, you're going to need to find where the select(2) call is defined on your system, as well as the macros that are used with it. Your system's man pages are a good place to start your search.) Where you commented out the '#include sys/select.h', now add in the correct includes for your system. And so on... Repeat this process for all of the headers you don't have, until you don't get any errors any more. I don't have access to an HPUX system, so I can't help any more than that, sorry. Brendan -- Brendan McKennaEmail: [EMAIL PROTECTED] Development Strategist Phone: +353-61-338177 Taringold Ltd. Fax: +353-61-338065
Multiple JDBC Realms
Hi, I've got two contexts within my tomcat install. I want the login for each context to go to different databases / tables for authentication. Is it possible to configure different contexts to send authentication requests to different places? Is this done by having multiple ContextManager elements defined in server.xml? Cheers Nathan
Re: Error when compiling mod_jk under HPUX 11.00 : jk_global.h
Hi, Ok, it works ... I've only comment the line : #include sys/select.h in ../jk/jk_global.h Then the make command never give me any error message. So, i copy mod_jk.so in /usr/lib/apache, i modify /etc/httpd/conf/httpd.conf, and add the following lines : ... LoadModule jk_module/usr/lib/apache/mod_jk.so ... AddModule mod_jk.c ... JkWorkersFile /opt/jakarta/jakarta-tomcat/conf/workers.properties JkLogFile /var/log/httpd/default/mod_jk.log JkLogLevel warn ... Before these modification, Apache works properly. Now, when i start apache, i've got this error message : # /usr/sbin/apachectl start /usr/lib/dld.sl: Unresolved symbol: dlclose (code) from /usr/lib/apache/mod_jk.so /usr/lib/dld.sl: Unresolved symbol: dlopen (code) from /usr/lib/apache/mod_jk.so /usr/lib/dld.sl: Unresolved symbol: dlerror (code) from /usr/lib/apache/mod_jk.so /usr/lib/dld.sl: Unresolved symbol: dlsym (code) from /usr/lib/apache/mod_jk.so Syntax error on line 51 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/mod_jk.so into server: Unresolved external /usr/sbin/apachectl start: httpd could not be started The line 51 is : LoadModule jk_module/usr/lib/apache/mod_jk.so Does anybody get this error ? Regards, Marc-Henri PAMISEUX [EMAIL PROTECTED]
RE: ODBC-JDBC ** with JSP ** : 'No suitable driver'
Brendan, If you still have this problem ... I had the same problem with Oracle8i, NT 4.0. But, I had it only with Server side internal driver - kprb. The thin and the oci worked fine. So, the question is which driver are you using (there are 4 of them)? I hope it will help, Igor Igor Klacansky UCSD, Cancer Center [EMAIL PROTECTED] -Original Message- From: Brendan McKenna [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 8:37 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: ODBC-JDBC ** with JSP ** : 'No suitable driver' Hi, If you unzipped the file into the WEB-INF/lib directory, then you did it in the wrong place. They should go in the WEB-INF/classes directory. I've been using that approach successfully here for a while now. Brendan : Ok, I'll try that. : Nevertheless, I already tried to put the developped classtree of : classes12.zip (oracle.jdbc) in the lib directory (unzipped file), and : it didn't work properly either. I may guess that renaming the .zip in .jar : would have the same (non-)effect, wouldn't it ? : : Jean-François : : -- Brendan McKenna Email: [EMAIL PROTECTED] Development Strategist Phone: +353-61-338177 Taringold Ltd. Fax: +353-61-338065
RE: How to obtain user's IP address
request.getRemoteAddr() -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: 03 May 2001 15:35 To: [EMAIL PROTECTED] Subject: How to obtain user's IP address Hello, I need to know who visits my web page. In jsp, I got null when I used request.getRemoteUser(). Then any other mehods can obtain user's name or IP address? Thanks Jack Li
tomcat with IIS
I am trying to run tomcat with IIS. I have it set up out of process. This works great. I can see the examples, etc. I would like for tomcat to be able to run .jsp files from my wwwroot directory. The problem is 1. I don't know how to change the tomcat webapps to point to a different directory, and 2. If I change IIS to point to the Tomcat directory, it won't run .jsp pages from there, but it will run asp. I would like to have a directory that will be able to have .asp and .jsp files in it and be able to execute. Any advice, links to documentation, etc would be appreciated. Thank you, Keith Willis
Re: hotspot jvm crashes in production
Hello, I have the same problem with exactly the same software configuration and i have no answer. PS : Are you using the Hotspot JVM with the -server switch ? Java Poop wrote: Hi - We have recently moved our production site to use JSPs with Tomcat 3.2.1/Apache 1.3.17/Sun JDK 1.3.0/Solaris 2.6. After running for a couple of hours, our JVM crashes with the following error: An irrecoverable stack overflow has occurred. # # HotSpot Virtual Machine Error, Unexpected Signal 11 # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 4F533F534F4C415249530E435050079A 01 # # Problematic Thread: prio=5 tid=0x2149d0 nid=0x25 runnable Has anyone seen similiar problems? Is there anything in the settings we could set to avoid this? jp -- [EMAIL PROTECTED] INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41 06902 SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02
RE: TC4 B3 SSL: Error in SSLServerSocketFactory: initProxy()?
Nop :( -Original Message- From: Patrik Järnefelt [mailto:[EMAIL PROTECTED]] Sent: May 3, 2001 11:15 AM To: [EMAIL PROTECTED] Subject: RE: TC4 B3 SSL: Error in SSLServerSocketFactory: initProxy()? The JSSE seem to be properly setup: I have the JSSE in the CLASSPATH also under $JAVA_HOME\jre\lib\ext, and $CATALINA_HOME/server/lib, also registered the Provider in $JAVA_HOME\jre\lib\security\java.security Does it work if you remove the jsse jars from $CATALINA_HOME/server/lib?
Re: Servlet -- File -- Web-browser
can any one helps me out? thanks again. --- alan leung [EMAIL PROTECTED] wrote: Hi, I have a servlet reads a file from FileInputStream and copy those bytes to ServletOutputStream and send back to web browser. But if user click CANCEL while downloading in netscape. i will get an exception in doGet method. -- IOException in doGet(): java.net.SocketException: Connection aborted by peer: socket write error if user click CANCEL in IE (Internet Explorer). i didn't get any exception print out. Both cases is browser connect to servlet engine directly (tomcat) if browser connects to apache server -- then tomcat; no exception got caught for netscape and IE if user click CANCEL while download. What i think is clicking CANCEL while downloading a file would lost the TCP connection without ending it. which would always rise an IOException right? Why if i use apache server w/ tomcat or IE connect to tomcat directly won't cause IOException in doGet() method? thanks. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: How is your knowledge
First: I'm sorry that I have insulted all you people here in the group, but after three tries without a single comment I had to try something. A reply with the comment: Read the archive on http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2 had saved this list from my insult. Second: I've got my answer. Thank you a million times (and again sorry) In some of the answers I was recommended to use Linux wich is a very good alternative. Please don't start with recommendations to use a specific os. There are going to be a platform war here sooner or later, I know from a HTML list i'm in. Under three weeks the only thing was a platform war But there are some things about using NetWare in my environment that I cant find on other Os:es for example using virtual homedirectories on other servers, when someone uses the /~username in a url I look into a folder in that users homedirectory witch is on another servers and some servers is over a wan link (those servers are of course NetWare). I use Ftp like that too. I'ts things like that that makes me use NetWare, Apache and now TomCat. NDS is another huge reason using NetWare. Another thing is I dont have time to learn Linux enough to make the server safe, and I dont want to use MS products more than I absolutely have to. Some people wrote that I was sending to the user wich is wrong, I sent to the mail list. I didn't know there was an archive for the mailing list. I do now and will search there before sending a question. I think it's bad that there are nothing about using TomCat on NetWare in the manuals. Novell have a product called Novell Portal Services wich is running on Apache and TomCat (even on NetWare), but all documents there say you'll use a strttc12.ncf file to start TomCat and that file comes with NPS. Have a nice day
RE: bug - iis tomcat
Let me see if I understand what your problem is: You have IIS set up with Tomcat for some virtual server and everything works fine. However, when you telnet to port 80 of the machine and send GET /\n\n, you are getting the actual JSP code returned. Is this correct? If so, keep reading, otherwise, try to give a little more description of your problem. IIS Virtual servers are usually set up to route requests for virtual servers based upon a header (I think its called host) in the TCP (or IP, I can't remember right now) packet that indicates the name of the host the client was trying to reach. When you telnet localhost (or 127.0.0.1), you don't have this header field set the same as when you use the virtual name. So, it seems like your problem is that the JSP is in the root directory of your actual server and IIS is returning this (and not using Tomcat because Tomcat isn't set up for this web server). To solve this problem, there are several solutions. You could change the configuration of the virtual servers so that this doesn't occur, you could move the web root/Tomcat source directory so that the JSPs aren't available, or you could just block access to the server (require authentication). Randy -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 11:55 AM To: '[EMAIL PROTECTED]' Subject: RE: bug - iis tomcat Which versions of tomcat are you trying ? Saludos , Ignacio J. Ortega -Mensaje original- De: thomas marban [werk3AT] [mailto:[EMAIL PROTECTED]] Enviado el: jueves 3 de mayo de 2001 16:52 Para: [EMAIL PROTECTED] Asunto: bug - iis tomcat Importancia: Alta hi ! i've set up tomcat to serve jsp files within iis (redirection) everything works perfect but if i connect via telnet to iis at port 80 and try to GET a specific site the server returns the WHOLE jsp code ! is this a known problem ? thanks thomas marban werksleitung werk3AT internetmedien oeg rosenstrasse 1 4040 linz tel. +43 (0) 732 71 65 29 12 fax. +43 (0) 732 71 65 29 3 mail-direkt. [EMAIL PROTECTED] mail-all. [EMAIL PROTECTED] web. www.werk3.at
Re: Memory usage
Hello, i have tested the Sun VM JDK1.30_02 as Server VM. When I start my servlets and use the VM with the option -verbose:gc, it shows, that the gc will do his work ervery second when you work with the VM. Sometimes (?) it makes a FULL GC, that gives more memory free, but I don't know exactly the difference (perhaps it will call finalize first). I have also testet to make explizit calls like System.gc() or System.runFinalization(), it becomes no difference to the memory usage without that call. Set the TOMCAT_OPTS variable to -verbose:gc and you'll see. Btw you could set the default start option of the SUN VM in /jre/jvm.cfg. Greetings, Wolle William Kaufman wrote: Nope. If you _didn't_ null out the reference, you're guaranteed that it _won't_ get garbage-collected; but if you _do_ null it out, you're only making it _available_ for garbage collection. The actual garbage collection only happens when the VM runs out of memory, or some unspecified time after calling System.gc(). Or, when the VM just plain wants to--the JLS isn't specific about this. -- Bill K. -Original Message- From: Jurrius, Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 7:43 AM To: [EMAIL PROTECTED] Subject: RE: Memory usage Correct me if I'm wrong. If for instance I want a bean removed knowing that System.gc() does not happen immediately, would setting the bean equal to null force the bean to be removed from memory right away and not have to rely on the garbage collection to eventually take place? Mark -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 10:07 AM To: '[EMAIL PROTECTED]' Subject: RE: Memory usage That your finalize method is called, doesn't mean that the garbage collector has released your objects. The only way to be shure that this happens, is to explicitly run System.gc(). Even that's not sufficient: it just suggests to the VM that garbage-collecting might be a good idea right now. Any actual garbage collection would take place later, in another thread. And, even when it does happen, that doesn't mean all the memory will necessarily be released to the OS: the VM will hold on to some so that it won't need to go back to the OS on the next allocation. You might want to get a memory profiler (like JProbe) and see where the memory is going. At the very least, try doing something like, Runtime rt = Runtime.getRuntime(); System.err.println(Free=+rt.freeMemory()+, total=+rt.totalMemory()); often, to see how much memory is actually in use, and how much is just allocated from the OS. -- Bill K. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 5:51 AM To: '[EMAIL PROTECTED]' Subject: AW: Memory usage That your finalize method is called, doesn't mean that the garbage collector has released your objects. The only way to be shure that this happens, is to explicitly run System.gc(). Otherwise it's up to the VM when it will free the memory. (Sun's JDK per default only releases memory if otherwise an OutOfMemoryError would occur, so unless you reach this border the VM will constanly grow) See also the options for the JVM: -verbose:gc (Any VM) -Xincgc (Sun SDK 1.3.*) -Xms (Sun + IBM) -Xmx (Sun + IBM) -Ursprüngliche Nachricht- Von: Garry De Toffoli [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 3. Mai 2001 14:34 An: [EMAIL PROTECTED] Betreff: Memory usage snip/ I have in trouble with the memory usage with Tomcat 3.21, WinNt 2000 and Jdk 1.3 of Sun. the problem is that any operation does not release the memory occuped; to control the memory usage I use the Task Manager; when Tomcat start, the memory used from the process Java is of 9608 K; when I request a Jsp page that has an error, like a variable not declared, the memory used is 11868K; if I wait for 1 ay also, this value does not change, so the memory used is not released, running a correct Jsp page, the memory used increase, and this is not released yet; I have written a log on the finalize method of my class, and this is called, so the garbage collector release all my object. This behavoir is normal? Probably changing the version of Tomcat this problem may be corrected. snip/
RE: TC4 B3 SSL: Error in SSLServerSocketFactory: initProxy()? - Works now!
It works perfectly under Linux, so I did the same to the Win2K machine and it is working now. Thanks you. Don't know what excatly did it, but I changed the JSSE provider to be number 2 in java.security, changed the Keystore from use c:\ \ \ to c:/ / / and removed the jsse jars from $CATALINA_HOME/server/lib Thanks for everything, PK -Original Message- From: Patrik Järnefelt [mailto:[EMAIL PROTECTED]] Sent: May 3, 2001 11:15 AM To: [EMAIL PROTECTED] Subject: RE: TC4 B3 SSL: Error in SSLServerSocketFactory: initProxy()? The JSSE seem to be properly setup: I have the JSSE in the CLASSPATH also under $JAVA_HOME\jre\lib\ext, and $CATALINA_HOME/server/lib, also registered the Provider in $JAVA_HOME\jre\lib\security\java.security Does it work if you remove the jsse jars from $CATALINA_HOME/server/lib?
Re: Tomcat, IIS and virtual hosts
Chris: I've made the same modifications to server.xml as you describe below, but there appears to be more to it when working with IIS. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 9:32 AM Subject: RE: Tomcat, IIS and virtual hosts here is what i am using to Vhost with tomcat and in the server.xml Host name=xxx.com Context path= docBase=webapps/xxx debug=0 reloadable=true / /Host Host name=www.xxx.com Context path= docBase=webapps/xxx debug=0 reloadable=true / /Host with apache i just include the mod_jk.conf-auto i assume that IIS has a mechanism to include the iis_redirect.conf-auto file. i found the only other thing to do is ensure the webserver can't server the WEB-INF and META-INF directories. hope this helps chris -Original Message- From: Brian Murray [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 9:32 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat, IIS and virtual hosts snip Can someone send me an example of how to configure Tomcat to work with virtual hosts? Hi Mr. Lebowitz. I've been after the same thing. Unfortunately the score sits at Requests 2, Responses 0. If you receive any help off the list, I'd greatly appreciate it if you would share it with me. If I receive any, I'll certainly pass it along to you. Good luck. = __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Tomcat Oralce Discoverer
Anybody have experience with getting Oracle Discoverer 3ito run under TomCat? Get your FREE download of MSN Explorer at http://explorer.msn.com
Ang: RE: How is your knowledge on TomCat??????
OK here I have to come with some comments. NetWare (NW) comes with Netscape enterprise server (and livewire). There are a build of Apache for NW, as long as you have a compiler for NLM:s (NetWare EXE:s) you can compile all C modules with no or very little modification. NW supports perl and VB Script (called NSN) straight from the box. NW 5.1 have IBM:s application server WebSpere bundled. NW also runs everything in java. And saying that NetWare is not as stable as Linux is wrong. NW is as stable as Linux. Please dont let this start a platform war, Linux is good, NT is working (at least some times, according to my experience) and NetWare is good. I just had to correct some misses. [EMAIL PROTECTED] 2001-05-03 18:02:36 TomCat relies on a web server's availability, which Netware isn't. (Which might explain the lack of response, til this.) Look into whatever web server might be available - start there. Arnold Shore Annapolis, MD USA -Original Message- From: Christian Hargraves [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 10:48 AM To: [EMAIL PROTECTED] Subject: Re: How is your knowledge on TomCat?? I asked a friend that worked for Novell for 7 years as a developer for Novell. his first impression to this question was that NetWare doesn't have very good scripting support. I wish I could tell you more, but even he doesn't know how to do it. His suggestion would be to simplify it a lot and try hard-coding some of the stuff in there.. Christian On Thursday 03 May 2001 06:58, you wrote: I have sent three questions on how to get tomcat running on NetWare, I havent even got one single answer on how to do it or not even any ideas. Cant you anything about TomCat, now have I give up though Novell Portal Services is running on Apache and TomCat. All I want is a startscript but nooo.