RE: NIGHTMARE
Your software, Tomcat, is a nightmare to install. I've spent 2 WHOLE days trying to make it work without success. You should've asked for help sooner then, rather than wait till you were so mad all you could do was vent... that's what the list is for. That's help, not venting ;-) J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Manager App in 4.0
Not on that URL, buddy! That's your internal address. -Original Message- From: John Regan [ mailto:[EMAIL PROTECTED]] Sent: 14 March 2002 17:29 To: 'Tomcat Users List' Subject: RE: Manager App in 4.0 still struggling to get the manager working. have followed all suggestions, don't get 404 any more but now it just hangs when i try to access the manager http://jbrpc:8025/manager/list Can someone take a look @ my server.xml and tomcat-users.xml and see if there are any glaring mistakes? *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0.1 on omvs under os390
I am in the process of porting our servlet based application running under Linux to omvs under Os390. I'm afraid I can't help, but I just wanted to say how nice it is to hear phrases like 'os390' and 'ebcdic' again. Takes me back to my first programming job ;-) J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: CONNECTION BUSY
[Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt problem. This is coming only if I am executing a no. of SQLs in quick succession. The odbc bridge is not serialisable. That is to say, all requests are queued and answered one by one. If this is a problem, then use a proper driver. J. -- You're only jealous cos the little penguins are talking to me. h®j+z)ߢ¹¶*'¢s«vv§qä®®÷²¦º¹Ëljwlz»âqë/È¢êðy»µæÛiÿü0ÂÝ©ÜzË«½ì¢é
RE: IE 5 on Mac is incompatible with TC 4?
From: Anders Rundgren [mailto:[EMAIL PROTECTED]] Well This is matter of taste. As IE 5 is the current Mac release and IE is relatively popular even by Mac-user's, I believe that TC should adopt to IE 5 rather than the revse. A *really* strange thing is that persistant cookies work. But the problem is only related to SSL. Sounds like you want the TomCat developers to write code so they can receive a cookie that the Mac IE isn't sending. If you have example code I'd love to see it ;-) J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: integer value
I have a doubt, I have a form that has name and his phone number, both the fields are optional. I declared name as VARCHAR and number as INTEGER in my SQL database. When the user leaves the fild empty, I get an error with the number field as NumberFormatException. If you really want to do it this way, you can catch the exception (see a book on Java) and set it there. Better still, don't try to force the data into an integer field, cos it isn't really. You can check that it is only made of certain characters (0-9) instead. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: not suitable driver?
getConnection(jdbc:mysql:3306://localhost/bukujsp?snip Surely you mean: getConnection(jdbc:mysql//localhost:3306/bukujsp?snip They may be identical. Anyone? J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Starting JSP from HTML
I am trying to start a JSP from an HTML page w/ the script: http://bmms.ibmms.com:8080/1st.jsp; where bmms.ibmms.com is the internal address of the JSP location. This works ine internally, but when I bring up the HTML page on the internet, It's prolly cos the name bmms.ibmms.com isn't in the internet DNS tables (I've checked), only in your internal networks routing tables, whatever they are. What is that machine called from the rest of the world? That's the name you need to use. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Folders/Files hidden in Linux but visible through Tomcat/Browser
I can't see folder and files that start with a certain word in Linux. There is no . (dot) in the name. Care to give us some examples, or shall we just guess? What are you using to list them and what is the output. However, when I run tomcat the folder/files are in the directory where it is supposed to be. The files are there but they are invisible. Again, what are you using in Java to list them, and what is the output? Is this a virus? Please someone. No it isn't a virus. Viruses are something completely different. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: code!!
I'm not sure if it matters, but have you tried rewriting the code with the following: %@ page import = java.io.*, java.sql.* % in place of the page element defined below? I've never seen anyone split up imports into different statements. Those aren't different statements - they are just separated by a newline in the single page directive. I can't remember offhand if you are allowed more than one page directive, but I think so, so even if they were written as separate import statements I don't think it'd be a problem. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: code!!
These are three distinct import directives, not one import delimited by three newlines. I apologise, I see what you mean - and said - three *imports* not three page directives. You are right about only import in a page directive, so I think your diagnosis was correct. I, on the other hand, will spend a day programming in Visual Basic in order to atone for my skim-reading. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: NewB/Default Servlet:Can't find .gif
Hello List... Hallo Newbie ;-) NEWBIE: I want to generate the welcome page for my domain so I mapped a test servlet to / in the web.xml for my context. PROBLEM: A test.gif image is not rendered by the servlet - as it appears the path is not found. Are you trying to return html including an image link (such as img src=test.gif) or trying to stream an image via the servlet? If the latter, then jsp is the wrong tool - it is text only. If not, read on: *** Can you send us the location and output of your jsp page and the location of your gif please? *** It sounds like a simple problem. OBSERVED: If I map the servlet instead to /intro then the test.gif is rendered ok. TRIED: Using various path combinations/test.gif, test.gif etc - no result. NOTE: I've read some postings advising locating files should be done as in InputStream [getResourceAsStream()]. Is it applicable in this case when all I want is a simple out.println( img src=\/test.gif ... etc )? Oh, then you are trying to do it right! Good. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: NewB/Default Servlet:Can't find .gif
I'm confused as to why once I change the servlet-mapping from / to /intro that the .gif is read. So am I ;-) Can you print out the output from either case and send it. J. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Sessions Timeout
I had a quick question about this. For a session to be refreshed by being accessed, does this count only direct calls to the specific URI's, or if I do a forward from another servlet context into it, will this count as access as well. I'd have *expected* any access to the session will put the clock back to start, so to speak. But someone with more in-depth knowledge may know for sure. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception in Tomcat4.0.1 with JBuilder6
Just from reading the error logs you sent: root cause java.lang.NoClassDefFoundError: org/xml/sax/SAXException ...it sounds like your classpath for JBuilder doesn't include this class. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: 64k limit on POST variables?
AFAIK there is no limitation in apache. I don't think that there is a limitation in tomcat or one of the connectors. Given that you could make a Denial Of Service attack by using memory by posting arbitrarily long parameters to a server, I suspect that all of them have some kind of arbitrary limit, even if the RFC doesn't state one. Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: TC Re: 64k limit on POST variables?
In my case, I wasn't checking the variable on the server at the right point. Tomcat was sending 64k just fine (I discovered after adding a decent amount of debugging). I happened to be putting the result in a database column that was limited to 64k. Hence the reason that I ran into the problem that I did. Oops! Perfect opportunity to use some blush /blush tags there ;-) FYI, after some searching on the web, it appears that POSTs do NOT have a built-in limit. GETs are limited by what the browser and server support.. But POSTs have no official limit. (Only warning is that they are 'inefficient' for large data, and that multipart forms are suggested for that) But in reality, within the constraints of real, non-infinite machines, they will *both* be limited by the browser and server. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: WebAppDeploy Vs WebAppMount
You can just modify your server.xml to have TC listen to 80. Thanks but I still want to serve static pages hence need to have apache. NB: TC will server static pages quite happily. Now, I've *just* been discussing this for implementation at my current contract. We are wondering what the load difference is likely to be on the whole machine. We serve approximately the same number of .jsp and .png requests, plus a tiny amount of html. Has anyone implemented this structure and do they have any opinions? J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Session Timeout
Hi, I tried setting session timeout to 5 mins using web.xml (please see the following code), but it does not seem to be working. In my jsp I displayed getMaxInactiveInterval() and it shows 1800 (30 mins). Can anyone please let me know if I can use web.xml for session timeout in jsp pages or not. I have never had it working on TC 3.2.3 (I think) and set it in the jsps instead. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Session Timeout
I think Justin is correct in stating to put the timeout in the JSP's. I bet the web.xml file is only for servlets. Well jsps *are* servlets once they are compiled! Personally I think it's a bug but I have a workaround so I can get on with this huge pile of vitally important small changes to the text ;-) J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Sessions Timeout
Is there a way to configure Tomcat to check the expire time against last access time and not creation time? Sessions *are* invalidated when the timeout period has passed without access. *Not* when the timeout period has passed from creation. Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Sessions Timeout
the session method getMaxInactiveInterval() gives you the time-value, after that your inactive session is killed. You can change this value in the web.xml file. Or in the jsp - request.getSession.setMaxInactiveInterval(time in seconds). J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: gc() and sessions
Does garbage collector run automatically when a session set by setMaxInactiveInterval() times out? No, gc runs when the jre thinks it should. That's all you need to know! (Well, that's the position of the java designers). When it runs it *will* remove inactive sessions and de-allocate their memory. You can tell the system that you would like it run by calling System.gc() *but* that doesn't actually *force* the issue (as I understand matters). J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Session visibility
I have sessions setup for a couple of different servlets. For some reason the session that are created using one servlet are not valid in a different servlet. Is there a way to make this happen? Assuming when you say servlet you mean jsp page (which is slightly different): If they are in the same context they should be. You need to give us more information. 1) Have you got cookies enabled, and/or are you using encodeURL? 2) Are they in the same context? 3) Err... 4) That's it. Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: PLEASE REMOVE THE VIRUS BEFORE MAILING THE LIST...
Well, my ISP nuked your last issue of the digest (tomcat-user Digest 29 Jan 2002 07:19:31 - Issue 352) because it was emailed with the Party virus intact. Nuked your last issue? Surely the last issue?! It would be mailed intact cos the listbot doesn't strip attachments. That would seriously spoil list content. I know this list has been talking about SPAM removal, but now it is not only annoying, but has begun to SERIOUSLY IMPACT the list. After all, if the list will not be delivered by ISPs, then it is out of business. It wasn't spam, it was a virus sent on automatedly from a trawl through a MS address book. SO PLEASE PLEASE PLEASE - start instituting some serious SPAM filters, or only allow posts by members. I prefer the latter (membership). Neither would help. Perhaps using proper mail clients? Thanks very much - (even though I'm very unlikely to ever get to read this or any further digests until the virus runs its course) Hi Richard! J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: TOMCAT 4.0.1 and Cookies / URL Rewriting
Is it correct, that session tracking with TOMCAT is only possible if Cookies are allowed in the browser. Or is there any configuration possibility to use URL rewriting if a browser has cookies disabled? You can use URL rewriting, but it will also require that your HTML server (Apache?) be configured to let this through. If you do so, you will always get a session id variable added to URLs for people without cookies, *OR* the first visit to a page - as no cookie is sent on the first access. You will get no rewrite for URLs for users with cookies. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: READER to InputStream
No, I've a Reader and need an InputStream, sounds silly but the API needs so...:-( The abstract class Reader doesn't have any method to report which InputStream it is connected to. I think you may be out of luck. On the other hand, tell us more about the problem - it sounds interesting. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Session timeouts
I've added to the following line to my server.xml to try and increase timeouts for the webapp 'matt' but it doesn't appear to have any effect. Am I missing something? Context path=/matt docBase=matt defaultSessionTimeOut=120/ I also found no effect. I always set it in the top line of the service part of the jsp with: request.getSession().setMaxInactiveInterval(Utilities.TIMEOUT_SECONDS); Utilities being my own class of course. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: IIS or Apache
One of the problems i've run into with open source servers on Windows is getting binaries for many of the common tools, servers and dlls required for Win32, such as connectors for Tomcat, OpenSSL for SSL on Apache, etc. snip If you can complile the binaries yourself, your OK.. but i'm finding it's kind of hit and miss when you depend on others to compile the latest versions for you. What difficulty is there in compiling yourself? gcc and make do almost everything. Personally I vastly prefer to work from source and have never had any problems. I recommend you 'get your hands dirty' - it's lovely once you're in! J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Jasper error
I have looked at most of the documentation I can find and tried to use web.xml - going to this list with such a basic question is a last resort. Firstly well done - a decent effort with the docs is something to be congratulated upon. Class org.apache.jsp.UserData not found. This is the line you need to pay attention to. The line-fragment 'Class=UserData' doesn't tell the compiler enough. You need to tell it more information about where to find the class, such as the package, or it assumes it is in the same package as the thing it is compiling - in this case org.apache.jsp.* Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Still have no answer for this!
OCI.DLL: One of the library files needed to run this appliction cannot be found. Can anyone tell me what might be the problem? I checked the dll dependency for OCI.DLL, all dll files are there. http://www.orafaq.com/msgboard/java/messages/398.htm OCI is the Oracle Call Interface and is only one of the ways you can call Oracle. Are you *sure* that your connection URIs are identical? One workaround may be to re-install the Oracle drivers, according to one comment I found. Better still, move to a POS (Proper Operating System) instead of the POS (Microsoft product) you are using. Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Can a url have a space in it?
When using tomcat 3.2.4, is it invalid to create a folder called /my folder? It looks like tomcat turns the url into my%folder, which I thought should work, but it can't find any files in this directory. Is this correct, is there something I can do to allow tomcat to find files in a directory with a space in it? In any case, URLs with spaces are not well supported in some browsers - NS4 leaps to mind - so it's a bad idea. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Can a url have a space in it?
if uRL was http:/localhost/servlet/test?file=my%20documents then when your do : String paramV = request.getParameter(file); out.println(File Path is: + paramV); this should make paramV = my documents is this what your looking for? B Anyone correct me if I am wrong please. If you have that URL hardcoded or created in a string in NS4 Javascript and you use it for say, window,open(url, ... then it will be truncated instead of escaped. Try not to do it. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Getting a HTTP 503 Error
Anyone ever got a 503 error from TomCat 4? What does it mean? http://offline.home.cern.ch/offline/web/http_error_codes.html For all (well, all useful) http error codes. Remember people: STFW ;-) J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP Won't Compile Under Tomcat 4
An error occurred at line: 18 in the jsp file: /error.jsp Generated servlet error: D:\Tomcat\work\localhost\_\error$jsp.java:64: Class org.apache.jsp.PrintWriter not found. exception.printStackTrace(new PrintWriter(out)); ^ 1 error Is PrintWriter found in the org.apache.jsp package? If not, where is it? Now, have you imported it? Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP Won't Compile Under Tomcat 4
I'm not importing it because I am not using directly. Tomcat is throwing the error when it is invoking its internal JSP compiler. Hmm... interesting. Yes, Tomcat is throwing the error when it tries to compile the .java file that it has genereated. There is, however, a source file called error.jsp from which it has generated the .java file, and this presumably references PrintWriter without importing its class from its package. To be honest, I don't even know which JAR file the org.apache.jsp package is in. But that was my point - PrintWriter is *not* found in the jsp package, it's found in the java.io package so if you want to use PrintWriter you must import java.io.PrintWriter or java.io.*. Hope that helps, Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP Won't Compile Under Tomcat 4
I still can't understand why none of this was necessary under Tomcat 3. Probably the package import instruction you needed was added by the .java generator because some of the code it was adding to create the .java file from the .jsp file would need it. You can find out by looking in your old /work directory (I don't know where it'll be). J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat as a Windows Service on Windows 2000?
Now I wonder: what do I have to do to make Tomcat work as a Windows Service on Windows 2000 Professional or Windows 2000 Server? Install Tomcat 4.0.1 We have 3.2.3 working on Win2k. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP at client
JSP pages are working well at server (Tomcat is used). But although the url is correct, jsp pages show nothing at clients. Send (SHORT) example code, tomcat version, anything else useful, or no-one can help you. Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: reloadable
file a.jsp which includes b.jsp I'm viewing a.jsp in browser, then I modify b.jsp and reload page in browser, but I can't see changes - b.jsp doesn't recompile :-( Can you view b? If you do, it will recompile. Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Urgent: works on TC 3.2.2, but not on TC 3.3 !!!
Usually frames are involved when something like this happens. My involvement with Tomcat is through an IDE I work on, so I haven't done a lot of real world webapp development. Thus, I don't know why the frames get different sessions. I would expect them to get the same session as the main page. When I get a chance, I'll try to do some experimentation and see if there is something that can be done. If the frame definition has frameset frame1 src=foo.html frame2 src=bar.html /frameset Then both requests are made simultaneously.The sessions are then both started as the requester has not got a cookie (representing session) to send back till the first request is answered. Instead you can do this: frameset frame1 src=foo.html frame2 src=blank.html /frameset Where blank.html is, wait for it, a blank html page. Then the body tag of foo.html can read body onload=javascript: parent.frame2.location='bar.html' And the second frame will get the same session because the cookie has been set and can now be sent back. Hope that's clear (and accurate!). Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: One JSP not compiling - HELP - ANY TOMCAT DEVELOPERS?
Never mind - just writing that and re-reading it helped me figure it out...what a weird thing!! So what was it?! We want to hear about quirks and get them archived for future use. Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Urgent: works on TC 3.2.2, but not on TC 3.3 !!!
One potential problem with frames is the session id if cookies are disabled. snip description - look in the archives You can get round this by having a third hidden frame which 'owns' the links and which is the one which gets refreshed, and using JavaScript to connect up the links from the two visible frames. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Urgent: works on TC 3.2.2, but not on TC 3.3 !!!
Would you mind me asking you to elaborate your idea with simple code? Mind you asking, not in the least! However, I'm a bit busy. framset frame name=one src=foo.html frame name=two src=bar.html frame name=three src=form.jsp /frameset The top two have have javascript in all their tags calling functions. The functions address elements of a form in form.jsp: fucntion sendMyVariable(varValue) { parent.three.document.forms[0].myVariable=varValue; parent.three.document.forms[0].submit; } Get the idea? Then the form.jsp comes back and update code for whatever happens in the originating html files can be called in an onLoad tag. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Urgent: works on TC 3.2.2, but not on TC 3.3 !!!
The funny thing is that when I printed out the session Id of the main jsp page and the session Id of one jsp page which sits inside that main jsp page, their session Ids are different. How come?? They shouldn't be. A session is really a browser-specific connection, not a page-specific one. You got me there, unless you have cookies turned off. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: PLEASE HELP : THIS IS THE THIRD TIME I M POSTING
The reason you're not getting answers is prolly bacause your question is so basic it implies you haven't even read the documentation! If you have, then I apologise. If you haven't, then in future (and this is nothing personal, I don't know who you are at all), do that first! Also your explanation of the problem is missing information: Are these all on the same machine? How have you set up their addresses? hint You sound like you need to revise 'contexts'. /hint J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Off Topic apache problem, Strange url behaviour
I have some problems with my URL:s I know this is a TomCat group but I dont know any Apache mailing lists. Suggestion please. sarcasm STFW? /sarcasm http://httpd.apache.org/lists.html Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Off Topic apache problem, Strange url behaviour
STFW='Save the funny wale' or 'Search the f*ing web' or what? In answer to your question, I suggest you STFW ;-) A good place to start for this sort of thing is http://www.acronymfinder.com/ J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Can't get it working: TC4.0.x + warp + Apache 1.3.20 + SuSE Linux 7.3
BTW: If I specify http://MyHost.de/example I get a Not found error, while with http://MyHost.de/examples/ the result is a blank page. ?!?!? In your TC context definition it *matter* whether or not you include the final /. If you want it to work either with or without, put both contexts in. This is a documented feature. At least, I read it *somewhere*! Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Session timeouts
I want to set the session timeout for a web app. In the example web.xml it says that the the value is is seconds, but in book I have about Tomcat 4 it says that it's in minutes. It's minutes. It is set to a default in the xml configuration file, but can also be set in the jsp (find the call yourself!). For me, it only seems to work if set in the jsp :-( J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
What is the current state of response.encodeURL?
I have a Tomcat 3.2.3 install which is working perfectly happily. I have to support users without cookies. Previously I have been able to store enough information in the client to recreate their (simple) objects, but in our new development the information is much larger and so I must get access to their old sessions. response.encodeURL would seem to be the obvious (only?) choice, but it appears to behave oddly. When I turn off cookies and access my test.jsp: ...header stuff... % out.write(This session is a href=\ + response.encodeURL(test.jsp) + \here/a); % ...footer stuff... I get a URL with a semi-colon separating the JSessionID declaration from the rest of the URL. OK, so far so odd. However, when I click on the link, I get a different session id written out next time - implying that this is a different session. Am I missing something, or does this routine not work as I expected. As always, speedy answers are very much appreciated, but I shall refrain from using caps and exclamation marks in the subject line ;-) J. -- Justin Rowles E-Delivery Team C478 We live to serve *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: What is the current state of response.encodeURL?
I get a URL with a semi-colon separating the JSessionID declaration from the rest of the URL. OK, so far so odd. I forgot to mention that clicking on this link produces an apache error: The requested URL /test.jsp;jsessionid=pgutcltep1 was not found on this server So it isn't functional for me as is. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Apache JSP compilation error
For some reason i'm getting a class not found exception for a Vector Better stfw for where you find Vector then! Generated servlet error: T:\Tomcat\work\www.myonlineshop.com\shop\basket_0005fedit_0005 fdetails_0005f content$jsp.java:128: Class org.apache.jsp.Vector not found. I'll give you a clue: import java.util.* ;-) J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Apache JSP compilation error
Yeah, seemed too obvious though. It works on the other server we are running here and the codes no different. Still, works now. Bargin. Are you sure?! Try copying one across to the other, just for me ;-) The difference is likely to be in the list following the import tag in the %@ ... % section (usually first thing in the code). J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Auto starting Tomcat during boot?
I've just installed Tomcat 4.0.1 on my Red Hat 7.2 Linux box. Everything works fine but Tomcat won't auto start after a reboot. I added a symbolic link to the Catalina.sh file in my rc3.d level. ln -s /usr/local/bin/tomcat/bin/Catalina.sh S99tomcat If you have a look at the startup files in /etc/rc.d/init.d/ then you will get more of an idea of what you should do. Your S99tomcat (capital S btw), should then point to a startup file you make in init.d which will call Catalina.sh if it gets a parameter of start. The init sequence will call each S... file in rc3.d with a parameter of start when you boot into runlevel 3. You may need to use nohup (http://www.opengroup.org/onlinepubs/7908799/xcu/nohup.html) or similar to start tomcat without it being terminated automatically. Read more on Sys V style startup code for details. HTH. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: tomcat startup script (AW: Auto starting Tomcat during boot?)
I was wondering why you can't just add a symbolic link in the rc3.d point to Catalina.sh, startup.sh or shutdown.sh. I tried linking those files but it still doesn't work after I restarted the server? Possibly because Catalina.sh then gets a parameter of start? I dunno though, only guessing. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: URGENT! PLEASE..
Btw, what does 10x2 all mean?? It means thanks as in ten-x (say it, then realise how lame it is). I worry about the mental health of people who use that sort of thing myself... ;-) J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Free Firewall Solution - Smoothwall
As long as you don't need support. hehe. Lots of people are using it, and no-one's needed any yet ;-) J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4 integration with apache
me too!:) For Pete's sake, I reckon the lad that offered has got the message. Vinay, please write up and post a simple HOWTO. 'Many people' will clearly appreciate it. 'Many people', please stop sending aol Me too /aol! Cheers, Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
FW: Tomcat 4 integration with apache
Kindly sent by Mr Peter Burgess, for those needing a guide to the above. -Original Message- Hi, I noticed your posting on the tomcat-user list via the mail archives (I'm not directly subscribed myself) - this should answer your problem: http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml Please post to the list so this information can be shared Thanks, Peter *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: whine/
RTFM Read the (friendly) manual. For this and any other acronym questions, go to google and type in (say) RTFM and acronym. You'll find it in no time. Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: black magic mystery
I have never used a debugger for java before, can gdb be used on java? strange. AIUI gdb can be used on anything that is gdb compliant. It uses an API to talk to the debugger, rather than gdb taking over the program. I may be subtly wrong, but you get the idea. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: AW: Classloader question
Servlet containers look for JAR files, not ZIP files. Why Oracle persists in shipping their JDBC drivers in ZIP format is a mystery to me -- but the complaints should go to them. As I understand it, .zip files can be renamed to .jar files without a problem. The manifesto is missing, but it works anyway. Anyone ever tried? J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: AW: Classloader question
I tried and it works. The manifest isn't used here so you can only rename the file. If you want to be clean you must unzip the file and recreate the jar but it's pointless. Thanks for that - that was my understanding. Nice to have it confirmed. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Illegal State Exception - Even more!
AH! *So*, the theory here is that I am generating more than the 8kb of data, which is being autocommited to the browser, then an error occurs and the servlet cannot send the error, but instead raises this exception. Got it. In fact, I write a large form back in html. If the last element were to be null, and I try to write out a value thus: Sadly, I raised the memory to 500kb, carried on developing and just got this a fwe minutes ago: Error: 500 Location: /pod_users/justin/jsp/form.jsp Internal Servlet Error: java.lang.IllegalStateException: Response has already been committed at org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletRespon seFacade.java:157) at org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:377) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:156) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338 ) at java.lang.Thread.run(Thread.java:484) Which again leaves me none the wiser in terms of tracing the error. HOWEVER I have just had a realisation. I had just altered and rebuilt some of the classes that operate behind the scenes and one of them had failed and so wasn't present in the .jar file. I corrected it and rebuild the .jar and the error went away. Now, I would have expected an error about not being able to instantiate the class, but the above is what I got (simply reproduceable too I should think). Is this a bug? I guess not, just a feature of how the containter falls over when you pull the rug out from under its feet. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Illegal State Exception - Even more!
The increase in memory probably didn't affect the buffer size. For JSP, the JspWriter's buffer may be increased with: %@ page buffer=size % Whoops, didn't say what I meant. That (the above) is exactly what I did - to 500kb I can get a Response has already been committed exception at will by compiling the jsp, then removing a class file from a jar. Putting the class file back in the jar again removes the error. Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Can you view SSL without the https prefix?
I can change any references internal to my system (index.html, etc) to use https, but some clients have bookmarked the servlet page, rather than the access page. Is there a way to redirect http://xx.xx.xx.xx:8080/index.html; to *actually* call up the page https://xx.xx.xx.xx:8080/index.html; ? Can't you make whatever handles the http requests on 8080 return a redirect to the same page but with an https protocol request? J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Code request; Code to reveal a DB schema
I'm looking for some dynamic code that will reveal all libraries, files, fields in a DB Does anyone have an example or can you point me in the right direction? *Totally* DB specific. For Oracle try searching http://technet.oracle.com; for anything else try asking on a database list? ;-) J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Code request; Code to reveal a DB schema
I'm looking for some dynamic code that will reveal all libraries, files, fields in a DB Does anyone have an example or can you point me in the right direction? java.sql.DatabaseMetaData is your friend! Wow! I didn't know that, ta! Apols for the previous wrong answer then. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: VERY VERY URGENT!!!!
1. I want the Jakarta service keep functioning when an user logoff from NT (now it is stopping). Start -Settings -Control Panel -Services -Jakarta -Settings (or something like that) -Run as... Enter administrator and the admin password. Then it will run as admin and continue when you log off. NOTE: If the admin password is changed the services will not start until the password is changed as above to match. This is because NT doesn't really have suid root. Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Illegal State Exception
At intervals I get this error (or very similar). I have previously got rid of it by removing what I last did! Last time, it appeared to be caused by calling the first() method on a ResultSet. This time I have made several changes and have no idea what the cause is. How can I pursue it through my code from the information I have below? Justin. -- You're only jealous cos the little penguins are talking to me. Error: 500 Location: /pod_users/justin/jsp/form.jsp Internal Servlet Error: java.lang.IllegalStateException: Response has already been committed at org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletRespon seFacade.java:157) at org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:377) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:156) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338 ) at java.lang.Thread.run(Thread.java:484) *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Illegal State Exception - Further information.
At intervals I get this error (or very similar). I have previously got rid of it by removing what I last did! I have commented out all my recent additions, and the system worked again. I then uncommented all my comments, one by one, and guess what? It still works. Anyone got any ideas? J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Illegal State Exception
You are doing something like res.getOutputStream().write(data); twice within the same request. This could be for several reasons and it general occurs when you include a page in your response and then try to use the above - you can do a response.isCommited() to check the state of the response. I don't use any output streams in the system. I don't use any includes. I do use a jdbc driver for mySQL and the problem could well be in there (both recent problems have occurred shortly after changes to the database access routines). Any further ideas? Mostly I would like to know any way that I can get enough information to trace the issue myself. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Contexts with relative and absolute DocBase?
Remember that TC is made in Java, the character \ is illegal, to do it you have to put C:\\Temp, the same as String x = \n; Better still, use Unix notation: C:/Temp J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Contexts with relative and absolute DocBase?
Yes, is true, it is supported in java.io.File class, bur remember, the other will be faster for the platform, at the end, the runtime will convert C:/Temp to C:\Temp, it is the platform specification :-), Faster by 1ns at process startup only. Now, compare that to the time lost by bad config? Always use Unix notation. Better still, always use Unix ;-) J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC Driver for MS SQL Server
They have a complete JDBC 2.0 complaint jdbc-odbc driver. This will allow you to work with SQL Server or access from linux, solaris or windows. Be aware that the jdbc-odbc bridge is serialised (cos odbc is single-threaded). So if you want multiple concurrent accesses then that isn't an option. Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[Offtopic] RE: JDBC Driver for MS SQL Server
I certainly agree on this opinion! I got bloody knuckles from the MS driver (really just OEM'd from Merant before they spun off). bigint didn't work at all right out of the gate. How many other bugs are lurking if such an obvious one made it through the extensive QA process? According to the current /. [slashdot.org] front page, a member of Al-Qaeda is claiming that MS was infiltrated and that there are deliberate bugs and trapdoors in XP. Microsoft says that the their extensive QA process hasn't picked up anything. Open source is safer for your critical applications. Apache, Tomcat, GNU et al are great. J. This message was brought to you by Fear, Uncertainty and Dubya. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3, Apache 1.3.22, and Windows NT
Which version of Apache? I think there was one version that wasn't happy with back slashes '\'. You could try forward slashes '/'. AFAIK, all versions require use of / not \ which is treated as an escape character (as per Unix text specs). Oh, if only everyone would come over to the one true OS - UNIX - all this difficulty would be gone! J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3, Apache 1.3.22, and Windows NT
I think from around Apache 1.3.12, it would tolerate back slashes in file names on Windows systems. I believe it may have been Apache 1.3.14 that had a bug such that drive letter:\rest of path wasn't recognized as being an absolute path and try to use it as a relative path. Still, it is better to use Apache's preference, '/'. I have been caught out on this, even on recent versions, by specifying: d:\address\ in the file (by accident). The last two chars - \ - are then interpreted as an escaped double quote, leading to errors such as: Could not locate file d:/addresstest.jsp This took me a good while to work out! Use /! Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Apache + mod_jk (ajp13) + Tomcat: no Expires header in the response
Tomcat can serve static resources just fine. The only question is, which way supports the minimum performance standard that you need? If it does, you should set things up that way. Apologies - I was working on the assumption that the questioner was using TomCat under Apache already (as I expect most people are). I totally agree with your comments. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Servlets and memory usage.
1. If Java throws an OutOfMemoryException, there is no more memory to collect. Java guarantees that before the exception is thrown the garbage collector has run. If you get these exceptions then you still have references to the memory. Hmmm. I know this is in the spec, but I am not convinced that it works perfectly. Our application was load tested recently and suffered from this exception. I added a piece of code that calls system.gc() if the free/avail memory 20%. This code is run at the end of each users call to our jspService in our main jsp. We ran the load test again and did not get the exception. *No* other changes were made. Timeout was not reduced, *nothing*, repeat *nothing* else was changed. My conclusion was that the gc needs a small amount of memory *in* the *sandbox* to run, so if you leave it too late (we were eating memory at a hell of a rate) it is not possible. I appreciate that this is not necessarily a correct conclusion! J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: can't have multiple occurrences of language
I've just moved a system of ours from Jrun to Tomcat. A page which did run on Jrun now come comes up with this error on Tomcat : 'Page directive: can't have multiple occurrences of language'. Can anybody help? Duncan, also known as Andy, Have you checked that you don't have multiple occurrences of the language directive?! It looks like this: %@ page language=java Cheers, apols for the sarcasm, I'm in a funny mood. Well, I think so ;-) J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Apache + mod_jk (ajp13) + Tomcat: no Expires header in the response
In general I agree with you and I never put static HTML pages under Tomcat, but the pages I'm talking about now are created by Tomcat itself after invoking a servlet to store the result of the invocation... I didn't like the idea that Tomcat would had saved these HTML files under Apache DocumentRoot... That's what I'd do. Tomcat's not intended to be anything like Apache when serving static stuff, so you might as well not give it the job. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: SESSION Poblems
In wich file is setted the time witch the session remains valid without any operations made in my web-app. In my case, if I login to my application and I stay logged in without doing nothing for a half an hour (30 min) I lose the session and I have to login again (to initiate a new session for my web application). Look for session-timeout (I think) in web.xml (I think!). However, I find that that doesn't take effect, so I set it in the jsp file with this: request.getSession().setMaxInactiveInterval(TIMEOUT_SECONDS); There is, however, *no* way to set it to never timeout. Well, according to the jsp spec, anyway. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Mailing list question
What sort of turn-around time do you guys (and gals) usually see on messages? Up to a couple of hours. I'm in the UK, I don't know where the mailing list server is physically though. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3, server.xml and a lot of fun
webapps should never have made it into the spec. Name three well known web sites running in a mass virtual hosted environment and deployed as webapps with a web.xml file to boot ! Hell, name *any*. We're the main european hub for bioinformatics research and resources, the fact that webapps exist and can be packaged is incredibly useful to us. Missed this earlier... We at the Ordnance Survey UK find this a very useful thing too. Saying ASP did it like that and it was better is quite amusing though. It makes me think he must have been trolling, cos he can't have been serious ;-) Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Known Memory clean-up issues?
NOW, does anyone know when the damn jspDestroy method should be invoked?! PLEASE! From the JavaDoc for javax.servlet.jsp.JspPage (version 2.2): jsp_destroy() is invoked when the JspPage is about to be destroyed (I believe that the underscore is a typo.) A JSP is only destroyed when unloaded - when its about to be recompiled or the server is shutting down. The spec allows JSPs to be unloaded whenever the server wants to, but Tomcat doesn't do that. Thanks Randy. My problem turned out to be lack of understanding on my part[1]. A jsp class in not instanciated for each session, but only for the application as a whole. The jspService method is then entered in a separate thread for each user. Hence I only see it removed from memory when a new version is loaded. Justin. [1] There's a surprise ;-) -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to prevent access to the content of a folder?
If I direct the browser to http://localhost:8080/app1/images I'll have access to the contents of this directory. Is there a way to prevent this from happenning? Include an absolute path reference and file in the default page list: default.htm index.htm /other_stuff/sod_off.htm This means that in the absence of a specified file, the server will look for default.htm, then index.htm, then will go to /other_stuff/ and show the file sod_off.htm which should say something like We don't allow directory listings here. Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Please Help : Use MySQl
I use Tomcat 4.0.1, Apache 2.0.28, Mysql 3.22 and solaris 8, and need conect with database, please help with this configration. We'll need more information! What exactly are you having problems with? In the meantime, this should help: The JDBC mySQL drivers are available on Sourceforge (search for them). The code looks something like this: try { Class.forName(org.gjt.mm.mysql.Driver); } catch(ClassNotFoundException ce) { System.out.write(Unable to locate driver class for database: + ce); throw(ce); } try { connection = DriverManager.getConnection(jdbc:mysql://localhost:3306/gam?user=xxxpasswo rd=yyy); } catch(SQLException se) { System.out.write(EsriukDataPool - Unable to initiate connection: + se); throw(se); } HTH. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3, server.xml and a lot of fun
Please don't top post. Replies go under the original post. Only MS weenies with MS outlook top post. Agreed. Ok. I am going to rant here. You want to complain? About a free product?! *Do* something *constructive* instead, like help with the project or the documentation. Enough said. No flaming, no name-calling. Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3, server.xml and a lot of fun
OK. Let's be constructive. Let's say I'm a newcomer to Tomcat, just as I was a couple of months ago... How am I supposed to write docs? You're not. You're supposed to hang out on lists like this one till you know what you are doing and then write docs. Complaining that no-one has done is useless. OTOH, now I am more experienced, I am head-strong, I WANT TO SEE THIS WORK. Could someone attend to my problems and in exchange I'll write about my epic ventures into Tomcat virtual hosting, connecting to Apache, etc.? I'm prepared to make a deal. I think the voluntary principle of this sort of project is passing you by ;-) I suspect that very little work could produce a decent FAQ based on this list. Who knows, I might even do it myself one day. You're only jealous cos the little penguins are talking to me. Where is this from? Inside my head. Please don't nick it, it's personal to me. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Known Memory clean-up issues?
I checked my servlet code. It only allocates local variables within the request methods. So the JVM should be cleaning them up but it isn't. If I let my test run long enough, I can cause an OutOfMemory exception to be thrown by Tomcat. I logged memory usage on our system and graphed it. It went down to zero in a nice straight line and then the jvm started throwing outofmemory exceptions and all sessions got 500 errors... Any harm in forcing garbage collection to run? ...then I wrote a routine that calls system.gc() if the free/total is less than 20% and called it at the end of request processing. Now everything is fine and the graphs are really pretty dogtooth shapes. So: log, log and log again. Call System.gc() if you calculate that you need to, but tuning the jvm may be a better long term solution. NOW, does anyone know when the damn jspDestroy method should be invoked?! PLEASE! Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: When does jspDestroy actually run, and why doesn't it appear to be running at all?!
I'm re-sending this - can anyone please advise? Can anyone confirm that they get the jspDestroy method run at unload time? if the servlet itself is not loaded , then how do jspdestroy will get loaded No, no, it *is* loaded, and used for a bit, then timed out and - presumably - unloaded. However, I have a log to this effect in the jspDestroy method and I *never* see the log information (although the timeout works now). *So*, I wonder why I am not seeing it! How can I log the end of each user session, and possibly cause some code to run? J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Question about the calendar object
I think that the Calendar object behaves strange. Yes it does. http://java.sun.com/products/jdk/1.1/docs/api/java.util.Date.html Not really a Tomcat issue, though, is it? Justin. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: When does jspDestroy actually run, and why doesn't it appear to be running at all?!
I'm re-sending this - can anyone please advise? Can anyone confirm that they get the jspDestroy method run at unload time? J. -Original Message- I have a JSP class with a piece of code like this: %! public void jspDestroy() { ~~~code~~~ % The code performs some logging, which I want to use to check that sessions are timing out correctly. Timeout is set in the main body using this code: request.getSession().setMaxInactiveInterval(3); I do not see the logging when I have waited 3 minutes or when I have stopped the Tomcat service. Can anyone confirm that this is a correct approach for timeouts, and, more importantly that the jspDestroy method should be running and why it does not appear to be :( Thanks in advance. Justin. -- Justin Rowles E-Delivery Team C478 We live to serve *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
When does jspDestroy actually run, and why doesn't it appear to be running at all?!
I have a JSP class with a piece of code like this: %! public void jspDestroy() { ~~~code~~~ % The code performs some logging, which I want to use to check that sessions are timing out correctly. Timeout is set in the main body using this code: request.getSession().setMaxInactiveInterval(3); I do not see the logging when I have waited 3 minutes or when I have stopped the Tomcat service. Can anyone confirm that this is a correct approach for timeouts, and, more importantly that the jspDestroy method should be running and why it does not appear to be :( Thanks in advance. Justin. -- Justin Rowles E-Delivery Team C478 We live to serve *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]