RE: Repeated load-on-startup niggle
Correct - the only place the Filter is mentioned is in the web.xml for the / Context and the .class file is in that Context. If it further confirms your understanding, I should mention that in the beginning I *did* have a copy of the Filter under /hal (for initial testing of the Filter) and that caused an infinite loop for redirections! The first request to / got redirected to /hal which then got redirected to /hal etc. etc. Chris Chris, thanks for responding. I think I understand. Sanity check: the filter is not even mentioned anywhere in the webapps/hal heirarchy, right? That hierarchy is totally unaware of the filter. If that's the case then all is making sense now. thanks again, -joe Chris Ward wrote: Hi Joe, I'm not sure exactly what your query is but the setup I have is a / and a /hal Context. The Filter I am using to direct any requests to / to /hal lives in the WEB-INF/classes dir of the / context. In my case I used the Tomcat default dir of ../webapps/ROOT for the / docBase. Further. the configuration for the Filter and the URL pattern to fire it is in the web.xml file in that same WEB-INF dir. I do use /* as the URL pattern, but remember that these URL patterbs are relative to the Context the web.xml file is in. i.e. webapps/ROOT/WEB_INF/web.xml URL pattern of /* matches http://myserver/* webapps/hal/WEB_INF/web.xml URL pattern of /* matches http://myserver/hal/* Sorry if I've missed your point. Regards, Chris Shapira, Yoav wrote: Howdy, A javax.servlet.Filter is one nice clean way. Apologies if this is dumb q: Googling the jakarta site and reading the tomcat o'reilly have left me confused on this. Isn't the filter part of web app? From jakarta: Filters are configured in the deployment descriptor of a web application And in o'reilly the filter and filter-mappnig tags are discussed in the web.xml section. Doesn't this raise a namespace issue? If your servlet-mapping is to /foo, then a filter on /* seems like it will either never fire, or else be ambiguous with other /* filters in other web apps (such as the /bar webapp, with it's own /* filter). The original poster had a /hal context and a / context. Does the filter solution require the / context to remain? Or is that unneeded? thanks for any unconfusion, -joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Repeated load-on-startup niggle
302 -- found (redirect), this is expected and good. 304 -- not modified, means it's in your browser's cache. Try clearing your browser's cache. Top tip. Cleared the cache and the gifs etc. turned up! Thanks for that. I should take more notice of the codes. I'm not convinced my Filter is correct since there are other things that have not had the /hal added to them... - - [23/Jan/2004:17:31:22 00] GET /stylesheets/HAL_Styles.css HTTP/1.1 302 - - - [23/Jan/2004:17:31:22 00] GET /JavaScript/HAL_CommonJavaScript.js HTTP/1.1 302 - Is there a matching 304 with /hal for these requests? I'll check this later. I was kinda hoping there would be nothing other than /hal/ entries in here. No: all requests are logged (because of where in server.xml the AccessLogValve is defined -- you can change this), so you see requests for / as well as /hal. Ah. I get it, that makes sense. Thanks again. I'm close to having my initial problem solved now. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ClassCastException
Dear Java Friends, The following snippet code is for storing the ArrayList values into Object array and it has to display using another loop. My requirement is I want to store only in Object[] array but not in any other data type. Its compiling but giving run time error in the following line. Can anybody give their suggestion or recode the below. lo_oName = (Object[ ]) lo_arrListName.get(i); //giving error here in runtime. /* FullCode */ import java.util.*; public class Generic { public static void main ( String args[ ] ) { Object lo_oName[] = null; ArrayList lo_arrListName = new ArrayList(); lo_arrListName.add(HAPPY BIRTHDAY TO YOU...); lo_arrListName.add(YOU ARE NOT YOU YOU ARE HE...); lo_arrListName.add(THE GOD...); lo_arrListName.add(PRAY HIM DEEPLY PEACEFULLY...); lo_arrListName.add(HE GIVES ALL TO YOU...); /*lo_arrListName.add(new Integer(100)); lo_arrListName.add(new Integer(200)); lo_arrListName.add(new Integer(300)); */ int i = 0; System.out.println ( lo_arrListName.size()); while (ilo_arrListName.size() ) { System.out.println ( In the while loop. ); lo_oName = (Object[ ]) lo_arrListName.get(i); System.out.println (After storing the arraylist value in Object variable..); System.out.println (Value in object... + lo_oName[i].toString() ); i++; } } } - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
RE: memory leak in tomcat 5.0.16 ?
Thanks, I will upgrade to 5.0.18 and see if it works ! /Torstein -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 22. januar 2004 11:44 To: Tomcat Users List Subject: RE: memory leak in tomcat 5.0.16 ? We had exactly the same problem. 2 users on 5.0.16 after 20 minutes the RAM consumed was 158MB and then it crashed. Upgraded to 5.0.18 yesterday and RAM is a steady 30MB. I dont care what anyone says, 5.0.16 had a problem! -Original Message- From: Francois JEANMOUGIN [mailto:[EMAIL PROTECTED] Sent: 22 January 2004 10:19 To: Tomcat Users List Subject: RE: memory leak in tomcat 5.0.16 ? -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 11:05 AM To: Tomcat Users List Subject: RE: memory leak in tomcat 5.0.16 ? There is a known memory leak in 5.0.16, I'd upgrade to 5.0.18 and see if this fixes your problem. Note that the download page on Jakarta.apache.org is not updated with this new release. You need to figure the good URL by yourself (not so hard). François. -- --- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE -- - QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 -- - /FONT -- --- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Build problem with: connectors source
I downloaded the latest source file:jakarta-tomcat-connectors-jk2-src-current.tar.gz tar xvfz jakarta-tomcat-connectors-jk2-src-current.tar.gz cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk Then I build with ant and recive the following error: [EMAIL PROTECTED] jk]# ant Buildfile: build.xml detect: [echo] jakarta-tomcat-connectors prepare: BUILD FAILED /home/digfi/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:105: Warning: Could not find file /home/digfi/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/build/lib/tomca t-coyote.jar to copy. Total time: 1 second What can I do? There was no coyote-directory created when i extrated the file and I cant find any source for it either. ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[URGENT] Problems getting SSL 2-Way Authentication to work
To whomever can help: I'm trying to get a 2-way authentication mechanism working for Tomcat 4.1.29. I have browsed many archives and guides and have come up with some steps of commands to try and get the whole business up and running (see further down). I basically have a server and a client and I want the server to present a certificate to the client and vice versa, which the server then accepts and the user gains access to the protected resources. I am using an own CA (i.e. a self-signed one), which I employ to sign both the server and the client certificates. My problem is that even though the server seems to present to me the correct certificate when I examine it (i.e. correctly signed by my own CA), I get an error saying the following (using Mozilla to access the site): Could not establish an encrypted connection, because certificate presented by server is invalid or corrupted. Error Code: -8182 I looked this up in the Mozilla error codes database and it had the annotation Peer's certificate has an invalid signature. I am really confused as to why this doesn't work. The exact steps I have taken for the whole process are as follows: == SETTING UP OWN CA == 1. Create directory certificates and subdirectories - ca - server - client 2. Create private key and certificate request for our own CA: (from root dir) openssl req -new -newkey rsa:1024 -nodes -out certificates/ca/ca.csr -keyout certificates/ca/ca.key -config /homes/ts200m/certificates/openssl.cnf Country Name [C] = GB State/Province Name [ST] = London Locality Name [L] = London Organization Name [O] = Imperial College London Organizational Unit Name [OU] = London e-Science Centre Common Name [CN] = ca.lesc.ic.ac.uk EMail Address [Email] = [EMAIL PROTECTED] Challenge Password = changeit 3. Create our CA's self-signed certificate: openssl x509 -trustout -signkey certificates/ca/ca.key -days 365 -req -in certificates/ca/ca.csr -out certificates/ca/ca.pem cp certificates/ca/ca.pem certificates/ca/ca.crt vim certificates/ca/ca.crt edit ca.crt so that strings TRUSTED CERTIFICATE read CERTIFICATE 4. Copy JDK Certificate Authorities Keystore into Tomcat root dir: cp $JAVA_HOME/jre/lib/security/cacerts tomcat/ chmod 0755 tomcat/cacerts 5. Import CA certificate into cacerts: keytool -import -trustcacerts -keystore tomcat/cacerts -file certificates/ca/ca.pem -alias LeSC-CA Keystore Password = changeit Should get Certificate was added to keystore message 6. Create file to hold CA's serial numbers: echo 02 certificates/ca/ca.srl == SETTING UP WEB SERVER == 1. Create keystore for server: (This creates a keystore, as well as a self-signed certificate with the details provided) keytool -genkey -alias server -dname CN=epic-server.lesc.ic.ac.uk, O=Imperial College London, OU=London e-Science Centre, L=London, S=London, C=GB -keysize 1024 -keystore certificates/server/server.ks -keypass changeit -storepass changeit -storetype JKS -validity 365 2. Create certificate request for web server: keytool -certreq -keystore certificates/server/server.ks -storepass changeit -alias server -file certificates/server/server.csr 3. Sign certificate request with own CA: openssl x509 -CA certificates/ca/ca.pem -CAkey certificates/ca/ca.key -CAserial certificates/ca/ca.srl -req -in certificates/server/server.csr -out certificates/server/server.crt -days 365 4. Import CA certificate into keystore as root certificate: (don't know if -trustcacerts is required...) keytool -import -alias root -keystore certificates/server/server.ks -storepass changeit -trustcacerts -keyalg RSA -file certificates/ca/ca.pem Should see message Certificate was added to keystore after import 5. Import signed server certificate into server keystore: (This should replace the self-signed cerificate with alias server that was created when the keystore was created) keytool -import -alias server -keystore certificates/server/server.ks -storepass changeit -keyalg RSA -file certificates/server/server.crt Should see message Certificate reply was installed in keystore after import 6. Move keystore file to Tomcat's root dir: mv certificates/server/server.ks tomcat/ chmod 0755 tomcat/server.ks 7. Set up SSL Connector for Tomcat (edit file tomcat/conf/server.xml): !-- Define a SSL Coyote HTTP/1.1 Connector on port 6 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=6 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=100 debug=0 scheme=https secure=true useURIValidationHack=false disableUploadTimeout=true Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=true protocol=TLS keystoreFile=server.ks keystorePass=changeit truststoreFile=cacerts truststorePass=changeit/ /Connector = SET UP AN SSL CLIENT = 1. Create a client
Tomcat manager reload, start and stop functionality
Hi, I have a question about some tasks of the manager app of Tomcat. * The Reload-task doesn't stop and start the webapp, but I wonder how it exactly works. Because when I am transferring a new jar-file on the server and a Reload is run on the context, I need to know how this can affect the HTTP requests entering that context at that exact moment the reload is running. I know we are talking about less than a sec. here in most cases, but imagine thousands and thousands of SMS messages coming in via HTTP requests to that context. How is this handled ? With timeout and try again ? Please explain this if someone would be so kind .. * The second question involves the same matter, but with the stop and start task. The context is not active after running the stop (only for a very short time but still) so any HTTP request will fail (I guess a 404 or something). Is there a way to work around this ? Some kind of delay option or something.. to tell that any HTTP request is put into a pool and then run again on the context when it is active (after the start). Or are there better ways to assure nothing gets lost .. (ps of course using jsp's ensures not needing the start and stop, but suppose we're using servlets). I looked it the tomcat docs, but there wasn't really an in-depth explanation about this .. Thx in advance :-) Verheyen Quinten Software Engineer Rue Gabrielle Petitstraat 4/6 1080 Brussel Tel : +0032 (0)2 502 85 00 Fax : +0032 (0)2 502 76 07 Gsm : +0032 (0)494 81 04 81 E-mail : mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Politicians' Syllogism : step 1 : we must do something. step 2 : this is something. step 3 : therefore we must do it.
Re: DefaultContext Management from Tomcat Administration
Brandon Goodin wrote: I have just installed Tomcat 5 and am very impressed with the usability changes from 4.x and am thrilled about the new spec. But, i use the DefaultContext configuration component quite often in my Host. After having used the Tomcat Administration Tool I found no way to establish a DefaultContext within a host using the Tomcat Admonistration Tool. Am I missing something or is this a terrible oversite? Yes, this seems to be missing. The DefaultContext functionality seems lacking. You can use BZ and add an enhancement in the admin webapp category. -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat5 in-process (more info for you guys)
mod_jk2.c :) I refer to the Mladen's source whenever I get a message that won't make sense, it clears up things for me a lot. Yiannis -Original Message- From: Phil Adams [mailto:[EMAIL PROTECTED] Sent: 23 January 2004 21:36 To: Tomcat Users List Subject: Re: tomcat5 in-process (more info for you guys) where did you find this blurb of code - Original Message - From: Yiannis Mavroukakis [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, January 23, 2004 11:36 AM Subject: RE: tomcat5 in-process (more info for you guys) Phil, here is the code related to your error rc = worker-service(env, worker, s); [] rc1=worker-rPoolCache-put( env, worker-rPoolCache, rPool ); if( rc1 == JK_OK ) { rPool=NULL; } if( rPool!=NULL ) { rPool-close(env, rPool); } if(rc==JK_OK) { workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env ); return OK;/* NOT r-status, even if it has changed. */ } env-l-jkLog(env, env-l, JK_LOG_ERROR, mod_jk.handler() Error connecting to tomcat %d\n, rc); workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env ); return 500; the worker is derived from the apache pool of workers (i think), so I'd need to look at the worker code to make more sense of it..worker-service(env, worker, s) is returning something else other than the equivalent of JK_OK, so this is where it fails.. Dig in the source code for workers, it might help..The lad who wrote mod_jk2 is also frequenting the list so he might be able to enlighten us on the specifics :) Yiannis. -Original Message- From: Phil Adams [mailto:[EMAIL PROTECTED] Sent: 23 January 2004 17:12 To: Tomcat Users List; [EMAIL PROTECTED] Subject: tomcat5 in-process (more info for you guys) here is my error.log file from just a few minutes ago when I started apache [Fri Jan 23 11:09:57 2004] [notice] config.update(): done logger [Fri Jan 23 11:09:57 2004] [notice] config.update(): done config: [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uriMap: [Fri Jan 23 11:09:57 2004] [notice] config.update(): done shm [Fri Jan 23 11:09:57 2004] [notice] config.update(): done workerEnv: [Fri Jan 23 11:09:57 2004] [notice] config.update(): done lb:lb [Fri Jan 23 11:09:57 2004] [notice] config.update(): done channel.jni:jni [Fri Jan 23 11:09:57 2004] [notice] config.update(): done worker.jni:onStartup [Fri Jan 23 11:09:57 2004] [notice] config.update(): done worker.jni:onShutdown [Fri Jan 23 11:09:57 2004] [notice] config.update(): done vm: [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/servlets-examples/* [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/jsp-examples/* [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/tomcat-docs/* [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/jetspeed/* [Fri Jan 23 11:09:57 2004] [notice] config.update(): done status: [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/jkstatus/* [Fri Jan 23 11:09:58 2004] [notice] Parent: Created child process 2432 [Fri Jan 23 11:09:58 2004] [notice] config.update(): done logger [Fri Jan 23 11:09:58 2004] [notice] config.update(): done config: [Fri Jan 23 11:09:58 2004] [notice] config.update(): done uriMap: [Fri Jan 23 11:09:58 2004] [notice] config.update(): done shm [Fri Jan 23 11:09:58 2004] [notice] config.update(): done workerEnv: [Fri Jan 23 11:09:58 2004] [notice] config.update(): done lb:lb [Fri Jan 23 11:09:58 2004] [notice] config.update(): done channel.jni:jni [Fri Jan 23 11:09:58 2004] [notice] config.update(): done worker.jni:onStartup [Fri Jan 23 11:09:58 2004] [notice] config.update(): done worker.jni:onShutdown [Fri Jan 23 11:09:58 2004] [notice] config.update(): done vm: [Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/servlets-examples/* [Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/jsp-examples/* [Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/tomcat-docs/* [Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/jetspeed/* [Fri Jan 23 11:09:58 2004] [notice] config.update(): done status: [Fri Jan 23 11:09:58 2004] [notice] config.update(): done uri:/jkstatus/* [Fri Jan 23 11:09:58 2004] [notice] Child 2432: Child process is running [Fri Jan 23 11:09:58 2004] [notice] jk2_init() Setting scoreboard slot 0 for child 2432 [Fri Jan 23 11:09:58 2004] [notice] vm.init(): Jni lib: C:\Program Files\Java\j2re1.4.2_03\bin\client\jvm.dll [Fri Jan 23 11:09:59 2004] [notice] vm.open2() done [Fri Jan 23 11:09:59 2004] [notice] jni.validate() class= org/apache/jk/apr/TomcatStarter [Fri Jan 23 11:09:59 2004] [notice] Loaded org/apache/jk/apr/TomcatStarter [Fri Jan 23 11:09:59 2004] [notice] jni.init() setting stdout=c:/Apache2/logs/stdout.log... [Fri Jan 23 11:09:59 2004] [notice] jni.init() setting stderr=c:/Apache2/logs/stderr.log...
RE: tomcat5 in-process (more info for you guys)
JNI will only work for a single worker model, from my questions to Mladen Turk,if memory serves me right, so JNI won't work on Linux (yet). The good people involved on the connectors project however will probably come up with something. Yiannis -Original Message- From: Hamilton Andrew [mailto:[EMAIL PROTECTED] Sent: 23 January 2004 19:30 To: Tomcat Users List Subject: RE: tomcat5 in-process (more info for you guys) I'm attempting this on a Linux machine and I keep getting this: INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: no jkjni in java.library.path I followed the install directions and put the jkjni.so file in $APACHE_HOME/modules. Can anyone help me with this? Thanks, Drew -Original Message- From: Phil Adams [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 12:53 PM To: Tomcat Users List Subject: Re: tomcat5 in-process (more info for you guys) now that I have apache started without error and it would appear that it has tomcat started in-process (maybe) I went to a cmd line to start tomcat and received an error that port 8005 is already in use, which a netstat proves to be true. the only place that port 8005 is configured to be used is in server.xml for tomcat. therefore, this lends some credence to the logic that apache is starting tomcat in-process. But... apache cannot talk to it. Why-not? I still believe it must have something to do with a lack of a connector. Now when I surf to my uri's and get the 500 server failure the log shows this. notice on the second attempt that it 'reenable'd ajp13:jni. this is not something that I have configured. must be a default. h... [Fri Jan 23 11:37:02 2004] [notice] shm.createSlot() Create 1 0x64 0x642000 [Fri Jan 23 11:37:02 2004] [notice] workerEnv.init() create slot epStat.0 [Fri Jan 23 11:37:02 2004] [error] lb.service() worker failed 12 for ajp13:jni [Fri Jan 23 11:37:02 2004] [error] lb.service() unrecoverable error... [Fri Jan 23 11:37:02 2004] [notice] vm.detach() ok [Fri Jan 23 11:37:02 2004] [error] mod_jk.handler() Error connecting to tomcat 12 [Fri Jan 23 11:39:03 2004] [error] lb.getWorker() reenable ajp13:jni [Fri Jan 23 11:39:03 2004] [notice] lb.getWorker() All workers in error state, use the one with oldest error [Fri Jan 23 11:39:03 2004] [error] lb.service() worker failed 12 for ajp13:jni [Fri Jan 23 11:39:03 2004] [error] lb.service() unrecoverable error... [Fri Jan 23 11:39:04 2004] [notice] vm.detach() ok [Fri Jan 23 11:39:04 2004] [error] mod_jk.handler() Error connecting to tomcat 12 - Original Message - From: Yiannis Mavroukakis [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, January 23, 2004 11:36 AM Subject: RE: tomcat5 in-process (more info for you guys) Phil, here is the code related to your error rc = worker-service(env, worker, s); [] rc1=worker-rPoolCache-put( env, worker-rPoolCache, rPool ); if( rc1 == JK_OK ) { rPool=NULL; } if( rPool!=NULL ) { rPool-close(env, rPool); } if(rc==JK_OK) { workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env ); return OK;/* NOT r-status, even if it has changed. */ } env-l-jkLog(env, env-l, JK_LOG_ERROR, mod_jk.handler() Error connecting to tomcat %d\n, rc); workerEnv-globalEnv-releaseEnv( workerEnv-globalEnv, env ); return 500; the worker is derived from the apache pool of workers (i think), so I'd need to look at the worker code to make more sense of it..worker-service(env, worker, s) is returning something else other than the equivalent of JK_OK, so this is where it fails.. Dig in the source code for workers, it might help..The lad who wrote mod_jk2 is also frequenting the list so he might be able to enlighten us on the specifics :) Yiannis. -Original Message- From: Phil Adams [mailto:[EMAIL PROTECTED] Sent: 23 January 2004 17:12 To: Tomcat Users List; [EMAIL PROTECTED] Subject: tomcat5 in-process (more info for you guys) here is my error.log file from just a few minutes ago when I started apache [Fri Jan 23 11:09:57 2004] [notice] config.update(): done logger [Fri Jan 23 11:09:57 2004] [notice] config.update(): done config: [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uriMap: [Fri Jan 23 11:09:57 2004] [notice] config.update(): done shm [Fri Jan 23 11:09:57 2004] [notice] config.update(): done workerEnv: [Fri Jan 23 11:09:57 2004] [notice] config.update(): done lb:lb [Fri Jan 23 11:09:57 2004] [notice] config.update(): done channel.jni:jni [Fri Jan 23 11:09:57 2004] [notice] config.update(): done worker.jni:onStartup [Fri Jan 23 11:09:57 2004] [notice] config.update(): done worker.jni:onShutdown [Fri Jan 23 11:09:57 2004] [notice] config.update(): done vm: [Fri Jan 23 11:09:57 2004] [notice] config.update(): done uri:/servlets-examples/* [Fri Jan 23 11:09:57 2004]
RE: Memory climbs until I get an OutOfMemory Error
Hi, Did the old version without the connection pool work? What driver are you using? I ask because I had/may still have similar memory problems and we use the MS SQL Server drivers for the connection pool. I might try download a 3rd party demo and see what the performance on that is like Cheers, ADC -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: 24 January 2004 20:56 To: 'Tomcat Users List' Subject: RE: Memory climbs until I get an OutOfMemory Error I'm pretty certain it's not the application - I've successfully run it with no issues on OS X, Red Hat 10 (Fedora), Windows XP and a different Windows 2000 server in the same server room. I'm pretty sure it's something to do with the JK setup - I'll have to try doing it again from scratch. Matt -Original Message- From: Eric Emminger [mailto:[EMAIL PROTECTED] Sent: Saturday, January 24, 2004 1:32 PM To: Tomcat Users List Subject: Re: Memory climbs until I get an OutOfMemory Error Matt, I have a weird issue on a server. The server is a Windows 2000 Server with IIS installed and Tomcat 4.1.12. It uses the isapi connector to proxy requests from IIS to Tomcat. Everything has been working fine with this setup for several months. Last week, I tried to add a new application to the Tomcat instance. This application is a bit more than the existing app - it has a JDBCRealm and connection pool setup. Could your application have a memory leak? Infinite loop? Are you sure it's the server and not the application? Maybe the connection pool has a problem? Just trying to help. Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSPC under Tomcat5.0.18
Dear list members , Recently I've decided to redeploy some of my projects with Tomcat5.0.18. Part of my projects are precomplied JSP files which were compiled using JSPC that came with Tomcat4.1.29. To my surprise those classes were not able to run properly with Tomcat5, while deploying JSP files without precompiling worked alright. The next step was to recompile JSP files allover using JSPC shipped with Tomcat5 and so I did using the Latest ANT release 1.6.0. ANT failed to complie the files with the following reason : Buildfile: build.xml jspc: [jspc] Compiling 21 source files/var/tomcat5/webapps/System/src/jsp/org/apache/jsp [jasperc] error:org.apache.jasper.JasperException: Unrecognized option: -v9. Use -help for help. [jasperc] at org.apache.jasper.JspC.setArgs(JspC.java:307) [jasperc] at org.apache.jasper.JspC.main(JspC.java:231) Can anyone tell me what is the issue here ? Why it is not backwards compatible ? How can I precompile the JSP files for Tomcat 5 ? Thanks in advance. Regards , Dima Gutzeit. - MailVision LTD. RD Team. Phone: 972-4-8500505 ext. 14 Fax: 972 - 4 - 8508000 http://www.mailvision.com
logs Problem- Please HELP
I had no problems installing the tomcat as service but its deleting my logs anytime I restart the server, Can someone tell me how to change the configuration so it will not delete the logs? Regards, Yuval - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple instances, multiple IPs
Or the FAQ! http://jakarta.apache.org/tomcat/faq/connectors.html#bind -Tim Bill Barker wrote: Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I need to run multiple instances of Tomcat on one box. The reason is that we have multiple websites, and I want them to have independent JVMs. There is some pretty good documentation out there on how to configure multiple instances of Tomcat, but all of it presumes that each instance runs on a different port (8080, 8081, etc). This obviously won't work for public websites where they all have to run on port 80. Suppose that a server responds to multiple IP addresses. Is it possible to get an instance of Tomcat to listen on only one IP? How? This is a clear case of RTFM, but the answer is to set the address=my.ip.address.here on the Connector element in server.xml. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache .htaccess vs. realms in tomcat
To use .htaccess just make sure there is a physical directory for the mapping for the servlet. (Even though tomcat won't use it) For example lets say tomcat handles all the requests for /cowbell such that tomcat also gets the request for: /cowbell/is/the/prescription So you could create a directory called /cowbell/is/the and place an .htaccess file there so you can secure the prescription using the appropriate require directives. (I think) -Tim Alexander Jay Storman wrote: Is there anyway to secure a servlet via .htaccess in apache2 using jk2 with tomcat5 or do I have to use realms. Ideally, I would setup access via directory access using a .htaccess file, but all the documentation I have read seems to point to me needing to use realms and not using .htacess files. Is this the case? If it is possible to use .htaccess, does a HOWTO exist? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem
Hi, I don't subscribe to the list so direct reply to [EMAIL PROTECTED] would be greatly appreciated. We recently detect a problem with sending generated PDF to Acrobat 6.0.1's IE plug-in. In Tomcat, if the ContentType is set, a charset is automatically appended to it. This causes problem with Acrobat 6.0.1's IE plug-in. So far, we have summarize the following conditions: 1. ContentType: application/pdf This works fine. 2. ContentType: application/pdf; This shows blank pages 3. ContentType: application/pdf;charset=UTF-8 This shows error message of corrupted PDF file. However, if we download it, it can be open correctly with Arcobat 6.0.1. Only plug-in complaining the problem. I have tried to contact Adobe about this but, of course, get no response. I think this is more of a problem of Adobe's plug-in implementation rather then Tomcat's problem. I have check the source codes, there is no way to disable appending charset if setContentType is called. Any suggestion is appreciated. David Li - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple hosts: two possible configuration with host and context?
Hello, I've installed Tomcat 5.0.18 on a Win2000 Server. I work with multi hosting. I've tried two ways to configure the server. The two ways work fine but I think one is wrong... Can you help me identify which is wrong and why? The difference are the attribute's value for appBase and docBase. Thanks in advance Arnaud Deflorenne First configuration (server.xml) Host name=www.mydomain.be debug=0 appBase=c:\wwwroot\mydomainbe\ unpackWARs=true autoDeploy=false Context path= docBase= debug=0 reloadable=true / /Host Host name=www.myseconddomain.be debug=0 appBase=c:\wwwroot\myseconddomainbe\ unpackWARs=true autoDeploy=false Context path= docBase= debug=0 reloadable=true / /Host Second configuration (server.xml) Host name=www.mydomain.be debug=0 appBase=c:\wwwroot\ unpackWARs=true autoDeploy=false Context path= docBase=/mydomainbe debug=0 reloadable=true / /Host Host name=www.myseconddomain.be debug=0 appBase=c:\wwwroot\ unpackWARs=true autoDeploy=false Context path= docBase=/myseconddomainbe debug=0 reloadable=true / /Host - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem
Its a fixed bug. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24970 -Tim David Li wrote: Hi, I don't subscribe to the list so direct reply to [EMAIL PROTECTED] would be greatly appreciated. We recently detect a problem with sending generated PDF to Acrobat 6.0.1's IE plug-in. In Tomcat, if the ContentType is set, a charset is automatically appended to it. This causes problem with Acrobat 6.0.1's IE plug-in. So far, we have summarize the following conditions: 1. ContentType: application/pdf This works fine. 2. ContentType: application/pdf; This shows blank pages 3. ContentType: application/pdf;charset=UTF-8 This shows error message of corrupted PDF file. However, if we download it, it can be open correctly with Arcobat 6.0.1. Only plug-in complaining the problem. I have tried to contact Adobe about this but, of course, get no response. I think this is more of a problem of Adobe's plug-in implementation rather then Tomcat's problem. I have check the source codes, there is no way to disable appending charset if setContentType is called. Any suggestion is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat clustering
How can I get some tomcat servers working like a cluster? I means, how to put some tomcat to get load balancing and increment the site performance. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WepappClassLoader reference
I was wondering if it is at all possible to get hold of the WebappClassLoader instance from inside a Tomcat web application? Okay, I know that you can the WebappClassLoader reference through something like: SomeClass.class.getClassLoader() but in my case this should be a general routine that can be included in a number of applications and should not be bound to the existence of a certain class within the application. After looking through some of the Tomcat source code, I've got my doubts that this is possible, but maybe I'm just overlooking something. Thnx Rudolf Visagie Software Developer Enerweb (Pty) Ltd. Tel: (011) 800 3826 The perusal, use, dissemination, copying or storing of this message or its attachments and the opening of attachments is subject to Enerweb's standard email disclaimer available at internet address: www.enerweb.co.za/email_disclaimer.htm or on request from the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat clustering
For the basic on loadbalancing and architecture check out this article from Filip: http://www.theserverside.com/articles/article.jsp?l=Tomcat It's nicely done. A little out of date as for the tomcat configuration. Since tc 5.x has a whole new clustering engine. But it should be good enough for you to understand the balancing fundamentals. Jean-Philippe Bélanger CGI Salvador Santander Gutierrez wrote: How can I get some tomcat servers working like a cluster? I means, how to put some tomcat to get load balancing and increment the site performance. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory climbs until I get an OutOfMemory Error
Matt, We are experiencing the same issue. It doesn't appear that there is a clear answer, just lots of guessing. We have contacted Novell because we are using their Portal services. We have upgraded Tomcat, change parameters in the web.xml, and servlet.properties files and no luck. We are using a Windows 2000 to run Tomcat. Please forward me anything you get that could resolve this. Christian Witucki Network Analyst 375 Essjay Road Williamsville, NY 14221 716-631-3001 x3812 CONFIDENTIALITY NOTICE. This e-mail and attachments, if any, may contain confidential information which is privileged and protected from disclosure by Federal and State confidentiality laws, rules or regulations. This e-mail and attachments, if any, are intended for the designated addressee only . If you are not the designated addressee, you are hereby notified that any disclosure, copying, or distribution of this e-mail and its attachments, if any, may be unlawful and may subject you to legal consequences. If you have received this e-mail and attachments in error, please contact Independent Health immediately at (716) 631-3001 and delete the e-mail and its attachments from your computer. Thank you for your attention. [EMAIL PROTECTED] 01/24/04 03:10PM I have a weird issue on a server. The server is a Windows 2000 Server with IIS installed and Tomcat 4.1.12. It uses the isapi connector to proxy requests from IIS to Tomcat. Everything has been working fine with this setup for several months. Last week, I tried to add a new application to the Tomcat instance. This application is a bit more than the existing app - it has a JDBCRealm and connection pool setup. Here's the strange behavior. After starting Tomcat, the memory used climbs to about 48MB, but when I hit the first page in the new app - the memory usage by java.exe starts climbing off the charts. It increases by about 1 MB every second and before long it reaches the threshold (256MB) and it throws an out of memory error - and it's just on the welcome page! The only thing I've changed since dropping my app in tomcat is to use tomcat's authentication, rather than passing it through from IIS. Has anyone else seen this behavior? Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory climbs until I get an OutOfMemory Error
Matt, could I email you privatly to discuss further about set up and portal heads?? Maybe we could come up with a solution. Christian Witucki Network Analyst 375 Essjay Road Williamsville, NY 14221 716-631-3001 x3812 CONFIDENTIALITY NOTICE. This e-mail and attachments, if any, may contain confidential information which is privileged and protected from disclosure by Federal and State confidentiality laws, rules or regulations. This e-mail and attachments, if any, are intended for the designated addressee only . If you are not the designated addressee, you are hereby notified that any disclosure, copying, or distribution of this e-mail and its attachments, if any, may be unlawful and may subject you to legal consequences. If you have received this e-mail and attachments in error, please contact Independent Health immediately at (716) 631-3001 and delete the e-mail and its attachments from your computer. Thank you for your attention. [EMAIL PROTECTED] 01/24/04 03:56PM I'm pretty certain it's not the application - I've successfully run it with no issues on OS X, Red Hat 10 (Fedora), Windows XP and a different Windows 2000 server in the same server room. I'm pretty sure it's something to do with the JK setup - I'll have to try doing it again from scratch. Matt -Original Message- From: Eric Emminger [mailto:[EMAIL PROTECTED] Sent: Saturday, January 24, 2004 1:32 PM To: Tomcat Users List Subject: Re: Memory climbs until I get an OutOfMemory Error Matt, I have a weird issue on a server. The server is a Windows 2000 Server with IIS installed and Tomcat 4.1.12. It uses the isapi connector to proxy requests from IIS to Tomcat. Everything has been working fine with this setup for several months. Last week, I tried to add a new application to the Tomcat instance. This application is a bit more than the existing app - it has a JDBCRealm and connection pool setup. Could your application have a memory leak? Infinite loop? Are you sure it's the server and not the application? Maybe the connection pool has a problem? Just trying to help. Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WepappClassLoader reference
Use Thread.currentThread().getContextClassLoader() -Original Message- From: Rudolf Visagie [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 2:42 PM To: [EMAIL PROTECTED] Subject: WepappClassLoader reference I was wondering if it is at all possible to get hold of the WebappClassLoader instance from inside a Tomcat web application? Okay, I know that you can the WebappClassLoader reference through something like: SomeClass.class.getClassLoader() but in my case this should be a general routine that can be included in a number of applications and should not be bound to the existence of a certain class within the application. After looking through some of the Tomcat source code, I've got my doubts that this is possible, but maybe I'm just overlooking something. Thnx Rudolf Visagie Software Developer Enerweb (Pty) Ltd. Tel: (011) 800 3826 The perusal, use, dissemination, copying or storing of this message or its attachments and the opening of attachments is subject to Enerweb's standard email disclaimer available at internet address: www.enerweb.co.za/email_disclaimer.htm or on request from the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals computer viruses. ***
[OT] installing new java jdk
I haven't worked out how to install new versions of java onto my remote webserver effectively yet. If I go to my webserver with a linux shell and use Lynx, the download page at java.sun.com gets truncated. wget and curl don't work either because they're not interactive so you can't click on the 'accept terms' submit button. it means I cannot download the 30MB or so direct from java.sun.com to my webserver. I have to download it to my workstation and then scp it across to my webserver, which means uploading over asynchronous DSL which takes about 30 mins (and effectively halts any internet browsing, so I can't even entertain myself while I wait). How does everyone else do it? Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting system properties in standalone Tomcat 4.1.24
Hi all, Sorry if this is a really dumb question, but how/where do I set system properties when using Tomcat 4.1.24? I've searched around but found nothing obvious. Is it in an xml file rather than a .properties file? Is it in the Java JDK? Best regards Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting system properties in standalone Tomcat 4.1.24
If by system properties you mean JVM (Java Virtual Machine) settings, then you can do this by setting the CATALINA_OPTS variable in the catalina.sh (unix, linux) or catalina.bat (win32) file in the /bin directory of your Tomcat installation. -Original Message- From: Chris Ward [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 3:47 PM To: Tomcat Users List Subject: Setting system properties in standalone Tomcat 4.1.24 Hi all, Sorry if this is a really dumb question, but how/where do I set system properties when using Tomcat 4.1.24? I've searched around but found nothing obvious. Is it in an xml file rather than a .properties file? Is it in the Java JDK? Best regards Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about Loggers
Howdy, I am guessing Logger entry in server.xml is the trick, but how do you access those loggers from .class files? An example would be awesome. It's in the Servlet API: javax.servlet.ServletContext#log is the method you want. Also, is there any way to set up a logger through web.xml? Not a tomcat Logger. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ClassCastException
Howdy, lo_oName = (Object[ ]) lo_arrListName.get(i); //giving error here in runtime. That's because each element of your array list is a String (or an Integer, but that part is commented out), not an array. You can use Object (plain, not array), or cast to the actual type. Try adding a System.out.println(lo_arrListName.get(i).getClass().getName()) before the above line. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5 embedded ?
Is there such a thing as an embedded tomcat 5? I need to embed tomcat into a C program, which I could do with 4.1.24 easily enough using the Startup examples that I found in the tomcat baseline. I now need to integrate tomcat 5.x.x into my C program, but not sure how I should approach this. Any ideas? thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] installing new java jdk
Why not try to get it from a mirror? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 26 January 2004 13:40 To: Tomcat Users List Subject: [OT] installing new java jdk I haven't worked out how to install new versions of java onto my remote webserver effectively yet. If I go to my webserver with a linux shell and use Lynx, the download page at java.sun.com gets truncated. wget and curl don't work either because they're not interactive so you can't click on the 'accept terms' submit button. it means I cannot download the 30MB or so direct from java.sun.com to my webserver. I have to download it to my workstation and then scp it across to my webserver, which means uploading over asynchronous DSL which takes about 30 mins (and effectively halts any internet browsing, so I can't even entertain myself while I wait). How does everyone else do it? Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
RE: Tomcat clustering
Buy the Apache Tomcat Bible by Jon Eaves and published by Wiley. It has chapters devoted to clustering Tomcat. I was able to cluster tomcat with in a few hours Bob W. -Original Message- From: Salvador Santander Gutierrez [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 4:49 AM To: Tomcat List Subject: Tomcat clustering How can I get some tomcat servers working like a cluster? I means, how to put some tomcat to get load balancing and increment the site performance. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5 embedded ?
Howdy, Is there such a thing as an embedded tomcat 5? I need to embed tomcat into a C program, which I could do with 4.1.24 easily enough using the Startup examples that I found in the tomcat baseline. I now need to integrate tomcat 5.x.x into my C program, but not sure how I should approach this. Yes, there's such a thing, and it's not changed much since tomcat 4. If anything, it's easier. Download the tomcat5 embed distribution (it has embed in the distribution name. The next JBoss 3.x RC will also have an embedded tomcat 5 I think. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.16 Requested resource not available
Howdy, Do you have a servlet-mapping element in your web.xml for this servlet? Doesn't look like it, and that's probably your problem. Yoav Shapira Millennium ChemInformatics -Original Message- From: dontrango [mailto:[EMAIL PROTECTED] Sent: Saturday, January 24, 2004 3:42 AM To: [EMAIL PROTECTED] Subject: Tomcat 5.0.16 Requested resource not available Hi, I have the error message below whenever I'm calling my servlet: I run http://localhost:8080/myApp/servlet/TestingServlet2; I get : HTTP Status 404 - /myApp/servlet/TestingServlet2 type Status report message /myApp/servlet/TestingServlet2 description The requested resource (/myApp/servlet/TestingServlet2) is not available. Apache Tomcat/5.0.16 --- I read the thread RE: Tomcat4.1.29 Requested resource not available on this mailing list, I managed to get the same result suggested by BAO RuiXian on the last thread. So I still don't get the solution. My settings: JAVA_HOME=/usr/local/opt/j2sdk1.4.2_01/ CLASSPATH=/usr/local/opt/tomcat/common/lib/servlet-api.jar:. Using CATALINA_BASE: /usr/local/opt/tomcat Using CATALINA_HOME: /usr/local/opt/tomcat Using CATALINA_TMPDIR: /usr/local/opt/tomcat/temp Using JAVA_HOME: /usr/local/opt/j2sdk1.4.2_01/ My server.xml - Host name=localhost debug=4 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=mandala_log. suffix=.txt timestamp=false/ Logger className=org.apache.catalina.logger.SystemOutLogger directory=logs prefix=mandala_sysout_log. suffix=.txt timestamp=false/ Logger className=org.apache.catalina.logger.SystemErrLogger directory=logs prefix=mandala_syserr_log. suffix=.txt timestamp=false/ !-- Turn on servlet reloading -- DefaultContext reloadable=true debug=4/ !-- Tomcat Root Context -- Context path=/myApp docBase=myApp reloadable=true debug=4/ /Host My web.xml -- ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameTestingServlet2/servlet-name servlet-classTestingServlet2/servlet-class /servlet /web-app What I've done: --- I have an instance of tomcat4.1.27 running on another machine (say hostA) and this tomcat5.0.16 runs on (host B). 1. I compiled 'TestingServlet2' on hostB, brought it to hostA to the same directory ( I have the same directory structure, *.xml files on both hosts ) I managed to get the wanted output on host A but not on host B. 2. I compiled 'TestingServlet2' on host B in CATALINA_HOME/webapps/myApp/WEB-INF/classes, brought the .java file to CATALINA_HOME/webapps/jsp-examples/WEB-INF/classes and compiled it there. the I revert to the original server.xml: Context path= docBase=ROOT reloadable=true debug=4/ !-- Context path=/myApp docBase=myApp reloadable=true debug=4/ -- then I run http://localhost:8080/jsp-examples/servlet/TestingServlet2. I still get the 'HTTP 404' error message. I managed to see the other examples without any problem. 3. when I run http://localhost:8080/myApp/, I'm able to see the directory listing there. It seems that only catalina can't see the servlets I placed in the WEB-INF/classes directory. Since I've set debug=4 in my server.xml, should there not be some error messages in my CATALINA_HOME/logs/log_localhost*? I don't get any message other than INFO:* lines in it. Is there a way to have a similar utility to log errors like Apache's error_log? Thanks for the suggestions :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat clustering
Howdy, Note that if you simply wish to divide up traffic among servers, not cluster in the purest sense of the word that includes session replication and failover, then you can easily use the balancer webapp that ships with tomcat 5. Yoav Shapira Millennium ChemInformatics -Original Message- From: Salvador Santander Gutierrez [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 7:49 AM To: Tomcat List Subject: Tomcat clustering How can I get some tomcat servers working like a cluster? I means, how to put some tomcat to get load balancing and increment the site performance. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat clustering
hey, if 1 server is very powerful, then 1 instance of tomcat would not utilize the full resources available right? so does a cluster also make sense in this situation so that multiple tomcat instances on the same server can benefit an application's performance. I appreciate that multiple server clusters allow failover for when a server goes under, but i am interested to know if clustering on one server can also be useful to utilize more resource. are there any good IIS - Tomcat 5 clustering notes anywhere? Or would the built in balancer webapp be useful for single server clustering? cheers, ADC -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 26 January 2004 14:07 To: Tomcat Users List Subject: RE: Tomcat clustering Howdy, Note that if you simply wish to divide up traffic among servers, not cluster in the purest sense of the word that includes session replication and failover, then you can easily use the balancer webapp that ships with tomcat 5. Yoav Shapira Millennium ChemInformatics -Original Message- From: Salvador Santander Gutierrez [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 7:49 AM To: Tomcat List Subject: Tomcat clustering How can I get some tomcat servers working like a cluster? I means, how to put some tomcat to get load balancing and increment the site performance. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat clustering
Howdy, if 1 server is very powerful, then 1 instance of tomcat would not utilize the full resources available right? Not necessarily right: depends on the application. We have apps of tomcat that efficiently and highly utilize many concurrent threads and up to 2GB of RAM. are there any good IIS - Tomcat 5 clustering notes anywhere? Or would the built in balancer webapp be useful for single server clustering? I'm not aware of specific IIS - Tomcat 5 clustering documentation, but it might be out there. The balancer webapp is useful for single server clustering, sure. As long as you keep in mind that it's a traffic controller which does not replicate sessions or data across the instances it controls. On a single server, the setup would be: - Balancer webapp on tomcat installed at the main port, e.g. port 80, that users use. The balancer filter is probably mapped to /*. So this is a tiny installation with only balancer using a tiny amount of memory/CPU. - Other tomcat instances installed on other ports on the same physical server. Balancer is configured to forward requests to the appropriate tomcat instance on the same server according to whatever business rules make sense. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSPC under Tomcat5.0.18
Hi. Can you show us your ant jspc task? [EMAIL PROTECTED] 01/26/03 03:46AM Dear list members , Recently I've decided to redeploy some of my projects with Tomcat5.0.18. Part of my projects are precomplied JSP files which were compiled using JSPC that came with Tomcat4.1.29. To my surprise those classes were not able to run properly with Tomcat5, while deploying JSP files without precompiling worked alright. The next step was to recompile JSP files allover using JSPC shipped with Tomcat5 and so I did using the Latest ANT release 1.6.0. ANT failed to complie the files with the following reason : Buildfile: build.xml jspc: [jspc] Compiling 21 source files/var/tomcat5/webapps/System/src/jsp/org/apache/jsp [jasperc] error:org.apache.jasper.JasperException: Unrecognized option: -v9. Use -help for help. [jasperc] at org.apache.jasper.JspC.setArgs(JspC.java:307) [jasperc] at org.apache.jasper.JspC.main(JspC.java:231) Can anyone tell me what is the issue here ? Why it is not backwards compatible ? How can I precompile the JSP files for Tomcat 5 ? Thanks in advance. Regards , Dima Gutzeit. - MailVision LTD. RD Team. Phone: 972-4-8500505 ext. 14 Fax: 972 - 4 - 8508000 http://www.mailvision.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
apache.org down ?
can anyone get to apache.org? I cannot get there or jakarta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache.org down ?
Howdy, Yeah, apparently down for now ;) It'll be back up shortly, I'm sure... I'm an optimistic guy. At least on Monday mornings... Yoav Shapira Millennium ChemInformatics -Original Message- From: Mark W. Webb [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 9:13 AM To: Tomcat Users List Subject: apache.org down ? can anyone get to apache.org? I cannot get there or jakarta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache.org down ?
Nope, appears to be down or at least a router on the way there. -Original Message- From: Mark W. Webb [mailto:[EMAIL PROTECTED] Sent: 26 January 2004 14:13 To: Tomcat Users List Subject: apache.org down ? can anyone get to apache.org? I cannot get there or jakarta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSPC under Tomcat5.0.18
property name=tomcat.homevalue=D:\Tomcat5/ property name=tomcat.commonvalue=D:\Tomcat5\common\lib/ property name=tomcat.binvalue=D:\Tomcat5\bin/ !-- JSPC: pre-compile JSPs -- target name=jspc jspc srcdir=. destdir=${build.home}/src/jsp package=org.apache.jsp webinc=jsp.xml classpath fileset dir=${lib} include name=*.jar/ /fileset fileset dir=${tomcat.common} include name=*.jar/ /fileset fileset dir=${tomcat.bin} include name=*.jar/ /fileset /classpath /jspc /target - Original Message - From: Ian Joyce [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 26, 2004 4:20 PM Subject: Re: JSPC under Tomcat5.0.18 Hi. Can you show us your ant jspc task? [EMAIL PROTECTED] 01/26/03 03:46AM Dear list members , Recently I've decided to redeploy some of my projects with Tomcat5.0.18. Part of my projects are precomplied JSP files which were compiled using JSPC that came with Tomcat4.1.29. To my surprise those classes were not able to run properly with Tomcat5, while deploying JSP files without precompiling worked alright. The next step was to recompile JSP files allover using JSPC shipped with Tomcat5 and so I did using the Latest ANT release 1.6.0. ANT failed to complie the files with the following reason : Buildfile: build.xml jspc: [jspc] Compiling 21 source files/var/tomcat5/webapps/System/src/jsp/org/apache/jsp [jasperc] error:org.apache.jasper.JasperException: Unrecognized option: -v9. Use -help for help. [jasperc] at org.apache.jasper.JspC.setArgs(JspC.java:307) [jasperc] at org.apache.jasper.JspC.main(JspC.java:231) Can anyone tell me what is the issue here ? Why it is not backwards compatible ? How can I precompile the JSP files for Tomcat 5 ? Thanks in advance. Regards , Dima Gutzeit. - MailVision LTD. RD Team. Phone: 972-4-8500505 ext. 14 Fax: 972 - 4 - 8508000 http://www.mailvision.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat manager reload, start and stop functionality
nobody ? :-) -Original Message- From: Quinten Verheyen Sent: 26 January 2004 09:55 To: [EMAIL PROTECTED] Subject: Tomcat manager reload, start and stop functionality Hi, I have a question about some tasks of the manager app of Tomcat. * The Reload-task doesn't stop and start the webapp, but I wonder how it exactly works. Because when I am transferring a new jar-file on the server and a Reload is run on the context, I need to know how this can affect the HTTP requests entering that context at that exact moment the reload is running. I know we are talking about less than a sec. here in most cases, but imagine thousands and thousands of SMS messages coming in via HTTP requests to that context. How is this handled ? With timeout and try again ? Please explain this if someone would be so kind .. * The second question involves the same matter, but with the stop and start task. The context is not active after running the stop (only for a very short time but still) so any HTTP request will fail (I guess a 404 or something). Is there a way to work around this ? Some kind of delay option or something.. to tell that any HTTP request is put into a pool and then run again on the context when it is active (after the start). Or are there better ways to assure nothing gets lost .. (ps of course using jsp's ensures not needing the start and stop, but suppose we're using servlets). I looked it the tomcat docs, but there wasn't really an in-depth explanation about this .. Thx in advance :-) Verheyen Quinten Software Engineer Rue Gabrielle Petitstraat 4/6 1080 Brussel Tel : +0032 (0)2 502 85 00 Fax : +0032 (0)2 502 76 07 Gsm : +0032 (0)494 81 04 81 E-mail : mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Politicians' Syllogism : step 1 : we must do something. step 2 : this is something. step 3 : therefore we must do it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache.org down ?
Howdy, Thought not completely down, as obviously these mailing lists are working ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 9:25 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: apache.org down ? Nope, appears to be down or at least a router on the way there. -Original Message- From: Mark W. Webb [mailto:[EMAIL PROTECTED] Sent: 26 January 2004 14:13 To: Tomcat Users List Subject: apache.org down ? can anyone get to apache.org? I cannot get there or jakarta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.16 Requested resource not available
Yup, that's my problem like Tim Funk pointed . Thanks a lot for your help. Looks like you're one of the most helpful persons on this list :) On Mon, 2004-01-26 at 22:05, Shapira, Yoav wrote: Howdy, Do you have a servlet-mapping element in your web.xml for this servlet? Doesn't look like it, and that's probably your problem. Yoav Shapira Millennium ChemInformatics -Original Message- From: dontrango [mailto:[EMAIL PROTECTED] Sent: Saturday, January 24, 2004 3:42 AM To: [EMAIL PROTECTED] Subject: Tomcat 5.0.16 Requested resource not available Hi, I have the error message below whenever I'm calling my servlet: I run http://localhost:8080/myApp/servlet/TestingServlet2; I get : HTTP Status 404 - /myApp/servlet/TestingServlet2 type Status report message /myApp/servlet/TestingServlet2 description The requested resource (/myApp/servlet/TestingServlet2) is not available. Apache Tomcat/5.0.16 --- I read the thread RE: Tomcat4.1.29 Requested resource not available on this mailing list, I managed to get the same result suggested by BAO RuiXian on the last thread. So I still don't get the solution. My settings: JAVA_HOME=/usr/local/opt/j2sdk1.4.2_01/ CLASSPATH=/usr/local/opt/tomcat/common/lib/servlet-api.jar:. Using CATALINA_BASE: /usr/local/opt/tomcat Using CATALINA_HOME: /usr/local/opt/tomcat Using CATALINA_TMPDIR: /usr/local/opt/tomcat/temp Using JAVA_HOME: /usr/local/opt/j2sdk1.4.2_01/ My server.xml - Host name=localhost debug=4 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=mandala_log. suffix=.txt timestamp=false/ Logger className=org.apache.catalina.logger.SystemOutLogger directory=logs prefix=mandala_sysout_log. suffix=.txt timestamp=false/ Logger className=org.apache.catalina.logger.SystemErrLogger directory=logs prefix=mandala_syserr_log. suffix=.txt timestamp=false/ !-- Turn on servlet reloading -- DefaultContext reloadable=true debug=4/ !-- Tomcat Root Context -- Context path=/myApp docBase=myApp reloadable=true debug=4/ /Host My web.xml -- ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameTestingServlet2/servlet-name servlet-classTestingServlet2/servlet-class /servlet /web-app What I've done: --- I have an instance of tomcat4.1.27 running on another machine (say hostA) and this tomcat5.0.16 runs on (host B). 1. I compiled 'TestingServlet2' on hostB, brought it to hostA to the same directory ( I have the same directory structure, *.xml files on both hosts ) I managed to get the wanted output on host A but not on host B. 2. I compiled 'TestingServlet2' on host B in CATALINA_HOME/webapps/myApp/WEB-INF/classes, brought the .java file to CATALINA_HOME/webapps/jsp-examples/WEB-INF/classes and compiled it there. the I revert to the original server.xml: Context path= docBase=ROOT reloadable=true debug=4/ !-- Context path=/myApp docBase=myApp reloadable=true debug=4/ -- then I run http://localhost:8080/jsp-examples/servlet/TestingServlet2. I still get the 'HTTP 404' error message. I managed to see the other examples without any problem. 3. when I run http://localhost:8080/myApp/, I'm able to see the directory listing there. It seems that only catalina can't see the servlets I placed in the WEB-INF/classes directory. Since I've set debug=4 in my server.xml, should there not be some error messages in my CATALINA_HOME/logs/log_localhost*? I don't get any message other than INFO:* lines in it. Is there a way to have a similar utility to log errors like Apache's error_log? Thanks for the suggestions :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
RE: Setting system properties in standalone Tomcat 4.1.24
Thanks. That's just what I needed. I thought I'd done it at some point in the past! Best regards Chris If by system properties you mean JVM (Java Virtual Machine) settings, then you can do this by setting the CATALINA_OPTS variable in the catalina.sh (unix, linux) or catalina.bat (win32) file in the /bin directory of your Tomcat installation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NT4 IIS4 Tomcat 4.1.29 JK2 inetinfo.exe Access Violation upon t omcat request
We use IIS4 running on NT4.0 for our intranet, and want to add servlet capability to our setup. As such, I set up a test machine with tomcat. I then reinstalled NT4, the option pack, and service pack 6a so that I would have a clean machine to demonstrated the process. I followed the exact steps I had previously taken and everything looked fine. The ISAPI filter arrow is green. The workers2.properties file is identical to that on the test machine (same environment), and Tomcat isn't recording an errors in its log files. I've checked the registry settings several times, and they match their counterparts exactly. Yet anytime I try to use the tomcat redirector I get the Dr. Watson Windows NT error message: inetinfo.exe Exception: access violation (0xc005) Address: 0x100059d0. The last line of the W3SVC1 log is: 127.0.0.1, -, 1/22/04, 17:16:13, W3SVC1, NTTOMCATTST, 127.0.0.1, 3034, 251, 0, 500, 6, GET, /jakarta/isapi_redirector2.dll, -, There wasn't anything of note in the event viewer. I haven't been able to get any more information out of windows than that. I checked all the JK2 documentation I could find. I've done an internet search and searched Microsoft's knowledge base, and the only information I found was on debugging the process with a Visual Basic editor, which I don't have access to. If anyone has experienced (and hopefully resolved) similar problems, or can point in the right direction for further inquiry, I would greatly appreciate it. AK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] installing new java jdk
I thought there weren't any mirrors. Which do you mean? On 01/26/2004 03:05 PM Yiannis Mavroukakis wrote: Why not try to get it from a mirror? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 26 January 2004 13:40 To: Tomcat Users List Subject: [OT] installing new java jdk I haven't worked out how to install new versions of java onto my remote webserver effectively yet. If I go to my webserver with a linux shell and use Lynx, the download page at java.sun.com gets truncated. wget and curl don't work either because they're not interactive so you can't click on the 'accept terms' submit button. it means I cannot download the 30MB or so direct from java.sun.com to my webserver. I have to download it to my workstation and then scp it across to my webserver, which means uploading over asynchronous DSL which takes about 30 mins (and effectively halts any internet browsing, so I can't even entertain myself while I wait). How does everyone else do it? Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] installing new java jdk
Apologies i'm having a massive misinformation day :) You can get mirrors for the blackdown distributions but that is probably not what you want :) www.blackdown.org/java-linux/mirrors.html Yiannis -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 26 January 2004 15:26 To: Tomcat Users List Subject: Re: [OT] installing new java jdk I thought there weren't any mirrors. Which do you mean? On 01/26/2004 03:05 PM Yiannis Mavroukakis wrote: Why not try to get it from a mirror? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 26 January 2004 13:40 To: Tomcat Users List Subject: [OT] installing new java jdk I haven't worked out how to install new versions of java onto my remote webserver effectively yet. If I go to my webserver with a linux shell and use Lynx, the download page at java.sun.com gets truncated. wget and curl don't work either because they're not interactive so you can't click on the 'accept terms' submit button. it means I cannot download the 30MB or so direct from java.sun.com to my webserver. I have to download it to my workstation and then scp it across to my webserver, which means uploading over asynchronous DSL which takes about 30 mins (and effectively halts any internet browsing, so I can't even entertain myself while I wait). How does everyone else do it? Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
RE: Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem
Tim, is there a way to tell in bugzilla what the 'fix version' is ? It's reported against 4.1.29 (I guess?), but where's the fix? I guess I'll assume 5.0.18 ? And would the class file work in 4.1.29, if I couldn't upgrade yet? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 6:39 AM To: Tomcat Users List Subject: Re: Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem Its a fixed bug. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24970 -Tim David Li wrote: Hi, I don't subscribe to the list so direct reply to [EMAIL PROTECTED] would be greatly appreciated. We recently detect a problem with sending generated PDF to Acrobat 6.0.1's IE plug-in. In Tomcat, if the ContentType is set, a charset is automatically appended to it. This causes problem with Acrobat 6.0.1's IE plug-in. So far, we have summarize the following conditions: 1. ContentType: application/pdf This works fine. 2. ContentType: application/pdf; This shows blank pages 3. ContentType: application/pdf;charset=UTF-8 This shows error message of corrupted PDF file. However, if we download it, it can be open correctly with Arcobat 6.0.1. Only plug-in complaining the problem. I have tried to contact Adobe about this but, of course, get no response. I think this is more of a problem of Adobe's plug-in implementation rather then Tomcat's problem. I have check the source codes, there is no way to disable appending charset if setContentType is called. Any suggestion is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem
The fix is available for 4.1.30, not 29. 4.1.30 has been built and is available for downloading and testing. In time, a vote will be called on 4.1.30 to declare its stability. With luck it will be called stable. http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/JDBCRealm.java If the database is mysql - the fix should be un-needed since mysql has some parameter (I don't know) that can automtically reconnect for you. -Tim Mike Curwen wrote: Tim, is there a way to tell in bugzilla what the 'fix version' is ? It's reported against 4.1.29 (I guess?), but where's the fix? I guess I'll assume 5.0.18 ? And would the class file work in 4.1.29, if I couldn't upgrade yet? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 6:39 AM To: Tomcat Users List Subject: Re: Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem Its a fixed bug. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24970 -Tim David Li wrote: Hi, I don't subscribe to the list so direct reply to [EMAIL PROTECTED] would be greatly appreciated. We recently detect a problem with sending generated PDF to Acrobat 6.0.1's IE plug-in. In Tomcat, if the ContentType is set, a charset is automatically appended to it. This causes problem with Acrobat 6.0.1's IE plug-in. So far, we have summarize the following conditions: 1. ContentType: application/pdf This works fine. 2. ContentType: application/pdf; This shows blank pages 3. ContentType: application/pdf;charset=UTF-8 This shows error message of corrupted PDF file. However, if we download it, it can be open correctly with Arcobat 6.0.1. Only plug-in complaining the problem. I have tried to contact Adobe about this but, of course, get no response. I think this is more of a problem of Adobe's plug-in implementation rather then Tomcat's problem. I have check the source codes, there is no way to disable appending charset if setContentType is called. Any suggestion is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] installing new java jdk
Hi! Adam Hardy wrote: If I go to my webserver with a linux shell and use Lynx, the download page at java.sun.com gets truncated. wget and curl don't work either because they're not interactive so you can't click on the 'accept terms' submit button. This is a problem I often run into as well. Although there are ways to get the sun download page to work with curl, I have not yet figured them out. Easiest is is fact to download the sdk from another machine and ftp/scp it to your server. There is another way that might work: go to the sun page from your desktop-machine, click your way through past the license terms and then let wget fetch _exactly_ whatever link your browser provides for the download. I have used that one successfully, but only with machines that are NATted through the same router. HTH Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem
Doh! Wrong topic. Yeah, placing the right classes into the server classloader should do the trick. That bug report has the download attachment for the compiled binary (if you trust them) Other wise you can compile the 2 classes yourself. -Tim Tim Funk wrote: The fix is available for 4.1.30, not 29. 4.1.30 has been built and is available for downloading and testing. In time, a vote will be called on 4.1.30 to declare its stability. With luck it will be called stable. http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/JDBCRealm.java If the database is mysql - the fix should be un-needed since mysql has some parameter (I don't know) that can automtically reconnect for you. -Tim Mike Curwen wrote: Tim, is there a way to tell in bugzilla what the 'fix version' is ? It's reported against 4.1.29 (I guess?), but where's the fix? I guess I'll assume 5.0.18 ? And would the class file work in 4.1.29, if I couldn't upgrade yet? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 6:39 AM To: Tomcat Users List Subject: Re: Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem Its a fixed bug. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24970 -Tim David Li wrote: Hi, I don't subscribe to the list so direct reply to [EMAIL PROTECTED] would be greatly appreciated. We recently detect a problem with sending generated PDF to Acrobat 6.0.1's IE plug-in. In Tomcat, if the ContentType is set, a charset is automatically appended to it. This causes problem with Acrobat 6.0.1's IE plug-in. So far, we have summarize the following conditions: 1. ContentType: application/pdf This works fine. 2. ContentType: application/pdf; This shows blank pages 3. ContentType: application/pdf;charset=UTF-8 This shows error message of corrupted PDF file. However, if we download it, it can be open correctly with Arcobat 6.0.1. Only plug-in complaining the problem. I have tried to contact Adobe about this but, of course, get no response. I think this is more of a problem of Adobe's plug-in implementation rather then Tomcat's problem. I have check the source codes, there is no way to disable appending charset if setContentType is called. Any suggestion is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem
rar? ;) I was talking about the acrobat charset ie glitch. the mysql parameter, btw, is ?autoReconnect=true -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 9:53 AM To: Tomcat Users List Subject: Re: Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem The fix is available for 4.1.30, not 29. 4.1.30 has been built and is available for downloading and testing. In time, a vote will be called on 4.1.30 to declare its stability. With luck it will be called stable. http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/ src/share/org/apache/catalina/realm/JDBCRealm.ja va If the database is mysql - the fix should be un-needed since mysql has some parameter (I don't know) that can automtically reconnect for you. -Tim Mike Curwen wrote: Tim, is there a way to tell in bugzilla what the 'fix version' is ? It's reported against 4.1.29 (I guess?), but where's the fix? I guess I'll assume 5.0.18 ? And would the class file work in 4.1.29, if I couldn't upgrade yet? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 6:39 AM To: Tomcat Users List Subject: Re: Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem Its a fixed bug. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24970 -Tim David Li wrote: Hi, I don't subscribe to the list so direct reply to [EMAIL PROTECTED] would be greatly appreciated. We recently detect a problem with sending generated PDF to Acrobat 6.0.1's IE plug-in. In Tomcat, if the ContentType is set, a charset is automatically appended to it. This causes problem with Acrobat 6.0.1's IE plug-in. So far, we have summarize the following conditions: 1. ContentType: application/pdf This works fine. 2. ContentType: application/pdf; This shows blank pages 3. ContentType: application/pdf;charset=UTF-8 This shows error message of corrupted PDF file. However, if we download it, it can be open correctly with Arcobat 6.0.1. Only plug-in complaining the problem. I have tried to contact Adobe about this but, of course, get no response. I think this is more of a problem of Adobe's plug-in implementation rather then Tomcat's problem. I have check the source codes, there is no way to disable appending charset if setContentType is called. Any suggestion is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSPC under Tomcat5.0.18
Ian Joyce wrote: Hi. Can you show us your ant jspc task? [EMAIL PROTECTED] 01/26/03 03:46AM Dear list members , Recently I've decided to redeploy some of my projects with Tomcat5.0.18. Part of my projects are precomplied JSP files which were compiled using JSPC that came with Tomcat4.1.29. To my surprise those classes were not able to run properly with Tomcat5, while deploying JSP files without precompiling worked alright. The next step was to recompile JSP files allover using JSPC shipped with Tomcat5 and so I did using the Latest ANT release 1.6.0. ANT failed to complie the files with the following reason : Buildfile: build.xml jspc: [jspc] Compiling 21 source files/var/tomcat5/webapps/System/src/jsp/org/apache/jsp [jasperc] error:org.apache.jasper.JasperException: Unrecognized option: -v9. Use -help for help. [jasperc] at org.apache.jasper.JspC.setArgs(JspC.java:307) [jasperc] at org.apache.jasper.JspC.main(JspC.java:231) Can anyone tell me what is the issue here ? Why it is not backwards compatible ? How can I precompile the JSP files for Tomcat 5 ? Thanks in advance. The task provided with Ant is not up to date. Look in the Jasper docs for how to use the task should be used. -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] installing new java jdk
That trick with wget didn't work for me because wget complained it couldn't run the https protocol. Is there a wget that will run https? I'll check it out. On 01/26/2004 04:54 PM Philipp Taprogge wrote: Hi! Adam Hardy wrote: If I go to my webserver with a linux shell and use Lynx, the download page at java.sun.com gets truncated. wget and curl don't work either because they're not interactive so you can't click on the 'accept terms' submit button. This is a problem I often run into as well. Although there are ways to get the sun download page to work with curl, I have not yet figured them out. Easiest is is fact to download the sdk from another machine and ftp/scp it to your server. There is another way that might work: go to the sun page from your desktop-machine, click your way through past the license terms and then let wget fetch _exactly_ whatever link your browser provides for the download. I have used that one successfully, but only with machines that are NATted through the same router. HTH Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TOMCAT and JNI problem...
Hello. I'm running a JSP based Web aplicacion using Tomcat wich uses a Java Class that loads a native library (JNI). The files are created as follows: javac extractor/HTDInterface.java javah extractor.HTDInterface then I compile my c++ source code with the header file extractor_HTDInterface.h to create the shared library libhtd.so create a jar file with the Class that implements JNI call static { System.loadLibrary(htd); jar cvf extractor.jar extractor/HTDInterface.class For testing a standalone application I set my CLASSPATH to include extractor.jar and libhtd.so file is placed inside the JDK at /JAVA_HOME/jre/lib/i386/ I successfully build and run The standalone application usin the shared library. For the web application, extractor.jar is placed at /common/lib/ TOMCAT directory I leave the libhtd.so at the /JAVA_HOME/jre/lib/i386/ JDK directory. When my JSP based Web application calls the native library method the Tomcat just STOPS it doesn't work STOPS The message is: The connection was refused when attempting to contact localhost:8080 I have to run startup.sh script again. I took off the libhtd.so file from /JAVA_HOME/jre/lib/i386/ and I placed it in a different directory outside the tomcat: /home/myuser/lib/libhtd.so Then I made a script to start the tomcat with the LD_LIBRARY_PATH environment variable set up: - #!/bin/sh export JAVA_HOME=/opt/java export CATALINA_HOME=/usr/local/jakarta-tomcat export PATH=${JAVA_HOME}/bin:${PATH} export JAVA_PATH=${JAVA_HOME} # path to load the libhtd.so shared library export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/myuser/lib cd /usr/local/jakarta-tomcat/bin sh startup.sh - BUT the same happens when the Web application calls the native library method the Tomcat just STOPS it doesn't work ..STOPS The message is: The connection was refused when attempting to contact localhost:8080 just like when you try to load the web application and the TOMCAT server is not UP. Does anyone knows how to solve this I have read that maybe setting up the CATALINA_OPTS environment variable can solve this problem BUT I dont know how to set that variable. ??? I hope this time I've made myself clear Another thing: I'm working under Red Hat 9.0 TOMCAT 4.1.27 and JDK 1.4.2 Pablo Vidal _ MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSPC under Tomcat5.0.18
- Original Message - From: Remy Maucherat [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 26, 2004 6:00 PM Subject: Re: JSPC under Tomcat5.0.18 Ian Joyce wrote: Hi. Can you show us your ant jspc task? [EMAIL PROTECTED] 01/26/03 03:46AM Dear list members , Recently I've decided to redeploy some of my projects with Tomcat5.0.18. Part of my projects are precomplied JSP files which were compiled using JSPC that came with Tomcat4.1.29. To my surprise those classes were not able to run properly with Tomcat5, while deploying JSP files without precompiling worked alright. The next step was to recompile JSP files allover using JSPC shipped with Tomcat5 and so I did using the Latest ANT release 1.6.0. ANT failed to complie the files with the following reason : Buildfile: build.xml jspc: [jspc] Compiling 21 source files/var/tomcat5/webapps/System/src/jsp/org/apache/jsp [jasperc] error:org.apache.jasper.JasperException: Unrecognized option: -v9. Use -help for help. [jasperc] at org.apache.jasper.JspC.setArgs(JspC.java:307) [jasperc] at org.apache.jasper.JspC.main(JspC.java:231) Can anyone tell me what is the issue here ? Why it is not backwards compatible ? How can I precompile the JSP files for Tomcat 5 ? Thanks in advance. The task provided with Ant is not up to date. Look in the Jasper docs for how to use the task should be used. Thank you very much , it did compile it with the new definition. But the compilation is raising another question: The compiled class file names are wierd, f.e. : sys_005ffooter_jsp.class . Where the 005f string came from ? I believe that the _ is causing it. How can I prevent the JSPC from adding there chars ? -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TOMCAT and JNI problem...
Then I made a script to start the tomcat with the LD_LIBRARY_PATH environment variable set up: - #!/bin/sh export JAVA_HOME=/opt/java export CATALINA_HOME=/usr/local/jakarta-tomcat export PATH=${JAVA_HOME}/bin:${PATH} export JAVA_PATH=${JAVA_HOME} # path to load the libhtd.so shared library export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/myuser/lib cd /usr/local/jakarta-tomcat/bin sh startup.sh - Did you try to startup Tomcat with the same script, without using your library, in order to check if the script works right? Sometimes I had such error when I forgot to set JAVA_HOME or CATALINA_HOME properly :-))) G -- Giuseppe Briotti [EMAIL PROTECTED] Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius. (Orazio) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TOMCAT and JNI problem...
Did you try to startup Tomcat with the same script, without using your library, in order to check if the script works right? YES I start up the tomcat with the same script to test other applications that doesn't work with JNI and everything goes fine. Pablo Vidal From: Giuseppe Briotti [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: TOMCAT and JNI problem... Date: Mon, 26 Jan 2004 17:29:02 +0100 (CET) Then I made a script to start the tomcat with the LD_LIBRARY_PATH environment variable set up: - #!/bin/sh export JAVA_HOME=/opt/java export CATALINA_HOME=/usr/local/jakarta-tomcat export PATH=${JAVA_HOME}/bin:${PATH} export JAVA_PATH=${JAVA_HOME} # path to load the libhtd.so shared library export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/myuser/lib cd /usr/local/jakarta-tomcat/bin sh startup.sh - Did you try to startup Tomcat with the same script, without using your library, in order to check if the script works right? Sometimes I had such error when I forgot to set JAVA_HOME or CATALINA_HOME properly :-))) G -- Giuseppe Briotti [EMAIL PROTECTED] Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius. (Orazio) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Las mejores tiendas, los precios mas bajos, entregas en todo el mundo, YupiMSN Compras: http://latam.msn.com/compras/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TOMCAT and JNI problem...
Hi Pablo we also use JNI in our web apps. it works (except the reloading issue, but that's another story). we use the ./bin/setenv.sh script for our settings, therefore: ... # must contain the ACE Agent JNI library libaceagent.so: LD_LIBRARY_PATH=/home/bgo/deploy/sr-hls/native export LD_LIBRARY_PATH ... I assume, your JNI implementation is somehow broken... and this makes Tomcat stop... but that's just a wild guess from far away... regards -Bernd. -Original Message- From: J.Pablo M [mailto:[EMAIL PROTECTED] Sent: Montag, 26. Januar 2004 17:20 To: [EMAIL PROTECTED] Subject: TOMCAT and JNI problem... Hello. I'm running a JSP based Web aplicacion using Tomcat wich uses a Java Class that loads a native library (JNI). The files are created as follows: javac extractor/HTDInterface.java javah extractor.HTDInterface then I compile my c++ source code with the header file extractor_HTDInterface.h to create the shared library libhtd.so create a jar file with the Class that implements JNI call static { System.loadLibrary(htd); jar cvf extractor.jar extractor/HTDInterface.class For testing a standalone application I set my CLASSPATH to include extractor.jar and libhtd.so file is placed inside the JDK at /JAVA_HOME/jre/lib/i386/ I successfully build and run The standalone application usin the shared library. For the web application, extractor.jar is placed at /common/lib/ TOMCAT directory I leave the libhtd.so at the /JAVA_HOME/jre/lib/i386/ JDK directory. When my JSP based Web application calls the native library method the Tomcat just STOPS it doesn't work STOPS The message is: The connection was refused when attempting to contact localhost:8080 I have to run startup.sh script again. I took off the libhtd.so file from /JAVA_HOME/jre/lib/i386/ and I placed it in a different directory outside the tomcat: /home/myuser/lib/libhtd.so Then I made a script to start the tomcat with the LD_LIBRARY_PATH environment variable set up: - #!/bin/sh export JAVA_HOME=/opt/java export CATALINA_HOME=/usr/local/jakarta-tomcat export PATH=${JAVA_HOME}/bin:${PATH} export JAVA_PATH=${JAVA_HOME} # path to load the libhtd.so shared library export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/myuser/lib cd /usr/local/jakarta-tomcat/bin sh startup.sh - BUT the same happens when the Web application calls the native library method the Tomcat just STOPS it doesn't work ..STOPS The message is: The connection was refused when attempting to contact localhost:8080 just like when you try to load the web application and the TOMCAT server is not UP. Does anyone knows how to solve this I have read that maybe setting up the CATALINA_OPTS environment variable can solve this problem BUT I dont know how to set that variable. ??? I hope this time I've made myself clear Another thing: I'm working under Red Hat 9.0 TOMCAT 4.1.27 and JDK 1.4.2 Pablo Vidal _ MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JASPER failing to Compile: Space in PATH
Hello, my jasper is failing to compile because I have a space in the path of my tomcat install. In the error message (below) you will see that I got a javac error: D:\pw\tip\output\delivery\Program that should be D:\pw\tip\output\delivery\Program Files\... It is obviously not handling the space correctly. Is there anyway to tell jasper to handle the space correctly or start up with 8.3 dir\file names? I am already supplying: -Dcatalina.home=D:\pw\tip\output\delivery\Progra~1\Bentley\ProjectWise\WebS erver -Duser.dir=D:\pw\tip\output\delivery\Progra~1\Bentley\ProjectWise\WebServer when I start the jvm. The error is below: [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] javac: invalid flag: D:\pw\tip\output\delivery\Program [javac] Usage: javac options source files [javac] where possible options include: [javac] -gGenerate all debugging info [javac] -g:none Generate no debugging info [javac] -g:{lines,vars,source}Generate only some debugging info [javac] -nowarn Generate no warnings [javac] -verbose Output messages about what the compiler is doing [javac] -deprecation Output source locations where deprecated APIs are used [javac] -classpath path Specify where to find user class files [javac] -sourcepath pathSpecify where to find input source files [javac] -bootclasspath path Override location of bootstrap class files [javac] -extdirs dirs Override location of installed extensions [javac] -d directorySpecify where to place generated class files [javac] -encoding encoding Specify character encoding used by source files [javac] -source release Provide source compatibility with specified release [javac] -target release Generate class files for specific VM version [javac] -help Print a synopsis of standard options -Original Message- From: Götz, Bernd [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 11:40 AM To: 'Tomcat Users List' Cc: '[EMAIL PROTECTED]' Subject: RE: TOMCAT and JNI problem... Hi Pablo we also use JNI in our web apps. it works (except the reloading issue, but that's another story). we use the ./bin/setenv.sh script for our settings, therefore: ... # must contain the ACE Agent JNI library libaceagent.so: LD_LIBRARY_PATH=/home/bgo/deploy/sr-hls/native export LD_LIBRARY_PATH ... I assume, your JNI implementation is somehow broken... and this makes Tomcat stop... but that's just a wild guess from far away... regards -Bernd. -Original Message- From: J.Pablo M [mailto:[EMAIL PROTECTED] Sent: Montag, 26. Januar 2004 17:20 To: [EMAIL PROTECTED] Subject: TOMCAT and JNI problem... Hello. I'm running a JSP based Web aplicacion using Tomcat wich uses a Java Class that loads a native library (JNI). The files are created as follows: javac extractor/HTDInterface.java javah extractor.HTDInterface then I compile my c++ source code with the header file extractor_HTDInterface.h to create the shared library libhtd.so create a jar file with the Class that implements JNI call static { System.loadLibrary(htd); jar cvf extractor.jar extractor/HTDInterface.class For testing a standalone application I set my CLASSPATH to include extractor.jar and libhtd.so file is placed inside the JDK at /JAVA_HOME/jre/lib/i386/ I successfully build and run The standalone application usin the shared library. For the web application, extractor.jar is placed at /common/lib/ TOMCAT directory I leave the libhtd.so at the /JAVA_HOME/jre/lib/i386/ JDK directory. When my JSP based Web application calls the native library method the Tomcat just STOPS it doesn't work STOPS The message is: The connection was refused when attempting to contact localhost:8080 I have to run startup.sh script again. I took off the libhtd.so file from /JAVA_HOME/jre/lib/i386/ and I placed it in a different directory outside the tomcat: /home/myuser/lib/libhtd.so Then I made a script to start the tomcat with the LD_LIBRARY_PATH environment variable set up: - #!/bin/sh export JAVA_HOME=/opt/java export CATALINA_HOME=/usr/local/jakarta-tomcat export PATH=${JAVA_HOME}/bin:${PATH} export JAVA_PATH=${JAVA_HOME} # path to load the libhtd.so shared library export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/myuser/lib cd /usr/local/jakarta-tomcat/bin sh startup.sh - BUT the same happens when the Web application calls the native library method the Tomcat just STOPS it doesn't work ..STOPS The message is: The
MBeanException - ManagedBean not found
Tomcat 4.1 OS = win2000 Here is a snapshot of my error on the console: INFO: Creating MBeanServer Jan 26, 2004 11:22:02 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225 Any ideas as to why this happening or what am I missing? Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem
Would be interested if this worked. Can you keep us informed? Thanks. GReg -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 26 January 2004 15:57 To: Tomcat Users List Subject: Re: Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem Doh! Wrong topic. Yeah, placing the right classes into the server classloader should do the trick. That bug report has the download attachment for the compiled binary (if you trust them) Other wise you can compile the 2 classes yourself. -Tim Tim Funk wrote: The fix is available for 4.1.30, not 29. 4.1.30 has been built and is available for downloading and testing. In time, a vote will be called on 4.1.30 to declare its stability. With luck it will be called stable. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Session Managment Problem under Linux
Hi All, I am using Tomcat 4.1 running on Red Hat Linux 9.0. I have succesfully deployed my servlet and all seems to be running ok except for one issue. The number of sessions for my servlet seems to be incrementing, even if I stop and restart Tomcat. Its currently at 86 and i'm worried this will effect performance. I have tried setting the session-timeout variable but to no avail. This doesn't however happen on a Windows machine. If I restart Tomcat the number of sessions goes to 0 for my servlet. I'm just wondering if anyone has met anything like this before, of if anyone can shed some light on this for me. Many thanks in advance, Regards, Shane. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [URGENT] Problems getting SSL 2-Way Authentication to work
I am not familiar with openssl but having reviewed your steps you might want to try the following: - Import your CA cert into the trusted CAs for your browser. - You shouldn't need your CA cert in your keystore file, providing that the CA cert is installed in cacerts. Try removing it from the keystore. Good luck! Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
User define mbeans in servlet under Tomcat 5.0.x
Hi, Is it possible for me to add my own Standard/Dynamic MBeans in my servlet and I can manage that mbean thru Tomcat admin/manager interface? From here, it said I can add my own mbean, but I can't find the file org.apache.catalina.mbeans.mbeans-descriptor.xml http://jakarta.apache.org/tomcat/tomcat-5.0-doc/mbeans-descriptor-howto.html Please tell me if my understanding is correct. Thank you for any help. Sam
Download of PDF from Macintosh
Hi! We have experienced that some customers with mac client PCs have problem with download of PDF files. We are currently using tomcat 4.1.29 fronted by an Apache Web Server on a windows 2003 server. Does anyone experience this problem or has any hint about it? Regards Lars Hagrot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem
If this worked? The fix does work. -Tim [EMAIL PROTECTED] wrote: Would be interested if this worked. Can you keep us informed? Thanks. GReg -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 26 January 2004 15:57 To: Tomcat Users List Subject: Re: Acrobat 6.0.1 plug-in for IE and Tomcat 4.1.x problem Doh! Wrong topic. Yeah, placing the right classes into the server classloader should do the trick. That bug report has the download attachment for the compiled binary (if you trust them) Other wise you can compile the 2 classes yourself. -Tim Tim Funk wrote: The fix is available for 4.1.30, not 29. 4.1.30 has been built and is available for downloading and testing. In time, a vote will be called on 4.1.30 to declare its stability. With luck it will be called stable. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: User define mbeans in servlet under Tomcat 5.0.x
Howdy, Is it possible for me to add my own Standard/Dynamic MBeans in my servlet and I can manage that mbean thru Tomcat admin/manager interface? From here, it said I can add my own mbean, but I can't find the file org.apache.catalina.mbeans.mbeans-descriptor.xml http://jakarta.apache.org/tomcat/tomcat-5.0-doc/mbeans-descriptor- howto.html The same URL tells you where the file is: org.apache.catalina.mbeans.mbeans-descriptor.xml. You can also see it via cvs.apache.org. The MBeans have to be available to the common classloader, so can't just put them in your WEB-INF/classes or WEB-INF/lib directory. You can put them in common/classes or common/lib. Alternatively you can make your webapp privileged. Finally, take all this with a grain of salt as I haven't added user webapps MBeans to tomcat5, so this is just theory on my part. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5 embedded ?
Can you explain how embedded tomcat is easier? I would appreciate it greatly. Also, if there is any documentation on this I would like to read it. Thank you. Shapira, Yoav wrote: Howdy, Is there such a thing as an embedded tomcat 5? I need to embed tomcat into a C program, which I could do with 4.1.24 easily enough using the Startup examples that I found in the tomcat baseline. I now need to integrate tomcat 5.x.x into my C program, but not sure how I should approach this. Yes, there's such a thing, and it's not changed much since tomcat 4. If anything, it's easier. Download the tomcat5 embed distribution (it has embed in the distribution name. The next JBoss 3.x RC will also have an embedded tomcat 5 I think. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5 embedded ?
Howdy, Can you explain how embedded tomcat is easier? I would appreciate it greatly. Also, if there is any documentation on this I would like to read it. Thank you. I doubt you'd appreciate my explanation greatly: embedded tomcat 5 is easier than embedded tomcat 4 because there's a specific distribution for it (5.0.18 embed zip or tar.gz, available from the same location as the normal distribution). :) There are references to this in the tomcat-user and tomcat-dev mailing list archives, but without too many details. If you have specific questions you should ask them and we can try to help. If you feel like writing a comprehensive embedding tomcat 5 document it would also be welcome. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5 embedded ?
Embedded tomcat 4 had an API that could be used to programatically start tomcat from within another application. I am wondering if the same API exists for tomcat 5. If not, how could I start tomcat in an existing process. I would guess that I could not take advantage of the JMX stuff in tomcat 5 by using this startup API. Shapira, Yoav wrote: Howdy, Can you explain how embedded tomcat is easier? I would appreciate it greatly. Also, if there is any documentation on this I would like to read it. Thank you. I doubt you'd appreciate my explanation greatly: embedded tomcat 5 is easier than embedded tomcat 4 because there's a specific distribution for it (5.0.18 embed zip or tar.gz, available from the same location as the normal distribution). :) There are references to this in the tomcat-user and tomcat-dev mailing list archives, but without too many details. If you have specific questions you should ask them and we can try to help. If you feel like writing a comprehensive embedding tomcat 5 document it would also be welcome. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unsubscribe fails
I have tried to unsubscribe to this list 3 times but I keep getting individual mailings. I have seen mail to the following link which I copied from the e-mail I got when I subscribed. To remove your address from the list, send a message to: [EMAIL PROTECTED] Can anyone help me get off the list; the mail volume is so big my mail box is getting filled and I'm missing important messages. Thanks, Jim Cant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: JavaScript Doubt
Shapira, Yoav wrote: Howdy, Is it really necessary to include a 20-line legal disclaimer in a 20 character long response? I'm a fan of mailing list etiquette, but in defense of this poster, many companies add disclaimers to outgoing messages without knowledge, (explicit) consent, or control of the individual sender. Yoav Shapira Not to extend this thread any further than it really should, but I can understand if the legal disclaimer is appended by the company outside the control of the employee sending the email, though, I'm unsure if that's done without the knowledge of the sender. Either way, adding terms of confidentiality to a message is a little redundant when the mail is sent to a public mailing list, IMO. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat und SSL
Unless you've resolved the issue recently, both URIs come up fine for me. Tested on Mozilla 1.6b and IE 6.0 Lars Schreiber wrote: Hi thanks for help and for confidene to my english knowledge :-) in order that you understand my problem.. i have prepared a link for you https://test.extremewebs.de:8443/test/StatusServlet if im use the link over the mod_jk2 he works fine https://test.extremewebs.de/test/StatusServlet but here ist the problem, as soon as put html form tags or links etc to my servlet the server response a information about unsecure parts on my website. i dont have find any good solution to work with apache and tomcat together someone dont work if anybody here to explain me step to step how to setup a apache with ssl and a conector to tomcat with ssl ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Test
The message contains Unicode characters and has been sent as a binary attachment. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OutOfMemory exception explanation?
We've been getting these every now and then: Jan 23, 2004 5:03:30 PM org.apache.tomcat.util.net.TcpWorkerThread runIt SEVERE: Exception in acceptSocket java.lang.OutOfMemoryError Jan 23, 2004 5:03:30 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.IllegalStateException: Terminating thread at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:53 2) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:619) at java.lang.Thread.run(Thread.java:536) Once this occurrs, I have to stop / start the entire Tomcat container in order to allow this particular webapp to function again. It only effects a particular servlet mapping for a given webapp. Does anyone have any suggestions on how to resolve? We're running version 4.1.24.. Any leads would be great, thanks. -Art - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5 embedded ?
Mark W. Webb wrote: Embedded tomcat 4 had an API that could be used to programatically start tomcat from within another application. I am wondering if the same API exists for tomcat 5. If not, how could I start tomcat in an existing process. I would guess that I could not take advantage of the JMX stuff in tomcat 5 by using this startup API. Tomcat 5 has the same Embedded API. The main difference (although you won't notice it) is that it is blended with the regular standalone Tomcat code. No more weird incompatibilities, and you can use some of each mode (ie, have a server.xml while using the Embedded API to manage contexts). The embedded dist also includes an Ant script, which is basically a set of JMX commands. You can use the same JMX commands to embed Tomcat 5. I used that to embed Tomcat 5 inside JBoss 3.2.x (actually, all the initial code was Costin's). -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5 embedded ?
Howdy, The API is still there: org.apache.catalina.startup.Embedded. It's not that hard to use, and it certainly wasn't removed. I think the embed distro helps by providing an Ant script or targets to configure embedded tomcat via JMX, but as I said already I haven't tried it myself. Yoav Shapira Millennium ChemInformatics -Original Message- From: Mark W. Webb [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 2:14 PM To: Tomcat Users List Subject: Re: tomcat 5 embedded ? Embedded tomcat 4 had an API that could be used to programatically start tomcat from within another application. I am wondering if the same API exists for tomcat 5. If not, how could I start tomcat in an existing process. I would guess that I could not take advantage of the JMX stuff in tomcat 5 by using this startup API. Shapira, Yoav wrote: Howdy, Can you explain how embedded tomcat is easier? I would appreciate it greatly. Also, if there is any documentation on this I would like to read it. Thank you. I doubt you'd appreciate my explanation greatly: embedded tomcat 5 is easier than embedded tomcat 4 because there's a specific distribution for it (5.0.18 embed zip or tar.gz, available from the same location as the normal distribution). :) There are references to this in the tomcat-user and tomcat-dev mailing list archives, but without too many details. If you have specific questions you should ask them and we can try to help. If you feel like writing a comprehensive embedding tomcat 5 document it would also be welcome. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error-page for exception-code
Merrill Cornish wrote: I originally had errorPage declarations at the top of all my JSP pages, which worked. Then I heard about the error-page element in web.xml. So I replaced all of the individual errorPage declarations with: error-page exception-typejava.lang.Exception/exception-type location/errorPage.jsp/location /error-page in my application's web.xml, and it worked fine. Next I tried error-page exception-code404/exception-code location/login.jsp/location /error-page to intercept bad URLs and redirect them to the login page. However, THIS does not work. Bad URLs just get the standard Tomcat 404 error page as always. I've Googled the problem and found it doesn't work for me, but it DOES work for me, but it does NOT work for me, and so on. Is there some secret here? (I'm running 5.0.18.) Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Replace the exception-code with the error-code tag and you'll be in business. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: User define mbeans in servlet under Tomcat 5.0.x
Thanks for the quick response. So in order to add my own mbeans for my servlet, I need to get modify the file org.apache.catalina.mbeans.mbeans-descriptor.xml in Tomcat source and rebuild the whole tomcat? So I can't use my own mbeans for my servlet on the official Tomcat 5.0.x? And could you please tell me if I can manager my own mbeans thru the existing Tomcat 5.0.x admin/manager interface? Thank you again. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 12:43 PM To: Tomcat Users List Subject: RE: User define mbeans in servlet under Tomcat 5.0.x Howdy, Is it possible for me to add my own Standard/Dynamic MBeans in my servlet and I can manage that mbean thru Tomcat admin/manager interface? From here, it said I can add my own mbean, but I can't find the file org.apache.catalina.mbeans.mbeans-descriptor.xml http://jakarta.apache.org/tomcat/tomcat-5.0-doc/mbeans-descriptor- howto.html The same URL tells you where the file is: org.apache.catalina.mbeans.mbeans-descriptor.xml. You can also see it via cvs.apache.org. The MBeans have to be available to the common classloader, so can't just put them in your WEB-INF/classes or WEB-INF/lib directory. You can put them in common/classes or common/lib. Alternatively you can make your webapp privileged. Finally, take all this with a grain of salt as I haven't added user webapps MBeans to tomcat5, so this is just theory on my part. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Prohibited Content
Philipp Taprogge wrote: Ha... just got another one... if complained about my message having different SMTP-To: and MIME-To: headers. I am not sure if that's what you got as well. I'm getting the same error from a Symantic server, specifically hosted by the leds.com domain. Its due to the fact that I relay the emails from a different SMTP server than my default mail domain. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5 embedded ?
Sorry if I sounds like a complete idiot here. Are you saying that I can use the JMX API to start an instance of embedded tomcat? If so, where can I find sample code to do this? I did alot of work with the embedded tomcat with the 4.1.24 version, so I am familiar I had to place the embedded tomcat inside a C program :( I would like to write some documentation on this once I have it all working. It seems like very few people use the embedded tomcat. thank you. Remy Maucherat wrote: Mark W. Webb wrote: Embedded tomcat 4 had an API that could be used to programatically start tomcat from within another application. I am wondering if the same API exists for tomcat 5. If not, how could I start tomcat in an existing process. I would guess that I could not take advantage of the JMX stuff in tomcat 5 by using this startup API. Tomcat 5 has the same Embedded API. The main difference (although you won't notice it) is that it is blended with the regular standalone Tomcat code. No more weird incompatibilities, and you can use some of each mode (ie, have a server.xml while using the Embedded API to manage contexts). The embedded dist also includes an Ant script, which is basically a set of JMX commands. You can use the same JMX commands to embed Tomcat 5. I used that to embed Tomcat 5 inside JBoss 3.2.x (actually, all the initial code was Costin's). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build problem with: connectors source
Mats I downloaded the latest source file:jakarta-tomcat-connectors-jk2-src-current.tar.gz tar xvfz jakarta-tomcat-connectors-jk2-src-current.tar.gz cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk Then I build with ant and recive the following error: [EMAIL PROTECTED] jk]# ant Buildfile: build.xml detect: [echo] jakarta-tomcat-connectors prepare: BUILD FAILED /home/digfi/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:105: Warning: Could not find file /home/digfi/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/build/lib/tomca t-coyote.jar to copy. Total time: 1 second What can I do? There was no coyote-directory created when i extrated the file and I cant find any source for it either. I'm having the same problem. I'm awaiting a response on the tomcat-dev list regarding a similar issue; the PGP signature for the same tar.gz file is bad. http://marc.theaimsgroup.com/?l=tomcat-devm=107514052911188w=2 I just posted this build problem on tomcat-dev as well. http://marc.theaimsgroup.com/?l=tomcat-devm=107514716620422w=2 Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[mod_jk] problem when tomcat is unreachable...
Here is the setup. We have one http(2.0.43)+mod_jk(v1.2.5) load-balancing to two jboss-tomcat workers (tomcat version 4.1.24). Everything works fine under normal condition. However, when we try to simulate a network unreachable scenerio to the first worker, we start to see long pauses in the web application before it fails to the 2nd worker. After some research, we found that, in mod_jk, there is a loop of 4 blocking connect() trying to establish the connection to the first worker before it fails over. Since each connect() takes 15 seconds to timeout (on solaris), it takes about 1 minute for mod_jk to fail over. Apparently that is not acceptable in real deployment. So we've modified the connect() to use a non-blocking connect() and specify the select() timeout to a low value (say, 3 seconds) and change the looping to only once. That solved our problem. I really think this fix (configurable connect() timeout) should be checked in to handle network unreachable problem. opinions? suggestions? cheers, -joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] installing new java jdk
Try the following URI under wget to see if that works for you: http://tinyurl.com/yugvm Its the download link to the J2SDK 1.4.2 RPM. Adam Hardy wrote: That trick with wget didn't work for me because wget complained it couldn't run the https protocol. Is there a wget that will run https? I'll check it out. On 01/26/2004 04:54 PM Philipp Taprogge wrote: Hi! Adam Hardy wrote: If I go to my webserver with a linux shell and use Lynx, the download page at java.sun.com gets truncated. wget and curl don't work either because they're not interactive so you can't click on the 'accept terms' submit button. This is a problem I often run into as well. Although there are ways to get the sun download page to work with curl, I have not yet figured them out. Easiest is is fact to download the sdk from another machine and ftp/scp it to your server. There is another way that might work: go to the sun page from your desktop-machine, click your way through past the license terms and then let wget fetch _exactly_ whatever link your browser provides for the download. I have used that one successfully, but only with machines that are NATted through the same router. HTH Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Login Auditing
I am using Tomcat 4.1.29 I was wondering if there was a way to capture successful and failed login attempts. Either via interface, mbean, or some other under the covers hooks. Thanks, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Tomcat on Linux through Checkpoint firewall to Oracle on W2K
I understand that Windows does port redirection which can be troublesome when going through a firewall. I'm using Apache Tomcat on Linux which goes through a Checkpoint firewall to get to Oracle on Windows 2000. What I understand is that when the webserver makes a SQL request via JDBC on port 1521 to Oracle, Windows replies back on a random port number different from 1521 and so it can't get through the firewall. So in order to just open up 1521 through the firewall, there are 3 possible solutions? Can people who are using Oracle on Windows with Tomcat tell me which one you are using? 1) Use the firewall's ability (if supported) to allow for oracle connectivity with OS port redirection. I understand that if the firewall software supports this (or if it can be upgraded to do so), it is the best solution to follow? 2) Use Oracle's Connection Manager (CMAN) feature 3) Set USE_SHARED_SOCKET = TRUE in the registry of the Oracle server. This will allow the OS to share port 1521 and clients will then stay on 1521 when connecting to the database and will not be port redirected. A downfall of this option is all connections will stay on the listener port and if the listener is stopped or restarted all the connections will be severed from the database. Thanks, Neil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build problem with: connectors source
Building mod_jk and mod_jk2 is a bit tricky, but not too bad. Here's how I accomplished it on Linux (Redhat 9 and Fedora Core 1). mod_jk2 1. Download the latest source. 2. Uncompress and and untar it 3. cd to mod_jk2 native area cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 4. Set CPPFlAGS to the same that you had when building Apache. For me this meant the following: export CPPFLAGS=-I/usr/kerberos/include -I/usr/openssl/include (all on one line) 5. Run configure with the following: ./configure --with-apxs2=/home/apache/bin/apxs \ --with-tomcat41=/home/tomcat \ --with-os-type=include/linux \ --with-jni \ --with-pcre Replace the /home/apache/bin/apxs with your location of apxs. You will notice an error about command OS not being found. This is a bug in the configure script, and is also in an M4 macro file. It will not affect the configuration. 6. Change to the server/apache2 directory cd server/apache2 7. Edit the Makefile and change the following line from: JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre -lpcreposix to: JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre -lpcreposix -laprutil-0 This is a problem with the configure script (and another M4 file). 8. Change back to the native2 directory cd ../.. 9. Run make 10. jkjni.so and mod_jk2.so will be in: jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2 11. Copy them into your modules directory for Apache, change the permissions accordingly (so your Apache process owner can read them), and proceed to the configuration. This mod_jk2.so and jkjni.so supports both IP sockets and UNIX sockets on Linux. From previous discussions on this mailing list I think that in-process support will depend on a new MPM for the web server. The M4 script changes appear to be fairly trivial, but my first pass at the OS change seemed to break other stuff (concerning OS subdirectory detection for jkjni/java). I'm working on unravelling that (since I don't understand M4, yet) and I'll try to post my patches to Bugzilla. HTH /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk problem
Lukas Larsson wrote: Thx for the reply. I folloes your second link and found this site (http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.h tml) on how to configure mod_jk but I still get the same problem. Apache says that it is working with mod_jk, but it does not translate *.jsp pages (see http://garazdawi.homeftp.net/test.jsp for an example of what I mean). Can someone please tell me what I'm doing wrong. I would really want to get started with jsp without having to battle with mod_jk. Make sure your Tomcat is set up properly by going directly to it for the JSP page, bypassing Apache, e.g., http://garazdawi.homeftp.net:8080/test.jsp (assuming you left Tomcat on the default HTTP port.) If that doesn't work, then the problem is in Tomcat configuration not in mod_jk. Thx Lukas - Original Message - From: Mark Eggers [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, January 25, 2004 10:03 PM Subject: Re: mod_jk problem Please see the following: http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb or http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links Lots of information, including several step-by-step documents. HTH /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
accessing files external to webapp
Hi - I have what I think is a security permission problem, but I'm not sure. I'm migrating an existing webapp from SuSE/Tomcat 4.0 to Debian/Tomcat 4.1. The SuSE box didn't have a security manager, the Debian one does. In one of the business logic classes, I need to determine if a file external to the webapp exists or not. The check (in a class named PickManager.java) is if (PickManager.class.getClassLoader().getResource(path) == null) Using that technique, I can determine if files exist up to the webapps' context path, but no futher. Since it worked fine on the SuSE box, I'm assuming it's a permission problem. However, in an act of desperation I went so far as to add permission java.security.AllPermission; to my grant block for all webapps in /etc/tomcat4/policy.d/04webapps.policy, but still no luck. The file in question is world-readable, so I don't think its a unix file permission problem clouding the picture. Anyone have an what might be going on? Is there a diff't technique I should use to check for a files' existence? Thanks! -Lorrin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Classloading issue: common/lib/servlet-api.jar
I found this message in the archives from Michael Duffy that is relevant to my question: When Tomcat starts, it assumes the CLASSPATH for your Web app consists of: (1) The rt.jar, of course, (2) All the JARs in TOMCAT_HOME/common/lib, which are visible to all apps, (3) All the JARs in the TOMCAT_HOME/server/lib, which are visible only to Tomcat, (4) All the JARs in your WEB-INF/lib, which are visible only to your app, (5) All the .class files in your WEB-INF/classes, which are visible only to your app. That's it. If your Web app needs a JAR, put it in the WEB-INF/lib and you should be all set. - MOD My page (which is running with a security manager, i.e, -security) is getting the following error (partial stack trace): java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionBindingListener at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123 ) I found that common/lib/servlet-api.jar contains this class, and if I manually add it to the classpath (by editing catalina.sh), my page will then work. According to the note above, all jars on common/lib should be automatically available to my pages. I haven't touched catalina.properties. Any idea why this jar is not being picked up automatically out of common/lib? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classloading issue: common/lib/servlet-api.jar
Howdy, - NoClassDefFoundError is different from ClassNotFoundException. Make sure you understand the difference. Then make sure you remove extra copies of the servlet APIs from the classpath, specifically if you have j2ee.jar or servlet.jar somewhere. - In addition to Senor Duffy's post, read the Classloader How-To in the tomcat documentation. Yoav Shapira Millennium ChemInformatics -Original Message- From: Guy Rouillier [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 4:17 PM To: Tomcat Users List Subject: Classloading issue: common/lib/servlet-api.jar I found this message in the archives from Michael Duffy that is relevant to my question: When Tomcat starts, it assumes the CLASSPATH for your Web app consists of: (1) The rt.jar, of course, (2) All the JARs in TOMCAT_HOME/common/lib, which are visible to all apps, (3) All the JARs in the TOMCAT_HOME/server/lib, which are visible only to Tomcat, (4) All the JARs in your WEB-INF/lib, which are visible only to your app, (5) All the .class files in your WEB-INF/classes, which are visible only to your app. That's it. If your Web app needs a JAR, put it in the WEB-INF/lib and you should be all set. - MOD My page (which is running with a security manager, i.e, -security) is getting the following error (partial stack trace): java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionBindingListener at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123 ) I found that common/lib/servlet-api.jar contains this class, and if I manually add it to the classpath (by editing catalina.sh), my page will then work. According to the note above, all jars on common/lib should be automatically available to my pages. I haven't touched catalina.properties. Any idea why this jar is not being picked up automatically out of common/lib? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Off Topic
Where can I find info on the ojb? I have subscribed to the mailing list but have not been able to submit to it successfully. Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.com This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Shapira, Yoav [mailto:[EMAIL PROTECTED] :: Sent: Monday, January 26, 2004 11:22 PM :: To: Tomcat Users List :: Subject: RE: Classloading issue: common/lib/servlet-api.jar :: :: :: Howdy, :: - NoClassDefFoundError is different from ClassNotFoundException. Make :: sure you understand the difference. Then make sure you remove extra :: copies of the servlet APIs from the classpath, specifically if you have :: j2ee.jar or servlet.jar somewhere. :: :: - In addition to Senor Duffy's post, read the Classloader How-To in the :: tomcat documentation. :: :: Yoav Shapira :: Millennium ChemInformatics :: :: :: -Original Message- :: From: Guy Rouillier [mailto:[EMAIL PROTECTED] :: Sent: Monday, January 26, 2004 4:17 PM :: To: Tomcat Users List :: Subject: Classloading issue: common/lib/servlet-api.jar :: :: I found this message in the archives from Michael Duffy that is :: relevant :: to my question: :: :: :: When Tomcat starts, it assumes the CLASSPATH for your :: Web app consists of: :: :: (1) The rt.jar, of course, :: (2) All the JARs in TOMCAT_HOME/common/lib, which are :: visible to all apps, :: (3) All the JARs in the TOMCAT_HOME/server/lib, which :: are visible only to Tomcat, :: (4) All the JARs in your WEB-INF/lib, which are :: visible only to your app, :: (5) All the .class files in your WEB-INF/classes, :: which are visible only to your app. :: :: That's it. :: :: If your Web app needs a JAR, put it in the WEB-INF/lib :: and you should be all set. - MOD :: :: :: My page (which is running with a security manager, i.e, -security) is :: getting the following error (partial stack trace): :: :: java.lang.NoClassDefFoundError: :: javax/servlet/http/HttpSessionBindingListener :: at java.lang.ClassLoader.defineClass0(Native Method) :: at java.lang.ClassLoader.defineClass(ClassLoader.java:537) :: at :: java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123 :: ) :: :: I found that common/lib/servlet-api.jar contains this class, and if I :: manually add it to the classpath (by editing catalina.sh), my page will :: then work. According to the note above, all jars on common/lib should :: be automatically available to my pages. I haven't touched :: catalina.properties. :: :: Any idea why this jar is not being picked up automatically out of :: common/lib? Thanks. :: :: - :: To unsubscribe, e-mail: [EMAIL PROTECTED] :: For additional commands, e-mail: [EMAIL PROTECTED] :: :: :: :: :: This e-mail, including any attachments, is a confidential business communication, :: and may contain information that is confidential, proprietary and/or privileged. This :: e-mail is intended only for the individual(s) to whom it is addressed, and may not be :: saved, copied, printed, disclosed or used by anyone else. If you are not the(an) :: intended recipient, please immediately delete this e-mail from your computer system :: and notify the sender. Thank you. :: :: :: - :: To unsubscribe, e-mail: [EMAIL PROTECTED] :: For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] installing new java jdk
Wow. How did you do that? wget must have been redirected at least 2 times then! On 01/26/2004 09:12 PM Ankur Shah wrote: Try the following URI under wget to see if that works for you: http://tinyurl.com/yugvm Its the download link to the J2SDK 1.4.2 RPM. Adam Hardy wrote: That trick with wget didn't work for me because wget complained it couldn't run the https protocol. Is there a wget that will run https? I'll check it out. On 01/26/2004 04:54 PM Philipp Taprogge wrote: Hi! Adam Hardy wrote: If I go to my webserver with a linux shell and use Lynx, the download page at java.sun.com gets truncated. wget and curl don't work either because they're not interactive so you can't click on the 'accept terms' submit button. This is a problem I often run into as well. Although there are ways to get the sun download page to work with curl, I have not yet figured them out. Easiest is is fact to download the sdk from another machine and ftp/scp it to your server. There is another way that might work: go to the sun page from your desktop-machine, click your way through past the license terms and then let wget fetch _exactly_ whatever link your browser provides for the download. I have used that one successfully, but only with machines that are NATted through the same router. HTH Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk problem
Ok, now I'm really getting confused, I put the test.jsp file in $CATALINE_HOME/webapps/test.jsp and when doing http://localhost:8080/test.jsp in links (can't open my 8080 port yet...) I get a file cannot be found message, but when I look at the example folder they show as they should. Anyone who knows what I'm doing wrong? Also when adding Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location to my http.conf file I got an error message that said that apache couldn't recongnixe JkUriSet. Is that because JkUriSet is only availabel in jk2 or??? ./Lukas - Original Message - From: Guy Rouillier [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 26, 2004 9:39 PM Subject: RE: mod_jk problem Lukas Larsson wrote: Thx for the reply. I folloes your second link and found this site (http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.h tml) on how to configure mod_jk but I still get the same problem. Apache says that it is working with mod_jk, but it does not translate *.jsp pages (see http://garazdawi.homeftp.net/test.jsp for an example of what I mean). Can someone please tell me what I'm doing wrong. I would really want to get started with jsp without having to battle with mod_jk. Make sure your Tomcat is set up properly by going directly to it for the JSP page, bypassing Apache, e.g., http://garazdawi.homeftp.net:8080/test.jsp (assuming you left Tomcat on the default HTTP port.) If that doesn't work, then the problem is in Tomcat configuration not in mod_jk. Thx Lukas - Original Message - From: Mark Eggers [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, January 25, 2004 10:03 PM Subject: Re: mod_jk problem Please see the following: http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb or http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links Lots of information, including several step-by-step documents. HTH /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Session Managment Problem under Linux
On 01/26/2004 07:12 PM Shane O'Sullivan wrote: Hi All, I am using Tomcat 4.1 running on Red Hat Linux 9.0. I have succesfully deployed my servlet and all seems to be running ok except for one issue. The number of sessions for my servlet seems to be incrementing, even if I stop and restart Tomcat. Its currently at 86 and i'm worried this will effect performance. I have tried setting the session-timeout variable but to no avail. This doesn't however happen on a Windows machine. If I restart Tomcat the number of sessions goes to 0 for my servlet. Go into your context configuration and tell tomcat not to save the sessions at shutdown. You could set an access log as well to see whether you have any strange goings on that could be keeping your sessions from expiring. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jetspeed 1.0 with Tomcat 5.0
Hi, I have been using Jetspeed with Tomcat 4.1.24 with great success. I upgraded to Tomcat 5.0.18 and it has broken my JAAS authentication. Initially it could not find my classes which I fixed by the diretory that they live in to the catalina.properties. But now I am getting: javax.security.auth.login.LoginException: org.apache.turbine.services.InstantiationException: ServiceBroker: unknown service PortalAuthentication requested I have tried putting my configuration files under %CATALINA_ROOT%/conf but no luck. Has anyone else tried this. My JAAS configuration file looks like: MyAppServletContainer { com.myapp.security.ServletContainerLoginModule required; }; MyAppWebServices { com.myapp.security.MyAppLoginModule required expiration-period=0 cache=false; }; MyAppWeb { com.myapp.security.MyAppLoginModule required expiration-period=0 cache=false; }; Any ideas? __ New! Unlimited Netscape Internet Service. Only $9.95 a month -- Sign up today at http://isp.netscape.com/register Act now to get a personalized email address! Netscape. Just the Net You Need. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk problem
Lukas Larsson wrote: Ok, now I'm really getting confused, I put the test.jsp file in $CATALINE_HOME/webapps/test.jsp and when doing http://localhost:8080/test.jsp in links (can't open my 8080 port yet...) I get a file cannot be found message, but when I look at the example folder they show as they should. Anyone who knows what I'm doing wrong? $CATALINE_HOME/webapps/ is not your default context location. If you haven't changed anything, the default context is here (this is Tomcat 5, sorry, I've forgotten which version you are using): Context path= docBase=ROOT debug=0 Also when adding Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location to my http.conf file I got an error message that said that apache couldn't recongnixe JkUriSet. Is that because JkUriSet is only availabel in jk2 or??? Yes, this syntax is for jk2. For jk, use JkMount. ./Lukas - Original Message - From: Guy Rouillier [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, January 26, 2004 9:39 PM Subject: RE: mod_jk problem Lukas Larsson wrote: Thx for the reply. I folloes your second link and found this site (http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.h tml) on how to configure mod_jk but I still get the same problem. Apache says that it is working with mod_jk, but it does not translate *.jsp pages (see http://garazdawi.homeftp.net/test.jsp for an example of what I mean). Can someone please tell me what I'm doing wrong. I would really want to get started with jsp without having to battle with mod_jk. Make sure your Tomcat is set up properly by going directly to it for the JSP page, bypassing Apache, e.g., http://garazdawi.homeftp.net:8080/test.jsp (assuming you left Tomcat on the default HTTP port.) If that doesn't work, then the problem is in Tomcat configuration not in mod_jk. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]