Shutdown problem in Tomcat Version 5.5.12 ("Protocol handler pause failed")
A variant on many postings I've found, unfortunately none of the remedies work. Been googling furiously to no avail. Surely tomcat on Fedora can't be this broken out of the box, can it? Problem: Tomcat fails to shut down in response to shutdown.sh script. Hangs, eventually throws exception with dreaded "Protocol handler pause failed" message. I have tried both values for LD_ASSUME_KERNEL as per release notes. It changes the behavior slightly, but the problem remains (more below). Environment: - A freshly built & updated fedora RC4 install: 2.6.14-1.1656_FC4 - A completely unmodified Tomcat Version 5.5.12 - I untarred it and ran it. - Sun's jdk1.5.0_06 Repro: 1) run startup.sh 2) hit localhost:8080 in browser, works 3) run shutdown.sh 4) log shows: Jan 19, 2006 11:08:27 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 It hangs for a minute or so, then throws: Jan 19, 2006 11:03:48 PM org.apache.catalina.connector.Connector pause SEVERE: Protocol handler pause failed java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at java.net.Socket.(Socket.java:365) at java.net.Socket.(Socket.java:207) at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:463) at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:270) at org.apache.jk.server.JkMain.pause(JkMain.java:679) at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:162) at org.apache.catalina.connector.Connector.pause(Connector.java:1031) at org.apache.catalina.core.StandardService.stop(StandardService.java:491) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:714)at org.apache.catalina.startup.Catalina.stop(Catalina.java:586) at org.apache.catalina.startup.Catalina.start(Catalina.java:561) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Interestingly enough, lsof shows different behaviors depending on the value of the LD_ASSSUME_KERNEL variable. With no variable set, # lsof -P | grep java | grep 8080 java 6555 chris 10u IPv6 329120 TCP *:8080 (LISTEN) setting LD_ASSUME_KERNEL=2.2.5 results in about 40 threads listening on the port (in the hung state): # lsof -P | grep java | grep 8080 java 6652 chris 12u IPv6 331547 TCP *:8080 (LISTEN) java 6653 chris 12u IPv6 331547 TCP *:8080 (LISTEN) ...etc setting it to 2.4.1 yields the more entertaining: # lsof -P | grep java | grep 8080 java 6779 chris mem REG 253,0 14656364980808 /lib/obsolete/linuxthreads/i686/libc-2.3.5.so java 6779 chris 12u IPv6 334251 TCP *:8080 (LISTEN) java 6780 chris mem REG 253,0 14656364980808 /lib/obsolete/linuxthreads/i686/libc-2.3.5.so java 6780 chris 12u IPv6 334251 TCP *:8080 (LISTEN) ... but the behavior is the same. This is awful, I'm losing faith. I actually booted the XP partition today... -- Chris Abajian <[EMAIL PROTECTED]> thePlatform, Inc. (206) 839-0600 ext. 216 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL Failure on Tomcat 5.5.12
Hey Tony Sounds like you forget to add the port when you connect. I tried this out on my tomcat installation. When I connect without specifying the port, I get the same error message. So, in your case, connect to https://localhost:443/[mywebappdocbase]. bye Philipp [EMAIL PROTECTED] 01/20/2006 12:59 AM Please respond to "Tomcat Users List" To users@tomcat.apache.org cc Subject SSL Failure on Tomcat 5.5.12 I just installed Tomcat 5.5.12 on Windows XP (from the .exe install). I created and have a working webapp with servlets on the http port (80). I carefully followed the instructions on the apache tomcat website for setting up a SSL https connection. I followed it in every detail, creating my own certificate using keytool (as explained both on the apache site and right there in the server.xml file). In server.xml I set the http connector to port 80 and the https connector to port 443. All normal http requests work fine. But when I try to connect to https://localhost, the browser (Firefox) just displays "Loading" and ultimately I get a popup alert of "The connection to localhost has terminated unexpectedly. Some data may have been transferred." While the browser is "loading" I can bring up a Command Window and issue a netstat -a -n command and I can see that there is an established socket connection on port 443. But nothing happens. Any help is surely appreciated. By the way, o n a different PC (also Windows XP) I used netbeans (4.1) to develop a webapp, and on that I did the same SSL procedure and it worked perfectly. --thanks --Tony C. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
There must be a bug in SSL support
my ssl is ok, then I just add a new key to .keystore, then my ssl doesn't work. the client get the new key from the tomcat server. after I delete the new key, everything starts to work again. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
On 1/20/06, gupta vidhi <[EMAIL PROTECTED]> wrote: > my problem of Tomcat is been solved.now my simple JSP pages(without DB > connectivity) is been solved. > but when i'm executing my JSP page(with DB Connectivity) is creating > problems and showing the following error : > > javax.servlet.ServletException: No suitable driver > at > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498) > at org.apache.jsp.test_DB1_jsp._jspService(test_DB1_jsp.java:98) > and so on. Are you sure that the classes12.jar is not corrupted ?. > i'd set the CLASSPATH of classes12.jar as: > > C:\Program Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\lib > There is no use of setting the CLASSPATH variable. Tomcat wont take this for running the application. If it is not solving your problem you may have to download ojdbc14.jar from oracle.com and use it as it may be due to the JDK 1.5. > Kindly help. > > Regards, > Vidhi > David Smith <[EMAIL PROTECTED]> wrote: > I'd recommend checking that your classes12.jar file is valid. This > should work: > > $JAVA_HOME/bin/jar -v -t -f webapps/ROOT/WEB-INF/lib/classes12.jar > > It'll list the table of contents of the archive and be verbose about it. > Replace -t with -x to extract files for further inspection. > > --David > > gupta vidhi wrote: > > >i'm sending you the whole localhost file: > > 2006-01-19 12:11:09 HostConfig[localhost]: Deploying configuration > > descriptor admin.xml > >2006-01-19 12:11:29 HostConfig[localhost]: Deploying configuration > >descriptor manager.xml > > > > > > >... on and on and on . > > > > >2006-01-19 12:11:31 HostConfig[localhost]: Deploying web application > >directory ROOT > >2006-01-19 12:11:31 StandardHost[localhost]: Installing web application at > >context path from URL file:C:\Program > >Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT > >2006-01-19 12:11:31 WebappLoader[]: Deploying class repositories to work > >directory C:\Program > >Files\Tomcat\jakarta-tomcat-4.1.31\work\Standalone\localhost\_ > >2006-01-19 12:11:31 WebappLoader[]: Deploy JAR /WEB-INF/lib/classes12.jar to > >C:\Program > >Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\lib\classes12.jar > >2006-01-19 12:11:31 StandardHost[localhost]: ContainerBase.addChild: start: > >LifecycleException: start: : java.lang.ClassCastException: > >org.apache.naming.resources.FileDirContext > > at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:631) > > at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) > > at > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774) > > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760) > > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548) > > at > > org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260) > > at org.apache.catalina.core.StandardHost.install(StandardHost.java:741) > > at > > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:512) > > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:354) > > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671) > > at > > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) > > at > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149) > > at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) > > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) > > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) > > at org.apache.catalina.core.StandardService.start(StandardService.java:450) > > at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:463) > > at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) > > at org.apache.catalina.startup.Catalina.process(Catalina.java:129) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) > >- Root Cause - > >java.lang.ClassCastException: org.apache.naming.resources.FileDirContext > > at > > org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:1012) > > at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:618) > > at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) > > at > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774) > > at org.apache.catalina.core.ContainerBase.addChild(
Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
my problem of Tomcat is been solved.now my simple JSP pages(without DB connectivity) is been solved. but when i'm executing my JSP page(with DB Connectivity) is creating problems and showing the following error : javax.servlet.ServletException: No suitable driver at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498) at org.apache.jsp.test_DB1_jsp._jspService(test_DB1_jsp.java:98) and so on. i'd set the CLASSPATH of classes12.jar as: C:\Program Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\lib Kindly help. Regards, Vidhi David Smith <[EMAIL PROTECTED]> wrote: I'd recommend checking that your classes12.jar file is valid. This should work: $JAVA_HOME/bin/jar -v -t -f webapps/ROOT/WEB-INF/lib/classes12.jar It'll list the table of contents of the archive and be verbose about it. Replace -t with -x to extract files for further inspection. --David gupta vidhi wrote: >i'm sending you the whole localhost file: > 2006-01-19 12:11:09 HostConfig[localhost]: Deploying configuration descriptor > admin.xml >2006-01-19 12:11:29 HostConfig[localhost]: Deploying configuration descriptor >manager.xml > > >... on and on and on . > >2006-01-19 12:11:31 HostConfig[localhost]: Deploying web application directory >ROOT >2006-01-19 12:11:31 StandardHost[localhost]: Installing web application at >context path from URL file:C:\Program >Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT >2006-01-19 12:11:31 WebappLoader[]: Deploying class repositories to work >directory C:\Program >Files\Tomcat\jakarta-tomcat-4.1.31\work\Standalone\localhost\_ >2006-01-19 12:11:31 WebappLoader[]: Deploy JAR /WEB-INF/lib/classes12.jar to >C:\Program >Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\lib\classes12.jar >2006-01-19 12:11:31 StandardHost[localhost]: ContainerBase.addChild: start: >LifecycleException: start: : java.lang.ClassCastException: >org.apache.naming.resources.FileDirContext > at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:631) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774) > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548) > at > org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260) > at org.apache.catalina.core.StandardHost.install(StandardHost.java:741) > at > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:512) > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:354) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671) > at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) > at org.apache.catalina.core.StandardService.start(StandardService.java:450) > at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) > at org.apache.catalina.startup.Catalina.start(Catalina.java:463) > at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) > at org.apache.catalina.startup.Catalina.process(Catalina.java:129) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) >- Root Cause - >java.lang.ClassCastException: org.apache.naming.resources.FileDirContext > at > org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:1012) > at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:618) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774) > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548) > at > org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260) > at org.apache.catalina.core.StandardHost.install(StandardHost.java:741) > at > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:512) > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:354) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671) > at org.apache.cata
Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
my problem of Tomcat is been solved.now my simple JSP pages(without DB connectivity) is been solved. but when i'm executing my JSP page(with DB Connectivity) is creating problems and showing the following error : javax.servlet.ServletException: No suitable driver at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498) at org.apache.jsp.test_DB1_jsp._jspService(test_DB1_jsp.java:98) and so on. i'd set the CLASSPATH of classes12.jar as: C:\Program Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\lib Kindly help. Regards, Vidhi David Smith <[EMAIL PROTECTED]> wrote: I'd recommend checking that your classes12.jar file is valid. This should work: $JAVA_HOME/bin/jar -v -t -f webapps/ROOT/WEB-INF/lib/classes12.jar It'll list the table of contents of the archive and be verbose about it. Replace -t with -x to extract files for further inspection. --David gupta vidhi wrote: >i'm sending you the whole localhost file: > 2006-01-19 12:11:09 HostConfig[localhost]: Deploying configuration descriptor > admin.xml >2006-01-19 12:11:29 HostConfig[localhost]: Deploying configuration descriptor >manager.xml > > >... on and on and on . > >2006-01-19 12:11:31 HostConfig[localhost]: Deploying web application directory >ROOT >2006-01-19 12:11:31 StandardHost[localhost]: Installing web application at >context path from URL file:C:\Program >Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT >2006-01-19 12:11:31 WebappLoader[]: Deploying class repositories to work >directory C:\Program >Files\Tomcat\jakarta-tomcat-4.1.31\work\Standalone\localhost\_ >2006-01-19 12:11:31 WebappLoader[]: Deploy JAR /WEB-INF/lib/classes12.jar to >C:\Program >Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\lib\classes12.jar >2006-01-19 12:11:31 StandardHost[localhost]: ContainerBase.addChild: start: >LifecycleException: start: : java.lang.ClassCastException: >org.apache.naming.resources.FileDirContext > at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:631) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774) > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548) > at > org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260) > at org.apache.catalina.core.StandardHost.install(StandardHost.java:741) > at > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:512) > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:354) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671) > at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) > at org.apache.catalina.core.StandardService.start(StandardService.java:450) > at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) > at org.apache.catalina.startup.Catalina.start(Catalina.java:463) > at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) > at org.apache.catalina.startup.Catalina.process(Catalina.java:129) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) >- Root Cause - >java.lang.ClassCastException: org.apache.naming.resources.FileDirContext > at > org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:1012) > at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:618) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774) > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548) > at > org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260) > at org.apache.catalina.core.StandardHost.install(StandardHost.java:741) > at > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:512) > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:354) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671) > at org.apache.cata
Re: Server certificates for tomcat
"Jack" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Server certificate: > > The certificate for the engine with alias "tomcat" > > The certificate for a specific host > > The certificate for a specific web-app > > > > If a web-app doesn't have a certificate, it can be configured to use the > certificate of the host. Similarly, if a host doesn't have a certificate, > it can be configured to use the certificate of the engine. However, when a > web-app has a certificate, then this one should be used rather than always > using "tomcat". > Pretty much a pipe-dream, since the SSL protocol requires that the server send it's cert before it even knows the Host, much less the webapp :). There is pretty much no other place it can go other than with the Connector. > > > clientAuth of https connector is not relevant, at this level (engine), ask > for a client's certificate, what is it for? It should be like this: If the > client is requesting a server resource that requires client > authentication, the server requests the client's certificate. If we don't > ask for certificate, then truststore config is irrelevant. "clientAuth" > should be a property of a web-app. Since web.xml doesn't specify it, it > can be include into the web-app context, context.xml. > > The 'clientAuth' on the Connector is a sledgehammer that some people find useful in a limited number of cases. CLIENT-CERT in your web.xml does pretty much what you want. JSSE (which is what actually handles the SSL protocol stuff) wants to validate the client-cert up to a trusted root CA, so it needs the union of the webapp's root CAs in its truststore to function. You can always use a Filter to check that the cert is signed by the correct CA for the webapp. > > At the host level, we have the same question, too. > > > > At the web-app level, it is reasonable. This web-app asks for a client > certificate. And the UserManager will consult the usercontext of this > web-app for keystore & truststore information. > > > > At present, what component does the verification of a client's > certificate? The connector/sslsupport should call the UserManager to do > so. > > There are parts to this. JSSE verifies that the certificate is valid (e.g. not expired), and that the chain can be traced to a trusted root CA. If this fails, none of the Tomcat code gets a chance to intervene: The connection is simply closed. Later your configured Realm attempt to map the cert to an actual user, and resolves the roles. However, currently all of the Realms that ship with Tomcat only work on the actual client-cert subject (so a cert signed by trusted CA1 is the same as a cert signed by trusted CA2). You would need your own custom Realm if you needed to differentiate certs based on the signer chain. > > Here, I don't know the reason why many people say the design of SSL > doesn't allow several domain name based certificates on the single IP. Not strictly true, but practically no browser supports the protocol extension that allows this, so it's currently not worth the effort of trying to support it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL Failure on Tomcat 5.5.12
Iosev, Thank you so much! That was exactly the problem. I had no idea, it was driving me crazy. I hope this helps others as well, --thanks again, --Tony C. -- Original message -- From: "Iosev Perez Rivero" <[EMAIL PROTECTED]> > So, I feed that u must check into /TOMCAT_HOME/bin and delete tcnative-1.dll > if > u using SSL without openSSL or without CA. > > Iósev Pérez Rivero > Estudiante 4to. Año > Universidad de las Ciencias Informáticas > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 19, 2006 6:00 PM > To: users@tomcat.apache.org > Subject: SSL Failure on Tomcat 5.5.12 > > I just installed Tomcat 5.5.12 on Windows XP (from the .exe install). I > created > and have a working webapp with servlets on the http port (80). I carefully > followed the instructions on the apache tomcat website for setting up a SSL > https connection. I followed it in every detail, creating my own certificate > using keytool (as explained both on the apache site and right there in the > server.xml file). In server.xml I set the http connector to port 80 and the > https connector to port 443. All normal http requests work fine. But when I > try > to connect to https://localhost, the browser (Firefox) just displays > "Loading" > and ultimately I get a popup alert of "The connection to localhost has > terminated unexpectedly. Some data may have been transferred." While the > browser > is "loading" I can bring up a Command Window and issue a netstat -a -n > command > and I can see that there is an established socket connection on port 443. But > nothing happens. Any help is surely appreciated. By the way, o > n a different PC (also Windows XP) I used netbeans (4.1) to develop a > webapp, > and on that I did the same SSL procedure and it worked perfectly. > --thanks > --Tony C. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL Failure on Tomcat 5.5.12
So, I feed that u must check into /TOMCAT_HOME/bin and delete tcnative-1.dll if u using SSL without openSSL or without CA. Iósev Pérez Rivero Estudiante 4to. Año Universidad de las Ciencias Informáticas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 6:00 PM To: users@tomcat.apache.org Subject: SSL Failure on Tomcat 5.5.12 I just installed Tomcat 5.5.12 on Windows XP (from the .exe install). I created and have a working webapp with servlets on the http port (80). I carefully followed the instructions on the apache tomcat website for setting up a SSL https connection. I followed it in every detail, creating my own certificate using keytool (as explained both on the apache site and right there in the server.xml file). In server.xml I set the http connector to port 80 and the https connector to port 443. All normal http requests work fine. But when I try to connect to https://localhost, the browser (Firefox) just displays "Loading" and ultimately I get a popup alert of "The connection to localhost has terminated unexpectedly. Some data may have been transferred." While the browser is "loading" I can bring up a Command Window and issue a netstat -a -n command and I can see that there is an established socket connection on port 443. But nothing happens. Any help is surely appreciated. By the way, o n a different PC (also Windows XP) I used netbeans (4.1) to develop a webapp, and on that I did the same SSL procedure and it worked perfectly. --thanks --Tony C. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calling Realm.authenticate() doesn't register Principal in with the Session??
Mark Thomas wrote: Ken Johanson wrote: Hi all, I am able to access the current context's org.apache.catalina.Realm object using Yoav Shapira's Tomcat-Realm example; however, when I call Realm.authenticate(String user, String pass), the Principal object that it returns is not being registered with the session.. In other words, subsequent requests (inside the same webapp / context that I'm calling invoking Realm.authenticate from) just return null for getRemoteUser() and getPrincipal()... Shouldn't authenticate() register the Principal with the Session automatically? Or do I need to call register() in interface Authenticator? Thank, ken What are you trying to do? From the amount of access you seem to need to Tomcat internals, you might be better off just writing a custom realm and/or authenticator. Mark Mark, I'm trying to write a facade API that will call into whatever Realm/Authenticator that the user already has configured (though an abstract/overridden method)... the idea being that no changes to the user's existing auth config or modules are required, nor that the user should need to change out any custom realm/authenticator that they may have written, for mine. So the solution needs to transparently call into some existing method(s) in the 'Base' classes or interface impls.. This would be exposed in something like: static boolean Tomcat5.authenticate(request, response, user, pass); (Or an X509 chain) Hope this makes sense, ken - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FW: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days
Hi Monica, For the past few days I was working on PermGen/Heap space issues. Last night I cold fix this problem after a very long research. I was getting OutOfMemoryError due to PermGen space. I have set -XX:MaxPermGen parameter in my service.bat. Here is the code sample : "%EXECUTABLE%" //US//%SERVICE_NAME% --JvmOptions "-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed;-XX:PermSize=128m;-XX:MaxPermSize=256m" --StartMode jvm --StopMode jvm This is the configuration setting if you are starting Tomcat as a service. FYI : My Tomcat version is 5.0.30. Note: Must be very careful with the syntax. Hope this will help you. Aparna "Monica Wu" <[EMAIL PROTECTED]> 01/19/2006 04:06 PM Please respond to "Tomcat Users List" To "Tomcat Users List" cc Subject RE: FW: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days Thanks, Glen! Upgrading to 5.5.x is an idea. Another one is about PermGen space, suggested by Chunk in earlier message in this thread. So far I don't have confidence that TC5.5 can fix the problem my TC5.0 has. I will try to tune up PermGen space parameter and see how it goes. By following Chunk's email, I am googling how to tune up PermGen parameter. I will do followup for progress. Thank you! - Monica -Original Message- From: Glen Mazza [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 3:48 PM To: Tomcat Users List Subject: Re: FW: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days Monica Wu wrote: > Production tomcat server was upgraded from 3.3.1 to 5.0.28 about 3 weeks ago. It hang up every 1 or 2 days during weekdays, depending on web server traffic. Unfortunately, I don't know enough to be able to help you here, but since 5.0.28 isn't working anyway, have you considered upgrading to 5.5.x to see if that would fix the problem? Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FW: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days
Thanks, Glen! Upgrading to 5.5.x is an idea. Another one is about PermGen space, suggested by Chunk in earlier message in this thread. So far I don't have confidence that TC5.5 can fix the problem my TC5.0 has. I will try to tune up PermGen space parameter and see how it goes. By following Chunk's email, I am googling how to tune up PermGen parameter. I will do followup for progress. Thank you! - Monica -Original Message- From: Glen Mazza [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 3:48 PM To: Tomcat Users List Subject: Re: FW: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days Monica Wu wrote: > Production tomcat server was upgraded from 3.3.1 to 5.0.28 about 3 weeks > ago. It hang up every 1 or 2 days during weekdays, depending on web server traffic. Unfortunately, I don't know enough to be able to help you here, but since 5.0.28 isn't working anyway, have you considered upgrading to 5.5.x to see if that would fix the problem? Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FW: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days
Monica Wu wrote: Production tomcat server was upgraded from 3.3.1 to 5.0.28 about 3 weeks ago. It hang up every 1 or 2 days during weekdays, depending on web server traffic. Unfortunately, I don't know enough to be able to help you here, but since 5.0.28 isn't working anyway, have you considered upgrading to 5.5.x to see if that would fix the problem? Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL Failure on Tomcat 5.5.12
I just installed Tomcat 5.5.12 on Windows XP (from the .exe install). I created and have a working webapp with servlets on the http port (80). I carefully followed the instructions on the apache tomcat website for setting up a SSL https connection. I followed it in every detail, creating my own certificate using keytool (as explained both on the apache site and right there in the server.xml file). In server.xml I set the http connector to port 80 and the https connector to port 443. All normal http requests work fine. But when I try to connect to https://localhost, the browser (Firefox) just displays "Loading" and ultimately I get a popup alert of "The connection to localhost has terminated unexpectedly. Some data may have been transferred." While the browser is "loading" I can bring up a Command Window and issue a netstat -a -n command and I can see that there is an established socket connection on port 443. But nothing happens. Any help is surely appreciated. By the way, o n a different PC (also Windows XP) I used netbeans (4.1) to develop a webapp, and on that I did the same SSL procedure and it worked perfectly. --thanks --Tony C. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5 and cgi execution - simple fix
Linda Solomon wrote: > Hello, > > I don't believe that Tomcat 4 executed every cgi thru "perl". > If I execute > "perl cgi-program" Found it. Didn't quite go back far enough in the change logs. The cause is the fix for bug 22858. (http://issues.apache.org/bugzilla/show_bug.cgi?id=22858) > I set the "executable" to "/bin/doexec" and all is well once again. > I know this solution works on a Linux platform (both Redhat 7.3 and > Redhat AS3.0). > I do not know what solution works for other platforms. I haven't tested this but it should work. Define the CGI servlet several times in web.xml (you will need to specify a different servlet-name for each instance) and provide different mapping and init parameters for each combination you need to support. For example you could define an extension mapping of *.pl with an executable of "perl" and *.cgi with an executable of "/bin/sh" or whatever is appropriate for your various cgi scripts. Be aware that if you use extension mapping you must set cgiPathPrefix to "". Also bear in mind the mapping rules in SRV.11.1 for mapping requests to servlets. HTH, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days
> From: Monica Wu [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after > running 1 or 2 days > > There are quite a few cases reported tomcat5 hangups. Did I > miss an important place that traded in tomcat upgrade tricks? The hangs seem to fall into a few major categories, plus a wide variety of minor ones. Two of the majors that might be occurring in your situation: 1) Running out of DB connections due to not closing them. 2) Running out of PermGen space, even though there's plenty of room in the heap. The former would seem unlikely, since your app seemed to be running properly before. The latter occurs primarily after webapps have been reloaded, but perhaps could happen even without that if your PermGen is too small. (Object allocation and garbage collection has changed dramatically between JRE 1.3 and 1.5.) Again, a thread dump should help you find out where the threads are when everything hangs up. Setting -verbose:gc on the java command line will show you if you're getting into trouble with the PermGen. You'll need to use that from a command prompt or redirect the -verbose output with -Xloggc. Some users have reported occasional problems running with -server, so you might want to try forcing -client just to make sure that's not having an affect. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: creating html files within an web application? write access?
SOA Work wrote: Hi there, I'm a developer new to web programming. I'm using tomcat 5.x to deploy my applications. Now I have an web application using an other application to generate some html files and necessary folders. I would like to use my web application to automatically create the files, so a user knowing the url can view the generated html files. Have you considered JSP (with JSTL tags)? You can do all sorts of user- or other business logic-specific manipulations to generate the HTML that will be returned to the client. 1) Is it possible to execute a java programm within an web application (calling the main method) Yes; servlets can be coded just like other Java classes. 2) Am I allowed to write files in my web application? Yes; but I suspect rarely done given your requirements (usually you just use JSP) 3) Can I configure tomcat to allow this? I don't think Tomcat needs to be specially configured for this. Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5 and cgi execution - simple fix
Hello, I don't believe that Tomcat 4 executed every cgi thru "perl". If I execute "perl cgi-program" from the Linux command line, I get the same error that occurs when Tomcat 5 executes a cgi using its default "executable" (that is, perl). So, the problem is that perl cannot handle anything but scripts. Through other means, I found that the Linux program /bin/doexec executes all of the cgi's as needed. I set the "executable" to "/bin/doexec" and all is well once again. I know this solution works on a Linux platform (both Redhat 7.3 and Redhat AS3.0). I do not know what solution works for other platforms. Thanks, Linda Linda Solomon wrote: Mark, Thanks for the suggestion. I read thru the differences and nothing specific stood out as the root of my problem. I noticed that hash tables are replaced by array lists; a new option is available to indicate if the shell environment should be passed (or not) -- I think I need to set that; the release notes indicate that a patch was made to prevent deadlock between stderr and large stdout data . This patch solves this problem by having a single loop which reads stderr if it's ready, or stdout if ready. Fixes Bug 12041 My web-application is a combination of html, javascript, perl scripts, c++ programs, and java applets. My project is working rewriting this web-application as a J2EE application. However, we still need to use the older web-application for some time.. So, using the default executable in the cgi definition for tomcat/conf/web.xml , the perl scripts work fine. When I execute any of the c++ programs, I get a white (that is, blank, empty) browser window in return. When I look at the tomcat 5.0 logs, the findCGI and runCGI seem to determine the cgi name, path and parameters correctly. However, I see a message that states runCGI received "\x7F" on stderr . I am guessing that perl attempted to read the c++ executable as a file (so that it could interpret it) because the first byte of every c++ program is "\x7F" (that is, accounting for little-endian, since the system is running on a Dell 1750 running Redhat AS 3.0.) I can fake out the system by creating a cshell-script with the same name as the c++ executable and statically call the c++ cgi from within the cshell-script. The cshell-script is executed successfully, the cshell-script executes the c++ cgi executable successfully and my expected output comes back to the browser window. Any suggestions? Linda Mark Thomas wrote: Linda Solomon wrote: I followed the instructions for configuring tomcat 5 for cgi. However, tomcat 5 contains a new xml variable: executable - The of the executable to be used to run the script. Default is perl. Using the default allows the perl cgis to work fine, but the c++ cgi's do not work. This is unlikely to be a factor. Before it was configurable it was hard-coded to perl so if you leave it as the default there should be no functional change. There are, however, a whole stack of other changes that may be a factor. The following (rather long) URL should show you the changes. http://svn.apache.org/viewcvs.cgi/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java?p1=tomcat%2Fcontainer%2Fcatalina%2Ftrunk%2Fcatalina%2Fsrc%2Fshare%2Forg%2Fapache%2Fcatalina%2Fservlets%2FCGIServlet.java&rev=366305&r1=302487&r2=366305&diff_format=h Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days
Thanks, Chuck! I may try command-line startup.bat rather than a service to run this web application later when most people are off work and don't access this server. This server does not set up any limit on system resource. When Tomcat is non-responsive, no complaint about running out memeory. I also paid extra attention on the log file. Whenever I re-start my tomcat server, I renamed the old log files. There are quite a few cases reported tomcat5 hangups. Did I miss an important place that traded in tomcat upgrade tricks? Thanks again! - Monica -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 11:52 AM To: Tomcat Users List Subject: RE: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days > From: Monica Wu [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after > running 1 or 2 days > > Oops! How to retrieve a thread dump when it hangs in Windows? I don't know how to do that when the process is running as a service. For investigative purposes, you could try running it from a command prompt and enter ctrl-break when you get the hang; that should give you state and walkback info for each thread. Is it possible you're hitting some kind of quota limits? (Unusual to have that enabled in Windows, but you never know.) Hitting the max size on a log file perhaps? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat does not respond any request after several days
You might have better luck getting an answer if you read this http://www.catb.org/~esr/faqs/smart-questions.html And repost your questions. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: Cuong M Tran [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 19, 2006 3:00 AM > To: users@tomcat.apache.org > Subject: Tomcat does not respond any request after several days > > Hi, > > I got a serious problem when I deploy my software on to > customer's server. > > The Tomcat server runs fine in several days (could be 1 or 2,3,4 days > unexpectedly) but then it does not respond any request and produce any > output (also no error code). > > It only happens to me only on that server. The server is > running Windows > 2000 server, 2GB RAM, 4 CPUs. > > I've spent days and nights and not yet work out any solution. > > Is there anyone having the same problem and pointing me a way to solve > it ? My customer is pressuring me too much for this. > > Thanks > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Latest stable version of Tomcat
hi Aparna- This is Laxman Kolli. Is Venu reddy back from India. I lost his contact details. Please pass on the details. Thanks... Laxman --- [EMAIL PROTECTED] wrote: > Thank you for the reply. > > Do anyone know how to set PermGen space ? > > > Thank you, > Aparna > > > > > > [EMAIL PROTECTED] > 01/18/2006 08:27 AM > Please respond to > "Tomcat Users List" > > > To > users@tomcat.apache.org > cc > > Subject > Re: Latest stable version of Tomcat > > > > > > > 5.5.12 > > Hi, > > Could anyone tell me what is the latest stable > version of tomcat on > JDK1.5 > > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with lost request parameters
Hi, Thank you for your reply. Yes, I thought about that, but using the "get" method would append the form parameters in the URL. As this is a login form, the user password would be displayed in the URI. So, I must use the "post" method for security reasons. Any other ideas? Thanks, Jair Jr McClure, James escreveu: I have already tried the following: I agree that this could be caused by encoding issues; as you have already attempted to change in order to rectify the situation. Just an idea... Have you tried changing the method type to "get" and losing the encoding type? The name/value pairs (form data set) for your data in the form submission are assembled differently depending on which method you choose (see HTML 4.0 spec). james -Original Message- From: Jair da Silva Ferreira Jr [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 10:26 AM To: users@tomcat.apache.org Subject: problem with lost request parameters Hi, I have my web application hosted at brazilian Locaweb. It runs on a Linux as40-32bits server with tomcat 5.5.15 and java 5. My application runs with many (I don't know exactly how many) others in the same tomcat server. My application uses postgresql 8 database, hibernate 2.1.7c, servlet 2.4, jsp 2.0, jstl 1.1 and tiles without struts. My problem is that I can't get the request parameters submitted by some of my users. My form uses the post method to submit its data. When I call request.getParameter("validationScheme") in my servlet I get null. request.getParametersNames() also returns an empty Enumeration. My servlet then throws a ServletException because it can't find a mandatory parameter. I have never experienced this problem in forms that use the "get" method to submit its data. My form has few parameters, they are: validationScheme (hidden), email and password. It is a simple login form. Here is the relevant html code for my form: " method="post" style="margin:0" enctype="application/x-www-form-urlencoded" accept-charset="ISO-8859-1"> align="right">e-mail size="17" maxlength="50"> align="right">senha class="combos" size="10"> I have already tried the following: - adding <%@ page contentType="text/html; charset=ISO-8859-1" %> declaration in all my jsp pages; - adding accept-charset="ISO-8859-1"> attributes in all my html forms; - adding in all my jsp and html pages; - adding a filter that sets the request character encoding to ISO-8859-1 (request.setCharacterEncoding("ISO-8859-1")). This filter is executed for every jsp and servlet in my application; - searched the web for "tomcat lost request parameter" and "tomcat lose request parameter" using google and found nothing that could help me; I asked the support people from Locaweb to execute tcpdump while my user tried to submit the form. tcpdump results showed that the request parameters are getting to tomcat correctly. So, I think that tomcat is losing these parameters for some reason that I don't understand. I also noticed that these errors don't happen to all of my users, but when it happens to a specific user, it can be easily reproduced by that user. Unfortunately, I have never been able to reproduce the error in my machines. Here is some user information logged by my error page when the problem happens: === user 1 === Thu Jan 19 11:45:05 BRST 2006 Request that failed: /v.servlet Status code: 500 Protocol: HTTP/1.0 Remote Address: 201.9.198.113 Remote Host: 201.9.198.113 Remote Port: 0 Local Address: Local Name: www.dvdfilme.com.br Local Port: 80 Server Name: www.dvdfilme.com.br Server Port: 80 User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FunWebProducts) Request Character Encoding: ISO-8859-1 Request Content-type: application/x-www-form-urlencoded Response Character Encoding: ISO-8859-1 Response Content-type: text/html Request Locale: pt_BR Response Locale: pt_BR Throwable: javax.servlet.ServletException: 'validationScheme' request parameter not found (exception stack trace) request parameters: {} === user 2 === Thu Jan 19 12:13:37 BRST 2006 Request that failed: /v.servlet Status code: 500 Protocol: HTTP/1.1 Remote Address: 201.29.118.23 Remote Host: 201.29.118.23 Remote Port: 0 Local Address: Local Name: www.dvdfilme.com.br Local Port: 80 Server Name: www.dvdfilme.com.br Server Port: 80 User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Request Character Encoding: ISO-8859-1 Request Content-type: application/x-www-form-urlencoded Response Character Encoding: ISO-8859-1 Response Content-type: text/html Request Locale: pt_BR Response Locale: pt_BR Throwable: javax.servlet.ServletException: 'validationScheme' request parameter not found (exception stack trace) request parameters: {} I also looked at tomcat 5.5.15 source code, class org.a
RE: problem with lost request parameters
> I have already tried the following: I agree that this could be caused by encoding issues; as you have already attempted to change in order to rectify the situation. Just an idea... Have you tried changing the method type to "get" and losing the encoding type? The name/value pairs (form data set) for your data in the form submission are assembled differently depending on which method you choose (see HTML 4.0 spec). james -Original Message- From: Jair da Silva Ferreira Jr [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 10:26 AM To: users@tomcat.apache.org Subject: problem with lost request parameters Hi, I have my web application hosted at brazilian Locaweb. It runs on a Linux as40-32bits server with tomcat 5.5.15 and java 5. My application runs with many (I don't know exactly how many) others in the same tomcat server. My application uses postgresql 8 database, hibernate 2.1.7c, servlet 2.4, jsp 2.0, jstl 1.1 and tiles without struts. My problem is that I can't get the request parameters submitted by some of my users. My form uses the post method to submit its data. When I call request.getParameter("validationScheme") in my servlet I get null. request.getParametersNames() also returns an empty Enumeration. My servlet then throws a ServletException because it can't find a mandatory parameter. I have never experienced this problem in forms that use the "get" method to submit its data. My form has few parameters, they are: validationScheme (hidden), email and password. It is a simple login form. Here is the relevant html code for my form: " method="post" style="margin:0" enctype="application/x-www-form-urlencoded" accept-charset="ISO-8859-1"> e-mail senha I have already tried the following: - adding <%@ page contentType="text/html; charset=ISO-8859-1" %> declaration in all my jsp pages; - adding attributes in all my html forms; - adding in all my jsp and html pages; - adding a filter that sets the request character encoding to ISO-8859-1 (request.setCharacterEncoding("ISO-8859-1")). This filter is executed for every jsp and servlet in my application; - searched the web for "tomcat lost request parameter" and "tomcat lose request parameter" using google and found nothing that could help me; I asked the support people from Locaweb to execute tcpdump while my user tried to submit the form. tcpdump results showed that the request parameters are getting to tomcat correctly. So, I think that tomcat is losing these parameters for some reason that I don't understand. I also noticed that these errors don't happen to all of my users, but when it happens to a specific user, it can be easily reproduced by that user. Unfortunately, I have never been able to reproduce the error in my machines. Here is some user information logged by my error page when the problem happens: === user 1 === Thu Jan 19 11:45:05 BRST 2006 Request that failed: /v.servlet Status code: 500 Protocol: HTTP/1.0 Remote Address: 201.9.198.113 Remote Host: 201.9.198.113 Remote Port: 0 Local Address: Local Name: www.dvdfilme.com.br Local Port: 80 Server Name: www.dvdfilme.com.br Server Port: 80 User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FunWebProducts) Request Character Encoding: ISO-8859-1 Request Content-type: application/x-www-form-urlencoded Response Character Encoding: ISO-8859-1 Response Content-type: text/html Request Locale: pt_BR Response Locale: pt_BR Throwable: javax.servlet.ServletException: 'validationScheme' request parameter not found (exception stack trace) request parameters: {} === user 2 === Thu Jan 19 12:13:37 BRST 2006 Request that failed: /v.servlet Status code: 500 Protocol: HTTP/1.1 Remote Address: 201.29.118.23 Remote Host: 201.29.118.23 Remote Port: 0 Local Address: Local Name: www.dvdfilme.com.br Local Port: 80 Server Name: www.dvdfilme.com.br Server Port: 80 User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Request Character Encoding: ISO-8859-1 Request Content-type: application/x-www-form-urlencoded Response Character Encoding: ISO-8859-1 Response Content-type: text/html Request Locale: pt_BR Response Locale: pt_BR Throwable: javax.servlet.ServletException: 'validationScheme' request parameter not found (exception stack trace) request parameters: {} I also looked at tomcat 5.5.15 source code, class org.apache.coyote.tomcat4.CoyoteRequest, method parseRequestParameters() and noticed that expections (Throwable) are "swallowed" in request parameter processing. So, I think that if any problem happens during this process, the code will silently ignore the request parameter. I also think that this is what is happening in my case. Here is the relevant part of the code: /** * Parse request parameters. */ protected vo
Re: problem with lost request parameters
Hi, Thank you very much for your reply. I searched my entire webapp and found out that the only methods I call in the request object are: getRequestURI(), getAttribute(...), setAttribute(...), getRequestDispatcher() and getSession(...). Some of these methods are called before request.getParameter(...). I don't get nor read the request input stream in any servlet or filter. I use some filters in my application. Do filters have any influence on request parameter processing? Thanks, Jair Jr Duan, Nick escreveu: Do you do any request processing before invoking request.getParameter in your servlet (e.g. getting and reading the input stream)? Do you use any filters in your web app? ND -Original Message- From: Jair da Silva Ferreira Jr [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 11:26 AM To: users@tomcat.apache.org Subject: problem with lost request parameters Hi, I have my web application hosted at brazilian Locaweb. It runs on a Linux as40-32bits server with tomcat 5.5.15 and java 5. My application runs with many (I don't know exactly how many) others in the same tomcat server. My application uses postgresql 8 database, hibernate 2.1.7c, servlet 2.4, jsp 2.0, jstl 1.1 and tiles without struts. My problem is that I can't get the request parameters submitted by some of my users. My form uses the post method to submit its data. When I call request.getParameter("validationScheme") in my servlet I get null. request.getParametersNames() also returns an empty Enumeration. My servlet then throws a ServletException because it can't find a mandatory parameter. I have never experienced this problem in forms that use the "get" method to submit its data. My form has few parameters, they are: validationScheme (hidden), email and password. It is a simple login form. Here is the relevant html code for my form: " method="post" style="margin:0" enctype="application/x-www-form-urlencoded" accept-charset="ISO-8859-1"> align="right">e-mail size="17" maxlength="50"> align="right">senha class="combos" size="10"> I have already tried the following: - adding <%@ page contentType="text/html; charset=ISO-8859-1" %> declaration in all my jsp pages; - adding accept-charset="ISO-8859-1"> attributes in all my html forms; - adding in all my jsp and html pages; - adding a filter that sets the request character encoding to ISO-8859-1 (request.setCharacterEncoding("ISO-8859-1")). This filter is executed for every jsp and servlet in my application; - searched the web for "tomcat lost request parameter" and "tomcat lose request parameter" using google and found nothing that could help me; I asked the support people from Locaweb to execute tcpdump while my user tried to submit the form. tcpdump results showed that the request parameters are getting to tomcat correctly. So, I think that tomcat is losing these parameters for some reason that I don't understand. I also noticed that these errors don't happen to all of my users, but when it happens to a specific user, it can be easily reproduced by that user. Unfortunately, I have never been able to reproduce the error in my machines. Here is some user information logged by my error page when the problem happens: === user 1 === Thu Jan 19 11:45:05 BRST 2006 Request that failed: /v.servlet Status code: 500 Protocol: HTTP/1.0 Remote Address: 201.9.198.113 Remote Host: 201.9.198.113 Remote Port: 0 Local Address: Local Name: www.dvdfilme.com.br Local Port: 80 Server Name: www.dvdfilme.com.br Server Port: 80 User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FunWebProducts) Request Character Encoding: ISO-8859-1 Request Content-type: application/x-www-form-urlencoded Response Character Encoding: ISO-8859-1 Response Content-type: text/html Request Locale: pt_BR Response Locale: pt_BR Throwable: javax.servlet.ServletException: 'validationScheme' request parameter not found (exception stack trace) request parameters: {} === user 2 === Thu Jan 19 12:13:37 BRST 2006 Request that failed: /v.servlet Status code: 500 Protocol: HTTP/1.1 Remote Address: 201.29.118.23 Remote Host: 201.29.118.23 Remote Port: 0 Local Address: Local Name: www.dvdfilme.com.br Local Port: 80 Server Name: www.dvdfilme.com.br Server Port: 80 User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Request Character Encoding: ISO-8859-1 Request Content-type: application/x-www-form-urlencoded Response Character Encoding: ISO-8859-1 Response Content-type: text/html Request Locale: pt_BR Response Locale: pt_BR Throwable: javax.servlet.ServletException: 'validationScheme' request parameter not found (exception stack trace) request parameters: {} I also looked at tomcat 5.5.15 source code, class org.apache.coyote.tomcat4.CoyoteRequest, method parseRequestPara
Re: Absolute Guide for config of JDBC Connection Pool ?
Great stuff Len!!! Very much appreciated A lost new java programmer :) On 1/20/06, Len Popp <[EMAIL PROTECTED]> wrote: > > I don't know if there's a complete top-to-bottom guide, but here's > what I know from setting up connection pooling under 5.5.12: > > 1. The JDBC driver JAR must go in the common/lib directory (because > for connection pooling it needs to be accessible to both Tomcat and > the web app). > > 2. DBCP is built into Tomcat so you don't need to install a JAR for that. > > 3. The tag goes inside the tag for the web app, > wherever it is (server.xml, webapps//META-INF/context.xml or > conf/Catalina/localhost/.xml) > Note that the syntax for has changed from earlier versions > – see the Tomcat documentation. Here's a sample: > > type="javax.sql.DataSource" > auth="Container" > driverClassName="com.mysql.jdbc.Driver" > url="jdbc:mysql://localhost:3306/???" > username="???" > password="???" > maxIdle="15" > maxActive="50" > maxWait="1" > factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" > removeAbandoned="true" > removeAbandonedTimeout="60" > logAbandoned="true"/> > > The "???" bits are installation-dependent. Some of the parameters will > be different for Sybase (driverClassName and url for sure). > > 4. Yes, it is supposed to say "... .dbcp.dbcp ..." in the factory= line. > > 5. The code to get a DB connection is: > InitialContext initCtx = new InitialContext(); > DataSource ds = (DataSource) initCtx.lookup("java:comp/env/jdbc/???"); > Connection conn = ds.getConnection(); > Make sure that "jdbc/???" is the same here as in the tag. > > 6. Always close the connection when you're done with it. Use a > "finally" block to make sure. > > 7. If you're trying to decide where to put the declaration, > the choices are: > - server.xml – Don't put it here. We're told it's bad. > - webapps//META-INF/context.xml – If you put it here, it will be > bundled up in the app's WAR file. That makes it easier to install, but > harder to configure if every installation has different details for > the database tag. > - conf/Catalina/localhost/.xml – If you put it here, it's easier > to edit the tag, but it's an extra file to be installed in > addition to the WAR. > > Hope this helps. At least it's shorter than > > http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html > . > :-) > > On 1/19/06, g m <[EMAIL PROTECTED]> wrote: > > There seems to be 'truckloads' of information on just as many forums on > how best to setup a JDBC connection pool, varying from which file to put > what entries (server.xml, context.xml, web.xml) etc > > > > It looks like the same questions be asked in a slightly different > fashion and for different environments. > > > > Does anyone happen to know where there is a definative guide on how to > do this and what jar files one needs ?... or does this sort of 'clean > doc' not exist ? > > > > FYI: My environment: Tomcat 5.5.9, Sybase, Windows . > > Many thanks! > > -- > Len >
RE: problem with lost request parameters
Do you do any request processing before invoking request.getParameter in your servlet (e.g. getting and reading the input stream)? Do you use any filters in your web app? ND -Original Message- From: Jair da Silva Ferreira Jr [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 11:26 AM To: users@tomcat.apache.org Subject: problem with lost request parameters Hi, I have my web application hosted at brazilian Locaweb. It runs on a Linux as40-32bits server with tomcat 5.5.15 and java 5. My application runs with many (I don't know exactly how many) others in the same tomcat server. My application uses postgresql 8 database, hibernate 2.1.7c, servlet 2.4, jsp 2.0, jstl 1.1 and tiles without struts. My problem is that I can't get the request parameters submitted by some of my users. My form uses the post method to submit its data. When I call request.getParameter("validationScheme") in my servlet I get null. request.getParametersNames() also returns an empty Enumeration. My servlet then throws a ServletException because it can't find a mandatory parameter. I have never experienced this problem in forms that use the "get" method to submit its data. My form has few parameters, they are: validationScheme (hidden), email and password. It is a simple login form. Here is the relevant html code for my form: " method="post" style="margin:0" enctype="application/x-www-form-urlencoded" accept-charset="ISO-8859-1"> e-mail senha I have already tried the following: - adding <%@ page contentType="text/html; charset=ISO-8859-1" %> declaration in all my jsp pages; - adding attributes in all my html forms; - adding in all my jsp and html pages; - adding a filter that sets the request character encoding to ISO-8859-1 (request.setCharacterEncoding("ISO-8859-1")). This filter is executed for every jsp and servlet in my application; - searched the web for "tomcat lost request parameter" and "tomcat lose request parameter" using google and found nothing that could help me; I asked the support people from Locaweb to execute tcpdump while my user tried to submit the form. tcpdump results showed that the request parameters are getting to tomcat correctly. So, I think that tomcat is losing these parameters for some reason that I don't understand. I also noticed that these errors don't happen to all of my users, but when it happens to a specific user, it can be easily reproduced by that user. Unfortunately, I have never been able to reproduce the error in my machines. Here is some user information logged by my error page when the problem happens: === user 1 === Thu Jan 19 11:45:05 BRST 2006 Request that failed: /v.servlet Status code: 500 Protocol: HTTP/1.0 Remote Address: 201.9.198.113 Remote Host: 201.9.198.113 Remote Port: 0 Local Address: Local Name: www.dvdfilme.com.br Local Port: 80 Server Name: www.dvdfilme.com.br Server Port: 80 User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FunWebProducts) Request Character Encoding: ISO-8859-1 Request Content-type: application/x-www-form-urlencoded Response Character Encoding: ISO-8859-1 Response Content-type: text/html Request Locale: pt_BR Response Locale: pt_BR Throwable: javax.servlet.ServletException: 'validationScheme' request parameter not found (exception stack trace) request parameters: {} === user 2 === Thu Jan 19 12:13:37 BRST 2006 Request that failed: /v.servlet Status code: 500 Protocol: HTTP/1.1 Remote Address: 201.29.118.23 Remote Host: 201.29.118.23 Remote Port: 0 Local Address: Local Name: www.dvdfilme.com.br Local Port: 80 Server Name: www.dvdfilme.com.br Server Port: 80 User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Request Character Encoding: ISO-8859-1 Request Content-type: application/x-www-form-urlencoded Response Character Encoding: ISO-8859-1 Response Content-type: text/html Request Locale: pt_BR Response Locale: pt_BR Throwable: javax.servlet.ServletException: 'validationScheme' request parameter not found (exception stack trace) request parameters: {} I also looked at tomcat 5.5.15 source code, class org.apache.coyote.tomcat4.CoyoteRequest, method parseRequestParameters() and noticed that expections (Throwable) are "swallowed" in request parameter processing. So, I think that if any problem happens during this process, the code will silently ignore the request parameter. I also think that this is what is happening in my case. Here is the relevant part of the code: /** * Parse request parameters. */ protected void parseRequestParameters() { int len = getContentLength(); if (len > 0) { try { byte[] formData = null; if (len < CACHED_POST_LEN) { if (postData == null)
RE: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days
> From: Monica Wu [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after > running 1 or 2 days > > Oops! How to retrieve a thread dump when it hangs in Windows? I don't know how to do that when the process is running as a service. For investigative purposes, you could try running it from a command prompt and enter ctrl-break when you get the hang; that should give you state and walkback info for each thread. Is it possible you're hitting some kind of quota limits? (Unusual to have that enabled in Windows, but you never know.) Hitting the max size on a log file perhaps? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days
Chuck, thank you very much for your reply! The old version Tomcat 3.3.1 ran under Win2K SP2. It runs as a service. After upgrade, I did remove and install this service with the new service.bat. Oops! How to retrieve a thread dump when it hangs in Windows? - Monica -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 11:18 AM To: Tomcat Users List Subject: RE: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days > From: Monica Wu [mailto:[EMAIL PROTECTED] > Subject: FW: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after > running 1 or 2 days > > This web application had been running smoothly with tomcat > 3.3.1 + JDK 1.3.1 + J2EE 1.3 for about 4 years. Was that also under Win2K SP4? Are you running Tomcat as a service, or from a command prompt, or ? Have you tried getting a thread dump in this hang situation to see what each thread is waiting on? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days
> From: Monica Wu [mailto:[EMAIL PROTECTED] > Subject: FW: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after > running 1 or 2 days > > This web application had been running smoothly with tomcat > 3.3.1 + JDK 1.3.1 + J2EE 1.3 for about 4 years. Was that also under Win2K SP4? Are you running Tomcat as a service, or from a command prompt, or ? Have you tried getting a thread dump in this hang situation to see what each thread is waiting on? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days
I need add that: 1. This email was posted only once. 2. The database has been running okay. 3. When tomcat does not respond, the server does not have any sign of "run out of memory". Thanks! - Monica -Original Message- From: Monica Wu [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 10:58 AM To: users@tomcat.apache.org Subject: FW: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days I hope my lengthy message won't put your help away. I am trying to state my problem as clear as possible. Problem summary: Production tomcat server was upgraded from 3.3.1 to 5.0.28 about 3 weeks ago. It hang up every 1 or 2 days during weekdays, depending on web server traffic. Windowns 2000 with SP4, JDK 1.5 and J2EE 1.5. Tomcat 5.0.28. This web application had been running smoothly with tomcat 3.3.1 + JDK 1.3.1 + J2EE 1.3 for about 4 years. Any source code (java, jsp, oracle related scripts, etc.) related to Web application was not changed during tomcat upgrade. Compiled successfully with JDK + J2EE 1.5 with option "-source 1.4". It is a single tomcat server on a physical machine dedicated to this single web application. And a single Oracle database runs on another physical machine. I read through tomcat documentation and googled archived mailing list - MARC. Doubted and tried the following things, but finally did not fix my problem: 1. No apache is used, so not a problem caused by a connection between apache and tomcat, as described by Richard on 12/9/05. 2. It is an in-house application and accessible within the company only. There is no firewall related issues. 3. It is WIN2K, so it is not a problem related to Linux environment. 4. No tomcat built-in database connection pool is used. Instead, this pool is implemented and managed in my packaged java only. In another word, this db connection pool is outside of tomcat. This problem is not related to tomcat connection pool memory leak. 5. Mentioned in Tomcat 5.0.28 release notes, java compile memory leak was fixed in JDK 1.4+. This is not the cause to my problem. 6. Patched with Leo's bugzilla 36541. Hang again 22 hours later. What's next? I have been on roller-coaster for a while. It is not fun at all. I appreciate any clues in advance! - Monica - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Tomcat upgrade: 3.3.1 --> 5.0.28, hang up after running 1 or 2 days
I hope my lengthy message won't put your help away. I am trying to state my problem as clear as possible. Problem summary: Production tomcat server was upgraded from 3.3.1 to 5.0.28 about 3 weeks ago. It hang up every 1 or 2 days during weekdays, depending on web server traffic. Windowns 2000 with SP4, JDK 1.5 and J2EE 1.5. Tomcat 5.0.28. This web application had been running smoothly with tomcat 3.3.1 + JDK 1.3.1 + J2EE 1.3 for about 4 years. Any source code (java, jsp, oracle related scripts, etc.) related to Web application was not changed during tomcat upgrade. Compiled successfully with JDK + J2EE 1.5 with option "-source 1.4". It is a single tomcat server on a physical machine dedicated to this single web application. And a single Oracle database runs on another physical machine. I read through tomcat documentation and googled archived mailing list - MARC. Doubted and tried the following things, but finally did not fix my problem: 1. No apache is used, so not a problem caused by a connection between apache and tomcat, as described by Richard on 12/9/05. 2. It is an in-house application and accessible within the company only. There is no firewall related issues. 3. It is WIN2K, so it is not a problem related to Linux environment. 4. No tomcat built-in database connection pool is used. Instead, this pool is implemented and managed in my packaged java only. In another word, this db connection pool is outside of tomcat. This problem is not related to tomcat connection pool memory leak. 5. Mentioned in Tomcat 5.0.28 release notes, java compile memory leak was fixed in JDK 1.4+. This is not the cause to my problem. 6. Patched with Leo's bugzilla 36541. Hang again 22 hours later. What's next? I have been on roller-coaster for a while. It is not fun at all. I appreciate any clues in advance! - Monica - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Absolute Guide for config of JDBC Connection Pool ?
Excellent! That is the exact documentation that should be on the Tomcat site. It would also be nice to see a quick description of how Tomcat processes the sections, what exactly it does with the attributes, so that other drivers and pools can be configured. There are also other parameters that DBCP accepts... http://jakarta.apache.org/commons/dbcp/configuration.html Bernie Durfee > -Original Message- > From: Len Popp [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 19, 2006 12:58 PM > To: Tomcat Users List > Subject: Re: Absolute Guide for config of JDBC Connection Pool ? > > > I don't know if there's a complete top-to-bottom guide, but here's > what I know from setting up connection pooling under 5.5.12: > > 1. The JDBC driver JAR must go in the common/lib directory (because > for connection pooling it needs to be accessible to both Tomcat and > the web app). > > 2. DBCP is built into Tomcat so you don't need to install a > JAR for that. > > 3. The tag goes inside the tag for the web app, > wherever it is (server.xml, webapps//META-INF/context.xml or > conf/Catalina/localhost/.xml) > Note that the syntax for has changed from earlier versions > - see the Tomcat documentation. Here's a sample: > > type="javax.sql.DataSource" > auth="Container" > driverClassName="com.mysql.jdbc.Driver" > url="jdbc:mysql://localhost:3306/???" > username="???" > password="???" > maxIdle="15" > maxActive="50" > maxWait="1" > factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" > removeAbandoned="true" > removeAbandonedTimeout="60" > logAbandoned="true"/> > > The "???" bits are installation-dependent. Some of the parameters will > be different for Sybase (driverClassName and url for sure). > > 4. Yes, it is supposed to say "... .dbcp.dbcp ..." in the > factory= line. > > 5. The code to get a DB connection is: > InitialContext initCtx = new InitialContext(); > DataSource ds = (DataSource) > initCtx.lookup("java:comp/env/jdbc/???"); > Connection conn = ds.getConnection(); > Make sure that "jdbc/???" is the same here as in the tag. > > 6. Always close the connection when you're done with it. Use a > "finally" block to make sure. > > 7. If you're trying to decide where to put the declaration, > the choices are: > - server.xml - Don't put it here. We're told it's bad. > - webapps//META-INF/context.xml - If you put it here, it will be > bundled up in the app's WAR file. That makes it easier to install, but > harder to configure if every installation has different details for > the database tag. > - conf/Catalina/localhost/.xml - If you put it here, it's easier > to edit the tag, but it's an extra file to be installed in > addition to the WAR. > > Hope this helps. At least it's shorter than > http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-exampl es-howto.html. :-) On 1/19/06, g m <[EMAIL PROTECTED]> wrote: > There seems to be 'truckloads' of information on just as many forums on how best to setup a JDBC connection pool, varying from which file to put what entries (server.xml, context.xml, web.xml) etc > > It looks like the same questions be asked in a slightly different fashion and for different environments. > > Does anyone happen to know where there is a definative guide on how to do this and what jar files one needs ?... or does this sort of 'clean doc' not exist ? > > FYI: My environment: Tomcat 5.5.9, Sybase, Windows . > Many thanks! -- Len - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calling Realm.authenticate() doesn't register Principal in with the Session??
Ken Johanson wrote: > Hi all, > > I am able to access the current context's org.apache.catalina.Realm > object using Yoav Shapira's Tomcat-Realm example; however, when I call > Realm.authenticate(String user, String pass), the Principal object that > it returns is not being registered with the session.. > > In other words, subsequent requests (inside the same webapp / context > that I'm calling invoking Realm.authenticate from) just return null for > getRemoteUser() and getPrincipal()... > > Shouldn't authenticate() register the Principal with the Session > automatically? Or do I need to call register() in interface Authenticator? > > Thank, > ken What are you trying to do? From the amount of access you seem to need to Tomcat internals, you might be better off just writing a custom realm and/or authenticator. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Absolute Guide for config of JDBC Connection Pool ?
I don't know if there's a complete top-to-bottom guide, but here's what I know from setting up connection pooling under 5.5.12: 1. The JDBC driver JAR must go in the common/lib directory (because for connection pooling it needs to be accessible to both Tomcat and the web app). 2. DBCP is built into Tomcat so you don't need to install a JAR for that. 3. The tag goes inside the tag for the web app, wherever it is (server.xml, webapps//META-INF/context.xml or conf/Catalina/localhost/.xml) Note that the syntax for has changed from earlier versions – see the Tomcat documentation. Here's a sample: The "???" bits are installation-dependent. Some of the parameters will be different for Sybase (driverClassName and url for sure). 4. Yes, it is supposed to say "... .dbcp.dbcp ..." in the factory= line. 5. The code to get a DB connection is: InitialContext initCtx = new InitialContext(); DataSource ds = (DataSource) initCtx.lookup("java:comp/env/jdbc/???"); Connection conn = ds.getConnection(); Make sure that "jdbc/???" is the same here as in the tag. 6. Always close the connection when you're done with it. Use a "finally" block to make sure. 7. If you're trying to decide where to put the declaration, the choices are: - server.xml – Don't put it here. We're told it's bad. - webapps//META-INF/context.xml – If you put it here, it will be bundled up in the app's WAR file. That makes it easier to install, but harder to configure if every installation has different details for the database tag. - conf/Catalina/localhost/.xml – If you put it here, it's easier to edit the tag, but it's an extra file to be installed in addition to the WAR. Hope this helps. At least it's shorter than http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html. :-) On 1/19/06, g m <[EMAIL PROTECTED]> wrote: > There seems to be 'truckloads' of information on just as many forums on how > best to setup a JDBC connection pool, varying from which file to put what > entries (server.xml, context.xml, web.xml) etc > > It looks like the same questions be asked in a slightly different fashion > and for different environments. > > Does anyone happen to know where there is a definative guide on how to do > this and what jar files one needs ?... or does this sort of 'clean doc' not > exist ? > > FYI: My environment: Tomcat 5.5.9, Sybase, Windows . > Many thanks! -- Len
RE: Absolute Guide for config of JDBC Connection Pool ?
> From: g m [mailto:[EMAIL PROTECTED] > Subject: Absolute Guide for config of JDBC Connection Pool ? > > Does anyone happen to know where there is a definative > guide on how to do this and what jar files one needs ? There obviously won't be a single doc covering all databases - there are just too many of them. Have you looked here? http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.h tml - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to capture printf() stdout to stdout_nnn.log?
Hi All, My System.out.println() gets logged to Tomcat's log file fine. I want to be able to capture the printf()s in the DLL of my JNI to the same, or another, log file. If I start Tomcat from the command line using 'startup.bat' the printf()s show-up on the console output. My question is how can I get this to get logged to a log file when I run Tomcat normally? I start the "Apache Tomcat" Service. I'd rather not have to go through all that using log4j stuff unless it's really needed. Can't it be done with the normal Commons Logging, or what's built-into Tomcat? I've found "bits and pieces" on how to do this, but nothing that's clear. I'm using Tomcat-5.5.9 with Java 1.5, on Windows XP. Thanks, Joe Siebenmann __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk connection problem after couple of days or a week
Hello! We have exactly the same problem with the following configuration: OS: Windows Server 2003 Standard Edition Apache 2.0.54 mod_jk 1.2.14 Tomcat 5.5.9/5.5.12 JBoss 2.4.4 Our website basically serves JSP-Files and custom webapps, using the Tomcat instance as Servlet/JSP container and JBoss as backend for EJBs and database connection. In front of the Tomcat we're using the Apache for handling requests for static content. We've experienced connection losses beetween Tomcat and Apache with quite different periods in between (half an hour up to 2-3 weeks). Both, restart of Tomcat and/or Apache could not bring the system back to health, so the only solution is a server reboot. We could not locate the root cause, so we decided to install the load balancing mechanism provided by the Jk-Module of the Apache httpd. We set up 2 Tomcat nodes, residing on different machines. The Apache served as initial handler for the request and delivers requests to our primary Tomcat node (A). We expected a switch to the second Tomcat node (B) in case of a failover, so that there would be no downtime for the website. After a restart of the machine where Tomcat A lives we expected the system to resume normal operation. Unfortunatly this did not solve the problem, because the balancer did not switch to Tomcat B. So the problem seems to reside in mod_jk, which let us finally switch back to an older version of mod_jk (1.2.6). This scenario is running for about 6 hours now, so there is no statement possible if this step was successful. Otherwise it could be possible that it is a problem of the OS, since you were running Windows Server 2003 too. Here some log entries from both, Apache and Tomcat Node A from our load balancer scenario. It seems that the connection is dropped by the mod_jk module. Our config is not kind of exotic, so I would be really surprised if it should be a configuration error. Apache: [Thu Jan 19 08:47:52 2006] [error] jk_ajp_common.c (961): Can't receive the response message from tomcat, network problems or tomcat is down (10.194.16.111:8209), err=-53 [Thu Jan 19 08:47:52 2006] [error] jk_ajp_common.c (1528): Tomcat is down or network problems. Part of the response has already been sent to the client [Thu Jan 19 08:47:52 2006] [info] jk_ajp_common.c (1721): Receiving from tomcat failed, recoverable operation attempt=0 [Thu Jan 19 08:47:52 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Thu Jan 19 08:53:07 2006] [error] jk_ajp_common.c (961): Can't receive the response message from tomcat, network problems or tomcat is down (10.194.16.111:8009), err=-53 [Thu Jan 19 08:53:07 2006] [error] jk_ajp_common.c (1528): Tomcat is down or network problems. Part of the response has already been sent to the client [Thu Jan 19 08:53:07 2006] [info] jk_ajp_common.c (1721): Receiving from tomcat failed, recoverable operation attempt=0 [Thu Jan 19 08:53:07 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Thu Jan 19 08:54:10 2006] [error] jk_ajp_common.c (961): Can't receive the response message from tomcat, network problems or tomcat is down (10.194.16.111:8009), err=-53 [Thu Jan 19 08:54:10 2006] [error] jk_ajp_common.c (1528): Tomcat is down or network problems. Part of the response has already been sent to the client [Thu Jan 19 08:54:10 2006] [info] jk_ajp_common.c (1721): Receiving from tomcat failed, recoverable operation attempt=0 [Thu Jan 19 08:54:10 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Thu Jan 19 08:54:31 2006] [error] jk_ajp_common.c (961): Can't receive the response message from tomcat, network problems or tomcat is down (10.194.16.111:8209), err=-53 [Thu Jan 19 08:54:31 2006] [error] jk_ajp_common.c (1528): Tomcat is down or network problems. Part of the response has already been sent to the client [Thu Jan 19 08:54:31 2006] [info] jk_ajp_common.c (1721): Receiving from tomcat failed, recoverable operation attempt=0 [Thu Jan 19 08:54:31 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Thu Jan 19 09:05:41 2006] [error] jk_ajp_common.c (961): Can't receive the response message from tomcat, network problems or tomcat is down (10.194.16.111:8209), err=-53 [Thu Jan 19 09:05:41 2006] [error] jk_ajp_common.c (1528): Tomcat is down or network problems. Part of the response has already been sent to the client [Thu Jan 19 09:05:41 2006] [info] jk_ajp_common.c (1721): Receiving from tomcat failed, recoverable operation attempt=0 [Thu Jan 19 09:05:41 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Thu Jan 19 09:05:41 2006] [error] jk_ajp_common.c (961): Can't receive the response message from tomcat, network problems or tomcat is down (10.194.16.111:8209), err=-5
AJP Connector configuration
I have an environment with Tomcat 5.5, AJP1.3, Apache 2 and refer to the server.xml file content for my installation. The Tomcat 5.5 AJP Connector configuration eludes to a Connector attribute by the name of "backlog", which can be set to configure the pending request queue size. (See http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html) I have added this attribute and do not see an effect on the AJP connector performance. However, when I use the atrribute name "acceptCount" instead as in other Connector configurations within the server.xml file, I do see an effect on performance. Is the AJP configuration doumentation at the above link in error? I did not see (not there is not one) a documentation defect for this. james - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with lost request parameters
Hi, I have my web application hosted at brazilian Locaweb. It runs on a Linux as40-32bits server with tomcat 5.5.15 and java 5. My application runs with many (I don't know exactly how many) others in the same tomcat server. My application uses postgresql 8 database, hibernate 2.1.7c, servlet 2.4, jsp 2.0, jstl 1.1 and tiles without struts. My problem is that I can't get the request parameters submitted by some of my users. My form uses the post method to submit its data. When I call request.getParameter("validationScheme") in my servlet I get null. request.getParametersNames() also returns an empty Enumeration. My servlet then throws a ServletException because it can't find a mandatory parameter. I have never experienced this problem in forms that use the "get" method to submit its data. My form has few parameters, they are: validationScheme (hidden), email and password. It is a simple login form. Here is the relevant html code for my form: " method="post" style="margin:0" enctype="application/x-www-form-urlencoded" accept-charset="ISO-8859-1"> align="right">e-mail size="17" maxlength="50"> align="right">senha class="combos" size="10"> I have already tried the following: - adding <%@ page contentType="text/html; charset=ISO-8859-1" %> declaration in all my jsp pages; - adding accept-charset="ISO-8859-1"> attributes in all my html forms; - adding in all my jsp and html pages; - adding a filter that sets the request character encoding to ISO-8859-1 (request.setCharacterEncoding("ISO-8859-1")). This filter is executed for every jsp and servlet in my application; - searched the web for "tomcat lost request parameter" and "tomcat lose request parameter" using google and found nothing that could help me; I asked the support people from Locaweb to execute tcpdump while my user tried to submit the form. tcpdump results showed that the request parameters are getting to tomcat correctly. So, I think that tomcat is losing these parameters for some reason that I don't understand. I also noticed that these errors don't happen to all of my users, but when it happens to a specific user, it can be easily reproduced by that user. Unfortunately, I have never been able to reproduce the error in my machines. Here is some user information logged by my error page when the problem happens: === user 1 === Thu Jan 19 11:45:05 BRST 2006 Request that failed: /v.servlet Status code: 500 Protocol: HTTP/1.0 Remote Address: 201.9.198.113 Remote Host: 201.9.198.113 Remote Port: 0 Local Address: Local Name: www.dvdfilme.com.br Local Port: 80 Server Name: www.dvdfilme.com.br Server Port: 80 User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; FunWebProducts) Request Character Encoding: ISO-8859-1 Request Content-type: application/x-www-form-urlencoded Response Character Encoding: ISO-8859-1 Response Content-type: text/html Request Locale: pt_BR Response Locale: pt_BR Throwable: javax.servlet.ServletException: 'validationScheme' request parameter not found (exception stack trace) request parameters: {} === user 2 === Thu Jan 19 12:13:37 BRST 2006 Request that failed: /v.servlet Status code: 500 Protocol: HTTP/1.1 Remote Address: 201.29.118.23 Remote Host: 201.29.118.23 Remote Port: 0 Local Address: Local Name: www.dvdfilme.com.br Local Port: 80 Server Name: www.dvdfilme.com.br Server Port: 80 User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Request Character Encoding: ISO-8859-1 Request Content-type: application/x-www-form-urlencoded Response Character Encoding: ISO-8859-1 Response Content-type: text/html Request Locale: pt_BR Response Locale: pt_BR Throwable: javax.servlet.ServletException: 'validationScheme' request parameter not found (exception stack trace) request parameters: {} I also looked at tomcat 5.5.15 source code, class org.apache.coyote.tomcat4.CoyoteRequest, method parseRequestParameters() and noticed that expections (Throwable) are "swallowed" in request parameter processing. So, I think that if any problem happens during this process, the code will silently ignore the request parameter. I also think that this is what is happening in my case. Here is the relevant part of the code: /** * Parse request parameters. */ protected void parseRequestParameters() { int len = getContentLength(); if (len > 0) { try { byte[] formData = null; if (len < CACHED_POST_LEN) { if (postData == null) postData = new byte[CACHED_POST_LEN]; formData = postData; } else { formData = new byte[len]; } int actualLen = readPostBody(formData, len); if (actualLen == len) { pa
Server certificates for tomcat
Server certificate: The certificate for the engine with alias "tomcat" The certificate for a specific host The certificate for a specific web-app If a web-app doesn't have a certificate, it can be configured to use the certificate of the host. Similarly, if a host doesn't have a certificate, it can be configured to use the certificate of the engine. However, when a web-app has a certificate, then this one should be used rather than always using "tomcat". clientAuth of https connector is not relevant, at this level (engine), ask for a client's certificate, what is it for? It should be like this: If the client is requesting a server resource that requires client authentication, the server requests the client's certificate. If we don't ask for certificate, then truststore config is irrelevant. "clientAuth" should be a property of a web-app. Since web.xml doesn't specify it, it can be include into the web-app context, context.xml. At the host level, we have the same question, too. At the web-app level, it is reasonable. This web-app asks for a client certificate. And the UserManager will consult the usercontext of this web-app for keystore & truststore information. At present, what component does the verification of a client's certificate? The connector/sslsupport should call the UserManager to do so. Here, I don't know the reason why many people say the design of SSL doesn't allow several domain name based certificates on the single IP. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Absolute Guide for config of JDBC Connection Pool ?
There seems to be 'truckloads' of information on just as many forums on how best to setup a JDBC connection pool, varying from which file to put what entries (server.xml, context.xml, web.xml) etc It looks like the same questions be asked in a slightly different fashion and for different environments. Does anyone happen to know where there is a definative guide on how to do this and what jar files one needs ?... or does this sort of 'clean doc' not exist ? FYI: My environment: Tomcat 5.5.9, Sybase, Windows . Many thanks! - Yahoo! Photos Showcase holiday pictures in hardcover Photo Books. You design it and well bind it!
Help : Tomcat having problem compilng _jsp.java to \work\Standalone\localhost
Hi all, I'm having a problem with tomcat compiling the *_jsp.java file to \work\Standalone\localhost\mywebapp Tomcat does produce the *_jsp.java correctly, but could not produce the *_jsp.class. I think Tomcat is trying to output to a temporary file to a write restricted directory, I'm having error running the application as the directory is shown in the log as attached at the end of the mail. As shown in the last line of log /sbcimp/run/pd/jakarta-tomcat/4.1.27/bin/ is a read only directory. Is there any way I can direct tomcat to produce the temporary file to other directory. Is CATALINA_TMPDIR the directory I should set? I really really appreciate any possible advice. Thanks a million in advance. Han Ming 2006-01-19 10:07:03 JspEngine --> /login.jsp 2006-01-19 10:07:03 ServletPath: /login.jsp 2006-01-19 10:07:03 PathInfo: null 2006-01-19 10:07:03 RealPath: /sbclocal/web/dyn/data/ussc/struts/struts-app/login.jsp 2006-01-19 10:07:03 RequestURI: /ussc/login.jsp 2006-01-19 10:07:03 QueryString: null 2006-01-19 10:07:03 Request Params: 2006-01-19 10:07:13 Error compiling file: /sbclocal/web/dyn/data/ussc/work/Standalone/localhost/ussc/login_jsp.java Project base dir set to: /sbcimp/run/pd/jakarta-tomcat/4.1.27 Detected Java version: 1.3 in: /sbcimp/run/tp/sun/jre/v1.3.1_09 Detected OS: SunOS [javac] login_jsp.java added as /sbclocal/web/dyn/data/ussc/work/Standalone/localhost/ussc/login_jsp.class doesn't exist. [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Using external javac compiler [javac] Since fork is true, ignoring compiler setting. [javac] Compilation arguments: [javac] '-classpath' [javac] '/sbcimp/run/pd/jakarta-tomcat/4.1.27/bin/bootstrap.jar:/sbclocal/web/dyn/da ta/ussc/struts/struts-app/WEB-INF/classes: .. a series of jars here :/sbcimp/run/pd/jakarta-tomcat/4.1.27/common/lib/servlet.jar' [javac] '-sourcepath' [javac] '/sbclocal/web/dyn/data/ussc/work/Standalone/localhost/ussc' [javac] '-encoding' [javac] 'UTF8' [javac] '-g' [javac] [javac] The ' characters around the executable and arguments are [javac] not part of the command. [javac] File to be compiled: [javac] /sbclocal/web/dyn/data/ussc/work/Standalone/localhost/ussc/login_jsp.java 2006-01-19 10:07:13 Info: Compile: javaFileName=/sbclocal/web/dyn/data/ussc/work/Standalone/localhost/ussc/logi n_jsp.java classpath=/sbclocal/web/dyn/data/ussc/struts/struts-app/WEB-INF/classes/ : .. a series of jars here cp=/sbcimp/run/pd/jakarta-tomcat/4.1.27/common/lib/servlet.jar work dir=/sbclocal/web/dyn/data/ussc/work/Standalone/localhost/ussc srcDir=/sbclocal/web/dyn/data/ussc/work/Standalone/localhost/ussc include=login_jsp.java Exception compiling Error creating temporary file 2006-01-19 10:07:13 Exception: Error creating temporary file at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExtern alCompile(DefaultCompilerAdapter.java:433) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal. java:81) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:840) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 73) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 90) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:432) at org.apache.catalina.core.ApplicationDispatcher.access$0(ApplicationDispatche r.java:360) at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(Applica tionDispatcher.java:131) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:348) at com.basicelement.struts.filter.LoginFilter.doFilter(LoginFilter.java:100) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterCh ain.java:197) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain .java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.A
Re: how to configure the tomcat 5.5.12 for a port 80 in linux (Gentoo)??
> And there's always option number 4 -- use jsvc from the commons-daemon > project to start tomcat safely as root and then drop root privilege for > normal operations. This will get you port 80 without the inherent risks > of running a process as root. Tomcat's bin directory has an archive of > the jsvc source for building and there are binaries for some platforms > on the website: > > http://jakarta.apache.org/commons/daemon > Interesting, I didn't know about that one, thanks Gaël
Re: tomcat doesn't shutdown
Right, Thanks !! Phil Tim Funk wrote: Eyebrowse is created in a non daemon thread preventing JVM shutdown. See their support group for help. "Eyebrowse Indexer" prio=1 tid=0x085e80a0 nid=0x19f7 waiting on condition [0xb1afa000..0xb1afa1b0] at java.lang.Thread.sleep(Native Method) at org.tigris.eyebrowse.servlets.IndexerServlet$UpdateRunner.run(Unknown Source) at java.lang.Thread.run(Thread.java:595) -Tim philguillard wrote: Thanks for that help, I did a ./shtdown.sh, then a kill -3 on my tomcatpid, i pasted below the dump i get in tomcat logs. What does this mean? Excuse me for my ignoranc! My problem is just that i'd like to be able to use shutdown.sh in an automatic script without needing to manually check the process and kill it. Regards, Phil Tim Funk wrote: http://tomcat.apache.org/faq/misc.html#stop -Tim philguillard wrote: Hi, Launching the script shutdown.sh doesn't shutdown my tomcat 5.5.12. Any idea? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat doesn't shutdown
Eyebrowse is created in a non daemon thread preventing JVM shutdown. See their support group for help. "Eyebrowse Indexer" prio=1 tid=0x085e80a0 nid=0x19f7 waiting on condition [0xb1afa000..0xb1afa1b0] at java.lang.Thread.sleep(Native Method) at org.tigris.eyebrowse.servlets.IndexerServlet$UpdateRunner.run(Unknown Source) at java.lang.Thread.run(Thread.java:595) -Tim philguillard wrote: Thanks for that help, I did a ./shtdown.sh, then a kill -3 on my tomcatpid, i pasted below the dump i get in tomcat logs. What does this mean? Excuse me for my ignoranc! My problem is just that i'd like to be able to use shutdown.sh in an automatic script without needing to manually check the process and kill it. Regards, Phil Tim Funk wrote: http://tomcat.apache.org/faq/misc.html#stop -Tim philguillard wrote: Hi, Launching the script shutdown.sh doesn't shutdown my tomcat 5.5.12. Any idea? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat doesn't shutdown
Thanks for that help, I did a ./shtdown.sh, then a kill -3 on my tomcatpid, i pasted below the dump i get in tomcat logs. What does this mean? Excuse me for my ignoranc! My problem is just that i'd like to be able to use shutdown.sh in an automatic script without needing to manually check the process and kill it. Regards, Phil ==> /opt/apache-tomcat-5.5.12/logs/catalina.out <== Full thread dump Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing): "DestroyJavaVM" prio=1 tid=0xae81a8f8 nid=0x19ef waiting on condition [0x..0xbfffd450] "TP-Processor4" daemon prio=1 tid=0xb1932440 nid=0x1a1e in Object.wait() [0xb04e5000..0xb04e6130] at java.lang.Object.wait(Native Method) - waiting on <0x89fae368> (a org.apache.jk.common.ChannelSocket) at java.lang.Object.wait(Object.java:474) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:287) - locked <0x89fae368> (a org.apache.jk.common.ChannelSocket) at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:637) at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(ChannelSocket.java:847) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) "http-8080-Processor24" daemon prio=1 tid=0xae885f28 nid=0x1a18 waiting on condition [0xb07eb000..0xb07ebe30] at java.lang.Thread.sleep(Native Method) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:61) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) "Eyebrowse Indexer" prio=1 tid=0x085e80a0 nid=0x19f7 waiting on condition [0xb1afa000..0xb1afa1b0] at java.lang.Thread.sleep(Native Method) at org.tigris.eyebrowse.servlets.IndexerServlet$UpdateRunner.run(Unknown Source) at java.lang.Thread.run(Thread.java:595) "Low Memory Detector" daemon prio=1 tid=0x080a39d8 nid=0x19f5 runnable [0x..0x] "CompilerThread0" daemon prio=1 tid=0x080a2478 nid=0x19f4 waiting on condition [0x..0xb23c4a18] "Signal Dispatcher" daemon prio=1 tid=0x080a1548 nid=0x19f3 runnable [0x..0x] "Finalizer" daemon prio=1 tid=0x0809a778 nid=0x19f2 in Object.wait() [0xb26c6000..0xb26c6f30] at java.lang.Object.wait(Native Method) - waiting on <0x89151b60> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked <0x89151b60> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) "Reference Handler" daemon prio=1 tid=0x08099a68 nid=0x19f1 in Object.wait() [0xb2747000..0xb2747eb0] at java.lang.Object.wait(Native Method) - waiting on <0x89151be0> (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:474) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) - locked <0x89151be0> (a java.lang.ref.Reference$Lock) "VM Thread" prio=1 tid=0x08096f18 nid=0x19f0 runnable "VM Periodic Task Thread" prio=1 tid=0x080a4e78 nid=0x19f6 waiting on condition Tim Funk wrote: http://tomcat.apache.org/faq/misc.html#stop -Tim philguillard wrote: Hi, Launching the script shutdown.sh doesn't shutdown my tomcat 5.5.12. Any idea? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]
-Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 8:23 AM To: Tomcat Users List Subject: Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i I'd recommend checking that your classes12.jar file is valid. This should work: $JAVA_HOME/bin/jar -v -t -f webapps/ROOT/WEB-INF/lib/classes12.jar It'll list the table of contents of the archive and be verbose about it. Replace -t with -x to extract files for further inspection. --David gupta vidhi wrote: >i'm sending you the whole localhost file: > 2006-01-19 12:11:09 HostConfig[localhost]: Deploying configuration descriptor admin.xml >2006-01-19 12:11:29 HostConfig[localhost]: Deploying configuration descriptor manager.xml > > >... on and on and on . > >2006-01-19 12:11:31 HostConfig[localhost]: Deploying web application directory ROOT >2006-01-19 12:11:31 StandardHost[localhost]: Installing web application at context path from URL file:C:\Program Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT >2006-01-19 12:11:31 WebappLoader[]: Deploying class repositories to work directory C:\Program Files\Tomcat\jakarta-tomcat-4.1.31\work\Standalone\localhost\_ >2006-01-19 12:11:31 WebappLoader[]: Deploy JAR /WEB-INF/lib/classes12.jar to C:\Program Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\lib\classes12.ja r >2006-01-19 12:11:31 StandardHost[localhost]: ContainerBase.addChild: start: >LifecycleException: start: : java.lang.ClassCastException: org.apache.naming.resources.FileDirContext > at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:631) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486 ) > at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:774) > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548) > at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy er.java:260) > at org.apache.catalina.core.StandardHost.install(StandardHost.java:741) > at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java :512) > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:354) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671) > at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31 1) > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:119) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) > at org.apache.catalina.core.StandardService.start(StandardService.java:450) > at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) > at org.apache.catalina.startup.Catalina.start(Catalina.java:463) > at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) > at org.apache.catalina.startup.Catalina.process(Catalina.java:129) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) >- Root Cause - >java.lang.ClassCastException: org.apache.naming.resources.FileDirContext > at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.jav a:1012) > at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:618) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486 ) > at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:774) > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548) > at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy er.java:260) > at org.apache.catalina.core.StandardHost.install(StandardHost.java:741) > at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java :512) > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:354) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671) > at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31 1) > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:119) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) > at org.apache.catalina.
Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
I'd recommend checking that your classes12.jar file is valid. This should work: $JAVA_HOME/bin/jar -v -t -f webapps/ROOT/WEB-INF/lib/classes12.jar It'll list the table of contents of the archive and be verbose about it. Replace -t with -x to extract files for further inspection. --David gupta vidhi wrote: i'm sending you the whole localhost file: 2006-01-19 12:11:09 HostConfig[localhost]: Deploying configuration descriptor admin.xml 2006-01-19 12:11:29 HostConfig[localhost]: Deploying configuration descriptor manager.xml ... on and on and on . 2006-01-19 12:11:31 HostConfig[localhost]: Deploying web application directory ROOT 2006-01-19 12:11:31 StandardHost[localhost]: Installing web application at context path from URL file:C:\Program Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT 2006-01-19 12:11:31 WebappLoader[]: Deploying class repositories to work directory C:\Program Files\Tomcat\jakarta-tomcat-4.1.31\work\Standalone\localhost\_ 2006-01-19 12:11:31 WebappLoader[]: Deploy JAR /WEB-INF/lib/classes12.jar to C:\Program Files\Tomcat\jakarta-tomcat-4.1.31\webapps\ROOT\WEB-INF\lib\classes12.jar 2006-01-19 12:11:31 StandardHost[localhost]: ContainerBase.addChild: start: LifecycleException: start: : java.lang.ClassCastException: org.apache.naming.resources.FileDirContext at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:631) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260) at org.apache.catalina.core.StandardHost.install(StandardHost.java:741) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:512) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:354) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start(Catalina.java:463) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) - Root Cause - java.lang.ClassCastException: org.apache.naming.resources.FileDirContext at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:1012) at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:618) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260) at org.apache.catalina.core.StandardHost.install(StandardHost.java:741) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:512) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:354) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:671) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start(Catalina.java:463) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.pro
Re: how to download admin webapp
(1) Download admin webapp from http://tomcat.apache.org/download-55.cgi for your Tomcat version. (Say the filename is Tomcat-admin.zip) (2) Now unzip/untar the file preserving directory structure. So after unzip/untar you have following structure: Tomcat-admin --conf (d) --Catalina (d) --localhost (d) --admin.xml --server (d) --webapps (d) --admin (d) --stuff ** (means all files and folder for admin webapp) --LICENSE --NOTICE --RELEASE-NOTES (3) Copy the admin.xml and admin directory under server/webapps at the exact location as of the tomcat installation directory (TOMCAT_HOME). It means that copy admin.xml in to TOMCAT_HOME\conf\Catalina\localhost and copy admin directory into TOMCAT_HOME\server\webapps. (4) Restart the tomcat and admin should be up. Regards, D --- [EMAIL PROTECTED] wrote: > > Hi, > > Appologies if the answer to this is obvious. > > Could someone please explain where to obtain the admin webapp for tomcat 5. > > The basic installation simply provides the information that the admin > function must now be downloaded separately from the basic installation , > but I cannot find any refrences to admin in any of the 5.5 docs or > downloads. > > What am i missing ? > > Thanks > > Pete > > > - > > Celebrating 10 years of ba.com.. Flights..Hotels..Car > Hire..Sightseeing..Online Check-in..Manage My Booking and more > http://www.ba.com > > - > > Celebrating 10 years of ba.com.. Flights..Hotels..Car > Hire..Sightseeing..Online Check-in..Manage My Booking and more > http://www.ba.com > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to configure the tomcat 5.5.12 for a port 80 in linux (Gentoo)??
Gaël Lams wrote: So, I have configure a tomcat for a port 8080 in Linux (Gentoo), but when I try chance this port to 80 this make mistaje of Permission in de logs What can I do? It realley depends if it's fine with you to run Tomcat as root You have three possibilities: - if you don't care about running Tomcat as root and don't already have apache listening on port 80, change the port and start Tomcat as root. - if you prefer to run Tomcat as a non-priviled user (listening on port 8080) and have apache, use mod_jk and configure tomcat and apache accordingly (see doc on tomcat web site): your users will connect to port 80 - if you prefer to run Tomcat as a non-priviliged user (listening on port 8080) and you don't have apache, redirect requests made on port 80 to port 8080 using iptables. Regards, Gaël And there's always option number 4 -- use jsvc from the commons-daemon project to start tomcat safely as root and then drop root privilege for normal operations. This will get you port 80 without the inherent risks of running a process as root. Tomcat's bin directory has an archive of the jsvc source for building and there are binaries for some platforms on the website: http://jakarta.apache.org/commons/daemon --David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to configure the tomcat 5.5.12 for a port 80 in linux (Gentoo)??
> So, I have configure a tomcat for a port 8080 in Linux (Gentoo), but when I > try chance this port to 80 this make mistaje of Permission in de logs > > What can I do? > It realley depends if it's fine with you to run Tomcat as root You have three possibilities: - if you don't care about running Tomcat as root and don't already have apache listening on port 80, change the port and start Tomcat as root. - if you prefer to run Tomcat as a non-priviled user (listening on port 8080) and have apache, use mod_jk and configure tomcat and apache accordingly (see doc on tomcat web site): your users will connect to port 80 - if you prefer to run Tomcat as a non-priviliged user (listening on port 8080) and you don't have apache, redirect requests made on port 80 to port 8080 using iptables. Regards, Gaël
Re: Design Guidance requested for Tomcat newbie - servlets, MySQL access, etc.
I just wanted to add the Hibernate is very good for dealing with Database stuff. Ritchie >>> [EMAIL PROTECTED] 18/01/2006 9:04 pm >>> > Ah, well, it's for things like this that we schedule a long test/fix cycle, right? Indeed... :( Here the links to those frameworks: http://www.springframework.org/ http://wicket.sourceforge.net/ Have fun. Giorgio On 1/19/06, Warrick Wilson <[EMAIL PROTECTED]> wrote: > > > Hi, > > I'm in your same boat (like many I guess). In an effort to learn best > > pratice and avoiding to reinvent the wheel, I thought, it may be > wise to > > stick with one of the several java web application frameworks. > > I'm trying with Spring, which seems quite good, but at least for me, > it is > > not that easy to learn too. I just come across another one called > Wicket, > > which between the other premises, says having focused on easier > lerning > > curve. > > Hope it helps. > > > > Giorgio > > Giorgio, > > I appreciate your reply. I don't have a choice in the framework - > that's already set. I'm just learning a lot of stuff - a Java refresh, > JDBC, Tomcat, numerous Apache-related project acronyms, and places to > go for information. I'll have to look at the two you mentioned, simply > to fill in the blanks on what they are. > > I've put together something that's working for me for now. I (sadly) > don't have a clue whether I'm totally misunderstanding something, or > whether I've coded a potential show-stopping kludge into my program, > but it currently _is_ running enough to let me get at the next thing > on my task list for the project. Ah, well, it's for things like this > that we schedule a long test/fix cycle, right? > > Thanks again.Warrick > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
On 1/19/06, gupta vidhi <[EMAIL PROTECTED]> wrote: > i'd made some JSP & HTML pages(without DB Connectivity) and also execute them > successfully, before copying classes12.jar file in WEB-INF\lib, but now when > i'm executing my pages with or without DB Connec.,they aren't executing and > showing the same error as i'd told you in my previous mail. > now i'm unable to understand, what shud i do,bcoz i'm unable to understand > the problem? > if Tomcat would have not been installed properly,then how could the pages > had executed successfully before.but now the same Tomcat is showing error > with every page. > what could be the reason behind this? > If other JSP pages work Tomcat is configured properly. As a next step check log files in the logs directory of Tomcat. See the files like localhost*. The error message will be there. Post it. > > Anto Paul <[EMAIL PROTECTED]> wrote: > On 1/19/06, gupta vidhi wrote: > > Hello, > > thanx for the code.i'd executed but facing some problems.its showing the > > following error: > > > > HTTP Status 500 - No Context configured to process this request > > - > > > > type Status report > > message No Context configured to process this request > > description The server encountered an internal error (No Context configured > > to process this request) that prevented it from fulfilling this request. > > > > - > > > > Apache Tomcat/4.1.31 > > > It should be because that Tomcat is not configured. To test this you > should create a file named index.html with some text in it and try > accessing it. If it works Tomcat is configured. BTW where tomcat is > installed and what is the path to the application you are trying to > access ?. > > > as you had asked me to copy classes12.zip from Oracle\jdbc\lib. but i'm bot > > finding the jdbc folder in my ORACLE_HOME. its in my : > > C:\oracle1\jdk\lib\classes\sun\jdbc path.now this path don't have lib > > folder in it.this jdbc folder consists of odbc folder which again don't > > have any lib folder. > > > > > You should use Search -> Find from Windows start menu to locate the > file classes12.zip or search for jdbc in your computer. If it is not > found you should download it from oracle.com. Ritchie has given the > link in a prevoius post. There you can download driver for any higher > version of Oracle database and it will work for 8.0 also. Put the file > in WEB-INF\lib and restart Tomcat. > > > > i feel the above error might be coming bcoz of the same reason. > > now you say, what should i do and what the matter is all about? > > > > Regards, > > > > Vidhi > > Anto Paul wrote: > > On 1/18/06, gupta vidhi wrote: > > > i've JDBC installed in other path than Tomcat.you asked me to put the > > > JDBC driver library into WEB-INF\lib. there's WEB-INF directory,but it do > > > not have lib as its sub directory.what can be done for this? > > > kindly tell me how to do the path setting of JDBC with JSP. > > > i'd made a page in JSP,but when executing its generating error as: > > > > > > javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data > > > source name not found and no default driver specified > > > and so on. > > > kindly tell how to connect my JSP page with JDBC. > > > > > > > A JDBC tutorial is here > > http://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html > > > > Don't use JDBC-ODBC bridge. From the error message it seems that > > it is using JDBC-ODBC bridge. > > You will get the JDBC driver from ORACLE_HOME\jdbc\lib. For 8i the > > file will be classes12.zip. Create a lib directory in WEB-INF > > directory. Tomcat is case sensitive and lib must be in small letters. > > Copy classes12.zip to WEB-INF\lib and rename it to classes12.jar. Now > > to connect to database use the JDBC URL like > > jdbc:oracle:thin:hr/[EMAIL PROTECTED]:1521:orcl. > > > > Don't for to restart Tomcat after putting the JAR file in WEB-INF\lib. > > > > The Oracle installation provides some sample Java code. Look in > > jdbc folder for it. > > > > -- > > rgds > > Anto Paul > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > - > > Yahoo! Photos > > Ring in the New Year with Photo Calendars. Add photos, events, holidays, > > whatever. > > > > > -- > rgds > Anto Paul > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > - > Yahoo! Photos > Got holiday prints? See all the ways to get quality prints in your hands > ASAP. > -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to download admin webapp
On 1/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > Appologies if the answer to this is obvious. > > Could someone please explain where to obtain the admin webapp for tomcat 5. > You can find it in the same place where you downloaded Tomcat binary. Go to tomcat.apache.org and click on the download link. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
is it necessary to set the path of classes12.jar file? gupta vidhi <[EMAIL PROTECTED]> wrote: i'd made some JSP & HTML pages(without DB Connectivity) and also execute them successfully, before copying classes12.jar file in WEB-INF\lib, but now when i'm executing my pages with or without DB Connec.,they aren't executing and showing the same error as i'd told you in my previous mail. now i'm unable to understand, what shud i do,bcoz i'm unable to understand the problem? if Tomcat would have not been installed properly,then how could the pages had executed successfully before.but now the same Tomcat is showing error with every page. what could be the reason behind this? Anto Paul wrote: On 1/19/06, gupta vidhi wrote: > Hello, > thanx for the code.i'd executed but facing some problems.its showing the > following error: > > HTTP Status 500 - No Context configured to process this request > - > > type Status report > message No Context configured to process this request > description The server encountered an internal error (No Context configured > to process this request) that prevented it from fulfilling this request. > > - > > Apache Tomcat/4.1.31 It should be because that Tomcat is not configured. To test this you should create a file named index.html with some text in it and try accessing it. If it works Tomcat is configured. BTW where tomcat is installed and what is the path to the application you are trying to access ?. > as you had asked me to copy classes12.zip from Oracle\jdbc\lib. but i'm bot > finding the jdbc folder in my ORACLE_HOME. its in my : > C:\oracle1\jdk\lib\classes\sun\jdbc path.now this path don't have lib folder > in it.this jdbc folder consists of odbc folder which again don't have any lib > folder. > You should use Search -> Find from Windows start menu to locate the file classes12.zip or search for jdbc in your computer. If it is not found you should download it from oracle.com. Ritchie has given the link in a prevoius post. There you can download driver for any higher version of Oracle database and it will work for 8.0 also. Put the file in WEB-INF\lib and restart Tomcat. > i feel the above error might be coming bcoz of the same reason. > now you say, what should i do and what the matter is all about? > > Regards, > > Vidhi > Anto Paul wrote: > On 1/18/06, gupta vidhi wrote: > > i've JDBC installed in other path than Tomcat.you asked me to put the JDBC > > driver library into WEB-INF\lib. there's WEB-INF directory,but it do not > > have lib as its sub directory.what can be done for this? > > kindly tell me how to do the path setting of JDBC with JSP. > > i'd made a page in JSP,but when executing its generating error as: > > > > javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data > > source name not found and no default driver specified > > and so on. > > kindly tell how to connect my JSP page with JDBC. > > > > A JDBC tutorial is here > http://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html > > Don't use JDBC-ODBC bridge. From the error message it seems that > it is using JDBC-ODBC bridge. > You will get the JDBC driver from ORACLE_HOME\jdbc\lib. For 8i the > file will be classes12.zip. Create a lib directory in WEB-INF > directory. Tomcat is case sensitive and lib must be in small letters. > Copy classes12.zip to WEB-INF\lib and rename it to classes12.jar. Now > to connect to database use the JDBC URL like > jdbc:oracle:thin:hr/[EMAIL PROTECTED]:1521:orcl. > > Don't for to restart Tomcat after putting the JAR file in WEB-INF\lib. > > The Oracle installation provides some sample Java code. Look in > jdbc folder for it. > > -- > rgds > Anto Paul > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > Yahoo! Photos > Ring in the New Year with Photo Calendars. Add photos, events, holidays, > whatever. > -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Photos Got holiday prints? See all the ways to get quality prints in your hands ASAP. - Yahoo! Photos Showcase holiday pictures in hardcover Photo Books. You design it and well bind it!
Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
is it necessary to set the path of classes12.jar file? gupta vidhi <[EMAIL PROTECTED]> wrote: i'd made some JSP & HTML pages(without DB Connectivity) and also execute them successfully, before copying classes12.jar file in WEB-INF\lib, but now when i'm executing my pages with or without DB Connec.,they aren't executing and showing the same error as i'd told you in my previous mail. now i'm unable to understand, what shud i do,bcoz i'm unable to understand the problem? if Tomcat would have not been installed properly,then how could the pages had executed successfully before.but now the same Tomcat is showing error with every page. what could be the reason behind this? Anto Paul wrote: On 1/19/06, gupta vidhi wrote: > Hello, > thanx for the code.i'd executed but facing some problems.its showing the > following error: > > HTTP Status 500 - No Context configured to process this request > - > > type Status report > message No Context configured to process this request > description The server encountered an internal error (No Context configured > to process this request) that prevented it from fulfilling this request. > > - > > Apache Tomcat/4.1.31 It should be because that Tomcat is not configured. To test this you should create a file named index.html with some text in it and try accessing it. If it works Tomcat is configured. BTW where tomcat is installed and what is the path to the application you are trying to access ?. > as you had asked me to copy classes12.zip from Oracle\jdbc\lib. but i'm bot > finding the jdbc folder in my ORACLE_HOME. its in my : > C:\oracle1\jdk\lib\classes\sun\jdbc path.now this path don't have lib folder > in it.this jdbc folder consists of odbc folder which again don't have any lib > folder. > You should use Search -> Find from Windows start menu to locate the file classes12.zip or search for jdbc in your computer. If it is not found you should download it from oracle.com. Ritchie has given the link in a prevoius post. There you can download driver for any higher version of Oracle database and it will work for 8.0 also. Put the file in WEB-INF\lib and restart Tomcat. > i feel the above error might be coming bcoz of the same reason. > now you say, what should i do and what the matter is all about? > > Regards, > > Vidhi > Anto Paul wrote: > On 1/18/06, gupta vidhi wrote: > > i've JDBC installed in other path than Tomcat.you asked me to put the JDBC > > driver library into WEB-INF\lib. there's WEB-INF directory,but it do not > > have lib as its sub directory.what can be done for this? > > kindly tell me how to do the path setting of JDBC with JSP. > > i'd made a page in JSP,but when executing its generating error as: > > > > javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data > > source name not found and no default driver specified > > and so on. > > kindly tell how to connect my JSP page with JDBC. > > > > A JDBC tutorial is here > http://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html > > Don't use JDBC-ODBC bridge. From the error message it seems that > it is using JDBC-ODBC bridge. > You will get the JDBC driver from ORACLE_HOME\jdbc\lib. For 8i the > file will be classes12.zip. Create a lib directory in WEB-INF > directory. Tomcat is case sensitive and lib must be in small letters. > Copy classes12.zip to WEB-INF\lib and rename it to classes12.jar. Now > to connect to database use the JDBC URL like > jdbc:oracle:thin:hr/[EMAIL PROTECTED]:1521:orcl. > > Don't for to restart Tomcat after putting the JAR file in WEB-INF\lib. > > The Oracle installation provides some sample Java code. Look in > jdbc folder for it. > > -- > rgds > Anto Paul > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > Yahoo! Photos > Ring in the New Year with Photo Calendars. Add photos, events, holidays, > whatever. > -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Photos Got holiday prints? See all the ways to get quality prints in your hands ASAP. - Yahoo! Photos Showcase holiday pictures in hardcover Photo Books. You design it and well bind it!
Re: I need advice about choosing a application server.
Legolas Tomcat suits such requirements [and heavier loads]. You can deploy tomcat on JBoss [it is embedded] and disable the services you don't need. Geronimo is not as mature, and correct me if I am wrong is not a servlet container, Geronimo uses jetty or tomcat for this. On a different note, I would still implement connection pooling, [you don't need a full blown app server for that] look into jakarta commons there is some projects which addreses this specific need. Spring can help there too. Also, visit JBoss site, they have a Portal project. The Hardware you have can support this load [I am not a salesman :-)], also you proabaly need to think about availability [if this is a requirement] and growth / capacity planning, in such case you may revisit your hardware. Hopes this helps. With Best Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 Legolas Woodland <[EMAIL PROTECTED] To: Tomcat Users List .com>cc: Subject: I need advice about choosing a application server. 18.01.06 23:34 Please respond Distribute: to "Tomcat Users Personal? |---| List"| [ ] x | |---| I need advice about choosing a application server. Hi Thank you for reading my post I need some advice to choose an application server / srvlet container for deploying a project. Application description : application has two part which one of them is a portal . portal itself will have a 2 hit/second . each hit could have 1 select / 1 update and one insert sql statement. portal itself use hibernate and Derby. I used plain *JDBC , derby , jsf *to develop my portlets (two portlet which are runing on the base) there are about 2 emails /second in peak time of the system , it will jsut send the emails and store them in database. The most busy part of the system is another application which will handel about 30 hit (each hit has , 2 update , 2 insert , and 2 select statement) for this part there will be no email *I did not implement sending emails as i do not know a good or best practice for this one , and i think it is something related to application server ?* As i did not use any EJB stuff and just some datasource , JNDI , connection pool , what will be my choice to deploy the application ? Tomcat ? Sun application server 8.* ? Geronimo ? Host is a Redhat enterprise Linux , with one p4 processor . some tables has 1/000/000 records. Will that hardware handle this load ? LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. If you have received this email in error please notify the sender by replying to this email inserting the word "misdirected" as the message and delete this e-mail from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
i'd made some JSP & HTML pages(without DB Connectivity) and also execute them successfully, before copying classes12.jar file in WEB-INF\lib, but now when i'm executing my pages with or without DB Connec.,they aren't executing and showing the same error as i'd told you in my previous mail. now i'm unable to understand, what shud i do,bcoz i'm unable to understand the problem? if Tomcat would have not been installed properly,then how could the pages had executed successfully before.but now the same Tomcat is showing error with every page. what could be the reason behind this? Anto Paul <[EMAIL PROTECTED]> wrote: On 1/19/06, gupta vidhi wrote: > Hello, > thanx for the code.i'd executed but facing some problems.its showing the > following error: > > HTTP Status 500 - No Context configured to process this request > - > > type Status report > message No Context configured to process this request > description The server encountered an internal error (No Context configured > to process this request) that prevented it from fulfilling this request. > > - > > Apache Tomcat/4.1.31 It should be because that Tomcat is not configured. To test this you should create a file named index.html with some text in it and try accessing it. If it works Tomcat is configured. BTW where tomcat is installed and what is the path to the application you are trying to access ?. > as you had asked me to copy classes12.zip from Oracle\jdbc\lib. but i'm bot > finding the jdbc folder in my ORACLE_HOME. its in my : > C:\oracle1\jdk\lib\classes\sun\jdbc path.now this path don't have lib folder > in it.this jdbc folder consists of odbc folder which again don't have any lib > folder. > You should use Search -> Find from Windows start menu to locate the file classes12.zip or search for jdbc in your computer. If it is not found you should download it from oracle.com. Ritchie has given the link in a prevoius post. There you can download driver for any higher version of Oracle database and it will work for 8.0 also. Put the file in WEB-INF\lib and restart Tomcat. > i feel the above error might be coming bcoz of the same reason. > now you say, what should i do and what the matter is all about? > > Regards, > > Vidhi > Anto Paul wrote: > On 1/18/06, gupta vidhi wrote: > > i've JDBC installed in other path than Tomcat.you asked me to put the JDBC > > driver library into WEB-INF\lib. there's WEB-INF directory,but it do not > > have lib as its sub directory.what can be done for this? > > kindly tell me how to do the path setting of JDBC with JSP. > > i'd made a page in JSP,but when executing its generating error as: > > > > javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data > > source name not found and no default driver specified > > and so on. > > kindly tell how to connect my JSP page with JDBC. > > > > A JDBC tutorial is here > http://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html > > Don't use JDBC-ODBC bridge. From the error message it seems that > it is using JDBC-ODBC bridge. > You will get the JDBC driver from ORACLE_HOME\jdbc\lib. For 8i the > file will be classes12.zip. Create a lib directory in WEB-INF > directory. Tomcat is case sensitive and lib must be in small letters. > Copy classes12.zip to WEB-INF\lib and rename it to classes12.jar. Now > to connect to database use the JDBC URL like > jdbc:oracle:thin:hr/[EMAIL PROTECTED]:1521:orcl. > > Don't for to restart Tomcat after putting the JAR file in WEB-INF\lib. > > The Oracle installation provides some sample Java code. Look in > jdbc folder for it. > > -- > rgds > Anto Paul > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > Yahoo! Photos > Ring in the New Year with Photo Calendars. Add photos, events, holidays, > whatever. > -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Photos Got holiday prints? See all the ways to get quality prints in your hands ASAP.
Problems downloading some files with Tomcat 5.5.12
Hello. I've a server running w2003k with IIS 6 and Tomcat 5.5.12. Also, I'm using JK 1.2 to mapping tomcat for IIS. All the system work fine, and very stable. However, when i try to download some files (like .xls, .doc, .rar) from a application in Tomcar, the binary contento f file is opened by Internet Explorer. After a research on the web, I found something about the mime-mapping, that I must put on the conf\web.xml file. I put the entries like this: xls application/vnd.ms-excel doc application/vnd.ms-word But, even after restart the tomcat/iis won't work. Other tests tha I' maked: 1- Try to download a xls file directly from IIS: Ex: http://localhost/test.xls.It work fine. 2- Try to download a xls file from um tomcat application, using tomcat. Ex: http://localhost:8080/files/test.xls It work fine. 3- try to download a xls file from tomcat application, using integration with IIS. Ex: http://localhost/files/test.xls The problem occurred. Someone can please help-me ? Jean Carlos Bormanieri
how to download admin webapp
Hi, Appologies if the answer to this is obvious. Could someone please explain where to obtain the admin webapp for tomcat 5. The basic installation simply provides the information that the admin function must now be downloaded separately from the basic installation , but I cannot find any refrences to admin in any of the 5.5 docs or downloads. What am i missing ? Thanks Pete - Celebrating 10 years of ba.com.. Flights..Hotels..Car Hire..Sightseeing..Online Check-in..Manage My Booking and more http://www.ba.com - Celebrating 10 years of ba.com.. Flights..Hotels..Car Hire..Sightseeing..Online Check-in..Manage My Booking and more http://www.ba.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat does not respond any request after several days
Hi, I got a serious problem when I deploy my software on to customer's server. The Tomcat server runs fine in several days (could be 1 or 2,3,4 days unexpectedly) but then it does not respond any request and produce any output (also no error code). It only happens to me only on that server. The server is running Windows 2000 server, 2GB RAM, 4 CPUs. I've spent days and nights and not yet work out any solution. Is there anyone having the same problem and pointing me a way to solve it ? My customer is pressuring me too much for this. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to make external files accessible to the servlet in tomcat
Hi.. I am running a servlet which uses an api of the package 'conceptnet'.The conceptnet api requires access internally to some data files of conceptnet.Iam getting the message that the data files are not found by tomcat.In which folder of tomcat should I put these supplementary data files so that they are accessible to the servlet? I tried putting them in /WEB-INF/classes and also in /WEB-INF/lib of my web application but the files were not found.Please help. Thank you -Neha
mod_jk connection problem after couple of days or a week
Hi All, At our company we run JBoss for several applications, and have recently setup a new box that is giving some rather odd errors. The box runs: Windows 2003 Advanced Server Apache 2.0.54 JBoss 4.0.2 mod_jk 1.2.15 (precompiled binary) We were previously running jk2, but since that's now sort of deprecated we've set up this box on jk 1.2.15 Basically, the box is running fine for some time between a couple of days to a week, and then suddenly we start getting Apache reporting an error (503 I think, if I remember correctly from last time it happened). Looking in the mod_jk log file we get these errors constantly: [Mon Jan 16 09:53:46 2006] [error] jk_ajp_common.c (1026): ERROR: can't receive the response message from tomcat, network problems or tomcat (127.0.0.1:8990) is down -53 [Mon Jan 16 09:53:46 2006] [error] jk_ajp_common.c (1528): Tomcat is down or network problems. Part of the response has already been sent to the client [Mon Jan 16 09:53:46 2006] [info] jk_ajp_common.c (1721): Receiving from tomcat failed, recoverable operation attempt=0 [Mon Jan 16 09:53:46 2006] [info] jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=1 [Mon Jan 16 09:53:46 2006] [error] jk_ajp_common.c (1026): ERROR: can't receive the response message from tomcat, network problems or tomcat (127.0.0.1:8990) is down -53 It tries a couple more times, with similar results, on the second attempt saying "Tomcat is down or refused connection" instead of "Tomcat is down or network problems", and on the third attempt saying "Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port". I checked the source and found that the error code "-53" is derived from the windows socket error codes - according to MSDN this one is "Software caused connection abort. An established connection was aborted by the software in your host computer, possibly due to a data transmission time-out or protocol error". JBoss starts having the following message in its logs repeatedly: 2006-01-16 09:56:39,968 WARN [org.apache.jk.common.ChannelSocket] processCallbacks status 2 It looks like the sockets are getting screwed up and past this point it seems mod_jk and JBoss can't communicate properly. Unfortunately, stopping JBoss and Apache and restarting them does no good - it seems like the sockets are all occupied and hanging around in a bad state. We have to actually reboot the box to get it up and running again. Anybody had anything like this, or know what might cause it? We were wondering if we've got pools of workers / sockets configured badly (mis-matched). Tomcat connectors in servers.xml: (there are several appservers this box connects to, but they all look like this, just with different ports) = == Contents of workers.properties: worker.list=eOrig,eOrigUAT, jkstatus # Status worker worker.jkstatus.type=status # eOriginations worker.eOrig.port=8991 # eOriginations UAT worker.eOrigUAT.host=uklxfcocr worker.eOrigUAT.port=8991 == Contents of httpd.conf: (stripped out all the standard, unchanged, and basic stuff) # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. ServerRoot "Z:/Apache Group/Apache2" # PidFile: The file in which the server should record its process # identification number when it starts. PidFile logs/httpd.pid # Timeout: The number of seconds before receives and sends time out. Timeout 300 # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. KeepAlive On # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. MaxKeepAliveRequests 1 # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. KeepAliveTimeout 15 ## ## Server-Pool Size Regulation (MPM specific) ## # WinNT MPM # ThreadsPerChild: constant number of worker threads in the server process # MaxRequestsPerChild: maximum number of requests a server process serves ThreadsPerChild 500 MaxRequestsPerChild 0 # # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of the default. See also the # directive. Listen 80 # # Dynamic Shared Object (DSO) Support # LoadModule access_module modules/mod_access.so LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule asis_module modules/mod_asis.so LoadModule auth_module modules/mod_auth.so LoadModule dir_module modules/mod_dir.so LoadModule env_module modules/mod_env.so LoadModule imap_module modules/mod_imap.so
Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i
On 1/19/06, gupta vidhi <[EMAIL PROTECTED]> wrote: > Hello, > thanx for the code.i'd executed but facing some problems.its showing the > following error: > > HTTP Status 500 - No Context configured to process this request > - > > type Status report > message No Context configured to process this request > description The server encountered an internal error (No Context configured > to process this request) that prevented it from fulfilling this request. > > - > > Apache Tomcat/4.1.31 It should be because that Tomcat is not configured. To test this you should create a file named index.html with some text in it and try accessing it. If it works Tomcat is configured. BTW where tomcat is installed and what is the path to the application you are trying to access ?. > as you had asked me to copy classes12.zip from Oracle\jdbc\lib. but i'm bot > finding the jdbc folder in my ORACLE_HOME. its in my : > C:\oracle1\jdk\lib\classes\sun\jdbc path.now this path don't have lib > folder in it.this jdbc folder consists of odbc folder which again don't have > any lib folder. > You should use Search -> Find from Windows start menu to locate the file classes12.zip or search for jdbc in your computer. If it is not found you should download it from oracle.com. Ritchie has given the link in a prevoius post. There you can download driver for any higher version of Oracle database and it will work for 8.0 also. Put the file in WEB-INF\lib and restart Tomcat. >i feel the above error might be coming bcoz of the same reason. > now you say, what should i do and what the matter is all about? > > Regards, > > Vidhi > Anto Paul <[EMAIL PROTECTED]> wrote: > On 1/18/06, gupta vidhi wrote: > > i've JDBC installed in other path than Tomcat.you asked me to put the JDBC > > driver library into WEB-INF\lib. there's WEB-INF directory,but it do not > > have lib as its sub directory.what can be done for this? > > kindly tell me how to do the path setting of JDBC with JSP. > > i'd made a page in JSP,but when executing its generating error as: > > > > javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data > > source name not found and no default driver specified > > and so on. > > kindly tell how to connect my JSP page with JDBC. > > > > A JDBC tutorial is here > http://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html > > Don't use JDBC-ODBC bridge. From the error message it seems that > it is using JDBC-ODBC bridge. > You will get the JDBC driver from ORACLE_HOME\jdbc\lib. For 8i the > file will be classes12.zip. Create a lib directory in WEB-INF > directory. Tomcat is case sensitive and lib must be in small letters. > Copy classes12.zip to WEB-INF\lib and rename it to classes12.jar. Now > to connect to database use the JDBC URL like > jdbc:oracle:thin:hr/[EMAIL PROTECTED]:1521:orcl. > > Don't for to restart Tomcat after putting the JAR file in WEB-INF\lib. > > The Oracle installation provides some sample Java code. Look in > jdbc folder for it. > > -- > rgds > Anto Paul > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > Yahoo! Photos > Ring in the New Year with Photo Calendars. Add photos, events, holidays, > whatever. > -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to configure the tomcat 5.5.12 for a port 80 in linux (Gentoo)??
* Dhaval Patel wrote (19/01/2006 02:13): > Hi, > >For detail information about the problem and solution, visit: > http://wiki.apache.org/tomcat/HowTo#head-18d1c3f3fa702a1be769340784515eecce6e0ac9 Also see http://tomcat.apache.org/tomcat-5.0-doc/setup.html for info on jsvc. You'd have to replace /etc/init.d/tomcat with something like the bundled Tomcat.sh file (appropriately tweaked) > >The quick solution is to to administer (start, stop, edit) tomcat only as > a root. And the way to do that in Gentoo is to edit /etc/conf.d/tomcat and change the CATALINA_USER variable. But don't do it unless you don't mind people having a go at you for misadministration of a linux machine. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
creating html files within an web application? write access?
Hi there, I'm a developer new to web programming. I'm using tomcat 5.x to deploy my applications. Now I have an web application using an other application to generate some html files and necessary folders. I would like to use my web application to automatically create the files, so a user knowing the url can view the generated html files. 1) Is it possible to execute a java programm within an web application (calling the main method) 2) Am I allowed to write files in my web application? 3) Can I configure tomcat to allow this? Would be nice if someone can help me out here. Dominik p.s.: I think i can write at least to the temp directory, am I right? If no writing in the web app directory is allowed I could at last generate the files in temp directory and write them to my database? __ XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club! Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]