tomcat and hibernate
Hello everybody, i was to set up a tomcat webapp connected to a database through hibernate, but haven't been able. First my environment: opensuse 10.0 + hibernate 3.2 +jdk1.6 +tomcat 5.5. I created a HibernateListener and a HibernateUtil to manage sessions. I registered the Listener int the web.xml. When i restart tomcat, the system loads the Listener which try to get session from HibernateUtil, which fails with: java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration But hibernate3.jar is in $WEBAPP/WEB-INF/lib folder, and it is not loaded. Other jars in this lib folder are used with no trouble by this application. If i put hibernate3.jar in $JDK/jre/lib/ext suddently everithing works fine. Any Idea? thanks in advance -- Lorenzo Cerini Info.era srl Trieste tel. +39040.67027360 fax. +39040.67027363 -- Le informazioni trasmesse sono da intendere solo per la persona e/o societa' a cui sono indirizzate, possono contenere documenti confidenziali e/o materiale riservato. Qualsiasi modifica, inoltro, diffusione o altro utilizzo, relativo alle informazioni trasmesse, da parte di persone e/o societa', diversi dai destinatari indicati, e' proibito ai sensi della legge 196/2003. Se Lei ha ricevuto questa mail per errore, per favore contatti il mittente e cancelli queste informazioni da ogni computer. -- Please consider the environment before printing this mail note - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk --enable-prefork
Hi Fred, mostly yes, but you could write modules, that break this assumption. An indication is mod_cgi, which exists as mod_cgi and mod_cgid. Another hint into this direction is, that httpd doesn't provide a clean way of exchanging MPMs after compilation. In general it is better to compile the module against the MPM you want to use unless you know the code of the module good enough to judge about its MPM independancy. Regards, Rainer fredk2 wrote: Many thanks for your reply. Is it always implied that if an apache module is deemed 'thread safe' it also implies that it will work in prefork environment maybe at the cost of raw performance ? Thanks again - Fred Rainer Jung-3 wrote: fredk2 wrote: Hi, The documentation for mod_jk (eg. version 1.2.25) about --enable-prefork says: In case you build mod_jk for a multi-threaded Apache httpd 2.0/2.2 MPM (Multi-Processing Module), some areas of mod_jk code need to be synchronized to make it thread-safe. Because configure can not easily detect, whether your are using a multi-threaded MPM, mod_jk by default is always build thread-safe for Apache httpd 2.0/2.2. If you are sure, that your MPM is not multi-threaded, you can use --enable-prefork to force the removal of the synchronization code (thus increasing performance a bit). For instance, the prefork MPM is not multi-threaded. For Apache httpd 1.3 this flag will be set automatically. If you specify apxs, doesn't it require a config_vars.mk which has a value pair MPM_NAME = prefork and thus configure could know that prefork was used? Alternatively assuming that apxs is in the same directory then 'httpd -V' could tell that Server MPM: Prefork You are right: apxs -q MPM_NAME would do the trick. I didn't find that one, thanks. On the other hand, we would still need to manage a list of MPMs (which MPM on which platform is single-threaded) and there is some danger, that people have more than one mpm installed (like on many linux distros) and compile against prefork, later use against worker. All in all I'm still in favor of building thread safe by default and only when explicitely requested removing the thread synchronization. The question I have: if the Apache httpd v2.2 is prefork and the mod_jk is compiled default threaded, are there any potential instabilities? (on Solaris and Linux) No, not that we aware of any. On both platforms, the default was building thread safe for a long time. We use pthread mutexes and no problems have been reported with those. Many thanks - Fred Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: when does use mod_jk and jni?
Adding to Bill: it was used to embed the backend process into the Apache httpd process space. It's not maintained any longer and we should add appropriate wording to the docs: Don't use it.. Regards, Rainer fredk2 wrote: Hi, Reading the documentation for mod_jk (1.2.25 --enable-jni), I am curious about something. In what case do you use mod_jk jni ? Thank you - Fred - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tc xmlhttprequest
Chris Pat wrote: Hi David That is just macro syntax. The real issue is why/how to avoid the security violation on using xmlhttprequest when launching the webapp from localhost or externally. I dont understand what to put where and how to access it so to allow xmlhttprequest to execute. David Smith [EMAIL PROTECTED] wrote: No comment on the whole bean construct other than to say that's too complicated for my tastes. My personal preference on the whole resources inside of WEB-INF front is to just place the resources outside of WEB-INF. Then configure a security constraint or write a filter on the request to handle access control. Just seems easier to me. @Chris Pat: are you saying that you have JSP commands actually inside your javascript library file? p --David Chris Pat wrote: Hi David I did it partially this way, and it works. My objects in the js file are executing. http://:/ decarta javascript api example /extPages/myScripts.js However I still get the Permission denied to call XMLHttpRequest.open... I thought by putting a jsp:forward outside my WEB-INF and calling it internally from localhost I would avoid that and worry about how to access it from Internet; now I first have to get around this security issue on localhost so I can test and ass-ume it will also allow access from browsers externally. David Smith wrote: As for that last bit, I have found that you can specify the path as /FolderInWebApp/Script/myScript.js You still need either the context path or make it relative to the page's URL or the client won't be able to resolve it. This doesn't work like the jsp internals that are aware of the context path. --David Nathan Bahr wrote: hmm what exactly do you need ajax for? From my recollection, ajax is simply a method of making mini-requests to the server so the interaction with your webapp is a bit more fluid. As for that last bit, I have found that you can specify the path as /FolderInWebApp/Script/myScript.js instead of using the fully qualified name. When you start the path with '/' it looks in the base webapp directory. Lemme know if this helps any. [EMAIL PROTECTED] 09/10/07 3:23 PM Hello Any tips on serving a ajax page with tomcat? I am now calling the page with a jsp:forward outside of the web-inf. Do I also have to fully unc path to the *.js files, like src=localhost:8080/context/intPages/myScripts.js ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: tc xmlhttprequest
Keep in mind an XMLHttpRequest is very much the same as any other client side request as far as tomcat is concerned and follows the same rules. As a test, try a direct access via the browser. If it doesn't work, it won't work in javascript either. --David Chris Pat wrote: Hi David That is just macro syntax. The real issue is why/how to avoid the security violation on using xmlhttprequest when launching the webapp from localhost or externally. I dont understand what to put where and how to access it so to allow xmlhttprequest to execute. David Smith [EMAIL PROTECTED] wrote: No comment on the whole bean construct other than to say that's too complicated for my tastes. My personal preference on the whole resources inside of WEB-INF front is to just place the resources outside of WEB-INF. Then configure a security constraint or write a filter on the request to handle access control. Just seems easier to me. --David Chris Pat wrote: Hi David I did it partially this way, and it works. My objects in the js file are executing. http://:/ decarta javascript api example /extPages/myScripts.js However I still get the Permission denied to call XMLHttpRequest.open... I thought by putting a jsp:forward outside my WEB-INF and calling it internally from localhost I would avoid that and worry about how to access it from Internet; now I first have to get around this security issue on localhost so I can test and ass-ume it will also allow access from browsers externally. David Smith wrote: As for that last bit, I have found that you can specify the path as /FolderInWebApp/Script/myScript.js You still need either the context path or make it relative to the page's URL or the client won't be able to resolve it. This doesn't work like the jsp internals that are aware of the context path. --David Nathan Bahr wrote: hmm what exactly do you need ajax for? From my recollection, ajax is simply a method of making mini-requests to the server so the interaction with your webapp is a bit more fluid. As for that last bit, I have found that you can specify the path as /FolderInWebApp/Script/myScript.js instead of using the fully qualified name. When you start the path with '/' it looks in the base webapp directory. Lemme know if this helps any. [EMAIL PROTECTED] 09/10/07 3:23 PM Hello Any tips on serving a ajax page with tomcat? I am now calling the page with a jsp:forward outside of the web-inf. Do I also have to fully unc path to the *.js files, like src=localhost:8080/context/intPages/myScripts.js ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat memory issues
Peter Warren [EMAIL PROTECTED] skrev i en meddelelse news:[EMAIL PROTECTED] As far as I under stand I should NOT close the stream object as I didn't open it. That's my understanding too. When I said I was keeping connections open, I meant I was opening connections from the client and not closing them. Since I'm using comet servlets, the server keeps the connections open until the client disconnects. When I open many connections, I see classes in my heap similar to those you show. If you keep a reference to the Request object tucked away somewhere on the server inadvertently, the associated buffers won't go away and memory will continue to grow. Is it possible that you're keeping a reference to the Request or any of the streams somewhere? Is it possible that some of your servlets aren't returning and thus never closing their connections? ACCA is referenced by ACC. ACCB is referenced by a org.apache.coyote.Response. ACCC is referenced by a class[] which again is referenced by a org.apache.coyote.Request. That object is referenced by: org.apache.coyote.http11.Http11Processor, org.apache.coyote.http11.InternalInputBuffer org.apache.coyote.Response org.apache.catalina.connector.Request org.apache.catalina.connector.InputBuffer org.apache.coyote.RequestInfo. Best regards and thanks for your response, Morten - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: when does use mod_jk and jni?
thank you very much - that explains the scant references I found out there :-) Rainer Jung-3 wrote: Adding to Bill: it was used to embed the backend process into the Apache httpd process space. It's not maintained any longer and we should add appropriate wording to the docs: Don't use it.. Regards, Rainer fredk2 wrote: Hi, Reading the documentation for mod_jk (1.2.25 --enable-jni), I am curious about something. In what case do you use mod_jk jni ? Thank you - Fred - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/when-does-use-mod_jk-and-jni--tf4417743.html#a12613799 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Internet Explorer bug w/SSL+ loadCache
In a existing application I enforced SSL for login (environment tomcat/IE/). The application was working fine before I make this change. I am getting a javascript error on loading user data( used this for caching http://msdn2.microsoft.com/en-us/library/ms531424.aspx ). For example cachetag.load(“xxx”); all these things was working exactly fine before I change this SSL setup. I googled and found out that there is some configuration setting to rectify this problem but it was not clear. Can some one help me with this. -- View this message in context: http://www.nabble.com/Internet-Explorer-bug-w-SSL%2B-loadCache-tf4422725.html#a12614933 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logformat for mod_jk logs
Hi Does anyone know if the script tomcat_trend.pl requires a specific JkRequestLogFormat string. Doing a search through the list archives on my local machine I found the following two settings being used: JkRequestLogFormat %b %w %V %T %r JkRequestLogFormat %w %V %T But I am not sure what this script that comes with mod_jk actually requires. Regards __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: Logformat for mod_jk logs
hi I have not used it in long while but i think it required: JkRequestLogFormat %w %V %U %s %T %B %H %m Rgds - Fred Gerhardus.Geldenhuis wrote: Hi Does anyone know if the script tomcat_trend.pl requires a specific JkRequestLogFormat string. Doing a search through the list archives on my local machine I found the following two settings being used: JkRequestLogFormat %b %w %V %T %r JkRequestLogFormat %w %V %T But I am not sure what this script that comes with mod_jk actually requires. Regards __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- View this message in context: http://www.nabble.com/Logformat-for-mod_jk-logs-tf4423183.html#a12616710 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to manage Apache error msgs when Tomcat is down?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, Eric B. wrote: I couldn't find any binaries for 1.2.25 compiled for http 2.0.52 - running CentOS4 and the latest httpd is 2.0.52-32 - would any binaries later than 1.2.19 work on that build? Dude, just build your own. Here are the steps to installing a binary: $ wget http://../bin/mod_jk-1.2.25.so $ cp mod_jk-1.2.25.so /usr/lib/apache2-extramodules Here are the steps to building and installing from source: $ wget http://.../src/tomcat-connectors-1.2.25.tar.gz $ tar xzf tomcat-connectors-1.2.25.tar.gz $ cd tomcat-connectors-1.2.25/native $ ./configure --with-apxs=/path/to/apxs $ make $ cp apache-2.0/mod_jk.so /usr/lib/apache2-extramodules/mod_jk-1.2.25.so Done! That was easy! No worries about waiting for the perfect binary to come out 'cause you can just build your own! Can I customize the error page on a per mount basis by creating a .htaccess file in my /tomcat/ directory within my httpd file workspace? Nope: you've mapped the entire URL space into Tomcat, so when Tomcat isn't working, Apache won't even look. What you ought to do IMO is only map things you actually need. Something like this: Alias /tomcat /path/to/tomcat/webapps/ROOT (or whatever) Directory /path/to/tomcat/webapps/ROOT Order allow,deny Allow from all Files .htaccess Allow deny,allow Deny from all /Files /Directory JkMount /tomcat/*.jsp worker1 JkMount /tomcat/j_security_check worker1 ... others ... Remember to block access to all of your WEB-INF directories, etc. since Tomcat won't be protecting you at this point. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5q2q9CaO5/Lv0PARAoEtAKCL3DBdonwzhIAQwnrS+Yf1USPJRgCfddGm sqUnHVLI0l99ctB+utotERU= =7CMK -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Force URL encoding
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, Michael Dehmlow wrote: The new session println() is called every time(even with the hack). So, when you make a request with a URL including the jsessionid parameter, it still gets ignored? This is one page, on one server, right? Weird. which says to me that tc is ignoring the url encoded sessionid. I've tried every variation I can think of can someone point me in the direction of the tomcats source 8( Try going back to cookies=true (well.. remove the cookies=false) and try disabling cookies on your browser. Do your URLs get encoded by Tomcat, then? They certainly do when I turn off cookies, and I haven't done anything weird with my configuration at all. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5q5P9CaO5/Lv0PARApBXAJ44ka0IjpRfOULvhqOqaKvKc4b1bgCbB7zp SUeNUZesUuEWeEftswe1WZU= =w0BL -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1 error
Hello, I am in the process of trying to upgrade from Tomcat 4.0.6 to 4.1. I installed JDK 1.4 and then installed Tomcat 4.1 using the Windows installer package. I am able to successfully get to the Tomcat administration page. However, I get the following error when I try to navigate to the home page of my web application that works just fine on Tomcat 4.0.6. Please help! org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Warning: dchqweb\UserLogin_jsp.java modified in the future. [javac] Compiling 1 source file C:\Program Files\Apache Software Foundation\Tomcat 4.1\work\Standalone\localhost\_\dchqweb\UserLogin_jsp.java:7: identifier expected import ; ^ 1 error Thanks, Chacko.
Re: how to set up environment struts and eclipse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carol, Carol Shi wrote: I am trying to use struts to build web application. #1: Don't hijack threads; start a new one if you want to ask a new question. #2: Post struts questions to the struts list. They know all about Tomcat over there, but this isn't really a Tomcat-specific question, anyway. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5q/o9CaO5/Lv0PARAr7CAJ9LcxUoxaoiHCZQd5gNMRl1QQCNvgCfQK5C HRJ0tijA/6GxVIB0/kMYtq4= =w+Vq -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to manage Apache error msgs when Tomcat is down?
Eric B. wrote: JK version 1.2.10 is very old. A lot of things changed until we now reached 1.2.25. Typically backend problems will be answered with a non 200 status code. Try a more recent version (like 1.2.25). Thanks for the tip. I did just that and upgrade to 1.2.19 (I couldn't find any binaries for 1.2.25 compiled for http 2.0.52 - running CentOS4 and the latest httpd is 2.0.52-32 - would any binaries later than 1.2.19 work on that build?), and the status codes are returning properly now. I get 503 my first suggestion would be the same as Christophers. If you really can't build it, there should be no module imcompatibility between a download of mod_jk for 2.0.52 or 2.0.59. The more problematic question is the compatibility of your variation of Linux httpd build, and the one you will find as a download. when my tomcat server is down, which made it very easy to then configure Apache with a standard ErrorDocument 503 msg in httpd.conf. However, this does raise an interesting question for me now. I haven't tried this, so don't know if/how it would work. If I am mapping an entire directory in my virtual host - ie: Virtual HostJkMount /tomcat/*/VirtualHost and my tomcat server is unavailable, it will return a 503 error status, which httpd will then respond with an appropriate error document. Can I customize the error page on a per mount basis by creating a .htaccess file in my /tomcat/ directory within my httpd file workspace? Given that httpd is supposed to be ignoring that directory altogether (ie: passing all requests over to tomcat thru the jk connector), will it even see / read the .htaccess file? If not, do I need to manually add a JkUnmount /tomcat/.htaccess command? Or is there a better way to do this to have apache still read the .htaccess file even if the entire path is mapped to a jk connector? I would expect, that you can use the ErrorDocument directive of Apache httpd also inside a Location directive. Location /tomcat/app1 ErrorDocument 503 /error-docs/app1/error.html /Location That should be compatible with mod_jk. If it works, let us know. Thanks for the info / help! Eric (sorry if this is posted multiple times - I seem to be having trouble with my relay server) Regards, rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedded Apache Tomcat/5.5.9 outputting to java.util.logging instead of console
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Magnus, Magnus Vojbacke (KA/EAB) wrote: Although the warnings do not affect the performance of our product, they are confusing to our users. Are they inspecting catalina.out? If so, what will stop them from reading whatever /other/ logfile you choose? Now, I'd like to output _everything_ from tomcat to a logfile instead of the console, and I do _not_ want to use log4j. Why no log4j? Philosophical disagreement? Any other method is fine, and java.util.logging would be prefereable (this shouldn't be a problem with commons-logging, right?). Right. Commons-logging uses java.util.logging by default, I think, if log4j isn't available. Since you're starting Tomcat embedded, you ought to be able to control standard output. Just wire standard output into a file instead of allowing it to dump to the console. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5rD79CaO5/Lv0PARAuM+AKCi/Kn1a4j7S6aOKSnLUOOvMg85iQCbBmLt dqRdlSbVD24lkXhe+9xLQYY= =xR2a -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chacko, Chacko Kuruvilla wrote: I am in the process of trying to upgrade from Tomcat 4.0.6 to 4.1. If you're going to spend time upgrading and testing, why not jump to Tomcat 5.5 or even 6.0? Tomcat 4 is /super/ old. I recently went from 4.1 to 5.5 and it wasn't bad at all. C:\Program Files\Apache Software Foundation\Tomcat 4.1\work\Standalone\localhost\_\dchqweb\UserLogin_jsp.java:7: identifier expected import ; ^ 1 error You wrote a JSP that the compiler can't compile. The new compiler is probably more strict than the old one. Check your @page directive in UserLogin.jsp... perhaps there are empty lines in your import directives? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5rG99CaO5/Lv0PARAu+gAJ9EYvVx5sM55Np6QFw0nUa9Lx5OqwCfRk97 pmgZfzLxKbc/9aeuVkY82Mw= =0Uqc -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redirection Problem
Hi All, I am rather new to these help forums so please bear with me; I have always been able to find what I needed by searching the net and more specifically the Apache site, up until now that is. My problem is that the redirector catches the request, matches it, and forwards the escaped uri but the browser displays a 404 not found error. I have included what I think is the relevant information and things I have tried. Any insight that could be provided would be greatly appreciated. Server OS= Win2k3 sp2 Web Server= IIS6.0 Tomcat= 5.5.20 Native runtime library in Tomcat= 1.1.9.0 Isapi_redirect.dll=1.2.25.0 In IIS I have the following configured. Webservice Extension: Named=jakarta and pointing to c:\tomcat 5.5\bin\Jakarta Isapi Redirector\bin\isapi_redirect.dll Virtual Directory: Named=Jakarta, local path= c:\tomcat 5.5\bin\Jakarta Isapi Redirector\bin, directory security is set to enable anonymous access as the IUSR account on the local machine, Execute permissions are set to= scripts and executables, the app pool is set to the default app pool. Default App pool is set to use an identity of IWAM on the local machine. The folder permissions for c:\tomcat 5.5\bin\Jakarta Isapi Redirector\bin and the entire webapps folder in tomcat include the IUSR and IWAM accounts with full access and child propagation of the permissions. In Tomcat I have And ajp1.3 listener on port 8009. I have verified that is up via the stdout during tomcat load. I have also run a netstat and found that 8009 is actively being used by tomcat. The exact server.xml entry for it is as follows Connector protocol=AJP/1.3 Port=8009 enableLookups=false redirectPort=8443 / I have servlets-examples and a custom application called dgportal successfully deployed and accessible via an explicit 8080 port call on the url. I have omitted the registry settings I am using as they can be found in the iaspi log. Any ideas on what I should try next Logs Isapi_redirect.log [Tue Sep 11 10:45:15.642 2007] [3572:4604] [debug] jk_util.c (530): log time stamp format is '[%a %b %d %H:%M:%S.%Q %Y] ' [Tue Sep 11 10:45:15.642 2007] [3572:4604] [debug] jk_shm.c (169): Initialized shared memory size=28800 free=28672 addr=0x1b6 [Tue Sep 11 10:45:15.642 2007] [3572:4604] [debug] jk_isapi_plugin.c (1698): Using registry. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_isapi_plugin.c (1701): Using log file C:\Tomcat 5.5\bin\Jakarta Isapi Redirector\log\isapi_redirect.log. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_isapi_plugin.c (1702): Using log level 1. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_isapi_plugin.c (1703): Using extension uri /jakarta/isapi_redirect.dll. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_isapi_plugin.c (1704): Using worker file C:\Tomcat 5.5\bin\Jakarta Isapi Redirector\conf\workers.properties.minimal. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_isapi_plugin.c (1705): Using worker mount file C:\Tomcat 5.5\bin\Jakarta Isapi Redirector\conf\uriworkermap.properties. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_isapi_plugin.c (1707): Using rewrite rule file . [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_isapi_plugin.c (1709): Using uri select 3. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_map.c (495): Adding property '/admin/*' with value 'wlb' to map. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_map.c (495): Adding property '/manager/*' with value 'wlb' to map. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_map.c (495): Adding property '/jsp-examples/*' with value 'wlb' to map. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_map.c (495): Adding property '/servlets-examples/*' with value 'wlb' to map. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_map.c (495): Adding property '/ValcoAdmin/*' with value 'wlb' to map. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_map.c (495): Adding property '/dgportal-og-sql/*' with value 'wlb' to map. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_map.c (495): Adding property '/dgportal/*' with value 'wlb' to map. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_map.c (495): Adding property '/dgportal/*.js' with value 'wlb' to map. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_map.c (495): Adding property '/dgportal/*.jsp' with value 'wlb' to map. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_map.c (495): Adding property '/connector/*' with value 'wlb' to map. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_map.c (495): Adding property '/jkmanager' with value 'jkstatus' to map. [Tue Sep 11 10:45:15.658 2007] [3572:4604] [debug] jk_uri_worker_map.c (671): Loading urimaps from C:\Tomcat
RE: Tomcat 4.1 error
Thank you Chris, an empty import was the issue. I was able to get to the login page. Now, when I try to login, I get the following error even though I do find the login page JSP and class file in the appropriate places. The requested resource (/servlet/dchqweb.Userlogin) is not available Any idea why? Thanks, Chacko. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 10:18 AM To: Tomcat Users List Subject: Re: Tomcat 4.1 error -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chacko, Chacko Kuruvilla wrote: I am in the process of trying to upgrade from Tomcat 4.0.6 to 4.1. If you're going to spend time upgrading and testing, why not jump to Tomcat 5.5 or even 6.0? Tomcat 4 is /super/ old. I recently went from 4.1 to 5.5 and it wasn't bad at all. C:\Program Files\Apache Software Foundation\Tomcat 4.1\work\Standalone\localhost\_\dchqweb\UserLogin_jsp.java:7: identifier expected import ; ^ 1 error You wrote a JSP that the compiler can't compile. The new compiler is probably more strict than the old one. Check your @page directive in UserLogin.jsp... perhaps there are empty lines in your import directives? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5rG99CaO5/Lv0PARAu+gAJ9EYvVx5sM55Np6QFw0nUa9Lx5OqwCfRk97 pmgZfzLxKbc/9aeuVkY82Mw= =0Uqc -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chacko, Chacko Kuruvilla wrote: Thank you Chris, an empty import was the issue. I was able to get to the login page. Now, when I try to login, I get the following error even though I do find the login page JSP and class file in the appropriate places. The requested resource (/servlet/dchqweb.Userlogin) is not available Tomcat 4.1 might have the invoker servlet (the one that actually runs servlets invoked using the /servlet/... URL space) disabled by default. Check the global web.xml file (in TOMCAT_HOME/conf/web.xml) and search for 'invoker' to see if it is enabled or disabled. I thought that the /servlet syntax would have been /servlet/dchqweb/Userlogin - using a '/' instead of using the . character. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5rjk9CaO5/Lv0PARAqQcAKCXyjl61wzTVBQU1SpE0GxOU0LY8ACggRDQ M/cJ3I/2pwDTgfDdaiZpdrE= =EX4I -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to retrieve mod_jk version from java on tomcat
Is there any way to retrieve Jk version on tomcat side? I mean can I retrieve the jk version from request object? Thanks in advance. Matteo
Re: How to retrieve mod_jk version from java on tomcat
Matteo Turra wrote: Is there any way to retrieve Jk version on tomcat side? I mean can I retrieve the jk version from request object? Unfortunately no. The version gets logged in the web server log file during startup (if the module is relatively young) and on unix type machines you can get it via strings mod_jk.so | fgrep /1.2. It is also displayed on top of the status worker page. Thanks in advance. Matteo regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Force URL encoding
I ran through the source a couple of times encode url will return the parameter in many cases there is a bunch of logic to determine if the session is supposed to be appended, but nothing is apparent as to why I've been going through and trying to get a false in the logic that determines if the URL should be encoded but I got to the end with no revalations. I thought something might be amis due to the fact that I'm running in calisto eclipse but putting the war into an actual tomcat enviornment resulted in the same behavior. Scouring google I find problems relating to https (which I'm not using) on older versions (which I'm not using). I'll try the cookies enabled angle thanks. Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, Michael Dehmlow wrote: The new session println() is called every time(even with the hack). So, when you make a request with a URL including the jsessionid parameter, it still gets ignored? This is one page, on one server, right? Weird. which says to me that tc is ignoring the url encoded sessionid. I've tried every variation I can think of can someone point me in the direction of the tomcats source 8( Try going back to cookies=true (well.. remove the cookies=false) and try disabling cookies on your browser. Do your URLs get encoded by Tomcat, then? They certainly do when I turn off cookies, and I haven't done anything weird with my configuration at all. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5q5P9CaO5/Lv0PARApBXAJ44ka0IjpRfOULvhqOqaKvKc4b1bgCbB7zp SUeNUZesUuEWeEftswe1WZU= =w0BL -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Force-URL-encoding-tf4415223.html#a12618863 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts 1.1, Tomcat and Eclipse - Please help
Hey, I really need your help! I am using Eclipse 3.2.2 and Tomcat 5.0.28. In addition I am using Struts 1.1. I have a project in Eclipse, which I want to run on Tomcat using Tomcat plugin (com.sysdeo.eclipse.tomcat_3.0.0.alpha1). I set the project as a Tomcat project and run the Tomcat. I am trying to access my web application and then i get the following errors: 69234 [http-8090-Processor25] ERROR org.apache.jasper.compiler.Compiler - Javac exception Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472). and it continues: :\ccm_wa\TICP-core-yaari_3.0.0\TICP\ui.occ\work\org\apache\jsp\Login_jsp .java:8: org.apache.jsp.Login_jsp is not abstract and does not override abstract method getIncludes() in org.apache.jasper.runtime.HttpJspBase public final class Login_jsp extends org.apache.jasper.runtime.HttpJspBase ^ C:\ccm_wa\TICP-core-yaari_3.0.0\TICP\ui.occ\work\org\apache\jsp\Login_js p.java:35: cannot resolve symbol symbol : method getTagHandlerPool (javax.servlet.ServletConfig) location: class org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_uif_out_key_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletCon fig());brbrbrbr and, of course, it continues: C:\ccm_wa\TICP-core-yaari_3.0.0\TICP\ui.occ\work\org\apache\jsp\Login_js p.java:170: _jspx_meth_uif_out_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.P ageContext) in org.apache.jsp.Login_jsp cannot be applied to (trivnet.common.uif.taglib.form.FormTag,javax.servlet.jsp.PageContext) if (_jspx_meth_uif_out_1(_jspx_th_uif_form_0, _jspx_page_context)) ^ C:\ccm_wa\TICP-core-yaari_3.0.0\TICP\ui.occ\work\org\apache\jsp\Login_js p.java:188: _jspx_meth_uif_info_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp. PageContext) in org.apache.jsp.Login_jsp cannot be applied to (trivnet.common.uif.taglib.form.FormTag,javax.servlet.jsp.PageContext) if (_jspx_meth_uif_info_0(_jspx_th_uif_form_0, _jspx_page_context)) I think that part of the problem is that Tomcat 5.x is using a newer Jasper and when it compiles my JSPs, it expects to deal with JSP 2.0 specification, while the struts which I am using doesn't support it. Struts 1.1 tags extends: javax.servlet.jsp.tagext.Tag while the generate Servlet (as a result of my JSP) expects to get javax.servlet.jsp.tagext.JSPTag. I didn't find how to set Tomcat to build the JSPs in the old specification. Maybe there are other problems (please refer the exceptions above) which I didn't see. is there a way I can solve this issue? thanks in advance, Tal.
Re: beginer question abt JSP with Tomcat
On 9/11/07, minky arora [EMAIL PROTECTED] wrote: Yes I can see the welcome page.HOWEVERR If i run the date.jsp or any other exapmles provided by tomcat then I get, ype Status report message /tomcat-docs/config/context.html That's not a JSP page, eh? Have you confirmed that the context(s) involved are actually there? And have you looked at the log files yet? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
sorry the files are here. On 9/11/07, minky arora [EMAIL PROTECTED] wrote: I am attching the 2 log files: one for localhost and the other for catalina logs.I am sorry cnt figure out much as I am really a Newbie. As for the context part, I was following point-point instructions online to test the first JSP files from the Dates folder..And it says that if that doesnt run, then JDK and JAVA are not pointing to the same directory. I followed the instructions again and changed the export path and checked all symbolic links..Now I am just not sure what to do next. Sorry I am really confused as to how to connect JAVA and tomcat together.Currently my tomcat folder is inside JAVA Directory which is in my home dir, Thanks a lot ... On 9/11/07, Hassan Schroeder [EMAIL PROTECTED] wrote: On 9/11/07, minky arora [EMAIL PROTECTED] wrote: Yes I can see the welcome page.HOWEVERR If i run the date.jsp or any other exapmles provided by tomcat then I get, ype Status report message /tomcat-docs/config/context.html That's not a JSP page, eh? Have you confirmed that the context(s) involved are actually there? And have you looked at the log files yet? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chacko, Chacko Kuruvilla wrote: Thanks Chris, that took care of the login page issue. However, since I ran into database connection problems, I decided to go back to jdk1.3.1_09 which is what I am currently using with Tomcat 4.0.6. I reinstalled jdk1.3.1_09 and Tomcat 4.1 on my test machine and tried to start Tomcat 4.1. But, now I am unable to start Tomcat 4.1 and see the following error in the log. [2007-09-11 13:11:00] [394 javajni.c] [error] CreateJavaVM Failed [2007-09-11 13:11:00] [992 prunsrv.c] [error] Failed initializing java C:\Program Files\Apache Software Foundation\Tomcat 4.1\bin\bootstrap.jar [2007-09-11 13:11:00] [1260 prunsrv.c] [error] ServiceStart returned 2 Looks like you boned your reinstall. Re-read that error message: it says it can't find something in Tomcat 4.1 directory. Did you reinstall to a different location or something? The version of Java, by the way, shouldn't matter too much. The version of Tomcat is way more important. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5vIS9CaO5/Lv0PARAuIgAKCsJPcsvaiN1N/mLQHAsVpKeCEHwwCeMa1m kDU/BgvvQaqNL3zq1IgQAlM= =Rhb4 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1 error
It sounds like Tomcat is having issues starting JVM to run Tomcat as a Windows service. I did see similar issue reported by other users, but could not get a specific one to resolve my issue. I re-installed with default setup as before. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 2:53 PM To: Tomcat Users List Subject: Re: Tomcat 4.1 error -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chacko, Chacko Kuruvilla wrote: Thanks Chris, that took care of the login page issue. However, since I ran into database connection problems, I decided to go back to jdk1.3.1_09 which is what I am currently using with Tomcat 4.0.6. I reinstalled jdk1.3.1_09 and Tomcat 4.1 on my test machine and tried to start Tomcat 4.1. But, now I am unable to start Tomcat 4.1 and see the following error in the log. [2007-09-11 13:11:00] [394 javajni.c] [error] CreateJavaVM Failed [2007-09-11 13:11:00] [992 prunsrv.c] [error] Failed initializing java C:\Program Files\Apache Software Foundation\Tomcat 4.1\bin\bootstrap.jar [2007-09-11 13:11:00] [1260 prunsrv.c] [error] ServiceStart returned 2 Looks like you boned your reinstall. Re-read that error message: it says it can't find something in Tomcat 4.1 directory. Did you reinstall to a different location or something? The version of Java, by the way, shouldn't matter too much. The version of Tomcat is way more important. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5vIS9CaO5/Lv0PARAuIgAKCsJPcsvaiN1N/mLQHAsVpKeCEHwwCeMa1m kDU/BgvvQaqNL3zq1IgQAlM= =Rhb4 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1.1, Tomcat and Eclipse - Please help
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tal, Tal Yaari wrote: I have a project in Eclipse, which I want to run on Tomcat using Tomcat plugin (com.sysdeo.eclipse.tomcat_3.0.0.alpha1). I set the project as a Tomcat project and run the Tomcat. [snip] :\ccm_wa\TICP-core-yaari_3.0.0\TICP\ui.occ\work\org\apache\jsp\Login_jsp .java:8: org.apache.jsp.Login_jsp is not abstract and does not override abstract method getIncludes() in org.apache.jasper.runtime.HttpJspBase public final class Login_jsp extends org.apache.jasper.runtime.HttpJspBase That is /awesome/! It looks like Tomcat totally blew its brains out. You might want to cross-post this question to the support list for the Tomcat plug-in. Note that it's an /alpha/ and might not work at all. I think that part of the problem is that Tomcat 5.x is using a newer Jasper and when it compiles my JSPs, it expects to deal with JSP 2.0 specification, while the struts which I am using doesn't support it. Not true. Struts doesn't have to support any specific version of JSP; as long as your server supports /at least/ what Struts needs, you should be fine. Struts 1.1 tags extends: javax.servlet.jsp.tagext.Tag while the generate Servlet (as a result of my JSP) expects to get javax.servlet.jsp.tagext.JSPTag. The API is backward-compatible. This isn't a struts issue. I didn't find how to set Tomcat to build the JSPs in the old specification. You can't. The new compiler supports JSP 2.0 and previous specs. Sorry I can't help too much. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5vM59CaO5/Lv0PARAvUPAJ9fzuEhRcesnJstPskgJrQ2KyQ/cACfaYrh EY2c4+2FK2mf13bAhpUo8/Y= =q/Ht -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chacko, Chacko Kuruvilla wrote: It sounds like Tomcat is having issues starting JVM to run Tomcat as a Windows service. I did see similar issue reported by other users, but could not get a specific one to resolve my issue. I re-installed with default setup as before. Did you uninstall the old service before you re-installed Tomcat? You might want to do it again. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5vN09CaO5/Lv0PARAtD9AJ0fYoEsJTlvP6pcHLbaBZxBW35gIACgtckg BJTzKgj9Xg/S5e7sMjFu/mY= =/6DV -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1 error
Yep, I uninstalled both JDK 1.4 and Tomcat completely, then re-installed JDK 1.3 followed by Tomcat 4.1. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 2:59 PM To: Tomcat Users List Subject: Re: Tomcat 4.1 error -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chacko, Chacko Kuruvilla wrote: It sounds like Tomcat is having issues starting JVM to run Tomcat as a Windows service. I did see similar issue reported by other users, but could not get a specific one to resolve my issue. I re-installed with default setup as before. Did you uninstall the old service before you re-installed Tomcat? You might want to do it again. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5vN09CaO5/Lv0PARAtD9AJ0fYoEsJTlvP6pcHLbaBZxBW35gIACgtckg BJTzKgj9Xg/S5e7sMjFu/mY= =/6DV -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PHP Security Vulnerability???
Hi, I recently setup a server using Tomcat 5.5 on FreeBSD 6.2. I thought I had everything locked down. I run a nessus scan and found a strange Vulnerability. It says that states: The remote web server contains a PHP application that is affected by multiple vulnerabilities. I am not using PHP. Has anyone else seen this? Thanks, Arend - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
context-relative path in JNDI variables
Hello all, I’m trying to set a system where I can deploy a single .war under multiple context names (using the ant deploy extensions). For example: ant -Ddeploy-path=/app-01 deploy ant -Ddeploy-path=/app-02 deploy Both deploy commands use the same .war. However, I’m trying to do something that I’ve been unable to find a proper method for. The application being deployed (in this case it’s Solr) needs one variable to be defined in either a context fragment in META-INF/context.xml or defined in WEB-INF/web.xml. The variable is solr/home, and it points to a directory that is packed inside the .war. So, I would like to have a context fragment that looks like this: In META-INF/context.xml Context Environment name=solr/home type=java.lang.String value=webapps/${context.name}/app-01/solr/ override=true / /Context Or in WEB-INF/web.xml env-entry env-entry-namesolr/home/env-entry-name env-entry-typejava.lang.String/env-entry-type env-entry-value webapps/${context.name}/app-01/solr//env-entry-value /env-entry As you can see, I’ve used a variable called ${context.name}, so that the different contexts can use the same fragment, but be named something different. This allows for a much simpler deployment, where no context.xml needs to be generated and packaged into the war at deploy time. Unfortunately, as far as I know, a variable like this does not exist. So my question is this, is there a way to specify a variable like this relative to the context root? Thanks, any help would be appreciated. Anthony Arnone
Tomcat 4.1 error
Can somebody help me with this issue? I am trying to setup Tomcat 4.1 on JDK 1.3.1. Installation was successful. However, got the following error in the log file when trying to start the Tomcat service. [2007-09-11 13:11:00] [394 javajni.c] [error] CreateJavaVM Failed [2007-09-11 13:11:00] [992 prunsrv.c] [error] Failed initializing java C:\Program Files\Apache Software Foundation\Tomcat 4.1\bin\bootstrap.jar [2007-09-11 13:11:00] [1260 prunsrv.c] [error] ServiceStart returned 2 Thanks, Chacko.
RE: Tomcat 4.1 error
From: Chacko Kuruvilla [mailto:[EMAIL PROTECTED] Subject: Tomcat 4.1 error I am trying to setup Tomcat 4.1 on JDK 1.3.1. I don't think you're going to find too many people interested in debugging anything on such an ancient JDK. (It passed end-of-life over 9 months ago.) You might try using a current JDK and starting Tomcat from the scripts rather than as a service so you might be able to see what's going on. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
On 9/11/07, minky arora [EMAIL PROTECTED] wrote: sorry the files are here. You can't send attachments to the list. Stop TC, delete your logs, restart and go to one page to generate the error; paste the result into your mail. Sorry I am really confused as to how to connect JAVA and tomcat together.Currently my tomcat folder is inside JAVA Directory which is in my home dir, ?? On my Mac (OS X.4.10) $JAVA_HOME is: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 :: so I'm not at all sure what you're trying to describe here... But I have no problem running TC by simply setting JAVA_HOME and CATALINA_HOME, wherever the latter may be located. -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
example to log org.apache.catalina.core entries to separate file
Hi, I have default tomcat 5.5 installation, and I would like to send the tomcat start stop events to a separate log file for the class org.apache.catalina.core Can any one provide an example of a config for logging.properties that would do that, it currently looks like this; handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.j uli.FileHandler, 4admin.org.apache.juli.FileHandler, 5host-manager.org.apache.juli.FileHandler, java.util.loggi ng.ConsoleHandler .handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler # Handler specific properties. # Describes specific configuration info for Handlers. 1catalina.org.apache.juli.FileHandler.level = FINE 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 1catalina.org.apache.juli.FileHandler.prefix = catalina. 2localhost.org.apache.juli.FileHandler.level = FINE 2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 2localhost.org.apache.juli.FileHandler.prefix = localhost. 3manager.org.apache.juli.FileHandler.level = FINE 3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 3manager.org.apache.juli.FileHandler.prefix = manager. 4admin.org.apache.juli.FileHandler.level = FINE 4admin.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 4admin.org.apache.juli.FileHandler.prefix = admin. 5host-manager.org.apache.juli.FileHandler.level = FINE 5host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 5host-manager.org.apache.juli.FileHandler.prefix = host-manager. java.util.logging.ConsoleHandler.level = FINE java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter # Facility specific properties. # Provides extra control for each logger. org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.Fi leHandler org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].handlers = 4admin.org.apache.juli.FileHa ndler org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 5host-manager.org.apac he.juli.FileHandler # For example, set the com.xyz.foo logger to only log SEVERE # messages: #org.apache.catalina.startup.ContextConfig.level = FINE #org.apache.catalina.startup.HostConfig.level = FINE #org.apache.catalina.session.ManagerBase.level = FINE - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1 error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chacko, Chacko Kuruvilla wrote: Yep, I uninstalled both JDK 1.4 and Tomcat completely, then re-installed JDK 1.3 followed by Tomcat 4.1. Something is obviously still wrong. Does that path exist that the service was trying to access? Maybe before you get the service working, you should try starting using bin\startup.bat. It's (somewhat) less complicated than using the service, and you get all error messages on the console, which is nice. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5wag9CaO5/Lv0PARAslCAJ4muuLjtl8u/Bq5VykDP5BZCplX1gCfSy6Z yHkA8R7bQMPofENyIZIidUU= =GgqS -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Half rendered pages with mod_jk and libtcnative
I found this bug also, and after some crawling around, found an apache forum that said it was fixed as of tc-native 1.1.7 Where I could use a little help is... what is the official source repository for tomcat-native? I couldn't find an official download site thru tomcat.apache.org Thanks! Tom A wrote: On 7/25/07, Rainer Jung [EMAIL PROTECTED] wrote: Concerning tc-native: you might try version 1.1.10, which is available as a separate download. Are there aditional log messages in the jk log? There were no additional logs and in most cases was failing silently. I've just tried out 1.1.10 and it seems to have fixed the problem. Many thanks for pointing out that a separate release exists. Regards, Tom Tom wrote: Hello, We've been having problems where half complete pages are being returned from an Apache2--mod_jk--Tomcat setup when the native Apache Tomcat libraries are used. The problem is easily reproducible with large pages where the content is stopped at random points. Sometimes mod_jk detects a problem a reports: [Wed Jul 25 11:18:38 2007] [21823:56208] [error] ajp_get_reply::jk_ajp_common.c (1618): (worker1) Tomcat is down or network problems. Part of the response has already been sent to the client In this situation we end up with a page within a page as mod_jk retries the request. More often than not though there are no problems logged. The Tomcat and Apache2 servers are both running on the same machine. I've recreated an environment with pretty much out-of-the-box settings using: Apache (mpm-worker) 2.2.4 mod_jk 1.2.23 libapr 1.2.7 Tomcat 5.5.23 (libtcnative compiled from same archive) Java 1.5.0_09 Making a request directly to the http connector with native libraries works. Disabling the native libraries is our current workaround. I'm not sure how I might debug this issue further so would welcome any help. Tom - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Half-rendered-pages-with-mod_jk-and-libtcnative-tf4141434.html#a12624074 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context-relative path in JNDI variables
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anthony, Arnone, Anthony wrote: I’m trying to set a system where I can deploy a single .war under multiple context names (using the ant deploy extensions). Ooh! I love these things. ant -Ddeploy-path=/app-01 deploy ant -Ddeploy-path=/app-02 deploy How about: ant -Dcontext-name=app-01 deploy ant -Dcontext-name=app-02 deploy Context Environment name=solr/home type=java.lang.String value=webapps/${context.name}/app-01/solr/ override=true / /Context Then you can just use: Environment name=solr/home type=java.lang.String value=webapps/${context-name}/solr/ override=true / Make sure that you turn on the appropriate filter when copying (or generating) your context.xml file so that ${context-name} gets expanded. env-entry env-entry-namesolr/home/env-entry-name env-entry-typejava.lang.String/env-entry-type env-entry-value webapps/${context.name}/app-01/solr//env-entry-value /env-entry Using web.xml might be a little bit more platform-neutral. The strategy would be the same. This allows for a much simpler deployment, where no context.xml needs to be generated and packaged into the war at deploy time. Really? How do you deploy a WAR file without a context.xml file? Or, do you not need Tomcat to provide anything specific like a JNDI data source? Unfortunately, as far as I know, a variable like this does not exist. So my question is this, is there a way to specify a variable like this relative to the context root? No, but you can just change the way you think about the variable and alter your scripts accordingly. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5wjK9CaO5/Lv0PARAvToAJ4y/phvSQbao1LRnq4oWDbB7gri6wCgtlKC LDfVpPmTGsi1oqxm0/LN25I= =WlK0 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1 error
Everything works just fine if I start Tomcat using startup.bat. Look like the issue is with running Tomcat 4.1 as a service on JDK 1.3. Not sure what the problem is though. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 4:21 PM To: Tomcat Users List Subject: Re: Tomcat 4.1 error -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chacko, Chacko Kuruvilla wrote: Yep, I uninstalled both JDK 1.4 and Tomcat completely, then re-installed JDK 1.3 followed by Tomcat 4.1. Something is obviously still wrong. Does that path exist that the service was trying to access? Maybe before you get the service working, you should try starting using bin\startup.bat. It's (somewhat) less complicated than using the service, and you get all error messages on the console, which is nice. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5wag9CaO5/Lv0PARAslCAJ4muuLjtl8u/Bq5VykDP5BZCplX1gCfSy6Z yHkA8R7bQMPofENyIZIidUU= =GgqS -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Half rendered pages with mod_jk and libtcnative
From: HunterR [mailto:[EMAIL PROTECTED] Subject: Re: Half rendered pages with mod_jk and libtcnative Where I could use a little help is... what is the official source repository for tomcat-native? http://archive.apache.org/dist/tomcat/tomcat-connectors/native/ If you're running on Windows, you can get pre-compiled binaries from: http://tomcat.heanet.ie/native/ - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: context-relative path in JNDI variables
What I'm trying to do is a slightly strange. Let me see if I can explain it a different way. I'd like to be able to use Tomcat's auto deploy feature of the manager to simply copy the war into the webapps directory, and have the context come up correctly with its solr home set appropriate to its deploy-time name. Something like this: $ cp solr-master.war ${CATALINA_HOME}/webapps/solr-001.war $ cp solr-master.war ${CATALINA_HOME}/webapps/solr-002.war and then have access to http://localhost:8080/solr-001/ http://localhost:8080/solr-002/ Essentially, I might not have access to ant at deploy time, nor have the ability to change the master war itself. This means that I won't be able to change the context.xml or the web.xml files, since they will already be packaged inside the war archive. So, is there some way to generic-ify the context fragment? Anthony -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 3:30 PM To: Tomcat Users List Subject: Re: context-relative path in JNDI variables -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anthony, Arnone, Anthony wrote: I’m trying to set a system where I can deploy a single .war under multiple context names (using the ant deploy extensions). Ooh! I love these things. ant -Ddeploy-path=/app-01 deploy ant -Ddeploy-path=/app-02 deploy How about: ant -Dcontext-name=app-01 deploy ant -Dcontext-name=app-02 deploy Context Environment name=solr/home type=java.lang.String value=webapps/${context.name}/app-01/solr/ override=true / /Context Then you can just use: Environment name=solr/home type=java.lang.String value=webapps/${context-name}/solr/ override=true / Make sure that you turn on the appropriate filter when copying (or generating) your context.xml file so that ${context-name} gets expanded. env-entry env-entry-namesolr/home/env-entry-name env-entry-typejava.lang.String/env-entry-type env-entry-value webapps/${context.name}/app-01/solr//env-entry-value /env-entry Using web.xml might be a little bit more platform-neutral. The strategy would be the same. This allows for a much simpler deployment, where no context.xml needs to be generated and packaged into the war at deploy time. Really? How do you deploy a WAR file without a context.xml file? Or, do you not need Tomcat to provide anything specific like a JNDI data source? Unfortunately, as far as I know, a variable like this does not exist. So my question is this, is there a way to specify a variable like this relative to the context root? No, but you can just change the way you think about the variable and alter your scripts accordingly. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5wjK9CaO5/Lv0PARAvToAJ4y/phvSQbao1LRnq4oWDbB7gri6wCgtlKC LDfVpPmTGsi1oqxm0/LN25I= =WlK0 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
I guess simply put, this is wat i get when i run startup.sh for Tomcat * Using CATALINA_BASE: /Users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 Using CATALINA_HOME: /Users/meenaksharora/java/tomcat/apache-tomcat-6.0.14 Using CATALINA_TMPDIR: /Users/meenaksharora/java/tomcat/apache-tomcat-6.0.14/temp Using JRE_HOME: /Library/Java/Home *** SInce I am able to run Tomcat AND UNABLE to run JSP , i think I am messing up the paths here. Can anyone Advise me how to change these? In an online documentation , it is supp. to be like the foll. *** Using CATALINA_BASE: /Library/Tomcat/Home Using CATALINA_HOME: /Library/Tomcat/Home Using CATALINA_TMPDIR: /Library/Tomcat/Home Using JAVA_HOME: /System/Library/Frameworks/JavaVM/Versions/1.3.1/Home ** Pls guide me on wat all paths to change , if any?? Thanks;. On 9/11/07, Hassan Schroeder [EMAIL PROTECTED] wrote: On 9/11/07, minky arora [EMAIL PROTECTED] wrote: sorry the files are here. You can't send attachments to the list. Stop TC, delete your logs, restart and go to one page to generate the error; paste the result into your mail. Sorry I am really confused as to how to connect JAVA and tomcat together.Currently my tomcat folder is inside JAVA Directory which is in my home dir, ?? On my Mac (OS X.4.10) $JAVA_HOME is: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 :: so I'm not at all sure what you're trying to describe here... But I have no problem running TC by simply setting JAVA_HOME and CATALINA_HOME, wherever the latter may be located. -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context-relative path in JNDI variables
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anthony, Arnone, Anthony wrote: I'd like to be able to use Tomcat's auto deploy feature of the manager to simply copy the war into the webapps directory, and have the context come up correctly with its solr home set appropriate to its deploy-time name. Silly question: why not just use ServletContext.getContextPath() instead of complicating your life with JNDI variables? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG5xPD9CaO5/Lv0PARAj3wAJ42JJfF0LDaOVJXrypoz4IlSKE5mwCeMT6n jUI4iL5jbq/dap1nJafu9pw= =xgNI -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: beginer question abt JSP with Tomcat
From: minky arora [mailto:[EMAIL PROTECTED] Subject: Re: beginer question abt JSP with Tomcat Using JAVA_HOME: /System/Library/Frameworks/JavaVM/Versions/1.3.1/Home Tomcat 6 requires JRE 1.5 or later. You should delete that ancient version, install a proper one, set JAVA_HOME (or JRE_HOME) to the proper location, and retest. Read RUNNING.txt in the Tomcat directory for more information. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beginer question abt JSP with Tomcat
On 9/11/07, minky arora [EMAIL PROTECTED] wrote: Using JRE_HOME: /Library/Java/Home Pls guide me on wat all paths to change , if any?? Did you /try/ using the JAVA_HOME setting I previously sent? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
having trouble using Tomcat API in my JUnit SOAP tests
How do I get rid of the Thread and ContainerBackgroundProcessor objects associated with a StandardEngine after finishing a JUnit test, so several of them don't accumulate and hog all my machine's resources? I'm testing out a SOAP service on several different platforms, so it seemed natural to automate it with JUnit. I put the following code snippets in my Test class: declaration: StandardEngine se = null; then later... @Before public void setUp() throws Exception { if (se == null) { se = new StandardEngine(); FRTLJDBCRealm r = new FRTLJDBCRealm(); r.setDriverName(org.hsqldb.jdbcDriver); r.setConnectionURL(jdbc:hsqldb:hsql://localhost); r.setUserTable(user); r.setUserNameCol(user_name); r.setUserCredCol(user_pass); r.setUserRoleTable(user); r.setRoleNameCol(role_name); r.setConnectionName(sa); r.setConnectionPassword(sXU7DMFjs8zr); se.setRealm(r); se.start(); } ... other stuff ... } So this works pretty well, it connects me to the database and my JUnit test can do things with the database permissions of someuser. When the test completes, I want to tear it down. I tried: @After public void tearDown() throws Exception { System.out.println(tearDown); se.destroy(); se = null; } but there is still a Thread running a ContainerBackgroundProcessor running in the background which prevents the garbage collector from throwing out my StandardEngine se object. How can I just get rid of everything in the tearDown() method? Or is there a better way? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JNI Netbeans
Ok I worked out the problem what you need to do is create $CATALINA_HOME/shared/lib directory then edit $CATALINA_HOME/conf/catalina.properties and edit the shared.loader line so that shared.loader=$CATALINA_HOME/shared/lib Seems like in tomcat 6 the $CATALINA_HOME/shared/lib was removed as well as the shared loader line in cataline.properties for some reason ! I dont know why this change was made but all the JNI documentation is now out of date markt-2 wrote: soulboy wrote: both this class and the shared library should be placed in the $CATALINA_HOME/shared/lib directory. Actually $CATALINA_HOME/shared/lib directory doesn't exist on my installation so I created it and as test I created and placed a dummy javalibrary in a .jar file in this location. For a default Tomcat 6 install, just use $CATALINA_HOME/lib Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-JNI-Netbeans-tf4376281.html#a12626928 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PHP Security Vulnerability???
Does it give you any paths to this PHP application? I haven't seen anything like it from scanners on my server. Wade --- Arend P. van der Veen [EMAIL PROTECTED] wrote: Hi, I recently setup a server using Tomcat 5.5 on FreeBSD 6.2. I thought I had everything locked down. I run a nessus scan and found a strange Vulnerability. It says that states: The remote web server contains a PHP application that is affected by multiple vulnerabilities. I am not using PHP. Has anyone else seen this? Thanks, Arend - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedded Apache Tomcat/5.5.9 outputting to java.util.logging instead of console
Chris is correct, Tomcat will use java.util.logging if it doesn't find log4j (and TC 6 won't even look for log4j by default). So all you have to do is to configure java.util.logging for your application. If you want to use Tomcat's Juli implementation, then you need to configure that for your entire application as well by starting it with: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager Magnus Vojbacke (KA/EAB) [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Problem at hand: Embedding tomcat into our server, we get the occasional info and warning while tomcat is starting. In our current configuration, these messages are fed to the console. Although the warnings do not affect the performance of our product, they are confusing to our users. Now, I'd like to output _everything_ from tomcat to a logfile instead of the console, and I do _not_ want to use log4j. Any other method is fine, and java.util.logging would be prefereable (this shouldn't be a problem with commons-logging, right?). I've googled terms like embedded tomcat java.util.logging and less specific terms since yesterday, and there's tons of info on how to configure tomcat logging. But it all seems to be for file-configuration of regular tomcat installations (as opposed to embedded), and I haven't gotten any of the examples to work. I've also tried to alter our invocation of tomcat, but alas I have not found any way in the API of supplying an existing Logger-object or define which logger object to use programatically either. So, how do I set up tomcat to log _everything_ to commons-logging - java.util.logging.Logger? Can this be configured by config-files (which ones, and how???), or do I have to make these settings from our invoking code? Does anyone know of any how-tos or guides that touch on the issue of logging from embedded tomcat? /Magnus - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat JNI Netbeans
From: soulboy [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat JNI Netbeans Ok I worked out the problem what you need to do is create $CATALINA_HOME/shared/lib directory then edit $CATALINA_HOME/conf/catalina.properties and edit the shared.loader line so that shared.loader=$CATALINA_HOME/shared/lib That was totally unnecessary - all you had to do was what Mark T already said. All you did was add overhead by putting things back to the way they were in Tomcat 5. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk --enable-prefork
Thanks, So in this case reading some of your past responses (and your source knowledge), we do not have to worry about threaded mod_jk misbehaving in a prefork apache - on linux and solaris that is :-) Rgds - Fred Rainer Jung-3 wrote: Hi Fred, mostly yes, but you could write modules, that break this assumption. An indication is mod_cgi, which exists as mod_cgi and mod_cgid. Another hint into this direction is, that httpd doesn't provide a clean way of exchanging MPMs after compilation. In general it is better to compile the module against the MPM you want to use unless you know the code of the module good enough to judge about its MPM independancy. Regards, Rainer fredk2 wrote: Many thanks for your reply. Is it always implied that if an apache module is deemed 'thread safe' it also implies that it will work in prefork environment maybe at the cost of raw performance ? Thanks again - Fred Rainer Jung-3 wrote: fredk2 wrote: Hi, The documentation for mod_jk (eg. version 1.2.25) about --enable-prefork says: In case you build mod_jk for a multi-threaded Apache httpd 2.0/2.2 MPM (Multi-Processing Module), some areas of mod_jk code need to be synchronized to make it thread-safe. Because configure can not easily detect, whether your are using a multi-threaded MPM, mod_jk by default is always build thread-safe for Apache httpd 2.0/2.2. If you are sure, that your MPM is not multi-threaded, you can use --enable-prefork to force the removal of the synchronization code (thus increasing performance a bit). For instance, the prefork MPM is not multi-threaded. For Apache httpd 1.3 this flag will be set automatically. If you specify apxs, doesn't it require a config_vars.mk which has a value pair MPM_NAME = prefork and thus configure could know that prefork was used? Alternatively assuming that apxs is in the same directory then 'httpd -V' could tell that Server MPM: Prefork You are right: apxs -q MPM_NAME would do the trick. I didn't find that one, thanks. On the other hand, we would still need to manage a list of MPMs (which MPM on which platform is single-threaded) and there is some danger, that people have more than one mpm installed (like on many linux distros) and compile against prefork, later use against worker. All in all I'm still in favor of building thread safe by default and only when explicitely requested removing the thread synchronization. The question I have: if the Apache httpd v2.2 is prefork and the mod_jk is compiled default threaded, are there any potential instabilities? (on Solaris and Linux) No, not that we aware of any. On both platforms, the default was building thread safe for a long time. We use pthread mutexes and no problems have been reported with those. Many thanks - Fred Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/mod_jk---enable-prefork-tf4417291.html#a12628071 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to manage Apache error msgs when Tomcat is down?
I couldn't find any binaries for 1.2.25 compiled for http 2.0.52 - running CentOS4 and the latest httpd is 2.0.52-32 - would any binaries later than 1.2.19 work on that build? Dude, just build your own. Here are the steps to installing a binary: $ wget http://../bin/mod_jk-1.2.25.so $ cp mod_jk-1.2.25.so /usr/lib/apache2-extramodules Here are the steps to building and installing from source: $ wget http://.../src/tomcat-connectors-1.2.25.tar.gz $ tar xzf tomcat-connectors-1.2.25.tar.gz $ cd tomcat-connectors-1.2.25/native $ ./configure --with-apxs=/path/to/apxs $ make $ cp apache-2.0/mod_jk.so /usr/lib/apache2-extramodules/mod_jk-1.2.25.so Done! That was easy! No worries about waiting for the perfect binary to come out 'cause you can just build your own! Thanks for the input. I didn't build my own for 2 reasons: 1) don't have any cc / gcc on my RHEL linux server - it is used purely for production and only have proven stable things on it from the RHEL updates. 2) I was under the impression that it would only work with 2.0.59 version of apache - that it had some code in there that would not compile / function with 2.0.52. I guess given your info, I can try to compile it on another server and see where that gets me. Can I customize the error page on a per mount basis by creating a .htaccess file in my /tomcat/ directory within my httpd file workspace? Nope: you've mapped the entire URL space into Tomcat, so when Tomcat isn't working, Apache won't even look. What you ought to do IMO is only map things you actually need. Something like this: Alias /tomcat /path/to/tomcat/webapps/ROOT (or whatever) Directory /path/to/tomcat/webapps/ROOT Order allow,deny Allow from all Files .htaccess Allow deny,allow Deny from all /Files /Directory JkMount /tomcat/*.jsp worker1 JkMount /tomcat/j_security_check worker1 ... others ... Thanks for the confirmation. I had kinda figured as much. Our tomcat apps are self-contained (non-exploded) wars, and mapping each individual extension beomces a challenge (ie: .jsp, .jspa, jsps, .jpg, .js, .), so we found it easier just to map the entire context. In fact, I don't quite see the advantage of your defn - perhaps I am missing something. Why do you even bother alias'ing /tomcat at all? I guess it is so that anything not mapped to the JKworker will be served from the /path/to/tomcat/webapps/ROOT directory directly? Is there any performance enhancement from doing it that way? Would going about it in the opposite direction be a bad idea? Ie: JkMount the entire context and JkUnmount the specific files / extensions that you don't want mounted? Thanks again for all the advice! Eric - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat JNI Netbeans
Does that work with JNI ? All the instructions for JNI with Tomcat say use $CATALINA_HOME/shared/lib. Also I would prefer to keep my jars separately as its easier to keep track of things. I wonder what was the benifit of the change to $CATALINA_HOME/shared/lib ? Thanks Caldarale, Charles R wrote: From: soulboy [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat JNI Netbeans Ok I worked out the problem what you need to do is create $CATALINA_HOME/shared/lib directory then edit $CATALINA_HOME/conf/catalina.properties and edit the shared.loader line so that shared.loader=$CATALINA_HOME/shared/lib That was totally unnecessary - all you had to do was what Mark T already said. All you did was add overhead by putting things back to the way they were in Tomcat 5. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-JNI-Netbeans-tf4376281.html#a12628304 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk --enable-flock documentation question
Hi, Reading the mod_jk (1.2.25) compilation documentation for --enable-flock it says: In case the operating system supports flock system call use this flag to enable this faster locks that are implemented as system call instead emulated by GNU C library. However those locks does not work on NFS mounted volumes, so you can use --enable-flock during compile time to force the flocks() calls. + this text seems to say to use --enable-flock to tell mod_jk to use the flock system call - if supported. Then it says that NFS does not support the flock system call. Thus it seems to me that correct sentence whould be: However those locks do not work on NFS mounted volumes, hence do not set --enable-flock during compile time. ./configure says: Linux - checking for flock... yes Solaris - checking for flock... no So i guess this is a non-issue for Solaris. + Is it correct that --enable-flock only affects the handling of JkShmFile? thus you would mitigate the potential issue(s) if you move this file to a local disk /tmp while the apache and logfiles can remain on the NFS mount. Many thanks - Fred -- View this message in context: http://www.nabble.com/mod_jk---enable-flock-documentation-question-tf4426869.html#a12628444 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat JNI Netbeans
From: soulboy [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat JNI Netbeans Does that work with JNI ? JNI has nothing to do with Tomcat, but rather with the JVM you're using. For Sun-based JVMs, the location of native libraries must be specified via the java.library.path system property. When running on UNIX/Linux platforms, the default value of that property is taken from the LD_LIBRARY_PATH environment variable; for Windows, it comes from PATH. The system property can alternatively be set directly on the launcher command line. Tomcat 6 uses a much simplified classloader hierarchy both to reduce overhead and make certain operations easier, such as direct referencing of Tomcat-specific classes. Changing the classloader hierarchy to be compatible with 5.5 or earlier is a step backwards. All the instructions for JNI with Tomcat say use $CATALINA_HOME/shared/lib. What instructions are those? If they're coming from some 3rd party, they're out of date (not unusual). Also I would prefer to keep my jars separately as its easier to keep track of things. Which is why the servlet spec recommends that webapps be implemented independently, and jars should go into WEB-INF/lib of each webapp, even if that means duplicating them. Since you're insisting on using JNI (thereby guaranteeing your app is not portable), you're stuck with the Java restriction that a native library can only be loaded once, regardless of the number of classloaders that want to use it. I'd still put the common jar in Tomcat's lib directory, since that's simple and straightforward. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to manage Apache error msgs when Tomcat is down?
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Eric B. Subject: Re: How to manage Apache error msgs when Tomcat is down? Our tomcat apps are self-contained (non-exploded) wars, and mapping each individual extension beomces a challenge (ie: .jsp, .jspa, jsps, .jpg, .js, .), so we found it easier just to map the entire context. In that case, why are you using httpd at all? Is it needed for some other reason? If all your requests are going to Tomcat anyway, adding httpd to the mix just slows things down. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]