RE: tomcat manager login problem
Your tomcat-users.xml under conf directory should look something like this tomcat-users . . . role rolename=manager/ role rolename=admin/ user username=xyz password=xyz roles=manager,admin/ . . . /tomcat-users --- PATTUS Jean-Philippe [EMAIL PROTECTED] wrote: what is the associate role to your user tomcat? check this role , the login must have the manager role. -Message d'origine- De : U A [mailto:[EMAIL PROTECTED] Envoyé : lundi 5 juillet 2004 16:34 À : [EMAIL PROTECTED] Objet : tomcat manager login problem Hello, I had installed Tomcat 5.0.19 with Apache2 on my SuSE 9.1 OS. I want to manage from tomcat administration tool. I had taken from /etc/tomcat/base/tomcat-users.xml file for login information. Login informations are tomcat. It denied when I entered from http://localhost:8080/manager/html page. Error gives as HTTP Status 403 - Access to the requested resource has been denied. Have any suggestions for login to manager tool! thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Interscan -- (on antivirus) email-body was scanned and no virus found - Traite Par Interscan -- (on antivirus)-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.29 inits my web-app several times
AS I have updated my config.xml from AS - AS Host name=ci...ru debug=0 appBase=webapps AS unpackWARs=true autoDeploy=true AS Context path= docBase=ci debug=1 reloadable=true AS - AS to AS --- AS Host name=ci...ru debug=0 appBase=webapps AS unpackWARs=true autoDeploy=false AS Context path= docBase=ci debug=1 reloadable=false AS --- AS but this did not help. addition: I see that Tomcat inits my app only twice if I change the config like this: Host name=ci...ru debug=0 appBase=webapps/ci unpackWARs=true autoDeploy=false Context path= docBase=. debug=1 reloadable=false it looks like the problem is because of my virtual hosts: every web-app is inited when a virtual host is loaded (all my web-applications are in folder webapps) -- Best regards, Alexeymailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: important document_all
Your document. Norton AntiVirus eliminato1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I've officially decided that JSTL is one of the worst things to ever happen to mankind
Ivan Jouikov wrote, On 7/4/2004 1:04 PM: 1. JSTL and EL are inefficient. Tests on similar pages clearly showed that. (compare - ${name} with %=name%, run in a loop 1 times, you-?ll see the difference) Sure it will be slower, it is really java classes under the hood trying to hide complexity of scriptlet code. Is that a bad thing? Not really, helper classes a great, we create them to handle business logic, why not more for view components. The latest hardware is getting less expensive so I do not feel this argument holds (especially with the new 64 bit processers and DDR memory). You don't feel this argument holds? When you have a poor little tomcat running 100 different web applications with 10,000 clicks/day on each, it DOES become an issue. Your choice: get a new server, OR replace all the ${} with %=%. I've been faced with similar situation many times, and trust me, it drives you nuts. Heh, I was recently faced with a similar decision. One page coded with scriptlets and a few nested for loops was replaced with JSTL and c:forEach/, unfortunately CPU utilization and page response times went up about 10x, from .5 seconds to 5+ seconds which is unacceptable. Took me a while to figure out why the page had started responding slowly. Then I replaced JSTL tags with scriptlets with timers around the loops and watched page load times go down significantly. I would like to use JSTL as I do find it a lot easier to read than scriptlets, but in this case the performance hit was unbearable. Maybe when I can get the go-ahead for some faster hardware the performance hit will be negligible. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5, web.xml, where should it be located?
you'll have to edit the existing web.xml file (or ceate a new one) in ROOT/WEB-INF directory. Thanks for that. Finding documentation on the file contents is not exactly easy. Nice to know where it should be though :-) regards DaveP ** snip here ** -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat manager login problem
I had installed Tomcat 5.0.19 with Apache2 on my SuSE 9.1 OS. I want to manage from tomcat administration tool. I had taken from /etc/tomcat/base/tomcat-users.xml file for login information. Login informations are tomcat. It denied when I entered from http://localhost:8080/manager/html page. Error gives as HTTP Status 403 - Access to the requested resource has been denied. I pondered over this. Open ${catalina.home}/conf/server.xml and modify as per http://www.coreservlets.com/Apache-Tomcat-Tutorial/#Enable-Root-Context Uncomment the MemoryRealm realm, to allow local passwords. A Realm is a database of usernames and passwords that identify valid users of a web application !-- Comment out the old realm but leave here for now in case we need to go back quickly -- !-- DP Uncommented -- Realm className=org.apache.catalina.realm.MemoryRealm / or see http://localhost/tomcat-docs/realm-howto.html#JDBCRealm if you want to use mysql to hold passwords. Seems omitted from the documentation (directly), but I was puzzled by it. HTH DaveP -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hello
Message sent from [EMAIL PROTECTED] infected by virus and has not been delivered. Viruses: infected with Win32.HLLM.Netsky.35328 Original message was stored in the archive. To receive original message please contact postmaster: [EMAIL PROTECTED] Archive record: archive.msg.KSybon Antivirus service provided by Dr.Web Daemon (www.sald.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mime-mapping and charset
In web.xml I defined a mime-mapping: mime-mapping extensionsram/extension mime-typeapplication/x-pn-realaudio/mime-type /mime-mapping Why do I receive in my response Content-Type: application/x-pn-realaudio;charset=ISO-8859-1 I think this charset is confusing most applications. For an XML (test.xml) goes something similar: Content-Type: text/xml;charset=ISO-8859-1 Which doesn't make sense either because XML's are byte-streams. (The charset is specified in the ?xml ? header, and should default to UTF-8 IIRC, so two conflicting charset specs are present in this way) I use tomcat 5.0.25. Several bugs similar to this were reported like 25162, but these are 'resolved', so I wonder what's going on here. Michiel -- Michiel Meeuwissen Mediacentrum 140 H'sum +31 (0)35 6772979 nl_NL eo_XX en_US mihxil' [] () - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
scripts for Workers
Hi ! I'm looking for scripts that work like startup.sh and shutdown.sh but with multi tomcat targets (workers). those scripts are for linux. Thanks, Arnaud - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tc 5.019, web app deployment location?
I'm confused over terminology. The 'root' application seems to reside at ${catalina.home}/webapps/ROOT Logically then (with a tree analogy) other web apps would reside within that directory? Some of the documentation seems to imply they should be in ${catalina.home}/webapps/myapp, for instance. I.e. all reside directly beneath ${catalina.home}/webapps/ If there are alternatives, where is it specified please? From //tomcat-docs/config/host.html#Automatic%20Application%20Deployment Any XML file in the $CATALINA_HOME/conf/[engine_name]/[host_name] directory is assumed to contain a Context element (and its associated subelements) for a single web application. The docBase attribute of this Context element will typically be the absolute pathname to a web application directory, or the absolute pathname of a web application archive (WAR) file (which will not be expanded). Which implies that *where* they should be is quite flexible, but I'm unsure? Regards DaveP. snip here * -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: LDAP - newbee help
Thank you very much, that helped a lot. I have it working and authenticating correctly. Appreciate your help. A tool to look at your Active Directory setup is very useful to setting this stuff up. I used ldp and it worked great in telling me what to fill in. Thanks again. kal -Original Message- From: Ross Rankin [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 12:23 PM To: Kal Govindu; 'Tomcat Users List (E-mail)' Subject: RE: LDAP - newbee help To authenticate users you will need an account / password that has read privileges and a base DN. You will need to configure Tomcat with that info in the server.xml. So you will need to ask for an account that has access to the group you will to authenticate from and the user needs to be a member. Here's a good idea of what need to be configured: Realm className=org.apache.catalina.realm.JNDIRealm connectionURL=ldap://[Windows 2000 Domain Controller]:389 userBase=CN=Users,dc=[domain name],dc=com userSearch=(userPrincipalName={0}) userRoleName=member roleBase=CN=Users,dc=[domain name],dc=com roleName=cn roleSearch=(member={0}) connectionName=CN=[jndi account username],CN=Users,DC=[domain name],DC=com connectionPassword=[jndi account password] roleSubtree=true userSubtree=true / Replace [Windows 2000 Domain Controller] with the name of one of your domain controller Replace [domain name] with the name of your network domain. If you aren't sure about what your domain name is, open up ADSI edit, choose the defaults, and look at what it says next to the Domain NC icon. Replace [jndi account username] with the name of the user you requested Replace [jndi account password] with the password of user you requested -Original Message- From: Kal Govindu [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 8:50 AM To: Tomcat Users List (E-mail) Subject: RE: LDAP - newbee help Thank you for clearing that up. I will take a look at that document. I have made a connection to the Active Directory, but am not able to authenticate users yet, probably since I don't know details about how user or members and their corresponding role information is store in our Directory Server. I will need to contact the tech guys for that. In Microsoft Active Directory terms, where is this information stored? and what is called? so I can ask the right questions. Thanks Kal -Original Message- From: Ross Rankin [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 2:09 PM To: Kal Govindu; 'Tomcat Users List (E-mail)' Subject: RE: LDAP - newbee help LDAP, Lightweight Directory Access Protocol, is a protocol that other programs use to look up contact information from a server, such as Microsoft Active Directory. It is a service provided by a server, not a server. An LDAP server is a server that provides LDAP services... The Microsft AD service is LDAP-compatible. http://www.microsoft.com/windowsserver2003/techinfo/overview/ldapcomp.mspx Ross -Original Message- From: Kal Govindu [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 1:51 PM To: Tomcat Users List (E-mail) Subject: LDAP - newbee help Hello all, I am trying to setup tomcat 5 to authenticate against Microsoft Directory Server through LDAP. I have found a very detailed document for tomcat 5 and JNDI realm. One question before I go any further: Is LDAP server a server that needs to be started separately from directory server? If so, where can I get that? Thanks Kal CONFIDENTIALITY NOTE: All e-mail sent to or from this address will be received by the Waterfield Group corporate e-mail system and is subject to archival, monitoring, and/or review by someone other than the recipient or the sender. This e-mail and any of its attachments may contain proprietary information, which is privileged and confidential. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tc 5.019, web app deployment location?
Hi David, I wrote a tutorial on Tomcat here : http://cymulacrum.net/writings/tomcat5/book1.html Hope this helps. Regards, pascal chong [EMAIL PROTECTED] wrote: I'm confused over terminology. The 'root' application seems to reside at ${catalina.home}/webapps/ROOT Logically then (with a tree analogy) other web apps would reside within that directory? Some of the documentation seems to imply they should be in ${catalina.home}/webapps/myapp, for instance. I.e. all reside directly beneath ${catalina.home}/webapps/ If there are alternatives, where is it specified please? From //tomcat-docs/config/host.html#Automatic%20Application%20Deployment Any XML file in the $CATALINA_HOME/conf/[engine_name]/[host_name] directory is assumed to contain a Context element (and its associated subelements) for a single web application. The docBase attribute of this Context element will typically be the absolute pathname to a web application directory, or the absolute pathname of a web application archive (WAR) file (which will not be expanded). Which implies that *where* they should be is quite flexible, but I'm unsure? Regards DaveP. snip here * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Create new Tomcat User mailing lists?
Is there any chance that the Tomcat User mailing list maintainers might split the Tomcat User mailing list into multiple lists by topic? This would classify and partition the mailing list traffic and would allow a user to subscribe to the topic(s) that interest him or her and ignore those that don't. As the Tomcat User mailing list traffic grows, I find it increasingly difficult to sift through the daily messages for those that I want to read. I'm also receiving a lot more mail from this list (and other popular lists like Subversion User), much of it that I ignore because I don't have the time to read it. Multiple mailing lists would help alleviate these problems. Suggested mailing list topics: Installation and Configuration Performance, Optimization, and Maintenance Tomcat 3 Issues Tomcat 4 Issues Tomcat 5 Issues Tomcat and Apache Tomcat and Internet Information Server (IIS) Tomcat and JSP/Servlets Tomcat on Linux or Unix Tomcat on Windows What do you think? Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tc 5.019, web app deployment location?
Replying to myself: Server Configuration Reference states When using automatic deployment, the docBase defined by an XML Context file should be outside of the appBase directory. If this is not the case difficulties may be experienced deploying the web application or the application may be deployed twice. This would imply that it is 'normal' to deploy web apps at other than catalina.home/webapps/appname. Even more confused. regards DaveP I'm confused over terminology. The 'root' application seems to reside at ${catalina.home}/webapps/ROOT Logically then (with a tree analogy) other web apps would reside within that directory? Some of the documentation seems to imply they should be in ${catalina.home}/webapps/myapp, for instance. I.e. all reside directly beneath ${catalina.home}/webapps/ If there are alternatives, where is it specified please? From //tomcat-docs/config/host.html#Automatic%20Application%20Deployment Any XML file in the $CATALINA_HOME/conf/[engine_name]/[host_name] directory is assumed to contain a Context element (and its associated subelements) for a single web application. The docBase attribute of this Context element will typically be the absolute pathname to a web application directory, or the absolute pathname of a web application archive (WAR) file (which will not be expanded). Which implies that *where* they should be is quite flexible, but I'm unsure? Regards DaveP. snip here * -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache2 crashes when using connectors - nobody?
Hi David, thanks for your reply. Someone might be able to help if you would be so kind as to provide more information like relevant parts of your Apache config ---8---8-- IfModule mod_jk.c JkWorkersFile /opt/jakarta/tomcat/conf/workers.properties JkLogFile /opt/jakarta/tomcat/logs/mod_jk.log # Log level to be used by mod_jk JkLogLevel debug #JkLogLevel error # The following line makes apache aware of the location of # the /examples context Alias /examples /opt/jakarta/webapps/examples Directory /opt/jakarta/webapps/examples Options Indexes FollowSymLinks allow from all /Directory # The following line mounts all JSP files and the /servlet/ uri to tomcat JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 # The following line prohibits users from directly accessing WEB-INF Location /examples/WEB-INF/ AllowOverride None deny from all /Location /IfModule ---8---8-- and the workers.properties file. ---8---8-- # Define some properties workers.apache_log=/var/log/apache2/ workers.tomcat_home=/opt/jakarta/ #workers.java_home=/opt/IBMJava2-131/ ps=/ # Define 1 worker worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 ---8---8-- Also was the mod_jk connector package you installed built for this version of Apache? Hm, I think so. I tried: apache2-jakarta-tomcat-connectors-4.1.27-63.i586.rpm apache2-jakarta-tomcat-connectors-4.1.27.tgz and http://www.apache.de/dist/jakarta/tomcat-connectors/jk2/binaries/linux/Suse-9.0-i386.tar.gz Thank you for any help! Andy. -- o _ _ _ --- __o __o /\_ _ \\o (_)\__/o (_) -o) - _`\,__`\,__(_) (_)/_\_| \ _|/' \/ /\\ (_)/ (_) (_)/ (_) (_)(_) (_)(_)' _\o__\_v Do not marry a person that you know that you can live with; only marry someone that you cannot live without.(Unknown) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: howto disable webdav extensions / methods?
Anyone have any thoughts on this? Maybe I'll try posting on the developer list, for the life of me, I can't seem to find where to shut this off. _ From: Patrick Glennon Sent: Thursday, July 01, 2004 4:52 PM To: 'Tomcat Users List' Subject: howto disable webdav extensions / methods? How do I disable the webdav extensions? Basically, I don't want to allow any of the webdav methods ( PROPFIND, OPTIONS, COPY, DELETE, etc... ), but I cannot find where to disable or limit them. This is running tomcat direct, I know how to do it with Apache, I just don't know how to do it with tomcat. Thanks in advance, -P
Re: tomcat 5, web.xml, where should it be located?
On Tue, Jul 06, 2004 at 08:10:55AM +0100, [EMAIL PROTECTED] wrote: : Finding documentation on the file contents : is not exactly easy. Try the servlet spec -- you can download it from http://java.sun.com -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ant problem compiling tomcat 5.0.25
Hopefully an easy question: I'm trying to compile tomcat using ant, which has worked fine a number of times before under RedHat Ent WS on other machines. Now I'm trying the same under the current Fedora, and ant chokes with: Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher Maybe I'm not looking in the right place, but I can't find anything in the archives on this. Only thing different about this machine is that it's got less RAM (128MB) than the others. Thanks in advance! rj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tc 5.019, web app deployment location?
From: Chong Yu Meng I wrote a tutorial on Tomcat here : http://cymulacrum.net/writings/tomcat5/book1.html Hope this helps. Thanks, I'll read it :-) I've been staring at the distro docs for days now. I've got an app running, but using ant, I'm finding it very hard to make sense of what's happening. ?? E.g. maybe a bug. ?xml version='1.0' encoding='utf-8'? Context debug=9 docBase=../../myjava/tc/sapp/dist/SomeServlet-0.2.war/ path=/SomeServlet privileged=false /Context in {$catalina.home}/conf/Catalina/localhost/x.xml The host documentation says that docbase should be absolute. The examples show it relative (to {$catalina.home}/webapps) which seems to work. regards DaveP -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Create new Tomcat User mailing lists?
Been talked about a few times and voted down. If there are certain topics which one doesn't like - emial filters can easily kill them. For example - I once killed all emails that contained IIS in it because I don't care about IIS. Mozilla provides decent filtering for placing emails in their appropriate folder/subfolder. For example: - tomcat-user goes to one folder - tomcat-dev goes to another folder - tomcat-dev cvs commits goes to another folder - and every other list I belong to has its own sub-folder. -Tim [EMAIL PROTECTED] wrote: Is there any chance that the Tomcat User mailing list maintainers might split the Tomcat User mailing list into multiple lists by topic? This would classify and partition the mailing list traffic and would allow a user to subscribe to the topic(s) that interest him or her and ignore those that don't. As the Tomcat User mailing list traffic grows, I find it increasingly difficult to sift through the daily messages for those that I want to read. I'm also receiving a lot more mail from this list (and other popular lists like Subversion User), much of it that I ignore because I don't have the time to read it. Multiple mailing lists would help alleviate these problems. Suggested mailing list topics: Installation and Configuration Performance, Optimization, and Maintenance Tomcat 3 Issues Tomcat 4 Issues Tomcat 5 Issues Tomcat and Apache Tomcat and Internet Information Server (IIS) Tomcat and JSP/Servlets Tomcat on Linux or Unix Tomcat on Windows - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: howto disable webdav extensions / methods?
How do you mean disable? The default servlet has an option to allow/disallow DELETE, etc. Oterwise - you can define a security constraint in web.xml on these methods and have them no be accessible by any role. -Tim Patrick Glennon wrote: Anyone have any thoughts on this? Maybe I'll try posting on the developer list, for the life of me, I can't seem to find where to shut this off. _ From: Patrick Glennon Sent: Thursday, July 01, 2004 4:52 PM To: 'Tomcat Users List' Subject: howto disable webdav extensions / methods? How do I disable the webdav extensions? Basically, I don't want to allow any of the webdav methods ( PROPFIND, OPTIONS, COPY, DELETE, etc... ), but I cannot find where to disable or limit them. This is running tomcat direct, I know how to do it with Apache, I just don't know how to do it with tomcat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Create new Tomcat User mailing lists?
It's a good idea, but it has it's problems. As an example: What about tomcat 4 install problems? Does it go in Tomcat 4 , or the install one? What about tomcat 5 on linux, connecting to IIS on win2k3. Which list ? The way I would handle this is to create a client-side mail filter. If I were ever to do so, the first one I'd create is if it contains mod_jk, jk, or jk2, then send it to the dustbin folder. If there was a single division I could make in the lists, it would be that one. tomcat-user tomcat-connectors-user -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 9:26 AM To: [EMAIL PROTECTED] Subject: Create new Tomcat User mailing lists? Is there any chance that the Tomcat User mailing list maintainers might split the Tomcat User mailing list into multiple lists by topic? This would classify and partition the mailing list traffic and would allow a user to subscribe to the topic(s) that interest him or her and ignore those that don't. As the Tomcat User mailing list traffic grows, I find it increasingly difficult to sift through the daily messages for those that I want to read. I'm also receiving a lot more mail from this list (and other popular lists like Subversion User), much of it that I ignore because I don't have the time to read it. Multiple mailing lists would help alleviate these problems. Suggested mailing list topics: Installation and Configuration Performance, Optimization, and Maintenance Tomcat 3 Issues Tomcat 4 Issues Tomcat 5 Issues Tomcat and Apache Tomcat and Internet Information Server (IIS) Tomcat and JSP/Servlets Tomcat on Linux or Unix Tomcat on Windows What do you think? Derek - 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: apache2 crashes when using connectors - nobody?
Well, a quick off the bat error: JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 These should read: JkMount /examples/servlet/* worker1 JkMount /examples/*.jsp worker1 The name you gave your workers in workers.properties has to be used in you JkMount statements. --David Andy Spiegl wrote: Hi David, thanks for your reply. Someone might be able to help if you would be so kind as to provide more information like relevant parts of your Apache config ---8---8-- IfModule mod_jk.c JkWorkersFile /opt/jakarta/tomcat/conf/workers.properties JkLogFile /opt/jakarta/tomcat/logs/mod_jk.log # Log level to be used by mod_jk JkLogLevel debug #JkLogLevel error # The following line makes apache aware of the location of # the /examples context Alias /examples /opt/jakarta/webapps/examples Directory /opt/jakarta/webapps/examples Options Indexes FollowSymLinks allow from all /Directory # The following line mounts all JSP files and the /servlet/ uri to tomcat JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 # The following line prohibits users from directly accessing WEB-INF Location /examples/WEB-INF/ AllowOverride None deny from all /Location /IfModule ---8---8-- and the workers.properties file. ---8---8-- # Define some properties workers.apache_log=/var/log/apache2/ workers.tomcat_home=/opt/jakarta/ #workers.java_home=/opt/IBMJava2-131/ ps=/ # Define 1 worker worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 ---8---8-- Also was the mod_jk connector package you installed built for this version of Apache? Hm, I think so. I tried: apache2-jakarta-tomcat-connectors-4.1.27-63.i586.rpm apache2-jakarta-tomcat-connectors-4.1.27.tgz and http://www.apache.de/dist/jakarta/tomcat-connectors/jk2/binaries/linux/Suse-9.0-i386.tar.gz Thank you for any help! Andy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: howto disable webdav extensions / methods?
did you try to stop the application webdav under Tomcat Manager. I think if you stop this application, all the webdav methods will be unavailable. -Message d'origine- De : Tim Funk [mailto:[EMAIL PROTECTED] Envoye : mardi 6 juillet 2004 17:04 A : Tomcat Users List Objet : Re: howto disable webdav extensions / methods? How do you mean disable? The default servlet has an option to allow/disallow DELETE, etc. Oterwise - you can define a security constraint in web.xml on these methods and have them no be accessible by any role. -Tim Patrick Glennon wrote: Anyone have any thoughts on this? Maybe I'll try posting on the developer list, for the life of me, I can't seem to find where to shut this off. _ From: Patrick Glennon Sent: Thursday, July 01, 2004 4:52 PM To: 'Tomcat Users List' Subject: howto disable webdav extensions / methods? How do I disable the webdav extensions? Basically, I don't want to allow any of the webdav methods ( PROPFIND, OPTIONS, COPY, DELETE, etc... ), but I cannot find where to disable or limit them. This is running tomcat direct, I know how to do it with Apache, I just don't know how to do it with tomcat. - 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: Fresh install of 5.0.25 running but not responding
Under the pen name of Tomcat Users List [EMAIL PROTECTED] Daniel Santos ([EMAIL PROTECTED]) writes: And are you sure that you aren't seeing any errors in the log file? The line would start with SEVERE and might not be conspicuous if you are looking for a huge explosion. Well, phooey. I had looked and didn't find any, but grepping for SEVERE shows the following: SEVERE: Error initializing endpoint java.net.BindException: Address already in use: 8080 and then a bunch of backtrace stuff. So, clearly, the problem was that some other process already had claimed that port. And that process had to be another incarnation of Tomcat, presumably one that hadn't properly shut down. Because of a kernel upgrade this weekend, the machine is freshly booted and now Tomcat is starting and stopping and serving correctly. Thanks, Daniel, for putting me on the right track, and thanks to everyone else for reading my question. -- Scott D. Anderson Computer Science Department Wellesley College [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to catch and redirect an error code 500 with Tomcat apache ?
Hi everyone I can't manage to redirect a 500 error code page to a customized error page, even I can't see any trouble in my conf's files. # config Linux RedHat 7.1 Apache 1.3.27 (rpm) Tomcat 4.1.18 (rpm) mod_jk 1.2.2 (rpm) #apache myVH.conf ErrorDocument 500 /jsp/500.jsp #tomcat myapps/WEB-INF/web.xml error-page error-code500/error-code location/jsp/500.jsp/location /error-page apache gets a 500 error code # myapps_access_log 193.52.112.54 - - [05/Jul/2004:15:52:49 +0200] GET /Login.do HTTP/1.1 500 3990 but the browser prints the default tomcat error page and not my customized 500.jsp ... PS : there's no compilation problem in my 500.jsp, it could have been the reason why tomcat can't print it and redirects to it's own 500 error page Thanks in advance :) Julien OIX Service Informatique de Gestion - Université de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Fax: 02 40 99 83 84 / abroad + (33) 240 99 83 84 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
compressableMimeTypes
Hello, I have put this in my server.xml. compression=on compressableMimeTypes=text/html,text/xml,text/plain,text/javascript,text/css But it does not compress text/javascript and text/css. (It does compress text/html.) Is this setting ignored? Not implemented yet? I don't have the source at hand, so I can't check it myself. Greetings, Ronald.
RE: Create new Tomcat User mailing lists?
The Tomcat 3, Tomcat 4, and Tomcat 5 mailing lists were just a suggestion. I agree with you that they'd lead to ambiguity and are probably not necessary. The tomcat-connectors-user list is a good idea. Derek --- Tomcat Users List [EMAIL PROTECTED] wrote: It's a good idea, but it has it's problems. As an example: What about tomcat 4 install problems? Does it go in Tomcat 4 , or the install one? What about tomcat 5 on linux, connecting to IIS on win2k3. Which list ? The way I would handle this is to create a client-side mail filter. If I were ever to do so, the first one I'd create is if it contains mod_jk, jk, or jk2, then send it to the dustbin folder. If there was a single division I could make in the lists, it would be that one. tomcat-user tomcat-connectors-user -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 9:26 AM To: [EMAIL PROTECTED] Subject: Create new Tomcat User mailing lists? Is there any chance that the Tomcat User mailing list maintainers might split the Tomcat User mailing list into multiple lists by topic? This would classify and partition the mailing list traffic and would allow a user to subscribe to the topic(s) that interest him or her and ignore those that don't. As the Tomcat User mailing list traffic grows, I find it increasingly difficult to sift through the daily messages for those that I want to read. I'm also receiving a lot more mail from this list (and other popular lists like Subversion User), much of it that I ignore because I don't have the time to read it. Multiple mailing lists would help alleviate these problems. Suggested mailing list topics: Installation and Configuration Performance, Optimization, and Maintenance Tomcat 3 Issues Tomcat 4 Issues Tomcat 5 Issues Tomcat and Apache Tomcat and Internet Information Server (IIS) Tomcat and JSP/Servlets Tomcat on Linux or Unix Tomcat on Windows What do you think? Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: howto disable webdav extensions / methods?
I tried that, and even un-deployed the webdav app, but not only are the methods still available, they still work. PROPFIND http://url/directory will still work, for example. This leads me to believe that the webdav app has very little to do with webdav functionality, but I can't find where else it is set. -Patrick -Original Message- From: PATTUS Jean-Philippe [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 10:35 AM To: Tomcat Users List Subject: RE: howto disable webdav extensions / methods? did you try to stop the application webdav under Tomcat Manager. I think if you stop this application, all the webdav methods will be unavailable. -Message d'origine- De : Tim Funk [mailto:[EMAIL PROTECTED] Envoye : mardi 6 juillet 2004 17:04 A : Tomcat Users List Objet : Re: howto disable webdav extensions / methods? How do you mean disable? The default servlet has an option to allow/disallow DELETE, etc. Oterwise - you can define a security constraint in web.xml on these methods and have them no be accessible by any role. -Tim Patrick Glennon wrote: Anyone have any thoughts on this? Maybe I'll try posting on the developer list, for the life of me, I can't seem to find where to shut this off. _ From: Patrick Glennon Sent: Thursday, July 01, 2004 4:52 PM To: 'Tomcat Users List' Subject: howto disable webdav extensions / methods? How do I disable the webdav extensions? Basically, I don't want to allow any of the webdav methods ( PROPFIND, OPTIONS, COPY, DELETE, etc... ), but I cannot find where to disable or limit them. This is running tomcat direct, I know how to do it with Apache, I just don't know how to do it with tomcat. - 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: Create new Tomcat User mailing lists?
I agree that creating email filters is not difficult, but it still takes time, especially when one must create filters for every mailing list to which one subscribes. Assuming that mail filters are accurate, why couldn't mailing list servers automatically filter messages and categorize or label them (perhaps in the subject) based on their content? I look forward to the day when my email client can magically associate, categorize, and/or label messages that contain related content. In any case, I'm leading this thread off-topic, so I'll stop here. Derek --- Tomcat Users List [EMAIL PROTECTED] wrote: Been talked about a few times and voted down. If there are certain topics which one doesn't like - emial filters can easily kill them. For example - I once killed all emails that contained IIS in it because I don't care about IIS. Mozilla provides decent filtering for placing emails in their appropriate folder/subfolder. For example: - tomcat-user goes to one folder - tomcat-dev goes to another folder - tomcat-dev cvs commits goes to another folder - and every other list I belong to has its own sub-folder. -Tim [EMAIL PROTECTED] wrote: Is there any chance that the Tomcat User mailing list maintainers might split the Tomcat User mailing list into multiple lists by topic? This would classify and partition the mailing list traffic and would allow a user to subscribe to the topic(s) that interest him or her and ignore those that don't. As the Tomcat User mailing list traffic grows, I find it increasingly difficult to sift through the daily messages for those that I want to read. I'm also receiving a lot more mail from this list (and other popular lists like Subversion User), much of it that I ignore because I don't have the time to read it. Multiple mailing lists would help alleviate these problems. Suggested mailing list topics: Installation and Configuration Performance, Optimization, and Maintenance Tomcat 3 Issues Tomcat 4 Issues Tomcat 5 Issues Tomcat and Apache Tomcat and Internet Information Server (IIS) Tomcat and JSP/Servlets Tomcat on Linux or Unix Tomcat on Windows - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
some problem in tomcat 5.0.25
Hi , I have deployed an application on Tomcat 5.0.16 which works fine , but same war file if i try to put it into 5.0.25 or 5.0.24 i get an error message Code is too large , unable to complie JSP page . Does anyone have an idea. Regards Archana Yahoo! India Careers: Over 50,000 jobsonline.
Net Integrator Virus Alert
WARNING: a virus (probably I-Worm.NetSky.d) or suspicious attachment was detected and removed from the following message from [EMAIL PROTECTED] to [EMAIL PROTECTED] Some of the content may still be readable. ---BeginMessage--- Here is the file. ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache2 crashes when using connectors - nobody?
The name you gave your workers in workers.properties has to be used in you JkMount statements. Oops, thanks. But could that be the reason for a complete crash? Andy. -- o _ _ _ --- __o __o /\_ _ \\o (_)\__/o (_) -o) - _`\,__`\,__(_) (_)/_\_| \ _|/' \/ /\\ (_)/ (_) (_)/ (_) (_)(_) (_)(_)' _\o__\_v Linux. Because life is too short to reboot. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session invalidation
hey jake and others, thanks for help. i tried the same code on tc5.0.25 and it has the same problem as tv 5.0.16. the debugging showed that when i enter a site after the session should be already invalidated, the request passes the filter including the code block that checks if session is valid. from there it ccontinues as if the session would be still alive and kicking. actually, it's still alive . the session bound attributes are still available and the redirections are made with the same jsessionid in the rewrited url as earlier. as i wrote, with cookies based session tracking (no url rewriting) everything works fine. the filter in my code only checks if the session is valid, the invalidation is made in a regular servlet, which makes me think that this is not related to some filters-specific bug. may be i'll post this to bugzilla later... asher - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, July 05, 2004 8:53 PM Subject: Re: session invalidation At 10:15 AM 7/5/2004 +0200, you wrote: Hello Ashert, may be you ran into the same prob as me i also had the problem, that URL-rewriting under Tomcat 5 did not work although i explicitly used it. I found out, that URL-rewriting does only work, if your application runs in the root context, looking like that in server.xml: Context path= docBase=myWebapp cookies=false / I was running my app under a named context: Context path=myWebapp docBase=myWebapp cookies=false / After changing the context definition to the first sample, URL-rewriting worked fine hope this helps best regards, Well, this helps very little. If you want to help, then provide the version of Tomcat5 you are working with. For all we know it is an old version with a quirky bug that has already been fixed in more recent versions. And if that is true, you are just adding to the confusion saying it is broken when it isn't anymore. If it is still broken, however, it is your duty to report the bug so it can be fixed. Have you done that or even checked if someone else reported it? The Tomcat developers are pretty responsive to fixing bugs. If you have the ability to describe and reproduce this bug and you neglect to do so, then you are doing a disservice to the Tomcat community. Some might disagree with the whole it is your duty part. It is an unwritten rule that, if followed, will provide benefit to yourself and everyone else. Jake Thilo hello, 1. a webapp has a filter, which filters all of the requests to application's servlets. 2. the filter makes a simple check: if (session == null || session.getAttribute(abc) == null) //redirect the request to the login page; else //continue with it as it is 3. if i invalidate the session, and then try to use back button of the browser the filter kicks me to the login page. on tomcat4 this works fine. at least i didn't see any problem ever. 4. on tomcat 5 this logic works fine only with browser whith enabled cookies. using the session tracking with url rewriting doesn't work.works the debugging shows that the flow runs into the code block that must invalidate the session, but it's not invalidated. i still can get back,see the pages and use the data stored in session!:( did u have any expirience with this stuff? thanks in advance. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
lost output including a servlet in a JSP which includes a JSP
What I want to do is to include a servlet in a .JSP. For reasons that I won't go into please assume that in the environment that I wish this to run I cannot define a named servlet nor can I load by classname. A simplified version of what I have been doing is below: % Class c = Class.forName(name-of-the-servlet-class); Servlet s = (Servlet) c.newInstance(); s.init(this.getServletConfig()); s.service(request, response); % This sorta works. That is, it will load and run the servlet and the output from the servlet is deliverd to the browser. But if the called servlet class includes a .JSP then the output of that .JSP is never seen though if debugged it does run OK and produces output. The servlet itself is generated by compiling a .JSP with jspc. What am I missing. I realize that this inquiry is not strictly Tomcat related but I figure that the people who will have the knowledge answer to my lost output mystery will be here! Your thoughts on this problem are appreciated. Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem in deploying application on tomcat 5.0.25
Hi , I have deployed an application on Tomcat 5.0.16 which works fine , but same war file if i try to put it into 5.0.25 or 5.0.24 i get an error message Code is too large , unable to complie JSP page . Does anyone have an idea. Regards Archana Yahoo! India Careers: Over 50,000 jobsonline.
Tomcat connection problems. Webapp hangs up after a while.
Hi, I have a webapp on tomcat 4.1.24 (Win 2000 and SQL Server). The application works fine for a while and later on it fails to do any action and writes Software caused connection abort: socket write error and also connection reset by peer error. But if I restart the tomcat server, everything works fine for a while and hangs up again. Any Ideas? please see below the error from the log file. And also I turned on the SQL profiler but it's not getting the database call. So looks like the web app is hanging somewhere and I can't figure out. StandardWrapperValve[default]: Servlet.service() for servlet default threw exception java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.d oWrite(InternalOutputBuffer.java:668) at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOu tputFilter.java:160) at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuff er.java:523) at org.apache.coyote.Response.doWrite(Response.java:524) at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java: 384) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:439) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:359) at org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:411) at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:398) at org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.ja va:110) at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.jav a:1996) at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:174 5) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet .java:1073) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:50 6) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja va:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241 5) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
RE: Understanding Java -- I've officially decided that JSTL is one of the worst thingsto ever happen
Absolutely, it's important to understand Java and the dynamic compiler. This study (the pdf linked below) may sound like propaganda, but dynamic compilation does offer the ability to run faster than static compilation, although it's usually not the case and is dependant on what specifically you are doing in your code. Moreover, I would propose that if you have having performance problems with your JSTL-based application that it's probably either caused by config problems or poor utilization of the Java language. I would suggest doing some profiling, with the Sun jvm, using something along these lines: java -Xprof -Dcompiler=NONE -Xrunhprof:cpu=samples,thread=y,depth=16 Then you run your application and I believe that you must terminate normally for profiling to complete (i.e., no CTRL-C, etc). This should show where your bottlenecks are in your application. If you want to see how those bottle necks are effected by the compiler you can run this with it on but it wont always be able to tell you the line numbers then since there is no line-to-instruction mapping once it's been optimized. good luck Daniel -Original Message- From: SH Solutions [mailto:[EMAIL PROTECTED] Sent: Sunday, July 04, 2004 7:28 AM To: 'Tomcat Users List' Subject: RE: I've officially decided that JSTL is one of the worst thingsto ever happen Hi It's not. But the use case is. While Java is definitely a good approach for business apps, it's unacceptable for edited apps, for which look and feel remains a top criteria when the customer makes his choice. I totally agree on this, even though there is a lot of progress going on. While Java is definitely a good approach for business apps, it's unacceptable for edited apps, for which raw performance remains a top criteria when the customer makes his choice. I do not agree on this any more. Java has prooven to be very efficient and is still improving more and more. Right now, I would say that java applications (if well written) are at least half as fast as c applications (also well written). Suns promotion gives you this: http://research.sun.com/techrep/2002/smli_tr-2002-114.pdf I agree, that Sun has interests on saying that java is fast, but read it. Java is even a lot faster in some areas of computing: Assume, you have code that needs to allocate lots (thousands) of very small objects for a short period of time in memory. In C, where you do not have a garbage collector, you need to free these memory peaces one by one, which is a burdon for memory management and will slow down things. In Java, allocation is fast (just one pointer operation) and there is no need to free things. The garbage collector throws all unreferenced objects of the youngest collection away at once, not processing them one by one. Obviously, in such situations, Java has performance advantages. This seems to be a seldom situation, but it occurs much more often, then you might think. Especially in Java, where every function, that returns more then one value needs to return an temporary object. This seemed to be very costly for me, when I startet using Java, but right now I understood that this is has constant costs - like in no conservative language. Regards, Steffen - 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: I've officially decided that JSTL is one of the worstthingsto ever happen
If this is the case then I ask you why Java has been the number one programming language for 4 years now? As was recognized long ago, performance is not everything. And in fact, means little when you can't get your product out the door because you are still trying to chase down memory leaks, buffer overruns and corrupted pointers. As somebody else said, C++ programmers will understand this. Daniel -Original Message- From: Eric VERGNAUD [mailto:[EMAIL PROTECTED] Sent: Sunday, July 04, 2004 11:33 AM To: Tomcat Users List Subject: Re: I've officially decided that JSTL is one of the worstthingsto ever happen le 4/07/04 14:27, SH Solutions à [EMAIL PROTECTED] a écrit : Right now, I would say that java applications (if well written) are at least half as fast as c applications (also well written). Which means that when your java app is in competition with a native app, youve lost the market. --- Eric VERGNAUD - JLynx Software Cutting-edge technologies and services for software companies web: http://www.jlynx.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]
Re: lost output including a servlet in a JSP which includes a JSP
This is all wrong. You need to get a RequestDispatcher via: jsp:include or jsp:forward -- or -- RequestDispatcher rd = request.getRequestDispathcer(myPath); rd.include(request, response); -Tim M.Hockings wrote: What I want to do is to include a servlet in a .JSP. For reasons that I won't go into please assume that in the environment that I wish this to run I cannot define a named servlet nor can I load by classname. A simplified version of what I have been doing is below: % Class c = Class.forName(name-of-the-servlet-class); Servlet s = (Servlet) c.newInstance(); s.init(this.getServletConfig()); s.service(request, response); % This sorta works. That is, it will load and run the servlet and the output from the servlet is deliverd to the browser. But if the called servlet class includes a .JSP then the output of that .JSP is never seen though if debugged it does run OK and produces output. The servlet itself is generated by compiling a .JSP with jspc. What am I missing. I realize that this inquiry is not strictly Tomcat related but I figure that the people who will have the knowledge answer to my lost output mystery will be here! Your thoughts on this problem are appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache2 crashes when using connectors - nobody?
Sorry, I don't know. I haven't had that problem (one of the few I haven't had the pleasure of). It would most likely cause that last error message in your mod_jk.log file though: [jk_uri_worker_map.c (619)]: In jk_uri_worker_map_t::map_uri_to_worker, wrong parameters --David Andy Spiegl wrote: The name you gave your workers in workers.properties has to be used in you JkMount statements. Oops, thanks. But could that be the reason for a complete crash? Andy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I've officially decided that JSTL is one of the worst things to ever happen
There are a lot of java classes that return nulls as part of normal operation. For instance - sets. Set.get(someobj) returns null if object is not there. And when you do ${my.set.blah.wee} and blah wasn't found, and you get some crazy EL error, you'll remember my words. This gets back to design issues to me. You should know if a bean can return null if you know your design. Were you to attempt the same thing in java you would get NullPointerException. I agree that the error messages can sometimes not be so easily interprted, but I think it comes back to design. So as far as actually *dealing* with those conditions the sky is the limit: c:if test=${my.set != null} ..blah blah /c:if or You have ${my.set == null ? 'no' : 'some'} blah. or even You have ${my.set == null ? 'no blah' : (my.set.blah == null ? 'blah with no wee' : 'a lot of wee')}. Either way (java, EL) you are going to have to navigate a hierachical tree. The real question that I ask myself is am I doing business logic or processing in my view layer? and if so, does this belong in another layer?. Daniel -Original Message- From: Ivan Jouikov [mailto:[EMAIL PROTECTED] Sent: Monday, July 05, 2004 2:44 AM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: I've officially decided that JSTL is one of the worst things to ever happen See below for my replies What should we use instead? Welcome to the front page of JSP manual: % if( yourmoma ) { % Do some things % } % To me, it seems EASIER than this: c:set var=yourmoma value=%=yourMomaFromCode%/ c:if test=${yourmoma} Do some things /c:if What happened to the good old idea of using JAVA, with all its beautiful features, in the JSPs themselves? Understandable output? Do you really think you can find one designer who would understand a simple calendar written in tags? Hell no. And for me, as a programmer, understanding good old java code inside % % is MUCH MUCH easier than understanding all the tag BS. Besides, old java tags % % do very good job of presenting understandable layout. %=% and ${} are both equally to understand to me. A key phrases in that example is To me, it seems EASIER... And for me, as a programmer... both equally to understand to me But that is you, a programmer with experience using various programming languages. Why not use scriplets? Because of the development worlds experiences with ASP and CF where pages were riddled with code and vew developers (not designers) hard a hard time maitaining these view components. View developers in large teams have their respective discipline and it becomes more difficult for them to maintain thier tier. JSTL allows them to use familar syntax and structures from SGML/HTML and all those other markup languages, hence making it easier for them to display data, not processing it. Or would a company rather employ a perfectly good server side developer writing view code? If they have no usability skills it will be a waist of the company resources. The key phrase is display data, not processing it, which is what I agree with. However, that's not what JSTL agrees with. Tags like c:if and c:foreach shift XML from data to logic, which is NOT what XML is for. Didn't I say that before? But you're missing the point, again: the (major) reason JavaScript is NOT server-side, is because of its sloppy syntax which is like a warm oven for bacteria - bugs just GROW in it. EL is making the same mistake over again. Valid point for JavaScript, but again treat JSTL-EL as a view helper component not as a pure processing solution. Also did not mean to mention EJB it had no place in this arguement. That's one of the things that EL might be actually useful for: printing stuff out and escaping XML. Exactly... But again, you're forgetting that taglibs actually FORCES you not to use % % code inside tags (when you make tag files). And tags like c:if and c:foreach have no place in this world, I think we have a consensus on this. But still, what if TModel might return a null value? Then you're in for a nice 2 hour debugging ride with your EL syntax, or a 5 second adding if statement ride, if you used Java. The null values should be handled in the Model or in a heavy Controller... if those values are missing or a failure occurs send them to the appropriate view. There are a lot of java classes that return nulls as part of normal operation. For instance - sets. Set.get(someobj) returns null if object is not there. And when you do ${my.set.blah.wee} and blah wasn't found, and you get some crazy EL error, you'll remember my words. % if( yourmoma ) { % Lets leave yourmoma out of this... lol Cheers!
GateLock Virus Notification.
Dear GateLock user, GateLock has detected the WORM_NETSKY.D in your email attachment my_details.pif. The file could not be cleaned and was therefore deleted.---BeginMessage--- Please have a look at the attached file. ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: some problem in tomcat 5.0.25
Forgive the simplicity of my question, but how large is the JSP file? -Original Message- From: archana gupta [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 9:39 AM To: [EMAIL PROTECTED] Subject: some problem in tomcat 5.0.25 Hi , I have deployed an application on Tomcat 5.0.16 which works fine , but same war file if i try to put it into 5.0.25 or 5.0.24 i get an error message Code is too large , unable to complie JSP page . Does anyone have an idea. Regards Archana Yahoo! India Careers: Over 50,000 jobsonline. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Importing Tomcat 5.0 webapp into Eclipse 3.0?
I'm new to both Eclipse and Tomcat 5.0 but have been using Tomcat 4.0 for quite a while. I'd like to move a project I'm working on in Tomcat 4.0 to Tomcat 5.0 and Eclipse 3.0? Has anyone successfully imported a Tomcat webapp into Eclipse 3.0? I continue to get XML validation disabled errors whenever I try. I've run into a deadend trying to figure out that error but am wondering if the problem might not actually begin further back in trying to import files from a current webapp into Eclipse. I'm about to just go back to finishing off the project in Tomcat 4.0 without Eclipse if I can't figure out how to get them working together in a day or so. Thanks for any ideas, Ken
RE: I've officially decided that JSTL is one of the worstthingsto ever happen
Exactly I agree when you are dealing with a team of 30+ delvelopers you either hold reviews every month and tie everyone down to a structure that evolves causing confusion and rewrites or the whole lot goes to pot. Which is fine if you work for a finance house with buckets of money but where productivity is more important than process C++ would not be my choice. Degres of abstraction are more difficult to attain. I would like to hear the opinion of a hardcore C++ programmer. Cause I would like to know the faults in this argument as I am sure there is. The performance question I think is almost irrelvant. If you want performance write C/Assembler in a kernel module perferably but ultimately its comes back to a some marshalling code whose structure has to be easily evolved and adapted its nature is almost disposable as protocols and business rules change. Whats the opinion on gcj ? From: SANTOS, DANIEL (SBCSI) [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen Date: Tue, 6 Jul 2004 12:22:25 -0500 If this is the case then I ask you why Java has been the number one programming language for 4 years now? As was recognized long ago, performance is not everything. And in fact, means little when you can't get your product out the door because you are still trying to chase down memory leaks, buffer overruns and corrupted pointers. As somebody else said, C++ programmers will understand this. Daniel -Original Message- From: Eric VERGNAUD [mailto:[EMAIL PROTECTED] Sent: Sunday, July 04, 2004 11:33 AM To: Tomcat Users List Subject: Re: I've officially decided that JSTL is one of the worstthingsto ever happen le 4/07/04 14:27, SH Solutions à [EMAIL PROTECTED] a écrit : Right now, I would say that java applications (if well written) are at least half as fast as c applications (also well written). Which means that when your java app is in competition with a native app, youve lost the market. --- Eric VERGNAUD - JLynx Software Cutting-edge technologies and services for software companies web: http://www.jlynx.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] _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Files, paths and permissions
I am having a problem creating a file on a remote computer in one of my servlets when using Tomcat 5.0.24. The folder for the file is on another computer (called MSI). I know for a fact that the folders and the file exist, because a test app returns: \\Msi\nouveau dossier\commande.web when I go through a FileChooser. Yet these lines of code in my servlet: File target = new File(Msi\\nouveau dossier\\,Commande.web); if(!target.exists()) { System.out.println(The file doesn't exist!); } FileWriter fileOutput = new FileWriter(target,true); produce: The file doesn't exist! I also get a nice IOException: 2004-07-06 14:00:16 StandardWrapperValve[Telson]: Servlet.service() for servlet Telson threw exception java.io.FileNotFoundException: \\Msi\nouveau dossier\Commande.web (Access is denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.init(Unknown Source) at java.io.FileWriter.init(Unknown Source) at Telson.doPost(Telson.java:39) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext Valve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:144) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:702) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:644) at java.lang.Thread.run(Unknown Source) So any suggestions on work arounds or config options? I am truly stumped... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: lost output including a servlet in a JSP which includes a JSP
Ok, I would tend to agree. But, how can I get a request dispatcher without loading the servlet by classname? i.e., RequestDispatcher rd = request.getRequestDispathcer(/servlets/my-servlet-classname); Mike Tim Funk wrote: This is all wrong. You need to get a RequestDispatcher via: jsp:include or jsp:forward -- or -- RequestDispatcher rd = request.getRequestDispathcer(myPath); rd.include(request, response); -Tim M.Hockings wrote: What I want to do is to include a servlet in a .JSP. For reasons that I won't go into please assume that in the environment that I wish this to run I cannot define a named servlet nor can I load by classname. A simplified version of what I have been doing is below: % Class c = Class.forName(name-of-the-servlet-class); Servlet s = (Servlet) c.newInstance(); s.init(this.getServletConfig()); s.service(request, response); % This sorta works. That is, it will load and run the servlet and the output from the servlet is deliverd to the browser. But if the called servlet class includes a .JSP then the output of that .JSP is never seen though if debugged it does run OK and produces output. The servlet itself is generated by compiling a .JSP with jspc. What am I missing. I realize that this inquiry is not strictly Tomcat related but I figure that the people who will have the knowledge answer to my lost output mystery will be here! Your thoughts on this problem are appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Importing Tomcat 5.0 webapp into Eclipse 3.0?
Try www.myeclipseide.com, very easy and afordable? Also, Have you tried Lomboz plugin? http://forge.objectweb.org/projects/lomboz/ (Lomboz 3.0 RC2 release is available) -Mensaje original- De: Januski, Ken [mailto:[EMAIL PROTECTED] Enviado el: Martes, 06 de Julio de 2004 12:02 p.m. Para: Tomcat Users List Asunto: Importing Tomcat 5.0 webapp into Eclipse 3.0? I'm new to both Eclipse and Tomcat 5.0 but have been using Tomcat 4.0 for quite a while. I'd like to move a project I'm working on in Tomcat 4.0 to Tomcat 5.0 and Eclipse 3.0? Has anyone successfully imported a Tomcat webapp into Eclipse 3.0? I continue to get XML validation disabled errors whenever I try. I've run into a deadend trying to figure out that error but am wondering if the problem might not actually begin further back in trying to import files from a current webapp into Eclipse. I'm about to just go back to finishing off the project in Tomcat 4.0 without Eclipse if I can't figure out how to get them working together in a day or so. Thanks for any ideas, Ken _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/6/2004 12:44 PM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
when does Tomcat spawn children and/or fork ?
While using Tomcat 5.0.19 on Solaris 8 I occasionally see more than one Tomcat process running (as reported by ps -aef). In each case the extra process is a child of the original Tomcat process, exists for no more than a few seconds, seems to cause no trouble, and (troublingly?) leaves no trace in the log files. For example: root 5425 1 2 Jun 30 ? 107:54 /usr/java/bin/java -Xmx512m -Dtomcat=1 -Djava.awt.headless=true -Djava.endorsed root 20981 5425 0 05:02:17 ?0:00 /usr/java/bin/java -Xmx512m -Dtomcat=1 -Djava.awt.headless=true -Djava.endorsed Another instance captured using /usr/ucb/ps -auxwww, which makes it appear to be an identical process started by startup.sh / catalina.sh: root 5425 37.0 26.4274024264592 ?R Jun 30 146:49 /usr/java/bin/java -Xmx512m -Dtomcat=1 -Djava.awt.headless=true -Djava.endorsed.dirs=/usr/local/jakarta-tomcat-5.0.19/common/endorsed -classpath /usr/java/lib/tools.jar:/usr/local/jakarta-tomcat-5.0.19/bin/bootstrap.jar:/ usr/local/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar -Dcatalina.base=/usr/local/jakarta-tomcat-5.0.19 -Dcatalina.home=/usr/local/jakarta-tomcat-5.0.19 -Djava.io.tmpdir=/usr/local/jakarta-tomcat-5.0.19/temp org.apache.catalina.startup.Bootstrap start root 23399 0.0 0.0274016? ?R 21:03:11 0:00 /usr/java/bin/java -Xmx512m -Dtomcat=1 -Djava.awt.headless=true -Djava.endorsed.dirs=/usr/local/jakarta-tomcat-5.0.19/common/endorsed -classpath /usr/java/lib/tools.jar:/usr/local/jakarta-tomcat-5.0.19/bin/bootstrap.jar:/ usr/local/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar -Dcatalina.base=/usr/local/jakarta-tomcat-5.0.19 -Dcatalina.home=/usr/local/jakarta-tomcat-5.0.19 -Djava.io.tmpdir=/usr/local/jakarta-tomcat-5.0.19/temp org.apache.catalina.startup.Bootstrap start My basic question is under what circumstances does Tomcat create a child and/or fork? I have the JSP compiler fork setting set to false in /usr/local/tomcat/conf/web.xml, and in any case the JSP pages in use at the time hadn't changed for months ( therefore recompilation shouldn't even be a factor). I start Tomcat with $CATALINA_HOME/bin/startup.sh. By the way, I rather accidentally stumbled across the extra processes while debugging Tomcat memory usage with a shell script that does a ps -aef every minute or so, and occasionally finds more than 1 process. Thanks in advance for any help/information/pointers. -- Jim
RE: Importing Tomcat 5.0 webapp into Eclipse 3.0?
Thanks Lorenzo, I haven't tried either but will give them a look. I have run across a number of references to Myeclipse but haven't pursued it since I just downloaded Eclipse for the first time a few days ago. I guess now is the time Ken -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 2:45 PM To: Tomcat Users List Subject: RE: Importing Tomcat 5.0 webapp into Eclipse 3.0? Importance: High Try www.myeclipseide.com, very easy and afordable? Also, Have you tried Lomboz plugin? http://forge.objectweb.org/projects/lomboz/ (Lomboz 3.0 RC2 release is available) -Mensaje original- De: Januski, Ken [mailto:[EMAIL PROTECTED] Enviado el: Martes, 06 de Julio de 2004 12:02 p.m. Para: Tomcat Users List Asunto: Importing Tomcat 5.0 webapp into Eclipse 3.0? I'm new to both Eclipse and Tomcat 5.0 but have been using Tomcat 4.0 for quite a while. I'd like to move a project I'm working on in Tomcat 4.0 to Tomcat 5.0 and Eclipse 3.0? Has anyone successfully imported a Tomcat webapp into Eclipse 3.0? I continue to get XML validation disabled errors whenever I try. I've run into a deadend trying to figure out that error but am wondering if the problem might not actually begin further back in trying to import files from a current webapp into Eclipse. I'm about to just go back to finishing off the project in Tomcat 4.0 without Eclipse if I can't figure out how to get them working together in a day or so. Thanks for any ideas, Ken _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/6/2004 12:44 PM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: lost output including a servlet in a JSP which includes a JSP
The servlet class should be mapped to a path in web.xml -Tim M.Hockings wrote: Ok, I would tend to agree. But, how can I get a request dispatcher without loading the servlet by classname? i.e., RequestDispatcher rd = request.getRequestDispathcer(/servlets/my-servlet-classname); Mike Tim Funk wrote: This is all wrong. You need to get a RequestDispatcher via: jsp:include or jsp:forward -- or -- RequestDispatcher rd = request.getRequestDispathcer(myPath); rd.include(request, response); -Tim M.Hockings wrote: What I want to do is to include a servlet in a .JSP. For reasons that I won't go into please assume that in the environment that I wish this to run I cannot define a named servlet nor can I load by classname. A simplified version of what I have been doing is below: % Class c = Class.forName(name-of-the-servlet-class); Servlet s = (Servlet) c.newInstance(); s.init(this.getServletConfig()); s.service(request, response); % This sorta works. That is, it will load and run the servlet and the output from the servlet is deliverd to the browser. But if the called servlet class includes a .JSP then the output of that .JSP is never seen though if debugged it does run OK and produces output. The servlet itself is generated by compiling a .JSP with jspc. What am I missing. I realize that this inquiry is not strictly Tomcat related but I figure that the people who will have the knowledge answer to my lost output mystery will be here! Your thoughts on this problem are appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Trouble starting Tomcat4.1.18 on linux.
Hi all, I have installed jakarta-tomcat-4.1.18 on Linux (Red Hat) server. The tomcat is down now and I dont get the apache main page when i entered http://localhost:8080; on Mozilla in the linux server. I set the CATALINA_HOME and JAVA_HOME variables. I gave ./startup.sh on my terminal window ( from the bin directory of jakarta ) and it said the following: using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.18 using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.18 using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.18/temp using JAVA_HOME: /usr/java/j2sdk1.4.1_02 But then, I could not get the page when i gave http://localhost:8080; in mozilla web browser. Can u guys help me out?. Thanks, Kamaleshwaran Sivalingam
RE: I've officially decided that JSTL is one of the worstthingsto ever happen
If this is the case then I ask you why Java has been the number one programming language for 4 years now? Source of this statistic? As was recognized long ago, performance is not everything. And in fact, means little when you can't get your product out the door because you are still trying to chase down memory leaks, buffer overruns and corrupted pointers. When performance dependes on whether you use %=hello% or ${hello}, I'll stick with the first one, considering that it boosts performance up by like 5 times. As somebody else said, C++ programmers will understand this. Daniel -Original Message- From: Eric VERGNAUD [mailto:[EMAIL PROTECTED] Sent: Sunday, July 04, 2004 11:33 AM To: Tomcat Users List Subject: Re: I've officially decided that JSTL is one of the worstthingsto ever happen le 4/07/04 14:27, SH Solutions [EMAIL PROTECTED] a crit : Right now, I would say that java applications (if well written) are at least half as fast as c applications (also well written). Which means that when your java app is in competition with a native app, youve lost the market. --- Eric VERGNAUD - JLynx Software Cutting-edge technologies and services for software companies web: http://www.jlynx.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] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I've officially decided that JSTL is one of the worstthingsto ever happen
Jesus agrees with me. -Original Message- From: Laurence Arabia [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 11:08 AM To: [EMAIL PROTECTED] Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen Exactly I agree when you are dealing with a team of 30+ delvelopers you either hold reviews every month and tie everyone down to a structure that evolves causing confusion and rewrites or the whole lot goes to pot. Which is fine if you work for a finance house with buckets of money but where productivity is more important than process C++ would not be my choice. Degres of abstraction are more difficult to attain. I would like to hear the opinion of a hardcore C++ programmer. Cause I would like to know the faults in this argument as I am sure there is. The performance question I think is almost irrelvant. If you want performance write C/Assembler in a kernel module perferably but ultimately its comes back to a some marshalling code whose structure has to be easily evolved and adapted its nature is almost disposable as protocols and business rules change. Whats the opinion on gcj ? From: SANTOS, DANIEL (SBCSI) [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen Date: Tue, 6 Jul 2004 12:22:25 -0500 If this is the case then I ask you why Java has been the number one programming language for 4 years now? As was recognized long ago, performance is not everything. And in fact, means little when you can't get your product out the door because you are still trying to chase down memory leaks, buffer overruns and corrupted pointers. As somebody else said, C++ programmers will understand this. Daniel -Original Message- From: Eric VERGNAUD [mailto:[EMAIL PROTECTED] Sent: Sunday, July 04, 2004 11:33 AM To: Tomcat Users List Subject: Re: I've officially decided that JSTL is one of the worstthingsto ever happen le 4/07/04 14:27, SH Solutions [EMAIL PROTECTED] a crit : Right now, I would say that java applications (if well written) are at least half as fast as c applications (also well written). Which means that when your java app is in competition with a native app, youve lost the market. --- Eric VERGNAUD - JLynx Software Cutting-edge technologies and services for software companies web: http://www.jlynx.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] _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I've officially decided that JSTL is one of the worstthingsto ever happen
Is it? Hope you don't lie. Do you? -Original Message- From: Ivan Jouikov [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 3:28 PM To: 'Tomcat Users List' Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen Jesus agrees with me. -Original Message- From: Laurence Arabia [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 11:08 AM To: [EMAIL PROTECTED] Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen Exactly I agree when you are dealing with a team of 30+ delvelopers you either hold reviews every month and tie everyone down to a structure that evolves causing confusion and rewrites or the whole lot goes to pot. Which is fine if you work for a finance house with buckets of money but where productivity is more important than process C++ would not be my choice. Degres of abstraction are more difficult to attain. I would like to hear the opinion of a hardcore C++ programmer. Cause I would like to know the faults in this argument as I am sure there is. The performance question I think is almost irrelvant. If you want performance write C/Assembler in a kernel module perferably but ultimately its comes back to a some marshalling code whose structure has to be easily evolved and adapted its nature is almost disposable as protocols and business rules change. Whats the opinion on gcj ? From: SANTOS, DANIEL (SBCSI) [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen Date: Tue, 6 Jul 2004 12:22:25 -0500 If this is the case then I ask you why Java has been the number one programming language for 4 years now? As was recognized long ago, performance is not everything. And in fact, means little when you can't get your product out the door because you are still trying to chase down memory leaks, buffer overruns and corrupted pointers. As somebody else said, C++ programmers will understand this. Daniel -Original Message- From: Eric VERGNAUD [mailto:[EMAIL PROTECTED] Sent: Sunday, July 04, 2004 11:33 AM To: Tomcat Users List Subject: Re: I've officially decided that JSTL is one of the worstthingsto ever happen le 4/07/04 14:27, SH Solutions [EMAIL PROTECTED] a crit : Right now, I would say that java applications (if well written) are at least half as fast as c applications (also well written). Which means that when your java app is in competition with a native app, youve lost the market. --- Eric VERGNAUD - JLynx Software Cutting-edge technologies and services for software companies web: http://www.jlynx.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] _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 - 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: I've officially decided that JSTL is one of the worstthingsto ever happenWOT
I find your assertion that Jesus was a Software Developer a little challenging. Not to draw conclusions on those sources. I only suggest there is a lack of proof at my disposal. gcj -- jcg Yes I did get it. From: Kannan Sundararajan [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen Date: Tue, 6 Jul 2004 15:31:56 -0400 Is it? Hope you don't lie. Do you? -Original Message- From: Ivan Jouikov [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 3:28 PM To: 'Tomcat Users List' Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen Jesus agrees with me. -Original Message- From: Laurence Arabia [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 11:08 AM To: [EMAIL PROTECTED] Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen Exactly I agree when you are dealing with a team of 30+ delvelopers you either hold reviews every month and tie everyone down to a structure that evolves causing confusion and rewrites or the whole lot goes to pot. Which is fine if you work for a finance house with buckets of money but where productivity is more important than process C++ would not be my choice. Degres of abstraction are more difficult to attain. I would like to hear the opinion of a hardcore C++ programmer. Cause I would like to know the faults in this argument as I am sure there is. The performance question I think is almost irrelvant. If you want performance write C/Assembler in a kernel module perferably but ultimately its comes back to a some marshalling code whose structure has to be easily evolved and adapted its nature is almost disposable as protocols and business rules change. Whats the opinion on gcj ? From: SANTOS, DANIEL (SBCSI) [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen Date: Tue, 6 Jul 2004 12:22:25 -0500 If this is the case then I ask you why Java has been the number one programming language for 4 years now? As was recognized long ago, performance is not everything. And in fact, means little when you can't get your product out the door because you are still trying to chase down memory leaks, buffer overruns and corrupted pointers. As somebody else said, C++ programmers will understand this. Daniel -Original Message- From: Eric VERGNAUD [mailto:[EMAIL PROTECTED] Sent: Sunday, July 04, 2004 11:33 AM To: Tomcat Users List Subject: Re: I've officially decided that JSTL is one of the worstthingsto ever happen le 4/07/04 14:27, SH Solutions Ю [EMAIL PROTECTED] a Иcrit : Right now, I would say that java applications (if well written) are at least half as fast as c applications (also well written). Which means that when your java app is in competition with a native app, youve lost the market. --- Eric VERGNAUD - JLynx Software Cutting-edge technologies and services for software companies web: http://www.jlynx.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] _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 - 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] _ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unexpected error forwarding to login page
Anyone? No responses from last week.. Has anyone see this error message before? Is this the correct Mailing list to post this on? I am trying to use FORM based authentication but I am getting an error in the tomcat console. When I try to goto my web page (http://localhost:8080/E3/common/CustomerInq/index.faces) I get a blank screen. However, if after getting the blank screen I goto the login page (http://localhost:8080/E3/login2.jsp) and type in a correct login page then I will get redirected to the CustomerInq/index.faces page correctly. Tomcat console error: Jun 25, 2004 2:51:46 PM org.apache.catalina.authenticator.FormAuthenticator authenticate WARNING: Unexpected error forwarding to login page java.lang.NullPointerException at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthent icator.java:214) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:504) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:702) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:644) at java.lang.Thread.run(Thread.java:534) This is a snippit of my web.xml... code: !-- Faces Servlet Mapping -- servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.faces/url-pattern /servlet-mapping security-constraint web-resource-collection web-resource-nameresticted/web-resource-name url-pattern/common/*/url-pattern /web-resource-collection auth-constraint role-nameuser/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-page/login.faces/form-login-page form-error-page/loginerror.jsp/form-error-page /login-config security-role role-nameuser/role-name /security-role /web-app and here is the login from the Orielly JSF book that I am trying to use as a starting point... code: html head titleLogin/title link rel=stylesheet type=text/css href=${pageContext.request.contextPath}/style.css /head body bgcolor=white div class=titlePlease Login/div p The page you requested is only available to registered users. Please enter your username and password and click Login. /p form action=j_security_check method=post table class=tablebg tr td align=rightUsername:/td tdinput name=j_username/td /tr tr td align=rightPassword:/td td input type=password name=j_password /td /tr /table input type=submit value=Login /form /body /html Any ideas are will be greatly appreciated. -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Attachment type not allowed
We have received a message with your e-mail address ([EMAIL PROTECTED]) as the sender, with the following as the Subject: TEST . Due to security standards maintained on the McGraw-Hill corporate network, one or more of the attachments contained in your message fall into the category of files that could potentially contain harmful or malicious coding such as viruses. Therefore the entire message was blocked and NOT delivered. If you are in fact the sender of this message, please contact the intended recipient(s): [EMAIL PROTECTED] to make alternate arrangements for delivering the attachments. If you did NOT send the message, no further action is required on your part. We apologize for the inconvenience. From [EMAIL PROTECTED] Tue Jul 06 15:49:10 2004 X-IronPort-RCPT-TO: [EMAIL PROTECTED] From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: TEST Date: Tue, 6 Jul 2004 15:49:12 -0400 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary==_NextPart_000_0004_74614D2D.F09C944A X-Priority: 3 X-MSMail-Priority: Normal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Importing Tomcat 5.0 webapp into Eclipse 3.0?
There is also the sysdeo tomcat plugin which is free and works very well. -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: 06 July 2004 19:50 To: Tomcat Users List Subject: RE: Importing Tomcat 5.0 webapp into Eclipse 3.0? Thanks Lorenzo, I haven't tried either but will give them a look. I have run across a number of references to Myeclipse but haven't pursued it since I just downloaded Eclipse for the first time a few days ago. I guess now is the time Ken -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 2:45 PM To: Tomcat Users List Subject: RE: Importing Tomcat 5.0 webapp into Eclipse 3.0? Importance: High Try www.myeclipseide.com, very easy and afordable? Also, Have you tried Lomboz plugin? http://forge.objectweb.org/projects/lomboz/ (Lomboz 3.0 RC2 release is available) -Mensaje original- De: Januski, Ken [mailto:[EMAIL PROTECTED] Enviado el: Martes, 06 de Julio de 2004 12:02 p.m. Para: Tomcat Users List Asunto: Importing Tomcat 5.0 webapp into Eclipse 3.0? I'm new to both Eclipse and Tomcat 5.0 but have been using Tomcat 4.0 for quite a while. I'd like to move a project I'm working on in Tomcat 4.0 to Tomcat 5.0 and Eclipse 3.0? Has anyone successfully imported a Tomcat webapp into Eclipse 3.0? I continue to get XML validation disabled errors whenever I try. I've run into a deadend trying to figure out that error but trying to import files from a current webapp into Eclipse. I'm about to just go back to finishing off the project in Tomcat 4.0 without Eclipse if I can't figure out how to get them working together in a day or so. Thanks for any ideas, Ken _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/6/2004 12:44 PM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: lost output including a servlet in a JSP which includes a JSP
That would be what I tend to call a named servlet. I find that in a portal environment that named servlets that are not portlets do not seem to be allowed. I want a solution that will allow me to pull in some utility content generation servlets without having named servlets. The solution that I gave below seems to work OK for the servlets themselves but if they include another servlet or jsp then the output of that next level included thing appears to be discarded. Mike Tim Funk wrote: The servlet class should be mapped to a path in web.xml -Tim M.Hockings wrote: Ok, I would tend to agree. But, how can I get a request dispatcher without loading the servlet by classname? i.e., RequestDispatcher rd = request.getRequestDispathcer(/servlets/my-servlet-classname); Mike Tim Funk wrote: This is all wrong. You need to get a RequestDispatcher via: jsp:include or jsp:forward -- or -- RequestDispatcher rd = request.getRequestDispathcer(myPath); rd.include(request, response); -Tim M.Hockings wrote: What I want to do is to include a servlet in a .JSP. For reasons that I won't go into please assume that in the environment that I wish this to run I cannot define a named servlet nor can I load by classname. A simplified version of what I have been doing is below: % Class c = Class.forName(name-of-the-servlet-class); Servlet s = (Servlet) c.newInstance(); s.init(this.getServletConfig()); s.service(request, response); % This sorta works. That is, it will load and run the servlet and the output from the servlet is deliverd to the browser. But if the called servlet class includes a .JSP then the output of that .JSP is never seen though if debugged it does run OK and produces output. The servlet itself is generated by compiling a .JSP with jspc. What am I missing. I realize that this inquiry is not strictly Tomcat related but I figure that the people who will have the knowledge answer to my lost output mystery will be here! Your thoughts on this problem are appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I've officially decided that JSTL is one of the worstthingsto ever happenWOT
Maybe not, but the image it evokes is pretty funny. I wonder how much cursing and swearing he did trying to track down exceptions and memory leaks. :-) --David Laurence Arabia wrote: I find your assertion that Jesus was a Software Developer a little challenging. Not to draw conclusions on those sources. I only suggest there is a lack of proof at my disposal. gcj -- jcg Yes I did get it. From: Kannan Sundararajan [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen Date: Tue, 6 Jul 2004 15:31:56 -0400 Is it? Hope you don't lie. Do you? -Original Message- From: Ivan Jouikov [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 3:28 PM To: 'Tomcat Users List' Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen Jesus agrees with me. -Original Message- From: Laurence Arabia [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 11:08 AM To: [EMAIL PROTECTED] Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen Exactly I agree when you are dealing with a team of 30+ delvelopers you either hold reviews every month and tie everyone down to a structure that evolves causing confusion and rewrites or the whole lot goes to pot. Which is fine if you work for a finance house with buckets of money but where productivity is more important than process C++ would not be my choice. Degres of abstraction are more difficult to attain. I would like to hear the opinion of a hardcore C++ programmer. Cause I would like to know the faults in this argument as I am sure there is. The performance question I think is almost irrelvant. If you want performance write C/Assembler in a kernel module perferably but ultimately its comes back to a some marshalling code whose structure has to be easily evolved and adapted its nature is almost disposable as protocols and business rules change. Whats the opinion on gcj ? From: SANTOS, DANIEL (SBCSI) [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen Date: Tue, 6 Jul 2004 12:22:25 -0500 If this is the case then I ask you why Java has been the number one programming language for 4 years now? As was recognized long ago, performance is not everything. And in fact, means little when you can't get your product out the door because you are still trying to chase down memory leaks, buffer overruns and corrupted pointers. As somebody else said, C++ programmers will understand this. Daniel -Original Message- From: Eric VERGNAUD [mailto:[EMAIL PROTECTED] Sent: Sunday, July 04, 2004 11:33 AM To: Tomcat Users List Subject: Re: I've officially decided that JSTL is one of the worstthingsto ever happen le 4/07/04 14:27, SH Solutions [EMAIL PROTECTED] a crit : Right now, I would say that java applications (if well written) are at least half as fast as c applications (also well written). Which means that when your java app is in competition with a native app, youve lost the market. --- Eric VERGNAUD - JLynx Software Cutting-edge technologies and services for software companies web: http://www.jlynx.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] _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 - 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] _ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger
Re: lost output including a servlet in a JSP which includes a JSP
But it is not spec compliant. YOu can always use the invoker servlet. -Tim M.Hockings wrote: That would be what I tend to call a named servlet. I find that in a portal environment that named servlets that are not portlets do not seem to be allowed. I want a solution that will allow me to pull in some utility content generation servlets without having named servlets. The solution that I gave below seems to work OK for the servlets themselves but if they include another servlet or jsp then the output of that next level included thing appears to be discarded. Mike Tim Funk wrote: The servlet class should be mapped to a path in web.xml -Tim M.Hockings wrote: Ok, I would tend to agree. But, how can I get a request dispatcher without loading the servlet by classname? i.e., RequestDispatcher rd = request.getRequestDispathcer(/servlets/my-servlet-classname); Mike Tim Funk wrote: This is all wrong. You need to get a RequestDispatcher via: jsp:include or jsp:forward -- or -- RequestDispatcher rd = request.getRequestDispathcer(myPath); rd.include(request, response); -Tim M.Hockings wrote: What I want to do is to include a servlet in a .JSP. For reasons that I won't go into please assume that in the environment that I wish this to run I cannot define a named servlet nor can I load by classname. A simplified version of what I have been doing is below: % Class c = Class.forName(name-of-the-servlet-class); Servlet s = (Servlet) c.newInstance(); s.init(this.getServletConfig()); s.service(request, response); % This sorta works. That is, it will load and run the servlet and the output from the servlet is deliverd to the browser. But if the called servlet class includes a .JSP then the output of that .JSP is never seen though if debugged it does run OK and produces output. The servlet itself is generated by compiling a .JSP with jspc. What am I missing. I realize that this inquiry is not strictly Tomcat related but I figure that the people who will have the knowledge answer to my lost output mystery will be here! Your thoughts on this problem are appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: scripts for Workers
If you are talking about workers on the same machine, simply hit each startup.sh et al in turn. If you are talking about workers on many different machines : (On a central PC) Do an array of server IP's with a common username (i.e. tomcat) - (and tomcat directory - i.e. /usr/local/tomcat). The workers must have the ssh key of the central PC in each known_hosts file. Simply iterate round your workers array (for each IP) and use ssh to execure a remote command, $IP $TOMCAT_HOME/bin/startup.sh Pete. Boulay Arnaud wrote: Hi ! I'm looking for scripts that work like startup.sh and shutdown.sh but with multi tomcat targets (workers). those scripts are for linux. Thanks, Arnaud - 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: lost output including a servlet in a JSP which includes a JSP
How does one do that? Would it be spec compliant ? Mike Tim Funk wrote: But it is not spec compliant. YOu can always use the invoker servlet. -Tim M.Hockings wrote: That would be what I tend to call a named servlet. I find that in a portal environment that named servlets that are not portlets do not seem to be allowed. I want a solution that will allow me to pull in some utility content generation servlets without having named servlets. The solution that I gave below seems to work OK for the servlets themselves but if they include another servlet or jsp then the output of that next level included thing appears to be discarded. Mike Tim Funk wrote: The servlet class should be mapped to a path in web.xml -Tim M.Hockings wrote: Ok, I would tend to agree. But, how can I get a request dispatcher without loading the servlet by classname? i.e., RequestDispatcher rd = request.getRequestDispathcer(/servlets/my-servlet-classname); Mike Tim Funk wrote: This is all wrong. You need to get a RequestDispatcher via: jsp:include or jsp:forward -- or -- RequestDispatcher rd = request.getRequestDispathcer(myPath); rd.include(request, response); -Tim M.Hockings wrote: What I want to do is to include a servlet in a .JSP. For reasons that I won't go into please assume that in the environment that I wish this to run I cannot define a named servlet nor can I load by classname. A simplified version of what I have been doing is below: % Class c = Class.forName(name-of-the-servlet-class); Servlet s = (Servlet) c.newInstance(); s.init(this.getServletConfig()); s.service(request, response); % This sorta works. That is, it will load and run the servlet and the output from the servlet is deliverd to the browser. But if the called servlet class includes a .JSP then the output of that .JSP is never seen though if debugged it does run OK and produces output. The servlet itself is generated by compiling a .JSP with jspc. What am I missing. I realize that this inquiry is not strictly Tomcat related but I figure that the people who will have the knowledge answer to my lost output mystery will be here! Your thoughts on this problem are appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: lost output including a servlet in a JSP which includes a JSP
The invoker is just another servlet. http://jakarta.apache.org/tomcat/faq/misc.html#invoker -Tim M.Hockings wrote: How does one do that? Would it be spec compliant ? Mike Tim Funk wrote: But it is not spec compliant. YOu can always use the invoker servlet. -Tim M.Hockings wrote: That would be what I tend to call a named servlet. I find that in a portal environment that named servlets that are not portlets do not seem to be allowed. I want a solution that will allow me to pull in some utility content generation servlets without having named servlets. The solution that I gave below seems to work OK for the servlets themselves but if they include another servlet or jsp then the output of that next level included thing appears to be discarded. Mike Tim Funk wrote: The servlet class should be mapped to a path in web.xml -Tim M.Hockings wrote: Ok, I would tend to agree. But, how can I get a request dispatcher without loading the servlet by classname? i.e., RequestDispatcher rd = request.getRequestDispathcer(/servlets/my-servlet-classname); Mike Tim Funk wrote: This is all wrong. You need to get a RequestDispatcher via: jsp:include or jsp:forward -- or -- RequestDispatcher rd = request.getRequestDispathcer(myPath); rd.include(request, response); -Tim M.Hockings wrote: What I want to do is to include a servlet in a .JSP. For reasons that I won't go into please assume that in the environment that I wish this to run I cannot define a named servlet nor can I load by classname. A simplified version of what I have been doing is below: % Class c = Class.forName(name-of-the-servlet-class); Servlet s = (Servlet) c.newInstance(); s.init(this.getServletConfig()); s.service(request, response); % This sorta works. That is, it will load and run the servlet and the output from the servlet is deliverd to the browser. But if the called servlet class includes a .JSP then the output of that .JSP is never seen though if debugged it does run OK and produces output. The servlet itself is generated by compiling a .JSP with jspc. What am I missing. I realize that this inquiry is not strictly Tomcat related but I figure that the people who will have the knowledge answer to my lost output mystery will be here! Your thoughts on this problem are appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session and connection timeouts
Hello everyone, we're running Tomcat 4.1.27 and my conf/web.xml has a session-timeout of 30, which I understand should override the default 20 minutes. I'm wondering if it actually does, because I see here that someone is saying there's a bug in Tomcat 4 so that sessions always time out after 20 minutes: http://listarchive.cinjug.org/html/users/2004-06/msg9.html My main question is how Tomcat reacts if more and more sessions are opened such that the memory allocated to the JVM gets close to the max--does Tomcat crash/restart, or should it begin expiring the oldest sessions in order to recover memory (even though they might be younger than 20 minutes or whatever the timeout value is)? As for our issue with connection timeouts, we recently bumped it up to 12 in order to make sure large file uploads don't fail (usually less than 1 MB and often less than 500 KB), but I'm wondering if that's a bit excessive even for users on dial-up connections... Thanks for your help, Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Importing Tomcat 5.0 webapp into Eclipse 3.0?
Thanks Matt, I'm using the Sysdeo plugin and that got me to the point where I could build a simple jsp page in Eclipse. But as soon as I started to try importing an entire web app I got the error about XLM validation disabled. That then prompted my question as to whether or not it's possible to import an entire Tomcat webapp into Eclipse using Sysdeo plugin or anything else. I gave myself 1-2 days to stop working on code for project and see if I could get it running under Eclipse. But the second day is drawing to a close without success so I think I may have to finish this project without Eclipse and give it another try when I have more time. I'd hope to use Eclipse refactoring to make some wholesale changes in the application. But I think I'll have to stick to the old way of just editing files one by one, at least for now. Ken -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 3:53 PM To: Tomcat Users List Subject: RE: Importing Tomcat 5.0 webapp into Eclipse 3.0? There is also the sysdeo tomcat plugin which is free and works very well. -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: 06 July 2004 19:50 To: Tomcat Users List Subject: RE: Importing Tomcat 5.0 webapp into Eclipse 3.0? Thanks Lorenzo, I haven't tried either but will give them a look. I have run across a number of references to Myeclipse but haven't pursued it since I just downloaded Eclipse for the first time a few days ago. I guess now is the time Ken -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 2:45 PM To: Tomcat Users List Subject: RE: Importing Tomcat 5.0 webapp into Eclipse 3.0? Importance: High Try www.myeclipseide.com, very easy and afordable? Also, Have you tried Lomboz plugin? http://forge.objectweb.org/projects/lomboz/ (Lomboz 3.0 RC2 release is available) -Mensaje original- De: Januski, Ken [mailto:[EMAIL PROTECTED] Enviado el: Martes, 06 de Julio de 2004 12:02 p.m. Para: Tomcat Users List Asunto: Importing Tomcat 5.0 webapp into Eclipse 3.0? I'm new to both Eclipse and Tomcat 5.0 but have been using Tomcat 4.0 for quite a while. I'd like to move a project I'm working on in Tomcat 4.0 to Tomcat 5.0 and Eclipse 3.0? Has anyone successfully imported a Tomcat webapp into Eclipse 3.0? I continue to get XML validation disabled errors whenever I try. I've run into a deadend trying to figure out that error but trying to import files from a current webapp into Eclipse. I'm about to just go back to finishing off the project in Tomcat 4.0 without Eclipse if I can't figure out how to get them working together in a day or so. Thanks for any ideas, Ken _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/6/2004 12:44 PM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to catch and redirect an error code 500 with Tomcat apache ?
We had to put the error-page definition in this file: jakarta-tomcat-4.1.27-LE-jdk14/webapps/ROOT/WEB-INF/web.xml Restart tomcat and it should be picked up. Tim Julien Oix wrote: Hi everyone I can't manage to redirect a 500 error code page to a customized error page, even I can't see any trouble in my conf's files. # config Linux RedHat 7.1 Apache 1.3.27 (rpm) Tomcat 4.1.18 (rpm) mod_jk 1.2.2 (rpm) #apache myVH.conf ErrorDocument 500 /jsp/500.jsp #tomcat myapps/WEB-INF/web.xml error-page error-code500/error-code location/jsp/500.jsp/location /error-page apache gets a 500 error code # myapps_access_log 193.52.112.54 - - [05/Jul/2004:15:52:49 +0200] GET /Login.do HTTP/1.1 500 3990 but the browser prints the default tomcat error page and not my customized 500.jsp ... PS : there's no compilation problem in my 500.jsp, it could have been the reason why tomcat can't print it and redirects to it's own 500 error page Thanks in advance :) Julien OIX Service Informatique de Gestion - Université de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Fax: 02 40 99 83 84 / abroad + (33) 240 99 83 84 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Tim Kelly, Director of Development Building Engines, Inc. Phone: 781-290-5300 Cell: 508-561-0985 www.buildingengines.com 275 Wyman Street Suite 11 Waltham MA 02451 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: when does Tomcat spawn children and/or fork ?
On Tue, Jul 06, 2004 at 02:41:49PM -0400, Jim Cox wrote: : While using Tomcat 5.0.19 on Solaris 8 I occasionally see more than one : Tomcat process running (as reported by ps -aef). In each case the extra : process is a child of the original Tomcat process, exists for no more than a : few seconds, seems to cause no trouble, and (troublingly?) leaves no trace : in the log files. Since you've ruled out JSP compilation issues, it's time for some detective work: are you able to trace the extra PID? In other words, does the process completley disappear, or does it exec() and thus become some other command? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Files, paths and permissions
On Tue, Jul 06, 2004 at 02:11:00PM -0400, J?r?me Duval wrote: : Yet these lines of code in my servlet: : File target = new File(Msi\\nouveau dossier\\,Commande.web); : if(!target.exists()) { : System.out.println(The file doesn't exist!); : } : FileWriter fileOutput = new FileWriter(target,true); : : produce: The file doesn't exist! Does the owner of the Tomcat process have write access to that folder? If you're running Tomcat as a service, I understand it has different perms than if you fire it up directly as the logged-in user. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble starting Tomcat4.1.18 on linux.
On Tue, Jul 06, 2004 at 07:21:56PM -, Kamaleshwaran Sivalingam wrote: : But then, I could not get the page when i gave http://localhost:8080; in : mozilla web : browser. Can u guys help me out?. There are innumerable reasons why Tomcat would fail to start. What error messages do you see in the logs? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session and connection timeouts
On Tue, Jul 06, 2004 at 03:32:15PM -0500, Stephen Charles Huey wrote: : My main question is how Tomcat reacts if more and more sessions are : opened such that the memory allocated to the JVM gets close to the : max--does Tomcat crash/restart, or should it begin expiring the oldest : sessions in order to recover memory (even though they might be younger : than 20 minutes or whatever the timeout value is)? At this point you're talking less about Tomcat and more about Java in general. If all objects in the heap are not GC'able, then the JVM will throw an OutOfMemoryException. Tomcat may recover from these and give the user a 500 error. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache miss handling jsp files
I have tomcat 4 installed on a RedHat based server. I have aliases set up for a test domain. The site works fine when going to the test domain :8080, but when I try to go to the site without port :8080 the original tomcat page comes up. So it seems tomcat is working properly because the 8080 port answers correctly. So when apache answers it seems to ignore the DocumentRoot's index.jsp and serves the tomcat page. If I go to a phpinfo.php page within the DocumentRoot apache will answer properly. Can someone shed some light as to what I'm missing in the server set up. Thank you in advance for any help you can provide - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to find WEB Server ADSI
Hi all, I am installing Tomcat 5 with IIS. Tomcat works fine at 8080 port, but I could not put it to run with IIS although I have followed instructions (isapi redirector config, edit register, restart IIS ...and so on) After that I tried to run the install4iis.js script but it gave the following error message: 1 argc 0 optind 0 Error processing install4iis.js Unable to find Web Server ADSI object... The 'Default Web Site' does not exists. Could someone give me a help? Thanks a lot Gualberto Rabay Faculdade de Informatica de Passos Brazil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache miss handling jsp files
The mapping for file extensions to tomcat is missing. Typically this is in a configuration file, I use mod_jk, so in my case I've got it in a mod_jk.conf file. Your webapp's configuration in the file should look something like this: Alias /imw /web_app/tomcat/webapps/imw Directory /web_app/tomcat/webapps/imw Options Indexes FollowSymLinks /Directory JkMount /imw/* ajp13 Location /imw/WEB-INF/ AllowOverride None deny from all /Location This isn't the best example as I've been lazy and told apache to pass all requests for imw to tomcat for handling, you can change the JkMount line to specify the file masks for the files to be routed to tomcat. Typically you'd want to map all *.jsp, *.do, etc to tomcat. That'd look something like this: JkMount /imw/*.jsp ajp13 JkMount /imw/*.do ajp13 You can have as many JkMount statements as you want (within reason), in most cases you'll find that you don't need more than 5 or 6. Generally getting *.jsp and *.do (assuming you're using struts) should do it. If you have a servlet that handles all requests for a given subdirectory you can do that by just adding the directory after the context and then having * for the file match. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: James Pohl [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 2:42 PM To: [EMAIL PROTECTED] Subject: Apache miss handling jsp files I have tomcat 4 installed on a RedHat based server. I have aliases set up for a test domain. The site works fine when going to the test domain :8080, but when I try to go to the site without port :8080 the original tomcat page comes up. So it seems tomcat is working properly because the 8080 port answers correctly. So when apache answers it seems to ignore the DocumentRoot's index.jsp and serves the tomcat page. If I go to a phpinfo.php page within the DocumentRoot apache will answer properly. Can someone shed some light as to what I'm missing in the server set up. Thank you in advance for any help you can provide - 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: howto disable webdav extensions / methods?
Patrick, The only code in tomcat that understands PROPFIND is the webdav servlet. I have justed tried using telnet to PROPFIND a resource that isn't mapped to the webdav servlet and I get the expected 501 response. What do you see if you try: telenet open localhost 8080 PROPFIND http://localhost:8080/index.jsp HTTP/1.1 Mark -Original Message- From: Patrick Glennon [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 5:19 PM To: 'Tomcat Users List' Subject: RE: howto disable webdav extensions / methods? I tried that, and even un-deployed the webdav app, but not only are the methods still available, they still work. PROPFIND http://url/directory will still work, for example. This leads me to believe that the webdav app has very little to do with webdav functionality, but I can't find where else it is set. -Patrick -Original Message- From: PATTUS Jean-Philippe [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 10:35 AM To: Tomcat Users List Subject: RE: howto disable webdav extensions / methods? did you try to stop the application webdav under Tomcat Manager. I think if you stop this application, all the webdav methods will be unavailable. -Message d'origine- De : Tim Funk [mailto:[EMAIL PROTECTED] Envoye : mardi 6 juillet 2004 17:04 A : Tomcat Users List Objet : Re: howto disable webdav extensions / methods? How do you mean disable? The default servlet has an option to allow/disallow DELETE, etc. Oterwise - you can define a security constraint in web.xml on these methods and have them no be accessible by any role. -Tim Patrick Glennon wrote: Anyone have any thoughts on this? Maybe I'll try posting on the developer list, for the life of me, I can't seem to find where to shut this off. _ From: Patrick Glennon Sent: Thursday, July 01, 2004 4:52 PM To: 'Tomcat Users List' Subject: howto disable webdav extensions / methods? How do I disable the webdav extensions? Basically, I don't want to allow any of the webdav methods ( PROPFIND, OPTIONS, COPY, DELETE, etc... ), but I cannot find where to disable or limit them. This is running tomcat direct, I know how to do it with Apache, I just don't know how to do it with tomcat. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: when does Tomcat spawn children and/or fork ?
: While using Tomcat 5.0.19 on Solaris 8 I occasionally see more than one : Tomcat process running (as reported by ps -aef). In each case the extra : process is a child of the original Tomcat process, exists for no more than a : few seconds, seems to cause no trouble, and (troublingly?) leaves no trace : in the log files. Since you've ruled out JSP compilation issues, it's time for some detective work: are you able to trace the extra PID? In other words, does the process completley disappear, or does it exec() and thus become some other command? -QM All indications are that it goes away, apparently within a few seconds. I agree about the need for detective work, just hoping to discover the known areas where Tomcat can be expected to spawn new processes (and set up test cases to examine those first). In the short-term I'll probably add a log stmt or two directly to startup.sh / catalina.sh to either catch the invocation or rule that out. By the way, the only interesting thing I've found so far is that it appears during periods of heavy load (%CPU-wise).
RE: when does Tomcat spawn children and/or fork ?
I have a webapp that runs an external process to do some processing. When that's running I have an extra tomcat process listed when I do a ps. It's not really tomcat, but something about the way that the JVM forks processes makes it look like it's another tomcat. When the processes finishes the extra tomcat goes away and I'm back down to one. It could be that you've got something simliar going on in the webapp(s) that you're running. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Jim Cox [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 2:58 PM To: 'Tomcat Users List' Subject: RE: when does Tomcat spawn children and/or fork ? : While using Tomcat 5.0.19 on Solaris 8 I occasionally see more than one : Tomcat process running (as reported by ps -aef). In each case the extra : process is a child of the original Tomcat process, exists for no more than a : few seconds, seems to cause no trouble, and (troublingly?) leaves no trace : in the log files. Since you've ruled out JSP compilation issues, it's time for some detective work: are you able to trace the extra PID? In other words, does the process completley disappear, or does it exec() and thus become some other command? -QM All indications are that it goes away, apparently within a few seconds. I agree about the need for detective work, just hoping to discover the known areas where Tomcat can be expected to spawn new processes (and set up test cases to examine those first). In the short-term I'll probably add a log stmt or two directly to startup.sh / catalina.sh to either catch the invocation or rule that out. By the way, the only interesting thing I've found so far is that it appears during periods of heavy load (%CPU-wise). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I've officially decided that JSTL is one of the worstthingsto ever happen
If this is the case then I ask you why Java has been the number one programming language for 4 years now? Source of this statistic? I assumed that this was fairly common knowledge. I remember when it surpassed C++ in Febuary of 2000 (I thought at the time in development hours). Having been a Java programmer since 1997, this was a pretty big deal for me. I even remembered the month/year it happened (which made it easire for me to find this report). So here is the original report, a Bloor Research study from Febuary of 2000. It even has a cute little graph that plots the various languages-- http://www.bloor-research.com/research_library.php?pid=282 Now that I look back at it I see that this is when the *demand* for java skills surpassed that of C++ skills. It looks like it was just March of last year (http://www.sun.com/aboutsun/media/presskits/edge2003/factsheet.pdf) that that Java actually surpassed C++ in development hours. This was of course the eventual outcome of it's demand surpassing all other skills. The data from this Sun press release is from the Gartner Group BTW. Java is King, there are really no ifs, ands or butts about it. As to your performance issues, I don't have them so I can only sugest that you can examine your environement, your compiler options (are you using hotspot?) and your getters. All of my bottlenecks are in my DB calls. I have done performance analysis and never came up in my EL. As I sugested earlier, maybe you can run hprof and see where the bottleneck really is? Also, I considered myself a fairly hardcode C++ developer (having done it from '95 to 2002). If I am ever in a situation where my memory usage is critical, I'm almost certainly in C or C++. If performance is important, I consider C or C++. But IPC, threading, and networking is so phenominally better on Java not to mention the benefits of garbage collection and all of it's other features that I am hard pressed to leave it or go JNI. I did need JNI recently for some file system stuff that I wanted tweaked (traversing file systems with 100s of thousands of files). Daniel As was recognized long ago, performance is not everything. And in fact, means little when you can't get your product out the door because you are still trying to chase down memory leaks, buffer overruns and corrupted pointers. When performance dependes on whether you use %=hello% or ${hello}, I'll stick with the first one, considering that it boosts performance up by like 5 times. As somebody else said, C++ programmers will understand this. Daniel -Original Message- From: Eric VERGNAUD [mailto:[EMAIL PROTECTED] Sent: Sunday, July 04, 2004 11:33 AM To: Tomcat Users List Subject: Re: I've officially decided that JSTL is one of the worstthingsto ever happen le 4/07/04 14:27, SH Solutions [EMAIL PROTECTED] a crit : Right now, I would say that java applications (if well written) are at least half as fast as c applications (also well written). Which means that when your java app is in competition with a native app, youve lost the market. --- Eric VERGNAUD - JLynx Software Cutting-edge technologies and services for software companies web: http://www.jlynx.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] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 - 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]
how many sessions in use?
Is there any way to find out how many sessions are currently in use? I'm ultimately trying to get at how much memory is being used per session...if there's no way to really get at this without a profiler tool, do any of you use a particular one with Tomcat applications? JFluid, JProbe, etc? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Importing Tomcat 5.0 webapp into Eclipse 3.0?
On 7/7/2004 4:38 AM, Januski, Ken wrote: Thanks Matt, I'm using the Sysdeo plugin and that got me to the point where I could build a simple jsp page in Eclipse. But as soon as I started to try importing an entire web app I got the error about XLM validation disabled. That then prompted my question as to whether or not it's possible to import an entire Tomcat webapp into Eclipse using Sysdeo plugin or anything else. I gave myself 1-2 days to stop working on code for project and see if I could get it running under Eclipse. But the second day is drawing to a close without success so I think I may have to finish this project without Eclipse and give it another try when I have more time. I'd hope to use Eclipse refactoring to make some wholesale changes in the application. But I think I'll have to stick to the old way of just editing files one by one, at least for now. Ken for me i used eclipse 3 and lomboc 3rc2, if you have existing webapps just create a lomboz j2ee project from eclipse then open explorer drag webapp files to appropriate folders in your j2ee project :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configure Tomcat to default to index.jsp
How is Tomcat configured to default to index.jsp? Here is a test app, but it is necessary to give the entire path: http://myhome.com/helloworld/index.jsp instead of: http:// myhome.com/helloworld/ What needs to be configured on Linux and Windows XP? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: when does Tomcat spawn children and/or fork ?
You run the external process via Runtime.getRuntime().exec(...) ? If so, that should be easy enough for me to find in my JSPs... -Original Message- From: Mike Jackson To: 'Tomcat Users List' Sent: 7/6/2004 6:10 PM Subject: RE: when does Tomcat spawn children and/or fork ? I have a webapp that runs an external process to do some processing. When that's running I have an extra tomcat process listed when I do a ps. It's not really tomcat, but something about the way that the JVM forks processes makes it look like it's another tomcat. When the processes finishes the extra tomcat goes away and I'm back down to one. It could be that you've got something simliar going on in the webapp(s) that you're running. --mikej -=- mike jackson [EMAIL PROTECTED]
RE: Configure Tomcat to default to index.jsp
In the web.xml file that goes into your webapps WEB-INF/, there is a welcome-file-list/ you can add the following: welcome-file-list welcome-file index.jsp /welcome-file welcome-file index.html /welcome-file /welcome-file-list Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Dave Kennedy [mailto:[EMAIL PROTECTED] :: Sent: Wednesday, July 07, 2004 2:13 AM :: To: [EMAIL PROTECTED] :: Subject: Configure Tomcat to default to index.jsp :: :: How is Tomcat configured to default to index.jsp? :: :: Here is a test app, but it is necessary to give the entire path: :: http://myhome.com/helloworld/index.jsp :: :: instead of: :: http:// myhome.com/helloworld/ :: :: What needs to be configured on Linux and Windows XP? :: :: :: :: - :: 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: I've officially decided that JSTL is one of the worstthingsto ever happen
Ok let's settle this argument simple. Tonight, I'll ask my Christian Science friend to talk to Jesus, and ask him the following: Jesus, if EL really DOES decrease performance significantly, and should not be used at all, please give me absolutely NO sign. However, if EL is a great thing and should be used by everyone, please give me a sign. I'll report to you in the morning and let you know what was God's opinion on that. -Original Message- From: SANTOS, DANIEL (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 4:02 PM To: Tomcat Users List Subject: RE: I've officially decided that JSTL is one of the worstthingsto ever happen If this is the case then I ask you why Java has been the number one programming language for 4 years now? Source of this statistic? I assumed that this was fairly common knowledge. I remember when it surpassed C++ in Febuary of 2000 (I thought at the time in development hours). Having been a Java programmer since 1997, this was a pretty big deal for me. I even remembered the month/year it happened (which made it easire for me to find this report). So here is the original report, a Bloor Research study from Febuary of 2000. It even has a cute little graph that plots the various languages-- http://www.bloor- research.com/research_library.php?pid=282 Now that I look back at it I see that this is when the *demand* for java skills surpassed that of C++ skills. It looks like it was just March of last year (http://www.sun.com/aboutsun/media/presskits/edge2003/factsheet.pdf) that that Java actually surpassed C++ in development hours. This was of course the eventual outcome of it's demand surpassing all other skills. The data from this Sun press release is from the Gartner Group BTW. Java is King, there are really no ifs, ands or butts about it. As to your performance issues, I don't have them so I can only sugest that you can examine your environement, your compiler options (are you using hotspot?) and your getters. All of my bottlenecks are in my DB calls. I have done performance analysis and never came up in my EL. As I sugested earlier, maybe you can run hprof and see where the bottleneck really is? Also, I considered myself a fairly hardcode C++ developer (having done it from '95 to 2002). If I am ever in a situation where my memory usage is critical, I'm almost certainly in C or C++. If performance is important, I consider C or C++. But IPC, threading, and networking is so phenominally better on Java not to mention the benefits of garbage collection and all of it's other features that I am hard pressed to leave it or go JNI. I did need JNI recently for some file system stuff that I wanted tweaked (traversing file systems with 100s of thousands of files). Daniel As was recognized long ago, performance is not everything. And in fact, means little when you can't get your product out the door because you are still trying to chase down memory leaks, buffer overruns and corrupted pointers. When performance dependes on whether you use %=hello% or ${hello}, I'll stick with the first one, considering that it boosts performance up by like 5 times. As somebody else said, C++ programmers will understand this. Daniel -Original Message- From: Eric VERGNAUD [mailto:[EMAIL PROTECTED] Sent: Sunday, July 04, 2004 11:33 AM To: Tomcat Users List Subject: Re: I've officially decided that JSTL is one of the worstthingsto ever happen le 4/07/04 14:27, SH Solutions [EMAIL PROTECTED] a crit : Right now, I would say that java applications (if well written) are at least half as fast as c applications (also well written). Which means that when your java app is in competition with a native app, youve lost the market. --- Eric VERGNAUD - JLynx Software Cutting-edge technologies and services for software companies web: http://www.jlynx.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] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
java.lang.ClassCastException when casting from Object to a desired object
Hi, I have a servlet name TestGeneralServiceMenuGenerator that forwards a java object name, BasicUserInformationDO, to a jsp file that is in another web-app. However, these two web-app are in the same VMs. The jsp file keep getting java.lang.ClassCastException when it trys to casting the object to the desire object, BasicUserInformationDO. Any help are greatly appreciated. Kam Lung Leung ** code that forwads the BasicUserInformationDO to the jsp file. ** try { // Initialize BasicUserInformationDO basicUserInformationDO = new BasicUserInformationDO(firstName, lastName, middleName, iD, subID, numberServices, ServiceTypesSubscribed); if (basicUserInformationDO == null) { log.fatal(basicUserInformationDO is null ); throw new java.lang.Throwable(Can not create basicUserInformationDO object); } ServletContext context = request.getSession().getServletContext().getContext(/VoiceComponentTier); if (context == null) { log.fatal(ServletContext is null ); throw new java.lang.Throwable(Don't have the VoiceComponentTier Context); } RequestDispatcher reqDispatcher = context.getRequestDispatcher(/GeneralServiceMenuGenerator.jsp); request.setAttribute(basicUserInfoDO, basicUserInformationDO); reqDispatcher.forward(request, response); } catch (ServletException servletEx) { log.fatal(ServletException : + servletEx.getStackTrace()); request.getSession().getServletContext().log(Servlet Exception , new Throwable(servletEx.toString())); } ** Code on the jsp file that causes java.lang.ClassCastException ** BasicUserInformationDO basicUserInfo = (BasicUserInformationDO)request.getAttribute(basicUserInfoDO); ** debug information from the log file. ** - Root Cause - java.lang.ClassCastException at org.apache.jsp.GeneralServiceMenuGenerator_jsp._jspService(GeneralServiceMenuGenerator_jsp.java:277) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356) at com.wlwa.TestInfra.VoiceComponent.Dispatcher.TestGeneralServiceMenuGenerator.doPost(TestGeneralServiceMenuGenerator.java:95) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I've officially decided that JSTL is one of the worstthingsto ever happen
To beat a dead horse, religious arguments notwithstanding ... I agree that I find taglibs impossible to understand. I end up compiling the jsp to a servlet, then using the servlet as a skeleton that I refine and tune, and I finally dispose of the original jsp simply because I can't wrap my head around taglibs. To me, Java is simpler and easier for me to understand than the black magic of the taglibs. However, GUI designers aren't programmers, and they typically find java as impossible to understand as I find taglibs. If your shop has good separation of GUI and applications disciplines, taglibs are an indispensable bridge between the disciplines. C versus C++ ... In my comparative performance tests of Java (sun jre 1.4.2 b03) versus compiled languages, Java had raw performance within 10% of the compiled language. This was not an exhaustive test, but one that was intended to hit Java's weakest point relative to a native compiler. Both sets of code were as identical as the language intents allowed, and were iterated through several identical optimizations to pinpoint different bottlenecks. The 10% performance hit was pinpointed to the stackframe that is built with every {} pair in Java, which in turn eliminates an entire class of memory leak errors. For a 10% performance hit, I can live with Java for application programming. However, I recognize that there are places where that hit is critical, and I would use a compiled language (probably not C++, I'd prefer pascal derivatives or even assembly, but language is a personal preference, not a functional issue now days). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Embedded tomcat
Just trying to embed tomcat. I'm using the tomcat 5 embedded release. I'm using the following code: Embedded embeddedTomcat = new Embedded(); MemoryRealm memRealm = new MemoryRealm(); embeddedTomcat.setRealm( memRealm ); Engine engine = embeddedTomcat.createEngine(); Host host = embeddedTomcat.createHost( localhost, System.getProperty( catalina.home ) + /webapps ); engine.addChild( host ); Context rootCtx = embeddedTomcat.createContext( /seaview, new File(./webroot).getCanonicalPath() ); rootCtx.setPrivileged( true ); host.addChild( rootCtx ); embeddedTomcat.addEngine( engine ); Connector httpConnector = embeddedTomcat.createConnector( (java.net.InetAddress) null, 8080, false ); embeddedTomcat.addConnector( httpConnector ); try { embeddedTomcat.start(); } catch ( org.apache.catalina.LifecycleException ex ) { System.out.println( Startup failed ); System.out.println( ex.getMessage() ); } and I get this error. 13:11:15,168 INFO - Starting tomcat server 13:11:16,528 INFO - Starting Servlet Engine: Apache Tomcat/5.0.25 13:11:16,715 INFO - XML validation disabled javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory. java:99) at org.apache.commons.modeler.util.DomUtil.readXml(DomUtil.java:284) at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute(Mbeans DescriptorsDOMSource.java:130) at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescriptor s(MbeansDescriptorsDOMSource.java:120) at org.apache.commons.modeler.Registry.load(Registry.java:819) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909) at org.apache.commons.modeler.Registry.findDescriptor(Registry.java:992) at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:696) at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:1047) at org.apache.commons.modeler.Registry.registerComponent(Registry.java:859) at org.apache.catalina.loader.WebappLoader.init(WebappLoader.java:612) at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:644) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4209) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.startup.Embedded.start(Embedded.java:976) ... Xerces _is_ on the classpath so I'm not sure what's going wrong here. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I've officially decided that JSTL is one of the worstthingsto ever happenWOT
I find your assertion that Jesus was a Software Developer a little challenging. Jesus is the greatest Software Developer that has ever Graced this earth. (So to speak.) Of course He doesn't usually use either Java or C, and, some of the languages He uses, I'm not sure we'd recognize as such. Not to draw conclusions on those sources. I only suggest there is a lack of proof at my disposal. Only you can change that. ;-) -- Joel [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I've officially decided that JSTL is one of the worstthingsto ever happen
Oh, man, ... Ok let's settle this argument simple. Tonight, I'll ask my Christian Science friend to talk to Jesus, Why not ask Jesus yourself? Prayer is open to anyone, and is not limited to the night. and ask him the following: Jesus, if EL really DOES decrease performance significantly, and should not be used at all, please give me absolutely NO sign. However, if EL is a great thing and should be used by everyone, please give me a sign. Are you sure you haven't been setting us up just so you could say that? I'll admit, the 2LA for Expression Language causes me pause, but, ... Well, just in case you're serious, I'll mention Matthew 12, ca. 39. Might also mention Gideon and his fleece. I'll report to you in the morning and let you know what was God's opinion on that. I have an idea what He would say: Use the tools you understand. Work hard. Be happy. But don't insult other people by insulting their tools. And don't tweak people just because they use strange 2LAs for their runtime expression languages. I might be wrong, of course. -- Joel [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mail Delivery (failure alekseev@univer.omsk.su)
Message sent from [EMAIL PROTECTED] infected by virus and has not been delivered. Viruses: infected with Win32.HLLM.Netsky.35328 Original message was stored in the archive. To receive original message please contact postmaster: [EMAIL PROTECTED] Archive record: archive.msg.HGxrVk Antivirus service provided by Dr.Web Daemon (www.sald.com) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help for jsp
Hi I try to run jsp from a servlet Servlet was working good without jsp. Any help welcome. Andre To try I first make a very basic jsp page : html body bgcolor=white h1 First try of : % out.print (request.getAttribute(servletName).toString()); % Servlet. /h1 /html The doGet method is also very simple : String jspPage = /MFGserviceViewer.jsp; request.setAttribute (servletName, mfg_Servlet); getServletConfig().getServletContext().getRequestDispatcher(jspPage).forward(request, response); but I get following errors : 2004-07-07 08:42:44 SingleSignOn[localhost]: Process request for '/Mfg_Scm/servlet/mfg_Servlet' 2004-07-07 08:42:44 SingleSignOn[localhost]: Checking for SSO cookie 2004-07-07 08:42:44 SingleSignOn[localhost]: SSO cookie is not present 2004-07-07 08:42:45 ApplicationDispatcher[/Mfg_Scm] Servlet.service() for servlet jsp threw exception java.lang.SecurityException: class org.apache.tools.ant.taskdefs.optional.IContract's signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(ClassLoader.java:599) at java.lang.ClassLoader.defineClass(ClassLoader.java:532) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at org.apache.tools.ant.Project.init(Project.java:274) at org.apache.jasper.compiler.Compiler.getProject(Compiler.java:164) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:339) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:455) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:752) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:516) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:453) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:369) at org.compiere.mfg_scm.mfg_Servlet.controller.ControllerServlet.processRequest(Unknown Source) at org.compiere.mfg_scm.mfg_Servlet.controller.ControllerServlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:258) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:513) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:196) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175) at