Instantiating/declaring classes in JSP (Was: simple question)
At 11:55 PM 19/07/01, you wrote: (And could you possibly use a more descriptive title in future? Simple question could be anything, and a lot of people would delete it immediately without reading...) I know this is somewhat off topic, but I have looked everywhere and can't find the answer to this simple question... Is there a way to test and see whether a variable has been instantiated and if it hasn't, instantiate it? Object myObject; if (myObject == null) { myObject = new Object(); } Tada! My problem is that I am working on an application that makes use of jsp's that are included inside many others. I want to use a bean, but if I call it by a different name in every spot, then they don't share information. If I use the same name, and the containing jsp has already declared that it is using the bean, then it gives me an error and says it has already been declared. Any ideas on how I can get around this? Thank you in advance for any help!!! Ah! A different question... Try jsp:usebean... If the bean is declared, it'll use it. If not, it'll instantiate a new one. If you want to know whether you've instantiated it, or if you are reusing a previously instatiated class, it's a bit more difficult. The only way I can think of is by setting a variable internally on instantiation and checking that. Of course, you'd have to ensure that all the developers do the same thing. Jim -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 One should never generalize.
tomcat.policy limitation?
I am trying to grant a servlet in the /usr/tomcat/jakarta-tomcat-3.2.2/webapps/ROOT/WEB-INF/classes/joe/ directory write permissions to the /test.txt file. //--- The following code snippet from my tomcat.policy file seems to work correctly; I can write to the /test.txt file just fine with my servlet. grant codeBase file:/usr/tomcat/jakarta-tomcat-3.2.2/webapps/ROOT/- { permission java.io.FilePermission /test.txt, write; }; //--- BUT, the following code snippet does NOT work correctly. grant codeBase file:/usr/tomcat/jakarta-tomcat-3.2.2/webapps/ROOT/WEB-INF/- { permission java.io.FilePermission /test.txt, write; }; I get the following error message :-(( Error: 500 Location: /servlet/joe.joe1 Internal Servlet Error: java.security.AccessControlException: access denied (java.io.FilePermission /test.txt write) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272) at java.security.AccessController.checkPermission(AccessController.java:399) at java.lang.SecurityManager.checkPermission(SecurityManager.java:545) at java.lang.SecurityManager.checkWrite(SecurityManager.java:978) at java.io.FileOutputStream.(FileOutputStream.java:96) at java.io.FileWriter.(FileWriter.java:52) at joe.joe1.doGet(joe1.java:64) ... etc. //--- What the heck?!?! Anyone have any ideas for me to try? I want to create a bunch of user/programmer subdirectories like /usr/tomcat/jakarta-tomcat-3.2.2/webapps/ROOT/WEB-INF/classes/joe/ /usr/tomcat/jakarta-tomcat-3.2.2/webapps/ROOT/WEB-INF/classes/tom/ /usr/tomcat/jakarta-tomcat-3.2.2/webapps/ROOT/WEB-INF/classes/henry/ etc. so that I can grant all servlets in these directories and subdirectories read/write access to their own separate directory structure so they won't be able to write over anyone elses files, including the system files, of course. This is a wierd one. Thanks for any help! Joe
RE: mod_jk.so for linux
unsubscribe me please ... DISCLAIMER : The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. Unless otherwise specifically stated by the sender, any documents or views presented are solely those of the sender and do not constitute official documents or views of The Indonesian Bank Restructuring Agency (IBRA). If you have received this communication in error, please notify us immediately by responding to this email and then delete it from your system. IBRA is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.
Re: Fw: Unable to start tomcat server
Hi, Is this windows?. If so then in your DOS session you have to set a sufficiently high enough value for the initial environment in the memory tab of your dos session (under properties). This is described in section 6.5 of the release notes for tomcat 3.2.2. Hope it helps Jeff On Friday 20 July 2001 16:21, you wrote: - Original Message - From: Manish Pradhan To: Filip Hanik Sent: Friday, July 20, 2001 9:24 AM Subject: Re: Unable to start tomcat server Dear sir, Thank you for your help in setting the path of java_home tomcat_home. But even after setting the path ,there is a problem as follows There is a message when I start the startup.bat as follows Out of environment space Unable to set the classpath dynamically Note:To set the Classpath dynamically on the Win9x systems Only Dos 8.3 names may be used in Tomcat_Home Setting your classpath statically Out of environment space Using CLASSPATH: Starting Tomcat in new Window Bad Command or filename Kindky help me. - Original Message - From: Filip Hanik To: [EMAIL PROTECTED] ; Manish Pradhan Sent: Thursday, July 19, 2001 11:36 PM Subject: RE: Unable to start tomcat server On your desktop, right click on My Computer select Properties under the environment variable settings, create a new variable called JAVA_HOME and have it point to your java installation this doc explains it http://sourceforge.net/docman/display_doc.php?docid=5651group_id=26042 Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Manish Pradhan [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 10:56 AM To: [EMAIL PROTECTED] Subject: Unable to start tomcat server Kindly explain to me how to configure java_home or tomcat_home property.Because everytime ,I go tostart the tomcat webserver 3.2.2 on my windows 98 system click on start up.bat there is a messageyou must set JAVA_HOME to point at your Java Development Kit Installation.Kindly oblige. Content-Type: text/html; charset=iso-8859-1; name=Attachment: 1 Content-Transfer-Encoding: quoted-printable Content-Description:
ACME gif encoder - no red ?
Has anyone experienced a problem creating gifs with the ACME gif encoder whereby the colors aren't right. The red component gets zeroed, the green component is what the red should have been and the blue is what the green should have been. Any help appeciated. SteveQ.
Re: [ANNOUNCEMENT] Tomcat 4.0-beta-6 Released
Ok, So where is the src for the updated Apache connector? It used to be under src/connectors. I've downloaded the binary and src tarballs and can't see it anywhere? Or does you note imply that the connector will be released seperately Jeff On Friday 20 July 2001 17:20, you wrote: The Tomcat team is proud to announce the availability of the latest beta release of Tomcat 4.0. This next-generation servlet and JSP container boasts the following new and improved features: * Fix for the security vulnerability reported on July 16, 2001. * Support for the Proposed Final Draft 3 versions of the Servlet 2.3 and JSP 1.2 Specifications. * Many bug fixes and performance improvements. * Support for executing external CGI scripts and programs. * An updated version of the Apache web connector (binaries for various platforms will be available soon) * A new experimental installer for the Windows platform that lets you download and install Tomcat 4.0 in a manner typical of other Windows based programs (including installation of Tomcat as an NT service). Binary distributions of Tomcat 4.0-beta-6 are available at: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b6/ and source distributions are available at: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b6/src/ Please see the included RELEASE-NOTES-4.0-B6.txt file for details about the changes included in this release. Craig McClanahan
Too many process?
Hi Friends, Please excuse me if this question has been asked on this list a number of times.I am trying to install Tomcat 3.2.2 from RPM on RH Linux 6.2 using j2sdk 1.2.2 FCS from blackdown.org. I am able to start tomcat but it starts a lot of java process immediately without even anybody accessing the Tomcat server. [root@leo /root]#pstree | grep java |-java---java---39*[java] Is this how it should behave or am I missing something. Would appreciate any hints from the gurus
Please help with this error
Internal Servlet Error: javax.servlet.ServletException: Unable to locate a login configuration at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002fSearch_0002ejspSearch_jsp_4._jspService(_0002fSearch_0002ejspSearch_jsp_4.java:134) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.SecurityException: Unable to locate a login configuration at com.sun.security.auth.login.ConfigFile.getAppConfigurationEntry(ConfigFile.java:221) at javax.security.auth.login.LoginContext.init(LoginContext.java:172) at javax.security.auth.login.LoginContext.(LoginContext.java:319) at LoginBean.getAuthenticated(LoginBean.java:47) at _0002fSearch_0002ejspSearch_jsp_4._jspService(_0002fSearch_0002ejspSearch_jsp_4.java:91) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484)
Error:Unable to locate login configuration?
I was wondering could anyone help me with an error I receive when I run my JSP through Tomcat 3.2.1. I receive the error: javax.servlet.ServletException: unable to instantiate LoginConfiguration I am using a javabean for authentication which uses JAAS and this contains a login.config file.It works on a test program in Jbuilder but it will not run on tomcat with my JSP's. I would be grateful if anyone could help me. Thanks
Antwort: Re: SSL Apache Tomcat (NameBased VirtualHosts)
I think it depends on the apache you use. If it uses mod_ssl you can use one apache for http and https if you use an precompiled package (like the apache-ssl in debian) you need to apaches if you have mod_ssl the virtual hosts should look like this Listen [IP-ADDRESS]:80 VirtualHost [IP-ADDRESS]:80 ServerName [HOST.DOMAIN] DocumentRoot /web/[HOST.DOMAIN]/80/htdocs ErrorLog /web/[HOST.DOMAIN]/80/logs/error_log CustomLog /web/[HOST.DOMAIN]/80/logs/transfer_log combined /VirtualHost IfDefine SSL Listen [IP-ADDRESS]:443 VirtualHost [IP-ADDRESS]:443 ServerName [HOST.DOMAIN] DocumentRoot /web/[HOST.DOMAIN]/443/htdocs ErrorLog /web/[HOST.DOMAIN]/443/logs/error_log CustomLog /web/[HOST.DOMAIN]/443/logs/transfer_log sslrequest SSLLog /web/[HOST.DOMAIN]/443/logs/ssl_engine_log SSLEngine on SSLCertificateFile /opt/apache/conf/ssl.crt/[HOST.DOMAIN].crt SSLCertificateKeyFile /opt/apache/conf/ssl.key/[HOST.DOMAIN].key /VirtualHost /IfDefine gruss stefan Lars Nielsen LindAn: [EMAIL PROTECTED] moonie@worldKopie: online.dk Thema: Re: SSL Apache Tomcat (NameBased VirtualHosts) 19.07.01 22:24 Bitte antworten an tomcat-user It dows not function correct. So I'll have to start one Apache instance with the httpd.conf file (port80) and another with the httpd_ssl.conf file (port443 - made by myself). Just as it is written in Professional Apache from Wrox. It is apparently the one and only way to solve the problems with NameBased VirtualHost and mod_ssl. I have tried to use the apache, apachectl command, and also the /ect/rc.d/init.d/httpd start command with -f filename, but it won't start with the SSL settings. The apache and apachectl won't work at all. Any solutions. - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 3:11 PM Subject: AW: SSL Apache Tomcat (NameBased VirtualHosts) 1. this is a bit off topic for questions like that, it's better go to the apache list 2. you don't have to setup 2 apaches: just define two virtual hosts in httpd.conf: NameVirtualHost 111.22.33.44 VirtualHost 111.22.33.44:80 ServerName www.domain.tld DocumentRoot /www/domain /VirtualHost VirtualHost 111.22.33.44:443 ServerName www.domain.tld DocumentRoot /www/domain /VirtualHost VirtualHost 111.22.33.44:80 ServerName www.otherdomain.tld DocumentRoot /www/otherdomain /VirtualHost VirtualHost 111.22.33.44:443 ServerName www.otherdomain.tld DocumentRoot /www/otherdomain /VirtualHost see: http://httpd.apache.org/docs/vhosts/name-based.html
Re: Too many process?
Hi, Are you using native threads? if so then this is ok (from memory each java thread gets mapped to a seperate process). If you use green threads then they should share a single process (from memory). For example sun's jdk starts 33 processes on my system (depending on your configuration you may have more or less) Jeff On Friday 20 July 2001 18:04, you wrote: Hi Friends, Please excuse me if this question has been asked on this list a number of times.I am trying to install Tomcat 3.2.2 from RPM on RH Linux 6.2 using j2sdk 1.2.2 FCS from blackdown.org. I am able to start tomcat but it starts a lot of java process immediately without even anybody accessing the Tomcat server. [root@leo /root]#pstree | grep java |-java---java---39*[java] Is this how it should behave or am I missing something. Would appreciate any hints from the gurus
Re: Cannot find my JavaBeans
On Thursday 19 July 2001 23:28 pm, you wrote: On Wednesday 18 July 2001 23:36 pm, you wrote: To start a new thread, call x.start(); - in basic terms, this will mean the x.run() method (or runnable.run()) is called, but you can continue doing whatever it was you were doing without waiting for the run() method to end. that's the guts of how threads work. The problem has gone in 4.0beta6. Woo! :) : cheers dim On Wed, 18 Jul 2001, John Baker wrote: I don't know why it is different for run() than for start() - I haven't used either, so I don't understand what the difference in the two is in the Thread class(doesn't start() call run()?) What I meant by this is just doing: MyThread x = new MyThraad(); x.run(); calls the run method (containing the class that has problems being created) within the current Thread, ie no new Thread is started, This is when the problem 'goes away'. When start is called, the Thread starts (Obviously). This is when the problem appears for me. hope this helps, I'll read tomorrow, digest, and attempt to understand :-) Still, this must be a bug... people will want to use their own Threads within a web application. Charlie -Original Message- From: John Baker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 12:31 PM To: [EMAIL PROTECTED] Subject: Re: Cannot find my JavaBeans On Wednesday 18 July 2001 17:15 pm, you wrote: This seems to be a bug in Tomcat. Shouldn't someone who actually knows how it all works take a look? John Yep. Even the cocoon mailing list is full with entries related to tomcat and its classpath :-). Under some misterious circumstances the context/WEB-INF/lib Classpath disappears. Well I managed to make it a very non mysterious circumstance. I just started a Thread from an object that was a ServletContextListener. When I called start it lost classes. When I called run it worked fine. I had no problems replicating it. What is the cocoon mailing list? -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ. -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ. -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
servlet paramers from web.xml
Does anyone know how to pass parameters onto servlets that have been launched through the web.xml file? I have tried adding the parameters as tags into the web.xml file itself, but to no avail. Does anyone know what I should do to make this work? Thanks Matt
Re: Please,please can you help me?
Title: Re: Please,please can you help me? You can pay me back by answering my NT services inquiry :-) -- Chris Raber, Systems Engineer, AvantGo Inc. v: 248-554-9330, cell: 810-839-3684 http://www.avantgo.com/ Sent wirelessly using AvantGo Enterprise RIM! -Original Message- From: Brian McSweeney [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Sent: Wed Jul 18 06:55:10 2001 Subject: Re: Please,please can you help me? Thanks very much Chris. The policy file was the problem. I had thought I gave xerces access but I obviously hadn't. Thanks so much again. Brian Raber Chris wrote: Try adjusting the policies as required in the tomcat.policy file. Just don't ask me what you need to change ;-) --- Brian McSweeney [EMAIL PROTECTED] wrote: Hi everyone, I have had a problem with trying to run a security manager in Apache-Soap for days. I'm running Tomcat3.2.2 and using soap 2-2 and xerces 1_4_1. However the inclusion of xerces causes an error when I try to run Tomcat with a security manager. It all works fine otherwise. Without xerces I can run a security manager with Tomcat, and with xerces I can run Tomcat without a security manager. However with xerces and a security manager when I try to run Tomcat I get this error. I would be indebted forever if someone could help me. I've tried both windows 98 and Solaris - same error. Brian Exception in thread main java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.util.PropertyPermission jaxp. debug read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272) at java.security.AccessController.checkPermission(AccessController.java:399) at java.lang.SecurityManager.checkPermission(SecurityManager.java:545) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278) at java.lang.System.getProperty(System.java:560) at javax.xml.parsers.SAXParserFactory.clinit(SAXParserFactory.java:270) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Problems running as an NT Service
Title: Re: Problems running as an NT Service This was the first thing I checked. -- Chris Raber, Systems Engineer, AvantGo Inc. v: 248-554-9330, cell: 810-839-3684 http://www.avantgo.com/ Sent wirelessly using AvantGo Enterprise RIM! -Original Message- From: Daniel Einspanjer [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Sent: Wed Jul 18 08:38:12 2001 Subject: Re: Problems running as an NT Service Just one quick idea.. Have you looked at the NTFS permissions on the directories in question? Make sure that the Local System account has full permissions, otherwise the service will have access problems. -- Daniel Einspanjer, [EMAIL PROTECTED] on 07/18/2001 On Tue, 17 Jul 2001 14:33:26 -0700 (PDT), Raber Chris wrote: I have a servlet that works fine when running TomCat from a command line. When I attempt to run the servlet as a service, my servlet can not open files for read access that it could open when running under TomCat from the command line... I have read the archives for similar issues, and have tried to set up my service Run As user to have access to the files. I must be missing something or am completely brain dead. Any suggestions are welcome! Thanks, -Chris. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: How can I logoff
Title: Re: How can I logoff Using jdbc connections per user is not advisable. You shoukd think in terms of connection pooling. -- Chris Raber, Systems Engineer, AvantGo Inc. v: 248-554-9330, cell: 810-839-3684 http://www.avantgo.com/ Sent wirelessly using AvantGo Enterprise RIM! -Original Message- From: Blue, Neil [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Sent: Wed Jul 18 07:57:09 2001 Subject: How can I logoff Hello, I am using the JDBC sercurity on tomcat 3.3. I am able to logon (via basic authentication) to view a secured .jsp page. however I can not see how a user can logoff again so that a new user can logon. Please could someone point me in the right direction. Cheers Neil
Re: Problems running as an NT Service
All, Thanks for the suggestions. I found my problem. Here is a short synopsis in case anyone else runs into this. Assuming the problem was security related, I moved my servlet into it's own context and added rules to tomcat.policy for the permissions I needed. I checked the SecurityManager.checkRead(String fileName) and I had the needed access... It turned out that in the process of configuring wrapper.properties I changed the order of the jars in my classpath. I am using Xalan 2 and ended up with the wrong parser being instantiated. Re-order the classpath and everything is ok! Thanks for the suggestions. -Chris. --- Daniel Einspanjer [EMAIL PROTECTED] wrote: Just one quick idea.. Have you looked at the NTFS permissions on the directories in question? Make sure that the Local System account has full permissions, otherwise the service will have access problems. -- Daniel Einspanjer, [EMAIL PROTECTED] on 07/18/2001 On Tue, 17 Jul 2001 14:33:26 -0700 (PDT), Raber Chris wrote: I have a servlet that works fine when running TomCat from a command line. When I attempt to run the servlet as a service, my servlet can not open files for read access that it could open when running under TomCat from the command line... I have read the archives for similar issues, and have tried to set up my service Run As user to have access to the files. I must be missing something or am completely brain dead. Any suggestions are welcome! Thanks, -Chris. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: servlet paramers from web.xml
put the code like:yourServletName?parameterName=value in the JSP page, this should pass the parameter and the value into servlet. Flora Ding Matt Dilley [EMAIL PROTECTED]To: [EMAIL PROTECTED] et cc: Subject: servlet paramers from web.xml 07/20/01 06:41 AM Please respond to tomcat-user Does anyone know how to pass parameters onto servlets that have been launched through the web.xml file? I have tried adding the parameters as tags into the web.xml file itself, but to no avail. Does anyone know what I should do to make this work? Thanks Matt
Doubt
Hi all, This is OFF Topic, but I would like to know if there are brazilians here ? Regards Daniel ___ Daniel de Almeida Alvares Sao Paulo - SP - Brasil [EMAIL PROTECTED]
RE: build error
Still getting the same error ! -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 5:01 PM To: '[EMAIL PROTECTED]' Subject: Re: build error On Thu, 19 Jul 2001, Farag, Hany M (Hany) wrote: Hi, I'm getting these errors although I added the servlets jar as a java ext. build-main: [javac] Compiling 2 source files to /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/jasper/build/classes [javac] /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/jasper/src/share/org/apache/jasp er/compiler/JspParseEventListener.java:79: Class javax.servlet.jsp.tagext.ValidationMessage not found in import. [javac] import javax.servlet.jsp.tagext.ValidationMessage; [javac]^ [javac] /home/hfarag/JAKARTA_HOME/Jakarta-tomcat4.0/jasper/src/share/org/apache/jasp er/compiler/TagLibraryInfoImpl.java:92: Class javax.servlet.jsp.tagext.ValidationMessage not found in import. [javac] import javax.servlet.jsp.tagext.ValidationMessage; [javac]^ [javac] 2 errors BUILD FAILED Any ideas ? Yah ... don't at it as a Java extension :-). It messes up the class loader architecture pretty badly. Thanks Craig
Re: Please,please can you help me?
Very apt :-) Not really sure here though because I don't know what you mean about running the servlet from the command line. Don't you have to test it from the browser? Christopher Raber wrote: You can pay me back by answering my NT services inquiry :-) -- Chris Raber, Systems Engineer, AvantGo Inc. v: 248-554-9330, cell: 810-839-3684 http://www.avantgo.com/ Sent wirelessly using AvantGo Enterprise RIM! -Original Message- From: Brian McSweeney [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Sent: Wed Jul 18 06:55:10 2001 Subject: Re: Please,please can you help me? Thanks very much Chris. The policy file was the problem. I had thought I gave xerces access but I obviously hadn't. Thanks so much again. Brian Raber Chris wrote: Try adjusting the policies as required in the tomcat.policy file. Just don't ask me what you need to change ;-) --- Brian McSweeney [EMAIL PROTECTED] wrote: Hi everyone, I have had a problem with trying to run a security manager in Apache-Soap for days. I'm running Tomcat3.2.2 and using soap 2-2 and xerces 1_4_1. However the inclusion of xerces causes an error when I try to run Tomcat with a security manager. It all works fine otherwise. Without xerces I can run a security manager with Tomcat, and with xerces I can run Tomcat without a security manager. However with xerces and a security manager when I try to run Tomcat I get this error. I would be indebted forever if someone could help me. I've tried both windows 98 and Solaris - same error. Brian Exception in thread main java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.util.PropertyPermission jaxp. debug read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272) at java.security.AccessController.checkPermission(AccessController.java:399) at java.lang.SecurityManager.checkPermission(SecurityManager.java:545) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278) at java.lang.System.getProperty(System.java:560) at javax.xml.parsers.SAXParserFactory.clinit(SAXParserFactory.java:270) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Tomcat Frames
Corey, have you had a response to that bug report you filed regarding the problem with Tomcat and frames not loading correctly? It seems that the problem gets better for a while, which makes you think that something you did fixed it, when in reality, it is just lying dormant like some gestating alien life form waiting for the right point in development where it can burst forth again. Sometimes, restarting Tomcat and Apache helps. Sometimes I reboot the whole machine, and other times, even that does not work. Then, I just have to wait until it decides to play nice again. It is always the .jsp pages that don't load, though. The frame containing the .html page loads fine, and that has a link to another .html page which also loads fine when clicked. Val
User Authentication Apache+mod_ssl+Tomcat 3.2.3
Hello all, I am using the above config and have a JDBC realm set-up using FORM based login. What I want to know is: 1. Is it possible to get the login page to use SSL (https or 443 port) and once the user is validated continue on the standard (http 80 port)? 2. If so, is there any documentation with regards to this? Thanks Asar - Visit our Internet site at http://www.reuters.com Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd.
IIS 5.0 and Tomcat not connecting
Hello, I've set up tomcat and IIS 5.0 on my machine (win2k server). Tomcat works fine if I call it wiht the :8080 extension. Likewise, IIS servers normal pages fine. The problem arises when I try to get them to work together:) I've followed the howto exactly, and double checked every step, install and troubleshooting, a couple times. All my spelling is correct, and all the files are in the right places. The error I get when I try to get http://localhost/examples/jsp/ is: 2001-07-20 14:19:27 127.0.0.1 IMPSERVER\Administrator 127.0.0.1 80 GET /jakarta/isapi_redirect.dll+ - 404 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0) Anyone have any ideas? I've been searching the mailing list archives for a while, and the internet, and not having any luck... thanks! Dave
FW: Tomcat Frames
Here is the second option... -Original Message- From: Forrest R. Girouard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 3:18 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat Frames I could be wrong but I thought that if the server supports HTTP 1.1 and the client does not receive a 'connection: close' with the response that it will re-use the connection. This means that some of the multiple simultaneous requests might be handled by the same connection and if the server has a bug in it's handling of persistent connections one might get an unexpected connection reset by peer. So, if all the other possibilities can be eliminated I would investigate the handling of persistent connections. Cheers, Forrest Craig R. McClanahan wrote: Servers don't know anything about frames. The only relevance it has in this context is the fact that your browser will typically do multiple requests (one per frame) simultaneously, up to some maximum -- typically 4. This is the same reason you see multiple images being downloaded simultaneously (these are also done on separate requests). In most browsers, the number of simultaneous requests is configurable somewhere. The server is reporting connection reset by peer in the middle of a request. That means one of the following things: * The browser started a request and the user pressed STOP. * The browser started an request in one frame and JavaScript on another frame told it to go somewhere else (which has the same effect as a user pressing STOP). * You have a meta refresh reload someplace that is firing so fast that the previous request hasn't had a chance to complete yet. The five second periodicity makes me pretty suspicious of this. * You have some network component in between (a router or proxy) that is misbehaving. * You have some completely separate connection attempts going on that are disobeying the HTTP protocol (such as doing a telnet connection to port 8080 and then disconnecting). Craig On Wed, 18 Jul 2001, Cory Powers wrote: That is what I would have thought to but, as I noted in the bug report, I can reproduce the error in IE and Netscape on multiple platforms(different versions of Windows and Linux). Please take a look at this, I think there is a real issue here. I'm trying to investigate deeper but this is my first expirence with tomcat so I need figure out the code before I could really make any progress. Any pointers on where to look would be greatly appreciated. BTW I have posted this to the user list and recieved reports of other users having the same issue but, the only resolution was to restart the server and this did not work for me, strange... Thanks, Cory [EMAIL PROTECTED] -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 11:59 AM To: '[EMAIL PROTECTED]' Subject: Re: Tomcat Frames First, because servlet containers (and web servers, for that matter) don't have a clue about frames, it's 99.9% sure to be either an application error, a browser bug, or else a harmless warning that the browser stopped downloading one frame because some JavaScript in the page told it to do so. Second, these sorts of issues are better discussed on the TOMCAT-USER mailing list. Craig McClanahan On Mon, 16 Jul 2001, Cory Powers wrote: I am having issues using Tomcat with a frameset page that contains 4 frames, I do not have any problems with the same page when I reduce it to 3 frames. I have created a Bug in the Bugs Database(Bug #2605) and gotten no response. Can someone please assist me in getting this solved. The Bug entry has a lot more detail. Thanks, Cory [EMAIL PROTECTED] -- Forrest Girouard @ Openwave Systems Inc. phone: +1-650-480-4184 mailto:[EMAIL PROTECTED] http://www.openwave.com
RE: Tomcat Frames
I have forwarded 2 responses I got on the dev list to this list. For me the problem is related to a JavaScript I have in one frame that reloads the other one. Now, this should not cause any problems because there is no loop involved but, it does. If I remove that JavaScript line before I change the jsp page in that frame everything will work ok. Then I put the line back and everything works good. This is probably kind of confusing e-mail me if you want me to send the pages so you can look at it... Cory -Original Message- From: RV Tobin [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 10:18 AM To: [EMAIL PROTECTED] Subject: Tomcat Frames Corey, have you had a response to that bug report you filed regarding the problem with Tomcat and frames not loading correctly? It seems that the problem gets better for a while, which makes you think that something you did fixed it, when in reality, it is just lying dormant like some gestating alien life form waiting for the right point in development where it can burst forth again. Sometimes, restarting Tomcat and Apache helps. Sometimes I reboot the whole machine, and other times, even that does not work. Then, I just have to wait until it decides to play nice again. It is always the .jsp pages that don't load, though. The frame containing the .html page loads fine, and that has a link to another .html page which also loads fine when clicked. Val
WML
Hi, I set the web.xml in the WEB-INF directory with the correct mime types and it works. The problem is that when I put the files in a directory inside the ROOT they do not work. In other words, the same file that works in /webapps/ROOT/ does not work in: /webapps/ROOT/test/ Any ideas? Regards, Mike Sanders Developer AireWeb Technologies
Re: Fw: Unable to start tomcat server
Since you're on MS Windows 9.x, put shell=c:\command.com /p /e:2048 (anywhere) in your c:\config.sys DOS TEXT file and reboot. This will give you 2048 bytes of environment space in all of your DOS windows in one fell swoop. Joe //---
Re: WML
Hi, I am running some wireless apps via tomcat. What do you mean they dont work? Is the browser not finding them? Are you getting a content type error? Let me know Thanks Mike - Original Message - From: Mike Sanders To: [EMAIL PROTECTED] Sent: Friday, July 20, 2001 7:58 AM Subject: WML Hi, I set the web.xml in the WEB-INF directory with the correct mime types and it works. The problem is that when I put the files in a directory inside the ROOT they do not work. In other words, the same file that works in /webapps/ROOT/ does not work in: /webapps/ROOT/test/ Any ideas? Regards, Mike Sanders Developer AireWeb Technologies
Attribute language has no value
Please help! I pass the parameters from a servlet to a jsp page, but got the following Error: 500 Internal Servlet Error: org.apache.jasper.compiler.ParseException: D: \jboss\tomcat\webapps\test\ViewPage.jsp(0,17) Attribute language has no value at org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:519) at org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:635) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:192) . Does somebody can tell me how to set the attribute value? Thanks. Flora Ding
Re: WML
It just started working... I haven't changed a thing since I was waiting for a response from the list and now it works Thanks anyway. - Original Message - From: Mike Alba To: [EMAIL PROTECTED] Sent: Friday, July 20, 2001 11:12 AM Subject: Re: WML Hi, I am running some wireless apps via tomcat. What do you mean they dont work? Is the browser not finding them? Are you getting a content type error? Let me know Thanks Mike - Original Message - From: Mike Sanders To: [EMAIL PROTECTED] Sent: Friday, July 20, 2001 7:58 AM Subject: WML Hi, I set the web.xml in the WEB-INF directory with the correct mime types and it works. The problem is that when I put the files in a directory inside the ROOT they do not work. In other words, the same file that works in /webapps/ROOT/ does not work in: /webapps/ROOT/test/ Any ideas? Regards, Mike Sanders Developer AireWeb Technologies
Re: Tomcat Frames
Hi Corey, I am going to have to go through my pages. I know that there are a couple of places where I refresh the left nav area frame using a page in the main frame. Perhaps this could be the cause. What exactly did you do about it? Thanks for all the info. I really appreciate all your help. Val - Original Message - From: Cory Powers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 20, 2001 10:44 AM Subject: RE: Tomcat Frames I have forwarded 2 responses I got on the dev list to this list. For me the problem is related to a JavaScript I have in one frame that reloads the other one. Now, this should not cause any problems because there is no loop involved but, it does. If I remove that JavaScript line before I change the jsp page in that frame everything will work ok. Then I put the line back and everything works good. This is probably kind of confusing e-mail me if you want me to send the pages so you can look at it... Cory -Original Message- From: RV Tobin [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 10:18 AM To: [EMAIL PROTECTED] Subject: Tomcat Frames Corey, have you had a response to that bug report you filed regarding the problem with Tomcat and frames not loading correctly? It seems that the problem gets better for a while, which makes you think that something you did fixed it, when in reality, it is just lying dormant like some gestating alien life form waiting for the right point in development where it can burst forth again. Sometimes, restarting Tomcat and Apache helps. Sometimes I reboot the whole machine, and other times, even that does not work. Then, I just have to wait until it decides to play nice again. It is always the .jsp pages that don't load, though. The frame containing the .html page loads fine, and that has a link to another .html page which also loads fine when clicked. Val
Re: Doubt
Olá Daniel, não sou brasileiro, mas português, tudo bem cumprimentos João Folha - Original Message - From: Daniel de Almeida Alvares [EMAIL PROTECTED] To: Tomcat-user [EMAIL PROTECTED] Sent: Friday, July 20, 2001 2:30 PM Subject: Doubt Hi all, This is OFF Topic, but I would like to know if there are brazilians here ? Regards Daniel ___ Daniel de Almeida Alvares Sao Paulo - SP - Brasil [EMAIL PROTECTED]
starting tomcat 3.2.3
Hi , I downloaded tomcat 3.2.3. When I try to start it it displays below messages and then the error messages. It's on sun solaris. Why am I getting this error and how can I overcome this. -- 2001-07-20 09:58:57 - ContextManager: Adding context Ctx( /examples ) Starting tomcat. Check logs/tomcat.log for error messages 2001-07-20 09:58:57 - ContextManager: Adding context Ctx( /admin ) 2001-07-20 09:58:57 - ContextManager: Adding context Ctx( ) 2001-07-20 09:58:57 - ContextManager: Adding context Ctx( /test ) FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:390) at java.net.ServerSocket.init(ServerSocket.java:173) at java.net.ServerSocket.init(ServerSocket.java:124) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(Compiled Code) at org.apache.tomcat.core.ContextManager.start(Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) --- Thanks in Advance, Sam
RE: Tomcat Frames
I just change the frame name in index.html and update the javascript to reflect the name change AFTER I have loaded the page at least once because it only seems to happen when Tomcat is recompiling. BTW It happens on both NS and IE so, I doubt it is really a browser bug... -Original Message- From: RV Tobin [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 11:31 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat Frames Hi Corey, I am going to have to go through my pages. I know that there are a couple of places where I refresh the left nav area frame using a page in the main frame. Perhaps this could be the cause. What exactly did you do about it? Thanks for all the info. I really appreciate all your help. Val - Original Message - From: Cory Powers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 20, 2001 10:44 AM Subject: RE: Tomcat Frames I have forwarded 2 responses I got on the dev list to this list. For me the problem is related to a JavaScript I have in one frame that reloads the other one. Now, this should not cause any problems because there is no loop involved but, it does. If I remove that JavaScript line before I change the jsp page in that frame everything will work ok. Then I put the line back and everything works good. This is probably kind of confusing e-mail me if you want me to send the pages so you can look at it... Cory -Original Message- From: RV Tobin [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 10:18 AM To: [EMAIL PROTECTED] Subject: Tomcat Frames Corey, have you had a response to that bug report you filed regarding the problem with Tomcat and frames not loading correctly? It seems that the problem gets better for a while, which makes you think that something you did fixed it, when in reality, it is just lying dormant like some gestating alien life form waiting for the right point in development where it can burst forth again. Sometimes, restarting Tomcat and Apache helps. Sometimes I reboot the whole machine, and other times, even that does not work. Then, I just have to wait until it decides to play nice again. It is always the .jsp pages that don't load, though. The frame containing the .html page loads fine, and that has a link to another .html page which also loads fine when clicked. Val
Re: starting tomcat 3.2.3
Hi Sampath, This is most likely one of two things: 1) Some other program is already running and using port 8080. You can use netstat to check this out. You might to telnet to port 8080 and see what you get. 2) This may be because you had previously started Tomcat, without stopping it, and are now trying to start it again. You should stop tomcat using the shutdown scripts, or, easier -- use the tomcat.sh script (type 'tomcat.sh' to see usage) to start and shutdown Tomcat. David Sampath K Settipalli wrote: Hi , I downloaded tomcat 3.2.3. When I try to start it it displays below messages and then the error messages. It's on sun solaris. Why am I getting this error and how can I overcome this. -- 2001-07-20 09:58:57 - ContextManager: Adding context Ctx( /examples ) Starting tomcat. Check logs/tomcat.log for error messages 2001-07-20 09:58:57 - ContextManager: Adding context Ctx( /admin ) 2001-07-20 09:58:57 - ContextManager: Adding context Ctx( ) 2001-07-20 09:58:57 - ContextManager: Adding context Ctx( /test ) FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:390) at java.net.ServerSocket.init(ServerSocket.java:173) at java.net.ServerSocket.init(ServerSocket.java:124) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(Compiled Code) at org.apache.tomcat.core.ContextManager.start(Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) --- Thanks in Advance, Sam
About jndi
Hi all, I have just set a env-entry in web.xml, how can I use jndi to find it a java:comp/env/test? env-entry env-entry-nametest/env-entry-name env-entry-typejava.lang.String/env-entry-type env-entry-valuethis is a test/env-entry-value /env-entry I just use InitialContext ic = new InitialContext(); Object obj = ic.lookup(java:comp/env/test); but it throws a exception says that I have not set the jndi factory. Could you have me? Thanks you first. _ Do You Yahoo!? µÇ¼Ãâ·ÑÑÅ»¢µçÓÊ! http://mail.yahoo.com.cn font color=#FFÎÞÁÄ£¿ÓôÃÆ£¿¸ßÐË£¿Ã»ÀíÓÉ£¿¶¼À´ÁÄÌì°É£¡/font¡ª¡ª ÑÅ»¢È«ÐÂÁÄÌìÊÒ! http://cn.chat.yahoo.com/c/roomlist.html
RE: starting tomcat 3.2.3
This usually happens when tomcat's default port (8080) is already in use. A simple check would be to point your browser to http://localhost:8080; and see if you have another http service running on that port. If not, it could be that some other service is using that port. Gautam -Original Message- From: Sampath K Settipalli [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 8:36 AM To: [EMAIL PROTECTED] Subject: starting tomcat 3.2.3 Hi , I downloaded tomcat 3.2.3. When I try to start it it displays below messages and then the error messages. It's on sun solaris. Why am I getting this error and how can I overcome this. -- 2001-07-20 09:58:57 - ContextManager: Adding context Ctx( /examples ) Starting tomcat. Check logs/tomcat.log for error messages 2001-07-20 09:58:57 - ContextManager: Adding context Ctx( /admin ) 2001-07-20 09:58:57 - ContextManager: Adding context Ctx( ) 2001-07-20 09:58:57 - ContextManager: Adding context Ctx( /test ) FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:390) at java.net.ServerSocket.init(ServerSocket.java:173) at java.net.ServerSocket.init(ServerSocket.java:124) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS ocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java :239) at org.apache.tomcat.service.PoolTcpConnector.start(Compiled Code) at org.apache.tomcat.core.ContextManager.start(Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) --- Thanks in Advance, Sam
connecting to apache PLZ HELP, VERY FUSTRATED!!
Hi, I have installed apache 1.3 and tomcat 3.2 on a Linux 6.1 system. They both run fine stand alone (I can see the apache test page and the tomcat examples through my browser). However, when I try to run a JSP example I get... Error: 500 Location: /examples/jsp/colors/colrs.jsp Internal Servlet Error: javax.servlet.ServletException: org/apache/jasper/compiler/Parser (Invalid start_pc/length in local var table) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav a:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H ttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416 ) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50 1) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.ClassFormatError: org/apache/jasper/compiler/Parser (Invalid start_pc/length in local var table) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:207) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146 ) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J spServlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle t.java:268) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav a:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H ttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416 ) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50 1) at java.lang.Thread.run(Thread.java:484) I think that there may be a problem with the connection between the two? I have run the 'test-tomcat.xml' file as described in the file header. I get a successful build for the first execution (testing tomcat), but when I run the second half (to test apache) the script just hangs, so I am assuming that the connection between the two isn't right. Any suggestions would be greatly appreciated. Cheers, Paul (a very fustrated web developer);-
IIS and tomcat
hi there, I'm troubleshooting the ISAPI redirector. I have followed all the instructions in the Tomcat IIS HowTo document, but I'm still struggling to figure out what's wrong. Just one question: In the following key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters\Filter DLLs How do I really specify the full path to isapi_redirect.dll ? Is this a string value in the above key? if yes, is it the "Default" string? Or do I need to create another string (which I don't know what name should I give) and give the value of the full path to the required dll ? a simple reply would do, thanks daniel
Re: IIS and tomcat
Following up on this question...do you need to add that key for just win98, or should win2k have an entry there too? please post the reply to his question on the list as well. thank you dave On Sat, 21 Jul 2001, Daniel Balaguer Yagan wrote: hi there, I'm troubleshooting the ISAPI redirector. I have followed all the instructions in the Tomcat IIS HowTo document, but I'm still struggling to figure out what's wrong. Just one question: In the following key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters\Filter DLLs How do I really specify the full path to isapi_redirect.dll ? Is this a string value in the above key? if yes, is it the Default string? Or do I need to create another string (which I don't know what name should I give) and give the value of the full path to the required dll ? a simple reply would do, thanks daniel
RE: IIS and tomcat
Check the CaPiTaLiZaTiOn...The Windows Registry is Very picky... I know... I was where you are now yesterday. -Original Message-From: Daniel Balaguer Yagan [mailto:[EMAIL PROTECTED]]Sent: Friday, July 20, 2001 11:01 AMTo: '[EMAIL PROTECTED]'Subject: IIS and tomcat hi there, I'm troubleshooting the ISAPI redirector. I have followed all the instructions in the Tomcat IIS HowTo document, but I'm still struggling to figure out what's wrong. Just one question: In the following key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters\Filter DLLs How do I really specify the full path to isapi_redirect.dll ? Is this a string value in the above key? if yes, is it the "Default" string? Or do I need to create another string (which I don't know what name should I give) and give the value of the full path to the required dll ? a simple reply would do, thanks daniel
Re: connecting to apache PLZ HELP, VERY FUSTRATED!!
Paul, Did you follow the instructions on integrating Tomcat and Apache? http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html John Paul wrote: Hi, I have installed apache 1.3 and tomcat 3.2 on a Linux 6.1 system. They both run fine stand alone (I can see the apache test page and the tomcat examples through my browser). However, when I try to run a JSP example I get... Error: 500 Location: /examples/jsp/colors/colrs.jsp Internal Servlet Error: -- John Alex Hebert [EMAIL PROTECTED] System Engineer
Getting the values of context-params defined in web.xml ??
I set up a servlet web.xml based on the sample web.xml provided with the Tomcat 3.2.2 distribution. I left in the example definition of the context-param ( shown below ). I added code (shown below) to the servlet to print the names of all context-params. I didn't see any of the context-params I added to my web.xml and I didn't see the example either. I should point out that defining init-params on a per servlet basis worked as described and is my current work-around. Adding to the confusion is the example in the Tomcat 3.2.2 web.xml. The example says: The values actually assigned to these (context-param) parameters can be retrieved in a servlet or JSP page by calling: String value = getServletContext().getInitParameter(name); However, the javax.servlet.ServletContext interface does not have getInitParam( String ) method. And, to add to the confusion, there IS a getInitParam ( String) method in the javax.servlet.ServletConfig interface. Since this sort of thing is done all of the time I'm sure I'm just missing something really simple but after several hours of trying everything I can think of I still can't get those damned context-params. Can anyone shed some light on this situation? . Thanks in advance, --beeky Typical context-param definition in web.xml from Tomcat: web-app context-param param-namewebmaster/param-name param-value[EMAIL PROTECTED]/param-value /context-param !-- all other web.xml contents omitted -- /web-app Servlet code to print context-param names: Enumeration contextParams = getServletConfig().getInitParameterNames() ; while ( contextParams.hasMoreElements()) { String p = (String)contextParams.nextElement() ; System.out.println( config param= + p); } I also tried: Enumeration contextParams = getServletContext().getAttributeNames() ; while ( contextParams.hasMoreElements()) { String p = (String)contextParams.nextElement() ; System.out.println( contextParams param= + p); }
RE: ACME gif encoder - no red ?
And this has WHAT to do with Tomcat? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 2:08 AM To: [EMAIL PROTECTED] Subject: ACME gif encoder - no red ? Has anyone experienced a problem creating gifs with the ACME gif encoder whereby the colors aren't right. The red component gets zeroed, the green component is what the red should have been and the blue is what the green should have been. Any help appeciated. SteveQ.
RE: Win2K security
All of us? -Original Message- From: Gabriel Weinberg [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 7:09 PM To: Tomcat-User (E-mail); Ronnie Millar (E-mail) Subject: Win2K security I think that we should implement a higher standard of security in our Win2K production environment, much along the lines of Matt's proposal. Any objections? If no, I will think about and propose a system for patch and password management as well as make other changes like encrypt PC Anywhere and change the name of the Administrator accounts. Gabriel
request.getAttribute() problems
Hi all, I have a Bean whose scope I would like to set to request. I would like to retrieve this Bean's instance when the next page is requested. On the first page, I have: jsp:useBean id=beanclass class=BeanClass scope=request / On the next page, I have: BeanClass b = (BeanClass) request.getAttribute(beanclass); However, when I try to use instance b of my Bean, I get a NullPointerException. The strange thing is that the code seemed to working in Orion. Is there something I'm doing wrong? Note that I can use the instance without errors when I set the scope to session and use session.getAttribute() instead but I don't want to do this as my instance should only last for a request. I'm using Tomcat 3.2.2/Sun's JDK 1.3.1 on Win2K Pro. Regards, Paul _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: request.getAttribute() problems
When you say next page, what do you mean? How are you going from the first page to the second page? This is important because if you are doing it a certain way (such as a response.sendRedirect) your request object won't get passed along... David Paul Kofon wrote: Hi all, I have a Bean whose scope I would like to set to request. I would like to retrieve this Bean's instance when the next page is requested. On the first page, I have: jsp:useBean id=beanclass class=BeanClass scope=request / On the next page, I have: BeanClass b = (BeanClass) request.getAttribute(beanclass); However, when I try to use instance b of my Bean, I get a NullPointerException. The strange thing is that the code seemed to working in Orion. Is there something I'm doing wrong? Note that I can use the instance without errors when I set the scope to session and use session.getAttribute() instead but I don't want to do this as my instance should only last for a request. I'm using Tomcat 3.2.2/Sun's JDK 1.3.1 on Win2K Pro. Regards, Paul _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: request.getAttribute() problems
Hi David, On the first page, I've got a form with an action pointing to a certain jsp page. It's on this page (the one pointed to in the action statement) that I try to retrieve the object. Does that make any sense? Regards, Paul From: David Haraburda [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: request.getAttribute() problems Date: Fri, 20 Jul 2001 12:56:33 -0500 When you say next page, what do you mean? How are you going from the first page to the second page? This is important because if you are doing it a certain way (such as a response.sendRedirect) your request object won't get passed along... David Paul Kofon wrote: Hi all, I have a Bean whose scope I would like to set to request. I would like to retrieve this Bean's instance when the next page is requested. On the first page, I have: jsp:useBean id=beanclass class=BeanClass scope=request / On the next page, I have: BeanClass b = (BeanClass) request.getAttribute(beanclass); However, when I try to use instance b of my Bean, I get a NullPointerException. The strange thing is that the code seemed to working in Orion. Is there something I'm doing wrong? Note that I can use the instance without errors when I set the scope to session and use session.getAttribute() instead but I don't want to do this as my instance should only last for a request. I'm using Tomcat 3.2.2/Sun's JDK 1.3.1 on Win2K Pro. Regards, Paul _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: tomcat.policy limitation?
//-- Frank Lawlor wrote: Not sure, but I think Tomcat restricts your access to WEB-INF. If this is the case, then how can I create a directory structure outside of WEB-INF so that my programmers/developers can take advantage of the much needed reloadable feature (server.xml-Context-reloadable) AND be sandboxed into their own subdirectories so that their servlets cannot write anywhere outside their own particular subdirectory? Joe // In general, your web app should restrict itself to created directories under its context. Your can give each user/client their own subdir. This works fine. Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions. //--- Joe Flowers wrote: I am trying to grant a servlet in the /usr/tomcat/jakarta-tomcat-3.2.2/webapps/ROOT/WEB-INF/classes/joe/ directory write permissions to the /test.txt file. //--- The following code snippet from my tomcat.policy file seems to work correctly; I can write to the /test.txt file just fine with my servlet. grant codeBase file:/usr/tomcat/jakarta-tomcat-3.2.2/webapps/ROOT/- { permission java.io.FilePermission /test.txt, write; }; //--- BUT, the following code snippet does NOT work correctly. grant codeBase file:/usr/tomcat/jakarta-tomcat-3.2.2/webapps/ROOT/WEB-INF/- { permission java.io.FilePermission /test.txt, write; }; I get the following error message :-(( Error: 500 Location: /servlet/joe.joe1 Internal Servlet Error: java.security.AccessControlException: access denied (java.io.FilePermission /test.txt write) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272) at java.security.AccessController.checkPermission(AccessController.java:399) at java.lang.SecurityManager.checkPermission(SecurityManager.java:545) at java.lang.SecurityManager.checkWrite(SecurityManager.java:978) at java.io.FileOutputStream.(FileOutputStream.java:96) at java.io.FileWriter.(FileWriter.java:52) at joe.joe1.doGet(joe1.java:64) ... etc. //--- What the heck?!?! Anyone have any ideas for me to try? I want to create a bunch of user/programmer subdirectories like /usr/tomcat/jakarta-tomcat-3.2.2/webapps/ROOT/WEB-INF/classes/joe/ /usr/tomcat/jakarta-tomcat-3.2.2/webapps/ROOT/WEB-INF/classes/tom/ /usr/tomcat/jakarta-tomcat-3.2.2/webapps/ROOT/WEB-INF/classes/henry/ etc. so that I can grant all servlets in these directories and subdirectories read/write access to their own separate directory structure so they won't be able to write over anyone elses files, including the system files, of course. This is a wierd one. Thanks for any help! Joe
Re: Too many process?
On Friday 20 July 2001 09:04, Sumith Ail wrote: Hi Friends, Please excuse me if this question has been asked on this list a number of times.I am trying to install Tomcat 3.2.2 from RPM on RH Linux 6.2 using j2sdk 1.2.2 FCS from blackdown.org. I am able to start tomcat but it starts a lot of java process immediately without even anybody accessing the Tomcat server. [root@leo /root]#pstree | grep java |-java---java---39*[java] Is this how it should behave or am I missing something. Yes, assuming you use native threads. What you see is threads, which the linux kernel view as an ordinaery process. Thoug , they all share the same memory space. Java it self uses a few threads on startup, one for the garbage collector, finalizer e.t.c. And tomcat start a number of threads, some go into a thread pool for faster response. -- Nils O. Selåsdal
Re: Getting the values of context-params defined in web.xml ??
The ServletContext does have getInitParameter() method... Try: getServletContext().getInitParameterNames(); ... works fine for me. Matt. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 20 July 2001 17:35 Subject: Getting the values of context-params defined in web.xml ?? I set up a servlet web.xml based on the sample web.xml provided with the Tomcat 3.2.2 distribution. I left in the example definition of the context-param ( shown below ). I added code (shown below) to the servlet to print the names of all context-params. I didn't see any of the context-params I added to my web.xml and I didn't see the example either. I should point out that defining init-params on a per servlet basis worked as described and is my current work-around. Adding to the confusion is the example in the Tomcat 3.2.2 web.xml. The example says: The values actually assigned to these (context-param) parameters can be retrieved in a servlet or JSP page by calling: String value = getServletContext().getInitParameter(name); However, the javax.servlet.ServletContext interface does not have getInitParam( String ) method. And, to add to the confusion, there IS a getInitParam ( String) method in the javax.servlet.ServletConfig interface. Since this sort of thing is done all of the time I'm sure I'm just missing something really simple but after several hours of trying everything I can think of I still can't get those damned context-params. Can anyone shed some light on this situation? . Thanks in advance, --beeky Typical context-param definition in web.xml from Tomcat: web-app context-param param-namewebmaster/param-name param-value[EMAIL PROTECTED]/param-value /context-param !-- all other web.xml contents omitted -- /web-app Servlet code to print context-param names: Enumeration contextParams = getServletConfig().getInitParameterNames() ; while ( contextParams.hasMoreElements()) { String p = (String)contextParams.nextElement() ; System.out.println( config param= + p); } I also tried: Enumeration contextParams = getServletContext().getAttributeNames() ; while ( contextParams.hasMoreElements()) { String p = (String)contextParams.nextElement() ; System.out.println( contextParams param= + p); }
internal error: SHA-1 not available ??
Trying to setup Tomcat 3.2 on win2k. I followed the install guide the best I could...double checked it too... whats goin on? Thanks for the help.
Tomcat configuration for Netscape Webserver for Solaris
I can only find the documentation on how to configure Tomcat with Netscape Webserver under Windows. Can someone point me to the documentation on how to configure Tomcat to work with Netscape Enterprise Server 3.6 on Solaris? Thank you Ivan Chan Email: [EMAIL PROTECTED]
uppercase/lowercase conversion?
heya I just installed tomcat 3.2.3 on win2k, and I noticed that it refuses to accept files with UpperCaseLetters in them - instead, it converts them to all lower case. any way to get around this short of renaming everything to lower case? thanks dave
internal error: SHA-1 not available ??
I should be more specific... When I use 'tomcat run' to keep it in the same window, classpaths looks ok, then I get this error followed by a stack trace... I just figured someone has seen error this before... is this enough info.. I'm kinda new at this ;P -Original Message- From: Henderson, Kevin CECOM RDEC STCD Sent: Saturday, July 21, 2001 4:00 AM To: '[EMAIL PROTECTED]' Subject: internal error: SHA-1 not available ?? Trying to setup Tomcat 3.2 on win2k. I followed the install guide the best I could...double checked it too... whats goin on? Thanks for the help.
setting the location
hey guys sorry again for the emails - I've already sent 3 today and I haven't helped anyone else out:( But, if you can help me, I'd really appreciate it:) Anyways, I have some code that worked with an older version of Tomcat. Having recently upgraded to 3.2.3, I'm having some problems. Namely, problems with setting the location in the response. It won't work. Anyone have this problem when upgrading? Is there a good solution? thanks dave
Re: [ANNOUNCEMENT] Tomcat 4.0-beta-6 Released
I second the motion - where is the Apache connector in 4.0b6?? In 4.0b5, the directory src/connectors contained C code for the Warp/Apache stuff. In 4.0b6, the src/connectors directory is gone (not in either src or binary dist)!! Should we get it from the CVS server ?? Mark Ok, So where is the src for the updated Apache connector? It used to be under src/connectors. I've downloaded the binary and src tarballs and can't see it anywhere? Or does you note imply that the connector will be released seperately Jeff On Friday 20 July 2001 17:20, you wrote: The Tomcat team is proud to announce the availability of the latest beta release of Tomcat 4.0. This next-generation servlet and JSP container boasts the following new and improved features: * Fix for the security vulnerability reported on July 16, 2001. * Support for the Proposed Final Draft 3 versions of the Servlet 2.3 and JSP 1.2 Specifications. * Many bug fixes and performance improvements. * Support for executing external CGI scripts and programs. * An updated version of the Apache web connector (binaries for various platforms will be available soon) * A new experimental installer for the Windows platform that lets you download and install Tomcat 4.0 in a manner typical of other Windows based programs (including installation of Tomcat as an NT service). Binary distributions of Tomcat 4.0-beta-6 are available at: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b6/ and source distributions are available at: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b6/src/ Please see the included RELEASE-NOTES-4.0-B6.txt file for details about the changes included in this release. Craig McClanahan -- Mark Dzmura Digital Mission LLC
Performing actions prior to j_security_check
Hello, I have a single user system and I set up a JDBCRealm where the form-login-page is a servlet which either redirects to a simple login page or to a registration page if this is the first use. The simple login page works fine. However, on the registration page, I want to store the registration information as well as inserting the username/password into the jdbc table. If everything is successful, I want to redirect again to j_security_check (using the parameters j_username and j_password) from the registration page. I was hoping that authentication would succeed at this point and the user would be redirected to their original page, since I just added the user to the database. Unfortunately, I get the following traceback instead: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:380) at org.apache.tomcat.session.StandardSession.setAttribute(StandardSession.java:731) at org.apache.tomcat.request.FormSecurityCheckHandler.doService(AccessInterceptor.java:540) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Anyone have any idea what I'm doing wrong or a better way that I should be doing this. I'm using Tomcat 3.2.3 and the 2nd redirect is actually a struts ActionForward with setRedirect(true) called. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
RE: request.getAttribute() problems
Then the bean must be in the SESSION scope Putting it in the REQUEST scope means -- keep it around with this request When you go to a new JSP page you usually get a new request to go with it. -Original Message- From: Paul Kofon [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 11:05 AM To: [EMAIL PROTECTED] Subject: Re: request.getAttribute() problems Hi David, On the first page, I've got a form with an action pointing to a certain jsp page. It's on this page (the one pointed to in the action statement) that I try to retrieve the object. Does that make any sense? Regards, Paul From: David Haraburda [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: request.getAttribute() problems Date: Fri, 20 Jul 2001 12:56:33 -0500 When you say next page, what do you mean? How are you going from the first page to the second page? This is important because if you are doing it a certain way (such as a response.sendRedirect) your request object won't get passed along... David Paul Kofon wrote: Hi all, I have a Bean whose scope I would like to set to request. I would like to retrieve this Bean's instance when the next page is requested. On the first page, I have: jsp:useBean id=beanclass class=BeanClass scope=request / On the next page, I have: BeanClass b = (BeanClass) request.getAttribute(beanclass); However, when I try to use instance b of my Bean, I get a NullPointerException. The strange thing is that the code seemed to working in Orion. Is there something I'm doing wrong? Note that I can use the instance without errors when I set the scope to session and use session.getAttribute() instead but I don't want to do this as my instance should only last for a request. I'm using Tomcat 3.2.2/Sun's JDK 1.3.1 on Win2K Pro. Regards, Paul _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Run tomcat as root ?
Currently we are running Tomcat as root on a linux machine , are there any know security risks by doing so? SHould i rather run tomcat as another, restricted user ? -- Nils O. Selåsdal
Re: Run tomcat as root ?
At 03:04 PM 7/20/2001, you wrote: Currently we are running Tomcat as root on a linux machine , are there any know security risks by doing so? SHould i rather run tomcat as another, restricted user ? If you want to run tomcat on a port below 1024 you have no choice.
Re: Crystal Reports
Tomcat 4.0b6 now includes CGI support -- any comments appreciated if you would like to take a look. Martin John Hebert wrote: Hey, I know something Dmitri doesn't know! :) Crystal Report files are database query results handled by a client application to display them. Bill, of course Tomcat can serve them. Check out ../tomcat/conf/web.xml, specifically the mime-mapping section. But, Tomcat cannot _process_ them. Dmitri is correct in saying that Tomcat only executes servlets. You may have a specific reason for wanting to use Tomcat, but I think (w/o more info) that using Apache to serve w/ Tomcat integrated to handle other servlet stuff is your best bet. John Dmitri Colebatch wrote: Hi, I'm not sure what crystal report files are, but from your email I gather they are a script that apache handles nicely. Tomcat is a dedicated servlet engine - if it aint a servlet, dont make tomcat serve it... I assume you'll be having apache sit in front of tomcat anyway, so just continue as you have been. cheesr dim On Wed, 18 Jul 2001, Bill May wrote: G'Day, A question Is it possible to configure Tomcat to serve Crystal Report (.rpt files) With Apache this is achieved by calling an executable in the cgi-bin directory I suppose the question is Does Tomcat support cgi scripts ? Cheers Bill May
RE: Oracle JDBC in CLASSPATH for Tomcat 4.0
Simply renaming classes12.zip to classes12.jar and putting it into WEB-INF/lib works for me. thanks, Jerry -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 4:15 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Oracle JDBC in CLASSPATH for Tomcat 4.0 Just rename the files to be a .jar file. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Charles Lee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 4:06 PM To: [EMAIL PROTECTED] Subject: RE: Oracle JDBC in CLASSPATH for Tomcat 4.0 I would suggest you to unzip(use winzip program) the classes12.zip to the .../lib directory. I am sure it will work. TOMCAT doesn't pick up zip file. Charles Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sampige, Srinivas Sent: Tuesday, July 17, 2001 3:52 PM To: '[EMAIL PROTECTED]' Subject: RE: Oracle JDBC in CLASSPATH for Tomcat 4.0 What i told you definitely works at least for the .jar files;from what you say it looks like Tomcat isn't picking up .zip files (i personally haven't tried it with .zip files).I would leave this question to be anwered by one of the Tomcat Dev Team members .But for now what i would try is - - edit the tomcat.bat found in the bin folder of the tomcat installation .Here is what the first few lines look like(what is in red is what you need to add) :- --- rem - Save Environment Variables That May Change set _CP=%CP% set _TOMCAT_HOME=%TOMCAT_HOME% set _CLASSPATH=%CLASSPATH% --- Modify the last line as - set _CLASSPATH=%CLASSPATH%;D:\oracle\ora81\jdbc\lib\classes12.zip Let me know if this helps. -Srinivas -Original Message- From: John Hebert [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 3:46 PM To: [EMAIL PROTECTED] Subject: Re: Oracle JDBC in CLASSPATH for Tomcat 4.0 Scott Brinker wrote: Alas, it's still not finding it. I now have the classes12.zip in the following locations: /jakarta-tomcat-4.0-b5/lib /jakarta-tomcat-4.0-b5/common/lib /jakarta-tomcat-4.0-b5/webapps/test/WEB-INF/lib ...(the latter being my web app), in addition to the CLASSPATH environment variable. Any other thoughts? Can you confirm it is a valid archive (jar -t classes12.zip)? -- John Alex Hebert [EMAIL PROTECTED] System Engineer
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified weekly when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP How can I use a JSP as an Apache ErrorDocument -- so Apache will display bits/b errors using my JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=458488 How do I implement a hit counter in Servlets or JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=456418 Why do I get java.lang.NoClassDefFoundError: sun/tools/javac/Main ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455768 While forwarding from one page to another by using RequestDispatcher, how do I avoid the error quot; OutputStream is already being used for this requestquot; ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455248 What is Ant? Do I need it to run Tomcat? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455192 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets How can I automatically invoke a servlet at regular time intervals using Resin? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=458416 How do I trap a 404 error inside my servlet if my servlet does a ttRequestDispatcher/tt to a non-existent page ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=457102 How do I implement a hit counter in Servlets or JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=456418 Why do I get java.lang.NoClassDefFoundError: sun/tools/javac/Main ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455768 Is there a way in Tomcat to set up zones for servlets like in jserv? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455766 What is the difference between ServletContext.getInitParameter() and HttpServlet.getInitParameter() ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455711 How do I prevent users from viewing the contents of my WEB-INF directory? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455249 While forwarding from one page to another by using RequestDispatcher, how do I avoid the error quot; OutputStream is already being used for this requestquot; ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455248 How to allow the client to download and execute a .bat file? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455219 Can I spawn a background thread from my servlet? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455215 How can I generate an output in CSV format from a database query? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455207 What is a session and why is it required? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455205 How to allow the client to download and execute a .bat or .exe file? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455202 Why do I sometimes get the error ODBC Driver Manager ...function Sequence Error? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455201 How do I process FDF files created by the Acrobat Forms plug-in? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455199 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat How can I use a JSP as an Apache ErrorDocument -- so Apache will display bits/b errors using my JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=458488 Why do I get java.lang.NoClassDefFoundError: sun/tools/javac/Main ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455768 Is there a way in Tomcat to set up zones for servlets like in jserv? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455766 How do I upgrade from Tomcat 3 to Tomcat 4? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455735 Do I need to create my own web.xml file? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455725 What is the right way to set the JAVA_HOME environment variable on Windows NT? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455718 How do you pass options such as -Xrs to the JVM when your Tomcat container is running in-process within a Web
Re: Run tomcat as root ?
I'm not sure about any specific risks, but I wouldn't run _anything_ as root on any unix based system. Tomcat doesn't need to bind to ports under 1024 which is the only reason I can think that you would want to run as root. cheers dim On Fri, 20 Jul 2001, Nils O. [iso-8859-1] Selåsdal wrote: Currently we are running Tomcat as root on a linux machine , are there any know security risks by doing so? SHould i rather run tomcat as another, restricted user ? -- Nils O. Selåsdal
Fw: Unable to start tomcat server
- Original Message - From: Manish Pradhan To: [EMAIL PROTECTED] Sent: Friday, July 20, 2001 11:51 AM Subject: Fw: Unable to start tomcat server - Original Message - From: Manish Pradhan To: Filip Hanik Sent: Friday, July 20, 2001 9:24 AM Subject: Re: Unable to start tomcat server Dear sir, Thank you for your help in setting the path of java_home tomcat_home. But even after setting the path ,there is a problem as follows There is a message when I start the startup.bat as follows Out of environment space Unable to set the classpath dynamically Note:To set the Classpath dynamically on the Win9x systems Only Dos 8.3 names may be used in Tomcat_Home Setting your classpath statically Out of environment space Using CLASSPATH: Starting Tomcat in new Window Bad Command or filename Kindky help me. - Original Message - From: Filip Hanik To: [EMAIL PROTECTED] ; Manish Pradhan Sent: Thursday, July 19, 2001 11:36 PM Subject: RE: Unable to start tomcat server On your desktop, right click on "My Computer" select "Properties" under the environment variable settings, create a new variable called JAVA_HOME and have it point to your java installation this doc explains it http://sourceforge.net/docman/display_doc.php?docid=5651group_id=26042 Filip ~Namaste - I bow to the divine in you~Filip HanikSoftware Architect[EMAIL PROTECTED]www.filip.net -Original Message-From: Manish Pradhan [mailto:[EMAIL PROTECTED]]Sent: Thursday, July 19, 2001 10:56 AMTo: [EMAIL PROTECTED]Subject: Unable to start tomcat server Kindly explain to me how to configure java_home or tomcat_home property.Because everytime ,I go tostart the tomcat webserver 3.2.2 on my windows 98 system click on start up.bat there is a message"you must set JAVA_HOME to point at your Java Development Kit Installation.Kindly oblige.
tomcat starting problem on win98
Hi, I have searched the archive but couldn't find a relevant posting(please let me know if there is any) i have jboss+tomcat3.2.2 and when i try to start tomcat i get the following message.This happens after loading classpath and all the required jar files.D:\jdk1.3.1\bin\java -Dtomcat.home="D:\JBoss-2.2.2_Tomcat-3.2.2\tomcat" org.apache.jasper.JspC ^Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/jasper/JspC I don't know why this happens Thanks Ram Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Fw: Unable to start tomcat server
Hi, I think someone just answered this, but cant find it in the archives. However, I did find this: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg08353.html which answers your question. friendly tip: the archives are very helpful (o: cheers dim On Sat, 21 Jul 2001, Manish Pradhan wrote: - Original Message - From: Manish Pradhan To: [EMAIL PROTECTED] Sent: Friday, July 20, 2001 11:51 AM Subject: Fw: Unable to start tomcat server - Original Message - From: Manish Pradhan To: Filip Hanik Sent: Friday, July 20, 2001 9:24 AM Subject: Re: Unable to start tomcat server Dear sir, Thank you for your help in setting the path of java_home tomcat_home. But even after setting the path ,there is a problem as follows There is a message when I start the startup.bat as follows Out of environment space Unable to set the classpath dynamically Note:To set the Classpath dynamically on the Win9x systems Only Dos 8.3 names may be used in Tomcat_Home Setting your classpath statically Out of environment space Using CLASSPATH: Starting Tomcat in new Window Bad Command or filename Kindky help me. - Original Message - From: Filip Hanik To: [EMAIL PROTECTED] ; Manish Pradhan Sent: Thursday, July 19, 2001 11:36 PM Subject: RE: Unable to start tomcat server On your desktop, right click on My Computer select Properties under the environment variable settings, create a new variable called JAVA_HOME and have it point to your java installation this doc explains it http://sourceforge.net/docman/display_doc.php?docid=5651group_id=26042 Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Manish Pradhan [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 10:56 AM To: [EMAIL PROTECTED] Subject: Unable to start tomcat server Kindly explain to me how to configure java_home or tomcat_home property.Because everytime ,I go tostart the tomcat webserver 3.2.2 on my windows 98 system click on start up.bat there is a messageyou must set JAVA_HOME to point at your Java Development Kit Installation.Kindly oblige.
Help on Thread Pool
Hi, I have encountered following exception while running tomcat. ** 2001-07-14 09:30:18 - ThreadPool: Unexpected exception - sjava.lang.InterruptedEx ception at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:420) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java :480) at java.lang.Thread.run(Thread.java:484) *** What may be the cause for the Exception. I am running Tomcat with IIS4.0 on WinNT In tomcat-home/conf/tomcat.properties following lines . # Thread Pool parameters # # Enables or disables the use of the thread pool. # Syntax: pool=[true|false] (boolean) # Default: false # WARNING: the pool has not been extensively tested and may generate deadlocks. # For this reason, we advise against using this code in production environments. pool=false # Indicates the number of idle threads that the pool may contain. # Syntax: pool.capacity=(int)0 # Default: 10 # NOTE: depending on your system load, this number should be low for contantly # loaded servers and should be increased depending on load bursts. pool.capacity=10 Should I change value for parameter pool to true??? What should be the optimum value for pool.capacity for the production environment??? Thanks in advance Manjunath _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
IE and tomcat
hello, I am having a little bit of problem which is very annoying, so may be somebody here can help me. My servlet processes flash template files (.swt) and genarates flash files (.swf). It handles all files from any directory with extension .swt (for those who is interested it's an open source project: http://www.flashgap.com). It works fine when a client is netscape, I mean when I type something like http://myhost/card.swt the servlet receives one request and do the job only once. But when a client is IE the servlet receives three requests! And one of them (seconds) is always result in connection reset by peer... error. Does anybody have any idea what is going on and how to fix it? I print headers of the requests to the log, so here is excerpts from the log file. This is log from netscape request: 'request(GET) - F:\Tomcat3.2\webapps\ROOT\insMovie.swt' 'Header: name='accept-language', value='en,ru'' 'Header: name='connection', value='Keep-Alive'' 'Header: name='accept', value='image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*'' 'Header: name='host', value='localhost'' 'Header: name='accept-charset', value='iso-8859-1,*,utf-8'' 'Header: name='accept-encoding', value='gzip'' 'Header: name='user-agent', value='Mozilla/4.7 [en] (WinNT; U)'' Processed file 'F:\Tomcat3.2\webapps\ROOT\insMovie.swt', output size 34375 bytes, processing time 751ms, total time 761ms this is log from IE's (3 requests): 'request(GET) - F:\Tomcat3.2\webapps\ROOT\insMovie.swt' 'Header: name='accept-language', value='en-us,ru;q=0.5'' 'Header: name='connection', value='Keep-Alive'' 'Header: name='accept', value='application/vnd.ms-excel, application/msword, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*'' 'Header: name='host', value='localhost'' 'Header: name='accept-encoding', value='gzip, deflate'' 'Header: name='user-agent', value='Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)'' Processed file 'F:\Tomcat3.2\webapps\ROOT\insMovie.swt', output size 34375 bytes, processing time 60ms, total time 70ms 'request(GET) - F:\Tomcat3.2\webapps\ROOT\insMovie.swt' 'Header: name='accept', value='*/*'' 'Header: name='host', value='localhost'' 'Header: name='user-agent', value='contype'' Connection aborted by peer: socket write error java.net.SocketException: Connection aborted by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at org.apache.tomcat.service.http.HttpResponseAdapter.doWrite(HttpResponseAdapter.java:162) at org.apache.tomcat.core.BufferedServletOutputStream.doWrite(BufferedServletOutputStream.java:121) at org.apache.tomcat.core.BufferedServletOutputStream.write(BufferedServletOutputStream.java:192) at com.iv.flash.servlet.GeneratorServlet.send(GeneratorServlet.java:408) at com.iv.flash.servlet.GeneratorServlet.processTemplate(GeneratorServlet.java:292) at com.iv.flash.servlet.GeneratorServlet.doGen(GeneratorServlet.java:216) at com.iv.flash.servlet.GeneratorServlet.doGet(GeneratorServlet.java:174) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) 'request(GET) - F:\Tomcat3.2\webapps\ROOT\insMovie.swt' 'Header: name='connection', value='Keep-Alive'' 'Header: name='accept', value='*/*'' 'Header: name='host', value='localhost'' 'Header: name='accept-encoding', value='gzip, deflate'' 'Header: name='user-agent', value='Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)'' Processed file 'F:\Tomcat3.2\webapps\ROOT\insMovie.swt', output size 34375 bytes, processing time 90ms, total time 110ms -- Dmitry Skavish --- Boston, MA, USA tel. +1 781 370-6909 http://www.flashgap.com
Can't get webapps module to work
Hi, I have built and installed the newset webapp module. However, when I try to access anything I get the following error. I get this error even trying the examples servlets. Is this a config problem? or have I missed something during in the build/deploy? If I'm just viewing stuff its ok. Itrs seems that whenever some sort of request is made (like a post) the problem starts, and the module seems to just loop forever. Error: 2001-07-22 11:44:06 [org.apache.catalina.connector.warp.WarpConnector] Connection from Robin.Batcave/192.168.2.3:32877 to Robin.Batcave/192.168.2.3:8008 2001-07-22 11:44:06 [org.apache.catalina.connector.warp.WarpConfigurationHandler] java.lang.IllegalArgumentException: addChild: Child name 'robin.batcave' is not unique at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardEngine.addChild(StandardEngine.java:236) at org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpConfigurationHandler.java:172) at org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpConfigurationHandler.java:110) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:189) at java.lang.Thread.run(Thread.java:484) Server.xml: !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache --- should this end with / Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=Robin.Batcave debug=0 appBase=webapps !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server httpd.conf # Added for Tomcat Servlet engine ### LoadModule webapp_module /usr/lib/apache/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp Robin.Batcave:8008 WebAppDeploy examples warpConnection /examples/ Any help appreciated, gratefully appreciated Jeff
/ as path for my webapp
Hi there, I'd like to assign the / as path for my webapp (cocoon). How do I specify that? I tried to copy the servlet and mapping from the web.xml out of the cocoon.war, but with no success. It seems to me that it doesn't recognize the libraries then?!? Any thoughts? Mariano