Re: Where is the stratum package?
Thanks. Shapira, Yoav wrote: Hi, Stratum is a jakarta turbine (http://jakarta.apache.org/turbine/) package. Yoav Shapira Millennium Research Informatics -Original Message- From: Alex Chen [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 10:15 PM To: Tomcat Users List Subject: Where is the stratum package? I got the following error message in my tomcat log file. I am using Axis under Tomcat and create a servlet that extends AxisServlet 2004-03-24 18:33:07 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] 2004-03-24 18:33:08 StandardContext[/axis]StandardWrapper.Throwable java.lang.NoClassDefFoundError: org/apache/stratum/lifecycle/Initializable at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCl assL oader.java:1677) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoade r.ja va:900) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade r.ja va:1350) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade r.ja va:1230) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at com.packetmotion.trinity.gsm.main.GsmServlet.init(Unknown Source) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NoClassDefFoundError: javax/mail/Address
activation.jar mailapi.jar make sure these are in your $CATALINA_HOME$/common/lib On Wed, 24 Mar 2004, [Windows-1252] Honza Spurný wrote: Date: Wed, 24 Mar 2004 12:33:17 +0100 From: [Windows-1252] Honza Spurný [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [Windows-1252] Honza Spurný [EMAIL PROTECTED] To: Tomcat Maillisting [EMAIL PROTECTED] Subject: java.lang.NoClassDefFoundError: javax/mail/Address - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where is the stratum package?
I got the following error message in my tomcat log file. I am using Axis under Tomcat and create a servlet that extends AxisServlet 2004-03-24 18:33:07 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] 2004-03-24 18:33:08 StandardContext[/axis]StandardWrapper.Throwable java.lang.NoClassDefFoundError: org/apache/stratum/lifecycle/Initializable at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1677) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:900) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1350) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at com.packetmotion.trinity.gsm.main.GsmServlet.init(Unknown Source) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using JNDI/DBCP to get DataSouce
This is what version? I have issues still with 5.0.19 but my connection pools still work despite the error being thrown in the log...does your pool just not work at all? On Wed, 17 Mar 2004, Paul Mahoney wrote: Date: Wed, 17 Mar 2004 16:24:08 - From: Paul Mahoney [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: 'Parsons Technical Services' [EMAIL PROTECTED], 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Problem using JNDI/DBCP to get DataSouce Here goes Cut and paste, but blanked out the password bits. I hope your eyes can spy the problem. I assume you have this working :) Server.xml (the Context bit) - Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=0 displayName=Custom Fares docBase=C:/Documents and Settings/pmahoney/My Documents/Travel 2/code/webapps/CustomFares/web mapperClass=org.apache.catalina.core.StandardContextMapper path=/CustomFares privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Resource name=jdbc/OscarsDB scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/OscarsDB parameter namevalidationQuery/name valueselect count(*) from systables/value /parameter parameter nameurl/name valuejdbc:informix-sqli://oscar1.travel2.com:1420/oscars:INFORMIXSERVER=os cars_dbsrv/value /parameter parameter namepassword/name value??/value /parameter parameter namemaxActive/name value4/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namedriverClassName/name valuecom.informix.jdbc.IfxDriver/value /parameter parameter nameusername/name valuesy5t3m/value /parameter parameter namemaxIdle/name value2/value /parameter /ResourceParams /Context - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to configure to give access to clients
what type of access? On Fri, 12 Mar 2004, xavier manohar wrote: Date: Fri, 12 Mar 2004 09:32:43 + (GMT) From: xavier manohar [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: how to configure to give access to clients Hallo, I am a newbie for tomcat 4.1.29.I have deployed tomcat4.1.29 successfully.The help I need is how to cofigure tomcat to give access to a client .I have configured only to localhost. Thankx in advance . regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why do I need to restart my server
This works with most except for oracle which uses select 1 from dual parameter namevalidationQuery/name valueselect 1/value /parameter On Wed, 10 Mar 2004 [EMAIL PROTECTED] wrote: Date: Wed, 10 Mar 2004 16:49:21 +0530 From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Why do I need to restart my server Hi, Every time my database server connection goes down, I need to restart my Tomcat 5.0.19 to re-establish the connection. Why is this so? Is this a bug? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why do I need to restart my server
Sent this a little too early. The reason for the validation query is that if it fails, it will restablish the connection. On Wed, 10 Mar 2004, Alex wrote: Date: Wed, 10 Mar 2004 07:26:26 -0500 (EST) From: Alex [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Why do I need to restart my server This works with most except for oracle which uses select 1 from dual parameter namevalidationQuery/name valueselect 1/value /parameter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL Doesn't Stay SSL
all the images and all content must be provided from the https link or else you'll loose the lock. On Wed, 10 Mar 2004, John Thompson wrote: Date: Wed, 10 Mar 2004 08:58:34 -0600 From: John Thompson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: SSL Doesn't Stay SSL I'm having a problem where I want users to connect to my servlet with SSL but I can't get it to maintain an SSL connection. The first page of the servlet is encrypted but when I navigate to the second and other pages, the browser no longer shows the lock icon. The URL is still the https:// URL. I am using the AJP connector through Apache 2 and the SSL stuff all works with flat content on the Apache server. I'm running 4.1.27 Tomcat. I don't know what other info might be helpful. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hiding Apache-Coyote/1.1 banner in Tomcat 5
Lots of scripts out there for little script kiddies to run simply look at banners of different services to determine their worth in attempting to run an exploit against to gain access. By changing banners it helps to remove a good chunk of exploits that are out there. It also promotes laziness amongst system admin's ... :) On Mon, 8 Mar 2004, James Agnew wrote: Date: Mon, 8 Mar 2004 23:19:59 +0100 From: James Agnew [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Hiding Apache-Coyote/1.1 banner in Tomcat 5 I just like to reduce as much as possible the amount of information that a server gives out. Letting oppotunist crackers, who run a 1 minute nessus scan, know the version and type of the webserver, should IMO be avoided if possible. Sure, it won't put-off the determined cracker, but it might force some to move onto easier prey. Anyway, back to the matter in hand - do you know how one might go about this? Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: clustering question?
Aadi, do you have this working properly with 5.0.19? I can't get session replication to work. I see lots of errors in my catalina.out request.registerRequests=false i added this to jk2.properties to stop the error messages. On Tue, 9 Mar 2004, Aadi Deshpande wrote: Date: Tue, 09 Mar 2004 11:41:43 -0500 From: Aadi Deshpande [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: clustering question? Hi, You're changing the wrong port. You should not change the mcastPort, instead you should change the tcpListenPort The mcastPort and mcastAddr should be the same for every instance participating in the cluster. Also, as a word of advice, it's best to keep the cluster size down to 2-3 ( and at most 4 ). we've had a lot of trouble with larger cluster sizes, not because of any fault of the cluster manager, just that it's a huge (network/memory ) resource hog having all your sessions replicated six times over. Of course, this is only for our case so YMMV. hth, -a - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: clustering question?
Mar 9, 2004 6:45:28 PM org.apache.jk.common.HandlerRequest decodeRequest WARNING: Error registering request This occurs when I uncomment the jk2.property noted below. All the classes that could/do/will/would get stored to session are serializable. I have two exact machines running rh 9.0 with java version 1.4.2_03 and running tomcat 5.0.19 from server.xml: Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false debug=4 useDirtyFlag=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastPort=45564 mcastFrequency=500 debug=4 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=10.99.116.2 tcpListenPort=4001 tcpSelectorTimeout=100 debug=4 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter debug=4 replicationMode=asynchronous/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve debug=4 filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/ /Cluster From the other server set up identically (same code, same confs -- different ip) Mar 9, 2004 6:45:08 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberDisappeared INFO: Received member disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://10.99.116.2:4001,10.99.116.2,4001, alive=384926336] Mar 9, 2004 6:45:09 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.99.116.2:4001,10.99.116.2,4001, alive=18] Mar 9, 2004 6:45:09 PM org.apache.catalina.cluster.tcp.AsyncSocketSender init INFO: Started async sender thread for TCP replication. On Tue, 9 Mar 2004, Filip Hanik (lists) wrote: Date: Tue, 9 Mar 2004 12:17:31 -0600 From: Filip Hanik (lists) [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: clustering question? request.registerRequests=false is related to jk2 and not to session replication. what is your problem with session replication? Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: clustering question?
I put the export LD_ASSUME_KERNEL=2.4 in my startup.sh which is called and still get: Mar 9, 2004 7:11:22 PM org.apache.jk.common.HandlerRequest decodeRequest WARNING: Error registering request Thanks for the suggestion though. I've been reading and googlin' for a week now... On Tue, 9 Mar 2004, Filip Hanik (lists) wrote: Date: Tue, 9 Mar 2004 13:04:00 -0600 From: Filip Hanik (lists) [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: clustering question? on RH9, you MUST set export LD_ASSUME_KERNEL=2.4 before starting your Java process. There is a bug in the java.nio package Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: clustering question?
Once I can get it working i'll be playing and see what suits the application setup best. On Tue, 9 Mar 2004, Filip Hanik (lists) wrote: Date: Tue, 9 Mar 2004 13:04:31 -0600 From: Filip Hanik (lists) [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: clustering question? I also stronly recommend using pooled as a replication mode, it is fast and guaranteed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: clustering question?
jk2 is only being utilized to provide the connection between IIS5.0 and tomcat using ajp13. when i've been testing, this is going direct to tomcats port 8080 and utilizing the tomcat web server. if i understand it properly, when the session is instantiated on one server, it's replicated via tcp to the other's that are listening and added to the pool that's been discovered by the multicast. correct? On Tue, 9 Mar 2004, Filip Hanik (lists) wrote: Date: Tue, 9 Mar 2004 13:34:45 -0600 From: Filip Hanik (lists) [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: clustering question? to get session replication working, take jk2 out of the equation first. use a loadbalancer like balance (balance.sourceforge.net) or pen (siag.nu) Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: clustering question?
my box isn't pretty. i've also had some other weirdness which others haven't experienced. some odd jndi errors, rah rah rah. anyways, it doesn't work. between this and not being able to get jk2 to do sticky sessions, i'm going nuts. have two different routes to go and neither are working. *sigh* On Tue, 9 Mar 2004, Filip Hanik (lists) wrote: Date: Tue, 9 Mar 2004 13:44:08 -0600 From: Filip Hanik (lists) [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: clustering question? that is correct, should work out of the box :) Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: clustering question?
log4j for the application. i really don't believe replication is occuring. i see nothing in the application logs, localhost_log or catalina.out aside from the error On Tue, 9 Mar 2004, Aadi Deshpande wrote: Date: Tue, 09 Mar 2004 16:29:36 -0500 From: Aadi Deshpande [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: clustering question? Hi, The register requests error is independent of the cluster setup ( like Filip said ) and will in no way affect it. Beyond that, the register requests error is completely harmless ( see http://www.mail-archive.com/[EMAIL PROTECTED]/msg119877.html ) and does not prevent me from providing stickySessions or clustering. You should enable logging for the package org.apache.catalina.cluster ( i use JDK14 logging so ask me if that's what you're using ) to see if replication is occurring. hth, -a - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jdbc errors
Now, after much reading, I still haven't found an explanation or a fix for my other nagging problem. When the application starts up, an error is thrown as follows: error getting data source java:comp/env/jdbc/XXX -- chained exception is: Name jdbc is not bound in this Context javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:815) at org.apache.naming.NamingContext.lookup(NamingContext.java:185) Now, the data source XXX is very much accessible by the application. Everything is defined for this webapp in : $CATALINA_HOME$/conf/Catalina/localhost/myapp.xml Resource name=jdbc/XXX type=javax.sql.DataSource/ ResourceParams name=jdbc/XXX ... /ResourceParams Everything works, just well, log files aren't clean. I've seen this be a problem for lots of people but I haven't been able to rectify it for myself with 5.0.19 -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: clustering question?
Filip, thanks for the reply. I do indeed have that tag in web.xml for that web application. session-config session-timeout40/session-timeout /session-config distributable/ /web-app this is correct, yes? On Tue, 9 Mar 2004 [EMAIL PROTECTED] wrote: Date: Tue, 9 Mar 2004 22:36:10 -0500 (EST) From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: clustering question? like many other people, you probably don't have the element distributable/ in your web.xml Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: IIS + Tomcat 4.1.x + Load Balancing with session affinity (s ticky sessions) possible ?
New code in cvs i've found for jk2 isapi fll for IIS5 does support sticky sessions going to multiple tomcat instances using ajp13. All my attempts to check out and compile it into a dll though have failed. On Mon, 8 Mar 2004 [EMAIL PROTECTED] wrote: Date: Mon, 8 Mar 2004 13:16:20 +0100 From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: AW: IIS + Tomcat 4.1.x + Load Balancing with session affinity (s ticky sessions) possible ? Thanks, but that is exactly what I need to know. We can't replicate sessions coz our crap Framework can't serialize the sessions. So we depend on sticky sessions to get to the right worker. I thought the code for mod_jk and isapi redirector is quite similar or equal, apart from the interface bit, of cause. So why doesn't it work on IIS ? How do these sticky sessions work anyway ? Is there a docu or will I have to go through the source ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with tomcat shutdown on solaris
I have experienced the same since upgrading from 5.0.18 to 5.0.19 -- although i did see some weirdness and reported it as a bug http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27251 i still have to kill the pid after i try the shutdown. it being not clean also means that the sessions aren't being persisted to file. On 5 Mar 2004, Daniel Savard wrote: I am experiencing this kind of problem; background threads still running after the shutdown script has successfully exited. I just added a few lines in my own script to grep all those processes and signalled them. However, I must say I also have another server on which the shutdown is clean. I don't have time to investigate further this problem. On both servers I am using Tomcat 5.0.19. They are both Redhat Linux machines (but different kernel level and some other packages are not at the same level). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Suggestion on where to put mysql driver
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html Depends on how you want it exposed and what you are doing with it. There's a plethora of documentation online. common/lib will be exposed to all your webapps. On Fri, 5 Mar 2004, Simone - Dev wrote: Date: Fri, 5 Mar 2004 17:32:47 +0100 From: Simone - Dev [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: Suggestion on where to put mysql driver hello all, I'm installing a new server and I'd like know where should I put the mysql jdbc driver. In all my other server I installed them in the $JAVA_HOME/jre/lib/ext But I suppose this is not the best position for it. Where do u suggest to put it? Common Shared in each webapp WEB-INF/lib Thank you Simone - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mac internet explorer issues
Hello, Has anyone noticed any problems with usebean tags with I.E. 5.2 on MAC? for some reason, session variables are coming thru. however, if i use regular request.getAttribute() all is well. alex korneyev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Serving static content in tomcat 5
OK that makes sense and I've tested it and you're right. I have a directory structure like this (everything over SSL): .../webapps/theWebApp/ .../webapps/theWebApp/certs and in the .../webapps/theWebApp/ directory I have a file called main.html that has a link to https://servername/theWebApp/certs/CACert.cer and when I click it it will not allow me to save it or access it at all. However, if I put a test file in the /certs directory called hi.html, I can access that via https://servername/theWebApp/certs/hi.html I have checked my tomcatHome/conf/web.xml and there is a mime mapping for .cer files. What gives? Thanks a lot for the help! -Alex --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, I tried adding a Context to the webappBase\WEB-INF\web.xml file: A context IS a web application: it's a one to one relationship. But it doesn't seem to work. Can someone please point me in the right direction to serve static content / files? You don't need to configure tomcat to serve static content, it does so automatically. You just need to place the static content in your webapp. Yoav Shapira __ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using HTTPS with keystore and trust store files
Thanks, Rommel, Rommel Sharma wrote: What I can say is this: 1. In keystoreFile attribute provide the complete path (C:\MyCertFolder\mykeystore.ks) Same for truststore. 2. Where do I specify the file that store the client's certificate? In your client code that makes a call to the https specify the location of the keystore and in the server side code that you will will write, get the message context (someting like: MessageContext context = MessageContext.getCurrentContext(); ... HttpServletRequest req = (HttpServletRequest)context .getProperty (HTTPConstants.MC_HTTP_SERVLETREQUEST); // and the code to match the client certificate with the client keystore on the server // so you specify its location on the server having the same client keystore... ) Hope this helps, Regards, Rommel. - Original Message - From: Alex Chen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 11:30 PM Subject: Using HTTPS with keystore and trust store files Hi, I am trying to set up Tomcat for HTTPS connection with keystore and truststore files. I want to use Tomcat as the web server so the port number is 80 and 443 for HTTP and HTTPS, respectively. I am running Tomcat on Windows XP. Here is the 'Connector' entry in %CATALINA_HOME%\conf\server.xml. Connector port=443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=true sslProtocol=TLS keystoreFile=server.ks keystoreType=JCEKS keystorePass=changeit truststoreFile=server.ts truststoreType=JCEKS /Connector When I start tomcat, I get the following error: java.io.FileNotFoundException: server.ks (The system cannot find the file specif ied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:106) at java.io.FileInputStream.init(FileInputStream.java:66) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocket Factory.java:262) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESoc ketFactory.java:232) .. I tried to put the file in different places, the user's home directory in C:\Documents and Settings\%user%\, %CATALINA_HOME%\, %CATALINA_HOME%\webapps, %CATALINA_HOME%\webapps\ROOT, but they all failed. My questions are: 1. Where should the keystore file be stored if I set the 'keystoreFile' attribute in Connector element? 2. If I set 'clientAuth' to true, shouldn't there be a place to store the the client's certificate, i.e. the truststore? Where do I specify the file that store the client's certificate? I saw the truststoreFile attribute in an example from http://www.j2ee-security.net/book/sample-chap/ It sets this attribute in a 'Factory' subelement. But that is for Tomcat 4.X. Any help is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. * Visit us at http://www.mahindrabt.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using HTTPS with keystore and trust store files
Hi, I am trying to set up Tomcat for HTTPS connection with keystore and truststore files. I want to use Tomcat as the web server so the port number is 80 and 443 for HTTP and HTTPS, respectively. I am running Tomcat on Windows XP. Here is the 'Connector' entry in %CATALINA_HOME%\conf\server.xml. Connector port=443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=true sslProtocol=TLS keystoreFile=server.ks keystoreType=JCEKS keystorePass=changeit truststoreFile=server.ts truststoreType=JCEKS /Connector When I start tomcat, I get the following error: java.io.FileNotFoundException: server.ks (The system cannot find the file specif ied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:106) at java.io.FileInputStream.init(FileInputStream.java:66) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocket Factory.java:262) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESoc ketFactory.java:232) .. I tried to put the file in different places, the user's home directory in C:\Documents and Settings\%user%\, %CATALINA_HOME%\, %CATALINA_HOME%\webapps, %CATALINA_HOME%\webapps\ROOT, but they all failed. My questions are: 1. Where should the keystore file be stored if I set the 'keystoreFile' attribute in Connector element? 2. If I set 'clientAuth' to true, shouldn't there be a place to store the the client's certificate, i.e. the truststore? Where do I specify the file that store the client's certificate? I saw the truststoreFile attribute in an example from http://www.j2ee-security.net/book/sample-chap/ It sets this attribute in a 'Factory' subelement. But that is for Tomcat 4.X. Any help is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems getting Tomcat 5.0.18 to work with IIS 5
This one did the trick. It fixed something or caught something that I missed. However, now I have to figure out why .jsp pages won't compile. It complains no java compiler is installed even though I have path, classpath, and javahome set to the java directory. Anyone experience that problem? Alex. - Original Message - From: Michael Südkamp [EMAIL PROTECTED] To: 'Alex L.' [EMAIL PROTECTED]; 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, February 13, 2004 1:27 AM Subject: AW: Problems getting Tomcat 5.0.18 to work with IIS 5 The online docs are not clear. You can use the JK2/IIS setup provided here http://www.shiftomat.com/opensource/ Michael -Ursprüngliche Nachricht- Von: Alex L. [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 12. Februar 2004 18:43 An: Tomcat Users List Betreff: Problems getting Tomcat 5.0.18 to work with IIS 5 I'm having some issues gettin tomcat 5.0.18 to work with win2k IIS 5. I've followed the guides online and have everything apparently set up. Tomcat works, IIS works, but IIS refuses to load .jsp files as if it can't find them. Any help is greatly appreciated! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems compiling new .jsp's with tomcat
I keep getting: No Java compiler was found to compile the generated source for the JSP. This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK to the common/lib directory of the Tomcat server, followed by a Tomcat restart. If using an alternate Java compiler, please check its installation and access path. When ever I try to execute a test.jsp file. html body Hello! The time is now %= new java.util.Date() % /body /html I have my PATH and CLASSPATH for both user and system to C:\Program Files\Java\j2re1.4.2_03;C:\Program Files\Java\j2re1.4.2_03/bin and JAVA_HOME to C:\Program Files\Java\j2re1.4.2_03 No tools.jar on windows. Alex - Original Message - From: Alex L. [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, February 13, 2004 2:24 PM Subject: Re: Problems getting Tomcat 5.0.18 to work with IIS 5 This one did the trick. It fixed something or caught something that I missed. However, now I have to figure out why .jsp pages won't compile. It complains no java compiler is installed even though I have path, classpath, and javahome set to the java directory. Anyone experience that problem? Alex. - Original Message - From: Michael Südkamp [EMAIL PROTECTED] To: 'Alex L.' [EMAIL PROTECTED]; 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, February 13, 2004 1:27 AM Subject: AW: Problems getting Tomcat 5.0.18 to work with IIS 5 The online docs are not clear. You can use the JK2/IIS setup provided here http://www.shiftomat.com/opensource/ Michael -Ursprüngliche Nachricht- Von: Alex L. [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 12. Februar 2004 18:43 An: Tomcat Users List Betreff: Problems getting Tomcat 5.0.18 to work with IIS 5 I'm having some issues gettin tomcat 5.0.18 to work with win2k IIS 5. I've followed the guides online and have everything apparently set up. Tomcat works, IIS works, but IIS refuses to load .jsp files as if it can't find them. Any help is greatly appreciated! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems getting Tomcat 5.0.18 to work with IIS 5
I'm having some issues gettin tomcat 5.0.18 to work with win2k IIS 5. I've followed the guides online and have everything apparently set up. Tomcat works, IIS works, but IIS refuses to load .jsp files as if it can't find them. Any help is greatly appreciated! Here is my setup: Tomcat installation Dir: C:\Program Files\Tomcat 5.0\ JK2.properties file ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list # handler.list=apr,request,channelJni # # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess Workers2.properties file - [shm:] info=Shared memory file. Required for multiprocess servers file=D:\Program Files\tomcat 5.0\work\jk2.shm size=1048576 [channel.socket:localhost:8009] info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol tomcatId=localhost:8009 [uri:/*.jsp] info=All JSP context=/ [uri:/jsp-examples/*] info=JSP examples, map requests for all JSP pages to Tomcat. context=/jsp-examples [uri:/servlets-examples/*] info=Servlet examples, map requests for all servlets to Tomcat. context=/servlets-examples - ISAPI File: isapi_redirector2.dll in C:\Program Files\Tomcat 5.0\bin\win32\i386 IIS has isapi file loaded for default website and its a green arrow up with High settings. Registry file: --- Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] workersFile=c:\\Program Files\\tomcat 5.0\\conf\\workers2.properties extensionUri=/jakarta/isapi_redirector2.dll logLevel=debug serverRoot=c:\\Program Files\\tomcat 5.0\\ http://localhost:8080/jsp-examples/ works and loads jsp files http://localhost/jsp-examples/doesn't work http://localhost/jakarta/jsp-examples/ doesn't work. Thanks, Alex Letichevsky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Alias in tomcat
Hello, In apache there is a directive Alias Alias /users/ c:/somedirectory/ Directory c:/somedirectory/ Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all /Directory which basically says that any requests that start with /users/ are based out of that directory. now, my workers.properties for mod_jk2 has a mapping [uri:/*] worker=ajp13:localhost:8009 it HAS to be this way. So, in tomcat, can i do the same thing as Alias in apache? alex k. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
preloading JSPs
Hello, all of my .jsp files are located on a network drive, so it takes much longer for them to be compiled the first time around. So, is there an option in 4.1.29 to preload and pre compile all the .jsp fles on start up? best regards, alex k - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java keeps crashing. any ideas?
I keep getting this. i am running on linux 7.3 any idea how to research this problem? Unexpected Signal : 11 occurred at PC=0x4ED2FA Function=(null)+0x4ED2FA Library=/usr/java/j2sdk1.4.2_03/jre/lib/i386/client/libjvm.so NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Dynamic libraries: 0011-00122000 r-xp 08:03 3654116/lib/ld-2.2.5.so 00122000-00123000 rw-p 00012000 08:03 3654116/lib/ld-2.2.5.so 00123000-00127000 rw-s 08:03 4571200/tmp/hsperfdata_root/4583 00127000-0012a000 r--s 08:03 8618347 /usr/java/j2sdk1.4.2_03/jre/lib/ext/dnsns.jar 0012b000-00139000 r-xp 08:03 3653726/lib/libpthread-0.9.so 00139000-0014 rw-p e000 08:03 3653726/lib/libpthread-0.9.so 00141000-00143000 r-xp 08:03 3653721/lib/libdl-2.2.5.so 00143000-00144000 rw-p 1000 08:03 3653721/lib/libdl-2.2.5.so 00144000-00262000 r-xp 08:03 3653641/lib/libc-2.2.5.so 00262000-00267000 rw-p 0011e000 08:03 3653641/lib/libc-2.2.5.so 0026b000-00665000 r-xp 08:03 5179276 /usr/java/j2sdk1.4.2_03/jre/lib/i386/client/libjvm.so 00665000-00681000 rw-p 003f9000 08:03 5179276 /usr/java/j2sdk1.4.2_03/jre/lib/i386/client/libjvm.so 00693000-006a4000 r-xp 08:03 3653649/lib/libnsl-2.2.5.so 006a4000-006a5000 rw-p 00011000 08:03 3653649/lib/libnsl-2.2.5.so 006a7000-006c7000 r-xp 08:03 3653722/lib/libm-2.2.5.so 006c7000-006c8000 rw-p 0001f000 08:03 3653722/lib/libm-2.2.5.so 006c8000-006d r-xp 08:03 8128287 /usr/java/j2sdk1.4.2_03/jre/lib/i386/native_threads/libhpi.so 006d-006d1000 rw-p 7000 08:03 8128287 /usr/java/j2sdk1.4.2_03/jre/lib/i386/native_threads/libhpi.so 006d1000-006da000 r-xp 08:03 3653665/lib/libnss_files-2.2.5.so 006da000-006db000 rw-p 8000 08:03 3653665/lib/libnss_files-2.2.5.so 006db000-006eb000 r-xp 08:03 5179350 /usr/java/j2sdk1.4.2_03/jre/lib/i386/libverify.so 006eb000-006ed000 rw-p f000 08:03 5179350 /usr/java/j2sdk1.4.2_03/jre/lib/i386/libverify.so 006ed000-0070d000 r-xp 08:03 5179336 /usr/java/j2sdk1.4.2_03/jre/lib/i386/libjava.so 0070d000-0070f000 rw-p 0001f000 08:03 5179336 /usr/java/j2sdk1.4.2_03/jre/lib/i386/libjava.so 0070f000-00723000 r-xp 08:03 5179351 /usr/java/j2sdk1.4.2_03/jre/lib/i386/libzip.so 00723000-00726000 rw-p 00013000 08:03 5179351 /usr/java/j2sdk1.4.2_03/jre/lib/i386/libzip.so 00726000-007ff000 r--s 08:03 9257184 /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/endorsed/xercesImpl.jar 007ff000-0081e000 r--s 08:03 9257185 /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/endorsed/xmlParserAPIs.jar 00868000-0087e000 r--s 08:03 6013950 /usr/java/j2sdk1.4.2_03/jre/lib/sunrsasign.jar 0087e000-00959000 r--s 08:03 6013949 /usr/java/j2sdk1.4.2_03/jre/lib/jsse.jar 00959000-0096a000 r--s 08:03 6013941 /usr/java/j2sdk1.4.2_03/jre/lib/jce.jar 0096a000-00ec3000 r--s 08:03 6013942 /usr/java/j2sdk1.4.2_03/jre/lib/charsets.jar 010ce000-010f9000 r--p 08:03 5308453 /usr/lib/locale/en_US.iso885915/LC_CTYPE 010f9000-010ff000 r--s 08:03 4653238/usr/lib/gconv/gconv-modules.cache 010ff000-0110c000 r--s 08:03 8618348 /usr/java/j2sdk1.4.2_03/jre/lib/ext/ldapsec.jar 0110c000-011c8000 r--s 08:03 8618356 /usr/java/j2sdk1.4.2_03/jre/lib/ext/localedata.jar 011c8000-011e4000 r--s 08:03 8618350 /usr/java/j2sdk1.4.2_03/jre/lib/ext/sunjce_provider.jar 011e4000-016c r--s 08:03 8618358/usr/java/j2sdk1.4.2_03/lib/tools.jar 016c-016c7000 r--s 08:03 262435 /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/bin/bootstrap.jar 016c7000-016ca000 r--s 08:03 262434 /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/bin/commons-daemon.jar 016ca000-016de000 r--s 08:03 8634579 /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/lib/servlet.jar 016de000-01723000 r--s 08:03 8634580 /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/lib/mail.jar 01723000-01728000 r--s 08:03 8634581 /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/lib/commons-logging-api.jar 01728000-01751000 r--s 08:03 8634582 /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/lib/commons-collections.jar 01751000-01766000 r--s 08:03 8634583 /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/lib/jdbc2_0-stdext.jar 01766000-0176e000 r--s 08:03 8634584 /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/lib/commons-pool.jar 0176e000-0179b000 r--s 08:03 8634585 /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/common/lib/jasper-compiler.jar 0179b000-017a r--s 08:03 8634586
JSPC Jasper compiler crash.
Does anyone know why the JSPC Jasper compiler would throw a null exception on the following file. Within Tomcat 4.0,4.1,5.0 it works fine. However, pre-compiling it causes it to throw a exception as follows. The significant feature of the JSP file is that it uses a custom taglib. Do I have to somehow give the japser compiler special options to locate the taglib, or does it work it out from the normal taglib definitions in the application's filesystem. The JSP file: %@ taglib prefix=ihook uri=/ihook % %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % table width=80% border=0 tr tdihook:calendar baseURL=list.jsp?location=${webApp.webRoomBooking.location} month=${webApp.webRoomBooking.prevMonth} highlight=${webApp.webRoomBooking.date} left=-3/ /td tdihook:calendar baseURL=list.jsp?location=${webApp.webRoomBooking.location} month=${webApp.webRoomBooking.date} highlight=${webApp.webRoomBooking.date}/ /td tdihook:calendar baseURL=list.jsp?location=${webApp.webRoomBooking.location} month=${webApp.webRoomBooking.nextMonth} highlight=${webApp.webRoomBooking.date} right=3/ /td /tr /table The ant build tag is:jspc: target name=jspc depends=init taskdef classname=org.apache.jasper.JspC name=jasper2 classpath id=jspc.classpath pathelement location=${java.home}/../lib/tools.jar/ fileset dir=${TOMCAT}/server/lib include name=*.jar/ /fileset fileset dir=${TOMCAT}/common/lib include name=*.jar/ /fileset /classpath /taskdef echo message=Tomcat is ${TOMCAT}/ jasper2 validateXml=false uriroot=${SRC} webXmlFragment=${SRC}/WEB-INF/generated_web.xml outputDir=${SRC}/WEB-INF/src / /target The verbose output is: [echo] Tomcat is F:/Tomcat4.1 [jasper2] Error in class org.apache.jasper.JspC 2003-12-01 11:06:36 - ERROR-the file '\roombooking\dates.jsp' generated the following general exception: java.lang.NullPointerException BUILD FAILED file:D:/Alex/Release/iHookWeb/build.xml:68: org.apache.jasper.JasperException: Error compiling \roombooking\dates.jsp at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193) at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1339) at org.apache.tools.ant.Project.executeTargets(Project.java:1255) at org.apache.tools.ant.Main.runBuild(Main.java:609) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) Caused by: org.apache.jasper.JasperException: Error compiling \roombooking\dates.jsp at org.apache.jasper.JspC.processFile(JspC.java:596) at org.apache.jasper.JspC.execute(JspC.java:801) 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:324) at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:147) ... 9 more --- Nested Exception --- org.apache.jasper.JasperException: Error compiling \roombooking\dates.jsp at org.apache.jasper.JspC.processFile(JspC.java:596) at org.apache.jasper.JspC.execute(JspC.java:801) 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:324) at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:147) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193) at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1339) at org.apache.tools.ant.Project.executeTargets(Project.java:1255) Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: (OT) oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement.java:1082)
It will be true for first run but it works on first and does not on second with same input Thanks - Original Message - From: Christopher Schultz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 4:45 PM Subject: Re: (OT) oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement .java:1082) Alexander, Next time, please post this to a Java or JDBC or Oracle mailing list. This is unrelated to Tomcat. I have a servlet that getting post request from form with enctype=multipart/form-data as part of the form is file upload. On the first run it works OK, on the second i am getting: java.lang.NullPointerException What is the value of the string that you are passing to setString? Is it null? If it is, then I'd call this expected behavior. If you want to set the value of a column to NULL then you must use PreparedStatement.setNull(). Sheesh, at a 615 level course you should be checking for nulls. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
com.sun.tools.javac.Main is not on the classpath error
Hello, When i run tomcat in a debugger, i get the following error when it is trying to compile ANY jsp: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK it works fine , if it is not wrunning in debug mode. alex k. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: com.sun.tools.javac.Main is not on the classpath error
Hello Filip, i checked that, and as you can see it is in fact in classpath: C:\j2sdk1.4.2_01\bin\javaw.exe -Djava.endorsed.dirs=C:\tomcat\jakarta-tomcat-4.1.27\bin;C:\tomcat\jakarta-tomcat-4.1.27\common\lib -Dcatalina.base=C:\Documents and Settings\Administrator.DELL-WIN2K\.IntelliJIdea\system\tomcat_Marketing_6cd064f -Dcatalina.home=C:\tomcat\jakarta-tomcat-4.1.27 -Djava.io.tmpdir=C:\tomcat\jakarta-tomcat-4.1.27\temp -classpath C:\j2sdk1.4.2_01\lib\tools.jar;C:\tomcat\jakarta-tomcat-4.1.27\bin\bootstrap.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\activation.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\ant.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\commons-collections.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\commons-dbcp.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\commons-logging-api.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\commons-pool.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\jasper-compiler.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\jasper-runtime.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\jdbc2_0-stdext.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\jndi.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\jta.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\mail.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\naming-common.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\naming-factory.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\naming-resources.jar;C:\tomcat\jakarta-tomcat-4.1.27\common\lib\servlet.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\catalina-ant.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\catalina.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\commons-beanutils.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\commons-digester.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\commons-fileupload-1.0.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\commons-logging.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\commons-modeler.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\jaas.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\jakarta-regexp-1.2.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\mx4j-jmx.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\servlets-common.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\servlets-default.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\servlets-invoker.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\servlets-manager.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\servlets-webdav.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\tomcat-coyote.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\tomcat-http11.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\tomcat-jk.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\tomcat-jk2.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\tomcat-util.jar;C:\tomcat\jakarta-tomcat-4.1.27\server\lib\tomcat-warp.jar org.apache.catalina.startup.Bootstrap start Oct 3, 2003 4:17:54 PM org.apache.coyote.http11.Http11Protocol init Friday, October 3, 2003, 4:04:46 PM, you wrote: FH tools.jar is not in your classpath FH - Original Message - FH From: Alex Korneyev [EMAIL PROTECTED] FH Cc: [EMAIL PROTECTED] FH Sent: Friday, October 03, 2003 2:00 PM FH Subject: com.sun.tools.javac.Main is not on the classpath error FH Hello, FH When i run tomcat in a debugger, i get the following error when it is FH trying to compile ANY jsp: FH Unable to find a javac compiler; FH com.sun.tools.javac.Main is not on the classpath. FH Perhaps JAVA_HOME does not point to the JDK FH it works fine , if it is not wrunning in debug mode. FH alex k. FH - FH To unsubscribe, e-mail: [EMAIL PROTECTED] FH For additional commands, e-mail: [EMAIL PROTECTED] FH - FH To unsubscribe, e-mail: [EMAIL PROTECTED] FH For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Alexmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual Users on Apache/Tomcat on https
Hello Everyone! I hope someone can point me in the right direction. How do i configure Apache to redirect https://servername.serverhost.com/~username/test.jsp to Tomcat ? if that username has a domwin, www.domain.com then i can access test.jsp file via http://www.domain.com/test.jsp no problem. I understand this is an Apache configuration. Best Regards, Alex K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Virtual Users on Apache/Tomcat on https
Hello Oleksiy, I am not sure how this is going to help me. This is a Tomcat side configuration. thanks Thursday, October 2, 2003, 10:18:48 AM, you wrote: OP Alex Korneyev wrote: Hello Everyone! I hope someone can point me in the right direction. How do i configure Apache to redirect https://servername.serverhost.com/~username/test.jsp to Tomcat ? OP Listener className=org.apache.catalina.startup.UserConfig OP directoryName=public_html OP userClass=org.apache.catalina.startup.PasswdUserDatabase / if that username has a domwin, www.domain.com then i can access test.jsp file via http://www.domain.com/test.jsp no problem. I understand this is an Apache configuration. Best Regards, Alex K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Alexmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Virtual Users on Apache/Tomcat on https
Hello David, Thursday, October 2, 2003, 10:52:17 AM, you wrote: DR On Thu, October 2, 2003 at 7:53 am, Alex Korneyev sent the following I hope someone can point me in the right direction. How do i configure Apache to redirect https://servername.serverhost.com/~username/test.jsp to Tomcat ? if that username has a domwin, www.domain.com then i can access test.jsp file via http://www.domain.com/test.jsp no problem. I understand this is an Apache configuration. DR You need the right JkMount statement in Apache. Something like: DR Directory /home/*/public_html DR JkMount /*.jsp ajp13 DR /Directory DR I hope you get the idea. DR -Dave DR - DR To unsubscribe, e-mail: [EMAIL PROTECTED] DR For additional commands, e-mail: [EMAIL PROTECTED] hello Dave, actually i am not sure what you mean. what would that do ? if i have a user userName123 then i need to access https via https://servername.com/~userName123/test.jsp -- Best regards, Alexmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Slow serving requests issue
I just finished development of my struts app and have a performance problem. The pages are not served with a consistent speed. I have a page that Goes thru the whole struts hoopla to be served (action servlet - action - jsp). To detect what might be the problem I make the same request several times some of the requests will be served really fast (like no time) while there is always one that happens with an unknown frequency that is served much slower than the others. The top shows that during that slow serving request tomcat's utilization grows rapidly and falls down slowly. We are using 4.1.27 on solaris java 1.4.1_04. Does anyone know what might be wrong? From what it looks like to me is that somehow JSP (or parts of it) get recompiled periodically without the JSPs being changed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DBCP borrowObject failed: null
Greetings, I've searched the internet, found some hints, done some other fiddling around, but for the life of me i can not get working tomcat 4.1 (linux) with oracle 8.1.7 (solaris). in catalina.out the error message is: DBCP borrowObject failed: null From server.xml: Resource name=jdbc/ORACLE auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/ORACLE parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter parameter nameusername/name valuethisuser/value /parameter parameter namepassword/name valuethatpasswd/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:something/value /parameter /ResourceParams I think I've tried just about everything, which is why I'm not posting to this list. Hoping that someone has come across this. I do not actually see a connection being made to the oracle box from the tomcat box when I have the URL as it is above. If i get rid of 'thatschema' it will then connect, and show up in listener.log but my application will hang and there is no real data flow aside from the initial connection. thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redirecting stderr and stdout
Hi! How can I redirect the standard output of all programs that run under Tomcat to the console? (It is directed to CATALINA_HOME/logs/stderr.log and CATALINA_HOME/logs/stdout.log now.) Thank you! Alex Chmelnitzki ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Nightmare with Tomcat 4.1 and SSL configuration
my 2cents would be to use apache on the front to do the SSL... -Original Message- From: Cosmin [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 June 2003 7:22 AM To: [EMAIL PROTECTED] Subject: Nightmare with Tomcat 4.1 and SSL configuration Hi there , I've just registered to this list in hope that I could find some better advice here . I am trying to configure a standalone installation of tomcat to work with SSL . This at first doesn't seem like a bit headache . I have followed the two similar howtos at the sun website and jakarta website and have gotten the same result . The only wierd thing about setting it all up was using keytool . I am using a FreeBSD 4.8 machine with Tomcat 4.1 and linux-jdk1.4 . At first the linux-jdk1.4 keytool didn't seem to work ( telling me that /dev/random has reached the end of file ... i looked and this was a blank file ) . So I generated they key using the FreeBSD jdk1.4 ( suposedly of alpha quality ) , exported it to a file then imported this file into a new keystore : /root/.keystore using the linux-jdk1.4/bin/keytool . I then added the following to my server.xml : Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=false acceptCount=100 debug=0 scheme=https secure=true useURIValidationHack=false disableUploadTimeout=true Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS keystoreFile=/root/.keystore keystorePass=changeit/ /Connector Tried restarting . As I was watching with netstat the 8180 port opened for a split second then closed . Tomcat seems to die the moment i try to start it with the ssl connector uncommented . The moment i put comments arround the SSL connector Tomcat starts up and works fine again . . . Has anybody here , ever encountered this miserable problem ? I've been stuck on it for 2 days and I don't even get an error message to start from somewhere . no error logs are... WOOPS :) ... found a very relevant error : Exception during startup processing java.lang.reflect.InvocationTargetException 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:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: java.lang.InternalError: URLSeedGenerator file:/dev/random reached end of file at sun.security.provider.SeedGenerator$URLSeedGenerator.getSeedByte(SeedGenerat or.java:476) at sun.security.provider.SeedGenerator.getSeedBytes(SeedGenerator.java:137) and it goes on so that /dev/random file is creating trouble here . Does anybody here have a clue on how to fix this ? thanks in advance Cosmin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Memory leaks!
Try the option to fork off the JSP compiles (or even use Jikes to compile). There seems to be a problem with compiling of JSPs that does not use the usual memory you can allocate with the -Xmx type flag... maybe one of the guru's can explain this.. but we had similar problem that whe nwe moved to jikes forked compiles went away... Hope that helps. Cheers, Alex. -Original Message- From: Robert Abbate [mailto:[EMAIL PROTECTED] Sent: Tuesday, 3 June 2003 2:06 PM To: [EMAIL PROTECTED] Subject: Tomcat Memory leaks! Importance: High Hi. It seems Tomcat (4.1.24) has a major memory leak, and I wanted to bring it to the developers attention so they can check it out. I run a shared hosting server (Mandrake 8.2, Apache 1.3) with virtual hosts. I have 1 Gig of RAM and about 50 virtual hosts and yet I keep getting Out of Memory errors! I have made numerous adjustments to memory allocations, yet nothing helps. Here's an example of what I've done: CATALINA_OPTS=-Xmx64mb and CATALINA_OPTS=-Xmx1028mb I can furnish my server.xml file upon request or anything else you may need to fix the problem. Thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Memory leaks!
Have a look here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html In your tomcat_home/conf/web.xml you can modify the following like this (assuming you have Jikes installed): servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namelogVerbosityLevel/param-name param-valueWARNING/param-value /init-param init-param param-namefork/param-name param-valuetrue/param-value /init-param init-param param-namecompiler/param-name param-valuejikes/param-value /init-param load-on-startup3/load-on-startup /servlet -Original Message- From: Robert Abbate [mailto:[EMAIL PROTECTED] Sent: Tuesday, 3 June 2003 2:18 PM To: Tomcat Users List Subject: RE: Tomcat Memory leaks! Hi. I honestly have no idea what you are talking about. Can you explain what needs to be done for this? You talking about changing `javac`? Thanks -Original Message- From: Alex Burton [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 11:12 PM To: Tomcat Users List Subject: RE: Tomcat Memory leaks! Try the option to fork off the JSP compiles (or even use Jikes to compile). There seems to be a problem with compiling of JSPs that does not use the usual memory you can allocate with the -Xmx type flag... maybe one of the guru's can explain this.. but we had similar problem that whe nwe moved to jikes forked compiles went away... Hope that helps. Cheers, Alex. -Original Message- From: Robert Abbate [mailto:[EMAIL PROTECTED] Sent: Tuesday, 3 June 2003 2:06 PM To: [EMAIL PROTECTED] Subject: Tomcat Memory leaks! Importance: High Hi. It seems Tomcat (4.1.24) has a major memory leak, and I wanted to bring it to the developers attention so they can check it out. I run a shared hosting server (Mandrake 8.2, Apache 1.3) with virtual hosts. I have 1 Gig of RAM and about 50 virtual hosts and yet I keep getting Out of Memory errors! I have made numerous adjustments to memory allocations, yet nothing helps. Here's an example of what I've done: CATALINA_OPTS=-Xmx64mb and CATALINA_OPTS=-Xmx1028mb I can furnish my server.xml file upon request or anything else you may need to fix the problem. Thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IOException: failed to communicate with MySQL
a couple of days ago a post went by talking about MySQL default timeout being set to 8 hrs for connections... betting this might be your problem... -Original Message- From: Mindaugas Genutis [mailto:[EMAIL PROTECTED] Sent: Tuesday, 3 June 2003 5:26 PM To: [EMAIL PROTECTED] Subject: IOException: failed to communicate with MySQL Hello, My JSP application very often after night, in the morning stops communicating with MySQL database. I get an exception each morning (the exception body goes below). The application starts to work again after I restart it from the Tomcat Manager. Maybe someone else also had this same problem? My server configuration: Linux Redhat, Tomcat 4.1.24, Java 1.4.1. My assumptions where the problem might be: the MySQL connections are eaten by another application or they are eaten by my application somewhere inside and never closed. Or maybe during the night when no one is working with my application it somehow frozes? Can anyone give me a clue how to start debugging these early morning crashes? Another clue: Connections to the database are made through an SQLManager which is a class written by another programmer. The class is a singleton. Could it be that I have to reset it more often? The exception body goes here: java.sql.SQLException: Communication link failure: java.io.IOException at com.mysql.jdbc.MysqlIO.clearAllReceive(Unknown Source) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(Unknown Source) at com.mysql.jdbc.MysqlIO.sqlQuery(Unknown Source) at com.mysql.jdbc.Connection.execSQL(Unknown Source) at com.mysql.jdbc.Connection.execSQL(Unknown Source) at com.mysql.jdbc.Statement.executeQuery(Unknown Source) at com.mysql.jdbc.jdbc2.Statement.executeQuery(Unknown Source) at lt.ktu.distance.sql.mysql.MySQLGUILanguageManagerHelper.loadGUILanguages(MyS QLGUILanguageManagerHelper.java:48) at lt.ktu.distance.sql.GUILanguageManager.loadGUILanguages(GUILanguageManager.j ava:55) at org.apache.jsp.index_jsp._jspService(index_jsp.java:155) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 10) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at
RE: Jaybird With Tomcat Part II
Make sure the database resource is in the context you are accessing. Also make sure any classes JAR has .jar extension... .zip extenstion will not work. e.g. Accessing by http://www.mydomain.com/mydomain Host name=www.mydomain.com debug=1 appBase=virtual_hosts unpackWARs=true Context path=/mydomain docBase=mydomain debug=0 reloadable=false override=true Resource name=jdbc/myConnection auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myConnection parameternameuser/namevalueadmin/value/parameter parameternamepassword/namevaluepassword/value/parameter parameternamedriverClassName/namevalueoracle.jdbc.driver.OracleDrive r/value/parameter parameter namedriverName/name valuejdbc:oracle:thin:@127.0.0.1:1521:ORCL/value /parameter parameter namemaxActive/name value32/value /parameter parameter namemaxIdle/name value4/value /parameter /ResourceParams /Context /Host -Original Message- From: Rob Casteen [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 May 2003 8:17 AM To: Tomcat Users List Subject: Re: Jaybird With Tomcat Part II Of course, and I wouldn't be asking the question without tons of research on my own. I will post the errors below for what I was receiving previously, yet now when I copy the libs into common/lib, the webapps are inaccessible. Here is my previous email: Hey guys, I am hoping I could get some help with this issue. The research I have done online reveals this error with several databases although I have yet to find a actionable answer nor anything firebird specific. I am attempting to connect Firebird to Tomcat based on the MYSQL example in the Tomcat Docs and through the datasource setup in the administration console. I have attempted to include all relevant data to show the activity on my server, including the log, the example code, and the relevant server.xml code. I appreciate all help that you can offer. Rob **Log java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:529) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 12) at foo.DBTest.init(DBTest.java:23) at org.apache.jsp.test_jsp._jspService(test_jsp.java:49) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
RE: Multiple instances
Why do you want to run separate instances for each application? Why not just setup more host inside one instance? -Original Message- From: Rohit Peyyeti [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 May 2003 8:41 PM To: Tomcat Users List Subject: Multiple instances Hello Gurus: I have received no response to my previous post and hence I'm rephrasing my question and posting it again ;) I need to setup multiple tomcat 4.1.24 instances (for each of my web applications). I did read RUNNING.txt shipped with tomcat distribution -- but was not very clear. Can I give multiple entries to CATALINA_BASE environment? What if I want to run 5 to 6 different instances? How exactly should it be configured? Is there any how-to or document available for setting up tomcat 4's multiple instances? Thanks! Rohit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ssl on tomcat 4.0.4
Hi, we have java 1.3.1 and tomcat 4.0.4 on a linux box ( Red Hat 7.3 ). I want to use https on port 8443 with tomcat. If I use keytool to create a certificate I have no problem. However, we are a Novell (5.1) shop. If I create a request, I use it in ConsoleOne to create a certificate but if I try to import that result on my linux box for tomcat, I get the following reply: keytool error: java.lang.Exception: Failed to establish chain from reply if I try to use the same alias with which I created the request. If I import the same certificate with a different alias but the original keyfile I created originally, fine, no error message but when I start tomcat and open my browser to the 8443 port, it seems to use the original self-generated information. If, I instead, delete the original keyfile ( after my request and creating the certificate in ConsoleOne ) and try to import the certificate I created in ConsoleOne, hence no alias conflict, when I point my browser to the 8443 port, I get a popup telling me that Netscape and this server cannot communicate securely because they have no common encryption algorithm(s). ... I get a similar message in Internet Explorer. I used the trustcacerts option. I do not know where the problem lies ... the cacerts file ? Any help would be appreciated. - Alex = __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
/manager does not work on Tomat 4.0.3
Hello, How is everyone ? I get this error when I try to access manager app: java.lang.NullPointerException at org.apache.catalina.realm.MemoryRealm.authenticate(MemoryRealm.java:216) I am running Tomcat 4.0.3 tomcat-users.xml has an entry with user that uses role manager Any thoughts? Best Regards, Alex Korneyev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compiling tomcat.exe?
Hi folks, I've been trying to find the source code for tomcat.exe (distributed with the Windows Tomcat 4.0.x installer), because I want to compile a customized version of it. The source for jk_nt_service.exe is easy to find, but I need that of tomcat.exe because I want to load the JVM via its DLL, so that java.exe doesn't show up in the Windows process listing. TIA for any pointers you can give... -- Alex Cruise - Programmer, Iconoclast, Opinionated Bastard. GCS/P v3.1a: d- s+:+ C$ UF++ UL++ P--- L++ E++ W++ N+ K w-- O- M PS++ PE- Y+ PGP-- t+@ 5- X-- R !tv b++ DI++ D++ G e* h--- r+++ y+++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
/manager does not work on Tomat 4.0.3
Hello, How is everyone ? I get this error when I try to access manager app: java.lang.NullPointerException at org.apache.catalina.realm.MemoryRealm.authenticate(MemoryRealm.java:216) I am running Tomcat 4.0.3 tomcat-users.xml has an entry with user that uses role manager Any thoughts? Best Regards, Alex Korneyev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 3.3.1 Standalone and Client-Auth
On Tue, Feb 11, 2003 at 10:42:33PM -0800, Bill Barker wrote: Alex Tang [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi folks. I was wondering if it's possible to get client certificate information from tomcat (3.3.1) when running STANDALONE (e.g. NOT using mod_jk or an external webserver). I can setup tomcat so that it requires client-auth properly, however I don't seem to be able to programmatically get at any of the certificate information. This sounds like you've found the clientauth=true attribute on the Http10Connector element. This causes Tomcat to requre a client cert for each SSL request (unlike TC 4.x, it's an all-or-nothing setting). Hi bill. Thanks for your response. Yes, i did find clientauth='true'. It does make my tc 3.3.1 instance require a client-cert for everything. You should then be able to access the top-level cert (all that can be exposed under the 2.2 Servlet-spec :() via 'request.getAttribute(javax.servlet.request.X509Certificate)'. As per section 5.7 of the 2.2 spec, this will be of type java.security.cert.X509Certificate. I haven't tried this with the Http10Connector for a very long time (it seems to work fine with the 3.3.2-dev CoyoteConnector). If you are still having problems, please report it to http://nagoya.apache.org/bugzilla/. OK, this is getting more bizarre (well, for me at least). Orignally, i was testing using SnoopServlet, and looking the values of Request attributes: (which just iterating over the Enumeration returned from request.getAttributeNames()). When using apache and mod_jk, i am getting the attributes: javax.servlet.request.cipher_suite javax.servlet.request.X509Certificate javax.servlet.request.ssl_session (Thanks to your reference, I realize that only the X509Certificate attribute is required by the servlet 2.2 spec.) When running in tomcat standalone, i get an empty Enumeration returned from request.getAttributeNames(). I thought that the cert information was not available. However, if i do request.getAttribute ( javax.servlet.request.X509Certificate ); a valid X509Certificate array is returned. Why is this attribute not showing up when doing request.getAttributeNames()? A sample servlet and the response i'm receiving is included below. Thanks again. ...alex... FYI: Here's a test servlet (basically a modified SnoopServlet): --- import java.io.IOException; import java.io.PrintWriter; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; import java.security.cert.*; public class TestServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); response.setContentType(text/plain); out.println(Test Servlet); out.println(); out.println(Dumping Request attributes:); Enumeration e = request.getAttributeNames(); while (e.hasMoreElements()) { String key = (String)e.nextElement(); Object value = request.getAttribute(key); out.println(+ key + = + value); } out.println(END Request attributes:); out.println(); out.println(Dumping request attribute + javax.servlet.request.X509Certificate ); X509Certificate[] certs = (X509Certificate[])request.getAttribute ( javax.servlet.request.X509Certificate ); if ( certs != null ) { for ( int i = 0; i certs.length; i++ ) { out.println ( CERT + i + : + certs[i].getSubjectDN().getName() ); } } out.println(END request attribute + javax.servlet.request.X509Certificate ); } } --- When I use tomcat 3.3.1 in standalone, i get the following results: --- Test Servlet Dumping Request attributes: END Request attributes: Dumping request attribute javax.servlet.request.X509Certificate CERT 0: CN=Alex Tang, OU=People, O=Funkware, C=US END request attribute javax.servlet.request.X509Certificate --- And for comparison, when i use apache and mod_jk, i get the following: --- Test Servlet Dumping Request attributes: javax.servlet.request.cipher_suite = RC4-MD5 javax.servlet.request.X509Certificate = [Ljava.security.cert.X509Certificate;@203c31 javax.servlet.request.ssl_session = 77971778D91F8A7AD58E765BDD7C3C1BD1AA05ADCC5B279BC5C7845F14AAE915 END Request attributes: Dumping
RE: How do setup tomcat on www.domainname.com/~username/some.jsp
Hello Jake Robb, I remember seeing the documentation about it, I just cannot find it :) can you point me to the right URL? Best Regards, Alex Korneyev -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 7:50 AM To: Tomcat Users List Subject: Re: How do setup tomcat on www.domainname.com/~username/some.jsp Alex, This is easy, and is covered in the documentation fairly well. Please read, and let us know if you have any specific problems. If you're not aware, the documentation is available at jakarta.apache.org. Also, would you please set your computer date so that it's not a day ahead? I sort my email messages by date, and yours is appearing out of order -- this is slightly annoying. Thanks! -Jake Robb Alex K. wrote: Hello, Any ideas? Best Regards, Alex Korneyev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Custom-built Tomcat 4.0.5 on J2SE 1.4.1 can't find SAXParserFactoryprovider
Hi folks, I've got a custom-built Tomcat 4.0.5 that won't start; it says: javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.SAXParserFactory cannot be found. I'm running on J2SE 1.4.x, so I've configured ${light.dist}=on and xerces.jar isn't being included in my distribution directory. I also have a prebuilt Tomcat 4.0.5 that contains no xerces.jar but successfully starts up, so obviously I'm missing something in my build process. Can anyone shed some light? Thanks! -- Alex Cruise - Programmer, Iconoclast, Opinionated Bastard. GCS/P v3.1a: d- s+:+ C$ UF++ UL++ P--- L++ E++ W++ N+ K w-- O- M PS++ PE- Y+ PGP-- t+@ 5- X-- R !tv b++ DI++ D++ G e* h--- r+++ y+++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error-page in web.xml doesn't work
Hello... i'm using tomcat 4.1.18. i've set up a new web application, containing only 1 jsp. also, i've set up web.xml to redirect to errorpage.html when my jsp throw an exception. errorpage.html is located in the application's root directory. Also, i've tried to use a jsp page, instead of the html page, as a error page, and, still, no result. But it doesn't work, so, can anyone help me ? thanks in advance... Alex here's the code for those 3 files: 1.jsp % int a = Integer.parseInt(a); % %=a% web.xml ... web-app error-page exception-typejava.lang.Exception/exception-type location/errorpage.html/location /error-page /web-app errorpage.html htmlbodythere was an error!!!/body/html
Re: error-page in web.xml doesn't work
yes, i've tried to use java.lang.NumberFormatException, and, still, no result. Alex - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, February 11, 2003 4:45 PM Subject: RE: error-page in web.xml doesn't work Hi, Hmm. Did you try a subclass of exception, e.g. java.lang.NumberFormatException for your test JSP? Yoav Shapira Millennium ChemInformatics -Original Message- From: Alex [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 11, 2003 9:32 AM To: [EMAIL PROTECTED] Subject: error-page in web.xml doesn't work Hello... i'm using tomcat 4.1.18. i've set up a new web application, containing only 1 jsp. also, i've set up web.xml to redirect to errorpage.html when my jsp throw an exception. errorpage.html is located in the application's root directory. Also, i've tried to use a jsp page, instead of the html page, as a error page, and, still, no result. But it doesn't work, so, can anyone help me ? thanks in advance... Alex here's the code for those 3 files: 1.jsp % int a = Integer.parseInt(a); % %=a% web.xml ... web-app error-page exception-typejava.lang.Exception/exception-type location/errorpage.html/location /error-page /web-app errorpage.html htmlbodythere was an error!!!/body/html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error-page in web.xml
Hello... i'm using tomcat 4.1.18. i've set up a new web application, containing only 1 jsp. also, i've set up web.xml to redirect to errorpage.html when my jsp throw an exception. errorpage.html is located in the application's root directory. Also, i've tried to use a jsp page, instead of the html page, as a error page, and, still, no result. But it doesn't work, so, can anyone help me ? thanks in advance... Alex here's the code for those 3 files: 1.jsp % int a = Integer.parseInt(a); % %=a% web.xml ... web-app error-page exception-typejava.lang.Exception/exception-type location/errorpage.html/location /error-page /web-app errorpage.html htmlbodythere was an error!!!/body/html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building ISAPI connector with Ant - How to materialize apr.h?
Hi folks, I'm trying to set up an automated build script that builds the jk2 ISAPI redirector for Tomcat 4.0.x. At the moment it complains that it can't find apr.h. I've downloaded the apr source and tried to find some nice, automatable way of configuring it, but I'm kind of stumped. Can someone help me find an ant-callable method for getting apr to the point where isapi_redirector2.dll will build? Ideally one that doesn't require Cygwin, please! :) Thanks, -- Alex Cruise - Programmer, Iconoclast, Opinionated Bastard. GCS/P v3.1a: d- s+:+ C$ UF++ UL++ P--- L++ E++ W++ N+ K w-- O- M PS++ PE- Y+ PGP-- t+@ 5- X-- R !tv b++ DI++ D++ G e* h--- r+++ y+++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building ISAPI connector with Ant - How to materialize apr.h?
Robert Priest wrote: you are aware that ant is used to build isapi_redirector2.dll in j-t-c now? under j-t-c\jk\native2 there is a build.xml for it. You just have to set up a build.properties file under j-t-c\jk if your environment is set up properly, this should work. Well aware... The question is how to get an apr.h that's correct for my configuration. :) -- Alex Cruise - Programmer, Iconoclast, Opinionated Bastard. GCS/P v3.1a: d- s+:+ C$ UF++ UL++ P--- L++ E++ W++ N+ K w-- O- M PS++ PE- Y+ PGP-- t+@ 5- X-- R !tv b++ DI++ D++ G e* h--- r+++ y+++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
3.3.1 Standalone and Client-Auth
Hi folks. I was wondering if it's possible to get client certificate information from tomcat (3.3.1) when running STANDALONE (e.g. NOT using mod_jk or an external webserver). I can setup tomcat so that it requires client-auth properly, however I don't seem to be able to programmatically get at any of the certificate information. Also, yes, i know that this is possible (and i have done it) using apache and mod_jk, however due to various reasons, i can not run ANY web server (groan...) on the machine, so i need to be able to do this standalone. Thanks. ...alex... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building ISAPI connector with Ant - How to materialize apr.h?
Alex Cruise wrote: Well aware... The question is how to get an apr.h that's correct for my configuration. :) Turns out the problem was that the .dsp files in apr-0.9.1.tar.gz have Unix line-endings, and MSDev can't handle it. I just threw a fixcrlf task into my build script and I'm moving right along... -- Alex Cruise - Programmer, Iconoclast, Opinionated Bastard. GCS/P v3.1a: d- s+:+ C$ UF++ UL++ P--- L++ E++ W++ N+ K w-- O- M PS++ PE- Y+ PGP-- t+@ 5- X-- R !tv b++ DI++ D++ G e* h--- r+++ y+++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do setup tomcat on www.domainname.com/~username/some.jsp
Hello, Any ideas? Best Regards, Alex Korneyev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat oddities
Hello Subir Sengupta , If you are suspecting GC problem, you can always run the app thru any number of analyze tools, ( OptimizeIt ) for example. If the reason for freeze up is GC, then you have a much bigger issue on your hands. B/c that is a lot of objects :) You might want to consider using loadbalancer for distributed type app. Issue Two: That sounds like a programmer error. I don't know how you have implemented object concurancy, but 99% of the type stale data is due to programmer error. I personally don't think that it is an i.e. issue since I.E. would not mix and match the data, it would display old data; Best Regards, Alex K. -Original Message- From: Subir Sengupta [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 5:51 PM To: 'Tomcat Users List' Subject: RE: Tomcat oddities Issue One: If Tomcat used up all your memory, you would see OutOfMemory exceptions being thrown, not a freeze. Do you see these? Everything will stop *while* GC is occurring (not until GC occurs). Have you tried increasing the amount of memory allocated to Java? Use the -Xms and -Xmx flags to set memory allocations. However, if you do have a memory leak, increasing the memory will simply increase the intervals between freezes. -Original Message- From: Michael Molloy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 1:55 PM To: Tomcat Users List Subject: Tomcat oddities My company is in the deployment stage of a project that uses tomcat to serve information from an oracle database to about 25 people. When the app goes live, there will be about 150 people connected at any one time. Tomcat 4.1.12 is running behind Apache on Windows 2000 on a single cpu box, and Oracle is running on a separate Windows 2000 2-way box. (Windows was the client decision, not ours.) Issue One We're seeing two serious issues, the first of which happens about once a day, sometimes more. When there are several users on the system, maybe up to 15, there is a freeze during which no one can get any responses back from Tomcat. This period usually lasts from 5 to 15 minutes, after which the system returns to normal and everything zips along. We've tuned queries, so we don't think that is the problem. There may still be a rogue query out there causing problems, but we think it's unlikely. Besides, I don't know why that would stop everyone, which is what's happening. Another possibility that we've discussed is that tomcat is simply using all of the memory and everything basically stops until GC occurs. This seems the most likely to me, but I wanted to ask the group. I don't know what the page file size is, nor do we have access to the server so we can't check task manager. Can anyone think of any other possibilities? Issue Two We've had two reports where a user has had data from an old session show up in his/her current session. For example, I wrote a class that stores information from 14 different JSPs. The object is put into the user's session. In these two occasions, the user entered a new record using these screens saved the data to the database. The user took an hour lunch break, which would have been long enough to timeout (set at 20 minutes), returned, and queried a different record. Some of the data from the previous record showed up in the holder class in his/her current session and was saved to the database. Any idea what that could be? The only thing I can think of is that IE is doing some data caching mixing things up a bit. Any suggestions will be greatly appreciated. We really need to get this figured out quickly. Thanks --Michael Molloy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.12 giving me big headaches. Please help.
Hi, I have moved an app that has been working well on tomcat 4.06 to 4.12. Since then I have been having huge headaches getting the application to work. The DBCP does not work properly. I am closing every connection to my database and still after a while the pool slows down. It takes my users 5 minutes to log in. I have rewritten that class to make new connections to the database manually each time and that has solved that problem. I have many pages that will no longer work. For example I have two pages that are pretty similar that access the database and show a table of results. When I try to access the page I get the following error: java.lang.ClassNotFoundException: org.apache.jsp.DRYGOODS_list_jsp at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:209) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131) at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:504) Can someone tell me what that error means. The DRYGOODS_list.jsp page is there and it is pretty simple. Nothing too fancy. I have found other errors in my log files. One error is below: 2002-12-17 21:43:50 StandardContext[]: Mapping contextPath='' with requestURI='/servlet/pwCSS.css' and relativeURI='/servlet/pwCSS.css' 2002-12-17 21:43:50 StandardContext[]: Trying exact match 2002-12-17 21:43:50 StandardContext[]: Trying prefix match 2002-12-17 21:43:50 StandardContext[]: Mapped to servlet 'invoker' with servlet path '/servlet' and path info '/pwCSS.css' and update=true 2002-12-17 21:43:50 invoker: included='false', requestURI='/servlet/pwCSS.css' 2002-12-17 21:43:50 invoker: servletPath='/servlet', pathInfo='/pwCSS.css' 2002-12-17 21:43:50 invoker: Processing servlet 'pwCSS.css' with path info '' 2002-12-17 21:43:50 invoker: Creating wrapper for 'pwCSS.css' with mapping '/servlet/pwCSS.css/*' 2002-12-17 21:43:50 StandardWrapper[:org.apache.catalina.INVOKER.pwCSS.css]: Marking servlet org.apache.catalina.INVOKER.pwCSS.css as unavailable 2002-12-17 21:43:50 invoker: Cannot allocate servlet instance for path /servlet/pwCSS.css javax.servlet.ServletException: Wrapper cannot find servlet class pwCSS.css or a class it depends on I do not have a servlet called pwCSS.css. I have done a string search on all my files and pwCSS.css is not found anywhere. Any idea where this is coming from? Thanks for any help. Alex This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen.
DBCP difficulties and Mysql!!
Hi, I have transferred a web app to use mysql and the built in dbcp pooling available in Tomcat 4.12. I am getting a lot of dbcp errors. If I check my log file the two errors are: org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Communication failure during handshake. Is there a server running on 127.0.0.1:3306? and java.sql.SQLException: DBCP could not obtain an idle db connection, pool exhausted I have the parameters of my pool connection below. In my finally block of the try statement where I access the connection via JNDI I close all the recordsets, statements and connection. I am getting these errors with a load of about 5 users. Even though the error says that it can't find the mysql server I can connect to it manually. Any help in figuring out what is going on is appreciated. Thanks Alex parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valueusername/value /parameter parameter namepassword/name valuepassword/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/name aluejdbc:mysql://localhost:3306/crlca??autoReconnect=true/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen.
URGENT HELP NEEDED PLEASE ADVISE
Hello, How is everyone? I have a really really weird problem with mod_jk For some reason it forwards servlets file to tomcat, but jsp files it does not forward to tomcat at all. Here is a line out of mod_jk.log When a .jsp file is sent to it: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp And here is what happens when a servlet request is processed [Sun Dec 08 01:56:54 2002] [jk_uri_worker_map.c (464)]: Attempting to map URI '/servlet/HelloWorldExample' [Sun Dec 08 01:56:54 2002] [jk_uri_worker_map.c (489)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /servlet/ [Sun Dec 08 01:56:54 2002] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Sun Dec 08 01:56:54 2002] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (1352)]: Into jk_worker_t::get_endpoint [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (1075)]: Into jk_endpoint_t::service [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (280)]: Into ajp_marshal_into_msgb [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (413)]: ajp_marshal_into_msgb - Done [Sun Dec 08 01:56:54 2002] [jk_connect.c (116)]: Into jk_open_socket [Sun Dec 08 01:56:54 2002] [jk_connect.c (123)]: jk_open_socket, try to connect socket = 6 [Sun Dec 08 01:56:54 2002] [jk_connect.c (132)]: jk_open_socket, after connect ret = 0 [Sun Dec 08 01:56:54 2002] [jk_connect.c (140)]: jk_open_socket, set TCP_NODELAY to on [Sun Dec 08 01:56:54 2002] [jk_connect.c (148)]: jk_open_socket, return, sd = 6 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (588)]: In jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 6 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (612)]: sending to ajp13 #403 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (853)]: ajp_send_request 2: request body to send 0 - request body to resend 0 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (698)]: received from ajp13 #24 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (461)]: ajp_unmarshal_response: status = 200 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (466)]: ajp_unmarshal_response: Number of headers is = 1 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (506)]: ajp_unmarshal_response: Header[0] [Content-Type] = [text/html] [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (698)]: received from ajp13 #397 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (698)]: received from ajp13 #2 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (1307)]: Into jk_endpoint_t::done [Sun Dec 08 01:56:54 2002] [jk_uri_worker_map.c (447)]: Into jk_uri_worker_map_t::map_uri_to_worker my mod_jk.conf IfModule !mod_jk.c LoadModule jk_module libexec/mod_jk.so /IfModule JkWorkersFile /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/conf/jk/workers.prope rties JkLogFile /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/logs/mod_jk.log my workers.properties is #workers.tomcat_home=/usr/local/jakarta/jakarta-tomcat-4.0 workers.tomcat_home=/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build workers.java_home=/usr/local/jre ps=/ worker.list=ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 my entry in httpd.conf file is IfModule mod_jk.c JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /servlets/* ajp13 /IfModule from tomcat's log 2002-12-08 02:45:14 Ajp13Processor[8009][0] Starting background thread 2002-12-08 02:45:14 Ajp13Processor[8009][1] Starting background thread 2002-12-08 02:45:14 Ajp13Processor[8009][2] Starting background thread 2002-12-08 02:45:14 Ajp13Processor[8009][3] Starting background thread 2002-12-08 02:45:14 Ajp13Processor[8009][4] Starting background thread from tomcat's server.xml !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Apache and Tomcat work fine standalone and tomcat is serving pages on its own. To see this behavior please go to: http://www.xicom.biz:9084/test3.jsp then to http://www.xicom.biz/test3.jsp then to http://www.xicom.biz/servlet/HelloWorldExample what is going on??!?!?!? Please help, our client are currently down because of this. Really interesting thing is that this setup has been up and running for some months now. Please let me know what is happening! Best Regards, Alex Korneyev
mod_jk does not work with jsp files, but works with servlets; please advise
Hello, How is everyone? I have a really really weird problem with mod_jk For some reason it forwards servlets file to tomcat, but jsp files it does not forward to tomcat at all. Here is a line out of mod_jk.log When a .jsp file is sent to it: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp And here is what happens when a servlet request is processed [Sun Dec 08 01:56:54 2002] [jk_uri_worker_map.c (464)]: Attempting to map URI '/servlet/HelloWorldExample' [Sun Dec 08 01:56:54 2002] [jk_uri_worker_map.c (489)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /servlet/ [Sun Dec 08 01:56:54 2002] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Sun Dec 08 01:56:54 2002] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (1352)]: Into jk_worker_t::get_endpoint [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (1075)]: Into jk_endpoint_t::service [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (280)]: Into ajp_marshal_into_msgb [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (413)]: ajp_marshal_into_msgb - Done [Sun Dec 08 01:56:54 2002] [jk_connect.c (116)]: Into jk_open_socket [Sun Dec 08 01:56:54 2002] [jk_connect.c (123)]: jk_open_socket, try to connect socket = 6 [Sun Dec 08 01:56:54 2002] [jk_connect.c (132)]: jk_open_socket, after connect ret = 0 [Sun Dec 08 01:56:54 2002] [jk_connect.c (140)]: jk_open_socket, set TCP_NODELAY to on [Sun Dec 08 01:56:54 2002] [jk_connect.c (148)]: jk_open_socket, return, sd = 6 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (588)]: In jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 6 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (612)]: sending to ajp13 #403 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (853)]: ajp_send_request 2: request body to send 0 - request body to resend 0 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (698)]: received from ajp13 #24 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (461)]: ajp_unmarshal_response: status = 200 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (466)]: ajp_unmarshal_response: Number of headers is = 1 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (506)]: ajp_unmarshal_response: Header[0] [Content-Type] = [text/html] [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (698)]: received from ajp13 #397 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (698)]: received from ajp13 #2 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (1307)]: Into jk_endpoint_t::done [Sun Dec 08 01:56:54 2002] [jk_uri_worker_map.c (447)]: Into jk_uri_worker_map_t::map_uri_to_worker my mod_jk.conf IfModule !mod_jk.c LoadModule jk_module libexec/mod_jk.so /IfModule JkWorkersFile /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/conf/jk/workers.prope rties JkLogFile /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/logs/mod_jk.log my workers.properties is #workers.tomcat_home=/usr/local/jakarta/jakarta-tomcat-4.0 workers.tomcat_home=/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build workers.java_home=/usr/local/jre ps=/ worker.list=ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 my entry in httpd.conf file is IfModule mod_jk.c JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /servlets/* ajp13 /IfModule from tomcat's log 2002-12-08 02:45:14 Ajp13Processor[8009][0] Starting background thread 2002-12-08 02:45:14 Ajp13Processor[8009][1] Starting background thread 2002-12-08 02:45:14 Ajp13Processor[8009][2] Starting background thread 2002-12-08 02:45:14 Ajp13Processor[8009][3] Starting background thread 2002-12-08 02:45:14 Ajp13Processor[8009][4] Starting background thread from tomcat's server.xml !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Apache and Tomcat work fine standalone and tomcat is serving pages on its own. To see this behavior please go to: http://www.xicom.biz:9084/test3.jsp then to http://www.xicom.biz/test3.jsp then to http://www.xicom.biz/servlet/HelloWorldExample what is going on??!?!?!? Please help, our client are currently down because of this. Really interesting thing is that this setup has been up and running for some months now. Please let me know what is happening! Best Regards, Alex Korneyev
URGENT HELP NEEDED!
Hello, How is everyone? I have a really really weird problem with mod_jk For some reason it forwards servlets file to tomcat, but jsp files it does not forward to tomcat at all. Here is a line out of mod_jk.log When a .jsp file is sent to it: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp And here is what happens when a servlet request is processed [Sun Dec 08 01:56:54 2002] [jk_uri_worker_map.c (464)]: Attempting to map URI '/servlet/HelloWorldExample' [Sun Dec 08 01:56:54 2002] [jk_uri_worker_map.c (489)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /servlet/ [Sun Dec 08 01:56:54 2002] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Sun Dec 08 01:56:54 2002] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (1352)]: Into jk_worker_t::get_endpoint [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (1075)]: Into jk_endpoint_t::service [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (280)]: Into ajp_marshal_into_msgb [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (413)]: ajp_marshal_into_msgb - Done [Sun Dec 08 01:56:54 2002] [jk_connect.c (116)]: Into jk_open_socket [Sun Dec 08 01:56:54 2002] [jk_connect.c (123)]: jk_open_socket, try to connect socket = 6 [Sun Dec 08 01:56:54 2002] [jk_connect.c (132)]: jk_open_socket, after connect ret = 0 [Sun Dec 08 01:56:54 2002] [jk_connect.c (140)]: jk_open_socket, set TCP_NODELAY to on [Sun Dec 08 01:56:54 2002] [jk_connect.c (148)]: jk_open_socket, return, sd = 6 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (588)]: In jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 6 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (612)]: sending to ajp13 #403 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (853)]: ajp_send_request 2: request body to send 0 - request body to resend 0 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (698)]: received from ajp13 #24 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (461)]: ajp_unmarshal_response: status = 200 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (466)]: ajp_unmarshal_response: Number of headers is = 1 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (506)]: ajp_unmarshal_response: Header[0] [Content-Type] = [text/html] [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (698)]: received from ajp13 #397 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (698)]: received from ajp13 #2 [Sun Dec 08 01:56:54 2002] [jk_ajp_common.c (1307)]: Into jk_endpoint_t::done [Sun Dec 08 01:56:54 2002] [jk_uri_worker_map.c (447)]: Into jk_uri_worker_map_t::map_uri_to_worker my mod_jk.conf IfModule !mod_jk.c LoadModule jk_module libexec/mod_jk.so /IfModule JkWorkersFile /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/conf/jk/workers.prope rties JkLogFile /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/logs/mod_jk.log my workers.properties is #workers.tomcat_home=/usr/local/jakarta/jakarta-tomcat-4.0 workers.tomcat_home=/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build workers.java_home=/usr/local/jre ps=/ worker.list=ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 my entry in httpd.conf file is IfModule mod_jk.c JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /servlets/* ajp13 /IfModule from tomcat's log 2002-12-08 02:45:14 Ajp13Processor[8009][0] Starting background thread 2002-12-08 02:45:14 Ajp13Processor[8009][1] Starting background thread 2002-12-08 02:45:14 Ajp13Processor[8009][2] Starting background thread 2002-12-08 02:45:14 Ajp13Processor[8009][3] Starting background thread 2002-12-08 02:45:14 Ajp13Processor[8009][4] Starting background thread from tomcat's server.xml !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Apache and Tomcat work fine standalone and tomcat is serving pages on its own. To see this behavior please go to: http://www.xicom.biz:9084/test3.jsp then to http://www.xicom.biz/test3.jsp then to http://www.xicom.biz/servlet/HelloWorldExample what is going on??!?!?!? Please help, our client are currently down because of this. Really interesting thing is that this setup has been up and running for some months now. Please let me know what is happening! Best Regards, Alex Korneyev
jk2 + SSL
Hi, I'm running Apache 1.3 with mod_ssl/Tomcat 4.1/JK2 and I'd like to get SSL access to some of my webapps. This is my workers2.properties: - [shm] file=/usr/local/httpd/logs/shm.file size=1048576 [channel.socket:localhost:8009] port=8009 host=127.0.0.1 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/foo/*] worker=ajp13:localhost:8009 [uri:/bar/*] worker=ajp13:localhost:8009 -- and this is my server.xml connector config: -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector ... port=8009 protocolHandlerClassName=org.apache.jk.server.JKCoyoteHandler scheme=http secure=false Factory className=org.apache.catalina.net.DefaultServerSocketFactory/ /Connector -- I'd like 'bar' to be accesible by https 'foo' by http. However, with the above config, when I browse to 'https://localhost/bar/' I get the error message: Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please. Hint: https://localhost:443/ When I change my connector in server.xml to scheme='https' then SSL access works ok, but if I try to connect at http://localhost/foo/, I'm getting automatically redirected to 'https'... I've tried to set up two connectors (one with scheme=http on port 8009 and one with scheme=https on port 8019), but I don't know how to configure jk2 to map /foo/ to 8009 and /bar/ to 8019. Can anybody help? Thanks Alex -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.12 no longer likes my admin directory.
Hmm, not quite sure about that. My admin directory is within an existing context 'myApp'. Why should the admin.xml care about the names within my existing context. I can understand that I can't create a new web app called admin but should I not be able to give any name to directories within an existing web app? Alex -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 3:10 PM To: 'Tomcat Users List' Subject: RE: Tomcat 4.12 no longer likes my admin directory. it doesn't care. The admin.xml just supplied a context definition for /admin. by removing it, you allowed your context to be called /admin. It's not a bug, but just a naming conflict. Charlie -Original Message- From: Colic, Alex [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 12:16 PM To: 'Tomcat Users List' Subject: RE: Tomcat 4.12 no longer likes my admin directory. Yup, I am in conflict. I deleted the admin.xml file and my sub directory called 'admin' worked fine. Seems like a bug to me. Why should tomcat car what I call the sub directories within my web app? Alex -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 10:47 AM To: 'Tomcat Users List' Subject: RE: Tomcat 4.12 no longer likes my admin directory. you may be in conflict with the new admin feature of 4.1.x. I'm not on 4.1.x yet, so I'm not sure how its implemented. Charlie -Original Message- From: Colic, Alex [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 3:29 PM To: 'Jano'; Tomcat Users List Subject: RE: Tomcat 4.12 no longer likes my admin directory. Hi, sorry I should have been clearer. My directory structure is: Tomcat/webapps/myApp/admin/menu.jsp Since I have moved from 4.06 to 4.12 nothing in the admin directory is accessable. Other sub directories off of myApp work fine. Is there problems with a directory name of 'admin'? Thanks Alex -Original Message- From: Jano [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 2:05 PM To: Tomcat Users List Subject: Re: Tomcat 4.12 no longer likes my admin directory. I have a web app that I am moving from 4.06 to 4.12. Within my web app I have an admin folder that has a bunch of jsp's. Now when I try to access anything in that folder I get an error that the resource does not exist or cannot be found. All other sub folders off of my webapps folder works fine. you have an admin/WEB-INF/web.xml, right? This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen. This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen. This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute
RE: Tomcat 4.12 no longer likes my admin directory.
Yup, I am in conflict. I deleted the admin.xml file and my sub directory called 'admin' worked fine. Seems like a bug to me. Why should tomcat car what I call the sub directories within my web app? Alex -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 10:47 AM To: 'Tomcat Users List' Subject: RE: Tomcat 4.12 no longer likes my admin directory. you may be in conflict with the new admin feature of 4.1.x. I'm not on 4.1.x yet, so I'm not sure how its implemented. Charlie -Original Message- From: Colic, Alex [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 3:29 PM To: 'Jano'; Tomcat Users List Subject: RE: Tomcat 4.12 no longer likes my admin directory. Hi, sorry I should have been clearer. My directory structure is: Tomcat/webapps/myApp/admin/menu.jsp Since I have moved from 4.06 to 4.12 nothing in the admin directory is accessable. Other sub directories off of myApp work fine. Is there problems with a directory name of 'admin'? Thanks Alex -Original Message- From: Jano [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 2:05 PM To: Tomcat Users List Subject: Re: Tomcat 4.12 no longer likes my admin directory. I have a web app that I am moving from 4.06 to 4.12. Within my web app I have an admin folder that has a bunch of jsp's. Now when I try to access anything in that folder I get an error that the resource does not exist or cannot be found. All other sub folders off of my webapps folder works fine. you have an admin/WEB-INF/web.xml, right? This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen. This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen.
Tomcat 4.12 no longer likes my admin directory.
HI, I have a web app that I am moving from 4.06 to 4.12. Within my web app I have an admin folder that has a bunch of jsp's. Now when I try to access anything in that folder I get an error that the resource does not exist or cannot be found. All other sub folders off of my webapps folder works fine. Is admin a reserved folder? Thanks Alex This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen.
RE: Tomcat 4.12 no longer likes my admin directory.
Hi, sorry I should have been clearer. My directory structure is: Tomcat/webapps/myApp/admin/menu.jsp Since I have moved from 4.06 to 4.12 nothing in the admin directory is accessable. Other sub directories off of myApp work fine. Is there problems with a directory name of 'admin'? Thanks Alex -Original Message- From: Jano [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 2:05 PM To: Tomcat Users List Subject: Re: Tomcat 4.12 no longer likes my admin directory. I have a web app that I am moving from 4.06 to 4.12. Within my web app I have an admin folder that has a bunch of jsp's. Now when I try to access anything in that folder I get an error that the resource does not exist or cannot be found. All other sub folders off of my webapps folder works fine. you have an admin/WEB-INF/web.xml, right? This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen.
Has anyone heard of this class:org.apache.catalina.INVOKER.pwCS S.css?
HI, I am getting the following error. Has anyone heard of this class:org.apache.catalina.INVOKER.pwCSS.css? Thanks Alex 2002-11-11 20:39:56 action: Creating new Action instance 2002-11-11 20:40:30 StandardWrapper[:org.apache.catalina.INVOKER.pwCSS.css]: Marking servlet org.apache.catalina.INVOKER.pwCSS.css as unavailable 2002-11-11 20:40:30 invoker: Cannot allocate servlet instance for path /servlet/pwCSS.css javax.servlet.ServletException: Wrapper cannot find servlet class pwCSS.css or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java: 88 0) This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen.
Removing Response Headers
Hi, I'm trying to find a way to remove response headers from the default set of response headers that Tomcat sends back to the browser with each request. From my analysis here's what Tomcat sends back by default on most requests: HTTP/1.1 200 OK Content-Type: text/html;ISO-8859-1 Date: Wed, 30 Oct 2002 03:09:21 GMT Server: Apache Tomcat/4.0.4 (HTTP/1.1 Connector) Transfer-Encoding: chunked Set-Cookie: JSESSIONID=E0A77CD43161227E989CE9C0BA3C6D8F;Path=/cc [body of the request here] I'd like to be able to get rid of the Date, Server and Set-Cookie header. I don't see anyway to do this using the methods provided on HttpServletResponse. That object only has methods for adding header fields. I briefly investigated using a filter to do this, but I don't a filter will give me access to the header part of the response, only the main body of the HTTP response. I may be wrong about this, so please correct me if you know otherwise. Why do I want to do this? I'm writing an application for the J2ME MIDP specification which is to run on Palm Pilot devices. I'm doing performance testing and the Palm Pilot is spending a significant amount of time processing the response headers that are coming into it as responses from web pages that it is requesting from my Tomcat server. My testing indicates that it takes the Palm Pilot approximately 1/2 of a second to process each additional response header. This adds up to a lot of extra air time and unnecessary processing time. I need to minimize the amount of data that is transmitted between the Palm Pilot and the server so that it runs as fast as possible. The way I arrived at the 1/2 of a second per response header figure was by adding extra headers to the request and timing how much longer than normal the processing took. I'm hoping someone can tell me if this is possible or not. Thank you for your assistance. Alex. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Defining methods in JSP pages
Yeah, that thought hit me last night as well (just after I sent the message of course:). I was thinking more about the possibility of doing the call from some other JSP page as well. Do you use these features? Do you have a prefered place for display related functions (model/view/controller/other)? Alex. Chris Means wrote: Alex, Are you aware that you could simply call the method that you defined directly in the JSP body? %! public String getTitle(HttpServletRequest request) { String id = request.getParameter(id); return id: + id; } % % String title = getTitle (request) ; out.write (title) ; % -Chris -Original Message- From: Alex Muc [mailto:[EMAIL PROTECTED]] Sent: Saturday, October 12, 2002 12:55 AM To: [EMAIL PROTECTED] Subject: Defining methods in JSP pages Hi, I've been using JSPs for quite a while now and have been trying to find better ways to do various things. One of the features of JSPs that I stumbled on a while ago was the ability to define methods in JSPs and to be able to call those methods from within the page using Java Reflection mechanisms. This works relatively well (see example below), except for the baggage of having to do the reflection work. Alas, that is the price we pay for a strongly typed language. What I'm wondering is why more people don't use the declaration syntax as a way to define methods in pages and use those methods to abstract out some of the functionality they need? My answer would be that it is generally frowned upon (by the MVC crowd) to put logic into the JSP page and to a certain extent I agree. But, there are times where the logic code is only used to modify the display and in those cases it seems to me like putting that logic into a method within the JSP makes sense. For example, when building the title string of the page you often have to look up or build some sort of descriptive string from the various IDs of the objects that are part of the request/session to the page. It seems to me that doing this sort of operation is the kind of thing which should be within the JSP page and using methods within the JSP page seem to make even more sense as opposed to scriptlets. The alternatives are: 1) Put the getPageTitle method into the Model object. If the model is supposed to capture the data of the object then it doesn't seem to me like it should be cluttered with methods relevant to displaying the object. 2) Put the getPageTitle method into the Controller object. Again, if the controller is the driver of the business logic of the object(s) then it too doesn't seem like the right place for methods relevant to displaying the object. It seems like using methods in JSP pages is a good idea for certain things. It also has it's downsides, the main one that I see is that there is no inheritance among JSP pages. I wonder how hard this would be to add? Does any one have any comments about why defining methods in JSP pages is a good or bad idea? I would really appreciate hearing from you. Thanks for you time. Alex. *** Example method in a JSP page: *** %@ page language=java import=java.lang.reflect.* % %! public String getTitle(HttpServletRequest request) { String id = request.getParameter(id); return id: + id; } % % Class c = this.getClass(); // The types for the method call Class [] pTypes = new Class [1]; Class hsr = Class.forName(javax.servlet.http.HttpServletRequest); pTypes[0] = hsr; // Get the method Method m = c.getMethod(getTitle, pTypes); // Build the list of parameters to the method Object [] params = new Object [1]; params[0] = request; // Invoke the method and get the result String result = (String) m.invoke(this, params); % Method Result: %= result % -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Defining methods in JSP pages
Hi, I've been using JSPs for quite a while now and have been trying to find better ways to do various things. One of the features of JSPs that I stumbled on a while ago was the ability to define methods in JSPs and to be able to call those methods from within the page using Java Reflection mechanisms. This works relatively well (see example below), except for the baggage of having to do the reflection work. Alas, that is the price we pay for a strongly typed language. What I'm wondering is why more people don't use the declaration syntax as a way to define methods in pages and use those methods to abstract out some of the functionality they need? My answer would be that it is generally frowned upon (by the MVC crowd) to put logic into the JSP page and to a certain extent I agree. But, there are times where the logic code is only used to modify the display and in those cases it seems to me like putting that logic into a method within the JSP makes sense. For example, when building the title string of the page you often have to look up or build some sort of descriptive string from the various IDs of the objects that are part of the request/session to the page. It seems to me that doing this sort of operation is the kind of thing which should be within the JSP page and using methods within the JSP page seem to make even more sense as opposed to scriptlets. The alternatives are: 1) Put the getPageTitle method into the Model object. If the model is supposed to capture the data of the object then it doesn't seem to me like it should be cluttered with methods relevant to displaying the object. 2) Put the getPageTitle method into the Controller object. Again, if the controller is the driver of the business logic of the object(s) then it too doesn't seem like the right place for methods relevant to displaying the object. It seems like using methods in JSP pages is a good idea for certain things. It also has it's downsides, the main one that I see is that there is no inheritance among JSP pages. I wonder how hard this would be to add? Does any one have any comments about why defining methods in JSP pages is a good or bad idea? I would really appreciate hearing from you. Thanks for you time. Alex. *** Example method in a JSP page: *** %@ page language=java import=java.lang.reflect.* % %! public String getTitle(HttpServletRequest request) { String id = request.getParameter(id); return id: + id; } % % Class c = this.getClass(); // The types for the method call Class [] pTypes = new Class [1]; Class hsr = Class.forName(javax.servlet.http.HttpServletRequest); pTypes[0] = hsr; // Get the method Method m = c.getMethod(getTitle, pTypes); // Build the list of parameters to the method Object [] params = new Object [1]; params[0] = request; // Invoke the method and get the result String result = (String) m.invoke(this, params); % Method Result: %= result % -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Session.invalidate() not working
I'm using Tomcat 4.1 and I can't log off users via session.invalidate(). I'm using Basic Authentication. Can anyone help Thanks Alex __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Session.invalidate() not working
Thanks I tried it and it works Alex --- Craig R. McClanahan [EMAIL PROTECTED] wrote: I answered this question yesterday. The short answer is that it's not possible to portably log users off if you're using BASIC authentication, because the browser keeps sending the credentials (with every request) until the user shuts down and restarts their browser. The answer is to use form-based login instead. Craig On Mon, 7 Oct 2002, Alex Imbastari wrote: Date: Mon, 7 Oct 2002 08:00:40 -0700 (PDT) From: Alex Imbastari [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Session.invalidate() not working I'm using Tomcat 4.1 and I can't log off users via session.invalidate(). I'm using Basic Authentication. Can anyone help Thanks Alex __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Session.invalidate() does not work
Hi all I am using TOmcat 4.1 with Basic Authentication with JDBC Realm. I log off users using session.invalidate() but this doesn't seem to work. Any suggesstions would be appreciated Thanks Alex -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Mysql DataSource with Tomcat 4.1
I'm using a mysql jdbc datasource with TOmcat 4.1. Two questions 1) Does TOmcat pool database connections? If so where are the number of pooled connections specified? 2) The server seems to hang after about 3 accesses to the database. Has anyone experienced this? THanks Alex -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
java.lang.ArrayIndexOutOfBoundsException
Hi, Sometime I'v got this error when accessing jsp files I user apache (+ mod_jk), tomcat 3.3. Seems to be a tomcat error. Do you know if this error occures during heavy load on tomcat? Error: 500 Location: /../error.jsp Internal Servlet Error: java.lang.ArrayIndexOutOfBoundsException: -1 at org.apache.tomcat.modules.mappers.DecodeInterceptor.normalize(DecodeIntercep tor.java:371) at org.apache.tomcat.modules.mappers.DecodeInterceptor.normalizePath(DecodeInte rceptor.java:175) at org.apache.tomcat.modules.mappers.DecodeInterceptor.postReadRequest(DecodeIn terceptor.java:446) at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:939 ) at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm pl.java:259) at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl .java:174) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:423) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:448) at main_1._jspService(main_1.java:132) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Int erceptor.java:341) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:516) at java.lang.Thread.run(Thread.java:484) Any clue to solve this problem regards _ Alex Johansson Systemutvecklare @ TechLex 0708 - 29 26 01 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[Security] - using a connection pool with the jdbc realm
Hi, I want to use a jdbc realm with my application in tomcat 4.1 the problem is that I want to utilise a connection pool for authentication, but only want the connection pool jar file to have web app scope (in a war file). I can go DriverManager.getConnection(poolURL) once I have loaded the driver, but I don't know how (if possible at all) to initialise the pool before the realm initiliases - does anybody know a workaround to this? thanks in advance Alex __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Postgresql DataSource Tomcat 4.1 SQLException
I'm using postresql with tomcat usin jndi. If you still have problems tell me and I'll try to help. Quoting Ray Madigan [EMAIL PROTECTED]: Paul: Did you get this problem fixed. I have nearly the identical situation you are using working and will help if you need it. Thanks -Original Message- From: Ben Walding [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 22, 2002 1:36 AM To: Tomcat Users List Subject: Re: Postgresql DataSource Tomcat 4.1 SQLException The JNDI namespace you want is java:comp/env and not java:/comp/env But I'm not sure if is the cause of the problem. Alfonso Martinez wrote: Hi Paul, I am a newbie too, but trying to help. I had a problem like yours recently and found an error in my server.xml. I know you checked that file already, but can you send those (also web.xml) files to me please to see what I can do? Thanks Jose On Fri, Sep 20, 2002 at 11:10:41AM -0500, Paul Salazar wrote: Hi, I am trying to setup a postgresql datasource on tomcat 4.1 with much frustration. I have read all the threads out there concerning this matter and I can't see to find anyone who has a working example. What I have is this: Redhat 7.2 server running: Postgresql 7.2 Tomcat 4.1 I have a working Tomcat app that can connect to the Db and perform queries when manually loading the driver 'Class.forName(org.postgresql.Driver); and then doing a getConnection using the URL, Name, Password. But when trying to get a connection using a Datasource, as in, Context ctx = new InitialContext(); Context envctx = (Context)ctx.lookup(java:/comp/env); DataSource ds = (DataSource)envctx.lookup(jdbc/postgres); //jndi name of the datasource Connection conn = ds.getConnection(); the getConnection() statement throws an SQLException: Cannot load JDBC driver class 'null' I have gone over all the server.xml and web.xml files with a fine tooth comb and assure you that is not the problem. I have also tried using the jxDBCon drivers with the same results. I have come to the conclusion that it must be a tomcat problem. Has anyone gotten this to work with this config?? Paul Salazar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat Email - JavaMail Advice.
I need to make a web app that will notify and monitor activity to users by email, and potentially thousands of users (therefor emails). I want to ask for advice as to how to handle this. Should the web app generate all the emails? May be use another machine as a mail server (linux with exim?), but have the web app generate them? Have the web app just insert all emails to be sent in a database table and have a separate application monitor the table or have trigers in the db server (postgresql) that will launc the app (java?) that will send the emails? As far as JavaMail, i did a small test with the code in the example in tomcat (EmailServlet), I tried to send 1000 emails to a server of mine, using localhost as the smtp server, and around the 70th email, the app complained about a nested error, the localhost could not be contacted, connection refused, etc. My code is very simplistic, and I only did a for loop to try to send the same email a thousand times to the same host. Evidently this doesn't work. I'm very new to this, so could someone give me some advice on how to send large amounts of email? Currently using linux (debian woody) with exim. Advise in all aspects of this email is greatly appreciated. Thank you in advance! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Question
RTFAQ: http://www.jguru.com/faq/view.jsp?EID=160 Have fun! - Alex On Wed, Sep 11, 2002 at 09:31:58AM -0700, Ralph Merrick wrote: Hello all, thanks a lot. Just one question would be, I have a jsp page that would be a form that would take input from the user, and the user has a choice to upload a file. So on submission of the form, if they specify the file name, then it would be uploaded to the server, and the full path name would be saved as a String in the databases. So how can that be done in Java in JSP format. This is on a Tomcat web server, using MYSQL datatbase, so I am sure I would have to specify the full path name and the IP server. Thanks so much . - Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost -- Alex Chaffee mailto:[EMAIL PROTECTED] jGuru - Java News and FAQs http://www.jguru.com/alex/ Creator of Gamelan http://www.gamelan.com/ Founder of Purple Technology http://www.purpletech.com/ Curator of Stinky Art Collective http://www.stinky.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Anyone else have problems migrating apps to tomcat4.1.9.
Hi, I have a web application that has been working fine in tomcat 4.0.1 for a couple of months now. I want to move over to 4.1.9+ to get a couple of features. I like the new management console and the improved jndi database access. I installed tomcat and moved my app over to the web apps directory. The app now somewhat works. A few problems. Any jsp in a sub folder does not work. If I try to access them I get a 'can't compile the jsp error'. Session attributes seem to be out of wack. When I user logs in I put a user object in their session. If they try to access a management page I have a tag that checks to see if that object exists in the session and if they have the required security attributes. I stepped through that tag code and the session the code gets is new and therefore the object is not there. Anyone else have any problems with migrating applications over to 4.1.9? Thanks Alex --- This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen. ==
JDBC Realm - changing password
OK, a user wants to change his password for the Tomcat protected folder. The protection is done using JDBCRealm (or MemoryRealm). The password is changed using a special servlet. OK, password is changed in the database, BUT, you have to restrat Tomcat or restart the context to make new password working! That's sad, unless I'm missing something. with best wishes Alexander Kachanov -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HA: JDBC Realm - changing password
It looks as it is not working. I log into protected area as /m Then logout. Close all browser windows Change the password to qq Launch new browser Open the protected area Still /m is valid combination but /qq is not. Restart Tomcat Launch new browser Open the protected area /qq is now a valid login combination Using Tomcat 4.0.4 English Tried both MemoryRealm and JDBCRealm -Исходное сообщение- От: David Cassidy [mailto:[EMAIL PROTECTED]] Отправлено: Вт 03.09.2002 18:08 Кому: Tomcat Users List Копия: Тема: Re: JDBC Realm - changing password to quote ... http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html * Once a user has been authenticated, the user (and his or her associated roles) are cached within Tomcat for the duration of the user's login. (For FORM-based authentication, that means until the session times out or is invalidated; for BASIC authentication, that means until the user closes their browser). Any changes to the database information for an already authenticated user will *not* be reflected until the next time that user logs on again. has this user 'logged out' / had their session invalidated ? Very interrested as I want to use this myself and if things like pw change don't work then Let us know D Alex Kachanov wrote: OK, a user wants to change his password for the Tomcat protected folder. The protection is done using JDBCRealm (or MemoryRealm). The password is changed using a special servlet. OK, password is changed in the database, BUT, you have to restrat Tomcat or restart the context to make new password working! That's sad, unless I'm missing something. with best wishes Alexander Kachanov -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat problem with struts *.do and /do/*
hi, i'm using tomcat 4.0.4 and struts 1.0.2 and have a problem with my mapping configuration file (struts-config.xml). in an action mapping such as: actionpath=/travel type=com.jazzdup.arak.user.TravelAction scope=request forward name=failure path=/logon.do/ forward name=success path=/travel.jsp/ /action the path to *.jsp works fine but on trying to follow the path to /logon.do, i get the following error: java.lang.IllegalArgumentException: Path failure2 does not start with a / character at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(Application Context.java:572) at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(Appli cationContextFacade.java:174) at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja va:1751) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:646) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:646) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ), etc, etc... now, changing *.do to /do/* (ie/ change /logon.do to /do/logon with the corresponding change in the web.xml file) works fine for normal links but when trying to forward does NOT work. does this work with the standalone tomcat 4.0.4? i'm using the jwsdp. i've found hardly any info on this - the references i did find were broken/didn't give much info at all so does anyone have any more information on this? or can someone suggest a decent workaround? the only information that i've been able to glean has been that there's a known bug in the jasper compiler and that changing it to /do/* should work... but it doesn't thanks, aL. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JDBC Realm - changing password
yes, I'm sure I disabled cookies in my browser. and I've used another browser (opera) to access the same page after the password has been changed. It still uses the same old password. New password is not used utill restart. with best wishes Alexander Kachanov -Original Message- From: Markus Zanglein [mailto:[EMAIL PROTECTED]] Sent: 3 сентября 2002 г. 21:44 To: Tomcat Users List Subject: Re: JDBC Realm - changing password are you shure, that your session is really got invalidated ? If you track sessions via cookies, make sure that your browser deletes the cookie on exit. it might be, that the cookie lifetime is not set to 0 cu MZ -Ursprьngliche Nachricht- Von: Alex Kachanov [EMAIL PROTECTED] An: Tomcat Users List [EMAIL PROTECTED] Datum: Dienstag, 3. September 2002 11:44 Betreff: HA: JDBC Realm - changing password It looks as it is not working. I log into protected area as /m Then logout. Close all browser windows Change the password to qq Launch new browser Open the protected area Still /m is valid combination but /qq is not. Restart Tomcat Launch new browser Open the protected area /qq is now a valid login combination Using Tomcat 4.0.4 English Tried both MemoryRealm and JDBCRealm -Исходное сообщение- От: David Cassidy [mailto:[EMAIL PROTECTED]] Отправлено: Вт 03.09.2002 18:08 Кому: Tomcat Users List Копия: Тема: Re: JDBC Realm - changing password to quote ... http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html * Once a user has been authenticated, the user (and his or her associated roles) are cached within Tomcat for the duration of the user's login. (For FORM-based authentication, that means until the session times out or is invalidated; for BASIC authentication, that means until the user closes their browser). Any changes to the database information for an already authenticated user will *not* be reflected until the next time that user logs on again. has this user 'logged out' / had their session invalidated ? Very interrested as I want to use this myself and if things like pw change don't work then Let us know D Alex Kachanov wrote: OK, a user wants to change his password for the Tomcat protected folder. The protection is done using JDBCRealm (or MemoryRealm). The password is changed using a special servlet. OK, password is changed in the database, BUT, you have to restrat Tomcat or restart the context to make new password working! That's sad, unless I'm missing something. with best wishes Alexander Kachanov --
RE: JDBC Realm - changing password
I'm sorry What is tomcat 4.1? The latest build as I know is 4.0.4 with best wishes Alexander Kachanov -Original Message- From: David Cassidy [mailto:[EMAIL PROTECTED]] Sent: 3 u~q 2002 s. 18:09 To: Tomcat Users List Subject: Re: JDBC Realm - changing password to quote ... http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HA: JDBC Realm - changing password
sorry, guys, my fault. if you use MemoryRealm - changes take place only after restart if you use JDBCRealm - changes take place after browser restart winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to set up a security constraint?
Hi, I have a web site with the following directory structure: root/admin/sysop. I only want certain people to have access to the admin section and only other people to have access to the sysop section. I have created two users in the tomcat-users.xml file: role rolename=sysop/ role rolename=admin/ user username=admin password=test1 roles=admin/ user username=sysop password=test2 roles=sysop/ In the server.xml file I have uncommented the: Realm className=org.apache.catalina.realm.MemoryRealm / line. Then in the web.xml file I have added the following: security-constraint web-resource-collection web-resource-nameAdmin Pages/web-resource-name url-pattern/admin/url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint security-constraint web-resource-collection web-resource-nameSysop Pages/web-resource-name url-pattern/admin/sysop/*/url-pattern /web-resource-collection auth-constraint role-namesysop/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameAdmin Pages/realm-name /login-config login-config auth-methodBASIC/auth-method realm-nameSysop Pages/realm-name /login-config This is where my problem is. User admin and sysop can access both the admin and the sysop sections. I must have set the security constraint incorrect. Can someone please point out what is wrong. Thanks Alex -- This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen. ==
How can listener read parameters?
Hi, I have a listener defined as follows: Server port=3D8005 shutdown=3DSHUTDOWN debug=3D0 Parameter name=3DcloudscapeURL value=3Dd:/database/test override=3Dfalse/ Listener className=3DCloudscapeTie debug=3D5/ =46rom within the CloudscapeTie class how can I read the 'cloudscapeURL' parameters? Thanks for any info. Alex -- This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen. ==
RE: How can listener read parameters?
Thanks just what I need. Alex -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: August 28, 2002 12:47 PM To: Tomcat Users List Subject: Re: How can listener read parameters? On Wed, 28 Aug 2002, Colic, Alex wrote: Date: Wed, 28 Aug 2002 12:26:11 -0400 From: Colic, Alex [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: How can listener read parameters? Hi, I have a listener defined as follows: Server port=3D8005 shutdown=3DSHUTDOWN debug=3D0 Parameter name=3DcloudscapeURL value=3Dd:/database/test override=3Dfalse/ Listener className=3DCloudscapeTie debug=3D5/ =46rom within the CloudscapeTie class how can I read the 'cloudscapeURL' parameters? The best strategy would be to create a setUrl() method on your Listener class and do this instead: Listener className=CloudscapeTie url=d:/database/test/ When server.xml is processed, Tomcat looks at the attributes of each XML element and searches for a matching property setter on the corresponding class. Thanks for any info. Alex Craig --- This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen. ==
tomcat4 doesn't display compile or runtime errors/exceptions in jsppages like tomcat3
Hi, I recently upgraded tomcat3.2.2 to tomcat 4.0.4. Most of the upgrade went smoothly. Tomcat4 certainly seems faster than tomcat3 which is good. One of the things that tomcat3 had which tomcat4 seems to lack is the ability to view the compile or runtime errors and exceptions that occur when developing a jsp page. In particular when you are doing a jsp:include in tomcat3 and the included page was a jsp which had a error then tomcat3 would send the stack trace of the error in the HTML that it sent back to the browser and this error message was what made up the contents of the included page. I know some people must have hated this because it tended to jumble the HTML of the including page, but I found it much easier to deal with than the way tomcat4 works which is to display the stack trace in the log file for the context and then not display anything as the result of the included file. This is less useful because the user doesn't get any indication that something has gone wrong. I'm wondering if there is a way to tell tomcat to display the error messages to the browser AND the log file? I looked through the mail archives but didn't find anything and I checked the configuration documentation for tomcat4 but I couldn't find anything. Can anyone tell me if this is possible, and if so how. If it is not currently possible maybe that is a feature I could add if someone could tell me generally where to look. Thank you for your help. Alex. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat4 doesn't display compile or runtime errors/exceptionsin jsp pages like tomcat3
I hate to be replying to my own messages, but I figured out a way to do what I'm looking for. I'll describe it here in case anyone else wants to do something similar. I modified the org.apache.jasper.servlet.JspServlet file which appears to be the main location where jsps are driven from. In the service(request, response) method there are a bunch of catch blocks at the bottom of the method to catch the various kinds of exceptions that may come back from the executing the jsp page. There are different catch blocks for both compile time and runtime exceptions that may be caused by executing the jsp page. I basically just included the following code in each of the catch blocks so that the error message would get written to the browser as well as continue having tomcat handle the exception normally (print to the log). This is the code I added: // Write out the error PrintWriter pw = response.getWriter(); pw.println(pre); pw.println(Exception in page:\n\n); pw.println(\n\n); e.printStackTrace(pw); pw.println(/pre); Now the catch block looks like this: } catch (IOException e) { // Write out the error PrintWriter pw = response.getWriter(); pw.println(pre); pw.println(Exception in page:\n\n); pw.println(\n\n); e.printStackTrace(pw); pw.println(/pre); throw e; } It seems to work fine. If you have questions please send me a mail privately as I don't follow this list very closely. Thanks Alex. Alex Muc wrote: Hi, I recently upgraded tomcat3.2.2 to tomcat 4.0.4. Most of the upgrade went smoothly. Tomcat4 certainly seems faster than tomcat3 which is good. One of the things that tomcat3 had which tomcat4 seems to lack is the ability to view the compile or runtime errors and exceptions that occur when developing a jsp page. In particular when you are doing a jsp:include in tomcat3 and the included page was a jsp which had a error then tomcat3 would send the stack trace of the error in the HTML that it sent back to the browser and this error message was what made up the contents of the included page. I know some people must have hated this because it tended to jumble the HTML of the including page, but I found it much easier to deal with than the way tomcat4 works which is to display the stack trace in the log file for the context and then not display anything as the result of the included file. This is less useful because the user doesn't get any indication that something has gone wrong. I'm wondering if there is a way to tell tomcat to display the error messages to the browser AND the log file? I looked through the mail archives but didn't find anything and I checked the configuration documentation for tomcat4 but I couldn't find anything. Can anyone tell me if this is possible, and if so how. If it is not currently possible maybe that is a feature I could add if someone could tell me generally where to look. Thank you for your help. Alex. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex JGURU PREMIUM SERVICE! jGuru has invested over 1 million dollars in our 6500+ carefully edited FAQ entries. Become a premium member now and help us to continue providing high quality content. Get the World's BEST JAVA SEARCH ENGINE, JAVADOC QUICK LINKS, FASTER PAGE RENDERING, and NO ADS. Just 9.95 a month or subscribe for a year at 99.95 and get 12 months for the price of 10 and a FREE XL JGURU T-SHIRT! Sign up now and try out the premium service for two weeks at no charge! http://www.jguru.com/misc/page.jsp?fsm=premiumregnode=blurbsrc=email Hi. You asked to be notified weekly when certain jGuru.com items get new entries. ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP i have placed the class file in the WEB-INF/classes in the project directory and the whne i run my aplication this is what comes... pre org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. br An error occurred at line: 2 in the jsp file: /techSupport.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\JSPTechSupport\techSupport$jsp.java:60: Class org.apache.jsp.TechSupportBean not found. TechSupportBean techSupportBean = null; ^ br An error occurred at line: 2 in the jsp file: /techSupport.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\JSPTechSupport\techSupport$jsp.java:63: Class org.apache.jsp.TechSupportBean not found. techSupportBean= (TechSupportBean) ^ An error occurred at line: 2 in the jsp file: /techSupport.jsp br Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\JSPTechSupport\techSupport$jsp.java:68: Class org.apache.jsp.TechSupportBean not found. techSupportBean = (TechSupportBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), TechSupportBean); ^ br /pre http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=939638 Does anybody know of any available classes that can create word documents on the fly? (or RTF format) http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=939635 I'm running into a problem when I encounter a coding error in my jsp file, go and fix the error, save it, and try to access the page with my changes. The server (Tomcat 4.0) persists in giving me the old version of the file. brbr I tried 1) shutting down and restarting Catalina, then 2) shutting down, deleting the .java file for the page from work\myWebApp, and restarting. I'm still getting errors related to code that no longer exists in the page. brbr http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=939634 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: configuration ofjames
Can you PLEASE remove your ridiculous setting of 'Sender requests receipt that you have received this message'. Its a bloody mailing list. Thanks - Original Message - From: Joseph E. Savard [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, July 12, 2002 11:44 PM Subject: Re: configuration ofjames Do you have a static IP? Try that first. or your Domain name with a route to the mail (pop3/smtp) ports.. you could setup mail.whatever.com for pop3 and smtp - Original Message - From: Jonathan Zhang [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, July 12, 2002 6:54 PM Subject: configuration ofjames thanks for the recommendation, I've set up james on my pc, but I am not sure how to configure it, like where to create email accounts. I sent an email to postmaster@[myip], what would be the smtp and pop3 server name? thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]