Cannot Start Tomcat Windows Service_01/21/24
I receive the Windows error below every time I try to start the Tomcat Windows service after modifying the server.xml file to require TLS. I used the instructions below and other online sources to find the proper syntax to modify server.xml. Nothing has worked. I used the keytool commands to create my own keystore and self-signed certificate. Instructions https://tomcat.apache.org/tomcat-9.0-doc/ssl-howto.html Key Information keytool -genkeypair -alias -keyalg RSA -validity 1095 -keystore "C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9.0.85\conf\Certificates\" Software Information OS: Windows 10 and Windows Server 2019 Java: JDK (build 1.8.0_391-b13) Apache Tomcat: Version 9.0.85
ava.lang.IllegalArgumentException: Document base xxxx does not exist or is not a readable directory
Having trouble starting up the application on a new dev AWS server. Tomcat says…. SEVERE: Error initializing static Resources java.lang.IllegalArgumentException: Document base /home/testuser/resources/Raptor does not exist or is not a readable directory But if you see below folder/permissions even after 777 it still says not a readable directory. drwxr-xr-x. 4 root root35 Apr 16 14:45 /home/ drwxrwxrwx. 3 root tomcat 23 Apr 16 13:26 /home/testuser drwxrwxrwx. 3 root tomcat 20 Apr 16 13:26 /home/ testuser/resources/ drwxrwxrwx. 7 root tomcat 170 Apr 16 13:27 /home/testuser /resources/Raptor/ If I change the document base to /user/share/tomcat/webapps this error goes away. Also, we have been using this application for 2 years and having trouble setting up on new servers. Any clues to troubleshoot is appreciated. Thanks!
Re: ava.lang.IllegalArgumentException: Document base xxxx does not exist or is not a readable directory
Thank you Olaf! 777 was given as last resort to see if this is really file permissions issue. Because of copy/paste and renaming to a dummy folder name, there was an extra space so please ignore. testuser is not an actual user but a repository for web files so tomcat user can access it. The reason why we did not keep www files in %tomcat% because during upgrades it gets wiped. Regards, Usha Customer Support Engineer supp...@xcaptor.com Captivate. Engage. On Tue, Apr 17, 2018 at 3:53 AM, Olaf Kock wrote: > On 16.04.2018 22:06, Support wrote: > >> SEVERE: Error initializing static Resources >> >> java.lang.IllegalArgumentException: Document base >> /home/testuser/resources/Raptor >> does not exist or is not a readable directory >> > > A few things are slightly off of my expectations: > > But if you see below folder/permissions even after 777 it still says not a >> readable directory. >> > > it's quite bad practice to open up to 777 > > drwxr-xr-x. 4 root root35 Apr 16 14:45 /home/ >> drwxrwxrwx. 3 root tomcat 23 Apr 16 13:26 /home/testuser >> drwxrwxrwx. 3 root tomcat 20 Apr 16 13:26 /home/ testuser/resources/ >> drwxrwxrwx. 7 root tomcat 170 Apr 16 13:27 /home/testuser >> /resources/Raptor/ >> > > If I change the document base to /user/share/tomcat/webapps this error goes >> > away. > > * There are weird spaces in the /home/ directories - I'm assuming this > comes from copy/paste and you rather mean those directories without the > spaces. But there's a small chance that you're hiding issues through > copy/paste/anonymize > * commonly, a directory /home/testuser would belong to a user named > "testuser", not to root. Is there a reason why it should be owned by root? > Is "testuser" an actual user account? > * What is the user account that tomcat is running under? What are the > permissions/owner on /usr/share/tomcat/webapps ? (note /usr/ vs /user/ - I > assume a typo in your statement) > > Olaf > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Using F5 to load balance tomcat servers
We are having trouble gettings this work over 8080. Client -->F5:8080> does not connect to Tomcat server:8080. Client -->F5:8080> connects fine to Tomcatserver:8080. tcpdump on f5 reveals something about incorrect checksum. visitor.aaa.com.webcache > 172.24.1.26.10970: Flags [.], cksum 0x4201 (incorrect -> 0xedac), seq 2, ack 524, win 4902, length 0 out slot1/tmm1 lis=/Common/si-xcaptor-external-8080 Any suggestions are appreciated. Regards, Usha
Re: Using F5 to load balance tomcat servers
Chris, sorry for the typo! Can't believe I did it. Client -->F5:8080> does not connect to Tomcat-server1:8080. Client -->connects fine to Tomcat-server1:8080. Client can connect fine directly to tomcat over 8080 but not through f5. tcpdump on f5 reveals something about incorrect checksum from tomcat server. visitor.aaa.com.webcache > 172.24.1.26.10970: Flags [.], cksum 0x4201 (incorrect -> 0xedac), seq 2, ack 524, win 4902, length 0 out slot1/tmm1 lis=/Common/si-xcaptor-external-8080 Robert, could you please give more details on tomcat optional reason code? Thank you! Regards, Regards, Usha On Mon, Jul 2, 2018 at 4:53 PM, Support wrote: > We are having trouble gettings this work over 8080. > > Client -->F5:8080> does not connect to Tomcat server:8080. > > Client -->F5:8080> connects fine to Tomcatserver:8080. > > tcpdump on f5 reveals something about incorrect checksum. > > visitor.aaa.com.webcache > 172.24.1.26.10970: Flags [.], cksum 0x4201 > (incorrect -> 0xedac), seq 2, ack 524, win 4902, length 0 out slot1/tmm1 > lis=/Common/si-xcaptor-external-8080 > > Any suggestions are appreciated. > > Regards, > > Usha > > >
Updating tomcat 7 to 9 got problems
Hi sir, I am using Tomcat version 7.2 for my application whenever in install tomcat I use the command sudo yum install tomcat default it was installing tomcat version 7.2 I want to update to 9 I was unable to run tomcat 9 I followed these steps https://linuxize.com/post/how-to-install-tomcat-9-on-centos-7/ it is not working my folder structure is usr/share/tomcat Regards, Sandeep Raghav Customer Support Engineer supp...@xcaptor.com Captivate. Engage.
SSL certificate error in Tomcat 9
Hi Sir, I am using tomcat 9 for my application. I got an error with the .keystore file for SSL certificate this is my code is this still valid? in tomcat 9 Logs: 12-Jun-2019 14:19:03.973 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxThreads' to '150' did not find a matching property. 12-Jun-2019 14:19:03.973 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'SSLEnabled' to 'true' did not find a matching property. 12-Jun-2019 14:19:03.973 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'clientAuth' to 'false' did not find a matching property. 12-Jun-2019 14:19:03.973 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'sslProtocol' to 'TLS' did not find a matching property. 12-Jun-2019 14:19:03.973 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'keystoreFile' to '/home/myPP/.keystore' did not find a matching property. 12-Jun-2019 14:19:03.973 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'keystorePass' to 'PASSWORD' did not find a matching property. 12-Jun-2019 14:19:03.974 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'sslEnabledProtocols' to 'TLSv1.2' did not find a matching property. Regards, Sandeep Raghav Customer Support Engineer supp...@xcaptor.com Captivate. Engage.
Sha-256 encrypted password not working
Hi Sir, I am using tomcat 9 for my application, I got an issue with a password while I am using normal password it is not working when I give the encrypted password it is working without any error Logs I am getting j avax.servlet.request.key_size:128 javax.servlet.request.ssl_session_mgr:org.apache.tomcat.util.net.jsse.JSSESupport@23c2d7e5 javax.servlet.request.cipher_suite:TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 Thanks & Regards, Sandeep Vemuri.
Password is not working properly
Hi Sir, I am using tomcat 9 for my application. For my admin page, I have a username and password in conf/tomcat-user.xml. Using digest.sh, I encrypted my password(sha-256). password: Password encrypted: 5er5akakfkd556546adnfjbkklndkfgbjdb Now, I am using my password its not working, if I give the encrypted it is working fine. but it is working normaly in tomcat 7 perfectly without any error. Logs: 23 Jul 2019 14:44:56,742 TRACE ConsoleDataRetriever [https-jsse-nio-9443-exec-7] request parameters:q:HOME 23 Jul 2019 14:44:56,743 TRACE ConsoleDataRetriever [https-jsse-nio-9443-exec-7] request attributes:org.apache.tomcat.util.net.secure_protocol_version:TLSv1.2 javax.servlet.request.key_size:128 javax.servlet.request.ssl_session_mgr:org.apache.tomcat.util.net.jsse.JSSESupport@23c2d7e5 javax.servlet.request.cipher_suite:TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 javax.servlet.request.ssl_session_id:5d371d2118d18dbbe825330d236a3d7ea0f090f12385c0ca9b4146afe2e5700d 23 Jul 2019 14:44:56,743 DEBUG ConsoleDataRetriever [https-jsse-nio-9443-exec-7] Checking for existing messages, if none - create a new message map 23 Jul 2019 14:44:56,743 TRACE CaptorAdminUtil [https-jsse-nio-9443-exec-7] No status messages were found in the request, created a new map. Message Map:{} 23 Jul 2019 14:44:56,744 DEBUG ConsoleDataRetriever [https-jsse-nio-9443-exec-7] Currently the view is set to: /error500.jsp 23 Jul 2019 14:44:56,750 DEBUG ConsoleDataRetriever [https-jsse-nio-9443-exec-7] query received in request:HOME 23 Jul 2019 14:44:56,750 DEBUG ConsoleDataRetriever [https-jsse-nio-9443-exec-7] request for retrieving Dashboard data Regards, Sandeep Raghav Customer Support Engineer supp...@xcaptor.com Captivate. Engage.
Re: Password is not working properly
Hi sir, if I am using memory realm tomcat 9 is not working while restarting tomcat. Regards, Sandeep Raghav Customer Support Engineer supp...@xcaptor.com Captivate. Engage. On Thu, Jul 25, 2019 at 8:11 PM Mark Thomas wrote: > On 25/07/2019 15:23, Support wrote: > > Hi Sir, > > > > I am using tomcat 9 for my application. For my admin page, I have a > > username and password in conf/tomcat-user.xml. > > Using digest.sh, I encrypted my password(sha-256). > > > > password: Password > > encrypted: 5er5akakfkd556546adnfjbkklndkfgbjdb > > > > Now, I am using my password its not working, if I give the encrypted it > is > > working fine. but it is working normaly in tomcat 7 perfectly without any > > error. > > You need to configure the appropriate Realm to use digested passwords. > > Mark > > > > > > > > Logs: > > > > 23 Jul 2019 14:44:56,742 TRACE ConsoleDataRetriever > > [https-jsse-nio-9443-exec-7] request parameters:q:HOME > > 23 Jul 2019 14:44:56,743 TRACE ConsoleDataRetriever > > [https-jsse-nio-9443-exec-7] request > > attributes:org.apache.tomcat.util.net.secure_protocol_version:TLSv1.2 > > javax.servlet.request.key_size:128 > > > javax.servlet.request.ssl_session_mgr:org.apache.tomcat.util.net.jsse.JSSESupport@23c2d7e5 > > javax.servlet.request.cipher_suite:TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 > > > javax.servlet.request.ssl_session_id:5d371d2118d18dbbe825330d236a3d7ea0f090f12385c0ca9b4146afe2e5700d > > 23 Jul 2019 14:44:56,743 DEBUG ConsoleDataRetriever > > [https-jsse-nio-9443-exec-7] Checking for existing messages, if none - > > create a new message map > > 23 Jul 2019 14:44:56,743 TRACE CaptorAdminUtil > [https-jsse-nio-9443-exec-7] > > No status messages were found in the request, created a new map. Message > > Map:{} > > 23 Jul 2019 14:44:56,744 DEBUG ConsoleDataRetriever > > [https-jsse-nio-9443-exec-7] Currently the view is set to: /error500.jsp > > 23 Jul 2019 14:44:56,750 DEBUG ConsoleDataRetriever > > [https-jsse-nio-9443-exec-7] query received in request:HOME > > 23 Jul 2019 14:44:56,750 DEBUG ConsoleDataRetriever > > [https-jsse-nio-9443-exec-7] request for retrieving Dashboard data > > > > Regards, > > Sandeep Raghav > > > > Customer Support Engineer > > supp...@xcaptor.com > > Captivate. Engage. > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Tomcat 9 admin role password issue
Hi Sir, I try to set up a new Tomcat 9.0.11 with manager-GUI enabled and with hashed passwords in tomcat-user.xml for manager login and I can log in into the manager-GUI BUT not with the real password but only the hashed password string. So it is likely that Tomcat uses the hashed password as a real password. So I don't know what to do. Please help! Thanks in advance In server.xml I add this Regards, Sandeep Raghav Customer Support Engineer supp...@xcaptor.com Captivate. Engage.
TR: pb redeploy with Tomcat 5.5.24
--- Hello, I encounter a problem when I redeploy my WAR with Tomcat. One of the used libraries throws an error when I try to redeploy my WAR. For information, I dont have the sources of this library. To around that I have to stop and start again Tomcat. Thats very strange because I have no problem with Tomcat 5.0 or Tomcat 5.5.4. The file server.xml is the same for Tomcat 5.5.4 and Tomcat 5.5.23. I dont understand why there is a difference between redeploy a WAR with Tomcat 5.5.4 and Tomcat 5.5.23. Is somebody having an explanation? Moreover can somebody explain to me whats happens when Tomcat redeploys a WAR? Thanks in advanced for your help. Best regards, J. MEVEL Bonjour, Jai un souci quand jessaie de redéployer mon WAR avec Tomcat 5.5.23. Un message derreur propre à une des librairies que jutilise et dont je nai pas le code source, saffiche quand je fais un redeploy de mon WAR avec Tomcat 5.5.23. Du coup je suis obligée darrêter Tomcat et de le redémarrer pour que mon WAR se déploie correctement. Par contre je nai aucun problème avec Tomcat 5.0 ou Tomcat 5.5.4. Le server.xml de Tomcat 5.5.23 est le même que celui de Tomcat 5.5.4. Est-ce que quelquun aurait une idée sur lorigine du problème car je suis à court didée ? Que ce passe-t-il quand Tomcat redéploye un WAR ? Quy a-t-il comme différence entre Tomcat 5.5.4 et Tomcat 5.5.23 qui pourrait expliquer ce comportement différent ? Merci par avance pour votre aide. Cordialement, J. MEVEL
RE: TR: pb redeploy with Tomcat 5.5.24
Hello, 1) Here is the exact error : [ERROR] vxml - << 1-aXRnb21zLWFzMDFvLmlwcDkzLmN2ZjsxMjQ2MDI4ODk5NjA0OzAuMzA2ODg3MzM4ODIwMzE5MT Y= >> 8:--Uncaught Exception-- class javax.servlet.ServletException :: Problems during license check: license unreadable servlets.vxml.VxmlAbstractServlet.service(Unknown Source) servlets.vxml.VxmlAbstractServlet.service(Unknown Source) servlets.vxml.VxmlGlobalServletService.service(VxmlGlobalServletService.java :212) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:269) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:188) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:213) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:174) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127 ) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117 ) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :108) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java :895) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:689) java.lang.Thread.run(Thread.java:595) 2 ) Sorry for writting Tomcat 5.5.4. In fact it was Tomcat 5.5.04. Ive already tried with Tomcat 6 but Ive got the same problem. 3)Im using windows and Ill try with the "antiJARLocking" and "antiResourceLocking" parameters. Anywhere thank you for your answer, J. MEVEL -Message d'origine- De : Ognjen Blagojevic [mailto:ogn...@etf.bg.ac.rs] Envoyé : mardi 11 août 2009 16:52 À : Tomcat Users List Objet : Re: TR: pb redeploy with Tomcat 5.5.24 Hi, 1. What is the exact error being thrown? (copy paste the stack trace, if any) 2. Are you using Tomcat 5.5.23? Can you switch to fresh version of tomcat (6.0.20)? It is probably more stable and with less bugs. If you can't reproduce the problem on the latest version, that probably means that the bug is fixed, and that developers shouldn't spend time on it any more. BTW, you are mentioning version 5.5.4. That version does not exists. Latest version from 5.5 branch is 5.5.27. 3. What operating system are you using? If you are using windows, please take a look at http://tomcat.apache.org/tomcat-5.5-doc/config/context.html search for "antiJARLocking" and "antiResourceLocking" parameters. Regards, Ognjen support-disserto wrote: > --- version> > > > > > Hello, > > > > I encounter a problem when I redeploy my WAR with Tomcat. > > One of the used libraries throws an error when I try to redeploy my WAR. > > For information, I dont have the sources of this library. > > > > To around that I have to stop and start again Tomcat. > > Thats very strange because I have no problem with Tomcat 5.0 or Tomcat > 5.5.4. > > The file server.xml is the same for Tomcat 5.5.4 and Tomcat 5.5.23. > > > > I dont understand why there is a difference between redeploy a WAR with > Tomcat 5.5.4 and Tomcat 5.5.23. Is somebody having an explanation? > > Moreover can somebody explain to me whats happens when Tomcat redeploys a > WAR? > > > > Thanks in advanced for your help. > > > > Best regards, > > J. MEVEL > > > > - française >> --- > > > Bonjour, > > > > Jai un souci quand jessaie de redéployer mon WAR avec Tomcat 5.5.23. > > Un message derreur propre à une des librairies que jutilise et dont je > nai pas le code source, saffiche quand je fais un redeploy de mon WAR avec > Tomcat 5.5.23. > > > > Du coup je suis obligée darrêter Tomcat et de le redémarrer pour que mon > WAR se déploie correctement. > > Par contre je nai aucun problème avec Tomcat 5.0 ou Tomcat 5.5.4. > > Le server.xml de Tomcat 5.5.23 est le même que celui de Tomcat 5.5.4. > > >
Re: Troubles with JNDI data source configuration in Tomcat6 - mentioning H2 and Jetty
Hi, Im beginner in Linux. Can anyone help me develop in Linux? Thanks ChakTeylor On Sat, Feb 23, 2013 at 4:53 AM, Alexander Dümont wrote: > Hello Chris, > > Am 22.02.2013 02:39, schrieb Christopher Schultz: > >>> type="javax.sql.DataSource" name="jdbc/DSCarsAppDB" >>> factory="org.h2.jdbcx.**JdbcDataSourceFactory" >>> >> You probably don't need to specify this factory. If you don't specify >> this, you'll get Tomcat's built-in DBCP. >> > > That was absolutely true! In fact, removing the "factory"-parameter made > it work after all. > > > I know it seems excessive, but you can post your entire catalina.out >> (after you shut down Tomcat, remove catalina.out, and re-start)? Sometimes >> all that extra "junk" in the stack trace can help. >> > > This was an excellent tip. I used an untouched, local Tomcat installation > on my laptop, cleaned the logs, and deployed my faulty project and looked > into the "extra junk". There I found the following in between hibernate > initialization and configuration process: > > org.hibernate.cfg.**Configuration - Configured SessionFactory: null > > That gave it away! > > > Thanks, Chris, for giving me the direction! > > Have a nice weekend! > Bye, > Alex > > > --**--**- > To unsubscribe, e-mail: > users-unsubscribe@tomcat.**apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Session Replication
Hi, Im beginner in Linux. Can anyone help me develop my skills in Linux? Regards Chak Teylor On Sat, Feb 23, 2013 at 2:27 AM, Dhaval Jaiswal wrote: > I am creating cluster of 3 tomcats (Version 6) for session replication with > the following changes in server.xml > > channelSendOptions="6"/> > expireSessionsOnShutdown="false" >notifyListenersOnReplication="true" mapSendOptions="6"/> > className="org.apache.catalina.tribes.group.GroupChannel"> > className="org.apache.catalina.tribes.membership.McastService" > address="228.0.0.4" > port="45564" > frequency="500" > dropTime="1"/> > className="org.apache.catalina.tribes.transport.nio.NioReceiver" > address="auto" > port="4000" > selectorTimeout="5000" > timeout="6" > maxThreads="6"/> > > className="org.apache.catalina.tribes.transport.ReplicationTransmitter" > timeout="6"> > className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> > > > className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/> > > className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> > > className="org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor"/> > > > > filter=".*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt"/> > className="org.apache.catalina.ha.session.ClusterSessionListener"/> > > Opening the multicaste address (228.0.0.4) on firewall for 3 tomcats for > port 45564 and 4000. Is it correct ? > > > Please let me know if there is any change required in above configurations. > > > -- >
Re: Tomcat 6 access Network drive and interact with desktop
Hi, Im beginner in Linux. Can anyone help me develop my skills in Linux? Regards Chak Teylor On Fri, Feb 22, 2013 at 7:07 PM, ankur bajaj wrote: > Hi > > It opens windows from third party applications. thats what I mean by > "interact with desktop" > > > Regards > Ankur Bajaj > http://ankur-bajaj.blogspot.com > > > On Thu, Feb 21, 2013 at 3:49 PM, chris derham wrote: > > > > I mean I need a tomcat service which can interact with desktop and can > > > access network resources > > > > 'access network resources' is clear, but please define 'interact with > > the desktop' - what do you want the app to do exactly? > > > > Chirs > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > >
Re: tomcat 7.0.22 - allowTrace="false" not working
Hi, Im beginner in Linux. Can anyone help me develop my skills in Linux? Regards Chak Teylor On Fri, Feb 22, 2013 at 8:55 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Sachin, > > On 2/22/13 12:50 AM, Sachin wrote: > > It does access a JSP page. But even I was expecting to stop TRACE > > by specifically adding allowTrace="false". And as I've checked, > > tomcat 5 is giving me this behavior properly but not 7.0.22. > > Can you repeat your tests with a URL that hits a non-JSP servlet? > > - -chris > -BEGIN PGP SIGNATURE- > Version: GnuPG/MacGPG2 v2.0.17 (Darwin) > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEAREIAAYFAlEnasEACgkQ9CaO5/Lv0PCvIQCgm/cDEQinRzA1Sc+bBCtv9ZVs > caQAn07fybDnKjgscZE0tk98VeY52AxK > =Oz8b > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Webapp reload corrupts Tomcat
Hi, Im beginner in Linux. Can anyone help me develop my skills in Linux? Thanks Chak Teylor On Fri, Feb 22, 2013 at 9:32 PM, Daniel Mikusa wrote: > On Feb 22, 2013, at 12:09 AM, Kirill Ilyukhin wrote: > > > Hi! > > > > I have 5 servers with the following configuration: > >Windows Server 2008 R2 64-bit, > >Oracle JDK 1.7.0_11-b21 64-bit, > >Tomcat 7.0.35 running as a service. > > A few webapps are running perfectly well under the Tomcat until one of > > them is reloaded. > > > > Reload of a webapp (either by pressing [reload] on manager page or by > > changing web.xml file) makes Tomcat extremely unstable. > > The first (pre-production) server sporadically fails with absolutely > > no traces in log files or Windows event logs: > > These three symptoms can often mean different things. For example, if > it's not accepting connections then you can't really get a 404 error. Can > you be more specific about when you see them and the status of your Tomcat > server when you see them. > > Some troubleshooting thoughts... > > > does not accept connections, > > 1.) Is the process still running? Did the JVM crash? Is there a crash > file? hs_err_pod.log? > 2.) Is the socket still listening? Have you changed any firewall rules? > 3.) Try "telnet ". What happens? > 4.) Try connecting to Tomcat with jconsole or jvisualvm? Can you? If so > look at the connector mbean. What is its state? > 5.) Take some thread dumps. > > > responds with HTTP 404 or > > Assuming the URL that you entered is valid, this sounds like your > application may have failed to reload. Can you turn up the log level in > your application to see what it is doing? > > > does not respond at all. > > Assuming that you mean it accepts your connection and request, but never > processes and returns a response. In this case, take some thread dumps > after you have sent the response. That should show you what is going on > inside the JVM. > > > Other 4 (production) servers also become unstable but in a different > > manner - a lot of HTTP 500 responses (logs are also clean). > > It would be very odd to see nothing in the logs after a 500 error. Have > you looked at all of the log files, in particular > "localhost--MM-DD.log"? That file should contain a stack trace after a > 500 error. Also, what do the see in your browser when you get the 500 > error? The default error page should print the stack trace for the 500 > error. > > > Plus on > > some of these servers I have a lot (less than HTTP 500 responses > > though) of NPEs: > > - > > SEVERE: Exception Processing /path/here > > java.lang.NullPointerException > > at > org.apache.catalina.core.StandardWrapper.servletSecurityAnnotationScan(StandardWrapper.java:1216) > > at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:461) > > at > org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:305) > > at > org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:83) > > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) > > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) > > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) > > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) > > at > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) > > at > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) > > at > org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1822) > > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > > at java.lang.Thread.run(Thread.java:722) > > - > > These exception occurs for any webapp, not only the one being reloaded. > > What's the specific version of Tomcat where you saw this error occur? Is > it 7.0.37? or was this on an older version? > > > > > All the above happens irregularly, quite often on the pre-production > > server, only once on production servers. Tomcat service restart fixes > > the problem. Updating Tomcat to 7.0.37 did not help. > > I cannot reproduce this on any of developers hosts with the same > > versions of JDK and Tomcat. > > > > Any ideas? > > 1.) An easy temporary fix would be to not reload the application in > production. If you need to redeploy or reload the application, stop the > server, undeploy, redeploy and start your server. > > 2.) Include your Tomcat configuration, minus comments. > > 3.) See troubleshooting steps above. > > Dan > > > > > > > Thanks a lot in advance, > > Kirill > > > > ---
Encrypted jdbc
Greetings all, = Server number: 8.0.28.0 OS Name:Linux OS Version: 2.6.32-573.8.1.el6.x86_64 JVM Version:1.8.0_66-b17 = Back end database is mariadb residing on a another remote linux instance. I have downloaded and copied the Mariadb jdbc driver to the lib directory of the TC server. Can you let me know how to encrypt the database connectivity from the TC instance to the DB instance. thanks OSP
Re: Encrypted jdbc
I'm sure someone here also would have done a similar thing. But will ask mariadb form as well. On Fri, Apr 8, 2016 at 12:09 AM, Tommy Pham wrote: > Perhaps trying asking the MariaDB forum/list? > > On Thu, Apr 7, 2016 at 7:08 AM, Linux Support > wrote: > > > Greetings all, > > > > = > > Server number: 8.0.28.0 > > OS Name:Linux > > OS Version: 2.6.32-573.8.1.el6.x86_64 > > JVM Version:1.8.0_66-b17 > > = > > > > Back end database is mariadb residing on a another remote linux > instance. I > > have downloaded and copied the Mariadb jdbc driver to the lib directory > of > > the TC server. > > > > Can you let me know how to encrypt the database connectivity from the TC > > instance to the DB instance. > > > > thanks > > OSP > > >
Re: Adding Tomcat instances dynamically to Apache Load Balancer without restart
Doesn't AWS ELB fir to the purpose. May be something similar in your environment that translates hopefully On Fri, Apr 8, 2016 at 12:34 AM, Christoph Nenning < christoph.nenn...@lex-com.net> wrote: > > Hi All, > > > > Good Morning. > > > > I am working in a Cloud based project where I encounter Scale-in/ Scale > out > > of Tomcat instances. > > We have Apache load balancer as well. The requirement is to dynamically > add > > any new Tomcat instances during scale out to Load balancer and remove > > tomcat instances during scale-in, without restart of balancer. > > > > I did initial analysis on this. I understand that with mod_jk or > mod_proxy, > > we need to restart the balancer in the above cases. > > > > I came across a module mod_cluster which supports to dynamically add or > > remove tomcat instances from load balancer, without restart. Here the > > tomcat automatically registers with load balancer through separate > channel. > > But I have process running which gets the status of tomcat whether it is > > successfully started or not. Is there a way to register the tomcat > through > > my process with the balancer instead of tomcat itself registering with > > balancer? > > > > Could someone please suggest me any other modules if any, other than > > mod-cluster. > > Also is it possible to handle dynamic registration of tomcat with LB in > > tomcat itself with minimal changes ? > > If anyone used mod_cluster or some other modules, can you please share > some > > links for doing the setup. > > > > Thanks in Advance. > > > > Best Regards, > > Mohan > > > We do it like this: > - mod_proxy > - several small config files which can be easily overwritten (and > generated by scripts) > - apache graceful instead of restart > > So when a tomcat instance is created or stopped we re-generate the > according httpd config file and do graceful reload. > > > Regards, > Christoph > > This Email was scanned by Sophos Anti Virus >
Tomcat 8.5.4
Hi all, The version details : Using CATALINA_BASE: /apps/TOMCAT/tomcat Using CATALINA_HOME: /apps/TOMCAT/tomcat Using CATALINA_TMPDIR: /apps/TOMCAT/tomcat/temp Using JRE_HOME:/usr Using CLASSPATH: /apps/TOMCAT/tomcat/bin/bootstrap.jar:/apps/TOMCAT/tomcat/bin/tomcat-juli.jar Server version: Apache Tomcat/8.5.4 Server built: Jul 6 2016 08:43:30 UTC Server number: 8.5.4.0 OS Name:SunOS OS Version: 5.11 Architecture: sparcv9 JVM Version:1.8.0_92-b14 JVM Vendor: Oracle Corporation Keytool list : keytool -list Enter keystore password: Keystore type: JKS Keystore provider: SUN Your keystore contains 3 entries root, Sep 16, 2016, trustedCertEntry, Certificate fingerprint (SHA1): xx:xx:xx:xx:xx:xx:xx:xx:xx:xx: intermediate, Sep 16, 2016, trustedCertEntry, Certificate fingerprint (SHA1): xx:xx:xx:xx:xx:xx:xx:xx:xx:xx: server, Sep 16, 2016, PrivateKeyEntry, Certificate fingerprint (SHA1): xx:xx:xx:xx:xx:xx:xx:xx:xx:xx: The server.xml connector scheme="https" keyAlias="server" certificateKeystoreFile="/apps/JAVA/tomcat.jks" I'm running a configtest.sh and i get the following : SEVERE: Failed to initialize end point associated with ProtocolHandler ["https-jsse-nio-8443"] java.lang.IllegalArgumentException: java.io.IOException: Alias name tomcat does not identify a key entry . . SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8443]] org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8443]] . . Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:1012) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) ... 12 more Caused by: java.lang.IllegalArgumentException: java.io.IOException: Alias name tomcat does not identify a key entry at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:103) at org.apache.tomcat.util.net.AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:81) at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:245) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:866) at org.apache.tomcat.util.net.AbstractJsseEndpoint.init(AbstractJsseEndpoint.java:213) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:558) at org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:65) at org.apache.catalina.connector.Connector.initInternal(Connector.java:1010) ... 13 more Caused by: java.io.IOException: Alias name tomcat does not identify a key entry at org.apache.tomcat.util.net.jsse.JSSEUtil.getKeyManagers(JSSEUtil.java:213) at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:101) ... 20 more I cannot make out where it picks up the alias tomcat The keyalias specified in the server.xml doesn't look like having an impact The entry certificateKeystoreFile="/apps/JAVA/tomcat.jks" didn't have an impact and i had to create a $USER/.keystore file Cheers OSP
Re: Tomcat 8.5.4
Thanks Mark, The issues was not there when i used 8.5.5.. Thank you for pointing me in that direction On Fri, Sep 16, 2016 at 5:20 PM, Mark Thomas wrote: > On 16/09/2016 07:44, Linux Support wrote: > > > > > I cannot make out where it picks up the alias tomcat > > https://bz.apache.org/bugzilla/show_bug.cgi?id=59910 > > Mark > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Tomcat 8.5.5 variables
Hi All, The environment : Using CATALINA_BASE: /apps/TOMCAT/tomcat Using CATALINA_HOME: /apps/TOMCAT/tomcat Using CATALINA_TMPDIR: /apps/TOMCAT/tomcat/temp Using JRE_HOME:/usr Using CLASSPATH: /apps/TOMCAT/tomcat/bin/bootstrap.jar:/apps/TOMCAT/tomcat/bin/tomcat-juli.jar Server version: Apache Tomcat/8.5.5 Server built: Aug 31 2016 19:51:16 UTC Server number: 8.5.5.0 OS Name:SunOS OS Version: 5.11 Architecture: sparcv9 JVM Version:1.8.0_92-b14 JVM Vendor: Oracle Corporation I need to setup CATALINA_OPTS and JAVA_OPTS for the application to be deployed. Where do i set them up ? Am i to create a environment.sh file in CATALINA_HOME/bin ? Further, will the catalina.sh start invoke those variables defined ? Cheers OSP
Single sign on
Hi, Using 8.5.5 on solaris. Can you please point me in the direction of some documentation/link/blog for how to set up the SSO for a application deployed. Further, please share your experience and the process. Kind regards OSP
Newbie tomcat 8.0.28 question
greetings all, Running CentOS 6.4. Configured the /opt/tomcat-latest to be owned by a system user(tomcat8) other than root. Planning of keeping the tomcat instance running as a non-root owned process. How can i get another non-privileged linux user deploy apps to the environment ? I can allow manager access by configuring a strong passwd and allowing only local access. TA OSP
Re: Newbie tomcat 8.0.28 question
Thanks Mark. I might be struggle in setting up the hashed passwords. I have not been able to find a good read detailing how to do that. Will you be able to kindly point me in the direction of something worth the time and effort. cheers osp On Tue, Nov 3, 2015 at 7:41 PM, Mark Thomas wrote: > On 03/11/2015 04:47, Linux Support wrote: > > greetings all, > > > > Running CentOS 6.4. Configured the /opt/tomcat-latest to be owned by a > > system user(tomcat8) other than root. > > > > Planning of keeping the tomcat instance running as a non-root owned > > process. > > > > How can i get another non-privileged linux user deploy apps to the > > environment ? > > > > I can allow manager access by configuring a strong passwd and allowing > only > > local access. > > That would work. > > Mark > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Newbie tomcat 8.0.28 question
not having a clear text password in the users.xml ( i think ) for the admin user. My understanding is that the admin user logging in through the default page can do a deployment. On Tue, Nov 3, 2015 at 9:50 PM, Mark Thomas wrote: > On 03/11/2015 10:45, Linux Support wrote: > > Thanks Mark. I might be struggle in setting up the hashed passwords. I > have > > not been able to find a good read detailing how to do that. Will you be > > able to kindly point me in the direction of something worth the time and > > effort. > > What, exactly, do you mean by "hashed passwords"? > > Mark > > > > > > cheers > > osp > > > > On Tue, Nov 3, 2015 at 7:41 PM, Mark Thomas wrote: > > > >> On 03/11/2015 04:47, Linux Support wrote: > >>> greetings all, > >>> > >>> Running CentOS 6.4. Configured the /opt/tomcat-latest to be owned by a > >>> system user(tomcat8) other than root. > >>> > >>> Planning of keeping the tomcat instance running as a non-root owned > >>> process. > >>> > >>> How can i get another non-privileged linux user deploy apps to the > >>> environment ? > >>> > >>> I can allow manager access by configuring a strong passwd and allowing > >> only > >>> local access. > >> > >> That would work. > >> > >> Mark > >> > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > >> For additional commands, e-mail: users-h...@tomcat.apache.org > >> > >> > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Newbie tomcat 8.0.28 question
Thanks all. I will incorporate the digested passwd On Wed, Nov 4, 2015 at 2:10 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > To whom it may concern, > > On 11/3/15 6:39 AM, Linux Support wrote: > > not having a clear text password in the users.xml ( i think ) for the > admin > > user. My understanding is that the admin user logging in through the > > default page can do a deployment. > > Do you mean like this? > > http://tomcat.apache.org/tomcat-8.0-doc/realm-howto.html#Digested_Passwords > > (That documentation is a little off... you can use password-munging > algorithms that are not provided by the MessageDigest class). > > -chris > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
port 80
Hi again, configured the TC service to run as a non privileged user. In my understanding we cannot use a privileged port to bind TC to. Is there a way i can use port 80 for TC in the case of using a non root user ? cheers osp
log4j warning: Please initialize the log4j system properly
Hi, Just upgraded to Tomcat 5.5. In order to see what's happening at the context level I need to see the internal logging of Tomcat. My logs are not working. [CATALINA_HOME]/logs/stdout.log: log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.TldConfig). log4j:WARN Please initialize the log4j system properly. [CATALINA_HOME]/logs/stderr.log: log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Embedded). log4j:WARN Please initialize the log4j system properly. Can anyone point me to a direction? I have no clue what is wrong, and all the posts I have found all suggest to place the log4j.properties in the common/classes dir. I have done this and it is not working. [CATALINA_HOME]/common/classes/log4j.properties: log4j.rootLogger=ERROR, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n log4j.logger.org.apache.catalina=DEBUG, R I hope someone has a clue. Best regrads, Joost - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Issue moving Tomcat 5.5.9 w/JDNI and JTLS to SQL Server 2005
Hi there, I'm hoping i have all the correct terminology... Current hardware/software setup Windows Server 2000 (Live) Tomcat version 5.59. Java: Sun JDK 1.42_09 (need to use this as i have an application that wasn't written by me, but doesn't seem to work in 1.5) Windows Server 2003 running SQL Server 2000. JDBC: TWFreeTDS Class c = Class.forName("com.thinweb.tds.Driver"); //The Driver dbConn = DriverManager.getConnection("jdbc:twtds:sqlserver://SQLServer00/Catalog;user=user;password=password;TDS=7.0"); The connection works with SQL Server 2000. New Hardware/software setup: Windows Server 2008. Dev computer is Windows 7 32 bit. Tomcat version 5.59. Java: Sun JDK 1.42_09 (need to use this as i have an application that wasn't written by me, but doesn't seem to work in 1.5) SQL Server 2005 on Windows Server 2008. JDBC: jTDS via JDNI (both are located in the common/lib folder. Updated all commons (collections 3.2.1, dbcp 1.22, pool 1.53) to the latest available. Also located in the common/lib folder, and not located in the webapps' lib folder. At first i tried to see if FreeTDS would work with SQL Server 2005, but from what i can see, it doesn`t go through. So i decided to change the url to jTDS, but again the connection doesn't go through. I'm not even sure if i have the right connection url, but when i have tried to use it, it just doesn't connect. Class c = Class.forName("net.sourceforge.jtds.jdbc.Driver"); //The Driver dbConn = DriverManager.getConnection("jdbc:jtds:sqlserver://SQLServer05/Catalog;user=user;password=password;TDS=8.0"); I've made sure that all security stuff is correct on both, and in fact, NetBeans connects just fine to SQL Server 2005. But there is a schema that i don`t understand how it gets in there. Considering this, i decided to try and use the JDNI. I have set up everything that i can see based on the instructions i found. Files currently listed in "common/lib" activation.jar commons-collections-3.2.1.jar commons-dbcp-1.2.2.jar commons-el.jar commons-pool-1.5.3.jar jasper-compiler.jar jasper-compiler-jdt.jar jasper-runtime.jar jsp-api.jar jtds-1.2.4.jar mail.jar naming-factory.jar naming-resources.jar servlet-api.jar tools.jar Here is the Context.xml file. web.xml (rest is snipped, only to show the relevent info). Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. jdbc/Conn javax.sql.DataSource Container Shareable Even though the above in web.xml says that discusses making a config change in the server xml, i didn`t make any changes there. Here is my code in the bean that i had set up for connecting to the database. ConnectionBean.java (only the method is shown). public Connection getConnection() throws SQLException { Connection dbConn = null; InitialContext initCtx = null; DataSource ds = null; try { log.info("Context"); initCtx = new InitialContext(); if (initCtx == null) { log.info("No Context"); } log.info("Datasource checking"); ds = (DataSource) initCtx.lookup("java:comp/env/jdbc/Conn"); if (ds == null) { log.info("Datasource not found"); } log.info("Getting Connection"); dbConn = ds.getConnection(); if (dbConn == null) { log.info("Could not get connection"); } } catch (SQLException e) { log.info("SQLException: " + e); } catch (NamingException e) { log.info(e.getMessage()); } return dbConn; } Here is the stdout when i try and run the bean. 2009/10/16 15:37:09 - Context 2009/10/16 15:37:09 - Datasource checking 2009/10/16 15:37:09 - Getting Connection AbandonedObjectPool is used (org.apache.commons.dbcp.abandonedobjectp...@10a5c21) LogAbandoned: true RemoveAbandoned: true RemoveAbandonedTimeout: 60 This is the error i get when i try and connect to the database via the bean above. 16-Oct-2009 3:37:09 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.NoSuchMethodError: java.lang.Integer.valueOf(I)Ljava/lang/Integer; at net.sourceforge.jtds.jdbc.ConnectionJDBC2.unpackProperties(ConnectionJDBC2.java:1221) at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:280) at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50) at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294) at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1247) at
Re: Issue moving Tomcat 5.5.9 w/JDNI and JTLS to SQL Server 2005
Not sure what it was, but i decided to install 1.42_11 (which is what i was using before - didn't think that it would matter). But now access to sql server 2005 is working fine. Hopefully this will help someone who is new to jdni, jtls and tomcat w/sql server 05. ...Robin -- From: "ULS Tech Support" Sent: Friday, October 16, 2009 9:49 AM To: "Tomcat Users List" Subject: Issue moving Tomcat 5.5.9 w/JDNI and JTLS to SQL Server 2005 Hi there, I'm hoping i have all the correct terminology... Current hardware/software setup Windows Server 2000 (Live) Tomcat version 5.59. Java: Sun JDK 1.42_09 (need to use this as i have an application that wasn't written by me, but doesn't seem to work in 1.5) Windows Server 2003 running SQL Server 2000. JDBC: TWFreeTDS Class c = Class.forName("com.thinweb.tds.Driver"); //The Driver dbConn = DriverManager.getConnection("jdbc:twtds:sqlserver://SQLServer00/Catalog;user=user;password=password;TDS=7.0"); The connection works with SQL Server 2000. New Hardware/software setup: Windows Server 2008. Dev computer is Windows 7 32 bit. Tomcat version 5.59. Java: Sun JDK 1.42_09 (need to use this as i have an application that wasn't written by me, but doesn't seem to work in 1.5) SQL Server 2005 on Windows Server 2008. JDBC: jTDS via JDNI (both are located in the common/lib folder. Updated all commons (collections 3.2.1, dbcp 1.22, pool 1.53) to the latest available. Also located in the common/lib folder, and not located in the webapps' lib folder. At first i tried to see if FreeTDS would work with SQL Server 2005, but from what i can see, it doesn`t go through. So i decided to change the url to jTDS, but again the connection doesn't go through. I'm not even sure if i have the right connection url, but when i have tried to use it, it just doesn't connect. Class c = Class.forName("net.sourceforge.jtds.jdbc.Driver"); //The Driver dbConn = DriverManager.getConnection("jdbc:jtds:sqlserver://SQLServer05/Catalog;user=user;password=password;TDS=8.0"); I've made sure that all security stuff is correct on both, and in fact, NetBeans connects just fine to SQL Server 2005. But there is a schema that i don`t understand how it gets in there. Considering this, i decided to try and use the JDNI. I have set up everything that i can see based on the instructions i found. Files currently listed in "common/lib" activation.jar commons-collections-3.2.1.jar commons-dbcp-1.2.2.jar commons-el.jar commons-pool-1.5.3.jar jasper-compiler.jar jasper-compiler-jdt.jar jasper-runtime.jar jsp-api.jar jtds-1.2.4.jar mail.jar naming-factory.jar naming-resources.jar servlet-api.jar tools.jar Here is the Context.xml file. web.xml (rest is snipped, only to show the relevent info). Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. jdbc/Conn javax.sql.DataSource Container Shareable Even though the above in web.xml says that discusses making a config change in the server xml, i didn`t make any changes there. Here is my code in the bean that i had set up for connecting to the database. ConnectionBean.java (only the method is shown). public Connection getConnection() throws SQLException { Connection dbConn = null; InitialContext initCtx = null; DataSource ds = null; try { log.info("Context"); initCtx = new InitialContext(); if (initCtx == null) { log.info("No Context"); } log.info("Datasource checking"); ds = (DataSource) initCtx.lookup("java:comp/env/jdbc/Conn"); if (ds == null) { log.info("Datasource not found"); } log.info("Getting Connection"); dbConn = ds.getConnection(); if (dbConn == null) { log.info("Could not get connection"); } } catch (SQLException e) { log.info("SQLException: " + e); } catch (NamingException e) { log.info(e.getMessage()); } return dbConn; } Here is the stdout when i try and run the bean. 2009/10/16 15:37:09 - Context 2009/10/16 15:37:09 - Datasource checking 2009/10/16 15:37:09 - Getting Connection AbandonedObjectPool is used (org.apache.commons.dbcp.abandonedobjectp...@10a5c21) LogAbandoned: true RemoveAbandoned: true RemoveAbandonedTimeout: 60 This is the error i get when i try and connect to the database via the bean above. 16-Oct-2009 3:37:09 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception java.la
Another issue, jTDS with Tomcat 5.5.9
Hi there, Tomcat 5.5.9, using jTDS, with SQL Server 2005 i am getting this issue. 2009/10/16 10:47:15 - sql exception:java.sql.SQLException: No current row in the ResultSet. This issue doesn't happen with TWFreeTDS (in fact, when i switch to twfreetds it works fine).. but from my research so far, i may have been wrong in the way i implemented it. Here is the code. public Vector queryPaged4(String strTableExt) throws SQLException { dbRecords.removeAllElements(); boolean rc = true; ResultSet rs_info = null; boolean bTest = false; DBItems temp = null; //New ** /* This will call a stored procedure, pass in the page # and number to display on each page and will return the results directly. */ CallableStatement call = dbConn.prepareCall("{call sp_PagedItems4 (?,?,?,?,?)}"); call.setString(1, strTableExt); call.setString(2, filter); call.setString(3, order); call.setInt(4, pageNumber); call.setInt(5, recsPerPage); if (!call.execute())//Query { //No ResultSets Returned; } else { try { rs_info = call.getResultSet(); //Save the total number of records (value) in queryPagedRecords queryPagedRecords = rs_info.getInt("TotalRec"); queryPagedMore = rs_info.getInt("MoreRecords"); nLowestID = rs_info.getInt("FirstRec"); nHighestID = rs_info.getInt("LastRec"); if (queryPagedRecords > 0) { //Test for another resultset. boolean bTest = false; bTest = call.getMoreResults(); //Next resultset established, let's get the data! dbResultSet = call.getResultSet(); while (dbResultSet.next()) { //System.out.println("2: " + dbResultSet.getInt("ID")); rc = true; //Set the items object based on the resultset. temp = this.setItemsObject(true, dbResultSet); dbRecords.addElement(temp); } } } catch (SQLException e) { System.out.println("SQLException: " + e); System.out.println("SQLException Message: " + e.getMessage()); } finally { rs_info = null; temp = null; dbResultSet = null; } System.out.println("end"); } return dbRecords; } Basically i'm getting the resultsets, but i'm not able to pull the data from the resultsets as i get the error when i try and getInt. Does anyone have any clue on why this is happening, or how i can make this work? I did try and modify the code to the following to see if it helped, but again, i'm still stumped on HOW to retrieve the data from the resultsets. try { System.out.println("start..."); int updateCount = 0; updateCount = call.getUpdateCount(); System.out.println("update count = " + updateCount); boolean moreResults = true; while (updateCount >= 0 || moreResults) { if (!moreResults) { // just eat it updateCount = call.getUpdateCount(); System.out.println("\nupdateCount= " + updateCount); } else { // get the data if (rs_info == null) { rs_info = call.getResultSet(); } else { dbResultSet = call.getResultSet(); } //Save the total number of records (value) in queryPagedRecords System.out.println("Got Data, how to process??"); } // if ! moreResults else moreResults = call.getMoreResults(); System.out.println("More Results??"); } // while //rs_info.setFetchSize(); System.out.println("Lets get data from rs_info"); queryPagedRecords = rs_info.getInt("TotalRec"); queryPagedMore = rs_info.getInt("MoreRecords"); nLowestID = rs_info.getInt("FirstRec"); nHighestID = rs_info.getInt("LastRec"); But it stops at the "queryPagedRecords = rs_info.getInt("TotalRec");" Thanks in advance to anyone who can help. ...Robin - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Another issue, jTDS with Tomcat 5.5.9
Tell me how i hijacked my own thread? This is my own thread.. and i actually modified the last one i sent out, cleared everything and typed out brand new. Thanks for the help. -- From: "Pid" Sent: Tuesday, October 20, 2009 6:11 AM To: Subject: Re: Another issue, jTDS with Tomcat 5.5.9 On 16/10/2009 22:04, ULS Tech Support wrote: Hi there, Please start a completely new email for each thread. Replacing the subject line doesn't count, it's called thread hijacking. p Tomcat 5.5.9, using jTDS, with SQL Server 2005 i am getting this issue. 2009/10/16 10:47:15 - sql exception:java.sql.SQLException: No current row in the ResultSet. This issue doesn't happen with TWFreeTDS (in fact, when i switch to twfreetds it works fine).. but from my research so far, i may have been wrong in the way i implemented it. Here is the code. public Vector queryPaged4(String strTableExt) throws SQLException { dbRecords.removeAllElements(); boolean rc = true; ResultSet rs_info = null; boolean bTest = false; DBItems temp = null; //New ** /* This will call a stored procedure, pass in the page # and number to display on each page and will return the results directly. */ CallableStatement call = dbConn.prepareCall("{call sp_PagedItems4 (?,?,?,?,?)}"); call.setString(1, strTableExt); call.setString(2, filter); call.setString(3, order); call.setInt(4, pageNumber); call.setInt(5, recsPerPage); if (!call.execute())//Query { //No ResultSets Returned; } else { try { rs_info = call.getResultSet(); //Save the total number of records (value) in queryPagedRecords queryPagedRecords = rs_info.getInt("TotalRec"); queryPagedMore = rs_info.getInt("MoreRecords"); nLowestID = rs_info.getInt("FirstRec"); nHighestID = rs_info.getInt("LastRec"); if (queryPagedRecords > 0) { //Test for another resultset. boolean bTest = false; bTest = call.getMoreResults(); //Next resultset established, let's get the data! dbResultSet = call.getResultSet(); while (dbResultSet.next()) { //System.out.println("2: " + dbResultSet.getInt("ID")); rc = true; //Set the items object based on the resultset. temp = this.setItemsObject(true, dbResultSet); dbRecords.addElement(temp); } } } catch (SQLException e) { System.out.println("SQLException: " + e); System.out.println("SQLException Message: " + e.getMessage()); } finally { rs_info = null; temp = null; dbResultSet = null; } System.out.println("end"); } return dbRecords; } Basically i'm getting the resultsets, but i'm not able to pull the data from the resultsets as i get the error when i try and getInt. Does anyone have any clue on why this is happening, or how i can make this work? I did try and modify the code to the following to see if it helped, but again, i'm still stumped on HOW to retrieve the data from the resultsets. try { System.out.println("start..."); int updateCount = 0; updateCount = call.getUpdateCount(); System.out.println("update count = " + updateCount); boolean moreResults = true; while (updateCount >= 0 || moreResults) { if (!moreResults) { // just eat it updateCount = call.getUpdateCount(); System.out.println("\nupdateCount= " + updateCount); } else { // get the data if (rs_info == null) { rs_info = call.getResultSet(); } else { dbResultSet = call.getResultSet(); } //Save the total number of records (value) in queryPagedRecords System.out.println("Got Data, how to process??"); } // if ! moreResults else moreResults = call.getMoreResults(); System.out.println("More Results??"); } // while //rs_info.setFetchSize(); System.out.println("Lets get data from rs_info"); queryPagedRecords = rs_info.getInt("TotalRec"); queryPagedMore = rs_info.getInt("MoreRecords"); nLowestID = rs_info.getInt("FirstRec"); nHighestID = rs_info.getInt("LastRec"); But it stops at the "queryPagedRecords = rs_info.getInt("TotalRec");" Thanks in advance to anyone who can help. ...Robin - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 5.59 with jTDS, and SQL Server 2005
Hi there, Let's try this again... I am using Tomcat 5.5.9, using jTDS, with SQL Server 2005 i am getting this issue. 2009/10/16 10:47:15 - sql exception:java.sql.SQLException: No current row in the ResultSet. This issue doesn't happen with TWFreeTDS (in fact, when i switch to twfreetds it works fine).. but from my research so far, i may have been wrong in the way i implemented it. Here is the code. public Vector queryPaged4(String strTableExt) throws SQLException { dbRecords.removeAllElements(); boolean rc = true; ResultSet rs_info = null; boolean bTest = false; DBItems temp = null; //New ** /* This will call a stored procedure, pass in the page # and number to display on each page and will return the results directly. */ CallableStatement call = dbConn.prepareCall("{call sp_PagedItems4 (?,?,?,?,?)}"); call.setString(1, strTableExt); call.setString(2, filter); call.setString(3, order); call.setInt(4, pageNumber); call.setInt(5, recsPerPage); if (!call.execute())//Query { //No ResultSets Returned; } else { try { rs_info = call.getResultSet(); //Save the total number of records (value) in queryPagedRecords queryPagedRecords = rs_info.getInt("TotalRec"); queryPagedMore = rs_info.getInt("MoreRecords"); nLowestID = rs_info.getInt("FirstRec"); nHighestID = rs_info.getInt("LastRec"); if (queryPagedRecords > 0) { //Test for another resultset. boolean bTest = false; bTest = call.getMoreResults(); //Next resultset established, let's get the data! dbResultSet = call.getResultSet(); while (dbResultSet.next()) { //System.out.println("2: " + dbResultSet.getInt("ID")); rc = true; //Set the items object based on the resultset. temp = this.setItemsObject(true, dbResultSet); dbRecords.addElement(temp); } } } catch (SQLException e) { System.out.println("SQLException: " + e); System.out.println("SQLException Message: " + e.getMessage()); } finally { rs_info = null; temp = null; dbResultSet = null; } System.out.println("end"); } return dbRecords; } Basically i'm getting the resultsets, but i'm not able to pull the data from the resultsets as i get the error when i try and getInt. Does anyone have any clue on why this is happening, or how i can make this work? I did try and modify the code to the following to see if it helped, but again, i'm still stumped on HOW to retrieve the data from the resultsets. try { System.out.println("start..."); int updateCount = 0; updateCount = call.getUpdateCount(); System.out.println("update count = " + updateCount); boolean moreResults = true; while (updateCount >= 0 || moreResults) { if (!moreResults) { // just eat it updateCount = call.getUpdateCount(); System.out.println("\nupdateCount= " + updateCount); } else { // get the data if (rs_info == null) { rs_info = call.getResultSet(); } else { dbResultSet = call.getResultSet(); } //Save the total number of records (value) in queryPagedRecords System.out.println("Got Data, how to process??"); } // if ! moreResults else moreResults = call.getMoreResults(); System.out.println("More Results??"); } // while //rs_info.setFetchSize(); System.out.println("Lets get data from rs_info"); queryPagedRecords = rs_info.getInt("TotalRec"); queryPagedMore = rs_info.getInt("MoreRecords"); nLowestID = rs_info.getInt("FirstRec"); nHighestID = rs_info.getInt("LastRec"); But it stops at the "queryPagedRecords = rs_info.getInt("TotalRec");" Thanks in advance to anyone who can help. ...Robin
Re: Tomcat 5.59 with jTDS, and SQL Server 2005
Hi David, -- From: "David kerber" Sent: Tuesday, October 20, 2009 12:34 PM To: "Tomcat Users List" Subject: Re: Tomcat 5.59 with jTDS, and SQL Server 2005 ULS Tech Support wrote: Hi there, Let's try this again... I am using Tomcat 5.5.9, using jTDS, with SQL Server 2005 i am getting this issue. 2009/10/16 10:47:15 - sql exception:java.sql.SQLException: No current row in the ResultSet. This issue doesn't happen with TWFreeTDS (in fact, when i switch to twfreetds it works fine).. but from my research so far, i may have been wrong in the way i implemented it. Here is the code. ... while (dbResultSet.next()) { Have you verified that you're getting here? The .next() should essentially guarantee that you are on a valid row. I'm not actually getting to this point... it stops back when i try and get the data from the first resultset. try { rs_info = call.getResultSet(); //Save the total number of records (value) in queryPagedRecords queryPagedRecords = rs_info.getInt("TotalRec"); queryPagedMore = rs_info.getInt("MoreRecords"); nLowestID = rs_info.getInt("FirstRec"); nHighestID = rs_info.getInt("LastRec"); It stops at the first line, queryPagedRecords = rs_info.getInt("TotalRec"); //System.out.println("2: " + dbResultSet.getInt("ID")); rc = true; //Set the items object based on the resultset. temp = this.setItemsObject(true, dbResultSet); dbRecords.addElement(temp); } } } catch (SQLException e) { System.out.println("SQLException: " + e); System.out.println("SQLException Message: " + e.getMessage()); } finally { rs_info = null; temp = null; dbResultSet = null; } System.out.println("end"); } return dbRecords; } Basically i'm getting the resultsets, but i'm not able to pull the data from the resultsets as i get the error when i try and getInt. Does anyone have any clue on why this is happening, or how i can make this work? I did try and modify the code to the following to see if it helped, but again, i'm still stumped on HOW to retrieve the data from the resultsets. The first thing I'd suggest would be to eliminate the handling of multiple resultsets until you can verify that you can read a single one. Your code above is pretty much what I do, but I don't use SQL SErver. The majority of the other webpages are set up as a single resultset, which do work :) It is only when i have multiple results sets. Thanks for answering, i appreciate this. D - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5.59 with jTDS, and SQL Server 2005
No problem, thanks again David.. ...Robin -- From: "David kerber" Sent: Tuesday, October 20, 2009 12:54 PM To: "Tomcat Users List" Subject: Re: Tomcat 5.59 with jTDS, and SQL Server 2005 ULS Tech Support wrote: Hi David, -- From: "David kerber" Sent: Tuesday, October 20, 2009 12:34 PM To: "Tomcat Users List" Subject: Re: Tomcat 5.59 with jTDS, and SQL Server 2005 ... The majority of the other webpages are set up as a single resultset, which do work :) It is only when i have multiple results sets. Thanks for answering, i appreciate this. Sorry I couldn't help more; I've never used multiple resultsets, so I'm tapped out as far as helping you goes. D - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Hijacking
Fair enough... I didn't think it was a big deal to do that... clicking new instead of reply... But really, i am still asking a valid question and require help... Didn't realize that this thread hijacking was going to cause someone to tell me what i did wrong, when i still had a valid question. But i'll remember that next time for you... Sound good? -- From: "Pid" Sent: Tuesday, October 20, 2009 1:05 PM To: Subject: Hijacking On 20/10/2009 19:02, ULS Tech Support wrote: Tell me how i hijacked my own thread? As I described. See? This is my own thread.. and i actually modified the last one i sent out, cleared everything and typed out brand new. Umm, yes, that would be what we call hijacking. You hijacked a thread, then did it again to 'your' new thread. Unless I'm much mistaken you responded to the inestimable Bill Davidson's first "DBCP woes (running out of cursors)" email. Just because you changed the subject and/or body, doesn't mean you started a new thread. Look at the mail headers, or use a mail reader that supports threaded views to see it. p Thanks for the help. -- From: "Pid" Sent: Tuesday, October 20, 2009 6:11 AM To: Subject: Re: Another issue, jTDS with Tomcat 5.5.9 On 16/10/2009 22:04, ULS Tech Support wrote: Hi there, Please start a completely new email for each thread. Replacing the subject line doesn't count, it's called thread hijacking. p Tomcat 5.5.9, using jTDS, with SQL Server 2005 i am getting this issue. 2009/10/16 10:47:15 - sql exception:java.sql.SQLException: No current row in the ResultSet. This issue doesn't happen with TWFreeTDS (in fact, when i switch to twfreetds it works fine).. but from my research so far, i may have been wrong in the way i implemented it. Here is the code. public Vector queryPaged4(String strTableExt) throws SQLException { dbRecords.removeAllElements(); boolean rc = true; ResultSet rs_info = null; boolean bTest = false; DBItems temp = null; //New ** /* This will call a stored procedure, pass in the page # and number to display on each page and will return the results directly. */ CallableStatement call = dbConn.prepareCall("{call sp_PagedItems4 (?,?,?,?,?)}"); call.setString(1, strTableExt); call.setString(2, filter); call.setString(3, order); call.setInt(4, pageNumber); call.setInt(5, recsPerPage); if (!call.execute())//Query { //No ResultSets Returned; } else { try { rs_info = call.getResultSet(); //Save the total number of records (value) in queryPagedRecords queryPagedRecords = rs_info.getInt("TotalRec"); queryPagedMore = rs_info.getInt("MoreRecords"); nLowestID = rs_info.getInt("FirstRec"); nHighestID = rs_info.getInt("LastRec"); if (queryPagedRecords > 0) { //Test for another resultset. boolean bTest = false; bTest = call.getMoreResults(); //Next resultset established, let's get the data! dbResultSet = call.getResultSet(); while (dbResultSet.next()) { //System.out.println("2: " + dbResultSet.getInt("ID")); rc = true; //Set the items object based on the resultset. temp = this.setItemsObject(true, dbResultSet); dbRecords.addElement(temp); } } } catch (SQLException e) { System.out.println("SQLException: " + e); System.out.println("SQLException Message: " + e.getMessage()); } finally { rs_info = null; temp = null; dbResultSet = null; } System.out.println("end"); } return dbRecords; } Basically i'm getting the resultsets, but i'm not able to pull the data from the resultsets as i get the error when i try and getInt. Does anyone have any clue on why this is happening, or how i can make this work? I did try and modify the code to the following to see if it helped, but again, i'm still stumped on HOW to retrieve the data from the resultsets. try { System.out.println("start..."); int updateCount = 0; updateCount = call.getUpdateCount(); System.out.println("update count = " + updateCount); boolean moreResults = true; while (updateCount >= 0 || moreResults) { if (!moreResults) { // just eat it updateCount = call.getUpdateCount(); System.out.println("\nupdateCount= " + updateCount); } else { // get the data if (rs_info == null) { rs_info = call.getResultSet(); } else { dbResultSet = call.getResultSet(); } //Save the total number of records (value) in queryPagedRecords System.out.println("Got Data, how to process??"); } // if ! moreResults else moreResults = call.getMoreResults(); System.out.println("More Results??"); } // while //rs_info.setFetchSize(); System.out.println("Lets get data from rs_info"); queryPagedRecords = rs_info.getInt("TotalRec"); queryPagedMore = rs_info.getInt("MoreRecords"); nLowestID
Re: Hijacking
Sorry, i'll remember this not just for you, but for everyone to specifically use new for new threads. -- From: "ULS Tech Support" Sent: Tuesday, October 20, 2009 1:13 PM To: "Tomcat Users List" ; Subject: Re: Hijacking Fair enough... I didn't think it was a big deal to do that... clicking new instead of reply... But really, i am still asking a valid question and require help... Didn't realize that this thread hijacking was going to cause someone to tell me what i did wrong, when i still had a valid question. But i'll remember that next time for you... Sound good? -- From: "Pid" Sent: Tuesday, October 20, 2009 1:05 PM To: Subject: Hijacking On 20/10/2009 19:02, ULS Tech Support wrote: Tell me how i hijacked my own thread? As I described. See? This is my own thread.. and i actually modified the last one i sent out, cleared everything and typed out brand new. Umm, yes, that would be what we call hijacking. You hijacked a thread, then did it again to 'your' new thread. Unless I'm much mistaken you responded to the inestimable Bill Davidson's first "DBCP woes (running out of cursors)" email. Just because you changed the subject and/or body, doesn't mean you started a new thread. Look at the mail headers, or use a mail reader that supports threaded views to see it. p Thanks for the help. -- From: "Pid" Sent: Tuesday, October 20, 2009 6:11 AM To: Subject: Re: Another issue, jTDS with Tomcat 5.5.9 On 16/10/2009 22:04, ULS Tech Support wrote: Hi there, Please start a completely new email for each thread. Replacing the subject line doesn't count, it's called thread hijacking. p Tomcat 5.5.9, using jTDS, with SQL Server 2005 i am getting this issue. 2009/10/16 10:47:15 - sql exception:java.sql.SQLException: No current row in the ResultSet. This issue doesn't happen with TWFreeTDS (in fact, when i switch to twfreetds it works fine).. but from my research so far, i may have been wrong in the way i implemented it. Here is the code. public Vector queryPaged4(String strTableExt) throws SQLException { dbRecords.removeAllElements(); boolean rc = true; ResultSet rs_info = null; boolean bTest = false; DBItems temp = null; //New ** /* This will call a stored procedure, pass in the page # and number to display on each page and will return the results directly. */ CallableStatement call = dbConn.prepareCall("{call sp_PagedItems4 (?,?,?,?,?)}"); call.setString(1, strTableExt); call.setString(2, filter); call.setString(3, order); call.setInt(4, pageNumber); call.setInt(5, recsPerPage); if (!call.execute())//Query { //No ResultSets Returned; } else { try { rs_info = call.getResultSet(); //Save the total number of records (value) in queryPagedRecords queryPagedRecords = rs_info.getInt("TotalRec"); queryPagedMore = rs_info.getInt("MoreRecords"); nLowestID = rs_info.getInt("FirstRec"); nHighestID = rs_info.getInt("LastRec"); if (queryPagedRecords > 0) { //Test for another resultset. boolean bTest = false; bTest = call.getMoreResults(); //Next resultset established, let's get the data! dbResultSet = call.getResultSet(); while (dbResultSet.next()) { //System.out.println("2: " + dbResultSet.getInt("ID")); rc = true; //Set the items object based on the resultset. temp = this.setItemsObject(true, dbResultSet); dbRecords.addElement(temp); } } } catch (SQLException e) { System.out.println("SQLException: " + e); System.out.println("SQLException Message: " + e.getMessage()); } finally { rs_info = null; temp = null; dbResultSet = null; } System.out.println("end"); } return dbRecords; } Basically i'm getting the resultsets, but i'm not able to pull the data from the resultsets as i get the error when i try and getInt. Does anyone have any clue on why this is happening, or how i can make this work? I did try and modify the code to the following to see if it helped, but again, i'm still stumped on HOW to retrieve the data from the resultsets. try { System.out.println("start..."); int updateCount = 0; updateCount = call.getUpdateCount(); System.out.println("update count = " + updateCount); boolean moreResults = true; while (updateCount >= 0 || moreResults) { if (!moreResults) { // just eat it updateCount = call.getUpdateCount(); System.out.println("\nupdateCount= " + updateCount); } else { // get the data if (rs_info == null) { rs_info = call.getResultSet(); } else { dbResultSet = call.getResultSet(); } //Save the total number of records (value) in queryPagedRecords System.out.println("Got Data, how to process??"); } // if ! moreResul
Re: Tomcat 5.59 with jTDS, and SQL Server 2005
-- From: "Pid" Sent: Tuesday, October 20, 2009 1:19 PM To: "Tomcat Users List" Subject: Re: Tomcat 5.59 with jTDS, and SQL Server 2005 1. Is there a particular barrier to using the official MS driver? (I am wincing as I ask). http://jtds.sourceforge.net/index.html As quoted: Why use jTDS? jTDS is free software. jTDS is released under the terms of the GNU LGPL, giving you not only the posibility to debug and tweak it to your own liking but also to use it in and distribute it with your free or commercial applications. The other "free" choices, the JDBC-ODBC bridge and Microsoft's own JDBC driver are not actually free. If you encounter an issue with any of them you won't be able to fix it yourself and response times from both Microsoft and Sun are anything but short. Also, both of them lack functionality (the Microsoft driver implements JDBC 2.0, while the bridge is just a JDBC 1.0 implementation) and have serious stability problems: the bridge crashes the JVM if the ODBC driver has any problem and Microsoft just has no intention of really supporting Java/JDBC. 2. What is the full stack trace you referred to earlier, does it have a separate root cause? There was a stack trace, but that was because i hadn't captured the error correctly. This is all i get now.. SQLException: java.sql.SQLException: No current row in the ResultSet. SQLException Message: No current row in the ResultSet. 3. Is TWFreeTDS a drop-in replacement? I`ve been using TWFreeTDS because it did support the multiple resultsets. 4. Are there any known bugs in jTDS for the combination of circumstances you're testing against? None that i`m aware of. 5. Does the procedure definitely return data in each of the result sets? When i used the twfreetds... and yes it does return data.. i re-ran the sql procedure to make sure... I used twfreetds originally instead of jtds, the entire thing worked fine... But i wanted to implement the pooling with jtds (and probably can with twfreetds, but wanted an alternative). p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5.59 with jTDS, and SQL Server 2005
Found the thread from Mark... thank you for pointing me in that direction... -- From: "Pid" Sent: Tuesday, October 20, 2009 1:19 PM To: "Tomcat Users List" Subject: Re: Tomcat 5.59 with jTDS, and SQL Server 2005 On 20/10/2009 19:59, ULS Tech Support wrote: No problem, thanks again David.. ...Robin -- From: "David kerber" Sent: Tuesday, October 20, 2009 12:54 PM To: "Tomcat Users List" Subject: Re: Tomcat 5.59 with jTDS, and SQL Server 2005 ULS Tech Support wrote: Hi David, -- From: "David kerber" Sent: Tuesday, October 20, 2009 12:34 PM To: "Tomcat Users List" Subject: Re: Tomcat 5.59 with jTDS, and SQL Server 2005 ... The majority of the other webpages are set up as a single resultset, which do work :) It is only when i have multiple results sets. Thanks for answering, i appreciate this. Sorry I couldn't help more; I've never used multiple resultsets, so I'm tapped out as far as helping you goes. I have exactly zero experience with SQL Server & Tomcat, but... 1. Is there a particular barrier to using the official MS driver? (I am wincing as I ask). 2. What is the full stack trace you referred to earlier, does it have a separate root cause? 3. Is TWFreeTDS a drop-in replacement? 4. Are there any known bugs in jTDS for the combination of circumstances you're testing against? 5. Does the procedure definitely return data in each of the result sets? p D - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Wierd problem with Tomcat 5.59 running on Windows Server 2003
Hello. I'm sure this is a Tomcat issue... But let me give this background. I've recently upgraded the server that the website used to run on (used to run on Windows Server 2000, upgraded to Windows Server 2003). I was able to transfer everything over to the new server.. The speed and updates are great... But, for some reason, some servlets are running an old version of itself. For example, All images used to be hosted at webapp/images (as an example). But i have moved them out of the webapp, and into its own (thus, /images). I made this change a few months ago before i moved the application to the new server... Haven't ran or used this old location in ages. Recently i made a change to this bean (HeaderBean) that would do other stuff... For some reason though, this Bean is suddenly using an old version of itself (where the bean would get the image from its old location (webapp/images). This happened to me originally when testing the new server, but all i had to do was do a restart of the server (restarting tomcat didn't help), and it would use the new one ok. But i'm still having the issue where restarting the server doesn't help. Tomcat is still using the OLD bean from a few months ago. Just to make sure, the jsp page that calls this bean is correct. It is the Bean/class that is having this issue. The image for example is NOT showing up... i look at the source code and it shows the old location (which doesn't exist). Other than the original testing, this has never happened previously... I am using netbeans 6.7.1 for development (windows 7 ultimate), and after compilation, i copy it over to the server (WEB) and deploy it in the appropriate folder. I have updated the "context", reloadable="true", just to make sure. This is not an internet explorer/firefox issue. I've tried this on 3 different computers and setups... i still get the OLD bean. I don't know why this is happening and wondering if anyone here has seen this issue, or may know why its happening and what i need to do to fix it. Also, is there a place that tomcat will cache its servlets? Thank you to anyone who is able to help. ...Robin
Re: Wierd problem with Tomcat 5.59 running on Windows Server 2003
I'm aware that I'm running a five year old version of tomcat.I tried to upgrade to the latest 5.5 and 6.0 version, and trying to get my application to work on it didn't go so well.. I chose to abandon it for now due to time constraints. Ok, so what do you mean by I'm not running the Tomcat config that i thought i was? The application files are identical between the dev and the live server. In fact, i run the application fine on the dev computer, yet i try and run it (after copying all the files over) on the live server, and i still get this issue. There are other beans that this issue is happening on... Interestingly, i renamed the webapp application folder (to webapp2) and the issue happened there as well. I would appreciate some help, or perhaps i am not understanding something before it was copied over to this server and may need to just understand it more. Thanks. -- From: "Caldarale, Charles R" Sent: Sunday, March 14, 2010 8:03 PM To: "Tomcat Users List" Subject: RE: Wierd problem with Tomcat 5.59 running on Windows Server 2003 From: ULS Tech Support [mailto:tech_supp...@uls.com] Subject: Wierd problem with Tomcat 5.59 running on Windows Server 2003 Also, is there a place that tomcat will cache its servlets? No. You are most likely just not running the Tomcat configuration you think you are. (You're also running a five year old version of Tomcat, which is a bit silly, considering all the security, performance, and other fixes that have gone in since then.) - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Wierd problem with Tomcat 5.59 running on Windows Server 2003
Perhaps there's something i'm overlooking, but i've decided to re-copy the entire folder over and now it seems like it wants to work (although it could be a config change, i'm not sure). So there is a resolution for now. ------ From: "ULS Tech Support" Sent: Sunday, March 14, 2010 8:31 PM To: "Tomcat Users List" Subject: Re: Wierd problem with Tomcat 5.59 running on Windows Server 2003 I'm aware that I'm running a five year old version of tomcat.I tried to upgrade to the latest 5.5 and 6.0 version, and trying to get my application to work on it didn't go so well.. I chose to abandon it for now due to time constraints. Ok, so what do you mean by I'm not running the Tomcat config that i thought i was? The application files are identical between the dev and the live server. In fact, i run the application fine on the dev computer, yet i try and run it (after copying all the files over) on the live server, and i still get this issue. There are other beans that this issue is happening on... Interestingly, i renamed the webapp application folder (to webapp2) and the issue happened there as well. I would appreciate some help, or perhaps i am not understanding something before it was copied over to this server and may need to just understand it more. Thanks. -- From: "Caldarale, Charles R" Sent: Sunday, March 14, 2010 8:03 PM To: "Tomcat Users List" Subject: RE: Wierd problem with Tomcat 5.59 running on Windows Server 2003 From: ULS Tech Support [mailto:tech_supp...@uls.com] Subject: Wierd problem with Tomcat 5.59 running on Windows Server 2003 Also, is there a place that tomcat will cache its servlets? No. You are most likely just not running the Tomcat configuration you think you are. (You're also running a five year old version of Tomcat, which is a bit silly, considering all the security, performance, and other fixes that have gone in since then.) - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Wierd problem with Tomcat 5.59 running on Windows Server 2003
That was one of the first things i did... The thing was, it wasn't a jsp file that was old, it was a class file... Very WEIRD :) Guess i'm used to the i before e except after c rule, and didn't think of it on the few exceptions. Including weird. -- From: "Oto Bossert" Sent: Monday, March 15, 2010 2:13 AM To: "Tomcat Users List" Subject: Re: Wierd problem with Tomcat 5.59 running on Windows Server 2003 Did you clear your work directory? Check it for old versions On 3/15/10, ULS Tech Support wrote: Perhaps there's something i'm overlooking, but i've decided to re-copy the entire folder over and now it seems like it wants to work (although it could be a config change, i'm not sure). So there is a resolution for now. ------ From: "ULS Tech Support" Sent: Sunday, March 14, 2010 8:31 PM To: "Tomcat Users List" Subject: Re: Wierd problem with Tomcat 5.59 running on Windows Server 2003 I'm aware that I'm running a five year old version of tomcat.I tried to upgrade to the latest 5.5 and 6.0 version, and trying to get my application to work on it didn't go so well.. I chose to abandon it for now due to time constraints. Ok, so what do you mean by I'm not running the Tomcat config that i thought i was? The application files are identical between the dev and the live server. In fact, i run the application fine on the dev computer, yet i try and run it (after copying all the files over) on the live server, and i still get this issue. There are other beans that this issue is happening on... Interestingly, i renamed the webapp application folder (to webapp2) and the issue happened there as well. I would appreciate some help, or perhaps i am not understanding something before it was copied over to this server and may need to just understand it more. Thanks. -- From: "Caldarale, Charles R" Sent: Sunday, March 14, 2010 8:03 PM To: "Tomcat Users List" Subject: RE: Wierd problem with Tomcat 5.59 running on Windows Server 2003 From: ULS Tech Support [mailto:tech_supp...@uls.com] Subject: Wierd problem with Tomcat 5.59 running on Windows Server 2003 Also, is there a place that tomcat will cache its servlets? No. You are most likely just not running the Tomcat configuration you think you are. (You're also running a five year old version of Tomcat, which is a bit silly, considering all the security, performance, and other fixes that have gone in since then.) - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Sent from my mobile device - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
[Ticket #597] Tomcat 7.0.37 issue on our Sun Sparc
This is a notification from the Help Desk. Ticket was assigned to Sudhindra Rao. On Feb 27, 2014 @ 08:36 am, it Support wrote: Assigned to Sudhindra Rao. ==Ticket History== On Feb 26, 2014 @ 09:33 pm, mx...@live.com wrote: Hi Konstantin, Thank you for the info! Jay -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Tuesday, February 25, 2014 6:08 PM To: Tomcat Users List Subject: Re: Tomcat 7.0.37 issue on our Sun Sparc 2014-02-24 22:42 GMT+04:00 Jay : > Hi Mark, > > Thank you for a quick response. > It looks the Tomcat 7.0.37 is ok with Solaris 10 on other Sun Sparc > machine ... could it be hardware related? > Do you have any suggestion for us to capture that possible Shutdown > command and/or possible SIGTERM? > 1. In the FAQ http://wiki.apache.org/tomcat/FAQ/Linux_Unix#Q3 -> "Tomcat dies after I log out!" 2. By the way, > We downloaded the apache-tomcat-7.0.37.tar.gz and just unpack it into /tmp. In some system configurations the files in /tmp and/or in /var/tmp are deleted after reboot. 3. It was not Shutdown command, because Tomcat 7 prints the following log message when that happens: "A valid shutdown command was received via the shutdown port." Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- This is an automated response. Your issue has been noted. We'll be in touch soon. Please reply to this email or visit the URL below with any additional details. http://swithelp.innoviti.com/portal/view-help-request/597 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
[Ticket #597] Tomcat 7.0.37 issue on our Sun Sparc
This is a notification from the Help Desk. Ticket closed by Sudhindra Rao. On Feb 27, 2014 @ 09:08 am, Sudhindra Rao wrote: Ticket closed. ==Ticket History== On Feb 27, 2014 @ 08:36 am, it Support wrote: Assigned to Sudhindra Rao. -- On Feb 26, 2014 @ 09:33 pm, mx...@live.com wrote: Hi Konstantin, Thank you for the info! Jay -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Tuesday, February 25, 2014 6:08 PM To: Tomcat Users List Subject: Re: Tomcat 7.0.37 issue on our Sun Sparc 2014-02-24 22:42 GMT+04:00 Jay : > Hi Mark, > > Thank you for a quick response. > It looks the Tomcat 7.0.37 is ok with Solaris 10 on other Sun Sparc > machine ... could it be hardware related? > Do you have any suggestion for us to capture that possible Shutdown > command and/or possible SIGTERM? > 1. In the FAQ http://wiki.apache.org/tomcat/FAQ/Linux_Unix#Q3 -> "Tomcat dies after I log out!" 2. By the way, > We downloaded the apache-tomcat-7.0.37.tar.gz and just unpack it into /tmp. In some system configurations the files in /tmp and/or in /var/tmp are deleted after reboot. 3. It was not Shutdown command, because Tomcat 7 prints the following log message when that happens: "A valid shutdown command was received via the shutdown port." Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- This is an automated response. Your issue has been noted. We'll be in touch soon. Please reply to this email or visit the URL below with any additional details. http://swithelp.innoviti.com/portal/view-help-request/597 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
[Ticket #603] Filter behaviour ( settinf Content-Length header )
This is a notification from the Help Desk. Ticket was assigned to Sudhindra Rao. On Feb 27, 2014 @ 02:10 pm, it Support wrote: Assigned to Sudhindra Rao. ==Ticket History== On Feb 27, 2014 @ 01:43 pm, demablo...@gmail.com wrote: Hello: I'm using Tomcat 6.0.24 and I'm testing how to return Content-Length header So I've defined a Filter and declared in web.xml of my web application If I do this: HttpServletResponse httpResponse = (HttpServletResponse) response; chain.doFilter(request, response); httpResponse.setHeader("Content-Length", "200"); doesn't work ( it doesn't set the header and Transfer-Encoding:chunked is returned ) ) but HttpServletResponse httpResponse = (HttpServletResponse) response; httpResponse.setHeader("Content-Length", "200"); chain.doFilter(request, response); does and it works OK Why ? Does anyone use a filter to set Content-Length header ? Must I declared in web.xml of Tomcat ? Regards - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- This is an automated response. Your issue has been noted. We'll be in touch soon. Please reply to this email or visit the URL below with any additional details. http://swithelp.innoviti.com/portal/view-help-request/603 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
[Ticket #603] Filter behaviour ( settinf Content-Length header )
This is a notification from the Help Desk. Ticket closed by Sudhindra Rao. On Feb 27, 2014 @ 02:16 pm, Sudhindra Rao wrote: Ticket closed. ==Ticket History== On Feb 27, 2014 @ 02:10 pm, it Support wrote: Assigned to Sudhindra Rao. -- On Feb 27, 2014 @ 01:43 pm, demablo...@gmail.com wrote: Hello: I'm using Tomcat 6.0.24 and I'm testing how to return Content-Length header So I've defined a Filter and declared in web.xml of my web application If I do this: HttpServletResponse httpResponse = (HttpServletResponse) response; chain.doFilter(request, response); httpResponse.setHeader("Content-Length", "200"); doesn't work ( it doesn't set the header and Transfer-Encoding:chunked is returned ) ) but HttpServletResponse httpResponse = (HttpServletResponse) response; httpResponse.setHeader("Content-Length", "200"); chain.doFilter(request, response); does and it works OK Why ? Does anyone use a filter to set Content-Length header ? Must I declared in web.xml of Tomcat ? Regards - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- This is an automated response. Your issue has been noted. We'll be in touch soon. Please reply to this email or visit the URL below with any additional details. http://swithelp.innoviti.com/portal/view-help-request/603 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
java.lang.Class.getResourceAsStream() throws ClassCastException
Hi, During initilization of my c3p0 connection pool by hibernate the below printed exception occurs. The exception causes a failure in the c3p0 initilization and thus hibernate and my application. Does anyone know what might cause this behavour? The folowing bugs describe a similair problem. But these seem to talk about loading a directory, and not a .class file as is the case in my situation. http://issues.apache.org/bugzilla/show_bug.cgi?id=3855 http://issues.apache.org/bugzilla/show_bug.cgi?id=5869 http://issues.apache.org/bugzilla/show_bug.cgi?id=4830 The stack trace -- java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance (Constructor.java:494) at com.jsportal.projectportal._config.(_config.java:158) at com.jsportal.projectportal.applicationConfig. (applicationConfig.java:119) at com.jsportal.projectportal.web.webApplicationConfig. (webApplicationConfig.java:85) at com.jsportal.projectportal.web.ApplicationStartupServlet.setUpApplicatio n(ApplicationStartupServlet.java:123) at com.jsportal.projectportal.web.ApplicationStartupServlet.init (ApplicationStartupServlet.java:53) at org.apache.catalina.core.StandardWrapper.load (StandardWrapper.java:852) at org.apache.catalina.core.StandardContext.loadOnStartup (StandardContext.java:3267) at org.apache.catalina.core.StandardContext.start (StandardContext.java:3384) at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start (StandardHost.java:612) at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start (StandardEngine.java:307) at org.apache.catalina.core.StandardService.start (StandardService.java:388) at org.apache.catalina.core.StandardServer.start (StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute (Catalina.java:681) at org.apache.catalina.startup.Catalina.process (Catalina.java:179) at 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:243) Caused by: java.lang.ExceptionInInitializerError at com.mchange.v2.c3p0.PoolConfig.(PoolConfig.java:93) at org.hibernate.connection.C3P0ConnectionProvider.configure (C3P0ConnectionProvider.java:84) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider (ConnectionProviderFactory.java:124) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider (ConnectionProviderFactory.java:56) at org.hibernate.cfg.SettingsFactory.createConnectionProvider (SettingsFactory.java:366) at org.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:60) at org.hibernate.cfg.Configuration.buildSettings (Configuration.java:1859) at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1152) at com.jsportal.projectportal.transactionManagement.HibernateResource.(HibernateResource.java:45) ... 26 more Caused by: java.lang.ClassCastException: org.apache.naming.resources.FileDirContext at org.apache.catalina.loader.WebappClassLoader.findResourceInternal (WebappClassLoader.java:1585) at org.apache.catalina.loader.WebappClassLoader.findResource (WebappClassLoader.java:914) at org.apache.catalina.loader.WebappClassLoader.getResourceAsStream (WebappClassLoader.java:) at java.lang.Class.getResourceAsStream(Class.java:1998) at com.mchange.v2.cfg.BasicMultiPropertiesConfig. (BasicMultiPropertiesConfig.java:48) at com.mchange.v2.cfg.BasicMultiPropertiesConfig. (BasicMultiPropertiesConfig.java:39) at com.mchange.v2.cfg.MultiPropertiesConfig.read (MultiPropertiesConfig.java:64) at com.mchange.v2.cfg.MultiPropertiesConfig.readVmConfig (MultiPropertiesConfig.java:73) at com.mchange.v2.log.MLog.(MLog.java:48) ... 35 more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]