RE: How to load properties into tomcat 4.0.3?
You can do something like this in your web.xml servlet servlet-namesomename/servlet-name servlet-classsomeclass/servlet-class init-param param-nameparam1/param-name param-valuesomevalue/param-value /init-param /servlet You can then call getServletConfig().getInitParameter(param1) from the init method of the somename servlet. Hope this helps, Subir -Original Message- From: Adam Pfeiffer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 10:52 PM To: [EMAIL PROTECTED] Subject: How to load properties into tomcat 4.0.3? Hello, I have a bean that uses the Properties Object. Currently, on each jsp that calls that bean I have to do a bean.setPropsDir() which sets the directory where to find the properties file. Is there a way in server.xml, web.xml or some other way that I can put in a variable that will define the directory where the properites file exists so that the class can access this? Thanks. __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.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]
Re: load-on-startup tag problem
On Tue, 4 Jun 2002 09:00:50 -0400 Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, A bit more info would be nice. Specifically, do you get any errors parsing your web.xml? Is there anything in your context log or the general tomcat logs regarding not being able to find a class required by one of the servlets below? How do you tell that the servlet classes are not found - exceptions thrown or just not the expected behavior? In the latter case - in which of the servlet methods have you placed your code? Yours, Haakon Hansen Norway -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Socket closing timeout
This may be a tiny bit offtopic but let me wondering : I am currently testing webapps onto Tomcat 4, JRun 3.1 and 4. Tomcat never throws a JVM address in use exception (I manually control the service). JRun occasionally does and the root cause it that sockets need too much time to my manual service or server stop / start action (I am impatient lol). Any info about socket timeouts ? :-) Thanks. Barbara __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomact not staring
change the memory settings for the DOS console. When I run TC under windows I have the initial environment memory set to 4096 (the maximum available through the UI). -Original Message- From: puneet sachar [mailto:[EMAIL PROTECTED]] Sent: 05 June 2002 07:06 To: Tomcat Users List Subject: tomact not staring hi developers i have installed tomcat 4.0.4 and did everything as mention ... and in autoexec file mention set java_home as c:\jdk1.3 still giving me error out of environment space when changes made to memory of the .bat file .. now saying java_home variable is not defien... this is starnge to me .. same working ta my home not in office vie my bat file and tell me what could be error -- SET JAVA_HOME=C:\JDK1.3 SET CATALINA_HOME=c:\Tomcat SET PATH=C:\JDK1.3\bin;C:\Tomcat\bin;C:\JMETER\jakarta-jmeter\bin;C:\Oracle\Ora8 1\BIN;.; SET CLASSPATH=C:\jdk1.3\lib\tools.jar;C:\Tomcat\lib\jasper-compiler.jar;C:\Tomca t\lib\jasper-runtime.jar;C:\Tomcat\lib\naming-factory.jar;.; - regards Puneet __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.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]
Re: CrossContext
Didn't seem to make a difference. I'm downloading the source, as I should have before I asked anyone... No doubt I'll have further questions. Thanks, JP On 5/6/02 12:53 am, Phillip Morelock [EMAIL PROTECTED] wrote: Are you supposed to have the trailing slash? maybe: getServletContext( ).getContext( /A ) I haven't used this feature, just trying to help. fillup On 6/4/02 2:44 PM, Jonathan Perry [EMAIL PROTECTED] wrote: Anybody? Please? This is really doing my head in. Thanks a lot, JP On 4/6/02 10:51 am, Jonathan Perry [EMAIL PROTECTED] wrote: Hi, I'm running jakarta-tomcat-4.0.3 on Mac OSX. I've got two contexts set up, A, and B. Both have crossContext=true in their section of server.xml. I have a copy of a servlet in each context, which has the following lines of code: ServletContext c = getServletContext( ).getContext( /A/ ); RequestDispatcher dispatcher = c.getRequestDispatcher( /helloWorld.jsp ); This code works as expected in context A, but fails to obtain a context (simply returning null, no exceptions thrown) in context B. I've searched through archives on several sites, including this one, and haven't found anything promising. Does anyone have any ideas of what I might be doing wrong? Thanks for your time, JP -- 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]
catalina-ant ReloadTask fails
Hi, i'm trying to reload a WAR-file using ant. Unfortunately ant returns an error that i have been unable to find in any documentation. list / install and remove tasks work as advertised... tools: Ant-1.5Beta1 / Tomcat-4.1.2 / RH Linux 7.3 'ant reload' returns: reload: [reload] FAIL - Reload not supported on WAR deployed at path /step BUILD FAILED /home/bruggenc/sources/step/build.xml:141: FAIL - Reload not supported on WAR deployed at path /step please correct me if i'm wrong: my idea of reloading is that I let ant create a new WAR-file and pass it to tomcat with the required parameters. But the reload task does not have a parameter for the war-filename. why? and how can it then reload the web application? thanks. -Alexander parts of my build.xml: property name=catalina.home location=${user.home}/tomcat/ property name=manager.url value=http://localhost:8080/manager/ property name=manager.path value=/step/ property name=manager.username value=bruggenc/ property name=manager.password value=mz-e30/ !-- Configure custom Ant tasks for the Manager application -- taskdef name=install classname=org.apache.catalina.ant.InstallTask / taskdef name=reload classname=org.apache.catalina.ant.ReloadTask / taskdef name=remove classname=org.apache.catalina.ant.RemoveTask/ taskdef name=list classname=org.apache.catalina.ant.ListTask/ targetname=reload description=Reload web application depends=war reload url=${manager.url} username=${manager.username} password=${manager.password} path=${manager.path}/ /target signature.asc Description: This is a digitally signed message part
Solaris JVM never seems to garbage collect, runs out eventually.
This may be a bit beyond the scope here but, We are running a J2EE system with Jakarta/Tomcat 3.2.1 and JBOSS 2.2 on Solaris. It uses the AJP13 connection protocol to connect to an Apache webserver and is load balanced between two J2EE servers. What seems to happen is that after a period of time running it continually ramps up the amount of memory used and never seems to return it. We are giving Tomcat 256MB of memory to start out with and 128MB to JBOSS. The machine itself has 512MB. After about 3 days or so of heavy use the system will run out of memory and Solaris will orphan the offending process. We have very little experience tuning Solaris JVM's. I use SGI myself so I am a little preplexed by this one. Could someone with experience tuning Solaris JVMs give me and my friends a hint or two on how to force the JVM to garbage collect/tune. Or is this just a memory leak in Tomcat and or JBOSS? Thanks Dave Hladky -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help needed urgent
Hello I have downloaded Tomcat version 4.0 from net and tried to install the server but it fails to start.it flashes a console for one second then goes off.i have tried almost everything to start amp; almost wasted 3-4 hrs..couls u please advice us how to make it run. looking forward to have response from ur side. thanks Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in
Re: tomcat vs ant vs j2me
Ant is an xml based build tool. Can also do a lot of other stuff. try http://jakarta.apache.org/ant/ for more details. Tomcat is a webcontainer!! -prabhakar tell me what is this tomcat ant... 1) is it software r extra utility...which added to taomcat and where to install it whatz difference b/w this and tomcat ..and what will added advantages 3) my j2me program don't work with tomcat actullay trying to make a small application which will send sms to mobile .. does anyone have program for that do send me -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: New Apache 2.0 / Tomcat 4.0.3 Windows Setup Guide
mod_jk also works on linux ( RedHat 7.0 and 7.2 with Apache 2.0.36 / Tomcat 4.0.3 ). downloaded jakarta-tomcat-connectors-4.0.4-b2-src or later and followed the docs. Carlos Ferreira Gilem Informatique aha that explains why I could not get mod_jk to work! On Tue, 4 Jun 2002 14:28, you wrote: Yes, mod_jk and mod_webapp serve the same purpose. At the moment, however, the only connector that works with Apache 2.x on Windows is mod_jk, and the only connector that works in Apache 2.x on Linux is mod_webapp. Strange state of affairs. :-P As for Apache/Tomcat versus Tomcat standalone, yes -- the configurability, flexibility, expandability, scaleability, and security of Apache are the main reasons to stick with Apache as your primary server. When it comes down to it, Tomcat is still just a REFERENCE IMPLEMENTATION of the Java Servlets/JSP specification. ___ Kevin Yank Technical Content Director SitePoint.com - Master the Web! e: [EMAIL PROTECTED] w: www.sitepoint.com ___ -Original Message- From: Martin Shears [mailto:[EMAIL PROTECTED]] Sent: June 4, 2002 12:51 AM To: Tomcat Users List Subject: Re: New Apache 2.0 / Tomcat 4.0.3 Windows Setup Guide Looking forward to the linux version! I need to set them up on RedHat 7.2/7.3 Setting up Apache 2.0/Tomcat 4.0.3 has been one of those low priority tasks I have at work for a new project. I guess the interesting part for me has been mod_jk, mod_jk2, mod_webapp etc ie joining to Tomcat. Getting the right versions, compiling the source .. documenting it for the next person. Do mod_jk and mod_webapp serve the same purpose? Someone asked my why do I need Apache, why not use Tomcat alone. I am familiar with the security and configuration of Apache, need to use SSL, mixed context of html, perl, servlets and jsp. That is as good as my answer gets. I wonder if anyone would suggest Tomcat standalone who has been there done that. They sure did not teach this stuff at university :) Cheers Martin On Tue, 4 Jun 2002 13:49, you wrote: I've just published my updated setup guide for Apache 2.0 and Tomcat 4.0.3 on Windows. Interested parties may find it here: http://sitepoint.com/article.php/305 It covers everything from obtaining and installing a working version of mod_jk to setting up Tomcat as a Windows service without using any 3rd party software. I also plan to publish a Linux version of this setup guide within a week. Feedback is welcome! -Kevin Yank Technical Content Director, SitePoint.com -- Martin Shears BS(MathsCompSci)| Email: [EMAIL PROTECTED] Chariot NetConnect | Web: http://www.chariot.net.au/ Technical Services Group | Phone (+61): 08 8359 2955 6/63 Pirie St ADELAIDE S.Aust | Fax(+61): 08 8359 3413 You are reminded that this e-mail and its attachments are subject to Chariot Internet Limited's legal disclaimer located at http://www.chariot.net.au/disclaimer.htm. You are encouraged to read it carefully to be aware of risks involved in electronic communication. -- 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]
Cant launch Tomcat4.1 : ClassCastException: sun.net.www.protocol.http.HttpURLConnection
Hi all, I'm trying to upgrade from Tomcat3.3 to Tomcat 4.1. When launching catalina, I get the following error: java.lang.ClassCastException: sun.net.www.protocol.http.HttpURLConnection at com.ibm.webdav.protocol.http.ResourceHTTPStub.setupRequest(ResourceHTTPStub.java:833) at com.ibm.webdav.protocol.http.ResourceHTTPStub.getProperties(ResourceHTTPStub.java:374) at com.ibm.webdav.Resource.getProperties(Resource.java:799) at com.ibm.webdav.Resource.getProperty(Resource.java:811) at com.ibm.webdav.Resource.isCollection(Resource.java:997) at com.ibm.webdav.ResourceFactory.create(ResourceFactory.java:111) at com.ibm.webdav.ResourceFactory.create(ResourceFactory.java:83) at webDAV.WebDAVManager.checkConnection(WebDAVManager.java:320) at webDAV.WebDAVManager.init(WebDAVManager.java:267) at webDAV.WebDAVManager.sharedInstance(WebDAVManager.java:305) at engine.managers.InitializationManager.initWebDAV(InitializationManager.java:836) at engine.managers.InitializationManager.initAll(InitializationManager.java:801) at servers.rmi.RMIInterfaceImpl.initDocSoul(RMIInterfaceImpl.java:1044) at userInterface.servlets.Servletinitializer.init(Servletinitializer.java:149) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:919) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:811) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3293) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardHost.start(StandardHost.java:739) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:499) at org.apache.catalina.core.StandardServer.start(StandardServer.java:707) at org.apache.catalina.startup.Catalina.start(Catalina.java:504) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Does anybody know why? The same code worked prefectly under Tomcat3.3. I'm using the same jdk, same external jars. My first thought was that T4.1 was loading differently. I tried to force it to load my jars first but with no results ;-( Before this error, I get a parsing error but I don't think it is related. org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*). at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213) at org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(XMLValidator.java:1851) at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1495) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1204) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.apache.commons.digester.Digester.parse(Digester.java:1284) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:634) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3445) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardHost.start(StandardHost.java:739) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:499) at org.apache.catalina.core.StandardServer.start(StandardServer.java:707) at org.apache.catalina.startup.Catalina.start(Catalina.java:504) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at
AW: Solaris JVM never seems to garbage collect, runs out eventually.
- First make shure that you don't have memory leaks on your own. - Make shure that you store as few data in sessions as possible. Remember that the sessions stay around for 30 minutes after the last action in the action. (30 minutes is the default for the session timeout). This way the number of concurrent sessions can be much higher than the number of active sessions. If you get 1 user per minute and each stays for one minute you will have 30 concurrent session, but only 1 active session. - The only memory leak that I know in this environment is the java compiler of the JDK. It has been reported that in some versions of the JDK javac has a memory leak. So each time tomcat compiles a page you will lose some memory. There are two solutions to this problem: - Use only precompiled JSP's (jspc) - Use another compiler (jikes) (Don't know if it's available for solaris) - I have read that some VM versions have trouble to invoke the gc if there isn't any available memory. It was suggested to issue a System.gc() if your free memory is below a watermark. I didn't investigate this further. - Use OptimizeIT to find out where the leaks are. -Ursprüngliche Nachricht- Von: David Hladky [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 4. Juni 2002 17:56 An: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Betreff: Solaris JVM never seems to garbage collect, runs out eventually. snip/ Could someone with experience tuning Solaris JVMs give me and my friends a hint or two on how to force the JVM to garbage collect/tune. Or is this just a memory leak in Tomcat and or JBOSS? snip/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Oracle JDBC Drivers not fully working
It is still true. Did you find another drivers to replace them??? Thanx Arno. -Message d'origine- De: Power-Netz (Schwarz) [SMTP:[EMAIL PROTECTED]] Date: mardi 4 juin 2002 10:29 A: tomcat liste Objet: Oracle JDBC Drivers not fully working Hi, last time i tried oracle, i found that serveral extremly nice functions about traversing a resultset, are not implemented in the oracle drivers. They just throw SQL-exceptions. Be prepared for it :-) POWER-NETZ? Full-Service-Provider Online-Support: Support: 0190 - 15 11 15 (EUR 0,62/Min) http://Support.Power-Netz.de (kostenlos) http://Support.Power-Netz.com (kostenlos) Vertrieb Tel: 01805 - 57 35 57 (EUR 0,12/Min.) Vertrieb Fax: 01805 - 57 45 57 (EUR 0,12/Min.) Power-Netz Am Plan 1 37581 Bad Gandersheim http://www.Power-Netz.de mailto:[EMAIL PROTECTED] +=+ --I N F O C E N T E R-- + Senden Sie eine leere e-mail an: + Providerwechsel: mailto:[EMAIL PROTECTED] + Daten/Preise Webspace: mailto:[EMAIL PROTECTED] + Reseller-Programm: mailto:[EMAIL PROTECTED] + Dedizierte Server: mailto:[EMAIL PROTECTED] + Adult/Erotikserver: mailto:[EMAIL PROTECTED] + Domainpreise: mailto:[EMAIL PROTECTED] + Domain-Nameserver: mailto:[EMAIL PROTECTED] + SSL-Zertifikate: mailto:[EMAIL PROTECTED] + Geschaeftsbedingungen: 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]
AW: Oracle JDBC Drivers not fully working
It is still true. Did you find another drivers to replace them??? No. I had to work around it. But I didn't searched the whole internet for it ;) M.Schwarz -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomact not staring
sir i did that what already not working is tomcat4.0.4 is for NT only as i'm using win 98 Puneet --- jon wingfield [EMAIL PROTECTED] wrote: change the memory settings for the DOS console. When I run TC under windows I have the initial environment memory set to 4096 (the maximum available through the UI). -Original Message- From: puneet sachar [mailto:[EMAIL PROTECTED]] Sent: 05 June 2002 07:06 To: Tomcat Users List Subject: tomact not staring hi developers i have installed tomcat 4.0.4 and did everything as mention ... and in autoexec file mention set java_home as c:\jdk1.3 still giving me error out of environment space when changes made to memory of the .bat file .. now saying java_home variable is not defien... this is starnge to me .. same working ta my home not in office vie my bat file and tell me what could be error -- SET JAVA_HOME=C:\JDK1.3 SET CATALINA_HOME=c:\Tomcat SET PATH=C:\JDK1.3\bin;C:\Tomcat\bin;C:\JMETER\jakarta-jmeter\bin;C:\Oracle\Ora8 1\BIN;.; SET CLASSPATH=C:\jdk1.3\lib\tools.jar;C:\Tomcat\lib\jasper-compiler.jar;C:\Tomca t\lib\jasper-runtime.jar;C:\Tomcat\lib\naming-factory.jar;.; - regards Puneet __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.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!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: request.getReader() hanging
i think i've narrowed the problem down to the ajp13 connector, what's strange is the connector works fine for all other /servlet and *.jsp requests, apart from those where you try to read the request data using request.getReader() moreover, performing the same task but making the request directly to tomcat produces no problems Code snippets follow: 4660 = apache port 4661 = tomcat port = Request Page (sample.html) html head script language=javascript function doXml(){ // Create a requestor and post the request... var xmlRequestor = new ActiveXObject(Microsoft.XMLHTTP); xmlRequestor.Open(POST, http://localhost:4660/servlet/SampleServlet;, false); xmlRequestor.SetRequestHeader(Content-type, application/x-www-form-urlencoded); xmlRequestor.Send(parentchildsome data/child/parentt); alert(xmlRequestor.responseText); } /script /head body bgcolor=#FF text=#00 script doXml(); /script /body /html === Sample Servlet public void doPost(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException{ BufferedReader br = request.getReader(); String line = null; StringBuffer envelope = new StringBuffer(); while ((line = br.readLine()) != null) { envelope.append(line); } br.close(); PrintWriter out=response.getWriter(); out.println(envelope+returned/); } === If you substitute 4661(tomcat standalone port) for 4660(apache port) in the request url in the html page, it works fine. cheers Chris -Original Message- From: Rossen Raykov [mailto:[EMAIL PROTECTED]] Sent: 03 June 2002 18:08 To: 'Tomcat Users List' Subject: RE: request.getReader() hanging Can you reproduce it? Does it utilize the whole available CPU? Rossen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 1:21 PM To: [EMAIL PROTECTED] Subject: request.getReader() hanging hi all recently upgraded, or attempted to upgrade, to tomcat 4.0.3, but have hit a brick wall.i had a servlet with the following code snippet running perfectly fine in 3.2.3 but it's not having any of it with tomcat 4.0.3 BufferedReader br = request.getReader(); String line = null; StringBuffer envelope = new StringBuffer(); while ((line = br.readLine()) != null) { envelope.append(line); } br.close(); I'm basically sending through a stream of xml data and trying to read it in the servlet's post method. What happens is when it gets to the readLine() method above, it just hangs forever. Trying to read just one character with a simple read() produces the same behaviour. I've checked the request.content-length and it indicates the data is there. No exceptions are thrown or anything. I'm not reading any parameters from the request object beforehand either. Running Apache 1.3, Tomcat 4.0.3, Solaris 8, with mod_jk I've read and adhered to the Servlet API Specification, version 2.2, section 5.1, as a previous post about a similar problem suggested, but still no joy please help cheers ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomact not staring
I have a win98 machine running 4.0.4b1, with almost the same setting your using and it starts just fine. I had the same problem I set my intial enviroment to 8192. When you pull down the memory it highlights the 4096 and you can type over it. Adrian - Original Message - From: puneet sachar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 6:08 AM Subject: RE: tomact not staring sir i did that what already not working is tomcat4.0.4 is for NT only as i'm using win 98 Puneet --- jon wingfield [EMAIL PROTECTED] wrote: change the memory settings for the DOS console. When I run TC under windows I have the initial environment memory set to 4096 (the maximum available through the UI). -Original Message- From: puneet sachar [mailto:[EMAIL PROTECTED]] Sent: 05 June 2002 07:06 To: Tomcat Users List Subject: tomact not staring hi developers i have installed tomcat 4.0.4 and did everything as mention ... and in autoexec file mention set java_home as c:\jdk1.3 still giving me error out of environment space when changes made to memory of the .bat file .. now saying java_home variable is not defien... this is starnge to me .. same working ta my home not in office vie my bat file and tell me what could be error -- SET JAVA_HOME=C:\JDK1.3 SET CATALINA_HOME=c:\Tomcat SET PATH=C:\JDK1.3\bin;C:\Tomcat\bin;C:\JMETER\jakarta-jmeter\bin;C:\Oracle\Ora8 1\BIN;.; SET CLASSPATH=C:\jdk1.3\lib\tools.jar;C:\Tomcat\lib\jasper-compiler.jar;C:\Tomca t\lib\jasper-runtime.jar;C:\Tomcat\lib\naming-factory.jar;.; - regards Puneet __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.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!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.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]
Re: CrossContext
So having downloaded the source, built it, included it in my classpath (and then, of course, discovered I had already done all this when I first built tomcat, Duh...), and stared at it for a while, I'm not too sure how to check that the crossContext attribute is getting through at all: the ApplicationContextFacade that gets passed back by tomcat in response to getContext( ) doesn't have any ways in, and I can't see any other ways in that aren't private/protected. Most frustrating. Anyone have any ideas? Thanks, JP On 5/6/02 9:09 am, Jonathan Perry [EMAIL PROTECTED] wrote: Didn't seem to make a difference. I'm downloading the source, as I should have before I asked anyone... No doubt I'll have further questions. Thanks, JP On 5/6/02 12:53 am, Phillip Morelock [EMAIL PROTECTED] wrote: Are you supposed to have the trailing slash? maybe: getServletContext( ).getContext( /A ) I haven't used this feature, just trying to help. fillup On 6/4/02 2:44 PM, Jonathan Perry [EMAIL PROTECTED] wrote: Anybody? Please? This is really doing my head in. Thanks a lot, JP On 4/6/02 10:51 am, Jonathan Perry [EMAIL PROTECTED] wrote: Hi, I'm running jakarta-tomcat-4.0.3 on Mac OSX. I've got two contexts set up, A, and B. Both have crossContext=true in their section of server.xml. I have a copy of a servlet in each context, which has the following lines of code: ServletContext c = getServletContext( ).getContext( /A/ ); RequestDispatcher dispatcher = c.getRequestDispatcher( /helloWorld.jsp ); This code works as expected in context A, but fails to obtain a context (simply returning null, no exceptions thrown) in context B. I've searched through archives on several sites, including this one, and haven't found anything promising. Does anyone have any ideas of what I might be doing wrong? Thanks for your time, JP -- 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]
problems with apache 1.3.19 and tomcat 3.2.3
Hi, I have a problem with my apache and tomcat. I've configured my apache1.3.19 to work with tomcat 3.2.3 using servlets. It seems to work fine but from few days a found a lot of errors in mod_jk.conf log file: [jk_ajp13_worker.c (326)]: Error ajp13_process_callback - write failed I've looked at the number of open connections and I' found that there are a lot of ESTABILISHED connections on tomcat port: netstat -an|grep 127.0.0.1.8019|grep ESTA|wc -l 400 while the number of http estabilished connections are about 70 Have you any suggests? Thanks in advance francesca Francesca Nicolai Ksolutions SpA via Lenin 132/26 56017 S. Martino Ulmiano (PI) - ITALY tel.: +39 (0)50 898 111 fax.: +39 (0)50 861 200 email: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 3.2 : Include File Paths
Hi; I'm using Tomcat 3.2 I have a webapp defined on my system to be: /net/webapps Under the directory webapps I have several subdirectories for jsps and various resources. In one file, /net/webapps/test/test.jsp, I am trying to use this include directive %@ include file=../common/copyright.html % to include /net/webapps/common/copyright.html I keep getting error code 500 and the message bad file argument to include Anyone have any idea of what is going on and how I can back up with file paths? Thanks in advance Steve __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SSL Tomcat problem
I would like to use secure connection with Tomcat. I have followed the instructions that were given on Apache website with respect to SSL and Tomcat connection. I have put in the three jar files(jcert.jar, jnet.jar, jsse.jar) in /usr/java/jdk1.3.1_01/jre/lib/ext and have edited the /etc/profile to make sure that the jar files can be picked up. My .keystore file is located in /usr/java/jdk1.3.1_01/jre/lib/ext. I have edited the server.xml file to include SSL connection, but when I place keystoreFile='/usr/java/jdk1.3.1_01/jre/lib/ext inside Factory tag, the web browser seems to get stuck when it tries to search the web page http://localhost:8080 let alone trying to access secure connection. If I remove the keystoreFile='/usr/java/jdk1.3.1_01/jre/lib/ext from the Factory tag, then I am at least able to access http://localhost:8080 . What would I have to do so that I can access secure connection. Thanks, Sanjeev Rathore - Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup
Re: catalina-ant ReloadTask fails
As I understand thing, the reload task just tells TomCat to reload the war file that is in the webapp directory. It is still your responsiblity to get the WAR file to the webapp directory. It's a shame it doesn't support a file upload as part of the TomCat task, but when I get annoyed enough I guess I'll write it! (I use samba shares at the moment to copy to the webapp directory). Alexander ten Bruggencate wrote: Hi, i'm trying to reload a WAR-file using ant. Unfortunately ant returns an error that i have been unable to find in any documentation. list / install and remove tasks work as advertised... tools: Ant-1.5Beta1 / Tomcat-4.1.2 / RH Linux 7.3 'ant reload' returns: reload: [reload] FAIL - Reload not supported on WAR deployed at path /step BUILD FAILED /home/bruggenc/sources/step/build.xml:141: FAIL - Reload not supported on WAR deployed at path /step please correct me if i'm wrong: my idea of reloading is that I let ant create a new WAR-file and pass it to tomcat with the required parameters. But the reload task does not have a parameter for the war-filename. why? and how can it then reload the web application? thanks. -Alexander parts of my build.xml: property name=catalina.home location=${user.home}/tomcat/ property name=manager.url value=http://localhost:8080/manager/ property name=manager.path value=/step/ property name=manager.username value=bruggenc/ property name=manager.password value=mz-e30/ !-- Configure custom Ant tasks for the Manager application -- taskdef name=install classname=org.apache.catalina.ant.InstallTask / taskdef name=reload classname=org.apache.catalina.ant.ReloadTask / taskdef name=remove classname=org.apache.catalina.ant.RemoveTask/ taskdef name=list classname=org.apache.catalina.ant.ListTask/ targetname=reload description=Reload web application depends=war reload url=${manager.url} username=${manager.username} password=${manager.password} path=${manager.path}/ /target -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
starting tomcat from the service
My name is Chiharu Nakatani. I have found your name and e-mail address from http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html I am trying to startup tomcat from the service and am facing some problems. I can't start Tomcat after installing tomcat to the service, using jk_nt_service.exe. The error is "the service didn't report an error - net helpmsg 3534". I can startup tomcat from hitting a startup.bat file, in C:\tomcat\bin\startup but never from the service. This is the environment I have on my machine, that is Windows 2000 Server. C:\tomcat C:\jdk1.3.1 I have environmental variables on tomcat_home, and java_home. Also, I have specified those in the wrapper.properties. wrapper.tomcat_home=c:\tomcat # # wrapper.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # wrapper.java_home=c:\jdk1.3.1 What can be wrong? _ Chiharu Nakatani MTI Ltd. 4F Shinjuku Kokusai Bldg. Shinkan 6-6-3 NishiShinjuku, Shinjuku-ku Tokyo Japan,160-0023 TEL:+81-3-5325-6211 FAX:+81-3-5325-6223 E-Mail:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat vs ant vs j2me still problem
Have you tried reading the faq/doc on the ant site: http://jakarta.apache.org/ant -prabhakar what u mean by this ant is a java based build tool (a kind of make). http://jakarta.apache.org/ant/index.html what kind of make.. what does this have advantage..i serioulsy don't undersatnd this -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ReloadTask needs improvement
On Wed, 2002-06-05 at 10:19, Ben Walding wrote: As I understand thing, the reload task just tells TomCat to reload the war file that is in the webapp directory. It is still your responsiblity to get the WAR file to the webapp directory. It's a shame it doesn't support a file upload as part of the TomCat task, but when I get annoyed enough I guess I'll write it! (I use samba shares at the moment to copy to the webapp directory). Ben, can I persuade you to write this now? signature.asc Description: This is a digitally signed message part
RE: tomact not staring
See item 2 under the (5) Troubleshooting: section of RUNNING.txt in the Tomcat installation directory. It addresses this issue. Cheers, Larry -Original Message- From: puneet sachar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 6:09 AM To: Tomcat Users List Subject: RE: tomact not staring sir i did that what already not working is tomcat4.0.4 is for NT only as i'm using win 98 Puneet --- jon wingfield [EMAIL PROTECTED] wrote: change the memory settings for the DOS console. When I run TC under windows I have the initial environment memory set to 4096 (the maximum available through the UI). -Original Message- From: puneet sachar [mailto:[EMAIL PROTECTED]] Sent: 05 June 2002 07:06 To: Tomcat Users List Subject: tomact not staring hi developers i have installed tomcat 4.0.4 and did everything as mention ... and in autoexec file mention set java_home as c:\jdk1.3 still giving me error out of environment space when changes made to memory of the .bat file .. now saying java_home variable is not defien... this is starnge to me .. same working ta my home not in office vie my bat file and tell me what could be error -- SET JAVA_HOME=C:\JDK1.3 SET CATALINA_HOME=c:\Tomcat SET PATH=C:\JDK1.3\bin;C:\Tomcat\bin;C:\JMETER\jakarta-jmeter\bin; C:\Oracle\Ora8 1\BIN;.; SET CLASSPATH=C:\jdk1.3\lib\tools.jar;C:\Tomcat\lib\jasper-compile r.jar;C:\Tomca t\lib\jasper-runtime.jar;C:\Tomcat\lib\naming-factory.jar;.; - regards Puneet __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.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!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [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]
RE: Tomcat 3.2 : Include File Paths
If your docBase is set to /net/webapps then what you describe should work. If your docBase is set to /net/webapps/test, then the .. in your include is trying to go outside of the webapp, which is not allowed. Cheers, Larry -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 7:12 AM To: [EMAIL PROTECTED] Subject: Tomcat 3.2 : Include File Paths Hi; I'm using Tomcat 3.2 I have a webapp defined on my system to be: /net/webapps Under the directory webapps I have several subdirectories for jsps and various resources. In one file, /net/webapps/test/test.jsp, I am trying to use this include directive %@ include file=../common/copyright.html % to include /net/webapps/common/copyright.html I keep getting error code 500 and the message bad file argument to include Anyone have any idea of what is going on and how I can back up with file paths? Thanks in advance Steve __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [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]
Config of SSL and viewing on Pocket PC?
Hi, this question may be more related to viewing pages with Pocket Internet Explorer on the Pocket PC but maybe someone can help anyway. I have set up a web app on Tomcat 4.0. I have configured SSL by generating my own certificate. I've done this according to the SSL How to documentation. Then, within my web.xml I've defined that my web app should all be served over HTTPS (CONFIDENTIAL) and that it should use BASIC authentication. When I view my web app from a PC browser, I get the little 'Security Alert' window telling me that the server certificate is not recognised (because I generated it myself) and asking if I want to proceed. I say 'yes' and I get the little userid/password window. When I enter these using a combination that exists in my realm, I get access to the site and it works fine. But, if I then try to access the site using IE on my Pocket PC, the IE logo just spins continuously and then I get a message saying that the page cannot be found. I think this is happening at the point where Tomcat is presenting the public key to the browser because I don't get a window popping up saying that the certificate is not recognised in the way that I do with the PC browser. I've done a bit of sniffing around and apparently Pocket IE only supports 512 bit RSA keys. I believe that by default, the keytool certificate generation tool uses 1024 bits. Therefore, I applied a high encryption update to Pocket IE that allows it to handle 1024 bit keys and more but still I get the spinning logo and nothing happening. So, really I'm wondering if anyone has managed to set up a secure site on Tomcat and then view it with Pocket IE? Any help much appreciated. Cheers, Steve. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to list all Threads in the JVM? (Includes suggestion.)
Hi, We are trying to monitor the set of Threads in the JVM running Tomcat in order to fix a resource exhaustion problem we have. (Tomcat and/or our code is increasing the number of threads until the hard nproc limit in /etc/security/limits.conf for the user is reached. Red Hat Linux 7.2) How can I code this? This is probably a basic Java question but how do I reference to the top level ThreadGroup? With this code ThreadGroup tg = Thread.currentThread().getThreadGroup() ; while ( tg.getParent() != null) tg = tg.getParent() ; /* walk hierachy from tg */ would the code encounter problems with security manager restrictions when methods are invoked on the root object? In addition to the actual code to walk the Thread tree does anyone have a suggestion as to which classloader I should put the code in? Does it matter? Many Thanks for any suggestions, Janek __ 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: How to list all Threads in the JVM? (Includes suggestion.)
use an application like optimizeIt or JProbe to profile the thread usage. Warning though, don't try running it on a system with less than 128mb of ram. peter Janek Bogucki wrote: Hi, We are trying to monitor the set of Threads in the JVM running Tomcat in order to fix a resource exhaustion problem we have. (Tomcat and/or our code is increasing the number of threads until the hard nproc limit in /etc/security/limits.conf for the user is reached. Red Hat Linux 7.2) How can I code this? This is probably a basic Java question but how do I reference to the top level ThreadGroup? With this code ThreadGroup tg = Thread.currentThread().getThreadGroup() ; while ( tg.getParent() != null) tg = tg.getParent() ; /* walk hierachy from tg */ would the code encounter problems with security manager restrictions when methods are invoked on the root object? In addition to the actual code to walk the Thread tree does anyone have a suggestion as to which classloader I should put the code in? Does it matter? Many Thanks for any suggestions, Janek __ 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to list all Threads in the JVM? (Includes suggestion.)
--- peter lin [EMAIL PROTECTED] wrote: use an application like optimizeIt or JProbe to profile the thread usage. Warning though, don't try running it on a system with less than 128mb of ram. peter Thanks for the links: http://www.sitraka.com/software/jprobe/ http://www.borland.com/optimizeit/ It's not really what I need right now. If I had a simple class that formed the basis of a Thread which periodically dumped a list of all Threads in the JVM I'd be satified (for now...JProbe Threadalyzer looks very useful!). Thanks, Janek __ 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: CrossContext
I'm at a loss of how to debug this. Does anyone have any ideas of what to do? Thanks, JP On 5/6/02 11:45 am, Jonathan Perry [EMAIL PROTECTED] wrote: So having downloaded the source, built it, included it in my classpath (and then, of course, discovered I had already done all this when I first built tomcat, Duh...), and stared at it for a while, I'm not too sure how to check that the crossContext attribute is getting through at all: the ApplicationContextFacade that gets passed back by tomcat in response to getContext( ) doesn't have any ways in, and I can't see any other ways in that aren't private/protected. Most frustrating. Anyone have any ideas? Thanks, JP On 5/6/02 9:09 am, Jonathan Perry [EMAIL PROTECTED] wrote: Didn't seem to make a difference. I'm downloading the source, as I should have before I asked anyone... No doubt I'll have further questions. Thanks, JP On 5/6/02 12:53 am, Phillip Morelock [EMAIL PROTECTED] wrote: Are you supposed to have the trailing slash? maybe: getServletContext( ).getContext( /A ) I haven't used this feature, just trying to help. fillup On 6/4/02 2:44 PM, Jonathan Perry [EMAIL PROTECTED] wrote: Anybody? Please? This is really doing my head in. Thanks a lot, JP On 4/6/02 10:51 am, Jonathan Perry [EMAIL PROTECTED] wrote: Hi, I'm running jakarta-tomcat-4.0.3 on Mac OSX. I've got two contexts set up, A, and B. Both have crossContext=true in their section of server.xml. I have a copy of a servlet in each context, which has the following lines of code: ServletContext c = getServletContext( ).getContext( /A/ ); RequestDispatcher dispatcher = c.getRequestDispatcher( /helloWorld.jsp ); This code works as expected in context A, but fails to obtain a context (simply returning null, no exceptions thrown) in context B. I've searched through archives on several sites, including this one, and haven't found anything promising. Does anyone have any ideas of what I might be doing wrong? Thanks for your time, JP -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
form based authentication and remote user
Hi all: I'm using form-based authentication with tomcat 3.2.3. I have a form to register the users and I want to set the remote user and role when they register to they can access private zones that are protected with the form based authentication at this moment. How can I do that? Thank you all MAML -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Installation on Linux
Want to upgrade from Tomcat 3.3 to 4.0 (been told it is easier to administer etc. etc. and has the manager web application) on a Linux (redhat7.2) server, working as a add-on to Apache. Bit confused by the download. I will be getting 'jakarta-tomcat-4.0.3.tar.gz' at http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/. No problems there. However, do I need any additional Linux extensions? When I click into http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/linux /i386, I see a warning file saying Only for Apache 1.3. Can someone confirm that this is indeed the case, or should I also get the mod_jk-01.so module too? Do I need the mod_webapp.so? Regards, any help much appreciated Iain -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Installation on Linux
You need mod_jk or mod_webapp in order to hava Apache forward servlet requests to Tomcat. The major difference between mod_jk and mod_webapp is that mod_jk allows for load balancing over multiple Tomcat instances while mod_webapp does not. I hava also heard that mod_webapp should have that capability (soon?) but does not have it now. I have heard of people using Apache 2.x with Tomcat, but I have not done that myself. Ben Ricker Web Security System Administrator Wellinx.com On Wed, 2002-06-05 at 08:53, Iain Downie wrote: Want to upgrade from Tomcat 3.3 to 4.0 (been told it is easier to administer etc. etc. and has the manager web application) on a Linux (redhat7.2) server, working as a add-on to Apache. Bit confused by the download. I will be getting 'jakarta-tomcat-4.0.3.tar.gz' at http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/. No problems there. However, do I need any additional Linux extensions? When I click into http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/linux /i386, I see a warning file saying Only for Apache 1.3. Can someone confirm that this is indeed the case, or should I also get the mod_jk-01.so module too? Do I need the mod_webapp.so? Regards, any help much appreciated Iain -- 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]
How to set domain for default JSESSIONID cookie
Hi, If there a way to configure domain and Max Age for the Default JSESSIONID cookie that Tomcat 4.03 sets. I was wondering if I could do this in the web.xml or server.xml files or do I need to do this programatically? Thanks, Subir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
sharing objects between webapps
Hi! I'm currently working on two webapps that run in the same Tomcat (4.0.1) and share some common data. To do so efficiently, I would need them to actually access the same java objects in memory (really the instances, not just same classes). So, is it possible for one webapp to make an object accessible to another? If so, how? Edmund -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
FW: Using the Jk2 filter vs Jk filter.
Hello, Ignacio was kind enough to provide me some info on getting jk2 isapi_filter running. He also said: You will need to download and install ( but not run ) Apache2 dist too, and use it as apache2.home.. to able to follow the build-yourself path... Now I attempting to use isapi_redirector2.dll on IIS 5.0/Win2k (server). But I still need apache2? Also, Does anyone here know of config docs for the Jk2 filter? Also, is anyone currently running jk2 Isapi on IIS 5.0? -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 10:40 AM To: 'Robert Priest' Subject: RE: Using the Jk2 filter vs Jk filter. Sorry but buried on day to day Job .. Are you able to build i_r2.dll yourself? if not i need to build one for you, but this will take some time until late here, now im at my paycheck job, and i dont have the time, No docs, but config file is at least is the same for apache2,and at least you could ask for config items to tomcat-dev, for sure someone will answer you :).. the i_r2.p file method for config works, but the properties names have chhanged, see the reg file in CVS to check names, log right now goes to native event logger, but can be changed dinamically at runtime.. You will need to download and install ( but not run ) Apache2 dist too, and use it as apache2.home.. to able to follow the build-yourself path... Saludos , Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to list all Threads in the JVM? (Includes suggestion.)
Howdy, Your basic code snippet worked relatively well. In fact, I liked it enough to start using it, with a few modifications and enhancements. I'm attaching a more fully developed class to do some more, e.g. get a list of all threads, etc. You WILL get security (e.g. ThreadIllegalStateException) exceptions if you try to modify thread groups outside your own. For kicks, try the destroyRootThreadGroup() method in the attached class. ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Janek Bogucki [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 9:05 AM To: [EMAIL PROTECTED] Subject: How to list all Threads in the JVM? (Includes suggestion.) Hi, We are trying to monitor the set of Threads in the JVM running Tomcat in order to fix a resource exhaustion problem we have. (Tomcat and/or our code is increasing the number of threads until the hard nproc limit in /etc/security/limits.conf for the user is reached. Red Hat Linux 7.2) How can I code this? This is probably a basic Java question but how do I reference to the top level ThreadGroup? With this code ThreadGroup tg = Thread.currentThread().getThreadGroup() ; while ( tg.getParent() != null) tg = tg.getParent() ; /* walk hierachy from tg */ would the code encounter problems with security manager restrictions when methods are invoked on the root object? In addition to the actual code to walk the Thread tree does anyone have a suggestion as to which classloader I should put the code in? Does it matter? Many Thanks for any suggestions, Janek __ 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:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] SystemThreadList.java Description: SystemThreadList.java -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: jdbc connection list
I need to know what to listen to. What events, to which objects, does the Connection send when it gets initiated? Thanks, Darya. On Tue, 4 Jun 2002, Phillip Morelock wrote: also called the Observer pattern. On 6/4/02 4:07 PM, Phillip Morelock [EMAIL PROTECTED] wrote: Use the Listener design pattern. You'll probably write an interface, implement it, and then register listeners with classes that will inform them of events. The java kit already has some of this pattern: HttpSessionBindingListener for example. The pattern is also prevalent throughout Swing and AWT. cheers fillup On 6/4/02 4:01 PM, Darya Chernikhova [EMAIL PROTECTED] wrote: Sorry if this is a copy. I got an error message from my mail server, after I sent this email, so I'm trying again. Darya On Tue, 4 Jun 2002, Darya Chernikhova wrote: Hi all, I'd like to write a bean that would keep track of all of the jdbc connections that users make. So, say that I have 2 applications registered on tomcat -- appA and appB. And, say that there are 5 servlets or jsp pages per application -- appA/serv1, appA/serv2, ..., appB/serv5 . And, each servlet's doService method opens a jdbc connection and gets some data out of my database. I would like to write a bean that would sit there and listen to jdbc connections being made. It would store a list of objects containing the following data: - connection pointer - session the connection was made out of - app and servlet the connection was made out of. My problem is that I don't know much about the connection making process in Tomcat. When a new connection is made, which Tomcat controller beans know about it? What events are sent, and to whom? What should my bean extend or implement? I've been looking into the online docs and some books I have, but I haven't found anything useful yet. Thanks a lot for your help, Darya. -- 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]
RE: Using the Jk2 filter vs Jk filter.
De: Robert Priest [mailto:[EMAIL PROTECTED]] Enviado el: 5 de junio de 2002 16:21 But I still need apache2? You only need to put libapr.dll and libapr-util.dll from apache2 in the same directory of i_r2.dll to run it, lib and h files to build only.. Does anyone here know of config docs for the Jk2 filter? It has some docs inside, what do you want to know? Also, is anyone currently running jk2 Isapi on IIS 5.0? I do my tests on iis 5.0 :), but i doubt anyone had tested it already, the first Milestone will be achieved soon.. so it's should be in an usable state, not ready for production, but stable enought to test it.. Saludos , Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Valid values for Factory 'protocol'???
Hi, can someone tell me what the alternative values are for the 'protocol' attribute of the Factory element please? The default is TLS and the HOW TO SSL docs say not to change the default but I'm not sure if this means don't make the default in the source code anything but 'TLS' or whether it means not to change this value at all in the server.xml file, in which case, why is it there for you to change in the first place? ;o) Thanks, Steve. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Valid values for Factory 'protocol'???
Please delete me from your mailing list. I do not know who you are. Thank you... - Original Message - From: Steve D George [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 9:29 AM Subject: Valid values for Factory 'protocol'??? Hi, can someone tell me what the alternative values are for the 'protocol' attribute of the Factory element please? The default is TLS and the HOW TO SSL docs say not to change the default but I'm not sure if this means don't make the default in the source code anything but 'TLS' or whether it means not to change this value at all in the server.xml file, in which case, why is it there for you to change in the first place? ;o) Thanks, Steve. -- 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]
Re: Using the Jk2 filter vs Jk filter.
please remove me from your mailing list. I do not know who you are. Thank you... - Original Message - From: Ignacio J. Ortega [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 9:41 AM Subject: RE: Using the Jk2 filter vs Jk filter. De: Robert Priest [mailto:[EMAIL PROTECTED]] Enviado el: 5 de junio de 2002 16:21 But I still need apache2? You only need to put libapr.dll and libapr-util.dll from apache2 in the same directory of i_r2.dll to run it, lib and h files to build only.. Does anyone here know of config docs for the Jk2 filter? It has some docs inside, what do you want to know? Also, is anyone currently running jk2 Isapi on IIS 5.0? I do my tests on iis 5.0 :), but i doubt anyone had tested it already, the first Milestone will be achieved soon.. so it's should be in an usable state, not ready for production, but stable enought to test it.. Saludos , Ignacio J. Ortega -- 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]
AW: jdbc connection list
For connection you are out of luck. There is nothing like a common event model for connections or connection pools. (No driver or pool that I know has a feature like this). One solution if you have complete control over any class that accesses the database: Wrap the pool or the connection inside a own class that delegates all get/release calls to the underlying class and track the connection count. If you have third party tools that access the database I think that you have lost with the most databases. With some database it's possible to get a list of open connection through system views or stored procedures. (E.g. Oracle) but that's not portable. -Ursprüngliche Nachricht- Von: Darya Chernikhova [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 5. Juni 2002 16:34 An: Tomcat Users List Betreff: Re: jdbc connection list snip/ I'd like to write a bean that would keep track of all of the jdbc connections that users make. snip/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Using the Jk2 filter vs Jk filter.
PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW WHO YOU ARE. THANK YOU... - Original Message - From: Robert Priest [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 9:20 AM Subject: FW: Using the Jk2 filter vs Jk filter. Hello, Ignacio was kind enough to provide me some info on getting jk2 isapi_filter running. He also said: You will need to download and install ( but not run ) Apache2 dist too, and use it as apache2.home.. to able to follow the build-yourself path... Now I attempting to use isapi_redirector2.dll on IIS 5.0/Win2k (server). But I still need apache2? Also, Does anyone here know of config docs for the Jk2 filter? Also, is anyone currently running jk2 Isapi on IIS 5.0? -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 10:40 AM To: 'Robert Priest' Subject: RE: Using the Jk2 filter vs Jk filter. Sorry but buried on day to day Job .. Are you able to build i_r2.dll yourself? if not i need to build one for you, but this will take some time until late here, now im at my paycheck job, and i dont have the time, No docs, but config file is at least is the same for apache2,and at least you could ask for config items to tomcat-dev, for sure someone will answer you :).. the i_r2.p file method for config works, but the properties names have chhanged, see the reg file in CVS to check names, log right now goes to native event logger, but can be changed dinamically at runtime.. You will need to download and install ( but not run ) Apache2 dist too, and use it as apache2.home.. to able to follow the build-yourself path... Saludos , Ignacio J. Ortega -- 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]
RE: Tomcat 3.2 : Include File Paths
My docbase is set to /net/webapps Still gives me bad argument to include file Steve --- Larry Isaacs [EMAIL PROTECTED] wrote: If your docBase is set to /net/webapps then what you describe should work. If your docBase is set to /net/webapps/test, then the .. in your include is trying to go outside of the webapp, which is not allowed. Cheers, Larry -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 7:12 AM To: [EMAIL PROTECTED] Subject: Tomcat 3.2 : Include File Paths Hi; I'm using Tomcat 3.2 I have a webapp defined on my system to be: /net/webapps Under the directory webapps I have several subdirectories for jsps and various resources. In one file, /net/webapps/test/test.jsp, I am trying to use this include directive %@ include file=../common/copyright.html % to include /net/webapps/common/copyright.html I keep getting error code 500 and the message bad file argument to include Anyone have any idea of what is going on and how I can back up with file paths? Thanks in advance Steve __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [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!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 3.2 : Include File Paths
PLEASE REMOVE ME FROM YOUR MAILING LIST.I DO NOT KNOW WHO YOU ARE... THANK YOU... - Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 7:48 AM Subject: RE: Tomcat 3.2 : Include File Paths If your docBase is set to /net/webapps then what you describe should work. If your docBase is set to /net/webapps/test, then the .. in your include is trying to go outside of the webapp, which is not allowed. Cheers, Larry -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 7:12 AM To: [EMAIL PROTECTED] Subject: Tomcat 3.2 : Include File Paths Hi; I'm using Tomcat 3.2 I have a webapp defined on my system to be: /net/webapps Under the directory webapps I have several subdirectories for jsps and various resources. In one file, /net/webapps/test/test.jsp, I am trying to use this include directive %@ include file=../common/copyright.html % to include /net/webapps/common/copyright.html I keep getting error code 500 and the message bad file argument to include Anyone have any idea of what is going on and how I can back up with file paths? Thanks in advance Steve __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [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]
Re: sharing objects between webapps
PLEASE REMOVE ME FROM YOUR MAILING LIST.I DO NOT KNOW WHO YOU ARE. THANK YOU,... - Original Message - From: Edmund Urbani [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 9:09 AM Subject: sharing objects between webapps Hi! I'm currently working on two webapps that run in the same Tomcat (4.0.1) and share some common data. To do so efficiently, I would need them to actually access the same java objects in memory (really the instances, not just same classes). So, is it possible for one webapp to make an object accessible to another? If so, how? Edmund -- 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]
Re: ReloadTask needs improvement
PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW WHO YOU ARE... - Original Message - From: Alexander ten Bruggencate [EMAIL PROTECTED] To: tomcat user mailing list [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 7:23 AM Subject: ReloadTask needs improvement -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: jdbc connection list
PLEASE REMOVE NE FROM YOUR MAILING LIST. I DO NOT KNOW WHO YOU ARE. THANK YOU... - Original Message - From: Darya Chernikhova [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 9:33 AM Subject: Re: jdbc connection list I need to know what to listen to. What events, to which objects, does the Connection send when it gets initiated? Thanks, Darya. On Tue, 4 Jun 2002, Phillip Morelock wrote: also called the Observer pattern. On 6/4/02 4:07 PM, Phillip Morelock [EMAIL PROTECTED] wrote: Use the Listener design pattern. You'll probably write an interface, implement it, and then register listeners with classes that will inform them of events. The java kit already has some of this pattern: HttpSessionBindingListener for example. The pattern is also prevalent throughout Swing and AWT. cheers fillup On 6/4/02 4:01 PM, Darya Chernikhova [EMAIL PROTECTED] wrote: Sorry if this is a copy. I got an error message from my mail server, after I sent this email, so I'm trying again. Darya On Tue, 4 Jun 2002, Darya Chernikhova wrote: Hi all, I'd like to write a bean that would keep track of all of the jdbc connections that users make. So, say that I have 2 applications registered on tomcat -- appA and appB. And, say that there are 5 servlets or jsp pages per application -- appA/serv1, appA/serv2, ..., appB/serv5 . And, each servlet's doService method opens a jdbc connection and gets some data out of my database. I would like to write a bean that would sit there and listen to jdbc connections being made. It would store a list of objects containing the following data: - connection pointer - session the connection was made out of - app and servlet the connection was made out of. My problem is that I don't know much about the connection making process in Tomcat. When a new connection is made, which Tomcat controller beans know about it? What events are sent, and to whom? What should my bean extend or implement? I've been looking into the online docs and some books I have, but I haven't found anything useful yet. Thanks a lot for your help, Darya. -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ReloadTask needs improvement
please stop sending this email! thanks Francesca Nicolai Ksolutions SpA via Lenin 132/26 56017 S. Martino Ulmiano (PI) - ITALY tel.: +39 (0)50 898 111 fax.: +39 (0)50 861 200 email: [EMAIL PROTECTED] -Original Message- From: anette mysel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 4:50 PM To: Tomcat Users List Subject: Re: ReloadTask needs improvement PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW WHO YOU ARE... - Original Message - From: Alexander ten Bruggencate [EMAIL PROTECTED] To: tomcat user mailing list [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 7:23 AM Subject: ReloadTask needs improvement -- 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]
Re: Installation on Linux
PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW WHO YOU ARE. THANK YOU... - Original Message - From: Ben Ricker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 9:00 AM Subject: Re: Installation on Linux You need mod_jk or mod_webapp in order to hava Apache forward servlet requests to Tomcat. The major difference between mod_jk and mod_webapp is that mod_jk allows for load balancing over multiple Tomcat instances while mod_webapp does not. I hava also heard that mod_webapp should have that capability (soon?) but does not have it now. I have heard of people using Apache 2.x with Tomcat, but I have not done that myself. Ben Ricker Web Security System Administrator Wellinx.com On Wed, 2002-06-05 at 08:53, Iain Downie wrote: Want to upgrade from Tomcat 3.3 to 4.0 (been told it is easier to administer etc. etc. and has the manager web application) on a Linux (redhat7.2) server, working as a add-on to Apache. Bit confused by the download. I will be getting 'jakarta-tomcat-4.0.3.tar.gz' at http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/. No problems there. However, do I need any additional Linux extensions? When I click into http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/linux /i386, I see a warning file saying Only for Apache 1.3. Can someone confirm that this is indeed the case, or should I also get the mod_jk-01.so module too? Do I need the mod_webapp.so? Regards, any help much appreciated Iain -- 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]
RE: Tomcat 3.2 : Include File Paths
Users cannot remove other people. To unsubscribe, e-mail: [EMAIL PROTECTED] from the address that is receiving mail from this list HTH, Todd -Original Message- From: anette mysel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 7:49 AM To: Tomcat Users List Subject: Re: Tomcat 3.2 : Include File Paths PLEASE REMOVE ME FROM YOUR MAILING LIST.I DO NOT KNOW WHO YOU ARE... THANK YOU... - Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 7:48 AM Subject: RE: Tomcat 3.2 : Include File Paths If your docBase is set to /net/webapps then what you describe should work. If your docBase is set to /net/webapps/test, then the .. in your include is trying to go outside of the webapp, which is not allowed. Cheers, Larry -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 7:12 AM To: [EMAIL PROTECTED] Subject: Tomcat 3.2 : Include File Paths Hi; I'm using Tomcat 3.2 I have a webapp defined on my system to be: /net/webapps Under the directory webapps I have several subdirectories for jsps and various resources. In one file, /net/webapps/test/test.jsp, I am trying to use this include directive %@ include file=../common/copyright.html % to include /net/webapps/common/copyright.html I keep getting error code 500 and the message bad file argument to include Anyone have any idea of what is going on and how I can back up with file paths? Thanks in advance Steve __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [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]
RE: ReloadTask needs improvement
why dont you read the bottom of the e-mail and unsubscribe your self ? hope it helps -reynir -Original Message- From: anette mysel [mailto:[EMAIL PROTECTED]] Sent: 5. júní 2002 14:50 To: Tomcat Users List Subject: Re: ReloadTask needs improvement PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW WHO YOU ARE... - Original Message - From: Alexander ten Bruggencate [EMAIL PROTECTED] To: tomcat user mailing list [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 7:23 AM Subject: ReloadTask needs improvement -- 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]
Re: Installation on Linux
PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW WHO YOU ARE. THANK YOU... - Original Message - From: Iain Downie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 8:53 AM Subject: Installation on Linux Want to upgrade from Tomcat 3.3 to 4.0 (been told it is easier to administer etc. etc. and has the manager web application) on a Linux (redhat7.2) server, working as a add-on to Apache. Bit confused by the download. I will be getting 'jakarta-tomcat-4.0.3.tar.gz' at http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/. No problems there. However, do I need any additional Linux extensions? When I click into http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/linux /i386, I see a warning file saying Only for Apache 1.3. Can someone confirm that this is indeed the case, or should I also get the mod_jk-01.so module too? Do I need the mod_webapp.so? Regards, any help much appreciated Iain -- 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]
Re: CrossContext
Hi Jonathan, I know the Eclipse IDE (www.eclipse.org) can be use to hot debug programs. Also I know it's possible to run Tomcat from inside the IDE so maybe you'd want to look into that... Good luck, Umberto Jonathan Perry wrote: I'm at a loss of how to debug this. Does anyone have any ideas of what to do? Thanks, JP On 5/6/02 11:45 am, Jonathan Perry [EMAIL PROTECTED] wrote: So having downloaded the source, built it, included it in my classpath (and then, of course, discovered I had already done all this when I first built tomcat, Duh...), and stared at it for a while, I'm not too sure how to check that the crossContext attribute is getting through at all: the ApplicationContextFacade that gets passed back by tomcat in response to getContext( ) doesn't have any ways in, and I can't see any other ways in that aren't private/protected. Most frustrating. Anyone have any ideas? Thanks, JP On 5/6/02 9:09 am, Jonathan Perry [EMAIL PROTECTED] wrote: Didn't seem to make a difference. I'm downloading the source, as I should have before I asked anyone... No doubt I'll have further questions. Thanks, JP On 5/6/02 12:53 am, Phillip Morelock [EMAIL PROTECTED] wrote: Are you supposed to have the trailing slash? maybe: getServletContext( ).getContext( /A ) I haven't used this feature, just trying to help. fillup On 6/4/02 2:44 PM, Jonathan Perry [EMAIL PROTECTED] wrote: Anybody? Please? This is really doing my head in. Thanks a lot, JP On 4/6/02 10:51 am, Jonathan Perry [EMAIL PROTECTED] wrote: Hi, I'm running jakarta-tomcat-4.0.3 on Mac OSX. I've got two contexts set up, A, and B. Both have crossContext=true in their section of server.xml. I have a copy of a servlet in each context, which has the following lines of code: ServletContext c = getServletContext( ).getContext( /A/ ); RequestDispatcher dispatcher = c.getRequestDispatcher( /helloWorld.jsp ); This code works as expected in context A, but fails to obtain a context (simply returning null, no exceptions thrown) in context B. I've searched through archives on several sites, including this one, and haven't found anything promising. Does anyone have any ideas of what I might be doing wrong? Thanks for your time, JP -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Umberto Nicoletti - [EMAIL PROTECTED] | [EMAIL PROTECTED] Tel. 049-8239380 (assistenza) We'll try to make different mistakes this time. - Larry Wall -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to set domain for default JSESSIONID cookie
PLEASE REMOVE ME FROM YOUR MAILING LIST. IDO NOT KNOW WHO YOU ARE. TAHNK YOU... - Original Message - From: Subir Sengupta [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 9:03 AM Subject: How to set domain for default JSESSIONID cookie Hi, If there a way to configure domain and Max Age for the Default JSESSIONID cookie that Tomcat 4.03 sets. I was wondering if I could do this in the web.xml or server.xml files or do I need to do this programatically? Thanks, Subir -- 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]
Re: How to list all Threads in the JVM? (Includes suggestion.)
PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW WHO YOU ARE. THANK YOU... - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 9:29 AM Subject: RE: How to list all Threads in the JVM? (Includes suggestion.) Howdy, Your basic code snippet worked relatively well. In fact, I liked it enough to start using it, with a few modifications and enhancements. I'm attaching a more fully developed class to do some more, e.g. get a list of all threads, etc. You WILL get security (e.g. ThreadIllegalStateException) exceptions if you try to modify thread groups outside your own. For kicks, try the destroyRootThreadGroup() method in the attached class. ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Janek Bogucki [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 9:05 AM To: [EMAIL PROTECTED] Subject: How to list all Threads in the JVM? (Includes suggestion.) Hi, We are trying to monitor the set of Threads in the JVM running Tomcat in order to fix a resource exhaustion problem we have. (Tomcat and/or our code is increasing the number of threads until the hard nproc limit in /etc/security/limits.conf for the user is reached. Red Hat Linux 7.2) How can I code this? This is probably a basic Java question but how do I reference to the top level ThreadGroup? With this code ThreadGroup tg = Thread.currentThread().getThreadGroup() ; while ( tg.getParent() != null) tg = tg.getParent() ; /* walk hierachy from tg */ would the code encounter problems with security manager restrictions when methods are invoked on the root object? In addition to the actual code to walk the Thread tree does anyone have a suggestion as to which classloader I should put the code in? Does it matter? Many Thanks for any suggestions, Janek __ 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:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [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]
Re: How to list all Threads in the JVM? (Includes suggestion.)
PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW WHO YOU ARE. THANK YOU... - Original Message - From: Janek Bogucki [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 8:21 AM Subject: Re: How to list all Threads in the JVM? (Includes suggestion.) --- peter lin [EMAIL PROTECTED] wrote: use an application like optimizeIt or JProbe to profile the thread usage. Warning though, don't try running it on a system with less than 128mb of ram. peter Thanks for the links: http://www.sitraka.com/software/jprobe/ http://www.borland.com/optimizeit/ It's not really what I need right now. If I had a simple class that formed the basis of a Thread which periodically dumped a list of all Threads in the JVM I'd be satified (for now...JProbe Threadalyzer looks very useful!). Thanks, Janek __ 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Install Tomcat with Apache
Help me! Send the steps for install Tomcat under Apache 1.3. Thank you very much! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HOW TO REMOVE YOURSELF
Other users cannot remove you from the list. You will have to do this yourself. To unsubscribe, e-mail: [EMAIL PROTECTED] From the address that you are receiving the mail from this list on. If this does not work perhaps that would be useful information. The way to unsubscribe from most mailing lists is generally provided at the bottom of the email from the mailing list. In the future if you get email from places you don't want, please try looking at the bottom for this information instead of spamming the people just as I am sure you are feeling spammed. Doing it yourself is quicker for you. HTH, Todd Ganey -Original Message- From: anette mysel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 7:54 AM To: Tomcat Users List Subject: Re: How to list all Threads in the JVM? (Includes suggestion.) PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW WHO YOU ARE. THANK YOU... - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 9:29 AM Subject: RE: How to list all Threads in the JVM? (Includes suggestion.) Howdy, Your basic code snippet worked relatively well. In fact, I liked it enough to start using it, with a few modifications and enhancements. I'm attaching a more fully developed class to do some more, e.g. get a list of all threads, etc. You WILL get security (e.g. ThreadIllegalStateException) exceptions if you try to modify thread groups outside your own. For kicks, try the destroyRootThreadGroup() method in the attached class. ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Janek Bogucki [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 9:05 AM To: [EMAIL PROTECTED] Subject: How to list all Threads in the JVM? (Includes suggestion.) Hi, We are trying to monitor the set of Threads in the JVM running Tomcat in order to fix a resource exhaustion problem we have. (Tomcat and/or our code is increasing the number of threads until the hard nproc limit in /etc/security/limits.conf for the user is reached. Red Hat Linux 7.2) How can I code this? This is probably a basic Java question but how do I reference to the top level ThreadGroup? With this code ThreadGroup tg = Thread.currentThread().getThreadGroup() ; while ( tg.getParent() != null) tg = tg.getParent() ; /* walk hierachy from tg */ would the code encounter problems with security manager restrictions when methods are invoked on the root object? In addition to the actual code to walk the Thread tree does anyone have a suggestion as to which classloader I should put the code in? Does it matter? Many Thanks for any suggestions, Janek __ 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:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [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]
anette mysel stop the autoresponders
I sent an email directly to her at: [EMAIL PROTECTED] Steve --- Ganey, Todd [EMAIL PROTECTED] wrote: Users cannot remove other people. To unsubscribe, e-mail: [EMAIL PROTECTED] from the address that is receiving mail from this list HTH, Todd -Original Message- From: anette mysel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 7:49 AM To: Tomcat Users List Subject: Re: Tomcat 3.2 : Include File Paths PLEASE REMOVE ME FROM YOUR MAILING LIST.I DO NOT KNOW WHO YOU ARE... THANK YOU... __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: form based authentication and remote user
PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW YOU. THANK YOU... - Original Message - From: Miguel Angel Medina Lopez [EMAIL PROTECTED] To: Tomcat Users [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 8:30 AM Subject: form based authentication and remote user Hi all: I'm using form-based authentication with tomcat 3.2.3. I have a form to register the users and I want to set the remote user and role when they register to they can access private zones that are protected with the form based authentication at this moment. How can I do that? Thank you all MAML -- 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]
Re: CrossContext
PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW YOU. TAHNK YOU... - Original Message - From: Jonathan Perry [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 7:25 AM Subject: Re: CrossContext I'm at a loss of how to debug this. Does anyone have any ideas of what to do? Thanks, JP On 5/6/02 11:45 am, Jonathan Perry [EMAIL PROTECTED] wrote: So having downloaded the source, built it, included it in my classpath (and then, of course, discovered I had already done all this when I first built tomcat, Duh...), and stared at it for a while, I'm not too sure how to check that the crossContext attribute is getting through at all: the ApplicationContextFacade that gets passed back by tomcat in response to getContext( ) doesn't have any ways in, and I can't see any other ways in that aren't private/protected. Most frustrating. Anyone have any ideas? Thanks, JP On 5/6/02 9:09 am, Jonathan Perry [EMAIL PROTECTED] wrote: Didn't seem to make a difference. I'm downloading the source, as I should have before I asked anyone... No doubt I'll have further questions. Thanks, JP On 5/6/02 12:53 am, Phillip Morelock [EMAIL PROTECTED] wrote: Are you supposed to have the trailing slash? maybe: getServletContext( ).getContext( /A ) I haven't used this feature, just trying to help. fillup On 6/4/02 2:44 PM, Jonathan Perry [EMAIL PROTECTED] wrote: Anybody? Please? This is really doing my head in. Thanks a lot, JP On 4/6/02 10:51 am, Jonathan Perry [EMAIL PROTECTED] wrote: Hi, I'm running jakarta-tomcat-4.0.3 on Mac OSX. I've got two contexts set up, A, and B. Both have crossContext=true in their section of server.xml. I have a copy of a servlet in each context, which has the following lines of code: ServletContext c = getServletContext( ).getContext( /A/ ); RequestDispatcher dispatcher = c.getRequestDispatcher( /helloWorld.jsp ); This code works as expected in context A, but fails to obtain a context (simply returning null, no exceptions thrown) in context B. I've searched through archives on several sites, including this one, and haven't found anything promising. Does anyone have any ideas of what I might be doing wrong? Thanks for your time, JP -- 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] -- 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]
Re: HOW TO REMOVE YOURSELF
If she has an autoresponder set up to bounce mail from this list what makes you think she is reading your instructions? This mailing list is to big for its own good. Its time for comp.lang.java.server-side Steve --- Ganey, Todd [EMAIL PROTECTED] wrote: Other users cannot remove you from the list. You will have to do this yourself. To unsubscribe, e-mail: [EMAIL PROTECTED] From the address that you are receiving the mail from this list on. __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Config of SSL and viewing on Pocket PC?
PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW YOU. THANK YOU... - Original Message - From: Steve D George [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 7:48 AM Subject: Config of SSL and viewing on Pocket PC? Hi, this question may be more related to viewing pages with Pocket Internet Explorer on the Pocket PC but maybe someone can help anyway. I have set up a web app on Tomcat 4.0. I have configured SSL by generating my own certificate. I've done this according to the SSL How to documentation. Then, within my web.xml I've defined that my web app should all be served over HTTPS (CONFIDENTIAL) and that it should use BASIC authentication. When I view my web app from a PC browser, I get the little 'Security Alert' window telling me that the server certificate is not recognised (because I generated it myself) and asking if I want to proceed. I say 'yes' and I get the little userid/password window. When I enter these using a combination that exists in my realm, I get access to the site and it works fine. But, if I then try to access the site using IE on my Pocket PC, the IE logo just spins continuously and then I get a message saying that the page cannot be found. I think this is happening at the point where Tomcat is presenting the public key to the browser because I don't get a window popping up saying that the certificate is not recognised in the way that I do with the PC browser. I've done a bit of sniffing around and apparently Pocket IE only supports 512 bit RSA keys. I believe that by default, the keytool certificate generation tool uses 1024 bits. Therefore, I applied a high encryption update to Pocket IE that allows it to handle 1024 bit keys and more but still I get the spinning logo and nothing happening. So, really I'm wondering if anyone has managed to set up a secure site on Tomcat and then view it with Pocket IE? Any help much appreciated. Cheers, Steve. -- 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]
RE: CrossContext
I take it from her 400 emails that she does not know who we are. -Original Message- From: anette mysel [mailto:[EMAIL PROTECTED]] Sent: June 5, 2002 12:06 PM To: Tomcat Users List Subject: Re: CrossContext PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW YOU. TAHNK YOU... - Original Message - From: Jonathan Perry [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 7:25 AM Subject: Re: CrossContext I'm at a loss of how to debug this. Does anyone have any ideas of what to do? Thanks, JP On 5/6/02 11:45 am, Jonathan Perry [EMAIL PROTECTED] wrote: So having downloaded the source, built it, included it in my classpath (and then, of course, discovered I had already done all this when I first built tomcat, Duh...), and stared at it for a while, I'm not too sure how to check that the crossContext attribute is getting through at all: the ApplicationContextFacade that gets passed back by tomcat in response to getContext( ) doesn't have any ways in, and I can't see any other ways in that aren't private/protected. Most frustrating. Anyone have any ideas? Thanks, JP On 5/6/02 9:09 am, Jonathan Perry [EMAIL PROTECTED] wrote: Didn't seem to make a difference. I'm downloading the source, as I should have before I asked anyone... No doubt I'll have further questions. Thanks, JP On 5/6/02 12:53 am, Phillip Morelock [EMAIL PROTECTED] wrote: Are you supposed to have the trailing slash? maybe: getServletContext( ).getContext( /A ) I haven't used this feature, just trying to help. fillup On 6/4/02 2:44 PM, Jonathan Perry [EMAIL PROTECTED] wrote: Anybody? Please? This is really doing my head in. Thanks a lot, JP On 4/6/02 10:51 am, Jonathan Perry [EMAIL PROTECTED] wrote: Hi, I'm running jakarta-tomcat-4.0.3 on Mac OSX. I've got two contexts set up, A, and B. Both have crossContext=true in their section of server.xml. I have a copy of a servlet in each context, which has the following lines of code: ServletContext c = getServletContext( ).getContext( /A/ ); RequestDispatcher dispatcher = c.getRequestDispatcher( /helloWorld.jsp ); This code works as expected in context A, but fails to obtain a context (simply returning null, no exceptions thrown) in context B. I've searched through archives on several sites, including this one, and haven't found anything promising. Does anyone have any ideas of what I might be doing wrong? Thanks for your time, JP -- 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] -- 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]
RE: jdbc connection list
Hi, If you use the javax.sql extension API you can be notified whenever a connection is closed, using the javax.sql.ConnectionEvent Listener interface. I think that most major Database vendors support this ?? but ralph is right, there is no standard way to be notified when a connection is opened. I suppose you should consider writing or using some kind of connection pool object which manages all the Connections across your applications. This is a widely used techinque and theres plenty documentaion out there about connection pools. You at least need to create a class that sits between your application and the standard JDBC way of getting a connection, so that you could generate the events you want or keep a count of open connections. i.e. this would involve changing all your servlets/jsps, to get connections the new way, Steve. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: 05 June 2002 15:47 To: Tomcat Users List Subject: AW: jdbc connection list For connection you are out of luck. There is nothing like a common event model for connections or connection pools. (No driver or pool that I know has a feature like this). One solution if you have complete control over any class that accesses the database: Wrap the pool or the connection inside a own class that delegates all get/release calls to the underlying class and track the connection count. If you have third party tools that access the database I think that you have lost with the most databases. With some database it's possible to get a list of open connection through system views or stored procedures. (E.g. Oracle) but that's not portable. -Ursprüngliche Nachricht- Von: Darya Chernikhova [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 5. Juni 2002 16:34 An: Tomcat Users List Betreff: Re: jdbc connection list snip/ I'd like to write a bean that would keep track of all of the jdbc connections that users make. snip/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information, visit http://www.messagelabs.com _ This message from All-Hotels has been checked for all known viruses by the MessageLabs Virus Scanning Service. For further information visit: http://www.messagelabs.com/stats.asp winmail.dat Description: application/ms-tnef -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.2 : Include File Paths
I don't know why it wouldn't work other than due to a simple typo. Larry -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 10:48 AM To: Tomcat Users List Subject: RE: Tomcat 3.2 : Include File Paths My docbase is set to /net/webapps Still gives me bad argument to include file Steve --- Larry Isaacs [EMAIL PROTECTED] wrote: If your docBase is set to /net/webapps then what you describe should work. If your docBase is set to /net/webapps/test, then the .. in your include is trying to go outside of the webapp, which is not allowed. Cheers, Larry -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 7:12 AM To: [EMAIL PROTECTED] Subject: Tomcat 3.2 : Include File Paths Hi; I'm using Tomcat 3.2 I have a webapp defined on my system to be: /net/webapps Under the directory webapps I have several subdirectories for jsps and various resources. In one file, /net/webapps/test/test.jsp, I am trying to use this include directive %@ include file=../common/copyright.html % to include /net/webapps/common/copyright.html I keep getting error code 500 and the message bad file argument to include Anyone have any idea of what is going on and how I can back up with file paths? Thanks in advance Steve __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [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]
log4j not working for two applications simultaneously... pls help
Hello friends. I'm facing a wierd problem. I'm using Tomcat 4.0.2 and Apache 1.3.20 on redhat 7.2 and latest log4j. I've set the $CATALINA_OPTS=-Dlog4j.configuration=log4j.configure I'm running two applications ABC and XYZ. When i put log4j.configure file in WEB-INF/classes/ of ABC and XYZ, seems like log4j doesnot logs for both. whereas it is writing to a specified file for the first application accessed via web either ABC or XYZ . I mean if i access ABC it creates a log file specified in log4j.configure for ABC. and logs of XYZ are written in a catalina.out. Can any one please help me out to solve this problem. I want log using log4j for multiple applications. Waiting for reply, thanking u in advance .. Prashant -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.2 : Include File Paths
I checked for typos thanks --- Larry Isaacs [EMAIL PROTECTED] wrote: I don't know why it wouldn't work other than due to a simple typo. Larry -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 10:48 AM To: Tomcat Users List Subject: RE: Tomcat 3.2 : Include File Paths My docbase is set to /net/webapps Still gives me bad argument to include file Steve --- Larry Isaacs [EMAIL PROTECTED] wrote: If your docBase is set to /net/webapps then what you describe should work. If your docBase is set to /net/webapps/test, then the .. in your include is trying to go outside of the webapp, which is not allowed. Cheers, Larry -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 7:12 AM To: [EMAIL PROTECTED] Subject: Tomcat 3.2 : Include File Paths Hi; I'm using Tomcat 3.2 I have a webapp defined on my system to be: /net/webapps Under the directory webapps I have several subdirectories for jsps and various resources. In one file, /net/webapps/test/test.jsp, I am trying to use this include directive %@ include file=../common/copyright.html % to include /net/webapps/common/copyright.html I keep getting error code 500 and the message bad file argument to include Anyone have any idea of what is going on and how I can back up with file paths? Thanks in advance Steve __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [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!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem with mod_webapp and JNI
Hello, I have an application deployed with Tomcat 4.0.3, and it works beautifully. However, I have issues with it when using apache 2.0.36 and the mod_webapp connector (full error at the end of the msg). mod_webapp is functionnal since I can deploy the Tomcat examples without any problem. If you look at the error, you'll see it's throwing a java.lang.NoClassDefFoundError at line 172 of Notifier.java, which is where I call my static class that uses JNI (Pid.getPid() basically). Now, I get the exact same error from Tomcat-Standalone if I start it without setting LD_LIBRARY_PATH first, which leads me to think the problem is related. Does anyone know of any issues with this? I've tried setting this variable everywhere I could think of, but it stills doesn't seem to find it. Any help would be greatly appreciated, -JF. P.S. I'm using the 4.0.2 version of the webapp connector. I would have tried the CVS version before emailing the list, but RedHat 7.2 doesn't have a recent enough version of autoconf to build it. --- Here's the error I get (slightly edited for formatting): Apache Tomcat/4.0.3 - Error report Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet Home threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:217) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194) at java.lang.Thread.run(Thread.java:484) root cause java.lang.NoClassDefFoundError at Notification.Notifier.getUniqueIdentifier(Notifier.java:172) at Notification.Notifier.logMessage(Notifier.java:158) at Notification.Notifier.notifyMajor(Notifier.java:91) at Home.init(Home.java:143) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
Re: Tomcat 3.2 : Include File Paths
Try %@ include file=/common/copyright.html % This will then include the file from your docbase eg tomcat will add in the /net/webapps/ bit for you ... Try it ;-} D Steve wrote: I checked for typos thanks --- Larry Isaacs [EMAIL PROTECTED] wrote: I don't know why it wouldn't work other than due to a simple typo. Larry -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 10:48 AM To: Tomcat Users List Subject: RE: Tomcat 3.2 : Include File Paths My docbase is set to /net/webapps Still gives me bad argument to include file Steve --- Larry Isaacs [EMAIL PROTECTED] wrote: If your docBase is set to /net/webapps then what you describe should work. If your docBase is set to /net/webapps/test, then the .. in your include is trying to go outside of the webapp, which is not allowed. Cheers, Larry -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 7:12 AM To: [EMAIL PROTECTED] Subject: Tomcat 3.2 : Include File Paths Hi; I'm using Tomcat 3.2 I have a webapp defined on my system to be: /net/webapps Under the directory webapps I have several subdirectories for jsps and various resources. In one file, /net/webapps/test/test.jsp, I am trying to use this include directive %@ include file=../common/copyright.html % to include /net/webapps/common/copyright.html I keep getting error code 500 and the message bad file argument to include Anyone have any idea of what is going on and how I can back up with file paths? Thanks in advance Steve __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [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!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.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]
new tomcat user: migrating app from resin
i've installed tomcat 4.0.3-1 from rpm and am attempting to migrate an app that's currently running under resin. i copied the app tree to $CATALINA_HOME/webapps and restarted tomcat but when i attempt to access the app, i get a 404. i also tried to create a context in $CATALINA_HOME/conf/server.xml to no avail. $ ls -l $CATALINA_HOME/webapps/accountaccess-4-3/WEB-INF/web.xml lrwxrwxrwx1 tomcat4 tomcat458 Jun 4 17:18 /var/tomcat4/webapps/accountaccess-4-3/WEB-INF/web.xml - /home/scott/pws/telmast-app/accountaccess-4-3/conf/web.xml what am i missing folks? -- Regards, Scott Dudley -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4 IIS NT Security
Hi all, I am trying to apply directory level NT security in side the Webapps folder. Anyone have done it and can give me some directive? Thanks very much. Baoha.
Re: Tomcat 3.2 : Include File Paths
That did itthankyou! Steve --- David Cassidy [EMAIL PROTECTED] wrote: Try %@ include file=/common/copyright.html % This will then include the file from your docbase eg tomcat will add in the /net/webapps/ bit for you ... Try it ;-} D Steve wrote: I checked for typos thanks --- Larry Isaacs [EMAIL PROTECTED] wrote: I don't know why it wouldn't work other than due to a simple typo. Larry -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 10:48 AM To: Tomcat Users List Subject: RE: Tomcat 3.2 : Include File Paths My docbase is set to /net/webapps Still gives me bad argument to include file Steve --- Larry Isaacs [EMAIL PROTECTED] wrote: If your docBase is set to /net/webapps then what you describe should work. If your docBase is set to /net/webapps/test, then the .. in your include is trying to go outside of the webapp, which is not allowed. Cheers, Larry -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 7:12 AM To: [EMAIL PROTECTED] Subject: Tomcat 3.2 : Include File Paths Hi; I'm using Tomcat 3.2 I have a webapp defined on my system to be: /net/webapps Under the directory webapps I have several subdirectories for jsps and various resources. In one file, /net/webapps/test/test.jsp, I am trying to use this include directive %@ include file=../common/copyright.html % to include /net/webapps/common/copyright.html I keep getting error code 500 and the message bad file argument to include Anyone have any idea of what is going on and how I can back up with file paths? Thanks in advance Steve __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [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!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.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!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Answer: Reloading classes WITHOUT using shutdown.sh startup.sh (newbies should read)
I have been on this list for about a month and have see this question many time (myself included). I have finally figured out how you can get a class to reload (e.g. Included JavaBean) without having to stop/start tomcat using shutdown.sh and startup.sh. First, follow the directions in Manager App HOW-TO included with the tomcat documentation. Once this is done, you can use the manager app reload function to reload the web app. This also refreshes any newly compiled classes (e.g. javabeans) that you may have included in the JSPs. To use the reload, do the following: http://IP Address/manager/reload?path=web app You can also use the manager to deploy new web apps, un-deploy web apps, start/stop web apps. This may be common sense to those tomcat veterans, but this was very helpful to me once I learned how to use it. Adam P.S. If I have made any errors, please correct me. Thanks. __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: new tomcat user: migrating app from resin
Howdy, Some more information would be nice ;) 1) Did you verify that tomcat installed correctly, e.g. by running the examples? 2) Are there any errors in the tomcat logs relevant to parsing / deploying / starting your web-app? 3) What do you mean when you say you couldn't create a context in server.xml? Yoav Shapira Millennium ChemInformatics -Original Message- From: Scott Dudley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 11:23 AM To: [EMAIL PROTECTED] Subject: new tomcat user: migrating app from resin i've installed tomcat 4.0.3-1 from rpm and am attempting to migrate an app that's currently running under resin. i copied the app tree to $CATALINA_HOME/webapps and restarted tomcat but when i attempt to access the app, i get a 404. i also tried to create a context in $CATALINA_HOME/conf/server.xml to no avail. $ ls -l $CATALINA_HOME/webapps/accountaccess-4-3/WEB-INF/web.xml lrwxrwxrwx1 tomcat4 tomcat458 Jun 4 17:18 /var/tomcat4/webapps/accountaccess-4-3/WEB-INF/web.xml - /home/scott/pws/telmast-app/accountaccess-4-3/conf/web.xml what am i missing folks? -- Regards, Scott Dudley -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: log4j not working for two applications simultaneously... plshelp
I have not tested to see if this works for multiple apps but I placed my log4j properties file in the same location as you, but I also used an initialization servlet to read it in as described in the log4j manual. I am using JBoss 2.4.4 and Tomcat 3.2.3. I'll try to verify that this does in fact work for me with multiple apps if I can find the time. Hello friends. I'm facing a wierd problem. I'm using Tomcat 4.0.2 and Apache 1.3.20 on redhat 7.2 and latest log4j. I've set the $CATALINA_OPTS=-Dlog4j.configuration=log4j.configure I'm running two applications ABC and XYZ. When i put log4j.configure file in WEB-INF/classes/ of ABC and XYZ, seems like log4j doesnot logs for both. whereas it is writing to a specified file for the first application accessed via web either ABC or XYZ . I mean if i access ABC it creates a log file specified in log4j.configure for ABC. and logs of XYZ are written in a catalina.out. Can any one please help me out to solve this problem. I want log using log4j for multiple applications. Waiting for reply, thanking u in advance .. Prashant -- 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]
RE: request.getReader() hanging
The problem is that apj13 does not serve servlets and JSP pages correct also. It hangs making useless communications with mod_jk and uses all the available CPU power. If I kill the corresponding http daemon the following error appears in the log: Ajp13Processor[25181][0] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:496) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:192) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:435) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495) at java.lang.Thread.run(Thread.java:484) That makes me think that the request header processing is braking if specific data is send (in jakarta-tomcat-connectors-4.0.2-01-src\jk\doc\AJPv13.html there is interesting question at the bottom of the document and it may be the key for this problem). Most probably you have the same problem. I'm about to debug it but unfortunately I can not reproduce it on my system. Is the problem that you are talking about related to any specific data? Shall the data in the quoted example be sufficient to hang the Connector? BW what OS you are using? Regards, Rossen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 6:31 AM To: [EMAIL PROTECTED] Subject: RE: request.getReader() hanging i think i've narrowed the problem down to the ajp13 connector, what's strange is the connector works fine for all other /servlet and *.jsp requests, apart from those where you try to read the request data using request.getReader() moreover, performing the same task but making the request directly to tomcat produces no problems Code snippets follow: 4660 = apache port 4661 = tomcat port == == = Request Page (sample.html) html head script language=javascript function doXml(){ // Create a requestor and post the request... var xmlRequestor = new ActiveXObject(Microsoft.XMLHTTP); xmlRequestor.Open(POST, http://localhost:4660/servlet/SampleServlet;, false); xmlRequestor.SetRequestHeader(Content-type, application/x-www-form-urlencoded); xmlRequestor.Send(parentchildsome data/child/parentt); alert(xmlRequestor.responseText); } /script /head body bgcolor=#FF text=#00 script doXml(); /script /body /html == == === Sample Servlet public void doPost(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException{ BufferedReader br = request.getReader(); String line = null; StringBuffer envelope = new StringBuffer(); while ((line = br.readLine()) != null) { envelope.append(line); } br.close(); PrintWriter out=response.getWriter(); out.println(envelope+returned/); } == == === If you substitute 4661(tomcat standalone port) for 4660(apache port) in the request url in the html page, it works fine. cheers Chris -Original Message- From: Rossen Raykov [mailto:[EMAIL PROTECTED]] Sent: 03 June 2002 18:08 To: 'Tomcat Users List' Subject: RE: request.getReader() hanging Can you reproduce it? Does it utilize the whole available CPU? Rossen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 1:21 PM To: [EMAIL PROTECTED] Subject: request.getReader() hanging hi all recently upgraded, or attempted to upgrade, to tomcat 4.0.3, but have hit a brick wall.i had a servlet with the following code snippet running perfectly fine in 3.2.3 but it's not having any of it with tomcat 4.0.3 BufferedReader br = request.getReader(); String line = null; StringBuffer envelope = new StringBuffer(); while ((line = br.readLine()) != null) { envelope.append(line); } br.close(); I'm basically sending through a stream of xml data and trying to read it in the servlet's post method. What happens is when it gets to the readLine() method above, it just hangs forever. Trying to read just one character with a simple read() produces the same behaviour. I've checked the request.content-length and it indicates the data is there. No exceptions are thrown or anything. I'm not reading any
RE: Answer: Reloading classes WITHOUT using shutdown.sh startup.sh (newbies should read)
You could also set reloadable=true in the Context element, but that requires significant overhead and is not recommended for production environments. Mike -Original Message- From: Adam Pfeiffer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 11:37 AM To: [EMAIL PROTECTED] Subject: Answer: Reloading classes WITHOUT using shutdown.sh startup.sh (newbies should read) I have been on this list for about a month and have see this question many time (myself included). I have finally figured out how you can get a class to reload (e.g. Included JavaBean) without having to stop/start tomcat using shutdown.sh and startup.sh. First, follow the directions in Manager App HOW-TO included with the tomcat documentation. Once this is done, you can use the manager app reload function to reload the web app. This also refreshes any newly compiled classes (e.g. javabeans) that you may have included in the JSPs. To use the reload, do the following: http://IP Address/manager/reload?path=web app You can also use the manager to deploy new web apps, un-deploy web apps, start/stop web apps. This may be common sense to those tomcat veterans, but this was very helpful to me once I learned how to use it. Adam P.S. If I have made any errors, please correct me. Thanks. __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.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]
Re: new tomcat user: migrating app from resin
Shapira, Yoav wrote: Howdy, Some more information would be nice ;) 1) Did you verify that tomcat installed correctly, e.g. by running the examples? yes. 2) Are there any errors in the tomcat logs relevant to parsing / deploying / starting your web-app? yes. 2002-06-04 16:20:52 ContextConfig[/accountaccess-4-3] Parse error in application web.xml org.xml.sax.SAXParseException: Element type web-app must be declared. at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java) at org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(XMLValidator.java) at org.apache.xerces.validators.common.XMLValidator.validateElementAndAttributes(XMLValidator.java) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java) at javax.xml.parsers.SAXParser.parse(SAXParser.java) at javax.xml.parsers.SAXParser.parse(SAXParser.java) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:256) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:824) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:224) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3345) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) at org.apache.catalina.core.StandardHost.install(StandardHost.java:714) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.StandardHost.start(StandardHost.java:614) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) 2002-06-04 16:20:52 ContextConfig[/accountaccess-4-3]: Occurred at line 7 column 10 2002-06-04 16:20:52 ContextConfig[/accountaccess-4-3]: Marking this application unavailable due to previous error(s) 2002-06-04 16:20:52 StandardContext[/accountaccess-4-3]: Error initializing naming context for context /accountaccess-4-3 2002-06-04 16:20:52 StandardContext[/accountaccess-4-3]: Context startup failed due to previous errors 3) What do you mean when you say you couldn't create a context in server.xml? not that i couldn't create a context but that it had no affect. ignorant as i am :-) , i think the parse error above indicates the problem and that it will not be trivial to get out app running under tomcat which is unfortunate. i really wanted to test tomcat and to compare performance of the two servers. Yoav Shapira Millennium ChemInformatics -Original Message- From: Scott Dudley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 11:23 AM To: [EMAIL PROTECTED] Subject: new tomcat user: migrating app from resin i've installed tomcat 4.0.3-1 from rpm and am attempting to migrate an app that's currently running under resin. i copied the app tree to $CATALINA_HOME/webapps and restarted tomcat but when i attempt to access the app, i get a 404. i also tried to create a context in $CATALINA_HOME/conf/server.xml to no avail. $ ls -l $CATALINA_HOME/webapps/accountaccess-4-3/WEB-INF/web.xml lrwxrwxrwx1 tomcat4 tomcat458 Jun 4 17:18 /var/tomcat4/webapps/accountaccess-4-3/WEB-INF/web.xml - /home/scott/pws/telmast-app/accountaccess-4-3/conf/web.xml what am i missing folks? -- Regards, Scott Dudley -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user-
RE: How to list all Threads in the JVM? (Includes suggestion.)
Hi Yoav, --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Your basic code snippet worked relatively well. In fact, I liked it enough to start using it, with a few modifications and enhancements. I'm attaching a more fully developed class to do some more, e.g. get a list of all threads, etc. You WILL get security (e.g. ThreadIllegalStateException) exceptions if you try to modify thread groups outside your own. For kicks, try the destroyRootThreadGroup() method in the attached class. ;) Yoav Shapira Millennium ChemInformatics Thanks for posting the class, it was really good. (If anyone is having trouble with Exercise 10.9 in The Java Programming Language Third Edition I reccommend a look at Yoav's class!). I've integrated it in the web app. This is what I get shortly after starting Tomcat. It's a good starting point. Many Thanks, Janek [SystemThreadList: ThreadGroup 0= java.lang.ThreadGroup[name=main,maxpri=10], activeCount = 46 ThreadGroup 1= java.lang.ThreadGroup[name=system,maxpri=10], activeCount = 50 totalActiveCount = 96 (End of SystemThreadList)]Thread 0 = Thread[Reference Handler,10,system] Thread 1 = Thread[Finalizer,8,system] Thread 2 = Thread[Signal Dispatcher,10,system] Thread 3 = Thread[CompileThread0,10,system] Thread 4 = Thread[main,5,main] Thread 5 = Thread[Thread-0,5,main] Thread 6 = Thread[Thread-1,5,main] Thread 7 = Thread[StandardManager[],5,main] Thread 8 = Thread[Thread-2,5,main] Thread 9 = Thread[Thread-3,5,main] Thread 10 = Thread[Thread-4,5,main] Thread 11 = Thread[Thread-5,5,main] Thread 12 = Thread[Thread-6,5,main] Thread 13 = Thread[Thread-7,5,main] Thread 14 = Thread[Thread-8,5,main] Thread 15 = Thread[Thread-9,5,main] Thread 16 = Thread[Thread-10,5,main] Thread 17 = Thread[Thread-11,5,main] Thread 18 = Thread[Thread-12,5,main] Thread 19 = Thread[Thread-13,5,main] Thread 20 = Thread[Thread-14,5,main] Thread 21 = Thread[Thread-15,5,main] Thread 22 = Thread[Thread-16,5,main] Thread 23 = Thread[Thread-17,5,main] Thread 24 = Thread[Thread-18,5,main] Thread 25 = Thread[Thread-19,5,main] Thread 26 = Thread[Thread-20,5,main] Thread 27 = Thread[Thread-21,5,main] Thread 28 = Thread[StandardManager[],5,main] Thread 29 = Thread[Thread-22,5,main] Thread 30 = Thread[Thread-23,5,main] Thread 31 = Thread[Thread-24,5,main] Thread 32 = Thread[Thread-25,5,main] Thread 33 = Thread[Thread-26,5,main] Thread 34 = Thread[Thread-27,5,main] Thread 35 = Thread[Thread-28,5,main] Thread 36 = Thread[Thread-30,5,main] Thread 37 = Thread[Thread-31,5,main] Thread 38 = Thread[StandardManager[],5,main] Thread 39 = Thread[Thread-32,5,main] Thread 40 = Thread[Thread-33,5,main] Thread 41 = Thread[Thread-34,5,main] Thread 42 = Thread[Thread-35,5,main] Thread 43 = Thread[Thread-37,5,main] Thread 44 = Thread[Thread-38,5,main] Thread 45 = Thread[Thread-39,5,main] Thread 46 = Thread[Thread-40,5,main] Thread 47 = Thread[Thread-41,5,main] Thread 48 = Thread[Thread-42,5,main] Thread 49 = Thread[Thread-43,5,main] To dump this into a page, use this abbreviated version of SystemThreadList.main. xxx () { SystemThreadList stl = new SystemThreadList() ; Thread[] allThreads = stl.getAllThreads(); if((allThreads == null) || (allThreads.length 1)) return SystemThreadListSAO: allThreads is null or length 1.; StringBuffer sb = new StringBuffer(stl.toString() ); sb.append ( \n ) ; // Individual thread info Thread t = null; for(int i = 0; i allThreads.length; i++) { t = allThreads[i]; sb.append(Thread + i + = + t.toString()); sb.append ( \n ) ; } return sb.toString() ; } __ 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: Answer: Reloading classes WITHOUT using shutdown.sh startup.sh (newbies should read)
Mike, From my experience, javabean will not be reloaded even with reloadable=true. I have reloadable=true on my web app, and it would not reread the classes until I used shutdown.sh and startup.sh. Maybe I didn't have something set up right. Here is a snipet from my server.xml: Context path=/trips docBase=trips debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_trips. suffix=.txt timestamp=true/ /Context Let me know if you see anything wrong. Thanks. --- Mike Millson [EMAIL PROTECTED] wrote: You could also set reloadable=true in the Context element, but that requires significant overhead and is not recommended for production environments. Mike -Original Message- From: Adam Pfeiffer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 11:37 AM To: [EMAIL PROTECTED] Subject: Answer: Reloading classes WITHOUT using shutdown.sh startup.sh (newbies should read) I have been on this list for about a month and have see this question many time (myself included). I have finally figured out how you can get a class to reload (e.g. Included JavaBean) without having to stop/start tomcat using shutdown.sh and startup.sh. First, follow the directions in Manager App HOW-TO included with the tomcat documentation. Once this is done, you can use the manager app reload function to reload the web app. This also refreshes any newly compiled classes (e.g. javabeans) that you may have included in the JSPs. To use the reload, do the following: http://IP Address/manager/reload?path=web app You can also use the manager to deploy new web apps, un-deploy web apps, start/stop web apps. This may be common sense to those tomcat veterans, but this was very helpful to me once I learned how to use it. Adam P.S. If I have made any errors, please correct me. Thanks. __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.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!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Valid values for Factory 'protocol'???
You absolute moron. Instructions for unsubscribing are at the bottom of each message to which you responded with your idiotic request, if you could be troubled to READ. You are sending your requests to a robot mailer that just blasts them out to several hundred people, none of whom can unsubscribe you, even if we cared whether you get unsubscribed or not. If you are too stupid to use a computer, don't use one. -- Jim McMaster mailto:[EMAIL PROTECTED] In message 000601c20c9f$c9761e50$a9740c44@cx2417397b, anette mysel said: Please delete me from your mailing list. I do not know who you are. Thank you... - Original Message - From: Steve D George [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 9:29 AM Subject: Valid values for Factory 'protocol'??? Hi, can someone tell me what the alternative values are for the 'protocol' attribute of the Factory element please? The default is TLS and the HOW TO SSL docs say not to change the default but I'm not sure if this means don't make the default in the source code anything but 'TLS' or whether it means not to change this value at all in the server.xml file, in which case, why is it there for you to change in the first place? ;o) Thanks, Steve. -- 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]
RE: Answer: Reloading classes WITHOUT using shutdown.sh startup.sh (newbies should read)
Howdy, Reloading the whole-app is very different from selectively reloading a set of classes. When you use the manager to reload as you suggest, you will also re-trigger the various initialization events (filters, servlets, etc.). If that's what you want to do, then the manager reload is excellent. I personally like it a lot. However, if you want to reload just a specific class in place, that's more tricky. You'll probably have to subclass the ClassLoader itself to do what you want. Yoav Shapira Millennium ChemInformatics -Original Message- From: Mike Millson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 12:01 PM To: Tomcat Users List Subject: RE: Answer: Reloading classes WITHOUT using shutdown.sh startup.sh (newbies should read) You could also set reloadable=true in the Context element, but that requires significant overhead and is not recommended for production environments. Mike -Original Message- From: Adam Pfeiffer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 11:37 AM To: [EMAIL PROTECTED] Subject: Answer: Reloading classes WITHOUT using shutdown.sh startup.sh (newbies should read) I have been on this list for about a month and have see this question many time (myself included). I have finally figured out how you can get a class to reload (e.g. Included JavaBean) without having to stop/start tomcat using shutdown.sh and startup.sh. First, follow the directions in Manager App HOW-TO included with the tomcat documentation. Once this is done, you can use the manager app reload function to reload the web app. This also refreshes any newly compiled classes (e.g. javabeans) that you may have included in the JSPs. To use the reload, do the following: http://IP Address/manager/reload?path=web app You can also use the manager to deploy new web apps, un-deploy web apps, start/stop web apps. This may be common sense to those tomcat veterans, but this was very helpful to me once I learned how to use it. Adam P.S. If I have made any errors, please correct me. Thanks. __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: new tomcat user: migrating app from resin
Hi, Just out of curiosity, can you post the web.xml that worked in resin and not in tomcat? Does it comply with the Servlet 2.3 DTD?? Thanks, Yoav Shapira Millennium ChemInformatics -Original Message- From: Scott Dudley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 12:00 PM To: Tomcat Users List Subject: Re: new tomcat user: migrating app from resin Shapira, Yoav wrote: Howdy, Some more information would be nice ;) 1) Did you verify that tomcat installed correctly, e.g. by running the examples? yes. 2) Are there any errors in the tomcat logs relevant to parsing / deploying / starting your web-app? yes. 2002-06-04 16:20:52 ContextConfig[/accountaccess-4-3] Parse error in application web.xml org.xml.sax.SAXParseException: Element type web-app must be declared. at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java) at org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLEr ror( XMLValidator.java) at org.apache.xerces.validators.common.XMLValidator.validateElementAndAttr ibut es(XMLValidator.java) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVa lida tor.java) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispat ch(X MLDocumentScanner.java) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSca nner .java) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java) at javax.xml.parsers.SAXParser.parse(SAXParser.java) at javax.xml.parsers.SAXParser.parse(SAXParser.java) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConf ig.j ava:256) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:824) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig. java :224) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo rt.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.StandardContext.start(StandardContext.java:334 5) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) at org.apache.catalina.core.StandardHost.install(StandardHost.java:714) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:2 32) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo rt.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.StandardHost.start(StandardHost.java:614) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388 ) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) 2002-06-04 16:20:52 ContextConfig[/accountaccess-4-3]: Occurred at line 7 column 10 2002-06-04 16:20:52 ContextConfig[/accountaccess-4-3]: Marking this application unavailable due to previous error(s) 2002-06-04 16:20:52 StandardContext[/accountaccess-4-3]: Error initializing naming context for context /accountaccess-4-3 2002-06-04 16:20:52 StandardContext[/accountaccess-4-3]: Context startup failed due to previous errors 3) What do you mean when you say you couldn't create a context in server.xml? not that i couldn't create a context but that it had no affect. ignorant as i am :-) , i think the parse error above indicates the problem and that it will not be trivial to get out app running under tomcat which is unfortunate. i really wanted to test tomcat and to compare performance of the two servers. Yoav Shapira Millennium ChemInformatics -Original Message- From: Scott Dudley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 11:23 AM To: [EMAIL PROTECTED] Subject: new tomcat user: migrating app from resin i've installed tomcat 4.0.3-1 from rpm and am attempting to migrate an app that's currently running under resin. i copied the app tree to $CATALINA_HOME/webapps and restarted tomcat but when i attempt to access the app, i get a 404. i also tried to create a context in $CATALINA_HOME/conf/server.xml to no avail. $ ls -l
RE: Answer: Reloading classes WITHOUT using shutdown.sh startup.sh (newbies should read)
The for the clarification. I didn't realize that it was doing all of the initializtion events. Adam --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Reloading the whole-app is very different from selectively reloading a set of classes. When you use the manager to reload as you suggest, you will also re-trigger the various initialization events (filters, servlets, etc.). If that's what you want to do, then the manager reload is excellent. I personally like it a lot. However, if you want to reload just a specific class in place, that's more tricky. You'll probably have to subclass the ClassLoader itself to do what you want. Yoav Shapira Millennium ChemInformatics -Original Message- From: Mike Millson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 12:01 PM To: Tomcat Users List Subject: RE: Answer: Reloading classes WITHOUT using shutdown.sh startup.sh (newbies should read) You could also set reloadable=true in the Context element, but that requires significant overhead and is not recommended for production environments. Mike -Original Message- From: Adam Pfeiffer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 11:37 AM To: [EMAIL PROTECTED] Subject: Answer: Reloading classes WITHOUT using shutdown.sh startup.sh (newbies should read) I have been on this list for about a month and have see this question many time (myself included). I have finally figured out how you can get a class to reload (e.g. Included JavaBean) without having to stop/start tomcat using shutdown.sh and startup.sh. First, follow the directions in Manager App HOW-TO included with the tomcat documentation. Once this is done, you can use the manager app reload function to reload the web app. This also refreshes any newly compiled classes (e.g. javabeans) that you may have included in the JSPs. To use the reload, do the following: http://IP Address/manager/reload?path=web app You can also use the manager to deploy new web apps, un-deploy web apps, start/stop web apps. This may be common sense to those tomcat veterans, but this was very helpful to me once I learned how to use it. Adam P.S. If I have made any errors, please correct me. Thanks. __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
FW: Using the Jk2 filter vs Jk filter.
it has some docs inside, what do you want to know? For one: I am attempting to build using the build.xml file in native2 dir (that is how I should build it, correct?). I have: ANT_HOME=d:\test\jakarta\jakarta-ant-1.5Beta1\ [echo] Apache2 /Progra~1/Apache Group/Apache2 true [echo] IIS c:/Inetpub true But I am missing the so/ task according to the build message. Where can I get it? I did not see anthing about an so/ task on: http://jakarta.apache.org/ant/manual/index.html -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 10:41 AM To: 'Tomcat Users List' Subject: RE: Using the Jk2 filter vs Jk filter. De: Robert Priest [mailto:[EMAIL PROTECTED]] Enviado el: 5 de junio de 2002 16:21 But I still need apache2? You only need to put libapr.dll and libapr-util.dll from apache2 in the same directory of i_r2.dll to run it, lib and h files to build only.. Does anyone here know of config docs for the Jk2 filter? It has some docs inside, what do you want to know? Also, is anyone currently running jk2 Isapi on IIS 5.0? I do my tests on iis 5.0 :), but i doubt anyone had tested it already, the first Milestone will be achieved soon.. so it's should be in an usable state, not ready for production, but stable enought to test it.. Saludos , Ignacio J. Ortega -- 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]
Re: new tomcat user: migrating app from resin
Shapira, Yoav wrote: Hi, Just out of curiosity, can you post the web.xml that worked in resin and not in tomcat? will i be flamed for including it in my reply (james, nice response)? :-) Does it comply with the Servlet 2.3 DTD?? i'm new to xml and all things web (i know, what a dinosaur) but don't think so. Thanks, Yoav Shapira Millennium ChemInformatics -- Regards, Scott Dudley -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Classes in JAR File found, but unpacked Classes not found
Hi Folks, I'm using Apache Tomcat 4.0.3 and JSE 1.4.0 and Windows NT 4.0 Service Pack 5 I'm setting up a JDBC Realm with an Oracle 9i Database. As the Driver I use oracle.jdbc.driver.OracleDriver wich are distributet by Oracle in the classes12.zip File. If I unpack the driver file to $CATALINA_HOME$\common\classes Tomcat doesn't find it. Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: oracle.jdbc.driver.OracleDriver LifecycleException: Exception opening database connection: java.sql.SQLException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) . If I wrap the packages up in a jar file and place ist like: $CATALINA_HOME$\common\lib\classes12.jar then Tomcat finds it. I always thought that the classes dirs were for the unpacked class files and the lib dirs for the classes in jar files. But elsewise equivalent. Is the behaviour, that I discover a bug or is it a feature? Did I misconfiguere something? Where should I look next? The Realm is configuered this way: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver connectionName=X connectionPassword=X connectionURL=jdbc:oracle:thin:X:X userTable=Benutzer userNameCol=Name userCredCol=Passwort userRoleTable=Benutzer roleNameCol=Rolle / Thanks a lot in advance, Martin
More than one security-constraint per app
Hello, I'm new to tomcat and I'm trying to set some directory level security in the WEB-INF folder, but it seems I cannot have more than one security-contraint in the web.xml folder and I cannot define more than one WEB-INF folder. What I am looking for is to have the directory structure such that a user must be in one group to access root/contraint1 and another to access root/contraint2 (see directory structure below) etc. Is this possible? Perhaps with multiple contexts? Thanks, Ryan rootdir rootdir/contraint1 rootdir/contraint2 etc __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: request.getReader() hanging
i've tried sending modifying the data sent, but the behaviour stays the same, it does seem to send the request headers through, but only as demonstrated by including the following snippet before calling request.getReader() == Enumeration enum = request.getHeaderNames(); System.out.println(Content-Length = +request.getContentLength()); while(enum.hasMoreElements()){ String header = (String)enum.nextElement(); System.out.println(RequestHeader: + header+ = +request.getHeader(header)); } That prints out all the headers, but as soon as it gets to the reader.readLine(), it just hangs Using solaris 7 btw ps - catalina.out shows the following info when ajp13 responds alright === [Ajp13] receive: total read = 230 [Ajp13] Received 2 JK_AJP13_FORWARD_REQUEST [Ajp13] receive() [Ajp13] receive: total read = 6 [Ajp13] send() [Ajp13] send() [Ajp13] send() [Ajp13] recycle() [Ajp13] receiveNextRequest() [Ajp13] receive() = but when it hangs it only shows this === [Ajp13] receive: total read = 278 [Ajp13] Received 2 JK_AJP13_FORWARD_REQUEST [Ajp13] receive() [Ajp13] receive: total read = 6 [Ajp13] send() [Ajp13] receive() -Original Message- From: Rossen Raykov [mailto:[EMAIL PROTECTED]] Sent: 05 June 2002 17:01 To: 'Tomcat Users List' Cc: '[EMAIL PROTECTED]' Subject: RE: request.getReader() hanging The problem is that apj13 does not serve servlets and JSP pages correct also. It hangs making useless communications with mod_jk and uses all the available CPU power. If I kill the corresponding http daemon the following error appears in the log: Ajp13Processor[25181][0] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:496) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:192) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:435) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495) at java.lang.Thread.run(Thread.java:484) That makes me think that the request header processing is braking if specific data is send (in jakarta-tomcat-connectors-4.0.2-01-src\jk\doc\AJPv13.html there is interesting question at the bottom of the document and it may be the key for this problem). Most probably you have the same problem. I'm about to debug it but unfortunately I can not reproduce it on my system. Is the problem that you are talking about related to any specific data? Shall the data in the quoted example be sufficient to hang the Connector? BW what OS you are using? Regards, Rossen ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. **
Help: SSL with client authentication
Hi, I know that this is a hot topic, and I searched all archives I could, but still could not find out why this is not working. I am trying to set up Tomcat to use server *and* client side certificates. I am following the SSL-Howto. When I setup only the server certificate, everything is OK, but as soon as I turn on clientAuth=true, nothing goes. I don't even get any info out of the logs. By using a proxy (tcpmon out of the axis stuff), I could at last intercept this error message: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148) at java.net.Socket.connect(Socket.java:425) at java.net.Socket.connect(Socket.java:375) at java.net.Socket.init(Socket.java:290) at java.net.Socket.init(Socket.java:118) at org.apache.axis.utils.tcpmon$Connection.run(tcpmon.java:881) Everything is configured to default, i.e. port is 8443, .keystore is in the user-home (server side is ok anyway), but I can't seem to be connecting. I have tried several versions/builds, now I have win2000/jdk_1.4/tomcat_4.0.3/mozilla_1.0rc3. There must be some stupid thing that I am overlooking, but if nobody helps me, I will go crazy. TIA, Memo -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: catalina-ant ReloadTask fails
On Wed, 5 Jun 2002, Ben Walding wrote: Date: Wed, 05 Jun 2002 18:19:06 +1000 From: Ben Walding [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: catalina-ant ReloadTask fails As I understand thing, the reload task just tells TomCat to reload the war file that is in the webapp directory. It is still your responsiblity to get the WAR file to the webapp directory. It's a shame it doesn't support a file upload as part of the TomCat task, but when I get annoyed enough I guess I'll write it! (I use samba shares at the moment to copy to the webapp directory). In the latest 4.1.x releases, the Ant deploy command does support a file upload of your WAR file, so that you can deploy from a different machine. The install command is for the local machine only, but it's faster because no copying is required. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to load properties into tomcat 4.0.3?
I am still a bit confused. I do not know what the servlet-name and servlet-class are referring to? The Jsp Page it called TopNav.jsp and the bean is called PictureBrowserBean. I want to have the bean PictureBrowserBean be able to access the extra parameter. In this case, the location of the properties file. Here i my guess at what I would do servlet servlet-nameTopNav/servlet-name servlet-classPictureBrowserBean/servlet-class init-param param-namepropFile/param-name param-value/opt/jakarta-tomcat-4.0.3/webapps/trips-dev/param-value /init-param /servlet Is this correct? I am going to try this, but I am a bit short on time right now. Thanks again for your help. Adam --- Subir Sengupta [EMAIL PROTECTED] wrote: You can do something like this in your web.xml servlet servlet-namesomename/servlet-name servlet-classsomeclass/servlet-class init-param param-nameparam1/param-name param-valuesomevalue/param-value /init-param /servlet You can then call getServletConfig().getInitParameter(param1) from the init method of the somename servlet. Hope this helps, Subir -Original Message- From: Adam Pfeiffer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 10:52 PM To: [EMAIL PROTECTED] Subject: How to load properties into tomcat 4.0.3? Hello, I have a bean that uses the Properties Object. Currently, on each jsp that calls that bean I have to do a bean.setPropsDir() which sets the directory where to find the properties file. Is there a way in server.xml, web.xml or some other way that I can put in a variable that will define the directory where the properites file exists so that the class can access this? Thanks. __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.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!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: request.getReader() hanging
What happens with CPU usage? And what traces to you get if you kill the httpd daemon? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 12:31 PM To: [EMAIL PROTECTED] Subject: RE: request.getReader() hanging i've tried sending modifying the data sent, but the behaviour stays the same, it does seem to send the request headers through, but only as demonstrated by including the following snippet before calling request.getReader() == Enumeration enum = request.getHeaderNames(); System.out.println(Content-Length = +request.getContentLength()); while(enum.hasMoreElements()){ String header = (String)enum.nextElement(); System.out.println(RequestHeader: + header+ = +request.getHeader(header)); } That prints out all the headers, but as soon as it gets to the reader.readLine(), it just hangs Using solaris 7 btw ps - catalina.out shows the following info when ajp13 responds alright === [Ajp13] receive: total read = 230 [Ajp13] Received 2 JK_AJP13_FORWARD_REQUEST [Ajp13] receive() [Ajp13] receive: total read = 6 [Ajp13] send() [Ajp13] send() [Ajp13] send() [Ajp13] recycle() [Ajp13] receiveNextRequest() [Ajp13] receive() == === but when it hangs it only shows this === [Ajp13] receive: total read = 278 [Ajp13] Received 2 JK_AJP13_FORWARD_REQUEST [Ajp13] receive() [Ajp13] receive: total read = 6 [Ajp13] send() [Ajp13] receive() == == -Original Message- From: Rossen Raykov [mailto:[EMAIL PROTECTED]] Sent: 05 June 2002 17:01 To: 'Tomcat Users List' Cc: '[EMAIL PROTECTED]' Subject: RE: request.getReader() hanging The problem is that apj13 does not serve servlets and JSP pages correct also. It hangs making useless communications with mod_jk and uses all the available CPU power. If I kill the corresponding http daemon the following error appears in the log: Ajp13Processor[25181][0] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:496) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Respo nse.java:192) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:435) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495) at java.lang.Thread.run(Thread.java:484) That makes me think that the request header processing is braking if specific data is send (in jakarta-tomcat-connectors-4.0.2-01-src\jk\doc\AJPv13.html there is interesting question at the bottom of the document and it may be the key for this problem). Most probably you have the same problem. I'm about to debug it but unfortunately I can not reproduce it on my system. Is the problem that you are talking about related to any specific data? Shall the data in the quoted example be sufficient to hang the Connector? BW what OS you are using? Regards, Rossen ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ClassCastException OraclePreparedStatement
Connection Pool configuration Context path=/NASApp docBase=NASApp reloadable=true Resource name=jdbc/pool auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/pool parameter nameuser/name valueDES/value /parameter parameter namepassword/name valueDES/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter namedriverName/name valuejdbc:oracle:oci8:MyUser/MyPass@MyDatabase/value /parameter /ResourceParams /Context Server.xml Jar with the driver TOMCAT\common\lib\classes12.jar Get a connection from the Connection Pool // Obtain our environment naming context javax.naming.Context initCtx = new InitialContext(); javax.naming.Context context = (Context) initCtx.lookup(java:comp/env); System.out.println(TRY CONNECT); javax.sql.DataSource ds = (javax.sql.DataSource)context.lookup(jdbc/pool); connection = ds.getConnection(); System.out.println(CONNECTED); Cast the PreparedStatement to OraclePreparedStatement import oracle.jdbc.driver.OraclePreparedStatement; (...) pstat = connection.getJDBCPreparedStatement(query); pstat.setFetchSize(fetchSize); System.out.println( pstat.getClass() + pstat.getClass() ); if(pstat instanceof oracle.jdbc.driver.OraclePreparedStatement) { System.out.println(Yes - STATprepOracle); } else { System.out.println(No - STATprepOracle); if(pstat instanceof oracle.jdbc.driver.OracleStatement) { System.out.println(Yes - STAToracle); } if(pstat instanceof java.sql.Statement) { System.out.println(Yes - STATsql); } if(pstat instanceof java.sql.PreparedStatement) { System.out.println(Yes - STATprepSql); } Class c = pstat.getClass(); System.out.println( c.getName(): + c.getName() ); System.out.println( c.getPackage(): + c.getPackage() ); System.out.println( c.getClassLoader(): + c.getClassLoader() ); } oracle.jdbc.driver.OraclePreparedStatement ostat = null; try { ostat = (oracle.jdbc.driver.OraclePreparedStatement) pstat; } catch (Throwable e) { e.printStackTrace(); } ostat.defineColumnType(CODIGOPERFIL_ROW, Types.VARCHAR); ostat.defineColumnType(TIPOERROCLO_ROW, Types.VARCHAR); Console output TRY CONNECT CONNECTED pstat.getClass()class oracle.jdbc.driver.OraclePreparedStatement No - STATprepOracle Yes - STATsql Yes - STATprepSql c.getName(): oracle.jdbc.driver.OraclePreparedStatement c.getPackage(): package oracle.jdbc.driver c.getClassLoader(): StandardClassLoader available: Extension[javax.mail, implementationVendor=Sun Microsystems, Inc., implementationVendorId=com.sun, implementationVersion=1.2, specificationVendor=Sun Microsystems, Inc., specificationVersion=1.2] delegate: false repositories: file:D:\java\tomcat40\common\classes\ file:D:\java\tomcat40\common\lib\activation.jar file:D:\java\tomcat40\common\lib\classes12.jar file:D:\java\tomcat40\common\lib\crimson.jar file:D:\java\tomcat40\common\lib\jaxp.jar file:D:\java\tomcat40\common\lib\jdbc2_0-stdext.jar file:D:\java\tomcat40\common\lib\jta-spec1_0_1.jar file:D:\java\tomcat40\common\lib\ldap.jar file:D:\java\tomcat40\common\lib\mail.jar file:D:\java\tomcat40\common\lib\naming-common.jar file:D:\java\tomcat40\common\lib\naming-resources.jar file:D:\java\tomcat40\common\lib\servlet.jar file:D:\java\tomcat40\common\lib\tyrex-0.9.7.0.jar required: -- Parent Classloader: sun.misc.Launcher$AppClassLoader@71732b java.lang.ClassCastException: oracle.jdbc.driver.OraclePreparedStatement (...) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at
Tomcat LE question
Will the full version of Tomcat running on JDK 1.4 run slower than the LE version? Carl P. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]