tomcat 5.0.28 on iseries
Hi, Does anybody know where I can find help to run Tomcat 5.0.28 on iseries vr5r2? Thanks Wouter Roux This e-mail and attachments are confidential/legally privileged and any unauthorised use, distribution or disclosure thereof, in whatever form, by anyone other than the addressee is prohibited. If you have received this e-mail in error, please destroy it. The views and opinions in this e-mail and attachments may not necessarily be those of the Directors and management of the Medi-Clinic Group of Companies. The aforementioned does not accept any liability for any damage, loss or expense arising from this e-mail and / or from accessing any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OutOfMemory errors compiling JSPs on 5.0.16 and 5.5.4
I have a copy of the old jvmstat if you'd like me to email it to you direct? -Original Message- From: Kevin A. Burton [mailto:[EMAIL PROTECTED] Sent: 15 November 2004 19:51 To: Tomcat Users List Subject: Re: OutOfMemory errors compiling JSPs on 5.0.16 and 5.5.4 Dale, Matt wrote: I've not been following this thread but my guess would be that you are running out of space in the permanent generation of the heap. Get a hold of jvmstat from sun and run visualgc on your JVM, it should become obvious then which pool is running out of space. God! How pathetic is this: http://java.sun.com/performance/jvmstat/#Download This distribution of the jvmstat tools requires J2SE 5.0 with the HotSpot JVM. So now I have to upgrade all our VMs to JDK 5.0 even though earlier versions of jvmstat supported JDK 1.4. Brilliant... who's the marketing genius that though of this one!? ... and of course they don't link to archival versions. The SUN has set my friends ;-) Kevin -- Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an invite! Also see irc.freenode.net #rojo if you want to chat. Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html If you're interested in RSS, Weblogs, Social Networking, etc... then you should work for Rojo! If you recommend someone and we hire them you'll get a free iPod! Kevin A. Burton, Location - San Francisco, CA AIM/YIM - sfburtonator, Web - http://peerfear.org/ GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412 - 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]
RES: RES: [java] RE: http-https url rewrite bug TC 5.0.28?
Thanks a lot, Steven... As you guess, in our case we don't have important security requirements (just personalized contents) most of time and the hardware isn't that good...but we don't fell confortable to accept http login. One more point in order to implement you suggestion: .. and automatically logs the user in to the non-secure site without prompting. Could you email a snippet for that? The cookie stuff and interceptor will not be a problem - but I couldn't find out how to get the credential from the https sesssion to auto-authenticate the user the next time. Thanks in advance... Paulo -Mensagem original- De: Steven J.Owens [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 15 de novembro de 2004 23:39 Para: Tomcat Users List Assunto: Re: RES: [java] RE: http-https url rewrite bug TC 5.0.28? On Mon, Nov 15, 2004 at 05:13:21PM -0300, Paulo Alvim wrote: I have a similar problem: I'd like to use https only with the login.jsp page and come back to http after that. Could you explain why it isn't possible? It's not possible because it's not _proper_ from a security perspective, so they built tomcat to not enable it. I can sorta understand why people want to do it, myself, but you should understand that it's not secure, and be very much aware of the risks you're taking. Still, I can understand some of the motivation behind the request, and I think there's a solution. The key is to realize you're trying to solve the wrong problem. See my explanation at the end for what the right problem is, and how to solve it. To illustrate this properly, imagine that your account has two usernames and two passwords that you can use to access it, the permanent username/password and a temporary username/password. When you login, you first have to send the permanent username and first password over the net. At that point, the server then sets your temporary username and second password to some random value, temporarily, and then sends those back to you. The temporary username/password will last until your user session times out, or until you explicitly log out. Your browser then sends a copy of that temporary username and temporary password along with _every_ _single_ _request_ to the server. Just because you make sure the first communication, where you sent the permanent username/password, is secure, doesn't keep somebody from sniffing the temporary username and password and using those to do all sorts of damage to your account during that window of opportunity. To bring this back to reality, the JSESSIONID cookie is the temporary username/password. This explains why it is not secure to use the same session for both HTTP and HTTPS connections. Thinking about it, I can certainly see why people would want some happy medium between the two. SSL consumes resources* and often you're not worried about securing the entire series of user interactions, just a critical subset. For example, you don't need to SSL-protect the user browsing your catalog, but you do need to SSL-protect the payment authorization. (* Last I heard, the SSL server takes up about 40% extra resources, though that info is years old and may be way out of date.) However, the important point is _not_ that you want to share the session data across secure and unsecure apps, but that you want to avoid making the user log in twice. Here's how I'd approach this. You need two distinct sets of security credentials, serious and trivial. The serious credential is necessary for the SSL-protected portion, the trivial credential is necessary for the non-SSL portion. Then, when the user logs in via SSL, it also creates a trivial security credential, and sets that on a _different_ cookie than JSESSIONID. It's been ages since I've worked with cookies, but you can mark a cookie as Secure, meaning it only gets sent back to the secure server, or not. The tomcat SSL-created JSESSIONID is set secure, for example. Here's what one looks like: Set-Cookie: JSESSIONID=202E506FAD4A9ADB5F062DB3A3310E89; Path=/xyzzy; Secure This is further documented at: http://www.ietf.org/rfc/rfc2109.txt However, you can also set a second cookie, _without_ the secure option, from the SSL response. The browser will then include that cookie value in further requests to the non-secure site at the same domain. You would have to customize the non-secure site's security so that it checks for this cookie and automatically logs the user in to the non-secure site without prompting. One thing you'll have to watch out for is the timeout of the SSL session, since it might get left alone for many hours. You have two choices there: 1) either include an SSL-protected icon on every page, which will keep your SSL session from timing out. This can have some slight complications, since most browsers use some visual cue to indicated SSL traffic. 2) or just set the SSL app's session timeout
Re: tomcat 5.0.28 on iseries
Hi Wouter, I have no idea what an iseries vr5r2 is, but if it runs a halfway-recent java ( 1.3.x) and has a relatively conventional filesystem, Tomcat should run just fine. Cheers, Michiel Roux, Wouter wrote: Hi, Does anybody know where I can find help to run Tomcat 5.0.28 on iseries vr5r2? Thanks Wouter Roux -- Michiel Toneman Software Engineer Bibit Global Payment Services Regulierenring 10 3981 LB Bunnik [EMAIL PROTECTED] Tel. +31-30-6595168 Fax +31-30-6564464 http://www.bibit.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0.28 on iseries
halfway-recent java ( 1.3.x) Sorry, that should read = Michiel -- Michiel Toneman Software Engineer Bibit Global Payment Services Regulierenring 10 3981 LB Bunnik [EMAIL PROTECTED] Tel. +31-30-6595168 Fax +31-30-6564464 http://www.bibit.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0.28 on iseries
hi, I tryed to deploy the calculator example with SOAP 2.3.1 Tomcat 3.3.2 I've read that a version of xerces.jar older than 1.2.3 isn't compatible but i can't find it. I ould find only newer versions It seem that the server is responding with test/html instead of text/xml but i don't know how to repair this. the rpcrouter and messagerouter servlet are listening but when I try the Calculator example I get an error: thank you all for help /** Exception in thread main [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response con tent type quot;text/html; charset=ISO-8859-1quot;, must be: quot;text/xmlquot;. Response was: lt;headgt;lt;titlegt;Error: 500lt;/titlegt;lt;/headgt; lt;bodygt; lt;h1gt;Error: 500lt;/h1gt; lt;h2gt;Localizaci¾n: /soap/servlet/rpcrouterlt;/h2gt;lt;bgt;Error interno del Servlet:lt;/b gt;lt;brgt; lt;pregt;java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:282) at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:575) at java.lang.ClassLoader.loadClass(ClassLoader.java:282) at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:575) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at org.apache.tomcat.util.depend.DependClassLoader12Impl.loadClassInternal1(Dep en dClassLoade r12.java:193) at org.apache.tomcat.util.depend.DependClassLoader12Impl$1.run(DependClassLoade r1 2.java:78) at java.security.AccessController.doPrivileged(Native Method) at org.apache.tomcat.util.depend.DependClassLoader12Impl.loadClass(DependClassL oa der12.java: 76) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at org.apache.tomcat.facade.ServletHandler.getServlet(ServletHandler.java:307) at org.apache.tomcat.facade.ServletHandler.preInit(ServletHandler.java:378) at org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:192) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:423) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:87 4) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:790) at org.apache.coyote.tomcat3.Tomcat3Adapter.service(Tomcat3Adapter.java:64) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ct ion(Http11P rotocol.java:702) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a: 644) at java.lang.Thread.run(Thread.java:534) lt;/pregt; lt;/bodygt; ] at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208) at org.apache.soap.rpc.Call.invoke(Call.java:255) at org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien t. java:129) at org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java :1 42) at org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2 30 ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.28 on iseries
Hi, Sorry I meant 0S/400 version 5 release 2. wouter -Original Message- From: Michiel Toneman [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 12:51 PM To: Tomcat Users List Subject: Re: tomcat 5.0.28 on iseries Hi Wouter, I have no idea what an iseries vr5r2 is, but if it runs a halfway-recent java ( 1.3.x) and has a relatively conventional filesystem, Tomcat should run just fine. Cheers, Michiel Roux, Wouter wrote: Hi, Does anybody know where I can find help to run Tomcat 5.0.28 on iseries vr5r2? Thanks Wouter Roux -- Michiel Toneman Software Engineer Bibit Global Payment Services Regulierenring 10 3981 LB Bunnik [EMAIL PROTECTED] Tel. +31-30-6595168 Fax +31-30-6564464 http://www.bibit.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and attachments are confidential/legally privileged and any unauthorised use, distribution or disclosure thereof, in whatever form, by anyone other than the addressee is prohibited. If you have received this e-mail in error, please destroy it. The views and opinions in this e-mail and attachments may not necessarily be those of the Directors and management of the Medi-Clinic Group of Companies. The aforementioned does not accept any liability for any damage, loss or expense arising from this e-mail and / or from accessing any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem accessing datasource in 5.5.4 application
On Tue, 16 Nov 2004 02:54:23 -0500, Scott Mueller [EMAIL PROTECTED] wrote: Someone please help me. The same code that was working fine in tomcat 5.0.19 does not work anymore in 5.5.4 for accessing the database. I don't see how it could have worked without a ResourceLink element for your context. You can define the ResourceLink globally in conf/context.xml if all your contexts will need it. -- 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 : Declarative security example
Define a realm element for your Engine/Host/Context node in your server.xml configuration file. For example : Realm className=org.apache.catalina.realm.MemoryRealm / -Message d'origine- De : Freddy Villalba A. [mailto:[EMAIL PROTECTED] Envoyé : vendredi 12 novembre 2004 18:44 À : [EMAIL PROTECTED] Objet : Declarative security example Hello everybody, I'm trying to run the following test application on a Tomcat v4.1 that comes along with JBuilder X. web-app servlet servlet-nameSecureServlet/servlet-name servlet-classSecureServlet/servlet-class /servlet security-constraint web-resource-collection web-resource-nameprueba de seguridad declarativa/web-resource-name url-pattern/servlet/SecureServlet/url-pattern http-methodPOST/http-method /web-resource-collection auth-constraint role-namesupervisor/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/formlogin.html/form-login-page form-error-page/formerror.html/form-error-page /form-login-config /login-config security-role role-namesupervisor/role-name /security-role /web-app When I launch the server, it is not able to initialize the web app. This is the trace I get from Tomcat: 12-nov-2004 18:30:05 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.27-LE-jdk14 HostConfig[localhost]: Deploying configuration descriptor jb-cursoj2ee.xml WebappLoader[/cursoj2ee]: Deploying class repositories to work directory C:\cursoj2ee\seguridadDeclarativa\seguridadDeclarativa\Tomcat\work\cursoj2ee WebappLoader[/cursoj2ee]: Deploy class files /WEB-INF/classes to C:\cursoj2ee\seguridadDeclarativa\seguridadDeclarativa\modulo1\WEB-INF\class es WebappLoader[/cursoj2ee]: Reloading checks are enabled for this Context ContextConfig[/cursoj2ee]: No Realm has been configured to authenticate against ContextConfig[/cursoj2ee]: Marking this application unavailable due to previous error(s) StandardManager[/cursoj2ee]: Seeding random number generator class java.security.SecureRandom StandardManager[/cursoj2ee]: Seeding of random number generator has been completed StandardContext[/cursoj2ee]: Context startup failed due to previous errors 12-nov-2004 18:30:07 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 It seems like I've got to define some realm on Tomcat in order for this silly example to work. However, I've read (Sun's material) this example should be straightforward, just deploy the webapp anywhere and run, without defining anything particular to the servlet container. What am I missing? Am I required to define a realm in order for it to work? Thanx everybody, F. - 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: problem accessing datasource in 5.5.4 application
this is all in my blog .. http://www.adcworks.com/blog/index.php/archives/2004/11/14/getting-up-and-running-with-tomcat-55 -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 11:06 To: Tomcat Users List Subject: Re: problem accessing datasource in 5.5.4 application On Tue, 16 Nov 2004 02:54:23 -0500, Scott Mueller [EMAIL PROTECTED] wrote: Someone please help me. The same code that was working fine in tomcat 5.0.19 does not work anymore in 5.5.4 for accessing the database. I don't see how it could have worked without a ResourceLink element for your context. You can define the ResourceLink globally in conf/context.xml if all your contexts will need it. -- 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] 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: Setup Xms Xmx
Hey David, I'm one of those guys who use your software with good results. thanks for providing it. I must point out one small flaw. I always need to download Tabctl32.ocx and register it with regsvr32 before being able to use it (on win2k machines) along with the vb-runtime stuff. I dont know the leagal stuff for redistribution of tabctl32.ocx, but you could probably provide a link, and instructions for newcommers, on your webpage. Thanx - reynir David Boyer wrote: Another shameless plug: http://web.bvu.edu/staff/david/tcservcfg/ [EMAIL PROTECTED] 11/15/2004 2:03:33 PM Hi, my platform is: Windows 2K Tomcat 5.0.27 I start Tomcat as Win2K service, can I setup JAVA_OPTS like Xms and Xms. Thank a lot and best regards. ciao - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Understanding origin of Unexpected exception ... outside the VM
Hi, I'm running a JSP application on Apache/Tomcat with mod_jk2 on Solaris 8. The application has more than 6Gb of RAM (yes, read six) to run and it crashes irregularly (see error output below) with exactly the same error. My purpose is to determine where the problem stands ... so I could look into one ore two components instead of everything at the same time, thus avoiding wars between programmers and system guys (like me) :) Is it in ... - Tomcat 4.1.30 ? - Apache 2.0.49 with mod_jk2 - Java VM 1.4.2_04 ? - the JSP pages itself ? Are there some exhaustive causes for this kind of error ? Any thoughts will be appreciated ... thanks, Chris. snip An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x7EF499A4 Function=[Unknown. Nearest: madvise+0xC0] Library=/usr/lib/64/libc.so.1 Current Java thread: at kyudo.NativeCall.Call_C_tpcall(Native Method) at kyudo.NativeCall.tp_call(NativeCall.java:58) at kyudo.KyudoDispatcher$ObjectApartment.get_result(KyudoDispatcher.java:345) at kyudo.KyudoDispatcher$ObjectApartment.run(KyudoDispatcher.java:306) Dynamic libraries: 0x1 /kyudoweb/java/bin/sparcv9/java 0x7f30 /usr/lib/64/libthread.so.1 0x7f50 /usr/lib/64/libdl.so.1 0x7ef0 /usr/lib/64/libc.so.1 0x7d40 /kyudoweb/j2sdk1.4.2_04/jre/lib/sparcv9/server/libjvm.so 0x7d20 /usr/lib/64/libCrun.so.1 0x7cf0 /usr/lib/64/libsocket.so.1 0x7cd0 /usr/lib/64/libnsl.so.1 0x7cb0 /usr/lib/64/libm.so.1 0x7c90 /usr/lib/64/libsched.so.1 0x7ed0 /usr/lib/64/libw.so.1 0x7c50 /usr/lib/64/libmp.so.2 0x7c20 /kyudoweb/j2sdk1.4.2_04/jre/lib/sparcv9/native_threads/libhpi.so 0x7be0 /kyudoweb/j2sdk1.4.2_04/jre/lib/sparcv9/libverify.so 0x7bc0 /kyudoweb/j2sdk1.4.2_04/jre/lib/sparcv9/libjava.so 0x7b90 /kyudoweb/j2sdk1.4.2_04/jre/lib/sparcv9/libzip.so 0xfffdae80 /kyudoweb/j2sdk1.4.2_04/jre/lib/sparcv9/libnet.so 0xfffdad10 /kyudoweb/thalerv1.4/webapps/kyudo/nativecall/libnativecall.so 0xfffdacf0 /tuxweb/lib/libwsc.so.71 0xfffdacd0 /tuxweb/lib/libbuft.so.71 0xfffdaca0 /tuxweb/lib/libgpnet.so.71 0xfffdac80 /tuxweb/lib/libfml.so.71 0xfffdac60 /tuxweb/lib/libfml32.so.71 0xfffdac30 /tuxweb/lib/libengine.so.71 0xfffdac10 /usr/lib/64/libpthread.so.1 0xfffdabe0 /usr/lib/64/librt.so.1 0xfffdabc0 /usr/lib/64/libaio.so.1 0xfffdab70 /tuxweb/lib/registry.so Heap at VM Abort: Heap def new generation total 1696320K, used 1485783K [0xfffdb380, 0xfffe1e2c, 0xfffe3380) eden space 1644928K, 87% used [0xfffdb380, 0xfffe0b0c5de0, 0xfffe17e6) from space 51392K, 99% used [0xfffe17e6, 0xfffe1b08fff8, 0xfffe1b09) to space 51392K, 0% used [0xfffe1b09, 0xfffe1b09, 0xfffe1e2c) tenured generation total 3495296K, used 2381505K [0xfffe3380, 0x08d6, 0x3380) the space 3495296K, 68% used [0xfffe3380, 0xfffec4db0560, 0xfffec4db0600, 0x08d6) compacting perm gen total 16384K, used 13647K [0x3380, 0x3480, 0x3780) the space 16384K, 83% used [0x3380, 0x34553f10, 0x34554000, 0x3480) /snip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Understanding origin of Unexpected exception ... outside the VM
JVM crash means native code doing bad things and since .. Current Java thread: at kyudo.NativeCall.Call_C_tpcall(Native Method) at kyudo.NativeCall.tp_call(NativeCall.java:58) That looks like a good candidate. -Tim Chris Kaido wrote: Hi, I'm running a JSP application on Apache/Tomcat with mod_jk2 on Solaris 8. The application has more than 6Gb of RAM (yes, read six) to run and it crashes irregularly (see error output below) with exactly the same error. My purpose is to determine where the problem stands ... so I could look into one ore two components instead of everything at the same time, thus avoiding wars between programmers and system guys (like me) :) Is it in ... - Tomcat 4.1.30 ? - Apache 2.0.49 with mod_jk2 - Java VM 1.4.2_04 ? - the JSP pages itself ? Are there some exhaustive causes for this kind of error ? Any thoughts will be appreciated ... thanks, Chris. snip An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x7EF499A4 Function=[Unknown. Nearest: madvise+0xC0] Library=/usr/lib/64/libc.so.1 Current Java thread: at kyudo.NativeCall.Call_C_tpcall(Native Method) at kyudo.NativeCall.tp_call(NativeCall.java:58) at kyudo.KyudoDispatcher$ObjectApartment.get_result(KyudoDispatcher.java:345) at kyudo.KyudoDispatcher$ObjectApartment.run(KyudoDispatcher.java:306) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Understanding origin of Unexpected exception ... outside the VM
On Tue, Nov 16, 2004 at 12:54:59PM +0100, Chris Kaido wrote: : The application has more than 6Gb of RAM (yes, read six) to run : and it crashes irregularly : [snip] : : Is it in ... : - Tomcat 4.1.30 ? : - Apache 2.0.49 with mod_jk2 : - Java VM 1.4.2_04 ? : - the JSP pages itself ? The error message indicates the crash occurs during a native (JNI) call done by your code. That rules out the JSPs, Apache, and Tomcat. Read on: : An unexpected exception has been detected in native code outside the VM. : Unexpected Signal : 11 occurred at PC=0x7EF499A4 : Function=[Unknown. Nearest: madvise+0xC0] : Library=/usr/lib/64/libc.so.1 Let's see... random crashes, singal 11 errors, and in a system library that should be fairly stable... This is likely a hardware problem. You don't say whether you're running Solaris Sparc or x86, but sig11 errors on the latter are typically indicative of bad RAM. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in
We did set the Security level to low on IE. More suggestions? Thanks Aman Raheja Phillip Qin wrote: There are security and privacy settings in IE affect PDF generation. BTW, ensurethe link before query string ends with .pdf -Original Message- From: Aman Raheja [mailto:[EMAIL PROTECTED] Sent: November 15, 2004 1:40 PM To: [EMAIL PROTECTED] Subject: Problem displaying PDF in IE6 from Tomcat using the ActiveX Reader Plug-in Problem: When we try to display a dynamically generated PDF file, IE launches the Adobe Acrobat Reader Plugin, but then just a blank page is displayed and the IE status says Done. No error message is displayed. No error is generated in the System Event logs. The issue seems to be that every request to request to Tomcat for the PDF send back the request with charset=ISO-8859-1 in the Content-type Header. We want to figure out a way to verify that this is the issue. One way might be to somehow get Tomcat to not append the Character Set in the header. Is there a way to do this? Environment: - Client: Windows XP or Windows 2000 - Server: Tomcat 4.0.6/JDK 1.3.1 running on Solaris and Windows XP (problem exists on both) - Adobe Reader 6.0.1 (occurs with 6.0.2 patch as well) - IE 6.0.2800 Additional Information: 1) Our URLs are formed like this: http://app.ourserver.com/appname/docViewAGN.jsp?RepoType=CID=18698DocName= Germanyentry=DocType=pdfcategory=Research 2) Our app is issuing GETs, not POSTs. 3) This is happening on multiple PCs. One thing we noticed is this may be somewhat Reader version dependent -- we have a few machines left with Reader 5 installed, and they do not seem to have the problem. 4) When the problem occurs, if you then launch Reader manually, the document that didn't display in the IE window is automatically displayed in the full client Reader app.!!! 5) If we set Reader to not open up PDFs in browser windows, the Reader window launches and opens the PDF file just fine. [This is a client solution, and not practical to implement across hundreds of PCs unfortunately.] 6) We actually have one PC with Windows XP, Reader 6.0.1, and IE 6.0.2 that works. Could this problem be caused by some specific Windows or IE patch? 7) We've scoured the forums and tried several things including setting all security levels to Low in IE, adding a dummy parm at the end of the URL to fool IE into launching the PDF correctly (e.g. dummy=file.pdf), and various header settings to force caching on to 30 seconds, etc. None of this had any effect. 8) Also, we saw some references to problems caused by Tomcat 4.0.6 adding charset=ISO-8859-1 to the Content-Type header in the response. How can we override this to see if that's the problem? Thanks Aman Raheja - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4198f83938781679484274! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in
Laba diena. Dkojame, kad mums parate. Js atsista inut isaugota ms duomen bazje. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in
Are you setting the MIME type in the response header properly for the PDF? Also note that the Acrobat Reader plugin doesn't like to read PDFs if they've been served using HTTP compression (I don't know if that applies in your case or not). Also, if the PDF is being sent over SSL, note that IE has a setting that prevents the caching of SSL-delivered content to disk, which will choke the Acrobat Reader plugin. [EMAIL PROTECTED] 11/16/2004 6:33:20 AM Where do you generate the pdf? In servlet? The link has to be end with .pdf (but before any query string) in order for acrobat reader active-x to kick in. -Original Message- From: Aman Raheja [mailto:[EMAIL PROTECTED] Sent: November 16, 2004 9:27 AM To: Tomcat Users List Subject: Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in We did set the Security level to low on IE. More suggestions? Thanks Aman Raheja Phillip Qin wrote: There are security and privacy settings in IE affect PDF generation. BTW, ensurethe link before query string ends with .pdf -Original Message- From: Aman Raheja [mailto:[EMAIL PROTECTED] Sent: November 15, 2004 1:40 PM To: [EMAIL PROTECTED] Subject: Problem displaying PDF in IE6 from Tomcat using the ActiveX Reader Plug-in Problem: When we try to display a dynamically generated PDF file, IE launches the Adobe Acrobat Reader Plugin, but then just a blank page is displayed and the IE status says Done. No error message is displayed. No error is generated in the System Event logs. The issue seems to be that every request to request to Tomcat for the PDF send back the request with charset=ISO-8859-1 in the Content-type Header. We want to figure out a way to verify that this is the issue. One way might be to somehow get Tomcat to not append the Character Set in the header. Is there a way to do this? Environment: - Client: Windows XP or Windows 2000 - Server: Tomcat 4.0.6/JDK 1.3.1 running on Solaris and Windows XP (problem exists on both) - Adobe Reader 6.0.1 (occurs with 6.0.2 patch as well) - IE 6.0.2800 Additional Information: 1) Our URLs are formed like this: http://app.ourserver.com/appname/docViewAGN.jsp?RepoType=CID=18698Doc Name= Germanyentry=DocType=pdfcategory=Research 2) Our app is issuing GETs, not POSTs. 3) This is happening on multiple PCs. One thing we noticed is this may be somewhat Reader version dependent -- we have a few machines left with Reader 5 installed, and they do not seem to have the problem. 4) When the problem occurs, if you then launch Reader manually, the document that didn't display in the IE window is automatically displayed in the full client Reader app.!!! 5) If we set Reader to not open up PDFs in browser windows, the Reader window launches and opens the PDF file just fine. [This is a client solution, and not practical to implement across hundreds of PCs unfortunately.] 6) We actually have one PC with Windows XP, Reader 6.0.1, and IE 6.0.2 that works. Could this problem be caused by some specific Windows or IE patch? 7) We've scoured the forums and tried several things including setting all security levels to Low in IE, adding a dummy parm at the end of the URL to fool IE into launching the PDF correctly (e.g. dummy=file.pdf), and various header settings to force caching on to 30 seconds, etc. None of this had any effect. 8) Also, we saw some references to problems caused by Tomcat 4.0.6 adding charset=ISO-8859-1 to the Content-Type header in the response. How can we override this to see if that's the problem? Thanks Aman Raheja - 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] !DSPAM:419a0e4b161771045017228!
RE: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in
Where do you generate the pdf? In servlet? The link has to be end with .pdf (but before any query string) in order for acrobat reader active-x to kick in. -Original Message- From: Aman Raheja [mailto:[EMAIL PROTECTED] Sent: November 16, 2004 9:27 AM To: Tomcat Users List Subject: Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in We did set the Security level to low on IE. More suggestions? Thanks Aman Raheja Phillip Qin wrote: There are security and privacy settings in IE affect PDF generation. BTW, ensurethe link before query string ends with .pdf -Original Message- From: Aman Raheja [mailto:[EMAIL PROTECTED] Sent: November 15, 2004 1:40 PM To: [EMAIL PROTECTED] Subject: Problem displaying PDF in IE6 from Tomcat using the ActiveX Reader Plug-in Problem: When we try to display a dynamically generated PDF file, IE launches the Adobe Acrobat Reader Plugin, but then just a blank page is displayed and the IE status says Done. No error message is displayed. No error is generated in the System Event logs. The issue seems to be that every request to request to Tomcat for the PDF send back the request with charset=ISO-8859-1 in the Content-type Header. We want to figure out a way to verify that this is the issue. One way might be to somehow get Tomcat to not append the Character Set in the header. Is there a way to do this? Environment: - Client: Windows XP or Windows 2000 - Server: Tomcat 4.0.6/JDK 1.3.1 running on Solaris and Windows XP (problem exists on both) - Adobe Reader 6.0.1 (occurs with 6.0.2 patch as well) - IE 6.0.2800 Additional Information: 1) Our URLs are formed like this: http://app.ourserver.com/appname/docViewAGN.jsp?RepoType=CID=18698Doc Name= Germanyentry=DocType=pdfcategory=Research 2) Our app is issuing GETs, not POSTs. 3) This is happening on multiple PCs. One thing we noticed is this may be somewhat Reader version dependent -- we have a few machines left with Reader 5 installed, and they do not seem to have the problem. 4) When the problem occurs, if you then launch Reader manually, the document that didn't display in the IE window is automatically displayed in the full client Reader app.!!! 5) If we set Reader to not open up PDFs in browser windows, the Reader window launches and opens the PDF file just fine. [This is a client solution, and not practical to implement across hundreds of PCs unfortunately.] 6) We actually have one PC with Windows XP, Reader 6.0.1, and IE 6.0.2 that works. Could this problem be caused by some specific Windows or IE patch? 7) We've scoured the forums and tried several things including setting all security levels to Low in IE, adding a dummy parm at the end of the URL to fool IE into launching the PDF correctly (e.g. dummy=file.pdf), and various header settings to force caching on to 30 seconds, etc. None of this had any effect. 8) Also, we saw some references to problems caused by Tomcat 4.0.6 adding charset=ISO-8859-1 to the Content-Type header in the response. How can we override this to see if that's the problem? Thanks Aman Raheja - 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] !DSPAM:419a0e4b161771045017228!
RE: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in
I've developed a couple of applications that spit back PDF files from within Struts. One thing I did have to do was make sure the generated PDF's response content type was application/pdf I don't think I've had to do anything with filename extensions. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 9:33 AM To: 'Tomcat Users List' Subject: RE: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in Where do you generate the pdf? In servlet? The link has to be end with .pdf (but before any query string) in order for acrobat reader active-x to kick in. -Original Message- From: Aman Raheja [mailto:[EMAIL PROTECTED] Sent: November 16, 2004 9:27 AM To: Tomcat Users List Subject: Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in We did set the Security level to low on IE. More suggestions? Thanks Aman Raheja Phillip Qin wrote: There are security and privacy settings in IE affect PDF generation. BTW, ensurethe link before query string ends with .pdf -Original Message- From: Aman Raheja [mailto:[EMAIL PROTECTED] Sent: November 15, 2004 1:40 PM To: [EMAIL PROTECTED] Subject: Problem displaying PDF in IE6 from Tomcat using the ActiveX Reader Plug-in Problem: When we try to display a dynamically generated PDF file, IE launches the Adobe Acrobat Reader Plugin, but then just a blank page is displayed and the IE status says Done. No error message is displayed. No error is generated in the System Event logs. The issue seems to be that every request to request to Tomcat for the PDF send back the request with charset=ISO-8859-1 in the Content-type Header. We want to figure out a way to verify that this is the issue. One way might be to somehow get Tomcat to not append the Character Set in the header. Is there a way to do this? Environment: - Client: Windows XP or Windows 2000 - Server: Tomcat 4.0.6/JDK 1.3.1 running on Solaris and Windows XP (problem exists on both) - Adobe Reader 6.0.1 (occurs with 6.0.2 patch as well) - IE 6.0.2800 Additional Information: 1) Our URLs are formed like this: http://app.ourserver.com/appname/docViewAGN.jsp?RepoType=CID=18698Doc Name= Germanyentry=DocType=pdfcategory=Research 2) Our app is issuing GETs, not POSTs. 3) This is happening on multiple PCs. One thing we noticed is this may be somewhat Reader version dependent -- we have a few machines left with Reader 5 installed, and they do not seem to have the problem. 4) When the problem occurs, if you then launch Reader manually, the document that didn't display in the IE window is automatically displayed in the full client Reader app.!!! 5) If we set Reader to not open up PDFs in browser windows, the Reader window launches and opens the PDF file just fine. [This is a client solution, and not practical to implement across hundreds of PCs unfortunately.] 6) We actually have one PC with Windows XP, Reader 6.0.1, and IE 6.0.2 that works. Could this problem be caused by some specific Windows or IE patch? 7) We've scoured the forums and tried several things including setting all security levels to Low in IE, adding a dummy parm at the end of the URL to fool IE into launching the PDF correctly (e.g. dummy=file.pdf), and various header settings to force caching on to 30 seconds, etc. None of this had any effect. 8) Also, we saw some references to problems caused by Tomcat 4.0.6 adding charset=ISO-8859-1 to the Content-Type header in the response. How can we override this to see if that's the problem? Thanks Aman Raheja - 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] !DSPAM:419a0e4b161771045017228!
RE: gc output for tomcat?? where is it
No, it doesn't print it in the stdout.log either. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 4:46 PM To: Tomcat Users List Subject: RE: gc output for tomcat?? where is it Hi, Well, the console is trapped to stdout.log when running as a service, isn't it? That's where I'd expect it. But I don't care enough for JDK 1.3 to actually test this for you ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Pooleery, Manoj [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 4:44 PM To: 'Tomcat Users List' Subject: RE: gc output for tomcat?? where is it Can somebody from the developer team answer this question please? -Xloggc: works only from JDK 1.4 onwards. With JDK 1.3.1 and Tomcat running as a service, I was also not able to get any gc logs anywhere. When it is running as a console, with the -verbose:gc flag, it was showing the gc output on the console itself, but when changed to start as a service, there was no trace of it. Thanks -Manoj Pooleery. -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 3:49 PM To: [EMAIL PROTECTED] Subject: Re: gc output for tomcat?? where is it try adding -Xloggc:file [EMAIL PROTECTED] 11/15/2004 12:39:45 PM I have set the -verbose:gc flag for tomcat. Where does the output go? Do I need to set the log level to Info instead of Error?? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in
Mozilla does not have the extension issue. IE does. I use struts too. -Original Message- From: Graff, David [mailto:[EMAIL PROTECTED] Sent: November 16, 2004 9:42 AM To: 'Tomcat Users List' Subject: RE: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in I've developed a couple of applications that spit back PDF files from within Struts. One thing I did have to do was make sure the generated PDF's response content type was application/pdf I don't think I've had to do anything with filename extensions. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 9:33 AM To: 'Tomcat Users List' Subject: RE: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in Where do you generate the pdf? In servlet? The link has to be end with .pdf (but before any query string) in order for acrobat reader active-x to kick in. -Original Message- From: Aman Raheja [mailto:[EMAIL PROTECTED] Sent: November 16, 2004 9:27 AM To: Tomcat Users List Subject: Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in We did set the Security level to low on IE. More suggestions? Thanks Aman Raheja Phillip Qin wrote: There are security and privacy settings in IE affect PDF generation. BTW, ensurethe link before query string ends with .pdf -Original Message- From: Aman Raheja [mailto:[EMAIL PROTECTED] Sent: November 15, 2004 1:40 PM To: [EMAIL PROTECTED] Subject: Problem displaying PDF in IE6 from Tomcat using the ActiveX Reader Plug-in Problem: When we try to display a dynamically generated PDF file, IE launches the Adobe Acrobat Reader Plugin, but then just a blank page is displayed and the IE status says Done. No error message is displayed. No error is generated in the System Event logs. The issue seems to be that every request to request to Tomcat for the PDF send back the request with charset=ISO-8859-1 in the Content-type Header. We want to figure out a way to verify that this is the issue. One way might be to somehow get Tomcat to not append the Character Set in the header. Is there a way to do this? Environment: - Client: Windows XP or Windows 2000 - Server: Tomcat 4.0.6/JDK 1.3.1 running on Solaris and Windows XP (problem exists on both) - Adobe Reader 6.0.1 (occurs with 6.0.2 patch as well) - IE 6.0.2800 Additional Information: 1) Our URLs are formed like this: http://app.ourserver.com/appname/docViewAGN.jsp?RepoType=CID=18698Doc Name= Germanyentry=DocType=pdfcategory=Research 2) Our app is issuing GETs, not POSTs. 3) This is happening on multiple PCs. One thing we noticed is this may be somewhat Reader version dependent -- we have a few machines left with Reader 5 installed, and they do not seem to have the problem. 4) When the problem occurs, if you then launch Reader manually, the document that didn't display in the IE window is automatically displayed in the full client Reader app.!!! 5) If we set Reader to not open up PDFs in browser windows, the Reader window launches and opens the PDF file just fine. [This is a client solution, and not practical to implement across hundreds of PCs unfortunately.] 6) We actually have one PC with Windows XP, Reader 6.0.1, and IE 6.0.2 that works. Could this problem be caused by some specific Windows or IE patch? 7) We've scoured the forums and tried several things including setting all security levels to Low in IE, adding a dummy parm at the end of the URL to fool IE into launching the PDF correctly (e.g. dummy=file.pdf), and various header settings to force caching on to 30 seconds, etc. None of this had any effect. 8) Also, we saw some references to problems caused by Tomcat 4.0.6 adding charset=ISO-8859-1 to the Content-Type header in the response. How can we override this to see if that's the problem? Thanks Aman Raheja - 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] !DSPAM:419a11f7162861134571087!
Tomcat JRE vs JDK Issue
I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.awt.HeadlessException
Hi, I'm using Tomcat 5.0.12,J2sdk1.5 on Linux Fedora 2 . I need to have a servlet which displays jpg images without using Xserver. I get this error even after starting tomcat with CATALINA_OPTS=-Djava.awt.headless=true and also with Xvfb running. java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159) at java.awt.Window.init(Window.java:310) at java.awt.Frame.init(Frame.java:419) at java.awt.Frame.init(Frame.java:384) .. __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat JRE vs JDK Issue
does the client machine have JAVA_HOME as an environment variable? -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:09 To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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: java.awt.HeadlessException
Hi, So modify your servlet to work properly in a headless environment, or use an alternative like Xvfb. This is not a Tomcat issue, so if you want to continue discussion on the mailing list please prepend [OFF-TOPIC] to the subject line. Thanks, Yoav Shapira http://www.yoavshapira.com -Original Message- From: indu ss [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:11 AM To: [EMAIL PROTECTED] Subject: java.awt.HeadlessException Hi, I'm using Tomcat 5.0.12,J2sdk1.5 on Linux Fedora 2 . I need to have a servlet which displays jpg images without using Xserver. I get this error even after starting tomcat with CATALINA_OPTS=-Djava.awt.headless=true and also with Xvfb running. java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159 ) at java.awt.Window.init(Window.java:310) at java.awt.Frame.init(Frame.java:419) at java.awt.Frame.init(Frame.java:384) .. __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com - 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 JRE vs JDK Issue
Hi, Both Tomcat 4.x and 5.0 require the JDK. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:09 AM To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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 JRE vs JDK Issue
Why is that? Chris -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:19 AM To: Tomcat Users List Subject: RE: Tomcat JRE vs JDK Issue Hi, Both Tomcat 4.x and 5.0 require the JDK. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:09 AM To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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: Tomcat JRE vs JDK Issue
because it has to compile JSPs into Servlets etc.. -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:15 To: 'Tomcat Users List' Subject: RE: Tomcat JRE vs JDK Issue Why is that? Chris -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:19 AM To: Tomcat Users List Subject: RE: Tomcat JRE vs JDK Issue Hi, Both Tomcat 4.x and 5.0 require the JDK. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:09 AM To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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] 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 JRE vs JDK Issue
Chris: I think TC requires the JDK (not just the JRE) so that it can compile JSPs. If this doesn't make sense, I can explain further. -Anthony Carlos On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote: does the client machine have JAVA_HOME as an environment variable? -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:09 To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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]
RE: Tomcat JRE vs JDK Issue
Hi, Because a compiler is required to compile JSP pages into class bytecode. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:15 AM To: 'Tomcat Users List' Subject: RE: Tomcat JRE vs JDK Issue Why is that? Chris -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:19 AM To: Tomcat Users List Subject: RE: Tomcat JRE vs JDK Issue Hi, Both Tomcat 4.x and 5.0 require the JDK. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:09 AM To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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] 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 JRE vs JDK Issue
Damn! I was minutes away from actually helping someone (instead of always sucking up advice from the fast experts on this list)... On Nov 16, 2004, at 10:23 AM, Anthony E. Carlos wrote: Chris: I think TC requires the JDK (not just the JRE) so that it can compile JSPs. If this doesn't make sense, I can explain further. -Anthony Carlos On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote: does the client machine have JAVA_HOME as an environment variable? -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:09 To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat JRE vs JDK Issue
Feel free to explain. :) Chris -Original Message- From: Anthony E. Carlos [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:23 AM To: Tomcat Users List Subject: Re: Tomcat JRE vs JDK Issue Chris: I think TC requires the JDK (not just the JRE) so that it can compile JSPs. If this doesn't make sense, I can explain further. -Anthony Carlos On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote: does the client machine have JAVA_HOME as an environment variable? -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:09 To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat JRE vs JDK Issue
go on Anthony .. you deserve it :) lol -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:20 To: 'Tomcat Users List' Subject: RE: Tomcat JRE vs JDK Issue Feel free to explain. :) Chris -Original Message- From: Anthony E. Carlos [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:23 AM To: Tomcat Users List Subject: Re: Tomcat JRE vs JDK Issue Chris: I think TC requires the JDK (not just the JRE) so that it can compile JSPs. If this doesn't make sense, I can explain further. -Anthony Carlos On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote: does the client machine have JAVA_HOME as an environment variable? -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:09 To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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] - 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 JRE vs JDK Issue
Chris, JSP pages get compiled into bytecode (as Yoav just said) as they are requested. So, the server requires the SDK, including javac to do the compiling. --Dan -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 9:20 AM To: 'Tomcat Users List' Subject: RE: Tomcat JRE vs JDK Issue Feel free to explain. :) Chris -Original Message- From: Anthony E. Carlos [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:23 AM To: Tomcat Users List Subject: Re: Tomcat JRE vs JDK Issue Chris: I think TC requires the JDK (not just the JRE) so that it can compile JSPs. If this doesn't make sense, I can explain further. -Anthony Carlos On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote: does the client machine have JAVA_HOME as an environment variable? -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:09 To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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] - 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 JRE vs JDK Issue
yes unless you do JSP precompilation where you compile your JSPs into servlets before hand. A servlet is the bytecode class that all these guys are talking about. JSP is not a language per se either, it's an interpreted language like PHP that mixes HTML and Java code. The compilation phase merges the HTML and Java and so fourth into a Java class called a Servlet. This is what runs your request from the browser and sends the response back to the user. Allistair -Original Message- From: Wick, Daniel [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:35 To: 'Tomcat Users List' Subject: RE: Tomcat JRE vs JDK Issue Chris, JSP pages get compiled into bytecode (as Yoav just said) as they are requested. So, the server requires the SDK, including javac to do the compiling. --Dan -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 9:20 AM To: 'Tomcat Users List' Subject: RE: Tomcat JRE vs JDK Issue Feel free to explain. :) Chris -Original Message- From: Anthony E. Carlos [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:23 AM To: Tomcat Users List Subject: Re: Tomcat JRE vs JDK Issue Chris: I think TC requires the JDK (not just the JRE) so that it can compile JSPs. If this doesn't make sense, I can explain further. -Anthony Carlos On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote: does the client machine have JAVA_HOME as an environment variable? -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:09 To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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] - 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: java.awt.HeadlessException
Hi, We have found that in order to get headless to work properly, you need the xlib libraries installed. You don't need an xserver _running_, but you need the libraries, because I think java.awt.* uses them. Here's a link: http://javatechniques.com/public/java/docs/hosting/headless-java-x11-librari es.html We've also found that JAVA needs help finding them, by adding the following line to catalina.sh: export LD_LIBRARY_PATH=/usr/X11/lib Also of note is that the error message you get for this condition changes after the first occurrence. The very first time you try to generate an image dynamically, you'll get something like: org.apache.jasper.JasperException: /usr/local/applications/j2sdk-1_4_2_04/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory All subsequent times, it will be a different message, something like: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at java.awt.Toolkit$2.run(Toolkit.java:748) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:739) Maybe you knew all this, and xvfb (whatever that is) was meant to get around this. But all of the above works for us. -Original Message- From: indu ss [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 9:11 AM To: [EMAIL PROTECTED] Subject: java.awt.HeadlessException Hi, I'm using Tomcat 5.0.12,J2sdk1.5 on Linux Fedora 2 . I need to have a servlet which displays jpg images without using Xserver. I get this error even after starting tomcat with CATALINA_OPTS=-Djava.awt.headless=true and also with Xvfb running. java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment .java:159) at java.awt.Window.init(Window.java:310) at java.awt.Frame.init(Frame.java:419) at java.awt.Frame.init(Frame.java:384) .. __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.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 JRE vs JDK Issue
Correct me if I'm wrong. One of the things the JDK brings that the JRE does not is tools.jar which contains com.sun.tools.javac, which is needed to compile JSPs. It might be possible to use the JRE as long as you have tools.jar from the JDK somewhere in your classpath. It seems like I saw a thread related to this a while ago, although I don't know if it works. Is there a compelling reason to want to use the JRE rather than the full JDK? [EMAIL PROTECTED] 11/16/2004 7:35:02 AM Chris, JSP pages get compiled into bytecode (as Yoav just said) as they are requested. So, the server requires the SDK, including javac to do the compiling. --Dan -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 9:20 AM To: 'Tomcat Users List' Subject: RE: Tomcat JRE vs JDK Issue Feel free to explain. :) Chris -Original Message- From: Anthony E. Carlos [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:23 AM To: Tomcat Users List Subject: Re: Tomcat JRE vs JDK Issue Chris: I think TC requires the JDK (not just the JRE) so that it can compile JSPs. If this doesn't make sense, I can explain further. -Anthony Carlos On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote: does the client machine have JAVA_HOME as an environment variable? -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:09 To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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;A href=http://www.qas.comwww.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] - 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]
NoSuchElementException in cluster
Hello, I'm seeing these exceptions on one of my 2 nodes. The memory cosumption of this server is now growing for a couple of hours, but I cannot tell if that is related with this. I removed the server from the worker list of mod_jk so it is still in the cluster, but not receiving any requests anymore. Any ideas about the exceptions. Are they harmless? Can they be related to a constantly growing amount of in-use memory? I'm running Tomcat 5.0.25 on Linux 2.4 and 2.6 with JDK 1.4.2. It runs very well most of the time. Ronald. SEVERE: Unable to perform replication request. java.util.NoSuchElementException at java.util.LinkedList.remove(LinkedList.java:579) at java.util.LinkedList.removeFirst(LinkedList.java:131) at org.apache.catalina.cluster.session.DeltaRequest.reset(DeltaRequest.java:153) at org.apache.catalina.cluster.session.DeltaSession.resetDeltaRequest(DeltaSession.java:938) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(DeltaManager.java:786) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) SEVERE: Unable to receive message through TCP channel java.util.NoSuchElementException at java.util.LinkedList.remove(LinkedList.java:579) at java.util.LinkedList.removeFirst(LinkedList.java:131) at org.apache.catalina.cluster.session.DeltaRequest.reset(DeltaRequest.java:153) at org.apache.catalina.cluster.session.DeltaRequest.readExternal(DeltaRequest.java:184) at org.apache.catalina.cluster.session.DeltaManager.loadDeltaRequest(DeltaManager.java:385) at org.apache.catalina.cluster.session.DeltaManager.messageReceived(DeltaManager.java:898) at org.apache.catalina.cluster.session.DeltaManager.messageDataReceived(DeltaManager.java:762) at org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleTcpCluster.java:576) at org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:129) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:67)
Re: Tomcat JRE vs JDK Issue
JSP technology is an extension of the servlet technology created to support authoring of HTML and XML pages. If you've ever written servlets, you know what a tremendous pain it is to write and maintain all those out.println() statements. JSP was designed to allow more HTML-centric (aka presentation-side) people to create pages that get turned into servlets that are compiled into bytecode for the java interpreter to interpret. If you peek around the work directory, you'll find an XXX_jsp.java and an XXX_jsp.class file for every JSP. That's why a JRE isn't enough-- you need a compiler from the JDK to compile the JSP into servlets. Phew! HTH, -Anthony On Nov 16, 2004, at 10:27 AM, Allistair Crossley wrote: go on Anthony .. you deserve it :) lol -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:20 To: 'Tomcat Users List' Subject: RE: Tomcat JRE vs JDK Issue Feel free to explain. :) Chris -Original Message- From: Anthony E. Carlos [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:23 AM To: Tomcat Users List Subject: Re: Tomcat JRE vs JDK Issue Chris: I think TC requires the JDK (not just the JRE) so that it can compile JSPs. If this doesn't make sense, I can explain further. -Anthony Carlos On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote: does the client machine have JAVA_HOME as an environment variable? -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:09 To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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] - 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 JRE vs JDK Issue
I have experienced the need in the past to drop tools.jar into tomcat's common/lib folder but not in 5.0.28 or 5.5. Perhaps you're right. -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:42 To: [EMAIL PROTECTED] Subject: RE: Tomcat JRE vs JDK Issue Correct me if I'm wrong. One of the things the JDK brings that the JRE does not is tools.jar which contains com.sun.tools.javac, which is needed to compile JSPs. It might be possible to use the JRE as long as you have tools.jar from the JDK somewhere in your classpath. It seems like I saw a thread related to this a while ago, although I don't know if it works. Is there a compelling reason to want to use the JRE rather than the full JDK? [EMAIL PROTECTED] 11/16/2004 7:35:02 AM Chris, JSP pages get compiled into bytecode (as Yoav just said) as they are requested. So, the server requires the SDK, including javac to do the compiling. --Dan -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 9:20 AM To: 'Tomcat Users List' Subject: RE: Tomcat JRE vs JDK Issue Feel free to explain. :) Chris -Original Message- From: Anthony E. Carlos [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:23 AM To: Tomcat Users List Subject: Re: Tomcat JRE vs JDK Issue Chris: I think TC requires the JDK (not just the JRE) so that it can compile JSPs. If this doesn't make sense, I can explain further. -Anthony Carlos On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote: does the client machine have JAVA_HOME as an environment variable? -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:09 To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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;A href=http://www.qas.comwww.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] - 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 JRE vs JDK Issue
Due to other programs that we install on the client machine, the JRE is installed. I was hoping to just use that in order to minimize the changes to our other programs and setups. Do you know where I could find more information about using tools.jar? Chris -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:42 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat JRE vs JDK Issue Correct me if I'm wrong. One of the things the JDK brings that the JRE does not is tools.jar which contains com.sun.tools.javac, which is needed to compile JSPs. It might be possible to use the JRE as long as you have tools.jar from the JDK somewhere in your classpath. It seems like I saw a thread related to this a while ago, although I don't know if it works. Is there a compelling reason to want to use the JRE rather than the full JDK? [EMAIL PROTECTED] 11/16/2004 7:35:02 AM Chris, JSP pages get compiled into bytecode (as Yoav just said) as they are requested. So, the server requires the SDK, including javac to do the compiling. --Dan -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 9:20 AM To: 'Tomcat Users List' Subject: RE: Tomcat JRE vs JDK Issue Feel free to explain. :) Chris -Original Message- From: Anthony E. Carlos [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:23 AM To: Tomcat Users List Subject: Re: Tomcat JRE vs JDK Issue Chris: I think TC requires the JDK (not just the JRE) so that it can compile JSPs. If this doesn't make sense, I can explain further. -Anthony Carlos On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote: does the client machine have JAVA_HOME as an environment variable? -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:09 To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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;A href=http://www.qas.comwww.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] - 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 JRE vs JDK Issue
Hi, One of the things the JDK brings that the JRE does not is tools.jar which contains com.sun.tools.javac, which is needed to compile JSPs. Correct. It might be possible to use the JRE as long as you have tools.jar from the JDK somewhere in your classpath. It seems like I saw a thread related to this a while ago, although I don't know if it works. It does for many cases, but not all (there are tricky classloader-related cases if using a JRE/lib/ext or sealed jar), and that's why it's not recommended now and was never officially supported. Is there a compelling reason to want to use the JRE rather than the full JDK? There are two that come to mind. One is that the JRE is smaller, lighter in footprint, and easier to install. The second is probably more significant, and it is that anyone can redistribute a JRE for commercial use, but not a JDK. The latter is a license violation. So if you're creating a shrink-wrapped product, you can't bundle the JDK with it (unless you get a special license and pay royalties to Sun), but you can the JRE. This is a good reason for JSP pre-compilation in and of itself. All of the above applies only to the Sun JDK and JRE. There are alternatives, such as the IBM, JRockit, Blackdown JDKs, and the Jikes compiler. Tomcat works with all of these, and they have different license restrictions for redistributions. Of course, Tomcat 5.5 largely avoids this issue altogether. Tomcat 5.5 requires only a JRE, and bundles Eclipse's JDT compiler, which is free for redistribution. So you can bundle Tomcat 5.5 with a JRE, not pre-compile JSPs, and still be able to sell your package without violating any license or paying any royalties. Yoav Shapira http://www.yoavshapira.com 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 JRE vs JDK Issue
tools.jar is already in common/lib. How do I get Tomcat to start w/o loading the JRE? Can I just modify the catalina.bat file? Chris -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:45 AM To: Tomcat Users List Subject: RE: Tomcat JRE vs JDK Issue I have experienced the need in the past to drop tools.jar into tomcat's common/lib folder but not in 5.0.28 or 5.5. Perhaps you're right. -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:42 To: [EMAIL PROTECTED] Subject: RE: Tomcat JRE vs JDK Issue Correct me if I'm wrong. One of the things the JDK brings that the JRE does not is tools.jar which contains com.sun.tools.javac, which is needed to compile JSPs. It might be possible to use the JRE as long as you have tools.jar from the JDK somewhere in your classpath. It seems like I saw a thread related to this a while ago, although I don't know if it works. Is there a compelling reason to want to use the JRE rather than the full JDK? [EMAIL PROTECTED] 11/16/2004 7:35:02 AM Chris, JSP pages get compiled into bytecode (as Yoav just said) as they are requested. So, the server requires the SDK, including javac to do the compiling. --Dan -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 9:20 AM To: 'Tomcat Users List' Subject: RE: Tomcat JRE vs JDK Issue Feel free to explain. :) Chris -Original Message- From: Anthony E. Carlos [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:23 AM To: Tomcat Users List Subject: Re: Tomcat JRE vs JDK Issue Chris: I think TC requires the JDK (not just the JRE) so that it can compile JSPs. If this doesn't make sense, I can explain further. -Anthony Carlos On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote: does the client machine have JAVA_HOME as an environment variable? -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 15:09 To: [EMAIL PROTECTED] Subject: Tomcat JRE vs JDK Issue I'm trying to run Tomcat 5.0.28 on W2k client machine. On my machine, it runs fine, with no problems. But when I copy it over to the client machine, which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it requires the JDK. Why is this, and is there a workaround, or do I have to install the JDK? I don't remember having this issue with 4.x. Is it 5.x specific? TIA. Chris - 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;A href=http://www.qas.comwww.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] - 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 JRE vs JDK Issue
How does one precompile the JSPs? Then I should be able to use TC with just a JRE, correct? Once TC is deployed, there should not be any need for changes to it, so it's fine to precompile the JSPs. Chris -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:50 AM To: Tomcat Users List Subject: RE: Tomcat JRE vs JDK Issue Hi, One of the things the JDK brings that the JRE does not is tools.jar which contains com.sun.tools.javac, which is needed to compile JSPs. Correct. It might be possible to use the JRE as long as you have tools.jar from the JDK somewhere in your classpath. It seems like I saw a thread related to this a while ago, although I don't know if it works. It does for many cases, but not all (there are tricky classloader-related cases if using a JRE/lib/ext or sealed jar), and that's why it's not recommended now and was never officially supported. Is there a compelling reason to want to use the JRE rather than the full JDK? There are two that come to mind. One is that the JRE is smaller, lighter in footprint, and easier to install. The second is probably more significant, and it is that anyone can redistribute a JRE for commercial use, but not a JDK. The latter is a license violation. So if you're creating a shrink-wrapped product, you can't bundle the JDK with it (unless you get a special license and pay royalties to Sun), but you can the JRE. This is a good reason for JSP pre-compilation in and of itself. All of the above applies only to the Sun JDK and JRE. There are alternatives, such as the IBM, JRockit, Blackdown JDKs, and the Jikes compiler. Tomcat works with all of these, and they have different license restrictions for redistributions. Of course, Tomcat 5.5 largely avoids this issue altogether. Tomcat 5.5 requires only a JRE, and bundles Eclipse's JDT compiler, which is free for redistribution. So you can bundle Tomcat 5.5 with a JRE, not pre-compile JSPs, and still be able to sell your package without violating any license or paying any royalties. Yoav Shapira http://www.yoavshapira.com 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]
JDK Logging...
Can anyone suggest me how to write to different log files using JDK Logging.. i.e., a logger for important info, a logger for errors, loggers for systemerors, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDK Logging...
Log4j does the job. http://logging.apache.org/log4j/docs/ Viorel Dragomir . .. --- - Original Message - From: Shilpa Nalgonda To: Tomcat Users List Sent: Tuesday, November 16, 2004 17:48 Subject: JDK Logging... Can anyone suggest me how to write to different log files using JDK Logging.. i.e., a logger for important info, a logger for errors, loggers for systemerors, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat JRE vs JDK Issue
Hi, How does one precompile the JSPs? Then I should be able to use TC with RTFM at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html. a JRE, correct? Once TC is deployed, there should not be any need for changes to it, so it's fine to precompile the JSPs. That depends on your scenario. If only deploy once and ship, then yeah. But if you (or your users, or your server admin) can change JSPs after shipping the app, you still need the JDK. Tomcat supports a very wide variety of use-cases. Now that you know more than enough about JDK vs JRE you should be able to make the call given your user requirements ;) Yoav 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 JRE vs JDK Issue
Thanks for the info. It looks like I won't need the JDK after all. One last question. How do I get TC to not blow up about using a JRE? Can I just comment out the lines checking for javac.exe, or will that break other things? Chris -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:59 AM To: Tomcat Users List Subject: RE: Tomcat JRE vs JDK Issue Hi, How does one precompile the JSPs? Then I should be able to use TC with RTFM at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html. a JRE, correct? Once TC is deployed, there should not be any need for changes to it, so it's fine to precompile the JSPs. That depends on your scenario. If only deploy once and ship, then yeah. But if you (or your users, or your server admin) can change JSPs after shipping the app, you still need the JDK. Tomcat supports a very wide variety of use-cases. Now that you know more than enough about JDK vs JRE you should be able to make the call given your user requirements ;) Yoav 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 JRE vs JDK Issue
On Tue, 16 Nov 2004 10:46:38 -0500, Hubble, Christopher [EMAIL PROTECTED] wrote: How does one precompile the JSPs? Then I should be able to use TC with just a JRE, correct? Once TC is deployed, there should not be any need for changes to it, so it's fine to precompile the JSPs. Some JSP 2.0 features prevent precompilation, so, with Jasper, you cannot claim compliance without a Java compiler. So I can only recommend using TC 5.5 if you want to use a JRE. Note that the shell scripts will still complain about not having a JDK, as they have options which use JDK features. We have not decided what to do about that at the moment, but you can easily edit the script to bypass the check. -- 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 JRE vs JDK Issue
Well, I just finished changing the scripts to not worry about the JDK, and everything seems to be working okay. I'm off to do some testing. Thanks to everyone for the help. Chris -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:56 AM To: 'Tomcat Users List' Subject: RE: Tomcat JRE vs JDK Issue Thanks for the info. It looks like I won't need the JDK after all. One last question. How do I get TC to not blow up about using a JRE? Can I just comment out the lines checking for javac.exe, or will that break other things? Chris -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:59 AM To: Tomcat Users List Subject: RE: Tomcat JRE vs JDK Issue Hi, How does one precompile the JSPs? Then I should be able to use TC with RTFM at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html. a JRE, correct? Once TC is deployed, there should not be any need for changes to it, so it's fine to precompile the JSPs. That depends on your scenario. If only deploy once and ship, then yeah. But if you (or your users, or your server admin) can change JSPs after shipping the app, you still need the JDK. Tomcat supports a very wide variety of use-cases. Now that you know more than enough about JDK vs JRE you should be able to make the call given your user requirements ;) Yoav 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDK Logging...
Thanks, but we are using only JDK1.4 logging and want to use that..can u suggest.. -Original Message- From: Viorel Dragomir [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:58 AM To: Tomcat Users List Subject: Re: JDK Logging... Log4j does the job. http://logging.apache.org/log4j/docs/ Viorel Dragomir . .. --- - Original Message - From: Shilpa Nalgonda To: Tomcat Users List Sent: Tuesday, November 16, 2004 17:48 Subject: JDK Logging... Can anyone suggest me how to write to different log files using JDK Logging.. i.e., a logger for important info, a logger for errors, loggers for systemerors, - 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: JDK Logging...
Hi, I can suggest that this list is a tomcat-user support list, so unless your issue is specific to Tomcat please don't post it here ;) Seek other lists for JDK logging help please. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 11:05 AM To: Tomcat Users List Subject: RE: JDK Logging... Thanks, but we are using only JDK1.4 logging and want to use that..can u suggest.. -Original Message- From: Viorel Dragomir [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 10:58 AM To: Tomcat Users List Subject: Re: JDK Logging... Log4j does the job. http://logging.apache.org/log4j/docs/ Viorel Dragomir . .. --- - Original Message - From: Shilpa Nalgonda To: Tomcat Users List Sent: Tuesday, November 16, 2004 17:48 Subject: JDK Logging... Can anyone suggest me how to write to different log files using JDK Logging.. i.e., a logger for important info, a logger for errors, loggers for systemerors, - 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]
How might I read docBase into my application
Can anyone tell me how I can obtain the value of docBase from my application's (JSP) context? I would like to use it to help me form hrefs for my pages -- I would just use relative pathing except I am trying to manage which pages use HTTPS and which use HTTP and I would rather not hard-code them. It seems not to be in the application attributes or InitParameters. Also not in the pageContext attributes nor the config InitParams. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How might I read docBase into my application
Hi, Can anyone tell me how I can obtain the value of docBase from my application's (JSP) context? I would like to use it to help me form hrefs for my pages -- I would just use relative pathing except I am trying to manage which pages use HTTPS and which use HTTP and I would rather not hard-code them. It seems not to be in the application attributes or InitParameters. Also not in the pageContext attributes nor the config InitParams. It's not omitted by accident, you know ;) Use request.getContextPath() to get it when creating URLs. Yoav Shapira http://www.yoavshapira.com 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: How might I read docBase into my application
application.getRealPath(/) This should return the full filesystem path to the root of your current web application (e.g. context). I believe this should be the value represented by docBase in your context config. [EMAIL PROTECTED] 11/16/2004 8:35:55 AM Can anyone tell me how I can obtain the value of docBase from my application's (JSP) context? I would like to use it to help me form hrefs for my pages -- I would just use relative pathing except I am trying to manage which pages use HTTPS and which use HTTP and I would rather not hard-code them. It seems not to be in the application attributes or InitParameters. Also not in the pageContext attributes nor the config InitParams. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How might I read docBase into my application
Hi, application.getRealPath(/) This should return the full filesystem path to the root of your current web application (e.g. context). I believe this should be the value represented by docBase in your context config. Please beware of using that approach: getRealPath() returns null (for any argument) when running from a packed WAR. So if you use this approach, which is not guaranteed to be portable, at least make sure your code correctly handles the null return case. Yoav 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]
Where can I find more info?
Where can I find documentation on how to configure mod_jk2 property files for Tomcat 5.5 and Apache 2.0.52? workers2.properties jk2.properties Thanks, Troy -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How might I read docBase into my application
Thank you both! I think that for my purposes -- URL formation -- request.getContextPath() will work best. -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 8:39 AM To: [EMAIL PROTECTED]; Ken Sims Subject: Re: How might I read docBase into my application application.getRealPath(/) This should return the full filesystem path to the root of your current web application (e.g. context). I believe this should be the value represented by docBase in your context config. [EMAIL PROTECTED] 11/16/2004 8:35:55 AM Can anyone tell me how I can obtain the value of docBase from my application's (JSP) context? I would like to use it to help me form hrefs for my pages -- I would just use relative pathing except I am trying to manage which pages use HTTPS and which use HTTP and I would rather not hard-code them. It seems not to be in the application attributes or InitParameters. Also not in the pageContext attributes nor the config InitParams. - 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: How might I read docBase into my application
Thank you. That is very good to know. [EMAIL PROTECTED] 11/16/2004 8:47:49 AM Hi, application.getRealPath(/) This should return the full filesystem path to the root of your current web application (e.g. context). I believe this should be the value represented by docBase in your context config. Please beware of using that approach: getRealPath() returns null (for any argument) when running from a packed WAR. So if you use this approach, which is not guaranteed to be portable, at least make sure your code correctly handles the null return case. Yoav 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: Where can I find more info?
Google for mod_jk2 or Tomcat+Apache+mod_jk2 http://www.cymulacrum.net/writings/tomcat5/book1.html there are several good ones and many articles and hints. From: Troy Simpson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Where can I find more info? Date: Tue, 16 Nov 2004 11:51:42 -0500 Where can I find documentation on how to configure mod_jk2 property files for Tomcat 5.5 and Apache 2.0.52? workers2.properties jk2.properties Thanks, Troy -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN® Calendar keeps you organized and takes the effort out of scheduling get-togethers. http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat with SOAP
hi, I tryed with Apache 2.0.52 SOAP 2.3.1 Tomcat 3.3.2 It seem that the server is responding with test/html instead of text/xml but i don't know how to repair this. the rpcrouter and messagerouter servlet are listening but when I try the Calculator example I get an error: /** Exception in thread main [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response con tent type quot;text/html; charset=ISO-8859-1quot;, must be: quot;text/xmlquot;. Response was: lt;headgt;lt;titlegt;Error: 500lt;/titlegt;lt;/headgt; lt;bodygt; lt;h1gt;Error: 500lt;/h1gt; lt;h2gt;Localizaci¾n: /soap/servlet/rpcrouterlt;/h2gt;lt;bgt;Error interno del Servlet:lt;/b gt;lt;brgt; lt;pregt;java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:282) at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:575) at java.lang.ClassLoader.loadClass(ClassLoader.java:282) at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:575) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at org.apache.tomcat.util.depend.DependClassLoader12Impl.loadClassInternal1(Dep en dClassLoade r12.java:193) at org.apache.tomcat.util.depend.DependClassLoader12Impl$1.run(DependClassLoade r1 2.java:78) at java.security.AccessController.doPrivileged(Native Method) at org.apache.tomcat.util.depend.DependClassLoader12Impl.loadClass(DependClassL oa der12.java: 76) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at org.apache.tomcat.facade.ServletHandler.getServlet(ServletHandler.java:307) at org.apache.tomcat.facade.ServletHandler.preInit(ServletHandler.java:378) at org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:192) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:423) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:87 4) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:790) at org.apache.coyote.tomcat3.Tomcat3Adapter.service(Tomcat3Adapter.java:64) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ct ion(Http11P rotocol.java:702) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a: 644) at java.lang.Thread.run(Thread.java:534) lt;/pregt; lt;/bodygt; ] at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208) at org.apache.soap.rpc.Call.invoke(Call.java:255) at org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien t. java:129) at org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java :1 42) at org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2 30 ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NoSuchElementException in cluster
Sorry, I'm using Tomcat 5.0.28. Somebody upgraded the boxes. On Tue Nov 16 16:43:29 CET 2004 Ronald Klop [EMAIL PROTECTED] wrote: Hello, I'm seeing these exceptions on one of my 2 nodes. The memory cosumption of this server is now growing for a couple of hours, but I cannot tell if that is related with this. I removed the server from the worker list of mod_jk so it is still in the cluster, but not receiving any requests anymore. Any ideas about the exceptions. Are they harmless? Can they be related to a constantly growing amount of in-use memory? I'm running Tomcat 5.0.25 on Linux 2.4 and 2.6 with JDK 1.4.2. It runs very well most of the time. Ronald. SEVERE: Unable to perform replication request. java.util.NoSuchElementException at java.util.LinkedList.remove(LinkedList.java:579) at java.util.LinkedList.removeFirst(LinkedList.java:131) at org.apache.catalina.cluster.session.DeltaRequest.reset(DeltaRequest.java:153) at org.apache.catalina.cluster.session.DeltaSession.resetDeltaRequest(DeltaSession.java:938) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(DeltaManager.java:786) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) SEVERE: Unable to receive message through TCP channel java.util.NoSuchElementException at java.util.LinkedList.remove(LinkedList.java:579) at java.util.LinkedList.removeFirst(LinkedList.java:131) at org.apache.catalina.cluster.session.DeltaRequest.reset(DeltaRequest.java:153) at org.apache.catalina.cluster.session.DeltaRequest.readExternal(DeltaRequest.java:184) at org.apache.catalina.cluster.session.DeltaManager.loadDeltaRequest(DeltaManager.java:385) at org.apache.catalina.cluster.session.DeltaManager.messageReceived(DeltaManager.java:898) at org.apache.catalina.cluster.session.DeltaManager.messageDataReceived(DeltaManager.java:762) at org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleTcpCluster.java:576) at org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:129) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:67)
Re: WebDAV-Servlet with Contexts different from FileDirContext
OK, talking to myself as it seems ;) Accept my apologies if no one is interested, but bringing this even further wouldn't it be an option to have the servlet seperated from Tomcat and letting it implement against an API a little bit richter then directory context? Maybe in commons? Such an API could accept settings of properties and even locking. Compared to Slide I really like the servlet as it is pretty obvious and lean in code. I am pretty sure quite some people would be interested in such a solution and would contribute to its compliance to the spec and compatibility to diverse clients. Would that be an option? Oliver On Tue, 16 Nov 2004 00:10:56 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: Looking into this further, couldn't proppatch be implemented properly? I know the file dir context does not support setting of attributes, but there are other dir contexts imaginable that do, right? Oliver On Mon, 15 Nov 2004 02:23:49 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: Folks, I am just reviewing Tomcat's WebDAV servlet and have even run Slide's WebDAV testsuite against it - many tests work :) I really like the brevity! I understand the default context used is FileDirContext, right? I am no Tomcat expert, so maybe this is a stupid question, but is it actually possible to use a different context possibly accessing a system in a more complicated way? Has anybody tried this already? Thanks in advance, Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem accessing datasource in 5.5.4 application
Actually, your log was pretty nice. I didn't know about that ROOT issue thanks. It turned out that I had the following in my ispmanager.xml file: Context docBase=ispmanager path= Realm className=org.apache.catalina.realm.DataSourceRealm dataSourceName=data/ispmanagerpg debug=99 roleNameCol=Rolename userCredCol=Password userNameCol=Username userRoleTable=Account_Roles userTable=Account/ Resource auth=Container description=IspManager database name=data/ispmanagerpg type=javax.sql.DataSource/ ResourceLink global=data/ispmanagerpg name=data/ispmanagerpg type=javax.sql.DataSource/ /Context That worked fine in 5.0.x. Not in 5.5.4, so I removed the 2 Resource* elements and it still didn't work. What finally worked was ONLY removing the Resource element. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 6:09 AM To: Tomcat Users List; Remy Maucherat Subject: RE: problem accessing datasource in 5.5.4 application this is all in my blog .. http://www.adcworks.com/blog/index.php/archives/2004/11/14/getting-up-and-ru nning-with-tomcat-55 -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: 16 November 2004 11:06 To: Tomcat Users List Subject: Re: problem accessing datasource in 5.5.4 application On Tue, 16 Nov 2004 02:54:23 -0500, Scott Mueller [EMAIL PROTECTED] wrote: Someone please help me. The same code that was working fine in tomcat 5.0.19 does not work anymore in 5.5.4 for accessing the database. I don't see how it could have worked without a ResourceLink element for your context. You can define the ResourceLink globally in conf/context.xml if all your contexts will need it. -- 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] 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]
cannot deploy application through ant task..
i have a ant script which has install target. this install target should deploy my application , but is not happening, i have the below error in log file. any advice? java.lang.IllegalArgumentException: Document base C:\Program Files\Apache Group\Tomcat 4.1\webapps\rpcoemapi does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:19 3) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java :3349) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3479) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) 2004-11-16 13:06:02 StandardContext[/rpcoemapi]: Configuring non-privileged default Loader 2004-11-16 13:06:02 StandardContext[/rpcoemapi]: Configuring default Manager 2004-11-16 13:06:02 StandardContext[/rpcoemapi]: Processing standard container startup 2004-11-16 13:06:02 StandardContext[/rpcoemapi]: Context startup failed due to previous errors 2004-11-16 13:06:02 StandardContext[/rpcoemapi]: Exception during cleanup after start failed LifecycleException: Container StandardContext[/rpcoemapi] has not been started at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3663) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3641) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 9:31 AM To: Tomcat Users List Subject: RE: Tomcat 5.5.4 Upgrade Blog Hi, It's a good blog. I didn't see a PermaLink option: if there is one, I'd like to add the URL of this blog posting to the Tomcat wiki page. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Sunday, November 14, 2004 4:05 PM To: Tomcat Users List; Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Tomcat 5.5.4 Upgrade Blog Hi List, Based on my upgrade to Tomcat 5.5.4 late last week and the few config issues I came across, I wrote a Blog that can be found on my web site here www.adcworks.com/blog http://www.adcworks.com/blog It covers IIS authentication (thanks Bill), logging, basic JNDI data source config. It won't be useful for everyone, but hopefully for some of you. Everything I have written works. Feel free to comment on this Blog from the page or add additional information relating to it. Best regards, Allistair PS: Remy/Yoav, if you could take a look at this Blog and let me know if you think any of it is useful for the Tomcat pages, I can covert it appropriately. 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
RE: problem accessing datasource in 5.5.4 application
Hi Remy, Yes, what you said worked thanks! I had a ResourceLink previously, but I ALSO had a Resource element without the attributes in my context.xml file. That didn't work, so I removed both Resource* elements from my context.xml. That didn't work either. Removing JUST the Resource element worked: Resource auth=Container description=IspManager database name=data/ispmanagerpg type=javax.sql.DataSource/ ResourceLink global=data/ispmanagerpg name=data/ispmanagerpg type=javax.sql.DataSource/ /Context That worked fine in 5.0.x. Not in 5.5.4, so I removed the 2 Resource* elements and it still didn't work. What finally worked was ONLY removing the Resource element. -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 6:06 AM To: Tomcat Users List Subject: Re: problem accessing datasource in 5.5.4 application On Tue, 16 Nov 2004 02:54:23 -0500, Scott Mueller [EMAIL PROTECTED] wrote: Someone please help me. The same code that was working fine in tomcat 5.0.19 does not work anymore in 5.5.4 for accessing the database. I don't see how it could have worked without a ResourceLink element for your context. You can define the ResourceLink globally in conf/context.xml if all your contexts will need it. -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where can I find more info?
Is tomcat 5.0 and 5.5 the samething? Didier McGillis wrote: Google for mod_jk2 or Tomcat+Apache+mod_jk2 http://www.cymulacrum.net/writings/tomcat5/book1.html there are several good ones and many articles and hints. From: Troy Simpson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Where can I find more info? Date: Tue, 16 Nov 2004 11:51:42 -0500 Where can I find documentation on how to configure mod_jk2 property files for Tomcat 5.5 and Apache 2.0.52? workers2.properties jk2.properties Thanks, Troy -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN® Calendar keeps you organized and takes the effort out of scheduling get-togethers. http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in
The pdf is at a relative path from the JSP that spawns the active-x. The link would end with .pdf, but tomcat appends charset=ISO-8859-1 to the content header. Thanks Aman Raheja Phillip Qin wrote: Where do you generate the pdf? In servlet? The link has to be end with .pdf (but before any query string) in order for acrobat reader active-x to kick in. -Original Message- From: Aman Raheja [mailto:[EMAIL PROTECTED] Sent: November 16, 2004 9:27 AM To: Tomcat Users List Subject: Re: Problem displaying PDF in IE6 from Tomcat using the ActiveX R eader Plug-in We did set the Security level to low on IE. More suggestions? Thanks Aman Raheja Phillip Qin wrote: There are security and privacy settings in IE affect PDF generation. BTW, ensurethe link before query string ends with .pdf -Original Message- From: Aman Raheja [mailto:[EMAIL PROTECTED] Sent: November 15, 2004 1:40 PM To: [EMAIL PROTECTED] Subject: Problem displaying PDF in IE6 from Tomcat using the ActiveX Reader Plug-in Problem: When we try to display a dynamically generated PDF file, IE launches the Adobe Acrobat Reader Plugin, but then just a blank page is displayed and the IE status says Done. No error message is displayed. No error is generated in the System Event logs. The issue seems to be that every request to request to Tomcat for the PDF send back the request with charset=ISO-8859-1 in the Content-type Header. We want to figure out a way to verify that this is the issue. One way might be to somehow get Tomcat to not append the Character Set in the header. Is there a way to do this? Environment: - Client: Windows XP or Windows 2000 - Server: Tomcat 4.0.6/JDK 1.3.1 running on Solaris and Windows XP (problem exists on both) - Adobe Reader 6.0.1 (occurs with 6.0.2 patch as well) - IE 6.0.2800 Additional Information: 1) Our URLs are formed like this: http://app.ourserver.com/appname/docViewAGN.jsp?RepoType=CID=18698Doc Name= Germanyentry=DocType=pdfcategory=Research 2) Our app is issuing GETs, not POSTs. 3) This is happening on multiple PCs. One thing we noticed is this may be somewhat Reader version dependent -- we have a few machines left with Reader 5 installed, and they do not seem to have the problem. 4) When the problem occurs, if you then launch Reader manually, the document that didn't display in the IE window is automatically displayed in the full client Reader app.!!! 5) If we set Reader to not open up PDFs in browser windows, the Reader window launches and opens the PDF file just fine. [This is a client solution, and not practical to implement across hundreds of PCs unfortunately.] 6) We actually have one PC with Windows XP, Reader 6.0.1, and IE 6.0.2 that works. Could this problem be caused by some specific Windows or IE patch? 7) We've scoured the forums and tried several things including setting all security levels to Low in IE, adding a dummy parm at the end of the URL to fool IE into launching the PDF correctly (e.g. dummy=file.pdf), and various header settings to force caching on to 30 seconds, etc. None of this had any effect. 8) Also, we saw some references to problems caused by Tomcat 4.0.6 adding charset=ISO-8859-1 to the Content-Type header in the response. How can we override this to see if that's the problem? Thanks Aman Raheja - 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] !DSPAM:419a0e4b161771045017228! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Content-disposition for file downlaod with Mozilla/Firefox
David Wall wrote: Content-Disposition: attachment;filename=Some Agreement 2004-11-15.doc This is the correct fix: format the header as per RFC 2231. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDBC transactions using MySQL / DBCP in Tomcat 5.0.28
Hi all! In my webapp I do two db inserts into two different tables. If the second one fails I want to rollback the first one. My code is something like the following: Connection con = gotten from jndi DataSource DBBean db = new DBBean(con); try { con.setAutoCommit(false); Object o = db.getSomething(); Object o2 = db.getSomethingElse(); db.doInsert1(params); db.doInsert2(params); con.commit(); } catch (SQLException sqle) { con.rollback(); throw sqle; } finally { if (con != null) { con.close(); } } I thought that this should do the trick, but if the second insert fails the data inserted in the first insert are still there. I am using MySQL 4.0.21-7 with InnoDB and have tested that I can use transactions with the MySQL client. Anyone got any tips? Regards Trond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I can't get the admin app tree navigation work in Tomcat 5.5.4 on JDK 5.0 in WinXP. Any ideas?
Hello. I've installed the JDK 5.0 and Tomcat 5.5.4 executable for Windows on a Windows XP box (with latest service packs). I then downloaded and unzipped the admin app and copied it to my installation directory. The tomcat manager and one of the apps I migrated work perfectly, so it appears the server is generally healthy. However, I cannot get anywhere in the admin app because the navigation tree is not working. I cannot expand any nodes. Each link only has one parameter, which is always empty (?tree=) I tried connecting from IE 6.0 and Firefox 1.0 on 3 different computers, using 3 different JDKs, suggesting the error is server-side. Does anyone have any suggestions to troubleshoot this issue? Thanks, Steven Boscarine Countrywide Financial Corporation.
Re: JDBC transactions using MySQL / DBCP in Tomcat 5.0.28
Prior to your first insert, do you need to execute an SQL Start transaction? Otherwise, it sounds like autocommit will revert to the default start of true. http://dev.mysql.com/doc/mysql/en/COMMIT.html [EMAIL PROTECTED] 11/16/2004 12:14:13 PM Hi all! In my webapp I do two db inserts into two different tables. If the second one fails I want to rollback the first one. My code is something like the following: Connection con = gotten from jndi DataSource DBBean db = new DBBean(con); try { con.setAutoCommit(false); Object o = db.getSomething(); Object o2 = db.getSomethingElse(); db.doInsert1(params); db.doInsert2(params); con.commit(); } catch (SQLException sqle) { con.rollback(); throw sqle; } finally { if (con != null) { con.close(); } } I thought that this should do the trick, but if the second insert fails the data inserted in the first insert are still there. I am using MySQL 4.0.21-7 with InnoDB and have tested that I can use transactions with the MySQL client. Anyone got any tips? Regards Trond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC transactions using MySQL / DBCP in Tomcat 5.0.28
Shouldn't jdbc 3.0 do the trick? -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: November 16, 2004 3:35 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: JDBC transactions using MySQL / DBCP in Tomcat 5.0.28 Prior to your first insert, do you need to execute an SQL Start transaction? Otherwise, it sounds like autocommit will revert to the default start of true. http://dev.mysql.com/doc/mysql/en/COMMIT.html [EMAIL PROTECTED] 11/16/2004 12:14:13 PM Hi all! In my webapp I do two db inserts into two different tables. If the second one fails I want to rollback the first one. My code is something like the following: Connection con = gotten from jndi DataSource DBBean db = new DBBean(con); try { con.setAutoCommit(false); Object o = db.getSomething(); Object o2 = db.getSomethingElse(); db.doInsert1(params); db.doInsert2(params); con.commit(); } catch (SQLException sqle) { con.rollback(); throw sqle; } finally { if (con != null) { con.close(); } } I thought that this should do the trick, but if the second insert fails the data inserted in the first insert are still there. I am using MySQL 4.0.21-7 with InnoDB and have tested that I can use transactions with the MySQL client. Anyone got any tips? Regards Trond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:419a64b9202861523128358!
5.0.28 Service Shutdown problem on Windows
I just upgraded from 4.1.30 to 5.0.28 on two windows machines: one XP and one W2K. Both of them are having the same problem: When I stop the installed Tomcat service, the destroy() method on my servlets does not appear to get called. I do not get my logging information from my destroy methods, and file handles that should get closed are left open. The last message in my Tomcat stdout.log is: INFO: Pausing Coyote HTTP/1.1 on http-8081 When I run Tomcat standalone (using bin/startup and bin/shutdown), this message is then followed by additional logging information and the destroy() method of my service gets called. When I run bin/shutdown, it returns before the full Tomcat shutdown is completed. In fact, to my untrained eye it appears to return shortly after the Pausing log message. So it appears that when running Tomcat as a service, the service is getting halted when shutdown finishes - which has Paused the service. But the remainder of the shutdown process is not invoked. I've used the Windows installer, and made only four modifications to the installed service: + I replaced tomcat-users.xml + I changed the unpackWARS from true to false + I installed my webapp + I changed the service to run under a specific user account I've exhausted my google skills searching for answers, but to no avail. I tried to search bugzilla but got SQL errors (is that a known problem? I followed the instructions on the error page and sent an email with the error message to [EMAIL PROTECTED], which seems too generic for that type of error message). -- PC Paul Christmann Prior Artisans, LLC mailto:[EMAIL PROTECTED] 504-587-9072 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where can I find more info?
Tomcat 5.0 and 5.5 are the same thing in terms of the product line, i.e Tomcat as a Servlet Container. Clearly 5.5 is the latest version which internally I believe is a fairly large refactoring of how things were in 5.0 series. In terms of what you will get from 5.0 and 5.5 I think you pretty much get the same functionality for web applications, i.e they both support the latest Servlet/JSP APIs. Always a good idea to stick with the latest stable release I think which is 5.5.4. JK2 connectivity is all over the web, also at the Tomcat WIKI ... http://wiki.apache.org/jakarta-tomcat/UsefulLinks Cheers, Allistair. -Original Message- From: Troy Simpson [mailto:[EMAIL PROTECTED] Sent: Tue 16/11/2004 19:03 To: Tomcat Users List Cc: Subject: Re: Where can I find more info? Is tomcat 5.0 and 5.5 the samething? Didier McGillis wrote: Google for mod_jk2 or Tomcat+Apache+mod_jk2 http://www.cymulacrum.net/writings/tomcat5/book1.html there are several good ones and many articles and hints. From: Troy Simpson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Where can I find more info? Date: Tue, 16 Nov 2004 11:51:42 -0500 Where can I find documentation on how to configure mod_jk2 property files for Tomcat 5.5 and Apache 2.0.52? workers2.properties jk2.properties Thanks, Troy -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Calendar keeps you organized and takes the effort out of scheduling get-togethers. http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN Premium right now and get the first two months FREE*. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 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]
RE: 5.0.28 Service Shutdown problem on Windows
Hi, Bugzilla is having a tough day: its admins ([EMAIL PROTECTED]) are aware of the problem and working on it. There's an open issue with what you describe: destroy not being called when Tomcat is run as a Windows service for Tomcat 5.0.28. The issue was first reported in an early 5.0 version, fixed for 5.0.16 or 5.0.19, and now apparently has re-appeared. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Paul Christmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 3:53 PM To: [EMAIL PROTECTED] Subject: 5.0.28 Service Shutdown problem on Windows I just upgraded from 4.1.30 to 5.0.28 on two windows machines: one XP and one W2K. Both of them are having the same problem: When I stop the installed Tomcat service, the destroy() method on my servlets does not appear to get called. I do not get my logging information from my destroy methods, and file handles that should get closed are left open. The last message in my Tomcat stdout.log is: INFO: Pausing Coyote HTTP/1.1 on http-8081 When I run Tomcat standalone (using bin/startup and bin/shutdown), this message is then followed by additional logging information and the destroy() method of my service gets called. When I run bin/shutdown, it returns before the full Tomcat shutdown is completed. In fact, to my untrained eye it appears to return shortly after the Pausing log message. So it appears that when running Tomcat as a service, the service is getting halted when shutdown finishes - which has Paused the service. But the remainder of the shutdown process is not invoked. I've used the Windows installer, and made only four modifications to the installed service: + I replaced tomcat-users.xml + I changed the unpackWARS from true to false + I installed my webapp + I changed the service to run under a specific user account I've exhausted my google skills searching for answers, but to no avail. I tried to search bugzilla but got SQL errors (is that a known problem? I followed the instructions on the error page and sent an email with the error message to [EMAIL PROTECTED], which seems too generic for that type of error message). -- PC Paul Christmann Prior Artisans, LLC mailto:[EMAIL PROTECTED] 504-587-9072 - 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: 5.0.28 Service Shutdown problem on Windows
OK, many thanks. I'll check back with bugzilla later. Shapira, Yoav wrote: Hi, Bugzilla is having a tough day: its admins ([EMAIL PROTECTED]) are aware of the problem and working on it. There's an open issue with what you describe: destroy not being called when Tomcat is run as a Windows service for Tomcat 5.0.28. The issue was first reported in an early 5.0 version, fixed for 5.0.16 or 5.0.19, and now apparently has re-appeared. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Paul Christmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 3:53 PM To: [EMAIL PROTECTED] Subject: 5.0.28 Service Shutdown problem on Windows I just upgraded from 4.1.30 to 5.0.28 on two windows machines: one XP and one W2K. Both of them are having the same problem: When I stop the installed Tomcat service, the destroy() method on my servlets does not appear to get called. I do not get my logging information from my destroy methods, and file handles that should get closed are left open. The last message in my Tomcat stdout.log is: INFO: Pausing Coyote HTTP/1.1 on http-8081 When I run Tomcat standalone (using bin/startup and bin/shutdown), this message is then followed by additional logging information and the destroy() method of my service gets called. When I run bin/shutdown, it returns before the full Tomcat shutdown is completed. In fact, to my untrained eye it appears to return shortly after the Pausing log message. So it appears that when running Tomcat as a service, the service is getting halted when shutdown finishes - which has Paused the service. But the remainder of the shutdown process is not invoked. I've used the Windows installer, and made only four modifications to the installed service: + I replaced tomcat-users.xml + I changed the unpackWARS from true to false + I installed my webapp + I changed the service to run under a specific user account I've exhausted my google skills searching for answers, but to no avail. I tried to search bugzilla but got SQL errors (is that a known problem? I followed the instructions on the error page and sent an email with the error message to [EMAIL PROTECTED], which seems too generic for that type of error message). -- PC Paul Christmann Prior Artisans, LLC mailto:[EMAIL PROTECTED] 504-587-9072 - 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] -- PC Paul Christmann Prior Artisans, LLC mailto:[EMAIL PROTECTED] 504-587-9072 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to configure jk2 property files...
This appears to be a common problem in the mail archives. I have having this same problem and I have not found my answer yet. I have installed the following: 1. Apache 2.0.52 2. TomCat 5.5.4 3. jk2 Connector. Apache and Tomcat runs very well independently, but I can not get them to work together. Here is what my workers.properties file looks like: - # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/global/lunadg/d01/app/apache2/2.0.52/logs/shm.file size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:unixsocket] file=/global/lunadg/d01/tomcat/5.5.4/work/jk2.socket debug=0 # define the worker [ajp13:unixsocket] channel=channel.un:unixsocket # Announce a status worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/jsp-examples/*] worker=ajp13:unixsocket # Uri mapping for MyFirst [uri:/MyFirst/*] Here is what my jk2.properties file looks like: --- handler.list=apr,request,channelUnix channelSocket.port=8009 channelUnix.file=/global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket serverRoot=/global/lunadg/d01/app/apache2/2.0.52 apr.NativeSo=/global/lunadg/d01/app/apache2/2.0.52/modules/jkjni.so --- This is what I get in my Apache error_log file: - [Tue Nov 16 16:08:11 2004] [notice] Digest: generating secret for digest authentication ... [Tue Nov 16 16:08:11 2004] [notice] Digest: done [Tue Nov 16 16:08:12 2004] [error] mod_jk child init 1 0 [Tue Nov 16 16:08:12 2004] [notice] Apache/2.0.52 (Unix) mod_jk2/2.0.2 configured -- resuming normal operations [Tue Nov 16 16:08:34 2004] [error] channelUn.connect() connect failed 2 No such file or directory [Tue Nov 16 16:08:34 2004] [error] ajp13.connect() failed ajp13:unixsocket [Tue Nov 16 16:08:34 2004] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory [Tue Nov 16 16:08:34 2004] [error] ajp13.service() Error forwarding ajp13:unixsocket 1 1 [Tue Nov 16 16:08:34 2004] [error] mod_jk.handler() Error connecting to tomcat 12 [Tue Nov 16 16:08:37 2004] [error] channelUn.connect() connect failed 2 No such file or directory [Tue Nov 16 16:08:37 2004] [error] ajp13.connect() failed ajp13:unixsocket [Tue Nov 16 16:08:37 2004] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory [Tue Nov 16 16:08:37 2004] [error] ajp13.service() Error forwarding ajp13:unixsocket 1 1 [Tue Nov 16 16:08:37 2004] [error] mod_jk.handler() Error connecting to tomcat 12 - And this is what I get my Tomcat catalina.out log: --- Nov 16, 2004 4:06:18 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8666 Nov 16, 2004 4:06:18 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2932 ms Nov 16, 2004 4:06:19 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Nov 16, 2004 4:06:19 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.4 Nov 16, 2004 4:06:19 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Nov 16, 2004 4:06:23 PM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] Nov 16, 2004 4:06:24 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Nov 16, 2004 4:06:24 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Nov 16, 2004 4:06:24 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Nov 16, 2004 4:06:24 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Nov 16, 2004 4:06:25 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8666 Nov 16, 2004 4:06:26 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Nov 16, 2004 4:06:26 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/82 config=null Nov 16, 2004 4:06:26 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 8519 ms Nov
Re: How to configure jk2 property files...
Troy, When they are running does /global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket exist? Why not just use a TCP socket as it allows for easier separation later (i.e. just change IP address). PJ Troy Simpson wrote: This appears to be a common problem in the mail archives. I have having this same problem and I have not found my answer yet. I have installed the following: 1. Apache 2.0.52 2. TomCat 5.5.4 3. jk2 Connector. Apache and Tomcat runs very well independently, but I can not get them to work together. Here is what my workers.properties file looks like: - # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/global/lunadg/d01/app/apache2/2.0.52/logs/shm.file size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:unixsocket] file=/global/lunadg/d01/tomcat/5.5.4/work/jk2.socket debug=0 # define the worker [ajp13:unixsocket] channel=channel.un:unixsocket # Announce a status worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/jsp-examples/*] worker=ajp13:unixsocket # Uri mapping for MyFirst [uri:/MyFirst/*] Here is what my jk2.properties file looks like: --- handler.list=apr,request,channelUnix channelSocket.port=8009 channelUnix.file=/global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket serverRoot=/global/lunadg/d01/app/apache2/2.0.52 apr.NativeSo=/global/lunadg/d01/app/apache2/2.0.52/modules/jkjni.so --- This is what I get in my Apache error_log file: - [Tue Nov 16 16:08:11 2004] [notice] Digest: generating secret for digest authentication ... [Tue Nov 16 16:08:11 2004] [notice] Digest: done [Tue Nov 16 16:08:12 2004] [error] mod_jk child init 1 0 [Tue Nov 16 16:08:12 2004] [notice] Apache/2.0.52 (Unix) mod_jk2/2.0.2 configured -- resuming normal operations [Tue Nov 16 16:08:34 2004] [error] channelUn.connect() connect failed 2 No such file or directory [Tue Nov 16 16:08:34 2004] [error] ajp13.connect() failed ajp13:unixsocket [Tue Nov 16 16:08:34 2004] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory [Tue Nov 16 16:08:34 2004] [error] ajp13.service() Error forwarding ajp13:unixsocket 1 1 [Tue Nov 16 16:08:34 2004] [error] mod_jk.handler() Error connecting to tomcat 12 [Tue Nov 16 16:08:37 2004] [error] channelUn.connect() connect failed 2 No such file or directory [Tue Nov 16 16:08:37 2004] [error] ajp13.connect() failed ajp13:unixsocket [Tue Nov 16 16:08:37 2004] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory [Tue Nov 16 16:08:37 2004] [error] ajp13.service() Error forwarding ajp13:unixsocket 1 1 [Tue Nov 16 16:08:37 2004] [error] mod_jk.handler() Error connecting to tomcat 12 - And this is what I get my Tomcat catalina.out log: --- Nov 16, 2004 4:06:18 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8666 Nov 16, 2004 4:06:18 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2932 ms Nov 16, 2004 4:06:19 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Nov 16, 2004 4:06:19 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.4 Nov 16, 2004 4:06:19 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Nov 16, 2004 4:06:23 PM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] Nov 16, 2004 4:06:24 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Nov 16, 2004 4:06:24 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Nov 16, 2004 4:06:24 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Nov 16, 2004 4:06:24 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Nov 16, 2004 4:06:25 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8666 Nov 16, 2004 4:06:26 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening
Database Pooling
I am developing a mid-sized application, which will use JSP Model 2 Architecture. Currently I have a class that does Database Pooling, but I am curious about some threads I see time to time. I have noticed that some developers on this list refer to Tomcats Database Pooling. It looks like there are some hooks into the deployment file. So I guess my question is as follows. does Tomcat offer this type of pooling? and if so, is it good, and is it portable? Links, references would be great. Thanks, Scott
Re: How to configure jk2 property files...
PJ, When they are running does /global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket exist? I does NOT apear that /global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket does exist. Why not just use a TCP socket as it allows for easier separation later (i.e. just change IP address). At this point, it really does not matter to me. I just want to figure out how to make it work. I would just presume that a UnixSocket would be faster. Additionally, I wish I could understand the configuration and property files. Thanks, Troy Peter Johnson wrote: Troy, When they are running does /global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket exist? Why not just use a TCP socket as it allows for easier separation later (i.e. just change IP address). PJ Troy Simpson wrote: This appears to be a common problem in the mail archives. I have having this same problem and I have not found my answer yet. I have installed the following: 1. Apache 2.0.52 2. TomCat 5.5.4 3. jk2 Connector. Apache and Tomcat runs very well independently, but I can not get them to work together. Here is what my workers.properties file looks like: - # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/global/lunadg/d01/app/apache2/2.0.52/logs/shm.file size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:unixsocket] file=/global/lunadg/d01/tomcat/5.5.4/work/jk2.socket debug=0 # define the worker [ajp13:unixsocket] channel=channel.un:unixsocket # Announce a status worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/jsp-examples/*] worker=ajp13:unixsocket # Uri mapping for MyFirst [uri:/MyFirst/*] Here is what my jk2.properties file looks like: --- handler.list=apr,request,channelUnix channelSocket.port=8009 channelUnix.file=/global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket serverRoot=/global/lunadg/d01/app/apache2/2.0.52 apr.NativeSo=/global/lunadg/d01/app/apache2/2.0.52/modules/jkjni.so --- This is what I get in my Apache error_log file: - [Tue Nov 16 16:08:11 2004] [notice] Digest: generating secret for digest authentication ... [Tue Nov 16 16:08:11 2004] [notice] Digest: done [Tue Nov 16 16:08:12 2004] [error] mod_jk child init 1 0 [Tue Nov 16 16:08:12 2004] [notice] Apache/2.0.52 (Unix) mod_jk2/2.0.2 configured -- resuming normal operations [Tue Nov 16 16:08:34 2004] [error] channelUn.connect() connect failed 2 No such file or directory [Tue Nov 16 16:08:34 2004] [error] ajp13.connect() failed ajp13:unixsocket [Tue Nov 16 16:08:34 2004] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory [Tue Nov 16 16:08:34 2004] [error] ajp13.service() Error forwarding ajp13:unixsocket 1 1 [Tue Nov 16 16:08:34 2004] [error] mod_jk.handler() Error connecting to tomcat 12 [Tue Nov 16 16:08:37 2004] [error] channelUn.connect() connect failed 2 No such file or directory [Tue Nov 16 16:08:37 2004] [error] ajp13.connect() failed ajp13:unixsocket [Tue Nov 16 16:08:37 2004] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory [Tue Nov 16 16:08:37 2004] [error] ajp13.service() Error forwarding ajp13:unixsocket 1 1 [Tue Nov 16 16:08:37 2004] [error] mod_jk.handler() Error connecting to tomcat 12 - And this is what I get my Tomcat catalina.out log: --- Nov 16, 2004 4:06:18 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8666 Nov 16, 2004 4:06:18 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2932 ms Nov 16, 2004 4:06:19 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Nov 16, 2004 4:06:19 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.4 Nov 16, 2004 4:06:19 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Nov 16, 2004 4:06:23 PM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] Nov 16, 2004 4:06:24 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized()
RE: WebDAV-Servlet with Contexts different from FileDirContext
Not quite talking to yourself but what with timezones and day jobs and all that it isn't always possible to reply quickly. ;) I am not sure of the level of interest in this but people have taken the trouble to write bug reports and it does crop up reasonably often on the lists considering its size. If you want to enhance the webdav servet I would be happy to look at your patches and apply them as appropriate. There is however, one caveat. I don't want the webdav servlet to become a source of bloat so it is important that it remains lean - ideally in a single servlet. Mark -Original Message- From: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 5:25 PM To: [EMAIL PROTECTED] Subject: Re: WebDAV-Servlet with Contexts different from FileDirContext OK, talking to myself as it seems ;) Accept my apologies if no one is interested, but bringing this even further wouldn't it be an option to have the servlet seperated from Tomcat and letting it implement against an API a little bit richter then directory context? Maybe in commons? Such an API could accept settings of properties and even locking. Compared to Slide I really like the servlet as it is pretty obvious and lean in code. I am pretty sure quite some people would be interested in such a solution and would contribute to its compliance to the spec and compatibility to diverse clients. Would that be an option? Oliver On Tue, 16 Nov 2004 00:10:56 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: Looking into this further, couldn't proppatch be implemented properly? I know the file dir context does not support setting of attributes, but there are other dir contexts imaginable that do, right? Oliver On Mon, 15 Nov 2004 02:23:49 +0100, Oliver Zeigermann [EMAIL PROTECTED] wrote: Folks, I am just reviewing Tomcat's WebDAV servlet and have even run Slide's WebDAV testsuite against it - many tests work :) I really like the brevity! I understand the default context used is FileDirContext, right? I am no Tomcat expert, so maybe this is a stupid question, but is it actually possible to use a different context possibly accessing a system in a more complicated way? Has anybody tried this already? Thanks in advance, Oliver - 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: WebDAV-Servlet with Contexts different from FileDirContext
On Tue, 16 Nov 2004 21:47:48 -, Mark Thomas [EMAIL PROTECTED] wrote: Not quite talking to yourself but what with timezones and day jobs and all that it isn't always possible to reply quickly. ;) I am not sure of the level of interest in this but people have taken the trouble to write bug reports and it does crop up reasonably often on the lists considering its size. If you want to enhance the webdav servet I would be happy to look at your patches and apply them as appropriate. There is however, one caveat. I don't want the webdav servlet to become a source of bloat so it is important that it remains lean - ideally in a single servlet. I like it a lot better as a simple servlet, actually ;) About the no-propatch: the idea is that the filesystem support for this would require some extra complexity, which I ruled out. Since most people would use the filesystem, the feature becomes sort of bloat. -- 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]
WAR file and context.xml overwriting on deployment
Hi. I have a java web app that I package as a WAR file. People download it. They install it on their instance of Tomcat. They configure application settings as variables in context.xml. The problem is that each time they grab updated code (a new WAR file) they overwrite their context.xml file with the default settings. Is there some more user-friendly way to deal with this configuration issue? How do others that provide downloadable WAR files do this? I understand that this may not be the traditional usage of WAR files and Tomcat. Ideas welcome. Thanks, Joe Reger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configure Tomcat's Session Cookie Domain?
Hi. Is there any way to specify the domain of the cookie that Tomcat sets to maintain session across requests? In java there's javax.servlet.http.Cookie.setDomain(java.lang.String pattern) that allows me to set it to something like .joereger.com... which allows a cookie to persist across one.joereger.com, two.joereger.com, three.joereger.com and so on. Anything like this in Tomcat's configuration? I've also looked into the jsp:useBean tags but haven't found anything that does what I'm looking for. Thanks, Joe Reger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure jk2 property files...
Troy, Comments inline ... Troy Simpson wrote: PJ, When they are running does /global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket exist? I does NOT apear that /global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket does exist. That's the issue Why not just use a TCP socket as it allows for easier separation later (i.e. just change IP address). At this point, it really does not matter to me. I just want to figure out how to make it work. I would just presume that a UnixSocket would be faster. In theory it *may* be marginally faster but if you were to use the loopback address 127.0.0.1 then the socket is just within the kernel ... so should be fast enough for most needs. Additionally, I wish I could understand the configuration and property files. Have you looked at http://jakarta.apache.org/tomcat/connectors-doc/jk2/jk2/confighowto.html Try the channelSocket option at the top. Thanks, Troy Peter Johnson wrote: Troy, When they are running does /global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket exist? Why not just use a TCP socket as it allows for easier separation later (i.e. just change IP address). PJ Troy Simpson wrote: This appears to be a common problem in the mail archives. I have having this same problem and I have not found my answer yet. I have installed the following: 1. Apache 2.0.52 2. TomCat 5.5.4 3. jk2 Connector. Apache and Tomcat runs very well independently, but I can not get them to work together. Here is what my workers.properties file looks like: - # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/global/lunadg/d01/app/apache2/2.0.52/logs/shm.file size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:unixsocket] file=/global/lunadg/d01/tomcat/5.5.4/work/jk2.socket debug=0 # define the worker [ajp13:unixsocket] channel=channel.un:unixsocket # Announce a status worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/jsp-examples/*] worker=ajp13:unixsocket # Uri mapping for MyFirst [uri:/MyFirst/*] Here is what my jk2.properties file looks like: --- handler.list=apr,request,channelUnix channelSocket.port=8009 channelUnix.file=/global/lunadg/d01/app/tomcat/5.5.4/work/jk2.socket serverRoot=/global/lunadg/d01/app/apache2/2.0.52 apr.NativeSo=/global/lunadg/d01/app/apache2/2.0.52/modules/jkjni.so --- This is what I get in my Apache error_log file: - [Tue Nov 16 16:08:11 2004] [notice] Digest: generating secret for digest authentication ... [Tue Nov 16 16:08:11 2004] [notice] Digest: done [Tue Nov 16 16:08:12 2004] [error] mod_jk child init 1 0 [Tue Nov 16 16:08:12 2004] [notice] Apache/2.0.52 (Unix) mod_jk2/2.0.2 configured -- resuming normal operations [Tue Nov 16 16:08:34 2004] [error] channelUn.connect() connect failed 2 No such file or directory [Tue Nov 16 16:08:34 2004] [error] ajp13.connect() failed ajp13:unixsocket [Tue Nov 16 16:08:34 2004] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory [Tue Nov 16 16:08:34 2004] [error] ajp13.service() Error forwarding ajp13:unixsocket 1 1 [Tue Nov 16 16:08:34 2004] [error] mod_jk.handler() Error connecting to tomcat 12 [Tue Nov 16 16:08:37 2004] [error] channelUn.connect() connect failed 2 No such file or directory [Tue Nov 16 16:08:37 2004] [error] ajp13.connect() failed ajp13:unixsocket [Tue Nov 16 16:08:37 2004] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory [Tue Nov 16 16:08:37 2004] [error] ajp13.service() Error forwarding ajp13:unixsocket 1 1 [Tue Nov 16 16:08:37 2004] [error] mod_jk.handler() Error connecting to tomcat 12 - And this is what I get my Tomcat catalina.out log: --- Nov 16, 2004 4:06:18 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8666 Nov 16, 2004 4:06:18 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2932 ms Nov 16, 2004 4:06:19 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Nov 16, 2004 4:06:19 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.4 Nov 16, 2004 4:06:19 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Nov 16, 2004 4:06:23 PM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL:
Embedded Tomcat deploying WAR with URL of type jar:
Hi. I have a question regarding the embedded version of Tomcat. I'd like to have a java program start an instance of Tomcat and then deploy a WAR file to it. ... URL warFile = new URL(jar:C:/source/ROOT.war); Deployer deployer = (Deployer)host; deployer.install(/ROOT, warFile); ... I get the following error on the first line above: java.net.MalformedURLException: no !/ in spec This appears to be a known issue with Java: http://archives.java.sun.com/cgi-bin/wa?A2=ind0311L=jini-usersF=S=P=1044 6 But in the Tomcat API doc I see A URL of type jar: that points to a WAR file, or type file: that points to an unpacked directory structure containing the web application to be installed : http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/apache /catalina/Deployer.html#install(java.net.URL,%20java.net.URL) Summary: I'd like to use a URL of type jar: but I can't seem to get it working. Any help appreciated. Sorry for the long message. Joe Reger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebDAV-Servlet with Contexts different from FileDirContext
Mark, Remy, thanks for your attention. Did not want to complain about missing responses, I was just honestly wondering if anyone was interested. Obviously, someone is :) I understand you are not interested in making this servlet available to a broader scope of people, are you? If so I would completely understand that as I have learned about the drawbacks of too general solutions. Oliver On Tue, 16 Nov 2004 23:18:48 +0100, Remy Maucherat [EMAIL PROTECTED] wrote: On Tue, 16 Nov 2004 21:47:48 -, Mark Thomas [EMAIL PROTECTED] wrote: Not quite talking to yourself but what with timezones and day jobs and all that it isn't always possible to reply quickly. ;) I am not sure of the level of interest in this but people have taken the trouble to write bug reports and it does crop up reasonably often on the lists considering its size. If you want to enhance the webdav servet I would be happy to look at your patches and apply them as appropriate. There is however, one caveat. I don't want the webdav servlet to become a source of bloat so it is important that it remains lean - ideally in a single servlet. I like it a lot better as a simple servlet, actually ;) About the no-propatch: the idea is that the filesystem support for this would require some extra complexity, which I ruled out. Since most people would use the filesystem, the feature becomes sort of bloat. -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedded Tomcat deploying WAR with URL of type jar:
Hi Joe, URL warFile = new URL(jar:C:/source/ROOT.war); Take a look at the syntax for the JarURLConnection class. http://java.sun.com/j2se/1.4.2/docs/api/java/net/JarURLConnection.html -Ben Souther F.W. Davison Co, Inc. ;-) On Tue, 2004-11-16 at 17:59, Joe Reger, Jr. wrote: Hi. I have a question regarding the embedded version of Tomcat. I'd like to have a java program start an instance of Tomcat and then deploy a WAR file to it. ... URL warFile = new URL(jar:C:/source/ROOT.war); Deployer deployer = (Deployer)host; deployer.install(/ROOT, warFile); ... I get the following error on the first line above: java.net.MalformedURLException: no !/ in spec This appears to be a known issue with Java: http://archives.java.sun.com/cgi-bin/wa?A2=ind0311L=jini-usersF=S=P=1044 6 But in the Tomcat API doc I see A URL of type jar: that points to a WAR file, or type file: that points to an unpacked directory structure containing the web application to be installed : http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/apache /catalina/Deployer.html#install(java.net.URL,%20java.net.URL) Summary: I'd like to use a URL of type jar: but I can't seem to get it working. Any help appreciated. Sorry for the long message. Joe Reger - 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: How to configure jk2 property files...
Thanks for your help. I believe I got it working now. The jsp-examples are working now. Here is what my workers2.properties file now looks like: -- # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/global/lunadg/d01/app/apache2/2.0.52/logs/shm.file size=1048576 debug=0 disabled=0 version=0 # [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 debug=0 # Announce a status worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/jsp-examples/*] info=Map the whole webapp # Uri mapping for MyFirst [uri:/MyFirst/*] -- If I have two tomcat instances running, tomcatA for MyFirst and tomcatB for MySecond, would I add this to my properties file? [channel.socket:localhost:8019] info=Ajp13 forwarding over socket tomcatId=localhost:8010 debug=0 # Uri mapping [uri:/MySecond/*] info=Map to Application B. Thanks, Troy -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and apache in Oracle9.2.0.1
After install Oracle9.2.0.1, Apache and Tomcat are installed. What are the versions of the TOMCAT and the apache in this version of Oracle? Do you know the location of the document where oracle describe its http server? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configure Tomcat's Session Cookie Domain?
Nope. Can't do it. But if you really need it to be more domain generic - there is nothing stopping you from expiring the JSESSIONID cookie and setting a newer one at a more generic level. (But this will probably cause future issues) -Tim Joe Reger, Jr. wrote: Hi. Is there any way to specify the domain of the cookie that Tomcat sets to maintain session across requests? In java there's javax.servlet.http.Cookie.setDomain(java.lang.String pattern) that allows me to set it to something like .joereger.com... which allows a cookie to persist across one.joereger.com, two.joereger.com, three.joereger.com and so on. Anything like this in Tomcat's configuration? I've also looked into the jsp:useBean tags but haven't found anything that does what I'm looking for. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and apache in Oracle9.2.0.1
How about http://www.oracle.com/support/index.html ? -Tim Daxin Zuo wrote: After install Oracle9.2.0.1, Apache and Tomcat are installed. What are the versions of the TOMCAT and the apache in this version of Oracle? Do you know the location of the document where oracle describe its http server? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How might I read docBase into my application
On Tue, Nov 16, 2004 at 08:35:55AM -0800, Ken Sims wrote: : Can anyone tell me how I can obtain the value of docBase from my : application's (JSP) context? I would like to use it to help me form : hrefs for my pages In addition to the other advice you've received, you could do this within the JSP itself using JSTL and EL. The c:url/ tag creates context-relative links: First, create a string variable with the link path: c:url value=/some/page/or/image var=link/ Then, use it in a link or image tag: A HREF=${link}link text/A -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAR file and context.xml overwriting on deployment
: The problem is that each time they grab updated code (a new WAR file) they : overwrite their context.xml file with the default settings. : : Is there some more user-friendly way to deal with this configuration issue? : How do others that provide downloadable WAR files do this? This is the opposite of what I've seen: usually, the context.xml (the version copied to {tomcat}/conf/{engine}/{host}/{context-name}.xml) is *not* overritten with the (newer) version in the newly-deployed WAR file. as for dealing with this issue: As context.xml is Tomcat-specific, you could expect a certain level of Tomcat expertise from your users. By expertise in this case, I mean, remove the old context XML file before deploying the new WAR, to make sure the newer file is copied over. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database Pooling
On Tue, Nov 16, 2004 at 03:35:25PM -0600, Scott Purcell wrote: : I am developing a mid-sized application, which will use JSP Model 2 : Architecture. Currently I have a class that does Database Pooling, but I am : curious about some threads I see time to time. : : I have noticed that some developers on this list refer to Tomcats Database : Pooling. It looks like there are some hooks into the deployment file. So I : guess my question is as follows. does Tomcat offer this type of pooling? and : if so, is it good, and is it portable? Links, references would be great. JDBC pooling is pretty standard in containers these days, Tomcat included. ;) The code side of this picture is pretty portable: look up a DataSource via JNDI, use that to fetch connections. The configuration side is container-specific. Tomcat has excellent docs on this at the website. If inter-container portability is a great concern (e.g. you sell your app to external clients), you could also manage the pool yourself using the commons-dbcp package. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configure Tomcat's Session Cookie Domain?
Thanks. What I suspected. Is this to adhere to a spec, or simply functionality not (yet?) developed for Tomcat? I've created a workaround session manager that manually sets its own cookies. One result being that my scaling strategy can't rely on the session replication of Tomcat... I'll have to use a firewall with sticky sessions. But enough whining from me... like always, there's a workaround. Best, Joe -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 7:12 PM To: Tomcat Users List Subject: Re: Configure Tomcat's Session Cookie Domain? Nope. Can't do it. But if you really need it to be more domain generic - there is nothing stopping you from expiring the JSESSIONID cookie and setting a newer one at a more generic level. (But this will probably cause future issues) -Tim Joe Reger, Jr. wrote: Hi. Is there any way to specify the domain of the cookie that Tomcat sets to maintain session across requests? In java there's javax.servlet.http.Cookie.setDomain(java.lang.String pattern) that allows me to set it to something like .joereger.com... which allows a cookie to persist across one.joereger.com, two.joereger.com, three.joereger.com and so on. Anything like this in Tomcat's configuration? I've also looked into the jsp:useBean tags but haven't found anything that does what I'm looking for. - 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 apache in Oracle9.2.0.1
Can anybody forward more specific information? This Oracle site definitely has the information. But the doc sea is too wide. Thanks -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 4:14 PM To: Tomcat Users List Subject: Re: Tomcat and apache in Oracle9.2.0.1 How about http://www.oracle.com/support/index.html ? -Tim Daxin Zuo wrote: After install Oracle9.2.0.1, Apache and Tomcat are installed. What are the versions of the TOMCAT and the apache in this version of Oracle? Do you know the location of the document where oracle describe its http server? - 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]
Tomcat startup time delay in Windows 95/98
HI, The application which we have developed has a performance related issue in Windows 95/98. We install the application and when we click on the aplication icon it internally invokes a Flash screen displaying the application is loading and internally calls the startup.bat file in tomcat\bin for the server startup process, which internally calls the catalina.bat file and so on and so forth. We cannot startup Tomcat as a service in Win 95/98. The problem basically which we are facing is the time taken for the load of the application. The load time takes up about 1 1/2 to 2 minutes. This doesnt seem to be a feasible solution for the product acceptance. Is there any way we can decrease the tomcat startup load time? Can we manipulate on the processes so as to reduce the load time? Or is there any solution for the same? Regards Pragyan
Tomcat 5.5.4 Stability
Today, I ran an axis application under both Tomcat 5.028 and 5.5.4. Hitting this axis application with 100 simultaneous clients for many hits. 5.0.28 seems to hold up very well. It drops connections once a while. However, 5.5.4 drops many connections. I wonder if the Tomcat team aware of this problem. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]