Re: JDBC Driver
In that caseif free implementations are not good enoughcan you all please suggest us a good commercial JDBC driver to connect to MS SQL 7, which would be worth its money. We are currently using Jrun 2.3.3 as a plugin to IIS4 on our NT4 box to serve Servlets and JSP for our Virtual host customers...There are a lot of problems associated with this. I was wondering if this is because we are using ODBC system DSN to connect to SQL7. 1. High CPU utilization. (Jrun service needs to be restarted) 2. If sevlets are changed , the changes dont get effected in Jrun. 3. JSP sessions do not work. Would shifting to Tomcat solve these problems or just using a type IV JDBC driver to connect to database is sufficient. Please let us know your experiences. Best Regards Sumith Ail Try FreeTDS (www.freetds.org, I think). I've used their straight TDS driver with excellent results. They also have a Type 4 JDBC driver as well. I haven't had occasion to use it, but if it performs as well as the straight TDS driver, I'm sure you'll be pleased. Unfortunately it looks like their straight TDS driver and the JDBC TDS driver are developed by two separate teams. The JDBC driver is ok for queries and simple updates but from what I recall their idea about what is a connection and when to automatically close connections and commit transactions was quite non-standard. I'd provide more detail but it was almost a year ago that I used it (and the code to break it is on another machine). If you try it I think the following will show the problem: Get a connection: Call conn.setAutoCommit(false); get a prepared statement and update the database close the statement get another prepared statement and update the database close the statement commit the transaction close the connection. I think I remember their driver will either throw an exception somewhere along the way or not show one of the updates. HTH
ODP: Security Policy problem
i think applets are only allowed to connect back to the server they originate from. this might be the problem, or better, consult JDBC faq from www.jguru.com vVolf -Oryginalna wiadomooe- Od: Sunny SJ [mailto:[EMAIL PROTECTED]] Wysano: 21 marca 2001 04:19 Do: [EMAIL PROTECTED] Temat: Security Policy problem I am creating a Java Applet (running on Internet Explorer web browser) that can access a database located in a remote machine (server). The connection to the remote database is established using JDBC-ODBC bridge. However, I encounter java security problem that restricted me to access the database across the network. Is there anyway I can overcome this problem? Thanks for your help SSJ Get free email and a permanent address at http://www.netaddress.com/?N=1
Re: configuring Tomcat on Windows 2000 and IIS
Hi, these are the steps you should follow: 1.run the InternetServices Manager MMC (i.e. ...\winnt\system32\iis.msc) 2. open yourIIS server icon, right click the Web Server to which you whish to add the ISAPI(e.g. Default Web Site), then choose Properties 3. from the Web Site Properties dialog window, choose the "ISAPI Filters" property page andthen click the Add button to open the Filter Properties dialog box 4.insert a name for the ISAPI Redirector filter (I inserted the name "jakarta", suggested in the Tomcat documentation), and the full path of the filter (which under my system is$TOMCAT_HOME\bin\win32\i386\isapi_redirect.dll), then press OK to add the redirector to IIS ISAPI filters 5. restart IIS (right click on the Web Server icon and choose Restart IIS from the popup-menu) 6. reopen the ISAPI Filters tab to check that the redirector status containsan up green arrow icon. If it does, you've done ... Hope this helps, Sal. - Original Message - From: Hwa-Su Kim To: [EMAIL PROTECTED] Sent: Wednesday, March 21, 2001 3:19 AM Subject: configuring Tomcat on Windows 2000 and IIS Hi, I've been trying to configure the ISAPI Redirector on Windows 2000 server. I followed the instruction that comes with Tomcat, tomcat_install\doc\tomcat-iis-howto.html. My question is how do I add isapi_redirect.dll as a filter using the IIS management console (configuring the ISAPI Redirector - step 8). I've tried to add Filter DLLs using regedit, but I don't think it worked. How would I set this up in Windows 2000. Where can I see the green up-pointing arrow? Thanks for your help. Hwa-Su Kim
slow apache-tomcat-mod_jk
I installed apache-mod_jk-tomcat(standalone) on Solaris7. If I send my servlet-requests to the apache's port 80, the pages are served about 5 times slower than the same pages served directly by tomcat's port 8080. Is mod_jk that slow? Did anybody have the same problem? Thanks for help, Thomas Rimmele Dreaming of a Swiss Account? Get it here: http://freemail.swissinfo.org
AW: JDBC Driver
1. Only the first of your problems can have it's cause in the JDBC driver. The JDBC-ODBC Bridge add one extra layer to the db communication. We made good expierences with the WebLogic JDBC Driver from BEA. (One major drawback: it's quite expensive) 2. The other problems look like issues of the servlet engine or configuration errors. -Ursprngliche Nachricht- Von: Tomcat [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 21. Mrz 2001 07:57 An: [EMAIL PROTECTED]; [EMAIL PROTECTED] Betreff: Re: JDBC Driver In that caseif free implementations are not good enoughcan you all please suggest us a good commercial JDBC driver to connect to MS SQL 7, which would be worth its money. snip/ 1. High CPU utilization. (Jrun service needs to be restarted) 2. If sevlets are changed , the changes dont get effected in Jrun. 3. JSP sessions do not work. snip/
single login form for single sign on
I want to use the single sign on capabilities of Tomcat4 with FORM based authentication. However it does not seem possible to define a single login and error page. Even though single sign on and a Realm are specified in $TOMCAT_HOME/conf/server.xml, and FORM authentication is specified in $TOMCAT_HOME/conf/web.xml (e.g. to use /login/login.html as the login page), when there is a need to authenticate from a particular webapp, the login page is referenced relative to the context (e.g $TOMCAT_HOME/webapps/myapp/login/login.html). This would involve copying the login pages into every webapp, which gives a maintenance problem. So in essense the question is: Is there a way to specify a "global" login and error page that will be used by all webapps? Many thanks Tim Tim Dudgeon [EMAIL PROTECTED] -- DISCLAIMER: This message contains proprietary information some or all of which may be confidential and/or legally privileged. It is for the intended recipient only who may use and apply the information only for the intended purpose. Internet communications are not secure and therefore the British Biotech group does not accept legal responsibility for the contents of this message. Any views or opinions presented are only those of the author and not those of the British Biotech group. If you are not the intended recipient please delete this e-mail and notify the author immediately by calling ++44 (0)1865 748747; do not use, disclose, distribute, copy, print or rely on this e-mail.
How to JSP on Tomcat ...urgent !!!!.
Hello all, Today is my first day to work on JSP, I have created very simple JSP file, and was trying to run it was giving proper output and also it was giving me following error, Firsly i have started Apache service using net start option and then I have started tomcat server. Please help me to run JSP on Tomcat server 2001-03-21 04:12:27 - Ctx( /examples ): Exception in: R( /examples + /jsp/dates/date.jsp + null) - javax.servlet.ServletException at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) 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 : : : : etc. please help me _ Get LifeTime Free email Visit --- http://www.nagpurcity.net
Re: configuring Tomcat on Windows 2000 and IIS
Thanx Sal, Through your response for the mail i came to know how to add ISAPI filter. But I am getting the red arrow pointing downwards. I followed all the steps from the document Tomcat IIS How To. Can you suggest me any solution for the same. Regards, Rajesh Salvatore Borrelli wrote: Hi, these are the steps you should follow:1. run the Internet Services Manager MMC (i.e. ...\winnt\system32\iis.msc)2. open your IIS server icon, right click the Web Server to which you whish to add the ISAPI (e.g. Default Web Site), then choose Properties3. from the Web Site Properties dialog window, choose the "ISAPI Filters" property page and then click the Add button to open the Filter Properties dialog box4. insert a name for the ISAPI Redirector filter (I inserted the name "jakarta", suggested in the Tomcat documentation), and the full path of the filter (which under my system is $TOMCAT_HOME\bin\win32\i386\isapi_redirect.dll), then press OK to add the redirector to IIS ISAPI filters5. restart IIS (right click on the Web Server icon and choose Restart IIS from the popup-menu)6. reopen the ISAPI Filters tab to check that the redirector status contains an up green arrow icon. If it does, you've done ...Hope this helps,Sal. - Original Message - From: Hwa-Su Kim To: [EMAIL PROTECTED] Sent: Wednesday, March 21, 2001 3:19 AM Subject: configuring Tomcat on Windows 2000 and IIS Hi,I've been trying to configure the ISAPI Redirector on Windows 2000 server. I followed the instruction that comes with Tomcat, tomcat_install\doc\tomcat-iis-howto.html. My question is how do I add isapi_redirect.dll as a filter using the IIS management console (configuring the ISAPI Redirector - step 8). I've tried to add Filter DLLs using regedit, but I don't think it worked. How would I set this up in Windows 2000. Where can I see the green up-pointing arrow?Thanks for your help.Hwa-Su Kim
Error log file
Hi All, I am running tomcat servlet Enginee under Apache in Linux machine. Everything is running fine and now i am configured tomcat with Apache so that tomcat will be started automatically while boot time before Apache.. My problem is that earlier i used to run tomcat in ../bin/startup.sh in command prompt so that i will see all error log files in the command prompt itself where i am giving ../bin/startup.sh. Since i put my automatic script which is starting tomcat in /etc/rc.d/init.d/tomcatd then symbolic link /etc/rc.d/rc5.d/S19tomcatd, i could not see error-logs of tomcat...Can anybody tell where i will see error log files of tomcat.. Regards Venkatesh
RE: configuring Tomcat on Windows 2000 and IIS
Hi, This configuration works only with the examples app, but ¿how it could work with other apps? e.g.: /admin It is impossible run if the context is diferent to examples. Thanks -Mensaje original-De: Salvatore Borrelli [mailto:[EMAIL PROTECTED]]Enviado el: miércoles, 21 de marzo de 2001 10:16Para: [EMAIL PROTECTED]Asunto: Re: configuring Tomcat on Windows 2000 and IIS Hi, these are the steps you should follow: 1.run the InternetServices Manager MMC (i.e. ...\winnt\system32\iis.msc) 2. open yourIIS server icon, right click the Web Server to which you whish to add the ISAPI(e.g. Default Web Site), then choose Properties 3. from the Web Site Properties dialog window, choose the "ISAPI Filters" property page andthen click the Add button to open the Filter Properties dialog box 4.insert a name for the ISAPI Redirector filter (I inserted the name "jakarta", suggested in the Tomcat documentation), and the full path of the filter (which under my system is$TOMCAT_HOME\bin\win32\i386\isapi_redirect.dll), then press OK to add the redirector to IIS ISAPI filters 5. restart IIS (right click on the Web Server icon and choose Restart IIS from the popup-menu) 6. reopen the ISAPI Filters tab to check that the redirector status containsan up green arrow icon. If it does, you've done ... Hope this helps, Sal. - Original Message - From: Hwa-Su Kim To: [EMAIL PROTECTED] Sent: Wednesday, March 21, 2001 3:19 AM Subject: configuring Tomcat on Windows 2000 and IIS Hi, I've been trying to configure the ISAPI Redirector on Windows 2000 server. I followed the instruction that comes with Tomcat, tomcat_install\doc\tomcat-iis-howto.html. My question is how do I add isapi_redirect.dll as a filter using the IIS management console (configuring the ISAPI Redirector - step 8). I've tried to add Filter DLLs using regedit, but I don't think it worked. How would I set this up in Windows 2000. Where can I see the green up-pointing arrow? Thanks for your help. Hwa-Su Kim
Re: -=SCOTT=- PLEASE READ LIST ADMINISTRATORS (original subject was . )
Scott, The last time I posted to this board about spamming the SPAMMER and at least one other member on the mailing list did not think it was SPAMMING. Here is what I Posted: Subject: Re: Off Topic:! Date: Wed, 22 Nov 2000 23:38:26 -0800 From: "Michael G. Anderson C.T.O" [EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED], [EMAIL PROTECTED] Organization: Eye-go.com To: [EMAIL PROTECTED] References: 1 Mark, While everybody needs to make a living, there are certain "venues" as you are undoubtedly aware e.g. "dice, monster.. etc." Why do you, then, "Deliberately" Go Off Topic? Is this "Virgin Territory"? Is this: Fair Game Virtual Real Estate? Unknown and uncharted waters to fish? -- Free of competition? Does the Pronouncement "Off Topic: Dev. Engineers Needed!" give you Carte Blanche here? It appears that you are guilty of "premeditated 'spamming'"! My response is probably going to go unheeded and is probably a total waste of my time -- and the board's diskspace. But I feel that there are certain (rules) that must be obeyed. The rule here is implicit. Don't go off topic. regards, mike anderson Mark Franz wrote: > Are you an energetic, motivated, talented developer in need of new > surroundings? > How about a sunny, warm climate like San Diego, California? > How about a company that is one of the top 10 companies in San Diego to work > for? > Yes? Then we need you! > > We are in need of talented Java developers experienced in XML, Beans and GUI > programming. We currently have 10 immediate openings for these positions: > > GUI Software Engineers > > Responsible for using Java and XML to develop and maintain the GUI modules > and applications built on top of it. > > Qualifications: > > * 1+ years object oriented software product development in one of more > of the following languages. > > * XML, Java, C++, HTML, Java Server Pages, JavaScript (client/server) > > * Working experience with AWT and/or Swing > > * Knowledge of multiple platforms (Windows NT, Linux, Sun Solaris ...) > > * Knowledge of SCM tools and product development practices > > * Experience with relational database systems, MFC, COM and Active X a > plus. > > * Ability to learn quickly: intellect and creativity are more > important than work experience > > * Ability to work in small enthusiastic teams > > Software Engineer I > > Responsible for using Java and XML to develop and maintain the Application > development platform and applications built on top of it. > > Qualifications: > > * 1+ years object oriented software product development in one of more > of the following languages. > > * XML, Java, J2EE, C++, HTML, Java Server Pages, JavaScript > (client/server), relational database systems experience > > * Knowledge of multiple platforms ( Windows NT, Linux, Sun Solaris > ...) > > * Knowledge of SCM tools and product development practices > > * Experience in EJB, network protocols > > * System integration experience a plus. > > * Ability to learn quickly: intellect and creativity are more > important than work experience > > * Ability to work in small enthusiastic teams > > Development Support Engineer > > Responsibilities: > > * Provide technical/customer support by telephone for our Java-based > Internet platform and applications. Customers are Java Development Engineers > at client companies and system integrators. > > * Design and develop Java code examples for helping our customers to > implement their applications. > > * Troubleshoot customer problems and interface with Sales, Marketing, > and Engineering to improve product service, design, and quality. > > Qualifications: > > * Background in one or more of the following; > > * Development, Quality Assurance, Technical Training, Consulting, Java > (C++ if strong), RDBMS (Oracle,DB2, mySQL, MS-SQL ), or Operating Systems > (Linux, Solaris, Windows NT) and a generalist understanding of the technical > environment and languages. > > * Working knowledge of UNIX or Windows NT and familiarity with > relational databases and object-oriented technology. > > * Must be analytical, creative, detail-oriented, self-motivated, and > responsible. Intellect is more important than work experience. > > * Excellent customer service and communication skills. > > * Must remain calm under pressure. > > * BS degree in Computer Science a plus but not required. > > Sensor Software Engineer > > Responsible for using Java and XML to develop and maintain the sensor and > data acquisition modules of the Application development platform. > > Qualifications: > > * 1+ years object oriented software product development in one of more > of the following languages. > > * XML, Java, J2EE, C++, HTML, Java Server Pages, JavaScript > (client/server), relational database systems experience > > * Working experience with signal and video processing > > * Knowledge of multiple platforms (Windows NT, Linux, Sun Solaris ...) > > * Knowledge of SCM tools and product development practices > > * Experience in MPEG, RealMedia and
RE: How to JSP on Tomcat ...urgent !!!!.
First of all - drop the 'urgent'. All of us want help fast. Second: I think tomcat must be started first as apache uses a socket made available by tomcat. Third: Take one step at a time. No one should expect to make both apache and tomcat up and running in one blow. Start with making tomcat work stand alone by reading the manual and similar newbie mailing list entries. Please try this. /aksel -Original Message- From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]] Sent: 21. marts 2001 11:53 To: [EMAIL PROTECTED] Subject: How to JSP on Tomcat ...urgent . Hello all, Today is my first day to work on JSP, I have created very simple JSP file, and was trying to run it was giving proper output and also it was giving me following error, Firsly i have started Apache service using net start option and then I have started tomcat server. Please help me to run JSP on Tomcat server 2001-03-21 04:12:27 - Ctx( /examples ): Exception in: R( /examples + /jsp/dates/date.jsp + null) - javax.servlet.ServletException at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) 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:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at : : : : etc. please help me _ Get LifeTime Free email Visit --- http://www.nagpurcity.net
How to run JSP on Tomcat under windows?
Hello all, Today is my first day to work on JSP, I have created very simple JSP file, and was trying to run it was giving proper output and also it was giving me following error, I am using windows machine. Firsly i have started Apache service using net start option and then I have started tomcat server. Please help me to run JSP on Tomcat server 2001-03-21 04:12:27 - Ctx( /examples ): Exception in: R( /examples + /jsp/dates/date.jsp + null) - javax.servlet.ServletException at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) 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 : : : : etc. please help me _ Get LifeTime Free email Visit --- http://www.nagpurcity.net
https on apache/jakarta
Hi, I'm planning to integrate Tomcat with Apache as per the Tomcat-Apache HOWTO document. My question is this: Q) Will I need SSL installed on both Apache AND Tomcat to ensure that passwords from forms are encrypted, or will I need this only on Apache? Thanks for any help/experiences you can give. Simon McMenzie
Re: working with jakarta NT service
Hello, R u work on Tomcat on Linux 6.2 and 7.0 with apache 3.12 Thanks Fakhar - Original Message - From: Anjum Naseer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 20, 2001 10:49 PM Subject: RE: working with jakarta NT service Make sure Tomcat and the JDK are installed on a local disk and not on a network drive. -Original Message- From: Jones Borralho Gama [mailto:[EMAIL PROTECTED]] Sent: 20 March 2001 17:12 To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: working with jakarta NT service Importance: High Hello, I'm talking from Brazil, I have a problem and I really appreciate if you can help. I'm using jakarta-tomcat-3.2.1 and jdk1.1.8 in my computer and I'd like to create a jakarta NT service and executes it in the background as an NT service. I install the "jk_nt_service" point to wrapper.properties file but the service is created but it's impossible to start. What can I do? Could you help me? When I try to startup the service, the NT show "error 2140" Thank's and sorry because my English is not good. Jones
Re: configuring Tomcat on Windows 2000 and IIS
Thanx everybody I got the index page for the jsp. Thanx to everyone for there responses. Regards, Rajesh Salvatore Borrelli wrote: Hi, these are the steps you should follow:1. run the Internet Services Manager MMC (i.e. ...\winnt\system32\iis.msc)2. open your IIS server icon, right click the Web Server to which you whish to add the ISAPI (e.g. Default Web Site), then choose Properties3. from the Web Site Properties dialog window, choose the "ISAPI Filters" property page and then click the Add button to open the Filter Properties dialog box4. insert a name for the ISAPI Redirector filter (I inserted the name "jakarta", suggested in the Tomcat documentation), and the full path of the filter (which under my system is $TOMCAT_HOME\bin\win32\i386\isapi_redirect.dll), then press OK to add the redirector to IIS ISAPI filters5. restart IIS (right click on the Web Server icon and choose Restart IIS from the popup-menu)6. reopen the ISAPI Filters tab to check that the redirector status contains an up green arrow icon. If it does, you've done ...Hope this helps,Sal. - Original Message - From: Hwa-Su Kim To: [EMAIL PROTECTED] Sent: Wednesday, March 21, 2001 3:19 AM Subject: configuring Tomcat on Windows 2000 and IIS Hi,I've been trying to configure the ISAPI Redirector on Windows 2000 server. I followed the instruction that comes with Tomcat, tomcat_install\doc\tomcat-iis-howto.html. My question is how do I add isapi_redirect.dll as a filter using the IIS management console (configuring the ISAPI Redirector - step 8). I've tried to add Filter DLLs using regedit, but I don't think it worked. How would I set this up in Windows 2000. Where can I see the green up-pointing arrow?Thanks for your help.Hwa-Su Kim
Re: welcome-file problem
On Tue, 20 Mar 2001, Martin Mauri wrote: On Mon, 19 Mar 2001, Martin Mauri wrote: The URL is: http://myhost:myport/worksheet/ and so worksheet is the context name, but the welcome page is worksheet.jsp and it's inside the directory worksheet. OK. That seems fine to me. Now, I'm using mod_jserv, not mod_jk, and I have things like the following in my apache/tomcat conf file: Alias /blah /path/to/tomcat/webapps/blah ApJServMount /blah/servlet /blah which I got based on the sample provided. I also added ApJServMount /blah /blah which wasn't in the sample but which seems to allow me to do some things I want. As I understand it, these ApJServMount's, tell apache (and/or tomcat) what the context is for URL's passed to tomcat. The ApJKMount directives you have don't seem to be doing that, they just indicate what the protocol is. I'm wondering if this could be (part of) the problem. Because it seems like the URL you're using wouldn't be matched by either of the ApJKMount directives shown below. Dear Milt, I've done exactly as you told me, but anything happened, could be this a bug of this version of mod_jk? Wouldn't it be useful to post it to the developers list? regards. Martin
RE: How to run JSP on Tomcat under windows?
One thing you will quickly learn when reading stack traces from Tomcat is that the first exception mentioned is never useful - its almost always a Servlet exception wrapping an exception that something else threw (like your code with a NullPointer, for example). If you look through your stack trace (that you clipped from your two original messages) you should see something mentioning "Root Cause" - this will be the real error. Look for it and see if you can track that down, if not post the error. Randy -Original Message- From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 6:20 AM To: [EMAIL PROTECTED] Subject: How to run JSP on Tomcat under windows? Hello all, Today is my first day to work on JSP, I have created very simple JSP file, and was trying to run it was giving proper output and also it was giving me following error, I am using windows machine. Firsly i have started Apache service using net start option and then I have started tomcat server. Please help me to run JSP on Tomcat server 2001-03-21 04:12:27 - Ctx( /examples ): Exception in: R( /examples + /jsp/dates/date.jsp + null) - javax.servlet.ServletException at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) 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.j ava:372) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.j ava:743) at : : : : etc. please help me _ Get LifeTime Free email Visit --- http://www.nagpurcity.net
Help: form-based auth in Tomcat 3.2.1
Hi ! Form-based authentication : When I use Apache + mod _ jk + Tomcat3.2.1 I receive an error 404 url : http: // valera.kompan.com.ua/auto/j _ security _ check With use Tomcat standalone all works fine. Where is a problem ? Software :NT2000+Tomcat3.2.1+Apache1.3.14+mod_jk Best regards, Valera M. mailto:[EMAIL PROTECTED]
Re: Load Balancing and JkMount
Hi Thanks for your response, I can't activate the load balancing yet, Do you have any more ideas ?? I use the following configuration: My worker configuration file: worker.list=lb worker.ajp12.host=host1 worker.ajp12.port=8007 worker.ajp12.type=ajp12 worker.ajp13.host=host1 worker.ajp13.port=8009 worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.Xajp13.host=host2 worker.Xajp13.port=8009 worker.Xajp13.type=ajp13 worker.Xajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers= ajp13, Xajp13 In My Tomcat.conf file: JkMount /*.jsp lb JkMount /servlet/* lb I've not tried this, but don't you replace the workers in the in the workers list in the workers.properties file with the "lb" worker, and then add all of the workers you want load-balanced to the load-balancer list? email me back if you don't understand my suggestion and I'll look into the files a bit and give you a more exact answer. On Tue, 20 Mar 2001, Amir Nuri wrote: All the examples and archive messages that I have seen so far talk about load balancing using either multiple JVM's or Multiple Connector Directives with different port numbers and corrosponding workers in the workers.properties file. But they all use different Mount Points for each worker ! However my need is to Load Balance a *SINGLE MOUNT POINT* ( A single Virtual Apache Host corrosponding to a Host (context) in server.xml ) i.e I want http://ww.mysite.com/*.jsp to be load balanced by 4 worker threads. I am currently using 4 JkMount Directives, and the server is up and running. i.e JkMount /*.jsp ajp13 JkMount /*.jsp Xajp13 JkMount /*.jsp Yajp13 JkMount /*.jsp Zajp13 Also if I name the workers ajp13a , ajp13b and ajp13c, apache does not start and gives me an error saying that it cannot find the workers file !!! Anyway, my question are :- 1. Is this the right way to have a single mount point load balanced ? 2. If so, is it a good idea to run the tomcat instances in the same JVM ? Or should I run multiple tomcat/JVM instances on the same / different servers ?
Sharing Servlet between Web Applications
Hello, I have been reading everything I could find about ServletContext and have not been able to find an example of how to share a servlet in one web application with servlets in other web applications. I can get a RequestDispather for a servlet in another web application, but when I "forward" to that servlet I loose the session I had. Is there a way that the servlet I forward to in another web application could be considered part of my web application so I can keep the same session? Thanks. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Re: Form based auth. again...
Vladimir Grishchenko wrote: Christian Rauh wrote: Vladimir Grishchenko wrote: Christian Rauh wrote: Vladimir Grishchenko wrote: I am also facing the same problem and had an idea while reading your post. Maybe you can set a frame on your main page where you want the login to appear. That frame links to that welcome page proposed by Craig. What would actually be loaded on the frame is the login page. I'm thinking along the same lines... You could also embed a tiny invisible image in protected area to your front page (named /welcome, for example) and define your login form as /welcome?mode=login, so whenever you're not authorized welcome page is smart to display you a login form... The problem here is that it's difficult to display a meaningful message that a user needs to login whenever (s)he actually tries to get a real protected page since it'll always display /welcome?mode=login. Something like that... I guess that what we both want is a way to call an url with the authentication parameters (user, password) and a page to redirect if everything is ok. Then Tomcat would do the authentication. I think that this behaviour may be emulated by creating a flash movie or applet that: 1 - Gets the username and password from the user 2 - Try to load any protected resource. This will put tomcat on "authentication state". This loading would be internal and not shown in the browser window. 3 - Then load j_security_check passing the appropriatte username and password variables obtained in 1. 4 - load the protected resource that you want on the browser window, a frame or _parent. IMO this sounds like more work than just writing your own authentication servlet... This applet should parse an incoming login page and emulate sending a post from j_security_chek... Probably it is. The only reason for doing this would be to use the standard container authentication scheme, which is a good idea since you may be delegating authentication to someone who may be more proficient in security issues than yourself. Christian This may work. If I get the time I will try to implement it. I also seem to have read somewhere that you can do what you want using the JDBCRealm. Have you tried anything on that line? As far as I understand JDBCRealm has little to do with it. It's just a mechanism facilitating authentication, you give it [name, password, role] and it tells you if you're good to go using a database instead of tomcat-users.xml. that's it. yes, thats it. What I meant was that you may give a look into the JDBCRealm classes and create your own authentication mechanism. Dont know if it is possible though. Heard that some people were going into this direction. Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Class loader behavior with resource bundles...
I've had my fair share of fun trying to use getResourceBundle to load a properties file and made basically the same discoveries you have. The properties file say bar.properties gets loaded as ResourceBundle.getBundle("org.foo.bar") and must be in WEB-INF/classes/org/foo/bar.properties. This is so Tomcat can find the properties file in the web applications classpath- otherwise it doesn't know where it is- When I tried placing the properties file in WEB-INF/classes/com/foo/bar/FooListResourceBundle.properties (to use the naming convention of my example in the post) it was not found. Only when I placed it in $TOMCAT_HOME/classes/com/foo/bar/FooListResourceBundle.properties was it found (but then I got the second error). Jim Dilbert: I *have* a personality! Dogbert: Let's not get into that "Is zero a number" debate again. smime.p7s
RE: Class loader behavior with resource bundles...
It is also standard behavior of Java with respect to class paths, and is not specific to Tomcat. Resource bundles have to follow the same directory structure rules as a class named org.foo.bar would. It WAS in the same directory structure, as my post pointed out. The resource bundle IS in the same package as the main class, IS stored in the same directory as the main class, DOES work when loaded from either the command line tests or Tomcat under Windows 2000, DOES work when loaded from a jar file (which contains the SAME class directory structure, DOES NOT work under Tomcat on Linux. This is NOT an "it's in the wrong place" problem, per se. If it were, it would've been caught under the command line testing and/or under Tomcat on Windows 2000. This is a "why is Linux Tomcat different than Windows 2000 Tomcat" issue, IMHO. Jim Dilbert: I *have* a personality! Dogbert: Let's not get into that "Is zero a number" debate again. smime.p7s
RE: Class loader behavior with resource bundles...
I have a question. How to you pass a data stream with XML using URL connection object to test a servlet on Tomcat? I am having problems in sending across this data stream to Tomcat. Thanks -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 10:04 PM To: '[EMAIL PROTECTED]' Subject: RE: Class loader behavior with resource bundles... I have only one guess: you've got the wrong package (or no package) in your ListResourceBundle implementation,... -- Bill K. -Original Message- From: James Lehmer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 6:48 PM To: [EMAIL PROTECTED] Subject: Class loader behavior with resource bundles... First off, if the following has an answer that's been posted before, my apologies. I searched the archives (and the Web in general) and didn't get any hits. Really. I swear! :-) I am going to try and be as detailed as possible, because it appears that it COULD be a Tomcat bug, since the behavior displayed is different depending on whether it's Tomcat under Windows 2000 or Linux. So bear with me, this is long. However, I'd appreciate any insight, if it is NOT a bug, as to why the behavior is different on those two platforms, and what we could have done to have mitigated it in the first place. Luckily, I found out how to fix the non-optimal behavior, but that just leaves me confused as to why, and nervous that we don't understand the environment as well as we should (what else is lurking to bite us?) o Tomcat version 3.1.1 o Redhat 7.0 with up2date on everything within a week or so. o Windows 2000 SP1 o JDK 1.3 1) I created a set of Java classes in a package, let's call it com.foo.bar. There are the main classes, some exception classes, and a ListResourceBundle class, FooListResourceBundle, for holding error messages used when an exception is thrown. 2) The main classes in com.foo.bar load the resource bundle in a static initializer as follows: /** *** Initialize error messages. **/ static { try { msgs = java.util.ResourceBundle.getBundle("com.foo.bar.FooListResourc eBundle"); } catch (Throwable t) { // Note that we can't throw our own exception here // (not allowed in static initializers). // See initializer() for where we DO throw the exception // if this didn't load correctly. } } As per the comments, the initializer method, called by all constructors, simply checks the msgs field for null, and throws an exception if it is so. This is how we know the problem exists later on. 3) Tested the library code using unit tests at the command line. Everything works great. 4) Published code to colleague who is doing actual servlet writing. Colleague is developing under Windows 2000, running Tomcat there. He installed my code (more on that in a bit), wrote his servlets to call it, tested it. Everything worked great. 5) Colleague published his code, along with mine, to QA. QA is running Tomcat under Linux (the final product distribution will be released on Linux). Right away, we get the first error, which is the exception from my main class that is thrown in the initializer method when it detects the resource bundle wasn't successfully loaded. 6) Started poking around. I delivered the code to my colleague in both jar and class file forms, he has decided to install it for his servlet as classes under WEB-INF/classes/com/foo/bar. The class loader is obviously finding the main class from there (since that class is throwing a custom exception because it can't find the resource bundle), so why can't it load the resource bundle class file, which is in the same package, from the same location? 7) After much hacking and poking around, I figure out that I can get past this if I create a properties file that has the appropriate contents in it, and place it under $TOMCAT_HOME/classes/com/foo/bar. Placing the class file there doesn't work. Only the properties file works (as far as loading is concerned, but read on). See java.util.ResourceBundle JDK docs if you don't know about being able to back a bundle with a properties file. 8) So, I think "that's weird", but am happy - kind of. Because (a) I still don't know WHY the class loader choked, and (b) the lack of problems lasts for about a day. Then I get a new bug from QA. This one occurs when my main class tries to throw an exception and tries to look up an error message from the resource bundle (which is now backed by the properties file, remember). In this case, the message is: Error: 500 Location: /you/go Internal Servlet Error: java.lang.ClassFormatError: com/foo/bar/FooListResourceBundle (Illegal constant pool index) Arg! 9) I do some more hacking around. Finally figure out that everything will work
Re: PLEASE READ LIST ADMINISTRATORS (original subject was . )
"Michael G. Anderson" wrote: Scott, I know this is phucked and a lot of work but -- at the bottom -- "Please email [EMAIL PROTECTED] with the email address that you would like removed and the word REMOVE in the subject heading." RIE Bullshit - those scumbags just use your reply to verify that it is a live address. Instead forward the entire mail to [EMAIL PROTECTED]
Re: form-based auth in Tomcat 3.2.1
Dear Ian,I have complet the configuration and all the stuff but i want to change thecolor combinition and other lay-out of the world pay page how i can dothis..?Please let me know.AffanFreezone Internet Ltd. - Original Message - From: Valeriy Molyakov To: [EMAIL PROTECTED] Sent: Wednesday, March 21, 2001 12:54 PM Subject: Help: form-based auth in Tomcat 3.2.1 Hi ! Form-based authentication : When I use Apache + mod _ jk + Tomcat3.2.1 I receive an error 404 url : http: // valera.kompan.com.ua/auto/j _ security _ check With use Tomcat standalone all works fine. Where is a problem ? Software :NT2000+Tomcat3.2.1+Apache1.3.14+mod_jk Best regards, Valera M. mailto:[EMAIL PROTECTED]
ODP: Help: form-based auth in Tomcat 3.2.1
i have exactly the same symptoms - posted it here and never solved it... anybody? vVolf -Oryginalna wiadomosc- Od: Valeriy Molyakov [mailto:[EMAIL PROTECTED]] Wyslano: 21 marca 2001 13:54 Do: [EMAIL PROTECTED] Temat: Help: form-based auth in Tomcat 3.2.1
RE: JDBC Driver
Try http://www.inetsoftware.de/ I've used their driver before, and it worked quite well. Depending on your needs, the price isn't too bad. Good hunting, Clayton Peirens -Original Message- From: Tomcat [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 11:57 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: JDBC Driver In that caseif free implementations are not good enoughcan you all please suggest us a good commercial JDBC driver to connect to MS SQL 7, which would be worth its money. We are currently using Jrun 2.3.3 as a plugin to IIS4 on our NT4 box to serve Servlets and JSP for our Virtual host customers...There are a lot of problems associated with this. I was wondering if this is because we are using ODBC system DSN to connect to SQL7. 1. High CPU utilization. (Jrun service needs to be restarted) 2. If sevlets are changed , the changes dont get effected in Jrun. 3. JSP sessions do not work. Would shifting to Tomcat solve these problems or just using a type IV JDBC driver to connect to database is sufficient. Please let us know your experiences. Best Regards Sumith Ail Try FreeTDS (www.freetds.org, I think). I've used their straight TDS driver with excellent results. They also have a Type 4 JDBC driver as well. I haven't had occasion to use it, but if it performs as well as the straight TDS driver, I'm sure you'll be pleased. Unfortunately it looks like their straight TDS driver and the JDBC TDS driver are developed by two separate teams. The JDBC driver is ok for queries and simple updates but from what I recall their idea about what is a connection and when to automatically close connections and commit transactions was quite non-standard. I'd provide more detail but it was almost a year ago that I used it (and the code to break it is on another machine). If you try it I think the following will show the problem: Get a connection: Call conn.setAutoCommit(false); get a prepared statement and update the database close the statement get another prepared statement and update the database close the statement commit the transaction close the connection. I think I remember their driver will either throw an exception somewhere along the way or not show one of the updates. HTH
session question
hi folks, im using tc4-b1 with apache1.3.19 and after many days i got the warp-connection woking (using webapp). i found that there was no docs about installing these stuff, so i'm wonder why this list doesnt contain many questions about "getting apache and tomcat working TOGETHER". Anyway, i mentioned that there may be a bug in tomcat-session-handling. the case: i create a new session(a cookie will be send to the user)and next page the script looks if a session is set. But all the time there is NO session set, so a new session is created! the example pages of tocat examples/jsp/... working in the same way. Now my question: is there any kown bug about apache doesnn support (tc-created-)sessions ?? Thanks for anwering, Sascha.
SSL--Session Expiry
Hi all,My environment is WinNT, Tomcat3.2, jsse1.0.2.Everything is working fine with cookie enabled browsers.But when I disable cookies in the browsers the session id is changingand consequently the original session is becoming null. I tried to do some jugglery with response.sendRedirect(myUrl),jsp:forward page="%=myUrl%"/ after encoding the url. But I'm unable to find a solution. Any help would be greatly appreciated.thanks, Seshagiri
iPlanet 4.0 Support?
Title: iPlanet 4.0 Support? Does Tomcat support the iPlanet web-server? We are trying to create a deployment that will work on both IIS and iPlanet web servers. We would like to use Tomcat in iPlanet even though it has its own servlet/jsp engine. Thanks, Keith
RE: Class loader behavior with resource bundles...
Jim, Does it work in the command line tests under both Linux and Win2K? I just want to make sure the JDK itself is ruled out. Personally, we've run into instances where regular .properties files aren't found under Tomcat if they're in WEB-INF/classes; but if we put them in a package directory under that and then load them accordingly, they are found. Donnie [EMAIL PROTECTED] 03/21/01 08:39AM It is also standard behavior of Java with respect to class paths, and is not specific to Tomcat. Resource bundles have to follow the same directory structure rules as a class named org.foo.bar would. It WAS in the same directory structure, as my post pointed out. The resource bundle IS in the same package as the main class, IS stored in the same directory as the main class, DOES work when loaded from either the command line tests or Tomcat under Windows 2000, DOES work when loaded from a jar file (which contains the SAME class directory structure, DOES NOT work under Tomcat on Linux. This is NOT an "it's in the wrong place" problem, per se. If it were, it would've been caught under the command line testing and/or under Tomcat on Windows 2000. This is a "why is Linux Tomcat different than Windows 2000 Tomcat" issue, IMHO. Jim Dilbert: I *have* a personality! Dogbert: Let's not get into that "Is zero a number" debate again.
Re: form-based auth in Tomcat 3.2.1
I add mapping on httpd.conf : JkMount /auto/login/j_security_check ajp13 ... All works ! - Original Message - From: Valeriy Molyakov To: [EMAIL PROTECTED] Sent: Wednesday, March 21, 2001 2:54 PM Subject: Help: form-based auth in Tomcat 3.2.1 Hi ! Form-based authentication : When I use Apache + mod _ jk + Tomcat3.2.1 I receive an error 404 url : http: // valera.kompan.com.ua/auto/j _ security _ check With use Tomcat standalone all works fine. Where is a problem ? Software :NT2000+Tomcat3.2.1+Apache1.3.14+mod_jk Best regards, Valera M. mailto:[EMAIL PROTECTED]
Re: Sharing Servlet between Web Applications
Wyn Easton wrote: Hello, I have been reading everything I could find about ServletContext and have not been able to find an example of how to share a servlet in one web application with servlets in other web applications. I can get a RequestDispather for a servlet in another web application, but when I "forward" to that servlet I loose the session I had. Is there a way that the servlet I forward to in another web application could be considered part of my web application so I can keep the same session? Thanks. [...] Hi :-) *0 the following is a good email :-) --good email-- On Fri, 9 Mar 2001, Richard Yumul wrote: Hi all - I've been playing with servlets for over a year or so now, and one of the drawback's I've encountered is the ability for separate WAR's to communicate w/ each other. For example, say I have two WAR's: one that handles logging in (after a successful login, it puts user info in a HttpSession), and one which handles a simple form submission. The URL's would be deployed something like (in TOMCAT): webapps/login webapps/form Now, is there any way for the 'form' app too access the user info from the 'login' context? I know they're in separate ServletContext's, but this doesn't seem like an unreasonable functionality to ask for. Or, if there's any workaround, or alternate method to achieve this type of functionality I'd very much appreciate it if somebody would enlighten me. The only option that I see, if I want multiple app's talking to each other (like a calendar, message board, or news feed, for example) would be to bundle them all in one WAR. Thus you can't deploy the individual app's separately. If I'm missing the bigger picture, somebody please enlighten me. :) Thought off the top of my head: Will crossContext help with this? That's a property of contexts that you set up in server.xml. According to the comments there: ... crossContext=true (allows you to access other contexts via ServletContext.getContext()) Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] --/good email-- *1 the following is from Servlet API doc: - getRequestDispatcher public RequestDispatcher getRequestDispatcher(java.lang.String path) Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path. A RequestDispatcher object can be used to forward a request to the resource or to include the resource in a response. The resource can be dynamic or static. The pathname must begin with a "/" and is interpreted as relative to the current context root. Use getContext to obtain a RequestDispatcher for resources in foreign contexts. This method returns null if the ServletContext cannot return a RequestDispatcher. Parameters: path - a String specifying the pathname to the resource Returns: a RequestDispatcher object that acts as a wrapper for the resource at the specified path - getContext public ServletContext getContext(java.lang.String uripath) Returns a ServletContext object that corresponds to a specified URL on the server. This method allows servlets to gain access to the context for various parts of the server, and as needed obtain RequestDispatcher objects from the context. The given path must be absolute (beginning with "/") and is interpreted based on the server's document root. In a security conscious environment, the servlet container may return null for a given URL. Parameters: uripath - a String specifying the absolute URL of a resource on the server Returns: the ServletContext object that corresponds to the named URL *2 so I think: - if we want "goto" another Servlet within the same webapp: ServletContext thisctx=this.getServletContext(); RequestDispatcher rdpt=thisctx.getRequestDispatcher("/servlet/MyServlet0"); rdpt.forward(req, res); - if we want to "goto" another Servlet within another webapp(but the two webapps are in the same Servlet container): //from webapp0-MyServlet0 to webapp1-MyServlet1 ... ServletContext thatctx=this.getServletContext().getContext("/webapp1"); RequestDispatcher rdpt=thatctx.getRequestDispatcher("/servlet/MyServlet1"); rdpt.forward(req, res); ... *3 and you also can "share" object "across" these 2 webapps(in the same Servlet Conainer): - in webapp0-MyServlet0, put a object in ServletContext ... Object Obj=new Object(); this.getServletContext().setAttribute("Obj", Obj); System.out.println("in MyServlet0, Obj.hashCode()="+Obj.hashCode()); System.out.println("in MyServlet0, this.ctx.hashCode()="+this.getServletContext().hashCode()); ... - in webapp1-MyServlet1, get that object from ServletContext ... ServletContext
Tomcat - Apache installation - please help!!!
Please help... I have redhat 7.0, kernel 2.4.2 and have downloaded latest source for tomcat, ant, jaxp, jess, etc... and all my environ variable are set as specified in the README. Sorry to bother, but is the build problem I'm having apparent anyone. Thanks. [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompiler.ja va:141: Method getClassName(java.lang.String) not found in class org.apache.jasper.compiler.ClassName. [javac] realClassName = ClassName.getClassName( getClassFileName() ); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompiler.ja va:142: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch( JasperException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseEventL istener.java:866: Wrong number of arguments in constructor. [javac] = new GeneratorWrapper(new ForwardGenerator(start, attrs, param),start, stop); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseEventL istener.java:875: Wrong number of arguments in constructor. [javac] = new GeneratorWrapper(new IncludeGenerator(start, attrs, param),start, stop); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\TagLibraryInfo Impl.java:521: Incompatible type for constructor. Can't convert java.lang.String to boolean. [javac] return new TagAttributeInfo(name, required, type, rtexprvalue); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\TagLibraryInfo Impl.java:521: Incompatible type for constructor. Can't convert boolean to java.lang.String. [javac] return new TagAttributeInfo(name, required, type, rtexprvalue); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:329: Wrong number of arguments in constructor. [javac] CommandLineContext clctxt = new CommandLineContext( [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:367: Method compile() not found in class org.apache.jasper.compiler.CommandLineCompiler. [javac] clc.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:392: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch (JasperException je) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.java :442: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.java :447: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.java :451: Exception java.io.FileNotFoundException is never thrown in the body of the corresponding try statement. [javac] } catch (FileNotFoundException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.java :453: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch (JasperException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\facade22\org\apache\tomcat\modules\facade22\Jsp Interceptor.java:213: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] compiler.compile(); [javac] Anand Patil 813 978 4919/ Page-800 985 1743 Awas Project Team Verizon Data Services
RE: Apache as Proxy
To me this would not make sense since Tomcat is a java server / http server. If you want to use an open source proxy server, try using Squid Proxy server in conjunction with tomcat and apache. http://www.squid-cache.org/ Cheers -Nael -Original Message- From: William McKenzie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 6:12 PM To: [EMAIL PROTECTED] Subject: Apache as Proxy I've searched the archives, but cant really find a clear answer to this question. Can Tomcat be used as a web proxy server (i'm thinking inbound here - using tomcat to proxy requests back to a second tomcat instance on a different machine or port), and if so, what additional code is necessary, and what kinds of things go in server.xml or web.xml to support it? Any clues would be appreciated. TIA Bill
Minimum Config files for Tomcat
What are the minimum files need to run tomcat in the tomcat/conf directory? (i.e. delete every other file) I'm running mod_jk not mod_jserv. It looks like server.xml, workers.properties, uriworkermap.properties and mod_jk.conf (included in httpd.conf). Is this correct? -- Mark Lundquist [EMAIL PROTECTED]
Files and encoding
Hi! The pageContext.include("somefile.inc") prints "???" instead of normal text when the somefile.inc is in cp1251 encoding... What should I do to solve it? Thanks, Kirill Vasiljev
RE: servlet prefix problem
True and I am trying on virtual host as well ... --Original Message-- From: Arif Tayebali [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Sent: March 20, 2001 8:55:38 PM GMT Subject: RE: servlet prefix problem I'm facing the same problem...haven't figured it out and dont think anyone else has either. This topic is quite an old topic, I can only wonder why no one has addressed it. -Original Message- From: Yang,Chun [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 11:20 AM To: '[EMAIL PROTECTED]' Subject: servlet prefix problem Hello all, I don't seem to be able to change the prefix for accessing servlets. The default servlet prefix is "/servlet/" and according to the instructions/coments in server.xml, this prefix can be adjusted. So I tried changing the following lines in server.xml RequestInterceptor className="org.apache.tomcat.request.InvokerInterceptor" debug="0" prefix="/foo/bar/servlets/" / I made sure there is a slash at the beginning and the end of the prefix. Somehow it doesn't work. When I looked at the generated mod_jk_conf-auto file, I noticed the JkMount directive is still directing everything in /servlet/* to ajp12. I would assume by changing the prefix in server.xml, there would be a JkMount directive for /foo/bar/servlets/* to ajp12. What have I done wrong and what am I missing here ? Thanks. --- FREE! The World's Best Email Address @email.com Reserve your name now at http://www.email.com
RE: PLEASE READ LIST ADMINISTRATORS (original subject was . )
lets not get vulgar their are children listing? Michael Mimo Systems Specialist Voice: 781-457-1317 [EMAIL PROTECTED] -Original Message- From: Scott Barr [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 8:10 PM To: [EMAIL PROTECTED] Subject: Re: PLEASE READ LIST ADMINISTRATORS (original subject was . ) I hope I am misunderstanding your message, Arif. Scott - Original Message - From: Arif Tayebali [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 21, 2001 11:08 AM Subject: RE: PLEASE READ LIST ADMINISTRATORS (original subject was . ) That spam shit is more foul than ur new born eating swine! -Original Message- From: Scott Barr [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 4:40 PM To: [EMAIL PROTECTED] Subject: PLEASE READ LIST ADMINISTRATORS (original subject was . ) Importance: High PLEASE READ LIST ADMINISTRATORS Is there anyway you can stomp this garbage? By U.S. laws, this may not be considered spam, but I didn't ask to be put on this companies mailing list, yet they (spammers in general) seem to have targeted yet another public forum for intelligent exchange of ideas. Thanks Scott - Original Message - From: [EMAIL PROTECTED] Sent: Tuesday, March 20, 2001 2:33 PM Subject: . The Internet's Finest and Most Reliable Bulk Email Provider! Since 1996, Tech Data Technologies has provided bulk email service to thousands of well-satisfied customers. We offer the most competitive prices in the industry, made possible by our high percentage of repeat business. We have the most advanced, direct email technology, employed by only a knowledgeable few in the world. We have over 160 million active email addresses, increasing our list at the rate of half a million to one million a month. We will put your product or service instantly and directly into the hands of millions of prospects! You will have instant, guaranteed results, something no other form of marketing can claim. Our turn around time is a remarkable 24 hours. Our email addresses are sorted by country, state, city and target. Your marketing campaign will speed with pinpoint accuracy to your desired audience! Call us for a free consultation at 323 876 6148 [U.S.A.]. For a limited time, take advantage of our special -- Three million general U.S. emails for just $600 per million! We include, at no cost, a bullet proof email address for 30 days, a $400 value! BULK EMAIL PRICES 750,000$562 1,200,000$720 1,600,000$960 3,000,000$1,500 3,000,000+ ...PLEASE CALL FOR A QUOTE Best of ALL, Tech Data Services can be used as a 100% TAX WRITE OFF for your Business! DON'T WAIT! LET TECH DATA TECHNOLOGIES BE YOUR PARTNER!! Under Bill s.1618 TITLE III passed by the 105th U.S. Congress this letter is not considered "spam" as long as we include: 1) contact information and, 2) the way to be removed from future mailings (see below).To Remove Yourself From This List: Please email [EMAIL PROTECTED] with the email address that you would like removed and the word REMOVE in the subject heading.
RE: JDBC Driver
I use the una driver from www.inetsoftware.de They have a range of drivers, responsive tech support and decent prices. I can't comment on your problems really. The failure to reload servlets may be configuration related or NT related. One of my clients uses ServletExec which sometimes reflects changes, sometimes reflects changes after starting and stopping the IIS services and sometimes requires a complete restart to reflect changes - go figure. One way to have a bit of success with the JDBC-ODBC driver would be to access it from a Connection Pool that has only a single connection (ie max Connections = 1) . This should protect you from its lack of thread safe operation and once you are ready to move to a "real" jdbc driver you'll only need to change your configured driver. BTW I have a wrapper for the bitmechanic connection pool that would allow you to do this easily. (http://www.knightsofthenet.com/projects/SQLPool) If anyone downloaded this before it now compiles :-) and adds a shutdown hook for worry free server operation. HTH -Original Message- From: Tomcat [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 10:57 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: JDBC Driver In that caseif free implementations are not good enoughcan you all please suggest us a good commercial JDBC driver to connect to MS SQL 7, which would be worth its money. We are currently using Jrun 2.3.3 as a plugin to IIS4 on our NT4 box to serve Servlets and JSP for our Virtual host customers...There are a lot of problems associated with this. I was wondering if this is because we are using ODBC system DSN to connect to SQL7. 1. High CPU utilization. (Jrun service needs to be restarted) 2. If sevlets are changed , the changes dont get effected in Jrun. 3. JSP sessions do not work. Would shifting to Tomcat solve these problems or just using a type IV JDBC driver to connect to database is sufficient. Please let us know your experiences. Best Regards Sumith Ail Try FreeTDS (www.freetds.org, I think). I've used their straight TDS driver with excellent results. They also have a Type 4 JDBC driver as well. I haven't had occasion to use it, but if it performs as well as the straight TDS driver, I'm sure you'll be pleased. Unfortunately it looks like their straight TDS driver and the JDBC TDS driver are developed by two separate teams. The JDBC driver is ok for queries and simple updates but from what I recall their idea about what is a connection and when to automatically close connections and commit transactions was quite non-standard. I'd provide more detail but it was almost a year ago that I used it (and the code to break it is on another machine). If you try it I think the following will show the problem: Get a connection: Call conn.setAutoCommit(false); get a prepared statement and update the database close the statement get another prepared statement and update the database close the statement commit the transaction close the connection. I think I remember their driver will either throw an exception somewhere along the way or not show one of the updates. HTH
Re: Applets, Servlets, Security issues
-Original Message- From: Caprio, Mike Sent: Tuesday, March 20, 2001 5:21 PM To: '[EMAIL PROTECTED]' Subject: RE: tomcat-user Digest 18 Mar 2001 19:28:59 - Issue 805 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 18, 2001 2:29 PM To: [EMAIL PROTECTED] Subject: tomcat-user Digest 18 Mar 2001 19:28:59 - Issue 805 Try running policytools (it will update .java.policy not java.policy) I'm running on jdk1.3 on Win97 using PWS 4.0... sorry about not being more specific about the platform. There is no .java.policy file that I've found, just java.policy... but I can try running the policytool EXE file too. thanks, Mike Caprio Software EngineerMicrowave Radio Corporation [EMAIL PROTECTED] 101 Billerica Avenue, Building 6 978-671-5770 North Billerica, MA 01862-1256
RE: Help: form-based auth in Tomcat 3.2.1
Title: RE: Help: form-based auth in Tomcat 3.2.1 Not sure it helps or not. Use port 8080. e.g. http://1.2.3.4:8080/examples/jsp/security/login.jsp Jason -Original Message- From: Valeriy Molyakov To: [EMAIL PROTECTED] Sent: 3/21/01 8:54 PM Subject: Help: form-based auth in Tomcat 3.2.1 Hi ! Form-based authentication : When I use Apache + mod _ jk + Tomcat3.2.1 I receive an error 404 url : http: // valera.kompan.com.ua/auto/j _ security _ check With use Tomcat standalone all works fine. Where is a problem ? Software :NT2000+Tomcat3.2.1+Apache1.3.14+mod_jk Best regards, Valera M. mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Managing Session
for some reason I cannot seem to execute the invalidate() method on any HttpSessions while running the Tomcat software. The classes function as intended on our regular servers, but when using Tomcat to test things locally, this method fails.
Constructor in JavaBean
Hi Users, The constructor in the JavaBean class is supposed to be empty,right?But I see examples in Tomcat with non-empty constructors,why? Thanks. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
How to re-use a request scope bean?
I have a JSP app whose call sequence goes like this: 1) Form calls search_results.jsp with form values. 2) search_results.jsp uses jsp:useBean to declare a Vector object and loads the vector with a list of objects and then does a jsp:forward to product_list.jsp. 3) product_list uses jsp:useBean to declare the same Vector object and displays some of the objects in the Vector. The question is, I would like to have product_list.jsp call itself to display the next page of objects in the Vector. When I send a request to the product_list.jsp a second time, the Vector declared in product_list.jsp is new and empty. I think this is because it is a new request and the Vector bean has only request scope. If I try to use session scope I get problems with multiple browser windows being open to the product_list.jsp page. Since the bean is shared, the two browser windows will update the same bean which is not acceptable. The ideal would be for me to be able to pass the existing request's bean to the new request. Is this possible? I am using Tomcat version 3.2? (how can I determine Tomcat's version?) and Apache version 1.3.12 on Redhat Linux version 6.2. My jsp source files can be provided if need be. Thank you, Todd Chaffee
RE: Class loader behavior with resource bundles...
Does it work in the command line tests under both Linux and Win2K? I just want to make sure the JDK itself is ruled out. Personally, we've run into instances where regular .properties files aren't found under Tomcat if they're in WEB-INF/classes; but if we put them in a package directory under that and then load them accordingly, they are found. Good question, and one I started researching this morning ("Hmmm - could it be a JVM difference?"). Yes, the command line tests DO work under Linux as well as Win2K, so it doesn't appear to be a JVM/JDK issue (running JDK 1.3 on both OSes). Jim Dilbert: I *have* a personality! Dogbert: Let's not get into that "Is zero a number" debate again. smime.p7s
Tomcat 3.2 IIS 5.0
Hi I cannot get tomcat 3.2 to run with IIS under W2K server. I followed the tomcat-iis-howto instructions and also the troubleshooting but I never got the basic example page. My log shows the "GET /... 500" but the tip in the troubleshooting doesn't help. Are there any known issues? Newgroups hint concerning this problems are poor. Regards, Klemens Schmid SAP AG
Changing compiler arguments
Hi everybody. How can I change the compiler command line arguments used in my JSP? I wanna add some args (like -encoding). Thanks Sergio. [EMAIL PROTECTED]
RE: SSL--Session Expiry
Try encodeRedirectURL() because rules are different for encoding for redirect to own web-page. Also try % response.sendRedirect(..) % directly instead of using jsp:forward === Gary Grewal -Original Message-From: Seshagiri Dev Kurmana [mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 21, 2001 4:30 AMTo: [EMAIL PROTECTED]Subject: SSL--Session ExpiryImportance: High Hi all,My environment is WinNT, Tomcat3.2, jsse1.0.2.Everything is working fine with cookie enabled browsers.But when I disable cookies in the browsers the session id is changingand consequently the original session is becoming null. I tried to do some jugglery with response.sendRedirect(myUrl),jsp:forward page="%=myUrl%"/ after encoding the url. But I'm unable to find a solution. Any help would be greatly appreciated.thanks, Seshagiri
RE: Please Help--can't set up
Apache has a default port, for Tomcat you have open another port so they do not conflict. --- Yana [EMAIL PROTECTED] wrote: I was trying http://localhost/examples/jsp/index.html as it is in the how-to file. However, I found out that if I explicitly specify port 8080 it wortks. Do I have to explicitly name the port? I thought that's the default one? Thanks. Dianne Cree [EMAIL PROTECTED] wrote: what url are you trying to hit? -Original Message- From: Yana [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 2:02 PM To: [EMAIL PROTECTED] Subject: Please Help--can't set up I re-installed tomcat from scratch. tomcat_home and java_home are set up, keys in Apache Software Foundation\Jakarta Isapi Redirector\1.0 are as suggested in the IIS how-to. I am logging at c:\jakarta-tomcat\logs\isapi.log with error level. I get the 404 error but the part that completely puzzles me is the fact that the isapi.log file from above never gets created. Please give some advice--this is very frustrating and someone must have done it right, Also, how do I check that " the "/examples" context works correcly if you access Tomcat directly." Thanks I - Do You Yahoo!? Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail. - Do You Yahoo!? Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Re: single login form for single sign on
On Wed, 21 Mar 2001 [EMAIL PROTECTED] wrote: I want to use the single sign on capabilities of Tomcat4 with FORM based authentication. However it does not seem possible to define a single login and error page. Even though single sign on and a Realm are specified in $TOMCAT_HOME/conf/server.xml, and FORM authentication is specified in $TOMCAT_HOME/conf/web.xml (e.g. to use /login/login.html as the login page), when there is a need to authenticate from a particular webapp, the login page is referenced relative to the context (e.g $TOMCAT_HOME/webapps/myapp/login/login.html). This would involve copying the login pages into every webapp, which gives a maintenance problem. So in essense the question is: Is there a way to specify a "global" login and error page that will be used by all webapps? No. Each web application is still a stand-alone entity. What single sign on support does for you is remember that you've signed on already. You are still using whatever login mechanism is defined for each individual web app. They don't even have to all use the same approach (some could be BASIC, some could be FORM, for example). Many thanks Tim Craig McClanahan
JDBCRealm with Postgresql
I am trying to test the use of JDBCRealm with Tomcat 3.3m2 and Postgresql 7.0.2 on a Redhat 7.0 system. In server.xml I have commented out !-- SimpleRealm filename="conf/users/global-users.xml" / -- and uncommented JDBCRealm debug="99" driverName="org.postgresql.Driver" connectionURL="jdbc:postgresql:tomcatusers" connectionName="myname" connectionPassword="" userTable="users" userNameCol="username" userCredCol="password" userRoleTable="user_roles" roleNameCol="role" / My database is tomcatusers. It includes tomcatusers=# select * from users; username | password --+-- root | rootpass admin| mypass tomcatusers=# select * from roles; role -- tomcat role1 tomcat_admin tomcat_root tomcatusers=# select * from user_roles; username | role --+-- admin| tomcat admin| role1 admin| tomcat_admin root | tomcat root | role1 root | tomcat_admin root | tomcat_root In /var/tomcat/lib/common I have this link: lrwxrwxrwx1 root root 30 Mar 20 00:06 jdbc7.0-1.2.jar - /usr/lib/pgsql/jdbc7.0-1.2.jar* When I try to access the admin webapp, I get the frontend page; when I try to access the Context list, I get the following in the tc log. 2001-03-22 02:32:17 - JDBCRealm: There was an SQLException while in checkConnection: {0} - The user property is missing. It is mandatory. at java.lang.Throwable.init(Throwable.java:84) at java.lang.Exception.init(Exception.java:35) at java.sql.SQLException.init(SQLException.java:100) at org.postgresql.util.PSQLException.init(PSQLException.java:22) at org.postgresql.Connection.openConnection(Connection.java:102) at org.postgresql.Driver.connect(Driver.java:116) at java.sql.DriverManager.getConnection(DriverManager.java:523) at java.sql.DriverManager.getConnection(DriverManager.java:205) at org.apache.tomcat.modules.aaa.JDBCRealm.checkConnection(JDBCRealm.java:331) at org.apache.tomcat.modules.aaa.JDBCRealm.checkPassword(JDBCRealm.java:265) at org.apache.tomcat.modules.aaa.JDBCRealm.authenticate(JDBCRealm.java:441) at org.apache.tomcat.core.Request.getRemoteUser(Request.java:476) at org.apache.tomcat.modules.aaa.AccessInterceptor.authorize(AccessInterceptor.java:313) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:773) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:701) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:162) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:424) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:497) at java.lang.Thread.run(Thread.java:498) What is the problem with the user property? Peter -- Peter B. West [EMAIL PROTECTED] http://powerup.com.au/~pbwest "Lord, to whom shall we go?"
Re: PLEASE READ LIST ADMINISTRATORS (original subject was . )
Everybody calm down, and be good boys =) lets not get vulgar their are children listing? Michael Mimo Systems Specialist Voice: 781-457-1317 [EMAIL PROTECTED] -Original Message- From: Scott Barr [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 8:10 PM To: [EMAIL PROTECTED] Subject: Re: PLEASE READ LIST ADMINISTRATORS (original subject was . ) I hope I am misunderstanding your message, Arif. Scott - Original Message - From: Arif Tayebali [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 21, 2001 11:08 AM Subject: RE: PLEASE READ LIST ADMINISTRATORS (original subject was . ) That spam shit is more foul than ur new born eating swine! -Original Message- From: Scott Barr [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 4:40 PM To: [EMAIL PROTECTED] Subject: PLEASE READ LIST ADMINISTRATORS (original subject was . ) Importance: High PLEASE READ LIST ADMINISTRATORS Is there anyway you can stomp this garbage? By U.S. laws, this may not be considered spam, but I didn't ask to be put on this companies mailing list, yet they (spammers in general) seem to have targeted yet another public forum for intelligent exchange of ideas. Thanks Scott - Original Message - From: [EMAIL PROTECTED] Sent: Tuesday, March 20, 2001 2:33 PM Subject: . The Internet's Finest and Most Reliable Bulk Email Provider! Since 1996, Tech Data Technologies has provided bulk email service to thousands of well-satisfied customers. We offer the most competitive prices in the industry, made possible by our high percentage of repeat business. We have the most advanced, direct email technology, employed by only a knowledgeable few in the world. We have over 160 million active email addresses, increasing our list at the rate of half a million to one million a month. We will put your product or service instantly and directly into the hands of millions of prospects! You will have instant, guaranteed results, something no other form of marketing can claim. Our turn around time is a remarkable 24 hours. Our email addresses are sorted by country, state, city and target. Your marketing campaign will speed with pinpoint accuracy to your desired audience! Call us for a free consultation at 323 876 6148 [U.S.A.]. For a limited time, take advantage of our special -- Three million general U.S. emails for just $600 per million! We include, at no cost, a bullet proof email address for 30 days, a $400 value! BULK EMAIL PRICES 750,000$562 1,200,000$720 1,600,000$960 3,000,000$1,500 3,000,000+ ...PLEASE CALL FOR A QUOTE Best of ALL, Tech Data Services can be used as a 100% TAX WRITE OFF for your Business! DON'T WAIT! LET TECH DATA TECHNOLOGIES BE YOUR PARTNER!! Under Bill s.1618 TITLE III passed by the 105th U.S. Congress this letter is not considered "spam" as long as we include: 1) contact information and, 2) the way to be removed from future mailings (see below).To Remove Yourself From This List: Please email [EMAIL PROTECTED] with the email address that you would like removed and the word REMOVE in the subject heading.
Re: SSL--Session Expiry
Seshagiri Dev Kurmana typed the following on 03:59 PM 3/21/2001 +0530 My environment is WinNT, Tomcat3.2, jsse1.0.2.Everything is working fine with cookie enabled browsers.But when I disable cookies in the browsers the session id is changing and consequently the original session is becoming null. I tried to do some jugglery with response.sendRedirect(myUrl),jsp:forward page="%=myUrl%"/ after encoding the url. But I'm unable to find a solution. First of all: *Please* do not use HTML in your emails to this list. Second: Does the encoded URL in the HTML output of your JSP page contain the session ID? Are you sending a user from a http session to an https session with this link? If so, I believe later releases of Tomcat (3.2.1 perhaps) fix this so sessions are maintained across http https. Kief
Flushing of include jsp pages
I have the following question: if I have a %@ include file="/header.jsp" % embedded in the calling jsp, how can I ensure the included file is checked to see if it has been modified?(in case it has been changed) Right now, I have to modify the calling jsp in order to have it check and recompile using the modified include file...is there a way to flush this and have it check all the include files for modifications? Thanks, Doug Slemp Server Management Team ATT GCSC (614)932-4014 [EMAIL PROTECTED]
IF UR ON APACHE + WINNT + TOMCAT...LISTEN UP!
Hey all u jsp types..whats up? If u were woundering how sites use jsp files as their index page like this: www.urtheman.com (takes u to index.jsp) listen up. 1. make sure u turn off tomcat and apache 1a. create index.jsp like so: html body % out.println("Let me know"); % /body /html 2. make sure u add contect like this: Context path="" docBase="location to ur jsp, html, css files on the same network drive as Tomcat and Apache" crossContext="false" debug="0" reloadable="true" /Context 3. make sure u configure Apache to point to that location as well 4. config mod_jk.conf-auto so that Tomcat and Apache can communicate swiftly 5. Start Tomcat 6. Start Apache 7. U can know punch in www.whatever.com (and itll take u to a index.jsp file) Lemme know if u r stuck! software used: WinNT4, Apache1.3 + Tomcat3.2 (as services), mod_jk (using ajpv1.3) happy programming
Tomcat - Apache installation - please help!!!
Please help... I have redhat 7.0, kernel 2.4.2 and have downloaded latest source for tomcat, ant, jaxp, jess, etc... and all my environ variable are set as specified in the README. Sorry to bother, but is the build problem I'm having apparent anyone. Thanks. [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompiler. ja va:141: Method getClassName(java.lang.String) not found in class org.apache.jasper.compiler.ClassName. [javac] realClassName = ClassName.getClassName( getClassFileName() ); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompiler. ja va:142: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch( JasperException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseEven tL istener.java:866: Wrong number of arguments in constructor. [javac] = new GeneratorWrapper(new ForwardGenerator(start, attrs, param),start, stop); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseEven tL istener.java:875: Wrong number of arguments in constructor. [javac] = new GeneratorWrapper(new IncludeGenerator(start, attrs, param),start, stop); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\TagLibraryIn fo Impl.java:521: Incompatible type for constructor. Can't convert java.lang.String to boolean. [javac] return new TagAttributeInfo(name, required, type, rtexprvalue); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\TagLibraryIn fo Impl.java:521: Incompatible type for constructor. Can't convert boolean to java.lang.String. [javac] return new TagAttributeInfo(name, required, type, rtexprvalue); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:329: Wrong number of arguments in constructor. [javac] CommandLineContext clctxt = new CommandLineContext( [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:367: Method compile() not found in class org.apache.jasper.compiler.CommandLineCompiler. [javac] clc.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:392: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch (JasperException je) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :442: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :447: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :451: Exception java.io.FileNotFoundException is never thrown in the body of the corresponding try statement. [javac] } catch (FileNotFoundException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :453: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch (JasperException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\facade22\org\apache\tomcat\modules\facade22\J sp Interceptor.java:213: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] compiler.compile(); [javac] Anand Patil 813 978 4919/ Page-800 985 1743 Awas Project Team Verizon Data Services
RE: Tomcat 3.2 IIS 5.0
Have you specified the JAVA_HOME directory in the tomcat.bat file? set JAVA_HOME = C:\jdk1.2.2\ Have you installed the isapi_redirect.dll in IIS? Are you specifying the http://server:8080/ in your URL? I just installed it and works fine for me. -Original Message- From: Schmid, Klemens [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 11:29 AM To: '[EMAIL PROTECTED]' Subject: Tomcat 3.2 IIS 5.0 Hi I cannot get tomcat 3.2 to run with IIS under W2K server. I followed the tomcat-iis-howto instructions and also the troubleshooting but I never got the basic example page. My log shows the "GET /... 500" but the tip in the troubleshooting doesn't help. Are there any known issues? Newgroups hint concerning this problems are poor. Regards, Klemens Schmid SAP AG
IE 5.x, IIS, The page cannot be found
Note: This problem is not directly (it may be indirectly) related to the caching problems experienced with IE 5.x (as described in other postings), because as soon as I tried the solutions presented to those postings, the caching problems were solved. However, the below problem wasn't: Setup: Web site using Microsoft IIS and Tomcat 3.2.1 as JSP/Servlet Container Browsers: Netscape 4.x, 6.x Internet Explorer (IE) 4.x, 5.x Problem: 1. When using any version of Netscape to access the web site, everything works fine. 2. When using IE 4.x, everything works fine. 3. If I connect directly to Tomcat (without going through MS IIS) everything works fine (no matter what browser I use). 4. When using IE 5.x, the problems begin: a. Sometimes after selecting a link or posting to a JSP page, web pages are returned to the web browser without incident. b. Other times, I get a "The page cannot be found" error. HOWEVER, when this error occurs, I press the IE's "back" button, then select the link again, and (usually) the page is found. (If not, I repeat the "back" button press and the link selection and the page is eventually found). There's nothing complicated and/or strange about these web pages, and the problem seems to appear about 30% of the time. Does anybody have any ideas? Thanks in advance for any help you can provide. David [EMAIL PROTECTED]
Tomcat with IIS
I am having a problem with Tomcat and IIS on Windows 2000. I have installed Tomcat, the SDK, and the dll for IIS. In addition, I have followed the configuration instructions in the Tomcat-iis-Howto.html doc. When I hit the examples page, I get an HTTP 500 Error in the browser, and the tomcat log says: [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/servlet [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/servlet] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/servlet] is points to the web-inf directory [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/servlet/ [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/servlet/] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/servlet/] is points to the web-inf directory Help is appreciated. Brian
calling RequestDispatcher.forward() after RequestDispatcher.include()
I am running Tomcat 3.2.1. I am getting the following error. javax.servlet.ServletException: Cannot forward as OutputStream or Writer has already been obtained My code is quite simple. The jsp that I am including, example1.jsp, does not write anything to the output buffer. % RequestDispatcher rd1 = request.getRequestDispatcher("example1.jsp"); rd1.include(request, response); RequestDispatcher rd2 = request.getRequestDispatcher("example2.jsp"); rd2.forward(request, response); % The Apache Bug Database, bug #250, said this is fixed in 3.2. Is there something wrong with my code? Bill
Context Admin password ?
When I try to connect to : http://localhost:8080/admin and I select "Context Admin", the system ask a username and password : Where can I found these information, and how can ew managed them ? I'm using Tomcat in Stand-alone servlet containers on NT 2000 pro. Thanx
isapi_redirect.dll
Hello : Could someone please tell me where I can find isapi_redirect.dll for connecting Tomcat w/IIS Regards. ___ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/
RE: Context Admin password ?
The Tomcat user accounts are listed in tomcat-users.xml. -- Bill K. -Original Message- From: Laurent Barbier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 12:20 PM To: Tomcat-User Subject: Context Admin password ? When I try to connect to : http://localhost:8080/admin and I select "Context Admin", the system ask a username and password : Where can I found these information, and how can ew managed them ? I'm using Tomcat in Stand-alone servlet containers on NT 2000 pro. Thanx
RE: Context Admin password ?
Search the archives. This question is answered every week. You need to assign the "admin" role to one of the userids (any one.) -Original Message- From: Laurent Barbier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 3:20 PM To: Tomcat-User Subject: Context Admin password ? When I try to connect to : http://localhost:8080/admin and I select "Context Admin", the system ask a username and password : Where can I found these information, and how can ew managed them ? I'm using Tomcat in Stand-alone servlet containers on NT 2000 pro. Thanx
Re: Problem accessing a bean from a jsp page...
Jason Sardano wrote: I created a jsp page that uses a custom bean. When I try to access the jsp page, I get the error listed below. I don't understand what is going on; my java file compiled correctly, I put the package in my jsp page's WEB-INF\classes directory, yet I receive this error. Does anyone have any suggestions? Thank you, Jason Sardano Error: 500 Location: /lobster/index.jsp Internal Servlet Error: javax.servlet.ServletException: JasonTest/DataBean at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) .. Root cause: java.lang.NoClassDefFoundError: JasonTest/DataBean at _0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0. java:66) One typical reason is that you didn't provide the complete package in the class= attribute of your jsp:useBean tag -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2
how to pass session variables with Tomcat and IIS
I can't get session variable passed to next page. I am installed tomcat on windows 2000 with IIS 5.0. I set session var Navigator = 2 in page1.jsp as follow: % session = request.getSession(true); session.putValue("Navigator", "2"); % Then I try to get the value of Navigator in page2.jsp: % session = request.getSession(true); if(session != null) out.println("Has session"); else out.println("No session"); String nv = (String)session.getValue("Navigator"); out.println(nv); % The output of page2.jsp is: Has session null What is the problem? Thanks, Jack Li
RE: isapi_redirect.dll
The redirector is at: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i38 6/ The documentation for it is: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm l hope that's helpful. Tim -Original Message- From: Rahul Misra [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 3:35 PM To: [EMAIL PROTECTED] Subject: isapi_redirect.dll Hello : Could someone please tell me where I can find isapi_redirect.dll for connecting Tomcat w/IIS Regards. ___ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/
Re: How to re-use a request scope bean?
The ideal would be for me to be able to pass the existing request's bean to the new request. Is this possible? Short of trying to serialize the object and encode it into the URLs on the page, I don't know of a way of getting a request-scope object to survive outside of the scope of the request (go figure!). I think my first try would be to write a "container" bean that would hold all search results (either in the application scope or the session scope). Whenever someone wanted a new search, the search container would handle the process of making a new SearchResults object and it would merely pass back some identifier that you could use to get it later: jsp:useBean id="searchmanager" scope="session" class="mypackage.SearchManager"/ ora:useProperty id="mysearchresults" name="searchmanager" property="newsearch" arg="hot teenage lesbian sluts" class="mypackage.SearchResults"/ !-- useProperty is a tag that appears in O'Reilly's "Javaserver Pages". It's for beans that can return other beans as properties. In this case, the searchmanager.getNewsearch(String arg) method returns an object of type mypackage.SearchResults. useProperty calls this method and assigns the returned bean to "mysearchresults". You can probably download O'Reilly's implementation of useProperty, or you can brew your own. -- jsp:forward page="product_list.jsp?searchid=%= mysearchresults.getId() %" \ Then, in your product_list.jsp, you'd have something to recall the results based on their ID something like: jsp:useBean id="searchmanager" scope="session" class="mypackage.SearchManager"/ ora:useProperty id="mysearchresults" name="searchmanager" property="existingsearch" arg="%= request.getParameter(\"searchid\") %" class="mypackage.SearchResults"/ Let me know if this helps, - Joe
Re: Tomcat 3.2 IIS 5.0
Eric, port 8080 is default by Tomcat; this port is used in Tomcat, but IIS normally is used a web port server (80); I have same problem than Klemens. - Original Message - From: "Eric Jenson" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 21, 2001 8:35 PM Subject: RE: Tomcat 3.2 IIS 5.0 Have you specified the JAVA_HOME directory in the tomcat.bat file? set JAVA_HOME = C:\jdk1.2.2\ Have you installed the isapi_redirect.dll in IIS? Are you specifying the http://server:8080/ in your URL? I just installed it and works fine for me. -Original Message- From: Schmid, Klemens [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 11:29 AM To: '[EMAIL PROTECTED]' Subject: Tomcat 3.2 IIS 5.0 Hi I cannot get tomcat 3.2 to run with IIS under W2K server. I followed the tomcat-iis-howto instructions and also the troubleshooting but I never got the basic example page. My log shows the "GET /... 500" but the tip in the troubleshooting doesn't help. Are there any known issues? Newgroups hint concerning this problems are poor. Regards, Klemens Schmid SAP AG
Re: Tomcat with IIS
I have the same problem, but it ocurred when I use another context diferent to examples. - Original Message - From: "Brian R. Hoogeveen" [EMAIL PROTECTED] To: "Tomcat Help" [EMAIL PROTECTED] Sent: Wednesday, March 21, 2001 8:55 PM Subject: Tomcat with IIS I am having a problem with Tomcat and IIS on Windows 2000. I have installed Tomcat, the SDK, and the dll for IIS. In addition, I have followed the configuration instructions in the Tomcat-iis-Howto.html doc. When I hit the examples page, I get an HTTP 500 Error in the browser, and the tomcat log says: [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/servlet [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/servlet] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/servlet] is points to the web-inf directory [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/servlet/ [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/servlet/] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/servlet/] is points to the web-inf directory Help is appreciated. Brian
Re: PLEASE READ LIST ADMINISTRATORS (original subject was . )
lets not get vulgar their are children listing? Actually, I think the real problem is that there are children *typing*. - Joe
RE: IF UR ON APACHE + WINNT + TOMCAT...LISTEN UP!
Title: RE: IF UR ON APACHE + WINNT + TOMCAT...LISTEN UP! I apologize for making the directions high-leve. Good catch! -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 21, 2001 1:41 PMTo: [EMAIL PROTECTED]Subject: RE: IF UR ON APACHE + WINNT + TOMCAT...LISTEN UP! You missed a critical step. You need to add "index.jsp" as an allowable default page to the DirectoryIndex entry in httpd.conf. -Original Message- From: Arif Tayebali [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 2:27 PM To: '[EMAIL PROTECTED]' Subject: IF UR ON APACHE + WINNT + TOMCAT...LISTEN UP! Importance: High Hey all u jsp types..whats up? If u were woundering how sites use jsp files as their index page like this: www.urtheman.com (takes u to index.jsp) listen up. 1. make sure u turn off tomcat and apache 1a. create index.jsp like so: html body % out.println("Let me know"); % /body /html 2. make sure u add contect like this: Context path="" docBase="location to ur jsp, html, css files on the same network drive as Tomcat and Apache" crossContext="false" debug="0" reloadable="true" /Context 3. make sure u configure Apache to point to that location as well 4. config mod_jk.conf-auto so that Tomcat and Apache can communicate swiftly 5. Start Tomcat 6. Start Apache 7. U can know punch in www.whatever.com (and itll take u to a index.jsp file) Lemme know if u r stuck! software used: WinNT4, Apache1.3 + Tomcat3.2 (as services), mod_jk (using ajpv1.3) happy programming
Tomcat with IIS (Win 2000)
I am having a problem with Tomcat and IIS on Windows 2000. I have installed Tomcat, the SDK, and the dll for IIS. In addition, I have followed the configuration instructions in the Tomcat-iis-Howto.html doc. When I hit the examples page, I get an HTTP 500 Error in the browser, and the tomcat log says: [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/servlet [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/servlet] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/servlet] is points to the web-inf directory
RE: Tomcat - Apache installation - please help!!!
You're using Redhat 7.0 and you're getting messages containing D:\ ?! This sounds like something for Windows/DOS. Are you certain you have the correct README files? Darrell -Original Message- From: Patil, Anand [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 11:31 AM To: [EMAIL PROTECTED] Subject: Tomcat - Apache installation - please help!!! Please help... I have redhat 7.0, kernel 2.4.2 and have downloaded latest source for tomcat, ant, jaxp, jess, etc... and all my environ variable are set as specified in the README. Sorry to bother, but is the build problem I'm having apparent anyone. Thanks. [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompiler. ja va:141: Method getClassName(java.lang.String) not found in class org.apache.jasper.compiler.ClassName. [javac] realClassName = ClassName.getClassName( getClassFileName() ); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompiler. ja va:142: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch( JasperException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseEven tL istener.java:866: Wrong number of arguments in constructor. [javac] = new GeneratorWrapper(new ForwardGenerator(start, attrs, param),start, stop); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseEven tL istener.java:875: Wrong number of arguments in constructor. [javac] = new GeneratorWrapper(new IncludeGenerator(start, attrs, param),start, stop); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\TagLibraryIn fo Impl.java:521: Incompatible type for constructor. Can't convert java.lang.String to boolean. [javac] return new TagAttributeInfo(name, required, type, rtexprvalue); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\TagLibraryIn fo Impl.java:521: Incompatible type for constructor. Can't convert boolean to java.lang.String. [javac] return new TagAttributeInfo(name, required, type, rtexprvalue); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:329: Wrong number of arguments in constructor. [javac] CommandLineContext clctxt = new CommandLineContext( [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:367: Method compile() not found in class org.apache.jasper.compiler.CommandLineCompiler. [javac] clc.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:392: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch (JasperException je) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :442: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :447: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :451: Exception java.io.FileNotFoundException is never thrown in the body of the corresponding try statement. [javac] } catch (FileNotFoundException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :453: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch (JasperException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\facade22\org\apache\tomcat\modules\facade22\J sp Interceptor.java:213: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] compiler.compile(); [javac] Anand Patil 813 978 4919/ Page-800 985 1743 Awas Project Team Verizon Data Services
RE: isapi_redirect.dll
go here for info and links: http://jakarta.apache.org/site/sourceindex.html and here for specifically the dll: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i38 6/ -Original Message- From: Rahul Misra [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 12:35 PM To: [EMAIL PROTECTED] Subject: isapi_redirect.dll Hello : Could someone please tell me where I can find isapi_redirect.dll for connecting Tomcat w/IIS Regards. ___ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/
Guys i want 2 mins of your time...
Hi Tomcat gurus, I know you all are busy i just want 2 mins. of your time. You all are digging deep into tomcat, why don't you spend 2 mins into problem iam facing installing tomcat on linux. Thanks..in advance, Problem statement follows: Please help... I have redhat 7.0, kernel 2.4.2 and have downloaded latest source for tomcat, ant, jaxp, jess, etc... and all my environ variable are set as specified in the README. Sorry to bother, but is the build problem I'm having apparent anyone. Thanks. [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompiler. ja va:141: Method getClassName(java.lang.String) not found in class org.apache.jasper.compiler.ClassName. [javac] realClassName = ClassName.getClassName( getClassFileName() ); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompiler. ja va:142: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch( JasperException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseEven tL istener.java:866: Wrong number of arguments in constructor. [javac] = new GeneratorWrapper(new ForwardGenerator(start, attrs, param),start, stop); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseEven tL istener.java:875: Wrong number of arguments in constructor. [javac] = new GeneratorWrapper(new IncludeGenerator(start, attrs, param),start, stop); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\TagLibraryIn fo Impl.java:521: Incompatible type for constructor. Can't convert java.lang.String to boolean. [javac] return new TagAttributeInfo(name, required, type, rtexprvalue); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\TagLibraryIn fo Impl.java:521: Incompatible type for constructor. Can't convert boolean to java.lang.String. [javac] return new TagAttributeInfo(name, required, type, rtexprvalue); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:329: Wrong number of arguments in constructor. [javac] CommandLineContext clctxt = new CommandLineContext( [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:367: Method compile() not found in class org.apache.jasper.compiler.CommandLineCompiler. [javac] clc.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:392: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch (JasperException je) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :442: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :447: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :451: Exception java.io.FileNotFoundException is never thrown in the body of the corresponding try statement. [javac] } catch (FileNotFoundException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :453: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch (JasperException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\facade22\org\apache\tomcat\modules\facade22\J sp Interceptor.java:213: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] compiler.compile(); [javac] Thanks a ton for your time and effort. Appreciate it. anand.
handling Exception from RequestDispatcher.include() in a JSP
I am about to give up on using multiple RequestDispatcher.forward() calls or using include() then followed by a forward() in a JSP because I can't make things work no matter what I try. I guess I will have to use multiple include(). That seems to work as long as there are no exceptions being thrown by the included JSPs. When I catch an exception from an included JSP, I want to use response.sendError() back to the client. But I am getting the following exception. What the best way to handle exception thrown by included JSPs? Bill -- Internal Servlet Error: javax.servlet.ServletException: Response has already been committed at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(Compiled Code) at org.apache.jasper.runtime.PageContextImpl.handlePageException(Compiled Code) at billa._0002fbilla_0002fcontroller_0002ejspcontroller_jsp_2._jspService(_0002fbilla_0002fcontroller_0002ejspcontroller_jsp_2.java:86) at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled Code) at org.apache.jasper.servlet.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code) at org.apache.tomcat.core.Handler.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Compiled Code) Root cause: java.lang.IllegalStateException: Response has already been committed at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at java.lang.RuntimeException.(Compiled Code) at java.lang.IllegalStateException.(IllegalStateException.java:45) at org.apache.tomcat.facade.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:204) at org.apache.tomcat.facade.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:196) at billa._0002fbilla_0002fcontroller_0002ejspcontroller_jsp_2._jspService(_0002fbilla_0002fcontroller_0002ejspcontroller_jsp_2.java:65) at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled Code) at org.apache.jasper.servlet.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code) at org.apache.tomcat.core.Handler.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Compiled Code) I am running Tomcat 3.2.1. I am getting the following error. javax.servlet.ServletException: Cannot forward as OutputStream or Writer has already been obtained My code is quite simple. The jsp that I am including, example1.jsp, does not write anything to the output buffer. % RequestDispatcher rd1 = request.getRequestDispatcher("example1.jsp"); rd1.include(request, response); RequestDispatcher rd2 = request.getRequestDispatcher("example2.jsp"); rd2.forward(request, response); % The Apache Bug Database, bug #250, said this is fixed in 3.2. Is there something wrong with my code? Bill
RE: Tomcat - Apache installation - please help!!! - correction-!!
Iam terribly sorry, please substitue /usr/local/apache/jakarta-tomcat/src/share/org/apache/jasper/compiler/JspCom piler in place of D:\apache I am using red-hat linux, i just picked up the same error message which someone else had posted, apparently he had windows and hehad the same error message output as i was getting. So pl. ignore the windows dir. and assume that it is linux dir. struct. Instead of typing the whole error message, i just yanked the windows message which someone else had posted, andhe apparently had windows . The error message i get get on linux box are the same except for the directory shown below of D:\apache instead of that substitute: /usr/local/apache/jakarta-tomcat/src/share/org/apache/jasper/compiler/JspCom piler Thanks, Anand -Original Message- From: Darrell Porter [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 5:22 PM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: RE: Tomcat - Apache installation - please help!!! You're using Redhat 7.0 and you're getting messages containing D:\ ?! This sounds like something for Windows/DOS. Are you certain you have the correct README files? Darrell -Original Message- From: Patil, Anand [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 11:31 AM To: [EMAIL PROTECTED] Subject: Tomcat - Apache installation - please help!!! Please help... I have redhat 7.0, kernel 2.4.2 and have downloaded latest source for tomcat, ant, jaxp, jess, etc... and all my environ variable are set as specified in the README. Sorry to bother, but is the build problem I'm having apparent anyone. Thanks. [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompiler. ja va:141: Method getClassName(java.lang.String) not found in class org.apache.jasper.compiler.ClassName. [javac] realClassName = ClassName.getClassName( getClassFileName() ); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompiler. ja va:142: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch( JasperException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseEven tL istener.java:866: Wrong number of arguments in constructor. [javac] = new GeneratorWrapper(new ForwardGenerator(start, attrs, param),start, stop); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseEven tL istener.java:875: Wrong number of arguments in constructor. [javac] = new GeneratorWrapper(new IncludeGenerator(start, attrs, param),start, stop); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\TagLibraryIn fo Impl.java:521: Incompatible type for constructor. Can't convert java.lang.String to boolean. [javac] return new TagAttributeInfo(name, required, type, rtexprvalue); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\TagLibraryIn fo Impl.java:521: Incompatible type for constructor. Can't convert boolean to java.lang.String. [javac] return new TagAttributeInfo(name, required, type, rtexprvalue); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:329: Wrong number of arguments in constructor. [javac] CommandLineContext clctxt = new CommandLineContext( [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:367: Method compile() not found in class org.apache.jasper.compiler.CommandLineCompiler. [javac] clc.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:392: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch (JasperException je) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :442: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :447: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :451: Exception java.io.FileNotFoundException is never thrown in the body of the corresponding try statement. [javac] } catch (FileNotFoundException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :453: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch (JasperException ex) { [javac] ^ [javac]
RE: Guys i want 2 mins of your time...
Why don't *you* wait more than 2 hours for an answer before reposting the same exact message to the list. This isn't some tech support service you are paying for. sheesh -Original Message- From: Patil, Anand [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 2:33 PM To: '[EMAIL PROTECTED]' Subject: Guys i want 2 mins of your time... Hi Tomcat gurus, I know you all are busy i just want 2 mins. of your time. You all are digging deep into tomcat, why don't you spend 2 mins into problem iam facing installing tomcat on linux. Thanks..in advance, Problem statement follows: Please help... I have redhat 7.0, kernel 2.4.2 and have downloaded latest source for tomcat, ant, jaxp, jess, etc... and all my environ variable are set as specified in the README. Sorry to bother, but is the build problem I'm having apparent anyone. Thanks. [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompiler. ja va:141: Method getClassName(java.lang.String) not found in class org.apache.jasper.compiler.ClassName. [javac] realClassName = ClassName.getClassName( getClassFileName() ); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompiler. ja va:142: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch( JasperException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseEven tL istener.java:866: Wrong number of arguments in constructor. [javac] = new GeneratorWrapper(new ForwardGenerator(start, attrs, param),start, stop); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseEven tL istener.java:875: Wrong number of arguments in constructor. [javac] = new GeneratorWrapper(new IncludeGenerator(start, attrs, param),start, stop); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\TagLibraryIn fo Impl.java:521: Incompatible type for constructor. Can't convert java.lang.String to boolean. [javac] return new TagAttributeInfo(name, required, type, rtexprvalue); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\TagLibraryIn fo Impl.java:521: Incompatible type for constructor. Can't convert boolean to java.lang.String. [javac] return new TagAttributeInfo(name, required, type, rtexprvalue); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:329: Wrong number of arguments in constructor. [javac] CommandLineContext clctxt = new CommandLineContext( [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:367: Method compile() not found in class org.apache.jasper.compiler.CommandLineCompiler. [javac] clc.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:392: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch (JasperException je) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :442: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :447: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :451: Exception java.io.FileNotFoundException is never thrown in the body of the corresponding try statement. [javac] } catch (FileNotFoundException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :453: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch (JasperException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\facade22\org\apache\tomcat\modules\facade22\J sp Interceptor.java:213: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] compiler.compile(); [javac] Thanks a ton for your time and effort. Appreciate it. anand.
Use of JNI with Apache
I have a module in apache(running on linux) that makes JNI calls (JDK1.3). In the event of an error in the JNI calls, it never returns. In case someone has seen such a problem before and fixed it, please help me out. When I launch my code from a test app, it works correctly. Thanks, Manasi
Bug #510 Help Needed
Bug #510 identifies that there can be a long delay doing a request.getSession(true); which I am experiencing. The bug reports says 5-10 seconds, but on my 4 year old sparc machine, it is more like 40 seconds. I'm running Tomcat 3.2.1, just installed the lastest JDK at 1.3.0_02 just to make sure that wasn't it. I'm running Solaris 8 with most recent patches. I'm about as up-to-date as I can get without using beta stuff. The bug was closed. Was it closed because people think it is fixed? If so, what version to I need? Do I need to do something else? Anyone know what is going on? Thanks.
Re: problems whilst loading servlets for the first time
On Thu, Mar 15, 2001 at 12:34:59AM +0300, Tagunov Anthony wrote: On Wed, 14 Mar 2001 14:24:26 -0600, Randy Paries wrote: I have seen that when I don't stop and start apache in the correct order. after I load new servlets class files, I stop httpd stop tomcat start tomcat start httpd By no means i'm an expert, but my soul is shouting: you shouldn't restart apache! I know... but that recommendation in the docs is just for those who use the Yuckish -auto generated files. On the other hand it is normal that tomcat takes time to come up and if you have apache running then stop tomcat, start tomcat some time passes until the Internal Server Error disappears on Apache and you get your servlets running. On our test box it takes several seconds. Please, elaborate a little on seconds and hardware type... I have a Pentium III (Coppermine) 730.970 MHz and 128 megabytes of ram... -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
Jni Programming Questions
Dear java expert, how are you doing? The main reason why I'm writing is; because I'm a student trying to master jni programming. I have a question. That I think you'll might be able to answer. Please if you could explain the answer in easy to understand terminology. It would be good to also use examples. Question #1- Will the code like this at the bottom; which starts with the word jclass, create a class in jni called cls? jclass cls = (*env)-GetObjectClass(env, obj); Please clarify your answer for question #1. Explain why the code would create a jni class called cls; or why it would not. Please email me back your answer at [EMAIL PROTECTED] Thanks for your time and energy! __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
RE: Guys i want 2 mins of your time...
Well, Iam new to this list and just wanted to get the response time of the list for a simple question. No pun intended Dave!! so do you think you know what's wrong with my installation? So should i go home now and expect some answers tomorrow morning? Anand -Original Message- From: Dave Masino [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 6:09 PM To: [EMAIL PROTECTED] Subject: RE: Guys i want 2 mins of your time... Why don't *you* wait more than 2 hours for an answer before reposting the same exact message to the list. This isn't some tech support service you are paying for. sheesh -Original Message- From: Patil, Anand [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 2:33 PM To: '[EMAIL PROTECTED]' Subject: Guys i want 2 mins of your time... Hi Tomcat gurus, I know you all are busy i just want 2 mins. of your time. You all are digging deep into tomcat, why don't you spend 2 mins into problem iam facing installing tomcat on linux. Thanks..in advance, Problem statement follows: Please help... I have redhat 7.0, kernel 2.4.2 and have downloaded latest source for tomcat, ant, jaxp, jess, etc... and all my environ variable are set as specified in the README. Sorry to bother, but is the build problem I'm having apparent anyone. Thanks. [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompiler. ja va:141: Method getClassName(java.lang.String) not found in class org.apache.jasper.compiler.ClassName. [javac] realClassName = ClassName.getClassName( getClassFileName() ); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompiler. ja va:142: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch( JasperException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseEven tL istener.java:866: Wrong number of arguments in constructor. [javac] = new GeneratorWrapper(new ForwardGenerator(start, attrs, param),start, stop); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseEven tL istener.java:875: Wrong number of arguments in constructor. [javac] = new GeneratorWrapper(new IncludeGenerator(start, attrs, param),start, stop); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\TagLibraryIn fo Impl.java:521: Incompatible type for constructor. Can't convert java.lang.String to boolean. [javac] return new TagAttributeInfo(name, required, type, rtexprvalue); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\compiler\TagLibraryIn fo Impl.java:521: Incompatible type for constructor. Can't convert boolean to java.lang.String. [javac] return new TagAttributeInfo(name, required, type, rtexprvalue); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:329: Wrong number of arguments in constructor. [javac] CommandLineContext clctxt = new CommandLineContext( [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:367: Method compile() not found in class org.apache.jasper.compiler.CommandLineCompiler. [javac] clc.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:392: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch (JasperException je) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :442: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :447: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :451: Exception java.io.FileNotFoundException is never thrown in the body of the corresponding try statement. [javac] } catch (FileNotFoundException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet.ja va :453: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch (JasperException ex) { [javac] ^ [javac] D:\apache\jakarta-tomcat\src\facade22\org\apache\tomcat\modules\facade22\J sp Interceptor.java:213: Method compile() not found in class org.apache.jasper.compiler.Compiler. [javac] compiler.compile(); [javac] Thanks a ton for
finding web.xml from ServletConfig
Hello to everybody In order to test my configuration I tried to test web.xml by running the example form the book "Core Servlets and JavaServer Pages" but unfortunate I get the message "no message" once. that mean that the servlet can't find web.xml my directory looks like the this: tomcat -ems-ems-WEB-INF(web.xml)-classes-coreservlet(ShowMessage.java) Can some one help me find what is wrong and how can I debug it? Thanks, Batsheva
mod_jk, $TOMCAT_HOME/work directory and gigantic files
Hello, Today i got a request from one of our developers to install Tomcat or Solaris 7 machine running JDK1.2 and Apache 1.3.19 I compiled and installed mod_jk with no problems and installed binary distribution of Tomcat 3.2.1 But then i found out that for some strange reason it can only process Servlets out of webapps/examples directory, and when i call any .jsp files it sits there and trying to contact the server. At the mean time, while it is making an inpression of contacting the server my $TOMCAT_HOME/work dramatically grows, so in 15 minutes or me clicking the .jsp links it filled up my 580Mb partition.. So, i decided to look into that evil directory and see what is going on there, And what i found in 30Mb plain text file was pretty disturbing: Thousands of these lines: -- snip -- // HTML // begin [file="/a/local/tomcat/webapps/examples/jsp/dates/date.jsp";from=(0,0);to=(6,0)] out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); -- snip -- I am sure that this question popped up on this mailing list more then few times, but i do not seem to be able to find an answerd to it, so i am forced to ask it again. Here is goes: -How do i fix it ?- Please help, I do not want to kill another 8 hour day fighting the software i do not really have an idea about. Sincerely, Igor Pruchanskiy igor (at) linuxinside (dot) com
servlet compile issue tomcat/ME
Hi all, I have been attempting to get servlets to compile under ME. The compiler is not recognizing the servlet classes. I used the same steps as the NT and Linux install. Is there some magical step that I'm missing that would make ME os different from NT? Oliver
Re: Applets, Servlets, Security issues
-Original Message- From: Caprio, Mike Sent: Tuesday, March 20, 2001 5:18 PM To: '[EMAIL PROTECTED]' Subject: RE: tomcat-user Digest 18 Mar 2001 01:53:55 - Issue 804 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 17, 2001 8:54 PM To: [EMAIL PROTECTED] Subject: tomcat-user Digest 18 Mar 2001 01:53:55 - Issue 804 "Caprio, Mike" wrote: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) when I send an event to the applet that should start the applet to servlet communications. That is a very specific exception - what are you trying to do with a Thread when it occurs? Apologies to all for the multiple posts - I wasn't aware of how long it would take for a message to make it to the list. There's a thread in the applet code which handles display changes; specifically, there's an applet called DisplayController. Upon pressing the applet's button, I get this exception, and it pretty much dies in the event handling code when it tries to create the thread. I'm not even sure if this is specifically Tomcat or Java which is not allowing me to create a thread... Mike Caprio Software EngineerMicrowave Radio Corporation [EMAIL PROTECTED] 101 Billerica Avenue, Building 6 978-671-5770 North Billerica, MA 01862-1256
RE: moving webapps
set up a context in the server.xml file Context path="/mywebapp" docBase="/usr/htdocs" crossContext="false" debug="0" reloadable="true" /Context Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Oleg Timofeyev [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 4:51 PM To: [EMAIL PROTECTED] Subject: moving webapps How can I move my webapps direcory from tomcat to /htdocs , I am running TOMCAT as standalone. -- -- Oleg Timofeyev ReadySetNet [EMAIL PROTECTED] http://www.readysetnet.com Phone : 323 469 2000 Fax : 323 469 2155
iis in different drive....
Dear Tom-Cat users, I have a bit of problem...well..big problem.. I can not start Tom-cat at all. TOMCAT JDK are all on C: Drive and iis set up on D Drive is D:\Inetpub\wwwroot.. I also have a suspicion that different BIOS and Host Names due to server back up reason. Can anyone have an idea to get around this problem? Thank you. Leslie KIM
Fw: problem with mysql Java
- Original Message - From: Florin Iorganda To: [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 12:21 AM Subject: problem with mysql Java Dear sirs, I'm writing you regarding several problems I encounter on a RedHat Linux 6.0 7.0 Platform, JDK1.2.2 and JDK 1.3. The problem is the connexion with databases. I use driver mm.mysql_2.0.4_bin.jar. The records are displaied using a jsp file interpreted by Tomcat 3.2 with mode_jk and Apache 1.3.12.The jsp file contains several connections with different tables from a database. When the jsp page is accesed in the same time by two computers after 2-3 simultaneos refresh actions I get the error response: NullPointerException generated by statement. Can you help me understand where is the problem and how can I resolve it? Best regards, Florin Iorganda