Unconnected sockets not implemented
Hi all, I have tomcat ssl configured ant tried to access it with a jsse client but i get the following error: [java] Exception in thread "main" org.apache.axis2.AxisFault: Unconnected s ockets not implemented; nested exception is: [java] java.net.SocketException: Unconnected sockets not implemented; n any idea? Thanks, Nencho
Re: session timeout
Hello Pierre, Try setting this in your tomcat /conf/web.xml. It should work for all the contexts. 60 (the time is specified in mins) Or you can set this in a specific webapp web.xml so that it would be the only one with a 60 minutes session timeout. Olivier Le 28/05/07, Pierre Goupil <[EMAIL PROTECTED]> a écrit : Hello all ! I'm using a Tomcat-based authentication. How do you do to set the session timeout time ? I mean, the time of inactivity after which one the user must re-login. I'm using Tomcat 5.5. Regards, Pierre -- "Mon horizon était désormais les pétales courbés, Ma nouvelle demeure resplendissait de flèches d'herbes folles Et d'oreillers de pollens odorants." (Naïmah, le philosophe Fémereif)
Re: session timeout
There is a spelling mistake in what i wrote : 60 This should work better i guess ;) 2007/5/28, Olivier Bouchereau <[EMAIL PROTECTED]>: Hello Pierre, Try setting this in your tomcat /conf/web.xml. It should work for all the contexts. 60 (the time is specified in mins) Or you can set this in a specific webapp web.xml so that it would be the only one with a 60 minutes session timeout. Olivier Le 28/05/07, Pierre Goupil <[EMAIL PROTECTED]> a écrit : > > Hello all ! > > I'm using a Tomcat-based authentication. How do you do to set the > session > timeout time ? I mean, the time of inactivity after which one the user > must > re-login. > > I'm using Tomcat 5.5. > > Regards, > > Pierre > > > -- > "Mon horizon était désormais les pétales courbés, > Ma nouvelle demeure resplendissait de flèches d'herbes folles > Et d'oreillers de pollens odorants." > > (Naïmah, le philosophe Fémereif) >
Re: session timeout
Pretty straight-forward : thanx a lot ! Pierre 2007/5/28, Olivier Bouchereau <[EMAIL PROTECTED]>: Hello Pierre, Try setting this in your tomcat /conf/web.xml. It should work for all the contexts. 60 (the time is specified in mins) Or you can set this in a specific webapp web.xml so that it would be the only one with a 60 minutes session timeout. Olivier Le 28/05/07, Pierre Goupil <[EMAIL PROTECTED]> a écrit : > > Hello all ! > > I'm using a Tomcat-based authentication. How do you do to set the session > timeout time ? I mean, the time of inactivity after which one the user > must > re-login. > > I'm using Tomcat 5.5. > > Regards, > > Pierre > > > -- > "Mon horizon était désormais les pétales courbés, > Ma nouvelle demeure resplendissait de flèches d'herbes folles > Et d'oreillers de pollens odorants." > > (Naïmah, le philosophe Fémereif) > -- "Mon horizon était désormais les pétales courbés, Ma nouvelle demeure resplendissait de flèches d'herbes folles Et d'oreillers de pollens odorants." (Naïmah, le philosophe Fémereif)
Is there opportunity to replicate configuration files for nodes of cluster?
Hello list Is there opportunity to replicate configuration files for nodes of cluster? Thx - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session timeout
Quoting Pierre Goupil <[EMAIL PROTECTED]>: Hello all ! I'm using a Tomcat-based authentication. How do you do to set the session timeout time ? I mean, the time of inactivity after which one the user must re-login. You can set the http session-time into the Web.xml file of you webapp: Your_value_in_minutes you can set it programmatically to (have a look to the j2ee javadoc) Goupil, c'est un nom prédestiné pour l'informatique ca ;-) Ce message a ete envoye par le serveur IMP de l'EMA. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Web application receives request parameters sent to another application on Tomcat 6
We have two applications running on the same Tomcat instance. These two applications are used by completely different people and one of them has much higher traffic than another one. Recently we have upgraded to Tomcat 6.10 and start experiencing strange behavior. After a lot of debugging, we have noticed that the first application sometimes receives request parameters sent to second application. Parameters are mixed-up, that is, request.getParameterMap() returns parameters from both applications. This is not happening all the time (probably because one of these applications is used rarely), but we had this situation several times a day. After some time we have decided to return back to Tomcat 5.5.x and the problems stopped. What can be reason for such problems? Is it possible that Tomcat re-uses some objects internally without clearing them up? Regards, Dejan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Native Library Breaks SSL
I am working with Windows XP Tomcat 5.5.23 http://tomcat.heanet.ie/native/1.1.10/binaries/win32/ I followed the openssl instructions at http://www.galatea.com/flashguides/tomcat-ssl-5-unix to setup my ssl. When I start tomcat and try to connect to localhost:8443 the browser sits there loading for a long time. After a couple minutes of waiting the browser stops and says The connection was interrupted The connection to 127.0.0.1:8443 was interrupted while the page was loading I finally removed the tcnative-1.dll from my windows/system32 directory and restarted tomcat. The ssl works properly now. I probably spent a couple days debugging this problem. Anyone know why the native library stops ssl from working? Also I did adjust the debug="0" to debug="5" but didn't receive any more detailed output. My conf/server.xml looks like: I tried changing my ssl connector xml to ajp syntax like: but I renamed my mycert.pem to localhost.crt and mykey.pem to localhost.key - the files created from the www.galatea.com instructions - but it resulted in the same browser loading till the problem loading page message. Thanks for any advice. MG Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there opportunity to replicate configuration files for nodes of cluster?
nope, not at this time Filip Corobitsyn Roman wrote: Hello list Is there opportunity to replicate configuration files for nodes of cluster? Thx - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Native Library Breaks SSL
> From: Mike Grandmaison [mailto:[EMAIL PROTECTED] > Subject: Tomcat Native Library Breaks SSL > > Windows XP > Tomcat 5.5.23 > http://tomcat.heanet.ie/native/1.1.10/binaries/win32/ > > I followed the openssl instructions at > http://www.galatea.com/flashguides/tomcat-ssl-5-unix > to setup my ssl. You might try following the real documentation: http://tomcat.apache.org/tomcat-5.5-doc/apr.html#HTTPS - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Admin config
Hi all I've a very very newbie on tomcat (first day I try to configure tomcat)... I've install from ports (FreeBSD) the tomcat 5.5 (need by my web-applications). The applications I need to run is configured by admin tomcat. Well for this I've install admin module and it seem everything working (I can acces the admin page etc.) My problem is I can go the context of my application through the admin module, but when I make any changes in the config of my webapps, this changes are loose after reboot of the tomcat server. I've change the owner of TOMCAT_HOME/conf to the uid run tomcat, but nothing work. Any help ? Regards. -- Albert SHIH Observatoire de Paris Meudon SIO batiment 15 Téléphone : 01 45 07 76 26 Heure local/Local time: Lun 28 mai 2007 16:59:53 CEST - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding JSP compiler from Tomcat
I can't seem to find either of those two files in the Tomcat 6 distribution...interesting. Bill Barker-2 wrote: > > > "lightbulb432" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> >> The JSP spec says that if you precompile JSPs you can reduce the JSP >> container footprint by excluding the JSP compiler. How can this be done >> in >> Tomcat? > > You should be able to remove jasper-compiler.jar and > jasper-compiler-jdt.jar > from $CATALINA_HOME/common/lib (for a whopping savings of 1.5MB). I > haven't > tested it, so your milage may very :). > >> >> Thanks. >> -- >> View this message in context: >> http://www.nabble.com/Excluding-JSP-compiler-from-Tomcat-tf3817429.html#a10807251 >> Sent from the Tomcat - User mailing list archive at Nabble.com. >> >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Excluding-JSP-compiler-from-Tomcat-tf3817429.html#a10837532 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding JSP compiler from Tomcat
Thanks for your response. For the first of the two options you presented, what exactly happens during the web.xml autogeneration? Will it simply change only the elements but leave everything else as is in my current web.xml, including ? Is there anything else it changes? The less it changes, the more my development (pre-deployment) would be as close to production as possible, I'm guessing... Thanks. Rashmi Rubdi-2 wrote: > > On 5/25/07, lightbulb432 <[EMAIL PROTECTED]> wrote: >> >> The JSP spec says that if you precompile JSPs you can reduce the JSP >> container footprint by excluding the JSP compiler. How can this be done >> in >> Tomcat? > > I know of 2 ways to pre-compile JSPs > > 1) http://tomcat.apache.org/tomcat-4.1-doc/jasper-howto.html > > If you're using Ant , than you can add the above jasper task to > your build process. > The process first converts all JSPs to .java files, and then all .java > files are compiled to .class files , during this process the web.xml > is also auto-modified and there's an entry for every JSP page in your > app. > > Pre-compiling with jasper is very slow (expected behavior) , so it is > recommended that the pre-compile should be done just before deploying > the app to production , there's no need to pre-compile while > developing/ testing JSPs. > > 2) Use JSP Unit testing tools like HttpUnit or Apache Cactus, as the > tools test each JSP page they acces the JSP pages for the ~first time~ > , this essentially compiles all JSP pages , then move the war file to > production. > > Many recommend the 2nd option as it makes your pre-compiled code > portable aross containers. > >> Thanks. > > Regards > Rashmi > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Excluding-JSP-compiler-from-Tomcat-tf3817429.html#a10837549 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Admin config
Albert Shih wrote: I've install from ports (FreeBSD) the tomcat 5.5 (need by my web-applications). Forget this one. The best and easiest way is: 1. install java ;-) 2. create account dedicated for tomcat 3. download tar.gz from tomcat website, unpack, configure according to guide on web site 4. deploy webapps 5. either you're done or setup apache 2.2 server and setup mod_proxy_ajp -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: Apache2.2.4 with tomcat 6.0 and module_jk2.2.4.so error
Thank Bill, where I can find the patch? I've Apache on Windows xp. :-( Fabbris Pierluigi Bill Barker ha scritto: The Tomcat auto-config was originally designed for Httpd 1.3.x (yes, it's that old :). It hasn't really kept up with Httpd, so some of the directives are now out of date. Patches are always welcome ;-). "Fabbris Pierluigi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I've configure the Tomcat 6 and Apache 2.2.4 with module_jk2.2.4 how must I, but I've a error: Thu May 24 23:27:13 2007] [notice] Apache/2.2.4 (Win32) mod_jk/1.2.23 PHP/5.2.2 configured -- resuming normal operations [Thu May 24 23:27:13 2007] [notice] Server built: Jan 9 2007 23:17:20 [Thu May 24 23:27:13 2007] [notice] Parent: Created child process 5620 [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 31. [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 36. [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 80. [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 85. [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 124. [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 129. [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 162. [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 167. [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 31. [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 36. [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 80. [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 85. [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 124. [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 129. [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 162. [Thu May 24 23:27:13 2007] [warn] Useless use of AllowOverride in line 167. [Thu May 24 23:27:13 2007] [notice] Child 5620: Child process is running [Thu May 24 23:27:13 2007] [notice] Child 5620: Acquired the start mutex. [Thu May 24 23:27:13 2007] [notice] Child 5620: Starting 250 worker threads. [Thu May 24 23:27:13 2007] [notice] Child 5620: Starting thread to listen on port 80. The Apache would have to give Start Ok, instead it gives this error. Why? Fabbris Pierluigi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reload keystore
If I add a new client-certificate to the keystore, how can I force Tomcat to reload the keystore without restarting tomcat? Can I set a timer to say tomcat has to reload the keystore every xx-seconds? Or is there any way to program this? Thank you for your help Sam - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Native Library Breaks SSL
Also, use tcnative-1.1.9. I also encountered problems with 1.1.10. --Lakshmi -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 7:38 AM To: Tomcat Users List Subject: RE: Tomcat Native Library Breaks SSL > From: Mike Grandmaison [mailto:[EMAIL PROTECTED] > Subject: Tomcat Native Library Breaks SSL > > Windows XP > Tomcat 5.5.23 > http://tomcat.heanet.ie/native/1.1.10/binaries/win32/ > > I followed the openssl instructions at > http://www.galatea.com/flashguides/tomcat-ssl-5-unix > to setup my ssl. You might try following the real documentation: http://tomcat.apache.org/tomcat-5.5-doc/apr.html#HTTPS - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web application receives request parameters sent to another application on Tomcat 6
On 5/28/07, Dejan Krsmanovic <[EMAIL PROTECTED]> wrote: We have two applications running on the same Tomcat instance. These two applications are used by completely different people and one of them has much higher traffic than another one. Recently we have upgraded to Tomcat 6.10 and start experiencing strange behavior. After a lot of debugging, we have noticed that the first application sometimes receives request parameters sent to second application. Parameters are mixed-up, that is, request.getParameterMap() returns parameters from both applications. This is not happening all the time (probably because one of these applications is used rarely), but we had this situation several times a day. After some time we have decided to return back to Tomcat 5.5.x and the problems stopped. What can be reason for such problems? Is it possible that Tomcat re-uses some objects internally without clearing them up? It is hard to tell what could be the problem without knowing full details of how the 2 projects Host, Context etc are configured. Are they at the ROOT context, or other Context? Are they on a virtual host or all of them on localhost? Is crossContext set to true or false? relevant sections of server.xml , Context xml files will be useful. Regards, Dejan -Regards Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring Tomcat 5.5 and IIS 6
Hi Chuck, Thanks for that. I've now downloaded and attempted to set up the jk connector - I think I've got a little further but I'm still not seeing the page that should be served up by Tomcat. I've set up a simple set of config files (essentially just grabbing them from the jakarta how-to and changing the paths), and have attempted to visit www.mydomain.com/main.jsp however I'm still getting a 404. I'm trying to map mydomain.com/ to the tomcat context 'ols-web' but this is the bit that doesn't seem to be working. The isapi_redirect.log indicates that that requests are being forwarded to tomcat, I think: = [Mon May 28 17:08:16 2007] [3972:2044] [debug] jk_uri_worker_map.c (601): Attempting to map context URI '/*=worker1' source 'uriworkermap' [Mon May 28 17:08:16 2007] [3972:2044] [debug] jk_uri_worker_map.c (616): Found a wildchar match '/*=worker1' [Mon May 28 17:08:16 2007] [3972:2044] [debug] jk_isapi_plugin.c (1270): check if [/main.jsp] is points to the web-inf directory [Mon May 28 17:08:16 2007] [3972:2044] [debug] jk_isapi_plugin.c (1287): [/main.jsp] is a servlet url - should redirect to worker1 = ...but possibly not to the right context. Any ideas? My config files are shown below... Cheers, Richard workers.properties: == # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=XXX.XXX.220.132 worker.worker1.port=8009 worker.worker1.mount=/ols-web /ols-web/* == uriworkermap.properties: == /*=worker1 == isapi_redirect.properties: == # Configuration file for the Jakarta ISAPI Redirector # The path to the ISAPI Redirector Extension, relative to the website # This must be in a virtual directory with execute privileges extension_uri=/jakarta/isapi_redirect.dll # Full path to the log file for the ISAPI Redirector log_file=d:\tomcat 5.5\logs\isapi_redirect.log # Log level (debug, info, warn, error or trace) log_level=debug # Full path to the workers.properties file worker_file=d:\tomcat 5.5\conf\workers.properties # Full path to the uriworkermap.properties file worker_mount_file=d:\tomcat 5.5\conf\uriworkermap.properties == Caldarale, Charles R wrote: > >> From: rcgeorge23 [mailto:[EMAIL PROTECTED] >> Subject: Configuring Tomcat 5.5 and IIS 6 >> >> I downloaded jakarta-tomcat-connectors-jk2.0.4-win32-IIS.zip, > > Oops. The mod_jk2 package has been deprecated for over two years; you > should be using mod_jk. > > - 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 start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Configuring-Tomcat-5.5-and-IIS-6-tf3823529.html#a10838586 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding JSP compiler from Tomcat
On 5/28/07, lightbulb432 <[EMAIL PROTECTED]> wrote: Thanks for your response. For the first of the two options you presented, what exactly happens during the web.xml autogeneration? Will it simply change only the elements but leave everything else as is in my current web.xml, including ? Is there anything else it changes? It depends on how you set up your Ant build to use Jasper. In any case, the original web.xml gets modified , the original mappings etc will be retained, the new JSP class mappings will be ~appended~ , so you won't lose anything that was already there. If you don't want your original web.xml to be modified, using Ant you can make an intermediate copy of your project, and run Jasper on that intermediate copy, this way the web.xml of the source files will not change - which is ideal for development environment settings. Try it on a separate, small project to see how it works and what works for you. The less it changes, the more my development (pre-deployment) would be as close to production as possible, I'm guessing... Thanks. -Regards Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6.0.13 issue with web.xml generated by Eclipse
I allow Eclipse to generate and update my web.xml file for me as part of a dynamic web project. When it generates the web.xml, it uses project facets to add namespaces to my web.xml file as below: http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:web="http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; id="WebApp_ID" version="2.5"> TestServ TestServ com.llamabuy.servlet.TestServ I found that this causes Tomcat to be unable to load the project, returning the following exception: May 28, 2007 11:07:29 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class |CONFIG_LISTEN_CLASS| java.lang.ClassNotFoundException: |CONFIG_LISTEN_CLASS| at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3770 It seems I would need to change something in Tomcat to allow it to handle the web.xml context above. Any help would be appreciated. Sincerely, Michael [EMAIL PROTECTED]
Re: Tomcat Native Library Breaks SSL
You might try following the real documentation: http://tomcat.apache.org/tomcat-5.5-doc/apr.html#HTTPS - Chuck Thank you, actually I found an old message from you when I searched the archive and that is how I thought to remove the native library in order to get my install to work again. I did take a look at that documentation and that is what I based my conf/server.xml file on but it comes up with the same problem where the browsers sits there until it gives up. The documentation that you point out, however, does not show how to generate all the self signed certs using openssl so that documentation on its own isn't very useful and even the piece that is supposed to work isn't working for me. It is too bad that there isn't good debugging output for ssl or a warning on the APR documentation that details this issue. Seems I'll have to dig into the source to figure out what the problem is. I think now that I know that it is an issue I'll just not bother with the native library and use tomcat without it, if my performance does become a problem then I guess I'll jump into the source at that point. MG Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web application receives request parameters sent to another application on Tomcat 6
Rashmi Rubdi wrote: > It is hard to tell what could be the problem without knowing full > details of how the 2 projects Host, Context etc are configured. > > Are they at the ROOT context, or other Context? No, they are on different contexts (not ROOT). > > Are they on a virtual host or all of them on localhost? Both applications are on localhost. Virtual hosts are not used. > > Is crossContext set to true or false? crossContext attribute is not set, thus I assume it should be false by default. > > relevant sections of server.xml , Context xml files will be useful. > Server.xml has default values (we didn't changed it). Both applications have their own context.xml files specified. There is nothing special in it; reloadable is set to false and both applications have data source defined as resource. Just to mention - one of these two applications is accessed by users with browsers only while second application is accessed by both browsers and hand held devices (Pocket PCs). The devices use .Net application which sends POST request with data in one large String. When servlet on the second application receives request from device, it sometimes contains additional request parameters that are not sent by device. We have discovered that these parameter names are used in the second application, that is parameters from both applications are somehow mixed-up. We suspect that problem arises when both applications are used at the same time, but we could not verify it (we have just analyzed log files). As I said, we had this problem on Tomcat 6.10 only. Tomcat 5.5.x works fine with the same context configuration. Regards, Dejan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding JSP compiler from Tomcat
Well, you didn't say what version of Tomcat you're using. Those files do indeed exist, in Tomcat 5.5. For Tomcat 6, in the lib directory you'll see 3 Jasper jars. Try removing those. I don't know if it'll cause any problems, but you'll only save a couple of MB of disk space, and no runtime memory (since you're not using those classes anyway), and you'll have to maintain your own custom Tomcat install. -- Len On 5/28/07, lightbulb432 <[EMAIL PROTECTED]> wrote: I can't seem to find either of those two files in the Tomcat 6 distribution...interesting. Bill Barker-2 wrote: > > > "lightbulb432" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> >> The JSP spec says that if you precompile JSPs you can reduce the JSP >> container footprint by excluding the JSP compiler. How can this be done >> in >> Tomcat? > > You should be able to remove jasper-compiler.jar and > jasper-compiler-jdt.jar > from $CATALINA_HOME/common/lib (for a whopping savings of 1.5MB). I > haven't > tested it, so your milage may very :). > >> >> Thanks. >> -- >> View this message in context: >> http://www.nabble.com/Excluding-JSP-compiler-from-Tomcat-tf3817429.html#a10807251 >> Sent from the Tomcat - User mailing list archive at Nabble.com. >> >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Excluding-JSP-compiler-from-Tomcat-tf3817429.html#a10837532 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web application receives request parameters sent to another application on Tomcat 6
It is possible that Tomcat resuses request objects. I'm not sure it does, but it might. For that reason, you're only allowed to use the request object in your servlet's doGet or doPost method, you can't stash it somewhere (e.g. in the HttpSession) and access it later. (This is mentioned in the servlet spec.) Of course I don't know if that's your problem, it's just something that came to mind. -- Len On 5/28/07, Dejan Krsmanovic <[EMAIL PROTECTED]> wrote: We have two applications running on the same Tomcat instance. These two applications are used by completely different people and one of them has much higher traffic than another one. Recently we have upgraded to Tomcat 6.10 and start experiencing strange behavior. After a lot of debugging, we have noticed that the first application sometimes receives request parameters sent to second application. Parameters are mixed-up, that is, request.getParameterMap() returns parameters from both applications. This is not happening all the time (probably because one of these applications is used rarely), but we had this situation several times a day. After some time we have decided to return back to Tomcat 5.5.x and the problems stopped. What can be reason for such problems? Is it possible that Tomcat re-uses some objects internally without clearing them up? Regards, Dejan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Installing ISAPI redirect for IIS
I've got a Windows 2000 server running IIS (IIS 5.x) and I've installed Apache Tomcat 6.0. I want to install the ISAPI redirector. I've accessed the following instructions: http://tomcat.apache.org/connectors-doc-archive/jk2/jk2/installhowto.html but according to one post I've read on this forum, redirector2.dll is no longer actively supported. There is a download at: http://tomcat.apache.org/download-connectors.cgi for a redirect.dll, but I haven't seen any instructions for implementing it. Can I simply follow the instructions at the above installhowto.html site for redirect.dll? Is there an even better way of doing this? === Al - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using servlet and mysql
Hi, I would like to access mysql database from a servlet but I'm not sure what to initialize for the String connectionURL marked as "jdbc:mysql://localhost:/xxx" in the program below. I got this program from the internet which I would like to run in my computer. Can anyone please explain to me what the parameters "" and "xxx" should be? Yours Sincerely, TEH Following is part of the program: ... public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ response.setContentType("text/html"); PrintWriter pw = response.getWriter(); String connectionURL = "jdbc:mysql://localhost:/xxx"; Connection connection=null; try{ String username = request.getParameter("username"); String password = request.getParameter("password"); pw.println(username); pw.println(password); Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL, "root", "root"); PreparedStatement pst = connection.prepareStatement ("insert into login_table values(?,?)"); ... - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.
Re: Using servlet and mysql
Hi, would be ur database port, xxx will be ur database name HTH FooShyn Teh Noranis Mohd Aris wrote: Hi, I would like to access mysql database from a servlet but I'm not sure what to initialize for the String connectionURL marked as "jdbc:mysql://localhost:/xxx" in the program below. I got this program from the internet which I would like to run in my computer. Can anyone please explain to me what the parameters "" and "xxx" should be? Yours Sincerely, TEH Following is part of the program: ... public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ response.setContentType("text/html"); PrintWriter pw = response.getWriter(); String connectionURL = "jdbc:mysql://localhost:/xxx"; Connection connection=null; try{ String username = request.getParameter("username"); String password = request.getParameter("password"); pw.println(username); pw.println(password); Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL, "root", "root"); PreparedStatement pst = connection.prepareStatement ("insert into login_table values(?,?)"); ... - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.0/821 - Release Date: 5/27/2007 3:05 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using servlet and mysql
Thank you so much for the reply. I've put "jdbc:mysql://localhost:8080/teh but I got the error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver. I'm very new to using mysql database and servlet. Can you please explain to me how to create the database name and its fields? Should I install any driver? How can it be done? Please help. Thank you. Yours Sincerely, TEH Foo Shyn <[EMAIL PROTECTED]> wrote: Hi, would be ur database port, xxx will be ur database name HTH FooShyn Teh Noranis Mohd Aris wrote: > Hi, > > I would like to access mysql database from a servlet but I'm not sure what to > initialize for the String connectionURL marked as > "jdbc:mysql://localhost:/xxx" in the program below. I got this program > from the internet which I would like to run in my computer. Can anyone please > explain to me what the parameters "" and "xxx" should be? > > Yours Sincerely, > TEH > > Following is part of the program: > ... > public void doPost(HttpServletRequest request, HttpServletResponse > response) throws ServletException, IOException{ > response.setContentType("text/html"); > PrintWriter pw = response.getWriter(); > String connectionURL = "jdbc:mysql://localhost:/xxx"; > Connection connection=null; > try{ > String username = request.getParameter("username"); > String password = request.getParameter("password"); > pw.println(username); > pw.println(password); > Class.forName("com.mysql.jdbc.Driver").newInstance(); > connection = DriverManager.getConnection(connectionURL, "root", "root"); > PreparedStatement pst = connection.prepareStatement > ("insert into login_table values(?,?)"); > ... > > > - > Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, > when. > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.472 / Virus Database: 269.8.0/821 - Release Date: 5/27/2007 3:05 > PM > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Shape Yahoo! in your own image. Join our Network Research Panel today!
Re: Using servlet and mysql
On Tuesday 29 May 2007 01:14, Teh Noranis Mohd Aris wrote: > Thank you so much for the reply. I've put "jdbc:mysql://localhost:8080/teh > but I got the error java.lang.ClassNotFoundException: > com.mysql.jdbc.Driver. I'm very new to using mysql database and servlet. > Can you please explain to me how to create the database name and its > fields? Should I install any driver? How can it be done? Please help. Thank > you. > > Yours Sincerely, > TEH > > Foo Shyn <[EMAIL PROTECTED]> wrote: > Hi, > > would be ur database port, xxx will be ur database name > > HTH > FooShyn > > Teh Noranis Mohd Aris wrote: > > Hi, > > > > I would like to access mysql database from a servlet but I'm not sure > > what to initialize for the String connectionURL marked as > > "jdbc:mysql://localhost:/xxx" in the program below. I got this > > program from the internet which I would like to run in my computer. Can > > anyone please explain to me what the parameters "" and "xxx" should > > be? > > > > Yours Sincerely, > > TEH > > > > Following is part of the program: > > ... > > public void doPost(HttpServletRequest request, HttpServletResponse > > response) throws ServletException, IOException{ > > response.setContentType("text/html"); > > PrintWriter pw = response.getWriter(); > > String connectionURL = "jdbc:mysql://localhost:/xxx"; > > Connection connection=null; > > try{ > > String username = request.getParameter("username"); > > String password = request.getParameter("password"); > > pw.println(username); > > pw.println(password); > > Class.forName("com.mysql.jdbc.Driver").newInstance(); > > connection = DriverManager.getConnection(connectionURL, "root", "root"); > > PreparedStatement pst = connection.prepareStatement > > ("insert into login_table values(?,?)"); > > ... > > > > > > - > > Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's > > on, when. > > > > > > > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.472 / Virus Database: 269.8.0/821 - Release Date: 5/27/2007 > > 3:05 PM > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > Shape Yahoo! in your own image. Join our Network Research Panel today! There are many great tutorials on the web on how to do this, here is a url with the basic servlet code: http://www.cs.unc.edu/Courses/comp118/docs/lessons/java/java_jdbc/jdbcServletMysql.html That page however doesn't tell you that you need to place the mysql driver(which should be a jar file) in your web application's WEB-INF/lib folder. Good Luck, Zack - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Netbeans Project... WildCat
Johnny Kewl wrote: > + One can dump the src into a Netbeans project, click compile and you have a > working Tomcat. Great. But you have no guarantee it will behave the same way as Tomcat built with the standard build script. It should be the same but be prepared for some odd, unexpected errors - probably around classloader issues. > + That means one can run it in debug, and watch it working from the inside. You can do this with the standard build. Both Eclispe and NetBeans support this. see http://tomcat.apache.org/faq/development.html Providing you configure the appropriate source files you can debug any combination of Tomcat, you app or any library used by Tomcat or your app. > I havent had a chance to test it yet, but where I'm trying to get to is the > ability to debug from servlet straight into Tomcat source. This should be standard out of the box functionality. You shouldn't need any extras to get this working. You don't with Eclipse as your dev environment and I see no reason for Netbeans to be any different. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unconnected sockets not implemented
Nencho Lupanov wrote: > any idea? OS? Tomcat version? Steps you followed to configure SSL? Full stack trace? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache2.2.4 with tomcat 6.0 and module_jk2.2.4.so error
Fabbris Pierluigi wrote: > Thank Bill, where I can find the patch? I've Apache on Windows xp. :-( The point Bill was making is there isn't any such patch and perhaps you would like to write one. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing ISAPI redirect for IIS
Al Sparks wrote: > Is there an even better way of doing this? http://tomcat.apache.org/connectors-doc/reference/iis.html - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using servlet and mysql
Hi, You'll need to get the MySQL database driver and put them in the {catalina_home}\common\lib folder. The driver can be easily obtained through MySQL site. BTW, as far as i know, the default port for MySQL database is 3306, so you might wanna change that. 8080 is for Tomcat, not the database. Seems like not many new users of connection pooling went through Apache's documents. Please don't waste their effort, take a look at it before you start to attempt anything. HTH, FooShyn Teh Noranis Mohd Aris wrote: Thank you so much for the reply. I've put "jdbc:mysql://localhost:8080/teh but I got the error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver. I'm very new to using mysql database and servlet. Can you please explain to me how to create the database name and its fields? Should I install any driver? How can it be done? Please help. Thank you. Yours Sincerely, TEH Foo Shyn <[EMAIL PROTECTED]> wrote: Hi, would be ur database port, xxx will be ur database name HTH FooShyn Teh Noranis Mohd Aris wrote: Hi, I would like to access mysql database from a servlet but I'm not sure what to initialize for the String connectionURL marked as "jdbc:mysql://localhost:/xxx" in the program below. I got this program from the internet which I would like to run in my computer. Can anyone please explain to me what the parameters "" and "xxx" should be? Yours Sincerely, TEH Following is part of the program: ... public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ response.setContentType("text/html"); PrintWriter pw = response.getWriter(); String connectionURL = "jdbc:mysql://localhost:/xxx"; Connection connection=null; try{ String username = request.getParameter("username"); String password = request.getParameter("password"); pw.println(username); pw.println(password); Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL, "root", "root"); PreparedStatement pst = connection.prepareStatement ("insert into login_table values(?,?)"); ... - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.0/821 - Release Date: 5/27/2007 3:05 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Shape Yahoo! in your own image. Join our Network Research Panel today! No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.0/821 - Release Date: 5/27/2007 3:05 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web application receives request parameters sent to another application on Tomcat 6
I am aware of that. We are printing request parameters inside Servlet's doPost method. Dejan Len Popp wrote: > It is possible that Tomcat resuses request objects. I'm not sure it > does, but it might. For that reason, you're only allowed to use the > request object in your servlet's doGet or doPost method, you can't > stash it somewhere (e.g. in the HttpSession) and access it later. > (This is mentioned in the servlet spec.) Of course I don't know if > that's your problem, it's just something that came to mind. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jasper compiler crashes
When I try to precompile I get a null pointer exception deep in .servlet.JasperLoader.loadClass. Happens for almost all of my .jsps. They work fine with incremental compile. They do use tags defined with JSTL .tag files. Tags call tags. tomcat-6.0.10-src If anyone knows of decent docs on precompiling Jasper please let me know. (I know about jasper-howto.html). (And there is an underlying problem that Jasper is *extremely* slow to compile. I can compile and build all of Tomcat itself from source in less time than it takes to compile one medium sized JSP (about 30 seconds). It is difficult to imagine how even the sloppiest code could run that slowly. Something is wrong. 100% CPU.) Ant:- Stack trace:- May 29, 2007 4:20:38 PM org.apache.jasper.JspC processFile SEVERE: ERROR-the file '\token\autocrudtokentest.jsp' generated the following general exception: java.lang.NullPointerException at sun.misc.URLClassPath$3.run(URLClassPath.java:316) at java.security.AccessController.doPrivileged(Native Method) at sun.misc.URLClassPath.getLoader(URLClassPath.java:313) at sun.misc.URLClassPath.getLoader(URLClassPath.java:290) at sun.misc.URLClassPath.getResource(URLClassPath.java:160) at java.net.URLClassLoader$1.run(URLClassLoader.java:192) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66) at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java: 598) at org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrappe r.java:221) at org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor .java:576) at org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor. java:50) at org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(T agFileProcessor.java:627) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386) at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392) at org.apache.jasper.compiler.Node$Root.accept(Node.java:489) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) at org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcesso r.java:645) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:190) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja va:566) at org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrappe r.java:212) at org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor .java:576) at org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor. java:50) at org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(T agFileProcessor.java:627) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386) at org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(T agFileProcessor.java:631) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386) at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392) at org.apache.jasper.compiler.Node$Root.accept(Node.java:489) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) at org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcesso r.java:645) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:190) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306) at org.apache.jasper.JspC.processFile(JspC.java:994) at org.apache.jasper.JspC.execute(JspC.java:1143) 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
Re: Using servlet and mysql
Dear All, I already put mysql database driver (jar file) in directory catalina_home\common\lib and changed 8080 to 3306 but I got the error "java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.ConnectException: Connection refused: connect". What should be the matter? I put the database name, teh in directory catalina_home\webapps\ROOT\. Is this correct? In which directory should I actually put the database name? Please help. I'm running out of time! Thank you so much. Yours Sincerely, TEH Foo Shyn <[EMAIL PROTECTED]> wrote: Hi, You'll need to get the MySQL database driver and put them in the {catalina_home}\common\lib folder. The driver can be easily obtained through MySQL site. BTW, as far as i know, the default port for MySQL database is 3306, so you might wanna change that. 8080 is for Tomcat, not the database. Seems like not many new users of connection pooling went through Apache's documents. Please don't waste their effort, take a look at it before you start to attempt anything. HTH, FooShyn Teh Noranis Mohd Aris wrote: > Thank you so much for the reply. I've put "jdbc:mysql://localhost:8080/teh > but I got the error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver. > I'm very new to using mysql database and servlet. Can you please explain to > me how to create the database name and its fields? Should I install any > driver? How can it be done? Please help. Thank you. > > Yours Sincerely, > TEH > > Foo Shyn wrote: > Hi, > > would be ur database port, xxx will be ur database name > > HTH > FooShyn > > Teh Noranis Mohd Aris wrote: > >> Hi, >> >> I would like to access mysql database from a servlet but I'm not sure what >> to initialize for the String connectionURL marked as >> "jdbc:mysql://localhost:/xxx" in the program below. I got this program >> from the internet which I would like to run in my computer. Can anyone >> please explain to me what the parameters "" and "xxx" should be? >> >> Yours Sincerely, >> TEH >> >> Following is part of the program: >> ... >> public void doPost(HttpServletRequest request, HttpServletResponse >> response) throws ServletException, IOException{ >> response.setContentType("text/html"); >> PrintWriter pw = response.getWriter(); >> String connectionURL = "jdbc:mysql://localhost:/xxx"; >> Connection connection=null; >> try{ >> String username = request.getParameter("username"); >> String password = request.getParameter("password"); >> pw.println(username); >> pw.println(password); >> Class.forName("com.mysql.jdbc.Driver").newInstance(); >> connection = DriverManager.getConnection(connectionURL, "root", "root"); >> PreparedStatement pst = connection.prepareStatement >> ("insert into login_table values(?,?)"); >> ... >> >> >> - >> Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, >> when. >> >> >> >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.472 / Virus Database: 269.8.0/821 - Release Date: 5/27/2007 >> 3:05 PM >> >> > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > Shape Yahoo! in your own image. Join our Network Research Panel today! > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.472 / Virus Database: 269.8.0/821 - Release Date: 5/27/2007 3:05 > PM > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.