Re: java.lang.ClassCircularityError

2005-10-10 Thread Shankar Unni
Caldarale, Charles R wrote: According to the bug report, this is only fixed in Mustang (6.0), not 5.0 (aka 1.5). Ooh, my bad (misread of the fixed release..). Thanks.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: java.lang.ClassCircularityError

2005-10-05 Thread Shankar Unni
Jagadeesha T wrote: I am using Tomcat 5.0 with JBoss 3.2.6. In a very rare cases I got the error as java.lang.ClassCircularityError(myclass). Does anybody know wahy this error is coming. There seems to be a well-known Java bug (1.3.x and 1.4.x, fixed in 1.5) that affects JBoss 3.x:

Re: Running Tomcat as Non-Root under Linux listen for port 80

2005-09-28 Thread Shankar Unni
NoKideen wrote: is there anybody know how to do this ? Running Tomcat as Non-Root under Linux listen for port 80 Google is your friend: http://www.google.com/search?q=linux+port+80+non-root - To unsubscribe, e-mail:

Re: Tomcat con pooling to Oracle RAC

2005-06-21 Thread Shankar Unni
Frank W. Zammetti wrote: Yep, I had a coworker suggest using the OCI driver as well... And you have to use the right JDBC driver as well. At least up to the 9.* timeframe, Oracle used to release two JDBC drivers: one was a thin-only driver with its JDBC distribution, and one was the full

Re: load-on-startup servlet needs access

2005-03-06 Thread Shankar Unni
Darren Govoni wrote: How can I have my servlet loaded on startup, but after the web server is up and running? Not possible? Well, you can always start a thread that does this initialization, and return. Then, when the full Tomcat initialization is complete, your thread will run to completion

Re: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords

2005-02-28 Thread Shankar Unni
George Sexton wrote: If you really want to do this, then you will need to have your application startup have a method that permits an operator to enter in the password for the JDBC information at startup. Whatever - the key is to be able to insert an application-defined processing step between

Re: Someone is using Tomcat for spreading spam?

2005-02-26 Thread Shankar Unni
Susan Hoddinott wrote: Everytime I resubscribe to the user list I am bombarded with Spam. So use an NNTP interface to the list, like I'm doing (on news.gmane.org). It's sometimes a little less convenient to use, but the benefits are that I don't have to flood my mailbox with the messages, and I

Re: Benefits of running Tomcat as a daemon with JSVC

2005-02-26 Thread Shankar Unni
Mladen Turk wrote: Behrang Saeedzadeh wrote: What are the benefits of running an application like Tomcat with as a daemon (with JSVC) vs. running it like a normal application? In one sentence: Running as non-root on port 1024 In another sentence, starting up the service automatically on system

Re: Hyperthreading and Java (was RE: Tale of two servers)

