Tomcat for FreeBSD
Tomcat Gurus: Is their a *current* version of Java/Tomcat that been assembled for FreeBSD 5.0? Shawn Zernik Internetwork Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MOD JK NOT SUCESSFUL
Hey: After playing with it for some time, I found the following VERY useful (http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html). It's probably a run of the mill solution, but I'm not complaining for development perposes. I followed these directions and am using Tomcat throug socks, not JNI. That means tomcat needs to be running, and your workers2.properties would look something like this: = [logger] level=DEBUG [config:] file=c:/Apache2/conf/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=c:/apache2/logs/jk2.shm size=1048576 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8009 [status:] info=Status worker, displays runtime informations [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: [uri:/jsp-examples/*] context=/jsp-examples debug=0 [uri:/admin/*] context=/admin debug=0 [uri:/manager/*] context=/manager debug=0 Every thing else should work just as their directions state. I'm using Tomcat5 and Apache2 on XP. If I try to do the JNI method, I run into hords of Java errors that are very discouraging and don't speak for managability of Java: sorry, I'm a little jaded on java right this moment. Maybe when I start programming my oppinion will change. Shawn Zernik Internetwork Consulting www.internetworkconsulting.net -Original Message- From: Suneel [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:08 PM To: Tomcat Users List Subject: MOD JK NOT SUCESSFUL hi i am not able to run Mod JK with apache1.3.29/2.0.48 with Tomcat 4.1.29 on RH 9.0. I have followed John Turners how to and all attempts have failed. The problem is that i am not getting the SO for the version above. There are various links on the net that finally fall to the Jakarta binary list. Which dose not work for my config. i really need to get this working as i have been assigned the reponsibilty to integrate apache and tomcat. Please help regards suneel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0 as JK Mod
Tomcat Guru's: I was wondering where the documentation to install Tomcat as a module in Apache HTTPd? The Project is JK, but when I go to the JK docs, it bringsme to the binary dist. Any URL would be appreciated. Shawn Zernik Internetwork Consulting www.internetworkconsulting.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 with Apache2
) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) My workers2.properties file is as follows: [logger] level=DEBUG [config:] #file=${serverRoot}/conf/workers2.properties file=c:/Apache2/conf/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger #[logger.file:0] #level=DEBUG #file=${serverRoot}/logs/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=${serverRoot}/logs/jk2.shm size=100 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues #logger=logger.file:0 [lb:lb] info=Default load balancer. debug=0 #[lb:lb_1] #info=A second load balancer. #debug=0 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8009 #[channel.socket:localhost:8019] #info=A second tomcat instance. #debug=0 #tomcatId=localhost:8019 #lb_factor=1 #group=lb #group=lb_1 #disabled=0 #[channel.un:/opt/33/work/jk2.socket] #info=A second channel connecting to localhost:8019 via unix socket #tomcatId=localhost:8019 #lb_factor=1 #debug=0 [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [status:] info=Status worker, displays runtime informations [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll #OPT=-Djava.class.path=c:/Tomcat/bin/* #OPT=-Djava.class.path=c:/Tomcat/bin/tomcat-jni.jar;c:/Tomcat/server/lib/com mons-logging.jar #OPT=-Djava.class.path=c:/Tomcat/bin/*;C:/Tomcat/server/lib/*;C:/Tomcat/comm on/lib/*; OPT=-Djava.class.path=C:/Tomcat/bin/tomcat-jni.jar;C:/Tomcat/server/lib/tomc at-jk2.jar;C:/Tomcat/server/lib/commons-logging.jar;C:/Tomcat/common/lib/com mons-collections.jar;C:/Tomcat/common/lib/naming-common.jar;C:/Tomcat/common /lib/naming-resources.jar;C:/Tomcat/server/lib/catalina.jar;C:/Tomcat/server /lib/commons-digester.jar;C:/TomCat/server/lib/commons-beanutils.jar;C:/Tomc at/server/lib/mx4j-jmx.jar;C:/Tomcat/server/lib/commons-modeler.jar;C:/Tomca t/common/lib/servlet.jar;C:/Tomcat/server/lib/tomcat-http11.jar;C:/Tomcat/se rver/lib/servlets-invoker.jar;C:/Tomcat/server/lib/servlets-default.jar;C:/T omcat/server/lib/servlets-webdav.jar;C:/Tomcat/server/lib/servlets-manager.j ar;C:/Tomcat/server/lib/servlets-common.jar;c:/j2sdk/j2sdk1.4.2/lib/tools.ja r;c:/tomcat/bin/BootStrap.jar;c:/tomcat/server/lib/tomcat-util.jar;c:/tomcat /server/lib/tomcat-coyote.jar OPT=-Dtomcat.home=c:\Tomcat OPT=-Dcatalina.home=c:\tomcat OPT=-Xmx128M #OPT=-Djava.compiler=NONE disabled=0 [worker.jni:onStartup] info=Command to be executed by the VM on startup. This one will start tomcat. class=org/apache/jk/apr/TomcatStarter ARG=start disabled=0 stdout=c:/Apache2/logs/stdout.log stderr=c:/Apache2/logs/stderr.log [worker.jni:onShutdown] info=Command to be executed by the VM on shutdown. This one will stop tomcat. class=org/apache/jk/apr/TomcatStarter ARG=stop disabled=0 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: #[uri:127.0.0.1:8003] #info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test it #alias=myVirtualHost:8003 #[uri:127.0.0.1:8003/ex] #info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. localhost:8019 ) #context=/ex #group=lb_1 #[uri:/examples] #info=Example webapp in the default context. #context=/examples #debug=0 #[uri:/examples1/*] #info=A second webapp, this time going to the second tomcat only. #group=lb_1 #debug=0 #[uri:/examples/servlets/*] #info=Prefix mapping #[uri:/examples/*.jsp] #info=Extension mapping #[uri:/examples/*] #info=Map the whole webapp #[uri:/examples/servlets/HelloW] #info=Exampel with debug enabled. #debug=10 [uri:/jsp-examples] context=/jsp-examples debug=0 [uri:/admin] context=/admin debug=0 [uri:/manager] context=/manager debug=0 [uri:/tomcat] context=/tomcat-docs debug=0 The other properties file is verbatum what the documentation says. I just had to uncomment some lines from the exitsting files. Shawn Zernik Internetwork Consulting www.internetworkconsulting.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Q] Tomcat ZoneAlarm?
Riaan: If you are using windows XP you are better off setting the port with the firewall build into XP. To do this go into network, right click the adapter and you should be able to find the fire wall setting there. you can tell it to deny all except... The except is what you would be interested in. Shawn Zernik Internetwork Consulting www.internetworkconsulting.net -Original Message- From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 1:58 PM To: Tomcat Users List Subject: Re: [Q] Tomcat ZoneAlarm? Thanks... I know what a firewall is and what it does. Problem is, with the free version of ZoneAlarm you cannot manually specify ports to allow access on. I know you CAN get it to work, but how I do not know. I need the firewall. It is my home PC on a ADSL connection, permanently connected to the internet. So I use it for basicly everything I do on the internet. --- Philipp Taprogge [EMAIL PROTECTED] wrote: Hi! Riaan Oberholzer wrote: This is not a Tomcat issue, but I've tried desperately and could find no answer elsewhere... can someone please tell me how to get Tomcat working with ZoneAlarm (free version) as firewall? In general, it is very advisable to know what a firewall does and how it works before installing one. In general, ZoneAlarm is a (rather simple) packet filter, i.e. a piece of software that examines network packets as they arrive at or depart from the machine and decides on a set of rules to allow or deny them. If you want a so protected machine to run tomcat and access it from beyond the firewall, you need to add a rule that allows requests from external sources directed at port 80 (or whatever you set your tomcat to listen on) on the local machine and also to allow the responses from tomcat to any external host. If you want to use SSL, you will have to allow those request/response-pairs as well. You should, however concider wether you really need a firewall, if your machine is a pure server that does not serve other purposes. In that case, you should just close all ports you don't need. A closed port is no risk and if the listening software has flaws, a firewall wouldn't protect you either. HTH Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Website Throughput
Is their a program that will report the throuput of a website? Shawn Zernik Internetwork Consulting www.internetworkconsulting.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Website Performance Clocking
TomCat Admins: I am having server performnce issues with my site and was wondering if their is a website perfoance tacking software that when given a URL will request all the files referance in that URL like a web browser and track 1) server responce time, and 2) transfer rate for each file. some thing that is command line driven would be best so I can add it to Windows' scheduler. Shawn Zernik Internetwork Consulting www.internetworkconsulting.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why should i use Tomcat vs .NET?
Linux web servers have a lower cost or ownership - Topcat is a Linux solution with about the same features as ASPX. Shawn Zernik Internetwork Consulting www.internetworkconsulting.net -Original Message- From: Eduardo Vazquez [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 10:48 AM To: [EMAIL PROTECTED] Subject: Why should i use Tomcat vs .NET? I work for a small company which is seriously considering the .NET route moving into the future. My mission if I chose to accept is to sway popular opinion towards Tomcat (Jakarta) for reasons I've yet to summarize because I can't confidently regurgitate any (I'm new to Linux/Tomcat for the most part). Is there anyone who has made this argument yet? Are there anyone have a url with the comparison done already or a list of reasons why .NET isn't optimal versus the other options or on the flip side of that; why tomcat rocks? Any help would be appreciated; I'm not looking forward to becoming even more reliant on one company. Thanks in advance, Eduardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Regarding Tomcat Start
Vishal: go through the batch file (.bat) and add PAUSE followed by and enter after the tomcat or java command to see their responces. Batch filesare just a series of DOS command made to run in order. It has a GOTO statments and enviorment vars for varibles. The %1 %2 %3 represent the first command line argument, the soncond, and the third. It has if statments. Just follow it throug and add some pauses, that'll cuase it to wiat for you to press a key alowing you to see the error messages. The second command prompt window is called through the first batch fil through the CMD command. Look for the CMD or other betch files and add pauses to those files. It's calling another command prompt to free the one you in when Tomcat starts. This second command prompt is probably giving an error like Port already in use or something else. Adding the pause will allow you to see these errors. Shawn Zernik Internetwork Consulting www.internetworkconsulting.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, September 27, 2003 11:54 AM To: Tomcat Users List Subject: Regarding Tomcat Start I have installed jakarta-tomcat-5.0.12. I set jdk and catalina path. I open a command prompt, move to the bin directory of tomcat. I run startup.bat. It opens another prompt that vanishes in seconds. I dont see anything wrong (warning or error message) at original command prompt. I move to localhost in browser. Nothing loads up on browser ! How do i know whether tomcat has really started or not ? (I tried to look at services running, it does not show up there) I tried to see log floder, but it is just empty. I tried to run shutdown bat file. It says, connection not found ! Does it help in answering my question? I am using Windows XP Operating System. Regards ~Vishal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Regarding Tomcat Start
What version of windows are you running, and you might want to at the pause command in the batch file so it6 does not disappear to keep the data from eunning off the screen. Shawn Zernik Internetwork Consulting www.internetworkconsulting.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, September 27, 2003 11:54 AM To: Tomcat Users List Subject: Regarding Tomcat Start I have installed jakarta-tomcat-5.0.12. I set jdk and catalina path. I open a command prompt, move to the bin directory of tomcat. I run startup.bat. It opens another prompt that vanishes in seconds. I dont see anything wrong (warning or error message) at original command prompt. I move to localhost in browser. Nothing loads up on browser ! How do i know whether tomcat has really started or not ? (I tried to look at services running, it does not show up there) I tried to see log floder, but it is just empty. I tried to run shutdown bat file. It says, connection not found ! Does it help in answering my question? I am using Windows XP Operating System. Regards ~Vishal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Simple question about JSP page
you should post you tag code of the code for that page. It can either be a problem with your tag, or the connection pooling. Try stopping and restarting the app in the manager and see if that makes the updates take affect. If so, the issues is with re-use of objects and possible connection pooling. Shawn Zernik Internetwork Consulting www.internetworkconsulting.net -Original Message- From: engp0510 [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 9:31 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Simple question about JSP page Hi, Maybe it's a stupid question. Built jsps for addingsearching with MySQL. First listing all existing records in db and then adding a new one into database, then listing all records again. Now the list is the same as previous. How to solve it? THX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java/JSP vs C#/.NET
Lance: 100% Multi-Platform Support: Microsoft doesn't have it. Shawn Zernik Internetwork Consulting www.internetworkconsulting.net -Original Message- From: Xingqun Jiang [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 4:57 PM To: Tomcat Users List Subject: Java/JSP vs C#/.NET Hi, I am a pure java supporter. I don't like C# or .Net because of Microsoft's monopolization (sorry, kind of prejudice). However, I notice that more and more people pick up C#/.NET due to their new advantages. I also heard that C# is much faster than Java. My concern is, can Java/JSP still be competitive to Microsoft's products? I don't like to see java be beaten by Microsoft since it borrowed so many ideas from java to make up the so-called C#. ok, feel free to talk about this topic. Lance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: E-Mail to CompuServe Customer Service
Someone needs to cancel this Compuserve email address. Shawn Zernik Internetwork Consulting www.internetworkconsulting.net -Original Message- From: CompuServe Customer Service [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 11:15 AM To: Tomcat Users List Subject: E-Mail to CompuServe Customer Service Thank you for your e-mail message to CompuServe Customer Service. In order to improve our service to members, the general account 70006,101 ([EMAIL PROTECTED]) has now been replaced with new mailboxes dedicated to each country/region. Please re-send your message to one of the following e-mail addresses and a local CompuServe Representative will respond to you via e-mail: United States and Canada: Technical Support - [EMAIL PROTECTED] General Support - [EMAIL PROTECTED] Business Account Support - [EMAIL PROTECTED] United Kingdom: Technical Support - [EMAIL PROTECTED] General Support - [EMAIL PROTECTED] Business Account Support - [EMAIL PROTECTED] Germany and Austria: Technische Mitgliederbetreuung - [EMAIL PROTECTED] Allgemeine Fragen - [EMAIL PROTECTED] Fragen zur Abrechnung - [EMAIL PROTECTED] Firmenkundenbetreuung - [EMAIL PROTECTED] France: Assistance Technique - [EMAIL PROTECTED] Assistance Technique Mac - [EMAIL PROTECTED] Gestion de votre Compte Personnel - [EMAIL PROTECTED] Gestion de votre Compte Société - [EMAIL PROTECTED] Netherlands: Technical Support - [EMAIL PROTECTED] General Support - [EMAIL PROTECTED] Business Account Support - [EMAIL PROTECTED] Switzerland: Fragen zur Abrechnung (billing-issues) - [EMAIL PROTECTED] Allgemeine Anfragen (general demands) - [EMAIL PROTECTED] Technische Mitgliederbetreuung (technical support) - [EMAIL PROTECTED] Firmenkundenbetreuung (CBA-issues) - [EMAIL PROTECTED] All other European Countries: Technical Support - [EMAIL PROTECTED] General Support - [EMAIL PROTECTED] Business Account Support - [EMAIL PROTECTED] Japan - CompuServe/NIFTYServe: General Support - [EMAIL PROTECTED] Australia/Pacific: General Support - [EMAIL PROTECTED] Mexico: General Support - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Processing .html files like JSPs
It should have some setting in your web.xml to configure you context: exact syntax, I'm unsure. Look for context documentation. Shawn Zernik Internetwork Consulting www.internetworkconsulting.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 11:09 AM To: [EMAIL PROTECTED] Subject: Processing .html files like JSPs In the app I'm working on there's a number JSP files that actually have the extension .html. Is there a way to configure Tomcat to treat these files just as if they had the standard .jsp extension, or do I need to rely on Apache rewrite rules? I'm using Tomcat 4.1.27 on Linux. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Custom Tag Lib
Mike: Thanks so very much... I saw their is a config option in the Jasper to turn off tag pooling. do you thing that would work too, of shouldI impliment it in my source code. I'm gonna take a look at it right now. Shawn -Original Message- From: Mike Cherichetti (Renegade Internet) [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 10:28 PM To: Tomcat Users List Subject: RE: Custom Tag Lib Shawn, I ran into this problem as well when switching from 4.0 to 4.1. I think it has something to do with 4.1 pooling and re-using tag objects. What I did in all of my doStartTag(), doAfterBody(), etc... methods was manually call release() to reset the data in the tags like so: public int doStartTag() throws JspException { try { ... } catch (Exception exception) { throw new JspException(exception); } finally { release(); } return SKIP_BODY; } Have a nice day ... Sincerely, Mike Cherichetti Renegade Internet Internet Advertising Delivery Solutions www.renegadeinternet.com Phone (724) 658-6346 Fax (724) 658-6346 -Original Message- From: Shawn Zernik [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 10:56 PM To: [EMAIL PROTECTED] Subject: Custom Tag Lib Tomcat Users: I've been fighting with some version differences in tom cat wondering why my app acts severly different on Tomcat 4.1.27 then 4.0.6. It appears that 4.1.27 is not working from my perspective, and have been fighting with it since monday. None of the books I have touch this subject or ellude to the problem, and I've seached high and low for solutions. I'm having a problem working with my custom tag library. The stange part to this is it appears to work on tomcat 4.0.6 but not on 4.1.27. The library has a tage called site that extends a base tag, and those tags use other classes in my data namespace to hit a database. The tags are returning the proper data in both versions, but in 4.1.27, I have to reload the contect in the manager for it to register the changes from the database. I have added some printlns to std out to track what's going on. In tomcat 4.0.6 they are going through all the code as I would exspect it to. I have included each of the class files that are called. I have also included the printouts from both versions of tomcat to clierify how each version is handling the calls. The object hiarchey goes as follows: jPublish.Tags site extends inc_tag. jPublish.Data.site_manager extends jPublish.Data.manager, managers contain, load, and fill datas. jPublish.Data.site_data extends jPublish.Data.data, used for storing data and tracking updates. --- INDEX.JSP --- %@ page contentType=text/html % %@ taglib prefix=inc uri=inc % inc:site site=1 action=none/ html headtitleinc:site action=title //title/head body h1Welcome to inc:site action=title/!/h1 copy; inc:site action=copyright/ /body /html --- TOMCAT 4.0.6 STDOUT --- Starting service Tomcat-Standalone Apache Tomcat/4.0.6 Starting service Tomcat-Apache Apache Tomcat/4.0.6 jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.setSite() jPublish.Data.manager() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Internetwork Consulting jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Internetwork Consulting jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Shawn jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.setSite() jPublish.Data.manager() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Internetwork Consulting
RE: Custom Tag Lib
Mr. Mezick: From what I'm gathering, the release should not be implimented to reset the data and classes used by a tag, but only for things like closing files and db connections? Just to make sure I'm thinking about this properly, the doStartTag should be treated like the constructor: make sure my data is setup properly there. The doEndTag should be used for normal completion without errors. Does Tomcat impliment object pooling beyon the tags? Are my supporting classes for the tag pooled? Thanks to all who have helped me. Shawn -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 8:06 AM To: Tomcat Users List Subject: RE: Custom Tag Lib It would be best if you went a rewrote your tags not to require release to be called. That change will also bring you in-line with the jsp spec. These links might help: http://www.onjava.com/lpt/a/1248 http://www.onjava.com/lpt/a/1250 http://jakarta.apache.org/taglibs/guidelines.html -Original Message- From: Shawn Zernik [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 11:41 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Custom Tag Lib Mike: Thanks so very much... I saw their is a config option in the Jasper to turn off tag pooling. do you thing that would work too, of shouldI impliment it in my source code. I'm gonna take a look at it right now. Shawn -Original Message- From: Mike Cherichetti (Renegade Internet) [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 10:28 PM To: Tomcat Users List Subject: RE: Custom Tag Lib Shawn, I ran into this problem as well when switching from 4.0 to 4.1. I think it has something to do with 4.1 pooling and re-using tag objects. What I did in all of my doStartTag(), doAfterBody(), etc... methods was manually call release() to reset the data in the tags like so: public int doStartTag() throws JspException { try { ... } catch (Exception exception) { throw new JspException(exception); } finally { release(); } return SKIP_BODY; } Have a nice day ... Sincerely, Mike Cherichetti Renegade Internet Internet Advertising Delivery Solutions www.renegadeinternet.com Phone (724) 658-6346 Fax (724) 658-6346 -Original Message- From: Shawn Zernik [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 10:56 PM To: [EMAIL PROTECTED] Subject: Custom Tag Lib Tomcat Users: I've been fighting with some version differences in tom cat wondering why my app acts severly different on Tomcat 4.1.27 then 4.0.6. It appears that 4.1.27 is not working from my perspective, and have been fighting with it since monday. None of the books I have touch this subject or ellude to the problem, and I've seached high and low for solutions. I'm having a problem working with my custom tag library. The stange part to this is it appears to work on tomcat 4.0.6 but not on 4.1.27. The library has a tage called site that extends a base tag, and those tags use other classes in my data namespace to hit a database. The tags are returning the proper data in both versions, but in 4.1.27, I have to reload the contect in the manager for it to register the changes from the database. I have added some printlns to std out to track what's going on. In tomcat 4.0.6 they are going through all the code as I would exspect it to. I have included each of the class files that are called. I have also included the printouts from both versions of tomcat to clierify how each version is handling the calls. The object hiarchey goes as follows: jPublish.Tags site extends inc_tag. jPublish.Data.site_manager extends jPublish.Data.manager, managers contain, load, and fill datas. jPublish.Data.site_data extends jPublish.Data.data, used for storing data and tracking updates. --- INDEX.JSP --- %@ page contentType=text/html % %@ taglib prefix=inc uri=inc % inc:site site=1 action=none/ html headtitleinc:site action=title //title/head body h1Welcome to inc:site action=title/!/h1 copy; inc:site action=copyright/ /body /html --- TOMCAT 4.0.6 STDOUT --- Starting service Tomcat-Standalone Apache Tomcat/4.0.6 Starting service Tomcat-Apache Apache Tomcat/4.0.6 jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.setSite() jPublish.Data.manager() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Internetwork Consulting jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site
NetBeans Debug in JSP Tag Files
Tomcat-Users: I have the tag lib working. Thanks again. I was wondering if anyone could point me to a good tutorial on how to use NetBeans with Tomcat that's running. I can configure tomcat to allow debug connections and connect using NetBeans, but once I'm online with the server how do I trace through a JSP page? Shawn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Custom Tag Lib
Tomcat Users: I've been fighting with some version differences in tom cat wondering why my app acts severly different on Tomcat 4.1.27 then 4.0.6. It appears that 4.1.27 is not working from my perspective, and have been fighting with it since monday. None of the books I have touch this subject or ellude to the problem, and I've seached high and low for solutions. I'm having a problem working with my custom tag library. The stange part to this is it appears to work on tomcat 4.0.6 but not on 4.1.27. The library has a tage called site that extends a base tag, and those tags use other classes in my data namespace to hit a database. The tags are returning the proper data in both versions, but in 4.1.27, I have to reload the contect in the manager for it to register the changes from the database. I have added some printlns to std out to track what's going on. In tomcat 4.0.6 they are going through all the code as I would exspect it to. I have included each of the class files that are called. I have also included the printouts from both versions of tomcat to clierify how each version is handling the calls. The object hiarchey goes as follows: jPublish.Tags site extends inc_tag. jPublish.Data.site_manager extends jPublish.Data.manager, managers contain, load, and fill datas. jPublish.Data.site_data extends jPublish.Data.data, used for storing data and tracking updates. --- INDEX.JSP --- %@ page contentType=text/html % %@ taglib prefix=inc uri=inc % inc:site site=1 action=none/ html headtitleinc:site action=title //title/head body h1Welcome to inc:site action=title/!/h1 copy; inc:site action=copyright/ /body /html --- TOMCAT 4.0.6 STDOUT --- Starting service Tomcat-Standalone Apache Tomcat/4.0.6 Starting service Tomcat-Apache Apache Tomcat/4.0.6 jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.setSite() jPublish.Data.manager() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Internetwork Consulting jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Internetwork Consulting jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Shawn jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.setSite() jPublish.Data.manager() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Internetwork Consulting jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Internetwork Consulting jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() INC jPublish.Tags.site.doEndTag(): End --- TOMCAT 4.1.27 STDOUT: db INC then Shawn --- jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.setSite() jPublish.Data.manager() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok
RE: Custom Tag Lib
Mike: I can't resolve that problem. can I impliment those tags as simple tags: the JSP spec says that they will not be cached or reused. Shawn -Original Message- From: Mike Cherichetti (Renegade Internet) [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 10:59 PM To: Tomcat Users List Subject: RE: Custom Tag Lib Hi Shawn, Actually, I wasn't aware that there was an option to disable it. When I figured out what was happening, I went ahead and handled it in my code. No telling how other application servers might handle it. If you're only going to be deploying on Tomcat, disabling pooling would probably save you some time, but you still might want to handle it in your code to get better performance. Mike -Original Message- From: Shawn Zernik [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 11:41 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Custom Tag Lib Mike: Thanks so very much... I saw their is a config option in the Jasper to turn off tag pooling. do you thing that would work too, of shouldI impliment it in my source code. I'm gonna take a look at it right now. Shawn -Original Message- From: Mike Cherichetti (Renegade Internet) [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 10:28 PM To: Tomcat Users List Subject: RE: Custom Tag Lib Shawn, I ran into this problem as well when switching from 4.0 to 4.1. I think it has something to do with 4.1 pooling and re-using tag objects. What I did in all of my doStartTag(), doAfterBody(), etc... methods was manually call release() to reset the data in the tags like so: public int doStartTag() throws JspException { try { ... } catch (Exception exception) { throw new JspException(exception); } finally { release(); } return SKIP_BODY; } Have a nice day ... Sincerely, Mike Cherichetti Renegade Internet Internet Advertising Delivery Solutions www.renegadeinternet.com Phone (724) 658-6346 Fax (724) 658-6346 -Original Message- From: Shawn Zernik [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 10:56 PM To: [EMAIL PROTECTED] Subject: Custom Tag Lib Tomcat Users: I've been fighting with some version differences in tom cat wondering why my app acts severly different on Tomcat 4.1.27 then 4.0.6. It appears that 4.1.27 is not working from my perspective, and have been fighting with it since monday. None of the books I have touch this subject or ellude to the problem, and I've seached high and low for solutions. I'm having a problem working with my custom tag library. The stange part to this is it appears to work on tomcat 4.0.6 but not on 4.1.27. The library has a tage called site that extends a base tag, and those tags use other classes in my data namespace to hit a database. The tags are returning the proper data in both versions, but in 4.1.27, I have to reload the contect in the manager for it to register the changes from the database. I have added some printlns to std out to track what's going on. In tomcat 4.0.6 they are going through all the code as I would exspect it to. I have included each of the class files that are called. I have also included the printouts from both versions of tomcat to clierify how each version is handling the calls. The object hiarchey goes as follows: jPublish.Tags site extends inc_tag. jPublish.Data.site_manager extends jPublish.Data.manager, managers contain, load, and fill datas. jPublish.Data.site_data extends jPublish.Data.data, used for storing data and tracking updates. --- INDEX.JSP --- %@ page contentType=text/html % %@ taglib prefix=inc uri=inc % inc:site site=1 action=none/ html headtitleinc:site action=title //title/head body h1Welcome to inc:site action=title/!/h1 copy; inc:site action=copyright/ /body /html --- TOMCAT 4.0.6 STDOUT --- Starting service Tomcat-Standalone Apache Tomcat/4.0.6 Starting service Tomcat-Apache Apache Tomcat/4.0.6 jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.setSite() jPublish.Data.manager() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Internetwork Consulting jPublish.Tags.site.doEndTag(): End jPublish.Data.manager() jPublish.Tags.site() jPublish.Tags.site.doEndTag(): Begin jPublish.Tags.inc_tag.loaded() jPublish.Tags.inc_tag.loaded(): not instance jPublish.Data.manager.load() jPublish.Tags.inc_tag.loaded(): load ok jPublish.Tags.inc_tag.loaded(): next ok jPublish.Tags.inc_tag.loaded(): reached fill. jPublish.Tags.site.loaded() Internetwork Consulting jPublish.Tags.site.doEndTag(): End jPublish.Data.manager
RE: security hole on windows tomcat?
Mr. Sundling: i'm running tomcat 4.1.27 and that does not appear to be an issue. I used http://localhost:8080/jweb/left.jsp%20; as my url. -Original Message- From: Spam Email [mailto:[EMAIL PROTECTED] Sent: Sunday, August 10, 2003 4:18 PM To: [EMAIL PROTECTED] Subject: security hole on windows tomcat? I came across what appears to be a security hole when running tomcat. I'm not sure how widespread it is, but my linux server is safe, yet my windows XP, tomcat 4.1.24 is vulnerable. I found that if you append %20 to a jsp page it shows the source code instead of displaying the page: http://192.168.1.54:8080/index.jsp shows page as expected http://192.168.1.54:8080/index.jsp%20 shows source code of index.jsp So how widespread is this? Paul Sundling - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NetBeans Debug in JSP Tag Files
Here's the files... They set it up but dont tell you how to use it. It at the botton of the page. http://jakarta.apache.org/site/idedevelopers.html -Original Message- From: Carlos Cajina - Hotmail [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 5:19 PM To: Tomcat Users List Subject: Re: NetBeans Debug in JSP Tag Files Hi Shawn... Do you happen to have a How-To somewhere about integrating Netbeans Tomcat? :-) I don't want to use Netbeans' internal Tomcat server and I've been struggling a little to use both together... Regards, Carlos *** Oh, about your question, there's information at http://developers.sun.com/tools/javatools/tips/tip02-05-17.html that I think might be useful to you even if it's related to Forte for Java/Sun ONE Studio (you might also want to check out the viewlet)... - Original Message - From: Shawn Zernik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 08, 2003 12:40 PM Subject: NetBeans Debug in JSP Tag Files Tomcat-Users: I have the tag lib working. Thanks again. I was wondering if anyone could point me to a good tutorial on how to use NetBeans with Tomcat that's running. I can configure tomcat to allow debug connections and connect using NetBeans, but once I'm online with the server how do I trace through a JSP page? Shawn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I get an answer please -- Re: Why integrate Tomcat with a web server?
It actually makes since. Most web servers are in native code which is uasually faster, and tomcat is in java. -Original Message- From: Rick Roberts [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 10:38 AM To: Tomcat Users List Subject: Re: Can I get an answer please -- Re: Why integrate Tomcat with a web server? Of course not. I'm only regergitating stuff I have read. But I have seen it from several different sources, so I took it as truth. Do you have benchmarks to prove otherwise? -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * * http://www.ait-web.com * *** Shapira, Yoav wrote: Howdy, Because a web server serves static content (html, images, etc.) much faster than tomcat will. Really? Do you have a benchmark using tomcat 4.1.x that supports the above? Yoav Shapira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]