AW: How t o find if Loadbalancing is happening...
Hi Vinay, here we are doing loadbalancing across several linux-machines. The check for the distribution of the loadbalancing, especially session-sticky, we did by watching the logfiles on each machine, when after and after different users enterd the main-server. Michael -Ursprüngliche Nachricht- Von: Vinay Singh [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 18. Dezember 2001 17:53 An: '[EMAIL PROTECTED]' Betreff: How t o find if Loadbalancing is happening... Hi All, How do I find, if mod_jk is doing load balancing properly with sticky sessions ??? I am trying to load balance between one instance of Apache 1.3.20 and a single Instance BUT two workers of Tomcat 3.3. I configured Ajp12 and Ajp13 workers and also a load balancer worker lb which uses ajp12 and ajp13. I am running examples context and it works fine, but I am not sure how to confirm if load balancing is happening. Vinay Singh Sapient New Delhi Cell : +91-9810530548 Home: +91-11-6287733 Virengeprüft vom G DATA AntiVirenKit -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Ever increasing heap size with Tomcat 3.2.3 !!!
Hi We have a similar problem with IBM JDK 1.3.0 (JIT enabled). I suggest to debug the garbage collector (gc) by turning on the -verbosegc command option. The garbage collecting activity will be written to stderr. In our case I suspect that it is JVM problem because the output shows that 90% heap is free, but still the OutOfMemoryException occurs sometimes. The exception occurs when the servlet application tries to allocate big amount of memory (5Mb). Even if we set the -Xmx128m and -Xms128m the error occurs, although the output shows that there is 90% (115Mb) free space in heap. I suspect that the OutOfMemoryError occurs because the heap gets too fragmented, therefore the gc can't allocate big sequential memory area. This makes me believe that the heap defragmentation process takes place very seldom. If big amount of memory is needed then it is allocated from the end of the heap, but if the heap size grows close to the maximum, then the exception occurs. Does anybody know if there is a way to force the defragmentation to occur more frequently? I have stress tested our application Sun JRE 1.2.2, and the OutOfMemoryError never occurred. With IBM JDK we minimized the occurrences of OutOfMemoryError by setting the -Xms64m and -Xmx128m. In this case the garbage collector keeps the heap size somewhere between min and max. Example from our log: 86% free (92324744/107150328). But if we generate too much load then we still get the OutOfMemoryError. But at the moment our application doesn't get so much load, so the OutOfMemoryExcpetions are rare. Would be very thankful if anybody could confirm/explain my suspicions, Tõnu -Original Message- From: Hawkins, Keith (Keith) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 7:34 PM To: [EMAIL PROTECTED]; tomcat-user Subject: Ever increasing heap size with Tomcat 3.2.3 !!! Hello, Before my manager insists that we switch to JRun, can any of the Tomcat developers help with a problem of an ever increasing heap size of the Tomcat java.exe. ?? (We are running Tomcat 3.2.3 and JRE1.3.1. and the IIS redirector) We are running a load test using LoadRunner scripts on some JSP and servlets that are running under Tomcat. The load is not all that heavy but the heap size of the Tomcat java.exe process keeps growing and growing. We modified the java command line to start with -Xmx128m to allow 128 MB of heap but we still max out after a day or so. We even modified one of our servlets to create a thread that runs Runtime.gc() every 30 seconds. The LoadRunner scripts just keep logging in the same 5 people via our authentication servlet so you would think memory use would level out at some point. Nothing we do seems to keep the heap size from growing. Are there known issues with Tomcat and heap size?? Doing a web search revealed numerous posts with people having similar problems so I believe there is a problem. The standard response these people receive is to increase the heap size via -Xmx But that seems like a band-aid rather than a real solution. That just delays the inevitable. Any insight as to how to keep the Tomcat process from grabbing more and more memory would be appreciated. Thanks, Keith -- 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
At 06:04 AM 19/12/01, you wrote: 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! -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 I'm still not sure if I understand ambiguity. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Ever increasing heap size with Tomcat 3.2.3 !!!
Remember that the heap is not the only place where memory is needed for the sun jdk. There is also the stacksize. (-Xss) I'm not shure if this applies also to the IBM JDK. -Ursprüngliche Nachricht- Von: Tõnu Põld [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 09:33 An: 'Tomcat Users List' Betreff: RE: Ever increasing heap size with Tomcat 3.2.3 !!! Hi We have a similar problem with IBM JDK 1.3.0 (JIT enabled). I suggest to debug the garbage collector (gc) by turning on the -verbosegc command option. The garbage collecting activity will be written to stderr. In our case I suspect that it is JVM problem because the output shows that 90% heap is free, but still the OutOfMemoryException occurs sometimes. The exception occurs when the servlet application tries to allocate big amount of memory (5Mb). Even if we set the -Xmx128m and -Xms128m the error occurs, although the output shows that there is 90% (115Mb) free space in heap. I suspect that the OutOfMemoryError occurs because the heap gets too fragmented, therefore the gc can't allocate big sequential memory area. This makes me believe that the heap defragmentation process takes place very seldom. If big amount of memory is needed then it is allocated from the end of the heap, but if the heap size grows close to the maximum, then the exception occurs. Does anybody know if there is a way to force the defragmentation to occur more frequently? I have stress tested our application Sun JRE 1.2.2, and the OutOfMemoryError never occurred. With IBM JDK we minimized the occurrences of OutOfMemoryError by setting the -Xms64m and -Xmx128m. In this case the garbage collector keeps the heap size somewhere between min and max. Example from our log: 86% free (92324744/107150328). But if we generate too much load then we still get the OutOfMemoryError. But at the moment our application doesn't get so much load, so the OutOfMemoryExcpetions are rare. Would be very thankful if anybody could confirm/explain my suspicions, Tõnu -Original Message- From: Hawkins, Keith (Keith) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 7:34 PM To: [EMAIL PROTECTED]; tomcat-user Subject: Ever increasing heap size with Tomcat 3.2.3 !!! Hello, Before my manager insists that we switch to JRun, can any of the Tomcat developers help with a problem of an ever increasing heap size of the Tomcat java.exe. ?? (We are running Tomcat 3.2.3 and JRE1.3.1. and the IIS redirector) We are running a load test using LoadRunner scripts on some JSP and servlets that are running under Tomcat. The load is not all that heavy but the heap size of the Tomcat java.exe process keeps growing and growing. We modified the java command line to start with -Xmx128m to allow 128 MB of heap but we still max out after a day or so. We even modified one of our servlets to create a thread that runs Runtime.gc() every 30 seconds. The LoadRunner scripts just keep logging in the same 5 people via our authentication servlet so you would think memory use would level out at some point. Nothing we do seems to keep the heap size from growing. Are there known issues with Tomcat and heap size?? Doing a web search revealed numerous posts with people having similar problems so I believe there is a problem. The standard response these people receive is to increase the heap size via -Xmx But that seems like a band-aid rather than a real solution. That just delays the inevitable. Any insight as to how to keep the Tomcat process from grabbing more and more memory would be appreciated. Thanks, Keith -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- 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]
Tomcat4 index.html redirection problem - different to 3.2.x
I have recently started using Tomcat 4.0.1 in preference to 3.2.x. I have noticed a difference in their behaviour which is causing me some problems. I am using Squid as a web cache. When I access a 'directory' URL, such as http://myhost/, then Tomcat serves the index.html file it finds in this directory. In fact I think that Tomcat is indicating a redirection to the originator. However, with Tomcat4 if I access the URL http://myhost/ through the Squid cache then the index.html redirection is not successful - the browser waits with the hourglass. If I do the same thing with a Tomcat 3.2.1 installation, through the same Squid cache, then everything works well. Note that the Tomcat4 http://myhost/ URL works fine if the cache is bypassed. There must be some difference between the way Tomcat4 and 3.2.1 are performing the index.html redirection. Whatever Tomcat4 is doing, it is confusing the cache. It's possible I have mis-configured the Squid cache, but then it works OK with Tomcat 3.2.1 and various other webservers I could lay my hands on. Can anyone shed any light on this. Any suggestions for a way of debugging. Thanks, Richard. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Code request; Code to reveal a DB schema
At least in some versions of sybase DatabaseMetaData.getColumns() doesn't work. We use the following as a workaround: select * from 'tablename' where 1 1 and use ResultSetMetaData to find the columns. Dirty trick, but works with any database we tested (Adabas D, Oracle 8i, Sybase ASA, Interbase, Cloudscape, Instant DB, Postgres, MS SQL) -Ursprüngliche Nachricht- Von: Jim Cheesman [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 09:42 An: Tomcat Users List Betreff: Re: Code request; Code to reveal a DB schema At 06:04 AM 19/12/01, you wrote: 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! -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 I'm still not sure if I understand ambiguity. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Tomcat4 index.html redirection problem - different to 3.2.x
AFAIK tomcat 3.x didn't do a HTTP redirect but served the file direct. Tomcat 4 sends a HTTP redirect to the file. That might explain the cause for your symtoms. Why that confuses your squid in not clear to me. Your description sounds as if the squid doesn't forward the redirect response to the browser. -Ursprüngliche Nachricht- Von: Richard Conway [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 10:56 An: Tomcat User List Betreff: Tomcat4 index.html redirection problem - different to 3.2.x I have recently started using Tomcat 4.0.1 in preference to 3.2.x. I have noticed a difference in their behaviour which is causing me some problems. I am using Squid as a web cache. When I access a 'directory' URL, such as http://myhost/, then Tomcat serves the index.html file it finds in this directory. In fact I think that Tomcat is indicating a redirection to the originator. However, with Tomcat4 if I access the URL http://myhost/ through the Squid cache then the index.html redirection is not successful - the browser waits with the hourglass. If I do the same thing with a Tomcat 3.2.1 installation, through the same Squid cache, then everything works well. Note that the Tomcat4 http://myhost/ URL works fine if the cache is bypassed. There must be some difference between the way Tomcat4 and 3.2.1 are performing the index.html redirection. Whatever Tomcat4 is doing, it is confusing the cache. It's possible I have mis-configured the Squid cache, but then it works OK with Tomcat 3.2.1 and various other webservers I could lay my hands on. Can anyone shed any light on this. Any suggestions for a way of debugging. Thanks, Richard. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Contexts with relative and absolute DocBase?
Hi Craig, thanks a lot. It's working like this. Host name=localhost appBase=webapps debug=0 Context docBase=ROOT path=/ Context docBase=examples path=/examples/ Context docBase=tomcat-docs path=/tomcat-docs/ Context docBase=webdav path=/webdav/ Context docBase=C:/tmp path=/mywebapp / /Host Dieter. -Ursprüngliche Nachricht- Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 18. Dezember 2001 18:45 An: Tomcat Users List Betreff: Re: Contexts with relative and absolute DocBase? On Tue, 18 Dec 2001, Dieter Kaltenbach wrote: Date: Tue, 18 Dec 2001 10:32:37 +0100 From: Dieter Kaltenbach [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Contexts with relative and absolute DocBase? Hi, how can I use relative and absolute docBase-Context-settings for Contexts of the same Host? Something like this doesn't work. Host name=localhost appBase=webapps debug=0 Context docBase=ROOT path=/ Context docBase=examples path=/examples/ Context docBase=tomcat-docs path=/tomcat-docs/ Context docBase=webdav path=/webdav/ So far, these are all relative and should work fine. Context docBase=C:\tmp path=/mywebapp reloadable=true/ Windows is notorious for messing up paths -- try c:\\tmp or c:/tmp as well. /Host I don't want to create another host nor put my webapps to the tomcat webapps directory but to my own directory tree. The other othing you can do is look in the log files to see what errors Tomcat is complaining about -- it *might* be something unrelated. You can post the relevant portions of the logs here if needed. Thanks, Dieter. Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RMI error (SocketException: socket write error) on Tomcat 4.0, NT4/Win2K
Hi, -- Environment -- I am running Tomcat 4.0.1 on NT4 with JDK1.3.0. -- Error Symptom -- I have a servlet that makes RMI calls to an RMI server process (non EJB) on the same machine. It used to work fine on Tomcat 3.2.3 and Tomcat 3.3 but when we switched to Tomcat 4.0 it stopped working. The servlet looks-up the RMI server object successfully but fails as soon as it tries to invoke an RMI method with this exception: java.net.SocketException: Connection aborted by peer: socket write error [See end of message for full stack trace] At first we suspected it had to do with the policy file but we have ruled that out because we are NOT running with the -security option and the error doesn't seem to point to a security or permission problem. It also doesn't seem like a CLASSPATH problem because everything else (including the RMI lookup) works fine. I have scoured the web for a solution but found only an identical question on comp.lang.java with no reply. Is Tomcat 4.0 doing anything different with RMI? Is JNDI or EJB somehow involved here by default? We don't use either of these. Any help would be much appreciated! cheehan -- Stack Trace -- java.rmi.MarshalException: error marshalling arguments; nested exception is: java.net.SocketException: Connection aborted by peer: socket write error java.net.SocketException: Connection aborted by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:72 ) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:116) at java.io.ObjectOutputStream.drain(ObjectOutputStream.java:1477) at java.io.ObjectOutputStream.setBlockData(ObjectOutputStream.java:1500) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:407) at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:268) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:106) at hello.ExecuterImpl_Stub.execute(Unknown Source) [...] at hello.ServletA.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve .java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterVa lve.java:324) at org.apache.catalina.valves.RemoteHostValve.invoke(RemoteHostValve.jav a:131) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566)
RE: Tomcat4 index.html redirection problem - different to 3.2.x
As far as I can tell, Tomcat 3.2.1 *is* doing a redirect. Two things draw me to this conclusion: 1. The squid log appears to indicate a GET... ---snip--- 2001/12/19 10:58:24| The request GET http://cp1105:8080/ is ALLOWED, because it matched 'all' 2001/12/19 10:58:24| carpSelectParent: CARP Calculating hash for http://cp1105.vega.co.uk:8080/ 2001/12/19 10:58:24| fwdServerClosed: FD 13 http://cp1105.vega.co.uk:8080/ 2001/12/19 10:58:24| The request GET http://cp1105.vega.co.uk:8080/index.html is ALLOWED, because it matched 'all' 2001/12/19 10:58:24| The request GET http://cp1105.vega.co.uk:8080/tomcat.gif is ALLOWED, because it matched 'all' 2001/12/19 10:58:24| The request GET http://cp1105.vega.co.uk:8080/tomcat-power.gif is ALLOWED, because it matched 'all'---snip--- 2. The browser address box shows http://cp1105.vega.co.uk:8080/index.html even though index.html was not explicitly asked for. Just incase there are any squid experts out there, here is the squid log I get for the failed Tomcat4 behaviour... ---snip--- 2001/12/19 11:13:24| The request GET http://cp1105:8000/ is ALLOWED, because it matched 'all' 2001/12/19 11:13:24| carpSelectParent: CARP Calculating hash for http://cp1105.vega.co.uk:8000/ 2001/12/19 11:13:24| fwdServerClosed: FD 10 http://cp1105.vega.co.uk:8000/ ---snip--- I don't know the difference between FD13 and FD10 but clearly the two Tomcats are behaving differently. Richard. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 10:12 AM To: Tomcat Users List Subject: AW: Tomcat4 index.html redirection problem - different to 3.2.x AFAIK tomcat 3.x didn't do a HTTP redirect but served the file direct. Tomcat 4 sends a HTTP redirect to the file. That might explain the cause for your symtoms. Why that confuses your squid in not clear to me. Your description sounds as if the squid doesn't forward the redirect response to the browser. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.0.1 and Cold Fusion 5 Server
Cold Fusion 5 Server is installed on our new RH 7.2 machine. I'd like to install Tomcat 4.0.1, too. Is this problemfree possible or do I have to expect heavy software conflicts. Thank you for some advice. --Mark -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Tomcat4 index.html redirection problem - different to 3.2.x
I think FD is just the short cut for file descriptor. If I'm right the squid log is 'talking' about two different file desscriptors. May be you should have a look with tcpdump what the two tomcats are responding. -Ursprüngliche Nachricht- Von: Richard Conway [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 12:16 An: Tomcat Users List Betreff: RE: Tomcat4 index.html redirection problem - different to 3.2.x snip/ I don't know the difference between FD13 and FD10 but clearly the two Tomcats are behaving differently. snip/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Problem in Installing Tomcat 4.0 in Tru64 Unix
I'm installing Apache Tomcat 4.0 in Tru64 Unix. I downloaded jakarta-tomcat-4.0.1.tar.gz and successfully unpack it. When I execute the command ./startup.sh which startup Tomcat, the following messages appeared; Using CLASSPATH:/tomcat/jakarta-tomcat-4.0.1/bin/bootstrap.jar:/usr/opt/java122/li b/tools.jar Using CATALINA_BASE: /tomcat/jakarta-tomcat4.0.1 Using CATALINA_HOME: /tomcat/jakarta-tomcat4.0.1 Using JAVA_HOME: /usr/opt/java122 I had problems with startup script, it wasn't including config conf/server.xml directive, but I solved it, eventually. Check whether Tomcat is running at all: ps -A | grep java, you should see a line like this: /usr/opt/java130/bin/alpha/native_threads/java -classpath /usr/local/java/tomcat-4.01/bin/bootstrap.jar:/usr/opt/java130/lib/tools.jar -Dcatalina.base=/usr/local/java/tomcat-4.01 -Dcatalina.home=/usr/local/java/tomcat-4.01 org.apache.catalina.startup.Bootstrap -config /usr/local/java/tomcat-4.01/conf/server.xml start The problem is after startup the default applications included with Tomcat 4.0 wasn't available for browsing. When I entered in Netscape http://localhost:8080/ the following error appeared: You can always try telnetting to port 8080 and issuing HTTP commands directly: -- Mercury:/# telnet localhost 8080 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET / HTTP/1.0 Host: localhost -- This is the response you should get: -- HTTP/1.1 302 Moved Temporarily Content-Type: text/html Date: Wed, 19 Dec 2001 12:14:33 GMT Location: http://localhost:8080/index.html Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector) Connection: close htmlheadtitleApache Tomcat/4.0.1 - Error report/titleSTYLE!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --/STYLE /headbodyh1Apache Tomcat/4.0.1 - HTTP Status 302 - Moved Temporarily/h1HR size=1 noshadepbtype/b Status report/ppbmessage/b uMoved Temporarily/u/ppbdescription/b uTheConnection closed by foreign host.rily) has moved temporarily to a new location./u/pHR size=1 noshade/body/html -- Netscape is unable to locate the server keyword:netscape.com Please check the server name and try again. Is Netscape working for other URLs? It sounds as if it is misconfigured or at least unable to reach Internet/DNS. Nix.
RE: Tomcat 3.3 vs. 4.0: TELL US NOVICES WHAT IS GOING ON
TC 3.x supports one version of the JSP/Servlet spec and TC 4.x support a later version. Due to a number of reasons, the developers decided to start developing TC 4 from scratch. TC 3.x was already well under way so they have a huge head start. Assuming that web developers (that's us) want to use the new releases of JSP and servlets, then the support for TC 3.x will wane and eventually stop with all of the developers moving over to TC 4. Really, the Jakarta guys (who do an excellent job, by the way) have two quality products, each supporting a different version of the JSP/Servlet specs. One has just been under development longer. Randy -Original Message- From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 4:48 PM To: Tomcat Users List Subject: Tomcat 3.3 vs. 4.0: TELL US NOVICES WHAT IS GOING ON At 01:13 PM 12/18/01 -0800, you wrote: Unfortunately, Tomcat 4.x doesn't support load-balancing, yet -- even with mod_jk. So, if you need it, you should stick with 3.3. Thanks, --jeff What is going on with 3.3 and 4.0? Are there two camps in Tomcat? Is there a battle to see which is going to win? Why is 4.0 an extension of 3.2 and what is 3.3 all about? I need to know what the plans are in order to make some significant decisions. Can someone tell me what is happening, or direct me to a place to find out? Thanks. Micael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
mod_jk for NT and EAPI
Hi, does somebody has compiled mod_jk with EAPI for NT and could share this one with me ? :-) Until now I didn't manage to compile it on my own and I've mod_ssl installed with Apache1.3.22 (NT) and the start-up states: ...[Wed Dec 19 13:35:23 2001] [warn] Loaded DSO modules/mod_jk.dll uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)... Thanx Oliver P.S.: Sorry, but I'm too old for C+ with NT :-) AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ Konfiguration: mod_jk - Win32 Release Kompilierung läuft... jk_jni_worker.c C:\tomcat3.3\jakarta-tomcat-3.3-src\src\native\mod_jk\common\jk_jni_worker.c (67) : fatal error C1083: Include-Datei kann nicht geoeffnet werden: 'jni.h': No such file or directory mod_jk.c Fehler beim Ausführen von cl.exe. mod_jk.dll - 1 Fehler, 0 Warnung(en) Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. --- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: mod_jk for NT and EAPI
I have the same problem with mod_webapp! I have Apache 1.3.22 on Win2k and I do not manage to compile with the -DEAPI option... Diego -Message d'origine- De : Lauer, Oliver [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 19 décembre 2001 13:36 À : Tomcat Users List (E-Mail) Objet : mod_jk for NT and EAPI Hi, does somebody has compiled mod_jk with EAPI for NT and could share this one with me ? :-) Until now I didn't manage to compile it on my own and I've mod_ssl installed with Apache1.3.22 (NT) and the start-up states: ...[Wed Dec 19 13:35:23 2001] [warn] Loaded DSO modules/mod_jk.dll uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)... Thanx Oliver P.S.: Sorry, but I'm too old for C+ with NT :-) AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ Konfiguration: mod_jk - Win32 Release Kompilierung läuft... jk_jni_worker.c C:\tomcat3.3\jakarta-tomcat-3.3-src\src\native\mod_jk\common\jk_jni_worker.c (67) : fatal error C1083: Include-Datei kann nicht geoeffnet werden: 'jni.h': No such file or directory mod_jk.c Fehler beim Ausführen von cl.exe. mod_jk.dll - 1 Fehler, 0 Warnung(en) Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. --- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Clear Cache In IE5
Hello all, This is a little bit off topic. Can you tell me how can I clear the cache in IE so that I can see the change I've in made in my webapp after invoking TomCat4.0 again? Thanks in advance. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
VERY VERY URGENT!!!!
Hi to all! I have an problem and I'm running out of time: I have an jakarta-tomcat-3.3-m4 running as an service on an NT 4.0 server. 1. I want the Jakarta service keep functioning when an user logoff from NT (now it is stopping). 2. I want to set the timeout of the session to 1 hour or more (now, if I let any webappication open without doing nothing, after 30 minutes I loose the server session and all the variables from it). Thanks 2 all for any suggestion you may have! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Clear Cache In IE5
1)Tools/Internet Options/Temporary Internet Files/Settings/Every Visit to the Page. 2)Tools/Internet Options/Temporary Internet Files/Delete Files/All offline content. And after Refresh for every page. Do it, I had that problem before and more if you use any caching server like squid, etc. Guido -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 5:07 PM To: [EMAIL PROTECTED] Subject: Clear Cache In IE5 Hello all, This is a little bit off topic. Can you tell me how can I clear the cache in IE so that I can see the change I've in made in my webapp after invoking TomCat4.0 again? Thanks in advance. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: mod_jk for NT and EAPI
Hi Diego, at least there's someone else on this earth who has the same problem as I have :-)) Did you encounter any problems working with this warning ? Sometimes I get exceptions in apache.dll (Access violation). Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Diego Castillo [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 14:19 An: Tomcat Users List Betreff: RE: mod_jk for NT and EAPI I have the same problem with mod_webapp! I have Apache 1.3.22 on Win2k and I do not manage to compile with the -DEAPI option... Diego -Message d'origine- De : Lauer, Oliver [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 19 décembre 2001 13:36 À : Tomcat Users List (E-Mail) Objet : mod_jk for NT and EAPI Hi, does somebody has compiled mod_jk with EAPI for NT and could share this one with me ? :-) Until now I didn't manage to compile it on my own and I've mod_ssl installed with Apache1.3.22 (NT) and the start-up states: ...[Wed Dec 19 13:35:23 2001] [warn] Loaded DSO modules/mod_jk.dll uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)... Thanx Oliver P.S.: Sorry, but I'm too old for C+ with NT :-) AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ Konfiguration: mod_jk - Win32 Release Kompilierung läuft... jk_jni_worker.c C:\tomcat3.3\jakarta-tomcat-3.3-src\src\native\mod_jk\common\jk_jni_worker.c (67) : fatal error C1083: Include-Datei kann nicht geoeffnet werden: 'jni.h': No such file or directory mod_jk.c Fehler beim Ausführen von cl.exe. mod_jk.dll - 1 Fehler, 0 Warnung(en) Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. --- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. --- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod_jk for NT and EAPI
I have a compiled version of mod_jk.dll that I have compiled with the EAPI option. Would you two like to have a copy of it. Let me know if you do. Pae I have the same problem with mod_webapp! I have Apache 1.3.22 on Win2k and I do not manage to compile with the -DEAPI option... Diego -Message d'origine- De : Lauer, Oliver [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 19 décembre 2001 13:36 À : Tomcat Users List (E-Mail) Objet : mod_jk for NT and EAPI Hi, does somebody has compiled mod_jk with EAPI for NT and could share this one with me ? :-) Until now I didn't manage to compile it on my own and I've mod_ssl installed with Apache1.3.22 (NT) and the start-up states: ...[Wed Dec 19 13:35:23 2001] [warn] Loaded DSO modules/mod_jk.dll uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)... Thanx Oliver P.S.: Sorry, but I'm too old for C+ with NT :-) AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ Konfiguration: mod_jk - Win32 Release Kompilierung läuft... jk_jni_worker.c C:\tomcat3.3\jakarta-tomcat-3.3-src\src\native\mod_jk\common\jk_jni_worker.c (67) : fatal error C1083: Include-Datei kann nicht geoeffnet werden: 'jni.h': No such file or directory mod_jk.c Fehler beim Ausführen von cl.exe. mod_jk.dll - 1 Fehler, 0 Warnung(en) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
No examples with 4.0.1 install on OSX
Hello everybody, Having successfully installed a 3.3 distribution of Tomcat on OSX10.1.1 I attempted a 4.0.1 install. However whilst the welcome page and manual pages are successfully displayed by Tomcat at 127.0.0.1:8080 the attempt to view any of the examples or servlets results in a 'Resource not available' 404 error message. I've checked the following: * The examples are in the web-apps directory of Tomcat home. * I've removed my old TOMCAT_HOME environment variable that pointed to the 3.3 distribution; and added a CATALINA_HOME variable pointed to the home of 4.0.1. * My JAVA_HOME variable is correctly set. * Running ./startup.sh appears to be fine. It reports where all the paths are; and as described above the home page displays correctly. * All the permissions on the examples directory are correctly set. * No errors are reported in the log. Has any one had any success with 4.0.1 on OSX? If so do they know why it might not be working for me? Thanks, Peter Flash Developer London, UK http://www.petescv.co.uk/ ___ The information in this email is confidential and is intended solely for the addressee(s) and access to this email by anyone else is unauthorised. If you are not the intended recipient then any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs
There is a little documentation about this, which is found at the following online locations. Context configuration: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#context_addcust Apache mod_jk.conf generation: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#ApacheConfig The result is that a virtual host configuration like: ?xml version=1.0 encoding=ISO-8859-1? Server Host name=virtual.host.name address=xx.xx.xx.xxx Alias name=virtual.host.alias / Context path=/myapp docBase=webapps/myapp / /Host /Server results in the following in the conf/auto/mod_jk.conf generated by the ApacheConfig module: NameVirtualHost xx.xx.xx.xxx VirtualHost xx.xx.xx.xxx ServerName virtual.host.name ServerAlias virtual.host.alias JkMount /myapp ajp13 JkMount /myapp/* ajp13 /VirtualHost When a request comes into Apache for this virtual host, mod_jk will include the ServerName, virtual.host.name, in the forwarded request. On the Tomcat 3.3 side, this server name is used in the mapping so that the request will only map against contexts defined for that virtual host. What I don't know is how the ServerName value would be used by Tomcat 4.x. It might have the same effect for virtual hosts configured in Tomcat 4.x, but I haven't investigated this yet. Future connector work is happening in the jakarta-tomcat-connectors project. Bill Barker has added org.apache.ajp.tomcat4.config.ApacheConfig and others to jakarta-tomcat-connectors/jk/java, so there will likely be something available in Tomcat 4.0.2 and Tomcat 4.1 when they are released. Cheers, Larry -Original Message- From: Noel J. Bergman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 4:02 PM To: Tomcat Users List Subject: RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs Larry, Perhaps if you provide your Tomcat 3.3 solution(s), we could see how they might apply to Tomcat 4? Whom would know Tomcat 4? --- Noel -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Hi Noel, Unfortunately my knowledge of Tomcat 4.x internals is still fairly limited, so I can't be of much help at this point in time. My primary experience in this area was getting a suitable conf/auto/mod_jk generated by Tomcat 3.3 when using virtual hosts. Cheers, Larry -Original Message- From: Noel J. Bergman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 3:31 PM To: Tomcat Users List Subject: RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs Larry, The desired target is Tomcat 4.X. The revision of Apache is of less issue, so for the moment I can install whichever one is best able to provide a working solution. Right now, we're running Apache 1.3 and JServ with one JVM per virtual host. Each JVM runs under an appropriate UID for that virtual host. Our specific interest is to upgrade the web application environment while preserving the isolation between virtual hosts. --- Noel -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] It wouldn't hurt to mention which version of Apache and which version of Tomcat. Regrettably the time I have available to answer questsions (mostly 3.3 and 3.2.x related) is limited. I am usually forced to skip questions that don't bother to mention which verstions are in use. Cheers, Larry -Original Message- From: Noel J. Bergman [mailto:[EMAIL PROTECTED]] I am STILL trying to find out how to configure Apache+Tomcat so that EACH virtual host has ITS OWN JVM. This seems to be a fairly common question, but no one seems willing to actually answer it. Ideally we want some means that works well with the perchild module, so that not only is each virtual host assigned its own privileges under Apache, but each JVM is also restricted to the privileges available to that uid. Thanks! :-) --- Noel -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: VERY VERY URGENT!!!!
Hi, you can control the session-timeout via the web.xml file: web-app ... session-config session-timeout10/session-timeout /session-config ... /web-app this sets session timeout to 10 minutes. You can also use: HttpSession.getMaxInactiveInterval(); With the service problem: Perhaps you have to modify the rights for the user who starts the service. Perhaps its enough to start the service as an administrator. Bye Arndt -Ursprungliche Nachricht- Von: Catalin [mailto:[EMAIL PROTECTED]] Gesendet: Wednesday, December 19, 2001 10:14 PM An: [EMAIL PROTECTED] Betreff: VERY VERY URGENT Hi to all! I have an problem and I'm running out of time: I have an jakarta-tomcat-3.3-m4 running as an service on an NT 4.0 server. 1. I want the Jakarta service keep functioning when an user logoff from NT (now it is stopping). 2. I want to set the timeout of the session to 1 hour or more (now, if I let any webappication open without doing nothing, after 30 minutes I loose the server session and all the variables from it). Thanks 2 all for any suggestion you may have! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- 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]
AW: VERY VERY URGENT!!!!
Yes, I start it as administrator and it stays alive even if I log off. AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Teinert, Arndt [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 14:36 An: 'Tomcat Users List' Betreff: AW: VERY VERY URGENT Hi, you can control the session-timeout via the web.xml file: web-app ... session-config session-timeout10/session-timeout /session-config ... /web-app this sets session timeout to 10 minutes. You can also use: HttpSession.getMaxInactiveInterval(); With the service problem: Perhaps you have to modify the rights for the user who starts the service. Perhaps its enough to start the service as an administrator. Bye Arndt -Ursprungliche Nachricht- Von: Catalin [mailto:[EMAIL PROTECTED]] Gesendet: Wednesday, December 19, 2001 10:14 PM An: [EMAIL PROTECTED] Betreff: VERY VERY URGENT Hi to all! I have an problem and I'm running out of time: I have an jakarta-tomcat-3.3-m4 running as an service on an NT 4.0 server. 1. I want the Jakarta service keep functioning when an user logoff from NT (now it is stopping). 2. I want to set the timeout of the session to 1 hour or more (now, if I let any webappication open without doing nothing, after 30 minutes I loose the server session and all the variables from it). Thanks 2 all for any suggestion you may have! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. --- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: mod_jk for NT and EAPI
I do not get a warning myself, Apache refuses to start-up without mod_webapp being compiled with the -DEAPI option. I am currently using mod_proxy as a workaround, but I would rather use mod_webapp if I could find a version compatible with mod_ssl. Diego -Message d'origine- De : Lauer, Oliver [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 19 décembre 2001 14:17 À : 'Tomcat Users List'; '[EMAIL PROTECTED]' Objet : AW: mod_jk for NT and EAPI Hi Diego, at least there's someone else on this earth who has the same problem as I have :-)) Did you encounter any problems working with this warning ? Sometimes I get exceptions in apache.dll (Access violation). Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Diego Castillo [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 14:19 An: Tomcat Users List Betreff: RE: mod_jk for NT and EAPI I have the same problem with mod_webapp! I have Apache 1.3.22 on Win2k and I do not manage to compile with the -DEAPI option... Diego -Message d'origine- De : Lauer, Oliver [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 19 décembre 2001 13:36 À : Tomcat Users List (E-Mail) Objet : mod_jk for NT and EAPI Hi, does somebody has compiled mod_jk with EAPI for NT and could share this one with me ? :-) Until now I didn't manage to compile it on my own and I've mod_ssl installed with Apache1.3.22 (NT) and the start-up states: ...[Wed Dec 19 13:35:23 2001] [warn] Loaded DSO modules/mod_jk.dll uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)... Thanx Oliver P.S.: Sorry, but I'm too old for C+ with NT :-) AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ Konfiguration: mod_jk - Win32 Release Kompilierung läuft... jk_jni_worker.c C:\tomcat3.3\jakarta-tomcat-3.3-src\src\native\mod_jk\common\jk_jni_worker.c (67) : fatal error C1083: Include-Datei kann nicht geoeffnet werden: 'jni.h': No such file or directory mod_jk.c Fehler beim Ausführen von cl.exe. mod_jk.dll - 1 Fehler, 0 Warnung(en) Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. --- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction,
RE: JNDIRealm and Interbase - step 3
you must be sure that interserver is started and responding (try telnet localhost 3060 to test it). interserver is the server-side part of interclient. i'm afraid i've never used interbase with JDBCRealm so i cannot give you advice for that michael -Original Message- From: Diego Novati [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 11:47 PM To: Tomcat Users List Subject: Re: JNDIRealm and Interbase - step 3 Hi falks ! I solved the problem of step 2 copying interclient.jar in $CATALINA\common\lib and now I'm able to start Tomcat again. Now ther's the last problem: calling http://localhost:8080/manager/list I'm getting a HTTP 500 - Internal server error and in the catalina_log I have the following exception error: 2001-12-18 23:34:55 HttpProcessor[8080][4] process.invoke java.lang.NullPointerException at interbase.interclient.PreparedStatement.setString(PreparedStatement.java:979 ) at org.apache.catalina.realm.JDBCRealm.credentials(JDBCRealm.java:484) at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:376) at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:326) Anyting to suggest ? Is tehre someone who was able to use Interbase with Tomcat for JDNRRealm ? Thanks Diego - Original Message - From: Diego Novati [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 18, 2001 11:19 PM Subject: Re: JNDIRealm and Interbase - step 2 Hi, thanks for your tips. I downloded and installed Firebird InterClient 2.01 and corrected '\' with '/'. The problem is that nothing has changed Realm className=org.apache.catalina.realm.JDBCRealm driverName=interbase.interclient.Driver connectionName=SYSDBA connectionPassword=masterkey connectionURL=jdbc:interbase://localhost/C:/Program Files/Apache Group/Tomcat 4.0/DBUsers/DBUSERS.GDB userTable=USERS userNameCol=USER_NAME userCredCol=USER_PASS userRoleTable=USER_ROLES roleNameCol=ROLE_NAME/ and here's the exception: Starting service Tomcat-Standalone Apache Tomcat/4.0 Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: interbase.interclient.Driver LifecycleException: Exception opening database connection: java.sql.SQLException: interbase.interclient.Driver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218) Any ideas ? Thanks Diego - Original Message - From: Michael Weissenbacher [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, December 18, 2001 10:30 PM Subject: RE: JNDIRealm and Interbase beware of interclient 2.0, it has some serious memory leak. i advice you to you firebird 1.0.0 rc1 instead of interbase6 open source, it has fixed many bugs of the original borland open source version. look at http://firebird.sourceforge.net/ where you can also get interclient 2.01 without the memory leak. and it's possible to simply use / instead of \\ for the connection url in winnt. michael -Original Message- From: Guido Medina [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 10:13 PM To: 'Tomcat Users List' Subject: RE: JNDIRealm and Interbase Yes, it is a Java String problem, remember (again) that tomcat is made in java and a JVM is running, so instead of put \ you MUST put \\, that's it. Guido -Original Message- From: Diego Novati [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 5:13 PM To: Tomcat Users List Subject: JNDIRealm and Interbase Hi, I need to use Interbase 6.0 OpenEdition with JNDIRealm. Using InterClient 1.6 Tomcat start but throws an Exception during the Authentication; using InterClient 2.0 I'm not able to start Tomcat. Is there anyone who is able to use Interbase ? Tomcat 4.0.1 Interbase 6.0 InterClient 1.6/InterClient 2.0 server.xml: Realm className=org.apache.catalina.realm.JDBCRealm driverName=interbase.interclient.Driver connectionName=SYSDBA connectionPassword=masterkey connectionURL=jdbc:interbase://localhost/C:\Program Files\Apache Group\Tomcat
Tomcat 3.3 Testimonial
Hi! I want to tell you about my experience! I finish to migrate from 3.2.4 to 3.3 ( about 2 hours yesterday). I'm impressionated with its performance. My homepage receive 3000 hits per hours, and under 3.2.4 my servlet can't work, been replaced for a crontab every 5 min generating a static index.html. Now, with 3.3, my homepage'servlet work without problems! It's incredible! I'm using Linux Redhat 7.1, Blackdown java + ShudoJIT ( OpenJit don't work well with virtual host) , green threads (!) , as volano report suggest. Web Server : Apache + Mod_JK (Ajp13) + Tomcat 3.3 Others : Freemarker, Thin Oracle JDBC. My Server is a pentium III dual 800 Mhz and 1GB Ram, and only Java Blackdown with green theads had work. Sun HotSpot, JRockit 3.0 and IBM JDK fail! I guess that's its for the JDK Bug refered to Blocking IO. Blackdown it's very stable, but yesterday i get a Signal 11, and Tomcat died. I'm investigating , but that don't repeat until now. And it's a very low cost! That it's all! -- Mauricio Nuñez Gerente Técnico Chile.com [EMAIL PROTECTED] http://www.chile.com 3813636 anexo 231 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: VERY VERY URGENT!!!!
I would suggest that you read the mailing list archives, since this is a common problem with an easy solution (even though those presented so far are not correct). Hint, it involves editing the wrapper.properties file to include the command line switch that Sun provides to avoid this feature from JDK 1.3.0. Randy -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 8:40 AM To: 'Tomcat Users List' Subject: AW: VERY VERY URGENT Yes, I start it as administrator and it stays alive even if I log off. AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Teinert, Arndt [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 14:36 An: 'Tomcat Users List' Betreff: AW: VERY VERY URGENT Hi, you can control the session-timeout via the web.xml file: web-app ... session-config session-timeout10/session-timeout /session-config ... /web-app this sets session timeout to 10 minutes. You can also use: HttpSession.getMaxInactiveInterval(); With the service problem: Perhaps you have to modify the rights for the user who starts the service. Perhaps its enough to start the service as an administrator. Bye Arndt -Ursprungliche Nachricht- Von: Catalin [mailto:[EMAIL PROTECTED]] Gesendet: Wednesday, December 19, 2001 10:14 PM An: [EMAIL PROTECTED] Betreff: VERY VERY URGENT Hi to all! I have an problem and I'm running out of time: I have an jakarta-tomcat-3.3-m4 running as an service on an NT 4.0 server. 1. I want the Jakarta service keep functioning when an user logoff from NT (now it is stopping). 2. I want to set the timeout of the session to 1 hour or more (now, if I let any webappication open without doing nothing, after 30 minutes I loose the server session and all the variables from it). Thanks 2 all for any suggestion you may have! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. --- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: No examples with 4.0.1 install on OSX
I don't know much about mac X, but, did you check the hosts.allow and hosts.deny ? Maybe only 127.0.0.1 is allowed. Given this is unix for COMPLETE PC rookies (let alone unix rookies) they probably don't want people shooting themselves in the foot -Original Message- From: Peter Reynolds [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 8:34 AM To: '[EMAIL PROTECTED]' Subject: No examples with 4.0.1 install on OSX Hello everybody, Having successfully installed a 3.3 distribution of Tomcat on OSX10.1.1 I attempted a 4.0.1 install. However whilst the welcome page and manual pages are successfully displayed by Tomcat at 127.0.0.1:8080 the attempt to view any of the examples or servlets results in a 'Resource not available' 404 error message. I've checked the following: * The examples are in the web-apps directory of Tomcat home. * I've removed my old TOMCAT_HOME environment variable that pointed to the 3.3 distribution; and added a CATALINA_HOME variable pointed to the home of 4.0.1. * My JAVA_HOME variable is correctly set. * Running ./startup.sh appears to be fine. It reports where all the paths are; and as described above the home page displays correctly. * All the permissions on the examples directory are correctly set. * No errors are reported in the log. Has any one had any success with 4.0.1 on OSX? If so do they know why it might not be working for me? Thanks, Peter Flash Developer London, UK http://www.petescv.co.uk/ ___ The information in this email is confidential and is intended solely for the addressee(s) and access to this email by anyone else is unauthorised. If you are not the intended recipient then any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Can anyone give me an answer?
I am running a web application under Tomcat 3.2.3 and would like to access existing jpeg files from the server's local disk. Is there a way to get to these files from my JSP without putting them under the web app directory?? Any hints? Ed -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Can anyone give me an answer?
Yes, java.io.File, java.io.FileReader, read a litle bit about and that's it, after set up in your servlet (or jsp) the context type eg: context-type/image-gif, and that's it, noone of course will write for you that servlet but that's the way it could be done. Guido. -Original Message- From: Ed Turner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 10:09 AM To: [EMAIL PROTECTED] Subject: Can anyone give me an answer? I am running a web application under Tomcat 3.2.3 and would like to access existing jpeg files from the server's local disk. Is there a way to get to these files from my JSP without putting them under the web app directory?? Any hints? Ed -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Can anyone give me an answer?
Get??? Who is Getting them? The web browser or the server? If it is the web-browser you can just upload with http -Original Message- From: Ed Turner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 9:09 AM To: [EMAIL PROTECTED] Subject: Can anyone give me an answer? I am running a web application under Tomcat 3.2.3 and would like to access existing jpeg files from the server's local disk. Is there a way to get to these files from my JSP without putting them under the web app directory?? Any hints? Ed -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- 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
For sybase, it used to be that you have to run a SQL script to load some system procs before the MetaData stuff would work. Their jConnect driver used to document this pretty well. jchuang - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, December 19, 2001 2:00 AM Subject: AW: Code request; Code to reveal a DB schema At least in some versions of sybase DatabaseMetaData.getColumns() doesn't work. We use the following as a workaround: select * from 'tablename' where 1 1 and use ResultSetMetaData to find the columns. Dirty trick, but works with any database we tested (Adabas D, Oracle 8i, Sybase ASA, Interbase, Cloudscape, Instant DB, Postgres, MS SQL) -Ursprüngliche Nachricht- Von: Jim Cheesman [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 09:42 An: Tomcat Users List Betreff: Re: Code request; Code to reveal a DB schema At 06:04 AM 19/12/01, you wrote: 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! -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 I'm still not sure if I understand ambiguity. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: JNDI resource for connection pooling
Amine Been playing around w/ the same thing as you. Have you figured it out yet? I am a bit baffled by the role of setting the context in server.xml. Without making any changes to server.xml, I downloaded and installed poolman and can run the database client, querying any of my oracle tables. However in my servlets, I keep getting a error when attempting to connect: res-ref-name is not bound in this context. This all worked fine under tomcat 3.2. Why do I have to define a context in server.xml 4.0 and I didn't in server.xml 3.2? Poolman seems to work fine w/o one. Anybody got an anwser? Thanks, Rich Amine AMAR wrote: Hi all, I have a problem, please can anyone help? I'm trying to create an Oracle pooled connection as a JNDI resource. I made the required configuration: WEB-INF\web.xml file: web-app resource-ref res-ref-namejdbc/toto/res-ref-name res-typeoracle.jdbc.pool.OracleConnectionPoolDataSource/res-type res-authContainer/res-auth /resource-ref /web-app %TOMCAT_HOME%\conf\server.xml Context path=/titi docBase=c:\www\titi debug=0 reloadable=true Resource name=jdbc/toto auth=Container type=oracle.jdbc.pool.OracleConnectionPoolDataSource/ ResourceParams name=jdbc/toto parameter nameuser/name valuetutu/value /parameter parameter namepassword/name valuetutu/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@host:port:db/value /parameter /ResourceParams /Context When I register the resource from a program, everything works fine, when I try to register the pooled connection thru JNDI I get the following error: javax.naming.NamingException: Cannot create resource instance the list bindings and related methods give the following: toto: org.apache.naming.ResourceRef: Reference Class Name: oracle.jdbc.pool.OracleConnectionPoolDataSource Type: scope Content: Shareable Type: auth Content: Container Type: user Content: tutu Type: url Content: jdbc:oracle:thin:@host:port:db Type: password Content: tutu Does anybody have a clue? PS: sorry for my long message, I've been working on this for quite a while now :) Amine -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: No examples with 4.0.1 install on OSX
Thanks for the suggestion. I'll check them. Although it does seem a little odd that 3.3 would work is this were the problem?! Peter -- From: Bongiorno.Christian Reply To: Tomcat Users List Sent: Wednesday, December 19, 2001 14:00 PM To: Tomcat Users List Subject: RE: No examples with 4.0.1 install on OSX I don't know much about mac X, but, did you check the hosts.allow and hosts.deny ? Maybe only 127.0.0.1 is allowed. Given this is unix for COMPLETE PC rookies (let alone unix rookies) they probably don't want people shooting themselves in the foot -Original Message- From: Peter Reynolds [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 8:34 AM To: '[EMAIL PROTECTED]' Subject: No examples with 4.0.1 install on OSX Hello everybody, Having successfully installed a 3.3 distribution of Tomcat on OSX10.1.1 I attempted a 4.0.1 install. However whilst the welcome page and manual pages are successfully displayed by Tomcat at 127.0.0.1:8080 the attempt to view any of the examples or servlets results in a 'Resource not available' 404 error message. I've checked the following: * The examples are in the web-apps directory of Tomcat home. * I've removed my old TOMCAT_HOME environment variable that pointed to the 3.3 distribution; and added a CATALINA_HOME variable pointed to the home of 4.0.1. * My JAVA_HOME variable is correctly set. * Running ./startup.sh appears to be fine. It reports where all the paths are; and as described above the home page displays correctly. * All the permissions on the examples directory are correctly set. * No errors are reported in the log. Has any one had any success with 4.0.1 on OSX? If so do they know why it might not be working for me? Thanks, Peter Flash Developer London, UK http://www.petescv.co.uk/ ___ The information in this email is confidential and is intended solely for the addressee(s) and access to this email by anyone else is unauthorised. If you are not the intended recipient then any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] ___ The information in this email is confidential and is intended solely for the addressee(s) and access to this email by anyone else is unauthorised. If you are not the intended recipient then any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: mod_jk / EAPI for Win NT
You can try mod_jk.dll from Tomcat 3.3, found at: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/win32/i386/ Cheers, Larry P.S. EAPI doesn't apply to Win32 platforms. It's all DLL's. -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 2:41 AM To: Tomcat Users List (E-Mail) Subject: mod_jk / EAPI for Win NT Hi all, can somebody provide me with a mod_jk-module for EAPI or tell me where I can found the source to build it on my own (with EAPI support). Plattform ist Win NT. Thanks in advance ! Thanks Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat4 index.html redirection problem - different to 3.2.x
FWIW, Tomcat 3.3 redirects using a status code of 301. I believe Tomcat 4.x redirects using a status code of 302. I don't know if that could be making a difference. Cheers, Larry -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 7:04 AM To: Tomcat Users List Subject: AW: Tomcat4 index.html redirection problem - different to 3.2.x I think FD is just the short cut for file descriptor. If I'm right the squid log is 'talking' about two different file desscriptors. May be you should have a look with tcpdump what the two tomcats are responding. -Ursprüngliche Nachricht- Von: Richard Conway [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 12:16 An: Tomcat Users List Betreff: RE: Tomcat4 index.html redirection problem - different to 3.2.x snip/ I don't know the difference between FD13 and FD10 but clearly the two Tomcats are behaving differently. snip/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Can anyone give me an answer?
These files are actually being displayed in a window with javascript. The filename is passed to a javascript function when a button is clicked. The script loads the file into a window. I was unable to successfully load the files without actually locating them under my web app directory. I should be able to create a solution if I had some ideas of what functions/classes to use. Bongiorno.Christian wrote: Get??? Who is Getting them? The web browser or the server? If it is the web-browser you can just upload with http -Original Message- From: Ed Turner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 9:09 AM To: [EMAIL PROTECTED] Subject: Can anyone give me an answer? I am running a web application under Tomcat 3.2.3 and would like to access existing jpeg files from the server's local disk. Is there a way to get to these files from my JSP without putting them under the web app directory?? Any hints? Ed -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to Increasing Tomcat memory?
It goes in the server.xml file in your connector section. i.e. Connector className=xxx.yyy.zzz Parameter name=-mx value=256000/ /Connector I use the -mx extention, but I believe you can use the -Xms and get the results you need. - Greg -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 4:44 PM To: '[EMAIL PROTECTED]' Subject: How to Increasing Tomcat memory? Hi, I need to allocate more memory to Tomcat 3.2.1. How can I do it? I know to put -Xms somewhere. What is the exact lines to put and where to put the line? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Can anyone give me an answer?
Hi Ed, I do mine via apache httpd.conf Alias /catgraphics/ C:/Apps/Apache/catgraphics/ Directory C:/Apps/Apache/catgraphics Options FollowSymLinks AllowOverride None /Directory here is an alias... now my web-app gets it like: a href=/catgraphics/image.jpghere/a -Original Message- From: Ed Turner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 8:09 AM To: [EMAIL PROTECTED] Subject: Can anyone give me an answer? I am running a web application under Tomcat 3.2.3 and would like to access existing jpeg files from the server's local disk. Is there a way to get to these files from my JSP without putting them under the web app directory?? Any hints? Ed -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to find a file from a class with Tomcat
Stick the resource in along with the JAR. Then they will be loaded together and a simple call to the file without a path should discover it -Original Message- From: Stephan Wiesner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 9:36 AM To: Tomcat Users List Subject: How to find a file from a class with Tomcat I have a Servlet S.java which uses a class C.java (not a servlet itself, could make it one if I had too). C.java needs to read a config file. The problem is that this class thinks it is in c:/ or wherever I started the tomcat server from. I can use this.getClass().getResource(fileName); but that only works with Properties.load(), not with a FileInputStream. So at the moment I have all my paths hardcoded into the classes and of course I don't want that. My server.xml contains: Context path=/examples docBase=d:/jdk1.3/jakarta-tomcat-3.2.3/webapps/examples crossContext=false debug=9 reloadable=true /Context And the local web.xml: servlet servlet-namehi/servlet-name servlet-classHelloWorldExample/servlet-class /servlet servlet-mapping servlet-namehi/servlet-name url-pattern/hi/*/url-pattern /servlet-mapping Any tipp would be appreciated. Stephan Wiesner -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to find a file from a class with Tomcat
Why don't you put it in the web.xml context-param param-namedirectory/param-name param-value[my directory]/param-value /context-param Then you can grab it from your servlet with a get Context Parameter call. -Original Message- From: Stephan Wiesner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 3:36 PM To: Tomcat Users List Subject: How to find a file from a class with Tomcat I have a Servlet S.java which uses a class C.java (not a servlet itself, could make it one if I had too). C.java needs to read a config file. The problem is that this class thinks it is in c:/ or wherever I started the tomcat server from. I can use this.getClass().getResource(fileName); but that only works with Properties.load(), not with a FileInputStream. So at the moment I have all my paths hardcoded into the classes and of course I don't want that. My server.xml contains: Context path=/examples docBase=d:/jdk1.3/jakarta-tomcat-3.2.3/webapps/examples crossContext=false debug=9 reloadable=true /Context And the local web.xml: servlet servlet-namehi/servlet-name servlet-classHelloWorldExample/servlet-class /servlet servlet-mapping servlet-namehi/servlet-name url-pattern/hi/*/url-pattern /servlet-mapping Any tipp would be appreciated. Stephan Wiesner -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to Increasing Tomcat memory?
You need to put the -Xms (for minimum Java Heap memory) and -Xmx (for maximum Java Heap memory) where ever you start up Tomcat. You can hard code it into the tomcat.bat/tomcat.sh/wrapper.properties file as appropriate, or you can set environment variable TOMCAT_OPTS (for TC 3.x) or CATALINA_OPTS (for TC 4.x). Randy -Original Message- From: Greg Jones [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 9:07 AM To: 'Tomcat Users List' Subject: RE: How to Increasing Tomcat memory? It goes in the server.xml file in your connector section. i.e. Connector className=xxx.yyy.zzz Parameter name=-mx value=256000/ /Connector I use the -mx extention, but I believe you can use the -Xms and get the results you need. - Greg -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 4:44 PM To: '[EMAIL PROTECTED]' Subject: How to Increasing Tomcat memory? Hi, I need to allocate more memory to Tomcat 3.2.1. How can I do it? I know to put -Xms somewhere. What is the exact lines to put and where to put the line? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: How to find a file from a class with Tomcat
You have several Options. Just one: getResourceAsStream(). I think others will provide other solutions. which is the best, depends on your needs. -Ursprüngliche Nachricht- Von: Stephan Wiesner [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 15:36 An: Tomcat Users List Betreff: How to find a file from a class with Tomcat I have a Servlet S.java which uses a class C.java (not a servlet itself, could make it one if I had too). C.java needs to read a config file. The problem is that this class thinks it is in c:/ or wherever I started the tomcat server from. I can use this.getClass().getResource(fileName); but that only works with Properties.load(), not with a FileInputStream. So at the moment I have all my paths hardcoded into the classes and of course I don't want that. My server.xml contains: Context path=/examples docBase=d:/jdk1.3/jakarta-tomcat-3.2.3/webapps/examples crossContext=false debug=9 reloadable=true /Context And the local web.xml: servlet servlet-namehi/servlet-name servlet-classHelloWorldExample/servlet-class /servlet servlet-mapping servlet-namehi/servlet-name url-pattern/hi/*/url-pattern /servlet-mapping Any tipp would be appreciated. Stephan Wiesner -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How to find a file from a class with Tomcat
Thanks for all the quick tipps! Okay, here is what works for me: InputStream in = this.getClass().getResourceAsStream(1.txt); int c = 0; out.println(hr); while(( c = in.read()) != -1) out.print(((char)c) + ); out.println(hr); Stephan - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, December 19, 2001 3:43 PM Subject: AW: How to find a file from a class with Tomcat You have several Options. Just one: getResourceAsStream(). I think others will provide other solutions. which is the best, depends on your needs. -Ursprüngliche Nachricht- Von: Stephan Wiesner [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 15:36 An: Tomcat Users List Betreff: How to find a file from a class with Tomcat I have a Servlet S.java which uses a class C.java (not a servlet itself, could make it one if I had too). C.java needs to read a config file. The problem is that this class thinks it is in c:/ or wherever I started the tomcat server from. I can use this.getClass().getResource(fileName); but that only works with Properties.load(), not with a FileInputStream. So at the moment I have all my paths hardcoded into the classes and of course I don't want that. My server.xml contains: Context path=/examples docBase=d:/jdk1.3/jakarta-tomcat-3.2.3/webapps/examples crossContext=false debug=9 reloadable=true /Context And the local web.xml: servlet servlet-namehi/servlet-name servlet-classHelloWorldExample/servlet-class /servlet servlet-mapping servlet-namehi/servlet-name url-pattern/hi/*/url-pattern /servlet-mapping Any tipp would be appreciated. Stephan Wiesner -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- 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
*Totally* DB specific. For Oracle try searching http://technet.oracle.com; for anything else try asking on a database list? ;-) For code examples I would poke around Netbeans code they have some cool functionality in Runtime tab of the explorer, i.e. database browser of some kind. Try to download the sources from netbeans.org and poke around. Other then that I would just research java.sql.DatabaseMetaData class, it will do it for you (assuming that driver implements all supporting interfaces correctly). Igor -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How to find a file from a class with Tomcat
- Original Message - From: Stephan Wiesner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, December 19, 2001 9:36 AM Subject: How to find a file from a class with Tomcat I have a Servlet S.java which uses a class C.java (not a servlet itself, could make it one if I had too). C.java needs to read a config file. The problem is that this class thinks it is in c:/ or wherever I started the tomcat server from. I can use this.getClass().getResource(fileName); but that only works with Properties.load(), not with a FileInputStream. So at the moment I have all my paths hardcoded into the classes and of course I don't want that. [...] * java.io.InputStream and/or java.util.Properties - InputStream is = this.getClass().getClassLoader().getResourceAsStream(xyz.properties); - InputStream is = this.getClass().getResourceAsStream(testApp.properties); - InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(myservle t.conf); - InputStream is = getServletContext().getResourceAsStream(/WEB-INF/xyz.properties); - Properties props = new Properties(); props.load(is); is.close(); * use java.util.ResourceBundle * use file-system directly //haha :-) Bo Dec.19, 2001 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Embedding Tomcat 4
Thanks Christian. This is just what I needed. Jean-Robert Haddad Directeur RD KHEOPS technologies tél.: 514.285.1211 -Original Message- From: Christian Bongiorno [mailto:[EMAIL PROTECTED]] Sent: 18 décembre, 2001 21:18 To: Tomcat Users List Subject: Re: Embedding Tomcat 4 I have embedded TC 4 into my JBuilder IDE and I have to believe it is the exact same thing for your situation the class with main is org.apache.catalina.startup.Bootstrap // java commandline java -classpath $CLASSPATH:/home/tomcat/bin/bootstrap.jar -Dcatalina.base=/home/tomcat -Dcat alina.home=/home/tomcat org.apache.catalina.startup.Bootstrap or Call this from your app. System.getProperties().put(catalina.base./home/tomcat); System.getProperties().put(catalina.home./home/tomcat); org.apache.catalina.startup.Bootstrap.main(new String[] {start}); That's it! - Original Message - From: Arvind Gudipati [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 18, 2001 5:20 PM Subject: RE: Embedding Tomcat 4 Embedded class doesnot deploy the .war files dynamically. You have to add contexts to the embedded tomcat manually. I was having the same trouble initially until i started debugging and realised that there are some configuration issues that also cause other problems. The regular Bootstrap class which starts up Tomcat loads the classes for you, however you need to work that out too when you are using the Embedded class. Arvind -Original Message- From: Jean-Robert Haddad [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 5:26 PM To: [EMAIL PROTECTED] Subject: Embedding Tomcat 4 Hello everyone. I am trying to embed Tomcat 4.01 in my application. I use the org.apache.catalina.startup.Embedded class. I simply copied code from the main method, as indicated in the documentation. My question is regarding contexts. Why do I have to create the contexts manually? Can't I have all directories inside webapps be mapped to contexts automatically? Why are the .war files not decompressed automatically anymore? If I can't have the contexts created automatically, how can I process the .war files? Should I try to start Tomcat by using org.apache.catalina.startup.Bootstratp class main method instead? Thanks. Jean-Robert Haddad Directeur RD KHEOPS technologies tél.: 514.285.1211 CONFIDENTIALITY NOTICE: E-mail may contain confidential information that is legally protected. Do not read this e-mail if you are not the intended recipient. This e-mail transmission, and any documents, files or previous e-mail messages attached to it may contain confidential information that is legally protected. If you are not the intended recipient or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify us by reply e-mail, by forwarding this to [EMAIL PROTECTED] or by telephone at (877) PANACYA, and destroy the original transmission and its attachments without reading or saving in any manner. Thank you. For information about PANACYA Inc., please visit our website at http://www.panacya.com. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Error instantiating servlet class org.apache.jasper.servlet.JspServlet- HELP?
Hi I'm running Tomcat 4.0.1 on NT and the following errors occur in the logs when I invoke the server. The it won't run any of the JSP files. Anyone know whats happening ? javax.servlet.ServletException: Error instantiating servlet class org.apache.jasper.servlet.JspServlet Root Cause java.lang.IncompatibleClassChangeError: Implementing class Cheers Caroline 12/19/01 10:12:24 AM, Ralph Einfeldt [EMAIL PROTECTED] wrote: AFAIK tomcat 3.x didn't do a HTTP redirect but served the file direct. Tomcat 4 sends a HTTP redirect to the file. That might explain the cause for your symtoms. Why that confuses your squid in not clear to me. Your description sounds as if the squid doesn't forward the redirect response to the browser. -Ursprüngliche Nachricht- Von: Richard Conway [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 10:56 An: Tomcat User List Betreff: Tomcat4 index.html redirection problem - different to 3.2.x I have recently started using Tomcat 4.0.1 in preference to 3.2.x. I have noticed a difference in their behaviour which is causing me some problems. I am using Squid as a web cache. When I access a 'directory' URL, such as http://myhost/, then Tomcat serves the index.html file it finds in this directory. In fact I think that Tomcat is indicating a redirection to the originator. However, with Tomcat4 if I access the URL http://myhost/ through the Squid cache then the index.html redirection is not successful - the browser waits with the hourglass. If I do the same thing with a Tomcat 3.2.1 installation, through the same Squid cache, then everything works well. Note that the Tomcat4 http://myhost/ URL works fine if the cache is bypassed. There must be some difference between the way Tomcat4 and 3.2.1 are performing the index.html redirection. Whatever Tomcat4 is doing, it is confusing the cache. It's possible I have mis-configured the Squid cache, but then it works OK with Tomcat 3.2.1 and various other webservers I could lay my hands on. Can anyone shed any light on this. Any suggestions for a way of debugging. Thanks, Richard. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to Increasing Tomcat memory?
What if I had a few connection-instances running on the same machine on different ports. If I setup the TOMCAT_OPTS value wouldn't restrict the entire environment to that heap size, or would each connection get the value of the TOMCAT_OPTS value? Need some .EDU on this one. Thanks. - Greg -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 8:58 AM To: Tomcat Users List Subject: RE: How to Increasing Tomcat memory? You need to put the -Xms (for minimum Java Heap memory) and -Xmx (for maximum Java Heap memory) where ever you start up Tomcat. You can hard code it into the tomcat.bat/tomcat.sh/wrapper.properties file as appropriate, or you can set environment variable TOMCAT_OPTS (for TC 3.x) or CATALINA_OPTS (for TC 4.x). Randy -Original Message- From: Greg Jones [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 9:07 AM To: 'Tomcat Users List' Subject: RE: How to Increasing Tomcat memory? It goes in the server.xml file in your connector section. i.e. Connector className=xxx.yyy.zzz Parameter name=-mx value=256000/ /Connector I use the -mx extention, but I believe you can use the -Xms and get the results you need. - Greg -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 4:44 PM To: '[EMAIL PROTECTED]' Subject: How to Increasing Tomcat memory? Hi, I need to allocate more memory to Tomcat 3.2.1. How can I do it? I know to put -Xms somewhere. What is the exact lines to put and where to put the line? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Code request; Code to reveal a DB schema
That was/is not the problem. All other methods we use in DatabaseMetaData work. (Like getTables(), getPrimaryKeys(), getCrossReference() and several other methods that wouldn't work without the stored procedures). -Ursprüngliche Nachricht- Von: James Chuang [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 15:11 An: Tomcat Users List Betreff: Re: Code request; Code to reveal a DB schema For sybase, it used to be that you have to run a SQL script to load some system procs before the MetaData stuff would work. Their jConnect driver used to document this pretty well. jchuang - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, December 19, 2001 2:00 AM Subject: AW: Code request; Code to reveal a DB schema At least in some versions of sybase DatabaseMetaData.getColumns() doesn't work. We use the following as a workaround: select * from 'tablename' where 1 1 and use ResultSetMetaData to find the columns. Dirty trick, but works with any database we tested (Adabas D, Oracle 8i, Sybase ASA, Interbase, Cloudscape, Instant DB, Postgres, MS SQL) -Ursprüngliche Nachricht- Von: Jim Cheesman [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 09:42 An: Tomcat Users List Betreff: Re: Code request; Code to reveal a DB schema At 06:04 AM 19/12/01, you wrote: 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! -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 I'm still not sure if I understand ambiguity. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- 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]
AW: How to Increasing Tomcat memory?
Depends on how you configured tomcat. If each port is served by one tomcat, each has its own value, because they use different VM's. If you configured one tomcat to server each port the value is shared between the ports (Just one instance of the VM) -Ursprüngliche Nachricht- Von: Greg Jones [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. Dezember 2001 16:44 An: 'Tomcat Users List' Betreff: RE: How to Increasing Tomcat memory? What if I had a few connection-instances running on the same machine on different ports. If I setup the TOMCAT_OPTS value wouldn't restrict the entire environment to that heap size, or would each connection get the value of the TOMCAT_OPTS value? Need some .EDU on this one. Thanks. - Greg -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 8:58 AM To: Tomcat Users List Subject: RE: How to Increasing Tomcat memory? You need to put the -Xms (for minimum Java Heap memory) and -Xmx (for maximum Java Heap memory) where ever you start up Tomcat. You can hard code it into the tomcat.bat/tomcat.sh/wrapper.properties file as appropriate, or you can set environment variable TOMCAT_OPTS (for TC 3.x) or CATALINA_OPTS (for TC 4.x). Randy -Original Message- From: Greg Jones [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 9:07 AM To: 'Tomcat Users List' Subject: RE: How to Increasing Tomcat memory? It goes in the server.xml file in your connector section. i.e. Connector className=xxx.yyy.zzz Parameter name=-mx value=256000/ /Connector I use the -mx extention, but I believe you can use the -Xms and get the results you need. - Greg -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 4:44 PM To: '[EMAIL PROTECTED]' Subject: How to Increasing Tomcat memory? Hi, I need to allocate more memory to Tomcat 3.2.1. How can I do it? I know to put -Xms somewhere. What is the exact lines to put and where to put the line? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- 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. -Original Message- From: Justin Rowles [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 10:03 AM To: 'Tomcat Users List' Subject: 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] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4, IIS, ISAPI redirector
I have run across an interesting problem with Tomcat4/IIS. I have written a servlet which proxies TIFF images to a user for diaply in a web page. My application works fine as long as I use MSIE to connect directly to Tomcat and retrieve the TIFF images from the servlet. However, when I connect to IIS via HTTPS and the image is returned (I know it is from the logs) MSIE generates an error that the plugin could not read the data. Furthermore, my logs show the connection from MSIE is established twice, back to back. This has led me to believe that the connection between IIS and Tomcat through the ISAPI filter is possibly causing the inclusion of different headers (content-type, perhaps?) or other information in the HTTP response header which is causing MSIE to choke on these images. Has anyone here seen similar issues with IIS/Tomcat4/ISAPI redirector? Is anyone aware of any tools which would allow me to sniff and decrypt the returned headers? Any advice/help I can get is greatly appreciated. -dhs -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Embedding Tomcat 4
Glad I could help. I am finding I enjoy responding to this news group. -Original Message- From: Jean-Robert Haddad [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 10:39 AM To: Tomcat Users List Subject: RE: Embedding Tomcat 4 Thanks Christian. This is just what I needed. Jean-Robert Haddad Directeur RD KHEOPS technologies tél.: 514.285.1211 -Original Message- From: Christian Bongiorno [mailto:[EMAIL PROTECTED]] Sent: 18 décembre, 2001 21:18 To: Tomcat Users List Subject: Re: Embedding Tomcat 4 I have embedded TC 4 into my JBuilder IDE and I have to believe it is the exact same thing for your situation the class with main is org.apache.catalina.startup.Bootstrap // java commandline java -classpath $CLASSPATH:/home/tomcat/bin/bootstrap.jar -Dcatalina.base=/home/tomcat -Dcat alina.home=/home/tomcat org.apache.catalina.startup.Bootstrap or Call this from your app. System.getProperties().put(catalina.base./home/tomcat); System.getProperties().put(catalina.home./home/tomcat); org.apache.catalina.startup.Bootstrap.main(new String[] {start}); That's it! - Original Message - From: Arvind Gudipati [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 18, 2001 5:20 PM Subject: RE: Embedding Tomcat 4 Embedded class doesnot deploy the .war files dynamically. You have to add contexts to the embedded tomcat manually. I was having the same trouble initially until i started debugging and realised that there are some configuration issues that also cause other problems. The regular Bootstrap class which starts up Tomcat loads the classes for you, however you need to work that out too when you are using the Embedded class. Arvind -Original Message- From: Jean-Robert Haddad [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 5:26 PM To: [EMAIL PROTECTED] Subject: Embedding Tomcat 4 Hello everyone. I am trying to embed Tomcat 4.01 in my application. I use the org.apache.catalina.startup.Embedded class. I simply copied code from the main method, as indicated in the documentation. My question is regarding contexts. Why do I have to create the contexts manually? Can't I have all directories inside webapps be mapped to contexts automatically? Why are the .war files not decompressed automatically anymore? If I can't have the contexts created automatically, how can I process the .war files? Should I try to start Tomcat by using org.apache.catalina.startup.Bootstratp class main method instead? Thanks. Jean-Robert Haddad Directeur RD KHEOPS technologies tél.: 514.285.1211 CONFIDENTIALITY NOTICE: E-mail may contain confidential information that is legally protected. Do not read this e-mail if you are not the intended recipient. This e-mail transmission, and any documents, files or previous e-mail messages attached to it may contain confidential information that is legally protected. If you are not the intended recipient or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify us by reply e-mail, by forwarding this to [EMAIL PROTECTED] or by telephone at (877) PANACYA, and destroy the original transmission and its attachments without reading or saving in any manner. Thank you. For information about PANACYA Inc., please visit our website at http://www.panacya.com. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Stronghold and Tomcat 4.0.1
Are there any problems/issues with integrating Tomcat 4.0.1 and Stronghold 3.0? A search through the last several months of e-mail on this list didn't turn up anything, so I thought I'd ask before trying it. Thanks. --- Robert D. Morse [EMAIL PROTECTED] PGP Key: D9C4AA6A PGP Finger Print: ED56 DEEA 95CF AC99 C2B0 77D4 7D92 ACCA D9C4 AA6A -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: JNDI resource for connection pooling
Hi Rich, I still have no clean working solution. for the server.xml stuff, I have no clue why we should put config there. The docs says so, so I did give it a try. I have a workaround for my problem which is to write the registration in a stand alone class with the init() method registring the connection pooling class in JNDI. and have this class loaded at tomcat startup. the class works fine. I'm working on making it load at startup. I'll keep you posted when it works. Regards, Amine - Original Message - From: Rich Baldwin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Amine AMAR [EMAIL PROTECTED] Sent: Wednesday, December 19, 2001 2:11 PM Subject: Re: JNDI resource for connection pooling Amine Been playing around w/ the same thing as you. Have you figured it out yet? I am a bit baffled by the role of setting the context in server.xml. Without making any changes to server.xml, I downloaded and installed poolman and can run the database client, querying any of my oracle tables. However in my servlets, I keep getting a error when attempting to connect: res-ref-name is not bound in this context. This all worked fine under tomcat 3.2. Why do I have to define a context in server.xml 4.0 and I didn't in server.xml 3.2? Poolman seems to work fine w/o one. Anybody got an anwser? Thanks, Rich Amine AMAR wrote: Hi all, I have a problem, please can anyone help? I'm trying to create an Oracle pooled connection as a JNDI resource. I made the required configuration: WEB-INF\web.xml file: web-app resource-ref res-ref-namejdbc/toto/res-ref-name res-typeoracle.jdbc.pool.OracleConnectionPoolDataSource/res-type res-authContainer/res-auth /resource-ref /web-app %TOMCAT_HOME%\conf\server.xml Context path=/titi docBase=c:\www\titi debug=0 reloadable=true Resource name=jdbc/toto auth=Container type=oracle.jdbc.pool.OracleConnectionPoolDataSource/ ResourceParams name=jdbc/toto parameter nameuser/name valuetutu/value /parameter parameter namepassword/name valuetutu/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@host:port:db/value /parameter /ResourceParams /Context When I register the resource from a program, everything works fine, when I try to register the pooled connection thru JNDI I get the following error: javax.naming.NamingException: Cannot create resource instance the list bindings and related methods give the following: toto: org.apache.naming.ResourceRef: Reference Class Name: oracle.jdbc.pool.OracleConnectionPoolDataSource Type: scope Content: Shareable Type: auth Content: Container Type: user Content: tutu Type: url Content: jdbc:oracle:thin:@host:port:db Type: password Content: tutu Does anybody have a clue? PS: sorry for my long message, I've been working on this for quite a while now :) Amine -- 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]
SSL on Tomcat 4.0 with IBM JDK 1.3.0
I managed to start Tomcat 4.0.1 on my RH 7.0 box only after I replaced Sun's JDK 1.3.1 with IBM's JDK 1.3.0. This also avoids errors in some other packages (I'm experimenting with Velocity). So, if I want to have an SSL connection to TC 4.0.1 on IBM JDK 1.3.0, what do I need to do? Thank you all. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Illegal State Exception - Further information.
The Servlet spec says that you can not call HttpServletResponse.sendError() once output has been committed to the browser. If you do so, you get the IllegalStateException you are seeing. With content already sent, it is too late to do a redirection. Content will automatically be committed once the buffer becomes full (I think the default is 8K). If the amount of content written to the buffer before the error occurs varies, it can cause the appearance of this error to be variable too. Increasing the size of the buffer would delay the automatic committing of content and perhaps help avoid this error. Cheers, Larry -Original Message- From: Justin Rowles [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 11:27 AM To: 'Tomcat Users List' Subject: 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] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: No examples with 4.0.1 install on OSX
At 1:33 PM + 12/19/01, Peter Reynolds wrote: Has any one had any success with 4.0.1 on OSX? If so do they know why it might not be working for me? Most likely the files were corrupted by Stuffit after the download. Re-install according to the instructions on this page: http://www.geektimes.com/macintosh/os/x/and/tomcat_install.html -- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: VERY VERY URGENT!!!!
Can't comment on #1 but #2 is set in your Web Apps war file. From: Catalin [EMAIL PROTECTED] Organization: Quattrosoft International Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Wed, 19 Dec 2001 15:14:28 -0800 To: [EMAIL PROTECTED] Subject: VERY VERY URGENT Hi to all! I have an problem and I'm running out of time: I have an jakarta-tomcat-3.3-m4 running as an service on an NT 4.0 server. 1. I want the Jakarta service keep functioning when an user logoff from NT (now it is stopping). 2. I want to set the timeout of the session to 1 hour or more (now, if I let any webappication open without doing nothing, after 30 minutes I loose the server session and all the variables from it). Thanks 2 all for any suggestion you may have! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Multiple root context applications
Hi, I have an application which deploys in the root context of Tomcat. Now the problem is that I want to deploy multiple instances of this application on one machine only. One way is to run multiple tomcats on different ports. Is there any other better way ? Tomcat 4.x supports different instances. But I am not able to figure out if that implies multiple tomcat instances with different server.xml etc can be run at the same time !! I am not averse to using multiple ports . Thanks in advance for help. manjul sahay - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: VERY VERY URGENT!!!!
#1) This is a well documented problem with sun's jdk. Have a look on their website, the bottom line is that you need a new jdk Dave -Original Message- From: Hunter Hillegas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 11:43 AM To: Tomcat User List Subject: Re: VERY VERY URGENT Can't comment on #1 but #2 is set in your Web Apps war file. From: Catalin [EMAIL PROTECTED] Organization: Quattrosoft International Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Wed, 19 Dec 2001 15:14:28 -0800 To: [EMAIL PROTECTED] Subject: VERY VERY URGENT Hi to all! I have an problem and I'm running out of time: I have an jakarta-tomcat-3.3-m4 running as an service on an NT 4.0 server. 1. I want the Jakarta service keep functioning when an user logoff from NT (now it is stopping). 2. I want to set the timeout of the session to 1 hour or more (now, if I let any webappication open without doing nothing, after 30 minutes I loose the server session and all the variables from it). Thanks 2 all for any suggestion you may have! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Multiple root context applications
I dont' see why you can't just org.apache.catalina.startup.Bootstrap.main() twice just change the system hash to change the catalina.base and catalina.home ...so System.getProperties().put(catalina.base,/home/tomcat1); System.getProperties().put(catalina.home,/home/tomcat1); // start this in a thread? org.apache.catalina.startup.Bootstrap.main(new String[] {start}); System.getProperties().put(catalina.base,/home/tomcat2); System.getProperties().put(catalina.home,/home/tomcat2); // start this in a thread? org.apache.catalina.startup.Bootstrap.main(new String[] {start}); not the change in the system properties. anyone disagree? Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 1:05 PM To: [EMAIL PROTECTED] Subject: Multiple root context applications Hi, I have an application which deploys in the root context of Tomcat. Now the problem is that I want to deploy multiple instances of this application on one machine only. One way is to run multiple tomcats on different ports. Is there any other better way ? Tomcat 4.x supports different instances. But I am not able to figure out if that implies multiple tomcat instances with different server.xml etc can be run at the same time !! I am not averse to using multiple ports . Thanks in advance for help. manjul sahay - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.01 tag renders in wrong place
My theory is that the JSP page buffering with Tomcat 3.2.2 (and I say Tomcat 3.2.2, since I haven't tried this out with another servlet container like JRun) is the culprit. The JSP compiler generates the servlet code in the correct order. But during execution of the servlet, the output from certain dynamic includes get a little skewed in the buffer. As info, page buffering is one of JSP's feature. It's introduced in JSP to overcome HTTP protocol's limitations i.e to retract responses after the server has started sending them. Since output is being buffered, it's possible to specify header information at any point in the processing of the JSP page. Buffered output could also be discarded depending on conditions on your page. Thanks, RS P.S: Maybe the JSP and TOMCAT architects could shed some light on this. Calling on Larry Issacs, Craig McClanahan, etc. Bill Pfeiffer [EMAIL PROTECTED] on 12/18/2001 08:02:08 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Re: Tomcat 4.01 tag renders in wrong place The page buffer/autoFlush tag worked like a charm: %@ page buffer=0 autoFlush=true % Big Thanks!! I will research into why I have to add this tag to get my include to work correctly, but if anyone has a short answer on it, I'd be curious to know. Thanks, Bill Pfeiffer - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 18, 2001 3:19 PM Subject: Re: Tomcat 4.01 tag renders in wrong place Bill Pfeiffer [EMAIL PROTECTED] on 12/18/2001 02:10:59 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat-User [EMAIL PROTECTED] cc: Subject: Tomcat 4.01 tag renders in wrong place I have a custom tag that performs an include. The included content gets positioned smack in the middle of a preceding td tag. The custom tag content actually appears in the middle of a word (part of one of the td attributes). Knowing almost nothing about Tomcat 4, it LOOKS like perhaps some preceding content is buffered, and then the custom tag content is written before the buffered content. But thats just a wild guess. Possibly correct. Turn of the buffering. Try this at the top of your jsp page: %@ page buffer=0 autoFlush=true % I'd be happy to provide more info but I'm not sure exactly what to provide. Any ideas? Bill Pfeiffer -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: RMI error (SocketException: socket write error) on Tomcat 4.0, NT4/Win2K
Turn on logging on the RMI server process: java -Djava.rmi.server.logCalls=true -Djava.rmi.server.logLevel=VERBOSE -Djava.rmi.loader.logLevel=VERBOSE ServerName where, java.rmi.server.logCalls=true - will log all incoming calls and exceptions java.rmi.server.logLevel=VERBOSE - will log details of outgoing calls java.rmi.loader.logLevel=VERBOSE - logs classname and codebase whenever RMI attempts to load a class as aresult of unmarshalling an arg. This could help in debugging. Thanks. RS. Tee Chee Han [EMAIL PROTECTED] on 12/19/2001 04:47:18 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: RMI error (SocketException: socket write error) on Tomcat 4.0, NT4/Win2K Hi, -- Environment -- I am running Tomcat 4.0.1 on NT4 with JDK1.3.0. -- Error Symptom -- I have a servlet that makes RMI calls to an RMI server process (non EJB) on the same machine. It used to work fine on Tomcat 3.2.3 and Tomcat 3.3 but when we switched to Tomcat 4.0 it stopped working. The servlet looks-up the RMI server object successfully but fails as soon as it tries to invoke an RMI method with this exception: java.net.SocketException: Connection aborted by peer: socket write error [See end of message for full stack trace] At first we suspected it had to do with the policy file but we have ruled that out because we are NOT running with the -security option and the error doesn't seem to point to a security or permission problem. It also doesn't seem like a CLASSPATH problem because everything else (including the RMI lookup) works fine. I have scoured the web for a solution but found only an identical question on comp.lang.java with no reply. Is Tomcat 4.0 doing anything different with RMI? Is JNDI or EJB somehow involved here by default? We don't use either of these. Any help would be much appreciated! cheehan -- Stack Trace -- java.rmi.MarshalException: error marshalling arguments; nested exception is: java.net.SocketException: Connection aborted by peer: socket write error java.net.SocketException: Connection aborted by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:72 ) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:116) at java.io.ObjectOutputStream.drain(ObjectOutputStream.java:1477) at java.io.ObjectOutputStream.setBlockData(ObjectOutputStream.java:1500) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:407) at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:268) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:106) at hello.ExecuterImpl_Stub.execute(Unknown Source) [...] at hello.ServletA.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve .java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at
Apache/Catalina Problem:java.lang.IllegalArgumentException: addChild: Child name 'myhostname' is not unique
Hello folks: I ran into an Apache/Catalina problem and need help. I was trying to set up Apache 1.3.22 and Catalina 4.0.1. Intitially everything seemed fine and I could test all the examples. Then, when I checked Catalina log file apache_log.2001-12-19.txt and found Catalina kept generating following messages and eventually it filled up the entire disk. 2001-12-19 11:52:01 [org.apache.catalina.connector.warp.WarpConfigurationHandler] java.lang.IllegalArgumentException: addChild: Child name 'myhostname' is not unique at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardEngine.addChild(StandardEngine.java:265) at org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpConfi gurationHandler.java:268) at org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpConfi gurationHandler.java:117) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:18 9) at java.lang.Thread.run(Thread.java:484) When I replicated all the related directories (apache, catalina, j2se) to a different machine, everything worked fine. There were no error message generated. I know it appears to be a problem related to an specific machine. But I've tried real hard to find any possible reason causing this problem and had no luck. The machine is a Solaris 5.8 server and I am running Oracle and other applications on the machine and worked fine. I am using J2SE java version 1.3.1_01. I applied all required Solaris 5.8 patches. Could anyone enlightened me about this problem? Thanks a lot!! Ping Cui Atos Origin
How to unsubscribe?
Help Please ... How do I unsuscribe This list is killing my email account sio _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to unsubscribe?
click the link at the bottom of this (or any) email -Original Message- From: Siomara Pantarotto [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 2:03 PM To: [EMAIL PROTECTED] Subject: How to unsubscribe? Help Please ... How do I unsuscribe This list is killing my email account sio _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
apache running dog slow with jboss+tomcat
I am trying to get apache setup with to handle all my static content in cooperation with jboss tomcat. I have it all setup and running fine, with the exception of my jsps (which is another thread entirely), but the static content is DOG slow. It runs, but you can see the images loading one by one. If I re-enable tomcats web server, the performance is TONS better, more like with I eventually want to see apache performing at, but I cant have tomcat serving that static content. I have gone through the documentation a couple of times and have done ever appropriate thing I can find to help, including changing the connector from ajp12 to ajp13, but it makes no difference. Can anyone throw any solid suggestions my way or offer any quick help. I am in a huge time crunch. Thanks a ton . . . Doug Gruber The best thing about this is that nobody gave us a chance outside this locker room but us. -- LB Brian Urlacher, on the Bears clinching a playoff berth -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Clear Cache In IE5
1)Tools/Internet Options/Temporary Internet Files/Settings/Every Visit to the Page. 2)Tools/Internet Options/Temporary Internet Files/Delete Files/All offline content. And after Refresh for every page. Do it, I had that problem before and more if you use any caching server like squid, etc. Guido Thanks for that. But my problem turns out that TomCat gives the older version of my webapp. Actually, I replaced a new jsp file in my webapp with exactly the same name as the old jsp file. However, TomCat4.0 still gives me the older version. This is really annoying, why TomCat does something like that? I thought IE was the culprit but it's not. I'd really appreciate it, if someone can help me with this. Thanks a lot. -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 5:07 PM To: [EMAIL PROTECTED] Subject: Clear Cache In IE5 Hello all, This is a little bit off topic. Can you tell me how can I clear the cache in IE so that I can see the change I've in made in my webapp after invoking TomCat4.0 again? Thanks in advance. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Clear Cache In IE5
Go to server.xml and add this property to your context reloadable=true .../ -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 12:19 AM To: Tomcat Users List Subject: Re: Clear Cache In IE5 1)Tools/Internet Options/Temporary Internet Files/Settings/Every Visit to the Page. 2)Tools/Internet Options/Temporary Internet Files/Delete Files/All offline content. And after Refresh for every page. Do it, I had that problem before and more if you use any caching server like squid, etc. Guido Thanks for that. But my problem turns out that TomCat gives the older version of my webapp. Actually, I replaced a new jsp file in my webapp with exactly the same name as the old jsp file. However, TomCat4.0 still gives me the older version. This is really annoying, why TomCat does something like that? I thought IE was the culprit but it's not. I'd really appreciate it, if someone can help me with this. Thanks a lot. -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 5:07 PM To: [EMAIL PROTECTED] Subject: Clear Cache In IE5 Hello all, This is a little bit off topic. Can you tell me how can I clear the cache in IE so that I can see the change I've in made in my webapp after invoking TomCat4.0 again? Thanks in advance. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.01 tag renders in wrong place
Bill == Bill Pfeiffer [EMAIL PROTECTED] writes: Bill The page buffer/autoFlush tag worked like a charm: Bill %@ page buffer=0 autoFlush=true % Bill Big Thanks!! Bill I will research into why I have to add this tag to get my include to work Bill correctly, but if anyone has a short answer on it, I'd be curious to know. It almost seems like your include machinery is writing to the main output stream, as opposed to the buffer owned by the tag. That seems to explain the circumstances you're seeing. -- === David M. Karr ; Best Consulting [EMAIL PROTECTED] ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
error on tomcat startup
HI I'm running Tomcat 4 on Win2k and get the following error when I try to start Tomcat. Tomcat has always worked fine for me, so I don't know why this error has suddenly appeared. Any help please. Here is the error: Starting service Tomcat-Standalone Apache Tomcat/4.0 ERROR reading java.io.FileInputStream@7a29a1 At Line 57 /web-app/servlet/ Starting service Tomcat-Apache Apache Tomcat/4.0 Thanks Peter -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Contrary Login Use Case
In the standard use case for declarative security: 1. The user accesses a page 2. Tomcat uses web.xml-based Security Constraints and session data about authenticated users to determine whether to fulfill the request or redirect to a login or error page. This is good. But let's say a business analyst decides that in her webapp, every user should see page Foo without logging in. In addition a button shall be provided in Foo so that the lowly unauthenticated user can be authorized to see the page in its full glory, with all the superuser bells and whistles. (An example could be how Jive Forums work out of the box.) In this case, say we are starting at Page A, clicking on a link to some login servlet/jsp, and after authenticating, refreshing Page A. This seems to me like an awkward case for declarative security, but I don't expect sympathy from this hypothetical business analyst. So has anyone advice for how to do this? TIA. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Why do all requests have the same HttpRequestFacade
Using Tomcat 4.0.1 latest release (nightly 12/18/01 build)... I'm trying to save each user's last request for later review. I'm capturing the request with a Request Filter (implements Filter). For example, I store the ServletRequest coming into the filter's doFilter method. This is actually an HttpRequestFacade object (i.e. org.apache.catalina.connector.HttpRequestFacade@21e554). I've noticed that this object pointer never changes for a given session (i.e. it remains 21e554 for subsequent requests by the given session). In addition, if I retrieve this stored request and execute its getRequestURI method, that method returns null. The getUserPrincipal returns null as well. Both are non null while the Filter stores the request (while not yet fully processed). Is this correct behavior? Is there a way to store the request such that its data remains intact even after the request has been fully processed? Thanks... ...Casey == Casey Bragg - Software Engineer Allegiance Telecom, Inc. Dallas, TX 469-259-2702 - [EMAIL PROTECTED] ==
Imported classes run, but not under Tomcat
I have a class method that works under a container class, but Tomcat returns NoClassDefFound on the imported class method when it's called from a servlet (which is nearly identical to the container class) inside Tomcat. I searched the archive before subscribing here, but couldn't find any questions on this since Dec 1. Sorry if this message is lengthy but here goes... I have a public class (thelper.java) with class method ssiServe. This method reads a file, replaces keys with new values and outputs the contents to System.err. I have a test.java that calls the thelper.ssiserve() class method and it works well. I now call thelper from a simple servlet (getimage.java), derived from test.java, changing the thelper class's output object from System.err to a the servlet's PrintWriter object. When I run it from my browser, I get a two stack traces (with http error 500, reported by Tomcat). The first line of the first (labeled exception) is: javax.servlet.ServletException: Servlet execution threw an exception The first line of the second (labeled root cause) is: java.lang.NoClassDefFoundError: classes/thelper So it would seem to me that the thelper class cannot be seen by tomcat, though it is seen in the JVM otherwise. I've tried everything I know how, though I'm very new to Java and JSP. I can incorporate this class method into the calling class and solve the problem, but I wrote it this way because the method will be used by quite a few different servlets (10), and I need it to be centralized for obvious reasons. My J2SE is installed in c:\javakit and my J2EE is in c:\javaee. classpath = c:\;d:\;c:\javakit\src.jar;c:\javakit\lib\tools.jar; c:\javaee\lib\j2ee.jar;c:\progra~1\tomcat4\webapps\sqaa\WEB-INF; java_home = c:\javakit Tomcat 4.0.1 is installed in c:\progra~1\tomcat4. Java -version: java version 1.3.1_01 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01) Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode) This obviously seems like a problem with my classpath or with pack names and class locations, but it makes no sense to me that it would work outside of Tomcat. I deduce that it's a problem with my tomcat configuration (it doesn't know to look for it) or there's some cardinal rule that I've overlooked. Any other ideas? I've been up and down the tomcat and apache docs, finding exactly the same information on configuration everywhere on the web and in a few books I have (and in the config file comments!). They're all the same, and my standalone servlets work, so I'm pretty sure I have those instructions down alright. Below are my sources and their locations. If you see any mistakes, bear in mind that I've moved these things from heck to breakfast, always with the same result no matter what package, path or name I give this import. It's been in $tomcat_home\webapps\sqaa..classes\, $tomcat_home\webapps\sqaa\WEB-INF\libs\, c:\, c:\include, etc. Always the same error, with the NoClassDefFoundError reporting the current class I'm trying to import. (Irrelevant code omitted:) --- c:\progra~1\tomcat4\webapps\sqaa\web-inf\classes\test.java: --- //package classes /* I've tried w/ and w/o package spec, though examples don't use one. This class works either way. */ import java.io.*; import java.util.*; import classes.*; public class test { public test(){ } public static void main(String args[]) { Vector ssi = new Vector(); ssi.add(!--SSI:FILENAME--=c:/sample.tif); thelper.ssiServe(c:/html/test.html,ssi); } } --- c:\progra~1\tomcat4\webapps\sqaa\web-inf\classes\getimage.java: --- //package classes /* I've tried w and w/o package spec, though all examples don't use one. */ import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; import classes.*; public class getimage extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { PrintWriter out = response.getWriter(); Vector ssi = new Vector(); ssi.add(!--SSI:FILENAME--=c:/sample.tif); thelper.ssiServe(out,c:/html/test.html,ssi); } } --- c:\progra~1\tomcat4\webapps\sqaa\web-inf\classes\thelper.java: --- package classes; import java.io.*; import java.util.*; public class thelper { public thelper() { } /* When being called by getimage.java, I use this: */ public static void ssiServe(PrintWriter aout, String fname, Vector SSI) { } /* When being called by test.java, I use this:
Problems executing Conn Pool example that comes with JSQLConnect
Greetings, I'm currently evaluating the JSQLConnect Driver. I downloaded jndi1_2_1.zip from the sun site, followed the instructions and installed it in the following directory - C:\jdk1.3\jre\lib\ext\jndi.jar; I also added this path to my classpath. My problem is that I get the following exception when I run ExampleConnectionPool.java from the command line. Error:init JNDI javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java. lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory] Error:Register Datasources java.lang.NullPointerException JNDI Error:javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.C lassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory] Any feedback will be very much appreciated. Cheers, Rudi _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Imported classes run, but not under Tomcat
Put your compile class file in c:\progra~1\tomcat4\webapps\sqaa\web-inf\classes\classes\test.java. Since you used classes as your package name you have to put it in the classes package. The WEB-INF\classes directory is a root or just the beginning of where Tomcat looks for standalone classes (not jarred). Hope this helps. Kendal L. Montgomery ...the comPuter Wizard... [EMAIL PROTECTED] _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Click here for Qwest's 5 cent State-to-State flat rate calling plan, plus get your own 800 number at no charge! http://qwesteferral.com/r.jsp?a=RyYO5xpYanlfVU541Lz2HA$$ _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ -Original Message- From: Gilmore, Phil [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 6:48 PM To: Tomcat User Mailing List (E-mail) Subject: Imported classes run, but not under Tomcat I have a class method that works under a container class, but Tomcat returns NoClassDefFound on the imported class method when it's called from a servlet (which is nearly identical to the container class) inside Tomcat. I searched the archive before subscribing here, but couldn't find any questions on this since Dec 1. Sorry if this message is lengthy but here goes... I have a public class (thelper.java) with class method ssiServe. This method reads a file, replaces keys with new values and outputs the contents to System.err. I have a test.java that calls the thelper.ssiserve() class method and it works well. I now call thelper from a simple servlet (getimage.java), derived from test.java, changing the thelper class's output object from System.err to a the servlet's PrintWriter object. When I run it from my browser, I get a two stack traces (with http error 500, reported by Tomcat). The first line of the first (labeled exception) is: javax.servlet.ServletException: Servlet execution threw an exception The first line of the second (labeled root cause) is: java.lang.NoClassDefFoundError: classes/thelper So it would seem to me that the thelper class cannot be seen by tomcat, though it is seen in the JVM otherwise. I've tried everything I know how, though I'm very new to Java and JSP. I can incorporate this class method into the calling class and solve the problem, but I wrote it this way because the method will be used by quite a few different servlets (10), and I need it to be centralized for obvious reasons. My J2SE is installed in c:\javakit and my J2EE is in c:\javaee. classpath = c:\;d:\;c:\javakit\src.jar;c:\javakit\lib\tools.jar; c:\javaee\lib\j2ee.jar;c:\progra~1\tomcat4\webapps\sqaa\WEB-INF; java_home = c:\javakit Tomcat 4.0.1 is installed in c:\progra~1\tomcat4. Java -version: java version 1.3.1_01 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01) Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode) This obviously seems like a problem with my classpath or with pack names and class locations, but it makes no sense to me that it would work outside of Tomcat. I deduce that it's a problem with my tomcat configuration (it doesn't know to look for it) or there's some cardinal rule that I've overlooked. Any other ideas? I've been up and down the tomcat and apache docs, finding exactly the same information on configuration everywhere on the web and in a few books I have (and in the config file comments!). They're all the same, and my standalone servlets work, so I'm pretty sure I have those instructions down alright. Below are my sources and their locations. If you see any mistakes, bear in mind that I've moved these things from heck to breakfast, always with the same result no matter what package, path or name I give this import. It's been in $tomcat_home\webapps\sqaa..classes\, $tomcat_home\webapps\sqaa\WEB-INF\libs\, c:\, c:\include, etc. Always the same error, with the NoClassDefFoundError reporting the current class I'm trying to import. (Irrelevant code omitted:) --- c:\progra~1\tomcat4\webapps\sqaa\web-inf\classes\test.java: --- //package classes /* I've tried w/ and w/o package spec, though examples don't use one. This class works either way. */ import java.io.*; import java.util.*; import classes.*; public class test { public test(){ } public static void main(String args[]) { Vector ssi = new Vector(); ssi.add(!--SSI:FILENAME--=c:/sample.tif); thelper.ssiServe(c:/html/test.html,ssi); } } --- c:\progra~1\tomcat4\webapps\sqaa\web-inf\classes\getimage.java: --- //package classes /* I've tried w and w/o package spec, though all examples don't use one. */ import java.io.*; import java.util.*; import javax.servlet.*; import
Re: Problems executing Conn Pool example that comes with JSQLConnect
Greetings, I'm currently evaluating the JSQLConnect Driver. I downloaded jndi1_2_1.zip from the sun site, followed the instructions and installed it in the following directory - C:\jdk1.3\jre\lib\ext\jndi.jar; I also added this path to my classpath. My problem is that I get the following exception when I run ExampleConnectionPool.java from the command line. Error:init JNDI javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java. lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory] Error:Register Datasources java.lang.NullPointerException JNDI Error:javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.C lassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory] Any feedback will be very much appreciated. Cheers, Rudi Do you have fscontext.jar (eg. 'com.sun.jndi.fscontext.RefFSContextFactory')? That's where RefFSContextFactory class lives, which seems to be the root of your problem based on your stacktrace. As I recall you may also need providerutil.jar. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Contrary Login Use Case
On Wed, 19 Dec 2001 [EMAIL PROTECTED] wrote: Date: Wed, 19 Dec 2001 17:19:20 -0500 From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Contrary Login Use Case In the standard use case for declarative security: 1. The user accesses a page 2. Tomcat uses web.xml-based Security Constraints and session data about authenticated users to determine whether to fulfill the request or redirect to a login or error page. This is good. But let's say a business analyst decides that in her webapp, every user should see page Foo without logging in. In addition a button shall be provided in Foo so that the lowly unauthenticated user can be authorized to see the page in its full glory, with all the superuser bells and whistles. (An example could be how Jive Forums work out of the box.) In this case, say we are starting at Page A, clicking on a link to some login servlet/jsp, and after authenticating, refreshing Page A. This seems to me like an awkward case for declarative security, but I don't expect sympathy from this hypothetical business analyst. So has anyone advice for how to do this? TIA. Here's one approach that should work: * Make sure that page A is not in the area protected by a security constraint (so the unauthenticated user can see it). * Make the link on A point to a url (call it B) that is within the protected area. * Have the servlet or JSP page that B points at do an immediate redirect back to A. * When the user clicks the link, they will be authenticated (because B is protected) and immediately transported back again to A. This kind of thing should work for either BASIC or FORM-based authentication. Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Why do all requests have the same HttpRequestFacade
On Wed, 19 Dec 2001, Casey Bragg wrote: Date: Wed, 19 Dec 2001 16:24:17 -0600 From: Casey Bragg [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Why do all requests have the same HttpRequestFacade Using Tomcat 4.0.1 latest release (nightly 12/18/01 build)... I'm trying to save each user's last request for later review. I'm capturing the request with a Request Filter (implements Filter). For example, I store the ServletRequest coming into the filter's doFilter method. This is actually an HttpRequestFacade object (i.e. org.apache.catalina.connector.HttpRequestFacade@21e554). I've noticed that this object pointer never changes for a given session (i.e. it remains 21e554 for subsequent requests by the given session). In addition, if I retrieve this stored request and execute its getRequestURI method, that method returns null. The getUserPrincipal returns null as well. Both are non null while the Filter stores the request (while not yet fully processed). Is this correct behavior? Is there a way to store the request such that its data remains intact even after the request has been fully processed? You cannot assume that the same request object will be used for every request -- that's just an artifact of the fact that you are not making simultaneous requests in your tests. The basic rule: it is not legal to reference anything in the HttpServletRequest that the servlet container gives you after the service() method of your servlet (and the doFilter() method of all your Filters) has returned. Anything you need to save across requests *must* be stored elsewhere (such as in session attributes). Thanks... ...Casey Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Problems executing Conn Pool example that comes with JSQLConnect
Hi Mark, Thanks for the prompt response. The files you suggested i add (fscontext.jar providerutil.jar) are not in the jndi1_2_1.zip. I am searching for them at the sun site. Any ideas where I can get them? Cheers, Rudi _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Clear Cache In IE5
Go to server.xml and add this property to your context reloadable=true .../ Actually, I've already got that in place. Here's what I have in the server.xml file Context path= docBase=ERPS debug=0 reloadable=true/ but TomCat still gives me the old page. Maybe someone on the list can tell me why. Anyway, thanks all the same. -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 12:19 AM To: Tomcat Users List Subject: Re: Clear Cache In IE5 1)Tools/Internet Options/Temporary Internet Files/Settings/Every Visit to the Page. 2)Tools/Internet Options/Temporary Internet Files/Delete Files/All offline content. And after Refresh for every page. Do it, I had that problem before and more if you use any caching server like squid, etc. Guido Thanks for that. But my problem turns out that TomCat gives the older version of my webapp. Actually, I replaced a new jsp file in my webapp with exactly the same name as the old jsp file. However, TomCat4.0 still gives me the older version. This is really annoying, why TomCat does something like that? I thought IE was the culprit but it's not. I'd really appreciate it, if someone can help me with this. Thanks a lot. -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 5:07 PM To: [EMAIL PROTECTED] Subject: Clear Cache In IE5 Hello all, This is a little bit off topic. Can you tell me how can I clear the cache in IE so that I can see the change I've in made in my webapp after invoking TomCat4.0 again? Thanks in advance. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: AW: Classloader question
I ran into a similar problem today that I can not explain while upgrading to tomcat 3.3. The JSP we created accesses a bean that uses the oracle 1.2 JDBC driver, classes12.zip. I placed the Oracle classes12.zip file in the myapp/WEB-INF/lib directory and then I got the NoClassDef exception. I unjar'd the .zip file in the myapp/WEB-INF/lib directory and still got the NoClassDef exception. I unjar'd the .zip file in the myapp/WEB-INF/classes directory and it worked. Where should the .zip file be placed for inclusion in a bean? I recycled Tomcat after every attempt. From: Lauer, Oliver [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Mon, 17 Dec 2001 18:56:34 +0100 To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: AW: Classloader question But why wasn't the class found in myapp/WEB-INF/lib ? Sorry, but I don't understand that !? AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 17. Dezember 2001 18:50 An: Tomcat Users List Betreff: Re: Classloader question On Mon, 17 Dec 2001, Heikki Doeleman wrote: Date: Mon, 17 Dec 2001 13:06:21 +0100 From: Heikki Doeleman [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Classloader question Hi everyone, trying to make a web application work using Tomcat 4.0.1 I found the following behaviour, which I don't quite understand: my application uses a library called xhive.jar - putting xhive.jar in [catalina]/common/lib This works fine, as expected - putting it in [myapp]/WEB-INF/lib Causes a ClassDefNotFoundError. I don't know why this is so, it does not seem to conform to the description in class-loader-howto.html. However I did see someone saying that in that directory, only .class files are added to the classpath, not .jars (http://www.geocrawler.com/archives/3/193/2000/12/0/4841079/). - putting it in both those places Causes a ClassCastException ?? Something seems to go terribly wrong when the jar is placed in both those directories. Can anyone explain more about this? I'd like to know exactly how this works, especially I'd like to know why classes from a jar in my application's WEB-INF/lib apparently are not loaded. This has been discussed numerous times in the archives, but the short answer is this: it is fundamental to the way Java class loaders work. The key issues: * A class named a.b.c.Foo loaded from two different class loaders is ***not*** the same class, even if the bytecodes are identical. Trying to assign from one to the other will give you ClassCastException errors. * The new operator in Java tries to load the specified class from the same classloader that loaded the class containing this code. If the class of that name has already been loaded by the other classloader, you again get ClassNotFoundException errors. * Class loader hierarchies can delegate up but not down. Thus, it's also easy to have the new operator cause ClassNotFoundException errors, even though you know that the class is there. Moral of the story -- you are *always* best off having one and only one copy of a class visible to a web application. There's ways to deal with some of these issues, but they get pretty intricate. Thanks Heikki Doeleman Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended
Re: AW: Classloader question
Rename zip to jar and put it in lib Jan On Wed, 19 Dec 2001, David Morsberger wrote: I ran into a similar problem today that I can not explain while upgrading to tomcat 3.3. The JSP we created accesses a bean that uses the oracle 1.2 JDBC driver, classes12.zip. I placed the Oracle classes12.zip file in the myapp/WEB-INF/lib directory and then I got the NoClassDef exception. I unjar'd the .zip file in the myapp/WEB-INF/lib directory and still got the NoClassDef exception. I unjar'd the .zip file in the myapp/WEB-INF/classes directory and it worked. Where should the .zip file be placed for inclusion in a bean? I recycled Tomcat after every attempt. From: Lauer, Oliver [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Mon, 17 Dec 2001 18:56:34 +0100 To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: AW: Classloader question But why wasn't the class found in myapp/WEB-INF/lib ? Sorry, but I don't understand that !? AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 17. Dezember 2001 18:50 An: Tomcat Users List Betreff: Re: Classloader question On Mon, 17 Dec 2001, Heikki Doeleman wrote: Date: Mon, 17 Dec 2001 13:06:21 +0100 From: Heikki Doeleman [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Classloader question Hi everyone, trying to make a web application work using Tomcat 4.0.1 I found the following behaviour, which I don't quite understand: my application uses a library called xhive.jar - putting xhive.jar in [catalina]/common/lib This works fine, as expected - putting it in [myapp]/WEB-INF/lib Causes a ClassDefNotFoundError. I don't know why this is so, it does not seem to conform to the description in class-loader-howto.html. However I did see someone saying that in that directory, only .class files are added to the classpath, not .jars (http://www.geocrawler.com/archives/3/193/2000/12/0/4841079/). - putting it in both those places Causes a ClassCastException ?? Something seems to go terribly wrong when the jar is placed in both those directories. Can anyone explain more about this? I'd like to know exactly how this works, especially I'd like to know why classes from a jar in my application's WEB-INF/lib apparently are not loaded. This has been discussed numerous times in the archives, but the short answer is this: it is fundamental to the way Java class loaders work. The key issues: * A class named a.b.c.Foo loaded from two different class loaders is ***not*** the same class, even if the bytecodes are identical. Trying to assign from one to the other will give you ClassCastException errors. * The new operator in Java tries to load the specified class from the same classloader that loaded the class containing this code. If the class of that name has already been loaded by the other classloader, you again get ClassNotFoundException errors. * Class loader hierarchies can delegate up but not down. Thus, it's also easy to have the new operator cause ClassNotFoundException errors, even though you know that the class is there. Moral of the story -- you are *always* best off having one and only one copy of a class visible to a web application. There's ways to deal with some of these issues, but they get pretty intricate. Thanks Heikki Doeleman Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of
Re: AW: Classloader question
On Wed, 19 Dec 2001, David Morsberger wrote: Date: Wed, 19 Dec 2001 21:19:16 -0500 From: David Morsberger [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED], Lauer, Oliver [EMAIL PROTECTED] Subject: Re: AW: Classloader question I ran into a similar problem today that I can not explain while upgrading to tomcat 3.3. The JSP we created accesses a bean that uses the oracle 1.2 JDBC driver, classes12.zip. I placed the Oracle classes12.zip file in the myapp/WEB-INF/lib directory and then I got the NoClassDef exception. This is the expected behavior. I unjar'd the .zip file in the myapp/WEB-INF/lib directory and still got the NoClassDef exception. So is this. I unjar'd the .zip file in the myapp/WEB-INF/classes directory and it worked. And this. As an alternative, if you had put the JDBC driver in a JAR file in the /WEB-INF/lib directory, it also would have worked. See the Servlet Specification for more details about where web applications load classes from (unpacked classes under /WEB-INF/classes or ***JAR FILES*** under /WEB-INF/lib). Where should the .zip file be placed for inclusion in a bean? I recycled Tomcat after every attempt. Nowhere. 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. Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.01 tag renders in wrong place
David, My architecture is pretty straightforward. I have a jsp page. It contains my tag. My tag does a RequestDispatcher.inlcude() to another jsp page based on whether a user is logged in. Nothing tricky here. Well, except for the trick of the included content magically appearing in the wrong spot! Thanks for your response, Bill Pfeiffer - Original Message - From: David M. Karr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 19, 2001 11:26 AM Subject: Re: Tomcat 4.01 tag renders in wrong place Bill == Bill Pfeiffer [EMAIL PROTECTED] writes: Bill The page buffer/autoFlush tag worked like a charm: Bill %@ page buffer=0 autoFlush=true % Bill Big Thanks!! Bill I will research into why I have to add this tag to get my include to work Bill correctly, but if anyone has a short answer on it, I'd be curious to know. It almost seems like your include machinery is writing to the main output stream, as opposed to the buffer owned by the tag. That seems to explain the circumstances you're seeing. -- === David M. Karr ; Best Consulting [EMAIL PROTECTED] ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.01 tag renders in wrong place
On Wed, 19 Dec 2001, Bill Pfeiffer wrote: Date: Wed, 19 Dec 2001 21:44:14 -0500 From: Bill Pfeiffer [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat 4.01 tag renders in wrong place David, My architecture is pretty straightforward. I have a jsp page. It contains my tag. My tag does a RequestDispatcher.inlcude() to another jsp page based on whether a user is logged in. Nothing tricky here. Well, except for the trick of the included content magically appearing in the wrong spot! There were a couple of bug fixes in this area that will show up in Tomcat 4.0.2 shortly (and are also fixed in the HEAD branch, which is what you get when you download a nightly build). You should also be aware, in case it matters to your application logic, that calling PageContext.include() causes the response to be committed first. This is due to a requirement that remains in the Javadocs for PageContext.include() from JSP 1.1 days -- even though that is no longer the desired behavior, the requirement is still there and still has to be enforced. Thanks for your response, Bill Pfeiffer Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Problems executing Conn Pool example that comes with JSQLConnect
At 11:05 AM 12/20/2001 +1000, you wrote: Hi Mark, Thanks for the prompt response. The files you suggested i add (fscontext.jar providerutil.jar) are not in the jndi1_2_1.zip. I am searching for them at the sun site. Any ideas where I can get them? Cheers, Rudi This is one of the oddest and hardest to find download of any Sun product/package I've encountered. To be honest I initially just copied it from my Forte FJ lib area after giving up trying to find it at Sun a while back. You piqued my interest again since it was such a frustrating experience, so I tried again. This time I did find it at http://java.sun.com/products/jndi/index.html#download - look for the 'Download JNDI 1.2.1 More' button which (after the usual license accept screen) will lead you to another download screen that has an 'FS Context' download option. Why Sun made this so hard to find is beyond me. hth Mark -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
HELP - URGENT : Stability of Tomcat if compare with JBOSS or JRUN
Dear All, I am in a decision to buy a software or use tomcat in real production.. I am very familiar with tomcat 3.2, but never try 3.3, and tomcat 4 still in progress (i cannot recommended tomcat 3.3 and 4 because i still cannot install cocoon 1.8.2, and the cocoon list still not response)..Because our content management system is run on top of cocoon 1.8.2 and cocoon 2 is not compatible. :( I want to create a portal, category: intranet, with staff more than 10.000. This will become nationally project that handle more than millions people... The country for implementation is Indonesia. This is not a internet portal, but will be intranet portal with private B2B marketplace inside it. This project must run on the Net at April, and the prototype of this B2B using Tomcat :) The project will serve approx half of Indonesian citizen ( I think this is database problem right) and there will be instance problem there... Indonesia have 250 millions citizen, and there will be 120million citizen, the database will include all parents and children. Current System is using Oracle Developer, ORacle Database, and SUN (more than 20 SUNs was used there)... and there will be more than 24 points of Frame Relay connection. I need you question. The category is URGENT.. if you can recommended it using Tomcat, I will use it.. or may be using JRUN if the answer is not satified enough.. sorry for this wording. -- I just want to show to the world that tomcat is good and qualified enough to run in real production -- The final decision is using Java as standard programming, because the multiplatform of that client environment. We are JRUN partner, and I want to try tomcatany comment?? Question: Do you have a try to use tomcat in a production with user more than 1000 concurrent user in one time? can I use tomcat? or I must buy a JRUN??? or JBOSS + Tomcat? Because with this business case, i think tomcat is enough, because the project is look like data warehousing... We are studying Weblogic, and has contact Weblogic Singapore.. but I still interest with tomcat or may be JBoss+tomcat.. Thanks Frans Thamura [EMAIL PROTECTED] CTO Adelva.com Jakarta Indonesia _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: RMI error (SocketException: socket write error) on Tomcat 4.0, NT4/Win2K
I have found the solution. It turns out that RMI fails if Tomcat is installed in directory with white spaces. Before my original posting, I had actually seen this bug in the tomcat-dev mailing list: http://www.mail-archive.com/tomcat-dev%40jakarta.apache.org/msg17201.html But I thought my problem was a different one because the error mentioned in this bug report was one of MalformedURL. Out of desperation, I tried re-installing Tomcat in a directory without white space and now it works. In any case, thanks RS. cheehan [EMAIL PROTECTED] wrote: Turn on logging on the RMI server process: java -Djava.rmi.server.logCalls=true -Djava.rmi.server.logLevel=VERBOSE -Djava.rmi.loader.logLevel=VERBOSE ServerName where, java.rmi.server.logCalls=true - will log all incoming calls and exceptions java.rmi.server.logLevel=VERBOSE - will log details of outgoing calls java.rmi.loader.logLevel=VERBOSE - logs classname and codebase whenever RMI attempts to load a class as aresult of unmarshalling an arg. This could help in debugging. Thanks. RS. Tee Chee Han [EMAIL PROTECTED] on 12/19/2001 04:47:18 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: RMI error (SocketException: socket write error) on Tomcat 4.0, NT4/Win2K Hi, -- Environment -- I am running Tomcat 4.0.1 on NT4 with JDK1.3.0. -- Error Symptom -- I have a servlet that makes RMI calls to an RMI server process (non EJB) on the same machine. It used to work fine on Tomcat 3.2.3 and Tomcat 3.3 but when we switched to Tomcat 4.0 it stopped working. The servlet looks-up the RMI server object successfully but fails as soon as it tries to invoke an RMI method with this exception: java.net.SocketException: Connection aborted by peer: socket write error [See end of message for full stack trace] At first we suspected it had to do with the policy file but we have ruled that out because we are NOT running with the -security option and the error doesn't seem to point to a security or permission problem. It also doesn't seem like a CLASSPATH problem because everything else (including the RMI lookup) works fine. I have scoured the web for a solution but found only an identical question on comp.lang.java with no reply. Is Tomcat 4.0 doing anything different with RMI? Is JNDI or EJB somehow involved here by default? We don't use either of these. Any help would be much appreciated! cheehan -- Stack Trace -- java.rmi.MarshalException: error marshalling arguments; nested exception is: java.net.SocketException: Connection aborted by peer: socket write error java.net.SocketException: Connection aborted by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:72 ) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:116) at java.io.ObjectOutputStream.drain(ObjectOutputStream.java:1477) at java.io.ObjectOutputStream.setBlockData(ObjectOutputStream.java:1500) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:407) at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:268) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:106) at hello.ExecuterImpl_Stub.execute(Unknown Source) [...] at hello.ServletA.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve .java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
Newbee - how does tomcat 3.1 know the names of the jar files to load
Hi, I have had a brief look at the archives, but I can't find this particular needle in the haystack. I am trying to get an servlet up and running at an ISP that has tomcat 3.1 and I am running into a couple of problems. (The ISP will soon be upgrading to 4.01 but for now I have to make do with 3.1). Apart from the fact that the servlet isn't yet running, I am noticing something quite odd. If I restart tomcat with one of the necessary jar files missing from my WEB-INF/lib directory I get: Error loading default servlet java.lang.IllegalArgumentException: Repository //WEB-INF/lib/turbine-2.1.jar doesn't exist! How is it that tomcat knows the name of the jar file rather than just not finding a particular class? I actually have the contents of this particular jar file packaged up in another jar file (with various patched classes included). I would have thought the name of the jar files was irrelevant. Can someone please give me a clue as to how this is happening so that I can get back to the real problem of getting the servlet to work. Thanks, Scott -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]