2005-02-25 Thread Shankar Unni
Peter Crowther wrote: From: Graham Reeds [mailto:[EMAIL PROTECTED] Also disable HyperThreading in the BIOS on the new Dell. HT and Java is not a happy combination. Interesting... do you have any recommended reading on that, Graham? Love these urban-legend types of warnings (don't flash your

Re: Capitalizing names OT

2005-02-18 Thread Shankar Unni
David Short wrote: Does anyone know if there is an equivalent to the Oracle Initcap() function? I am trying to write a database independent name capitalization routine. In what language? Java? public static String initCap(String s) { return (s == null || s.length() == 0) ? s :

Re: [OT]File size with DOS batch commands

2005-01-28 Thread Shankar Unni
Srinivas Rao Ch wrote: Can somebody help me in finding the size of a file (and last modified date also)with DOS batch commands only? Try the site http://www.jsiinc.com/reghack.htm. Among the thousands of FAQs there are common script requests like this, with canned scripts to do the work which

Re: How to access web-app context-params from Servlet.init()?

2004-12-28 Thread Shankar Unni
QM wrote: Which init() overload do you use? init() init( ServletConfig ) Using the latter, you should be able to call: ServletConfig#getServletContext() -- getInitParameter() Hah. Thank you! Yes, I mean the latter version.

How to access web-app context-params from Servlet.init()?

2004-12-27 Thread Shankar Unni
I'd like to configure a set of web-app-level parameters for use by both Java-based Servlets, and JSP pages. I thought of setting these up as context-params at the web-app level in web.xml. For JSPs, all is cool: %= application.getInitParameter(foo) % returns these parameters. For Servlets,

Definitive os.name list (was Re: [OT] Request an app test (free beer!))

2004-12-21 Thread Shankar Unni
Frank W. Zammetti wrote: I'm working on something for which I need to know what the os.name property on various OS's is. FAQ. See http://www.tolstoy.com/samizdat/sysprops.html. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: deleteOnExit() doesn't work in Tomcat on temp files

2004-12-09 Thread Shankar Unni
Noel J. Bergman wrote: Instead, use the PhantomReference-based code that I contributed to Jakarta Commons. The main reason why people (misguidedly) use deleteOnExit() is to be able to generate temporary files that you can return URLs for (e.g. you generate a .PDF report, and generate an HTTP

Re: deleteOnExit() doesn't work in Tomcat on temp files

2004-12-08 Thread Shankar Unni
[EMAIL PROTECTED] wrote: I am using Tomcat 5.5 on WindowsXP. Tomcat is installed as a service, Somehow when Tomcat is installed as a Windows service, the shutdown doesn't go through the orderly steps (i.e. servlet destroy()s aren't called, and I suspect the process is just *killed* instead of

Re: [dbcp] Call Oracle stored procedure via DBCP?

2004-12-01 Thread Shankar Unni
Sergey Karpov wrote: During a call of stored procedure through DBCP there is a mistake of reduction of type: java.lang.ClassCastException That's because you're assuming that dbcp returns you a naked vendor JDBC Connection object. It doesn't - it returns you a pooled connection wrapper with

Re: redirect catalina.out

2004-11-18 Thread Shankar Unni
Shapira, Yoav wrote: swallowOutput is not a Context attribute, it's a Logger attribute: change your context.xml to fix that. Really? That's not what the doc says (or the source either). Just tested on 5.0.2x. (At least, I defined a DefaultContext swallowOutput=true/ in my Host, and standard

Re: Content-disposition for file downlaod with Mozilla/Firefox

2004-11-16 Thread Shankar Unni
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:

Re: JAVA_OPTS

2004-11-15 Thread Shankar Unni
Mufaddal Khumri wrote: As far as what the -server option will do for you , that depends on your VM vendor. The Sun JRE distributions typically don't include a server VM, so -server will give an error. You'll have to download the JDK, and run the JRE that is embedded within it

Re: Anyone knows how to deal with mail session -security error for TC5.5.4

2004-11-09 Thread Shankar Unni
David Lee wrote: 2. catalina.policy: grant codeBase file:${catalina.home}/webapps/javaxml2/WEB-INF/classes/UpdateItemServle t.class { Shouldn't you be giving those permissions (except the Oracle one :-) to mail.jar, rather than your servlet class? That's what is actually making the reference,

Re: Running tomcat 5.0 as a service in Windows OS

2004-10-12 Thread Shankar Unni
Pramod Jain wrote: a) with tomcat5w.exe, I go to startup tab and enter: start -config C:\abc\my_server.xml b) In Windows Services editor I go to Apache-Tomcat - Properties - Start Parameters and enter: start -config C:\abc\my_server.xml Don't use double-quotes - those will be passed literally

Re: Weird Red Hat Enterprise Startup

2004-10-11 Thread Shankar Unni
Shapira, Yoav wrote: Any JVM switch to make an internal JVM crash disappear is cruising for a bruising. Fully understood. Most likely, it's missing OS-level patches for your system. True, except that for the Linux case, we are running on one of the supported OSes (RH EL 3.0WS, stock), and

Re: Forum instead of mailist!!

2004-10-11 Thread Shankar Unni
Andoni wrote: That's excellent. If I unsubscribe can I still read these? Can I reply? Yes, you can reply. The first time you try to reply, gmane.org will send you an autoreply. You have to reply to the auto-reply to authenticate your mail address, and then you're up and running. That's how I'm

Re: Weird Red Hat Enterprise Startup

2004-10-07 Thread Shankar Unni
Mike Cherichetti (Renegade Internet) wrote: Another exception has been detected while we were handling last error. Dumping information about last error: ERROR REPORT FILE = (N/A) PC= 0x This is the Java VM aborting. You'll probably find core.* files littered in the

Re: Using XInclude in tomcat's config files

2004-10-05 Thread Shankar Unni
Pawson, David wrote: Does your parser support xml:base? My parser? We're talking about the xerces parser embedded in Tomcat, reading the configuration files for Tomcat and its webapps (not a parser used by an application hosted by Tomcat). If there's any way to control the instantiation or

Re: Using XInclude in tomcat's config files

2004-10-04 Thread Shankar Unni
Pawson, David wrote: Try an entity instead of xinclude? Not many parsers are good for xinclude as yet (a mainly uninformed statement). Entity resolution is easier if the parser is setup correctly. Oh, that's what we are doing now, but entity resolution doesn't have a concept of relative paths.

Re: Using XInclude in tomcat's config files

2004-10-01 Thread Shankar Unni
Robert Koberg wrote: Haven't tried it, but have you set the: org.xml.sax.parser=org.apache.xerces.parsers.XIncludeParserConfiguration Ah. No. Thanks for that clue. Let me go back at it.. - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Using XInclude in tomcat's config files

2004-10-01 Thread Shankar Unni
Shankar Unni wrote: Haven't tried it, but have you set the: org.xml.sax.parser=org.apache.xerces.parsers.XIncludeParserConfiguration Ah. No. Thanks for that clue. Let me go back at it.. Alas, that didn't help. I tried setting both org.xml.sax.parser

Re: Using XInclude in tomcat's config files

2004-09-30 Thread Shankar Unni
Shankar Unni wrote: Is it possible to configure Tomcat to be able to use XInclude to include fragments of XML into Tomcat's own configuration files (server.xml, the various webapp web.xml's, etc.)? Bump? No one's tried this yet

Re: Strings in VARCHAR or BLOB

2004-09-29 Thread Shankar Unni
[EMAIL PROTECTED] wrote: The maximum string size for varchar2 is 8000K. I suggest you use LOB (CLOB or NCLOB) datatypes. This is all oracle-specific. Other DBs have different limits. MySQL has a 255-char limit for Varchar (not varchar2, which is also Oracle-specific, as is NCLOB). Bottom line:

Using XInclude in tomcat's config files

2004-09-28 Thread Shankar Unni
Is it possible to configure Tomcat to be able to use XInclude to include fragments of XML into Tomcat's own configuration files (server.xml, the various webapp web.xml's, etc.)? If so, can anyone point me at any HOWTOs or helpful messages? I've tried searching the archives, but everything I