NT and tomcat
Hi All, We are ISP and want to setup how i setup the diretoratry structutre and classpath because i don't want to run the jsp and servlet without the 8080 port because we give the services to client. Please do help me. affan
Re: Linux and Tomcat (URGENT)
1. I know that linux will show me a lot of processes. I know these processes are native threads and they share the memory. (I have more then 40 processes, each one is consuming 70456. This means that Tomcat isn't using 40 x 70456. But all these processes are sharing the same 40456.) 2. But still ... isn't 70456 (70 MB) a bit too much ? Even worse : my provider does get 142M. I think this is NOT normal and we do something wrong. Are you sure you aren't mixing up VSZ and RSS? VSZ is the size of the code image (i.e. of the "java" JVM exectuable) in RAM in _bytes_, while RSS (the resident set size) is the total amount of memory used by the process, in kilobytes... On our linux server, Tomcat's threads show up like this: USER PID %CPU %MEMVSZ RSS TTY ... root 23085 0.0 5.4 145016 14124 ? Which means that the executable image is 140 KB and Tomcat uses about 14 MB of RAM in total... np: Luomo - Call (Vocalcity) - Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/ Send or read your emails anywhere. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat 3.2.1 kHTTPd
Hi Is it possible to run Tomcat 3.2.1 with kHTTPd included in the Linux 2.4 kernel ? Dom
[jBoss-User] Problems loading property files under tomcat3.2.1
Hi, I am trying to use jboss, which loads a jndi.properties file off the class path to get some application configuration data. This is a cut down version of what the code does; public class Servlet1 extends javax.servlet.http.HttpServlet { protected void doGet(javax.servlet.http.HttpServletRequest A, javax.servlet.http.HttpServletResponse B) { try { System.getProperties().load(Thread.currentThread().getContextClassLoader().g etResourceAsStream("jndi.properties")); B.getWriter().println("SOME STUFF..."); B.getWriter().println("hr"); B.getWriter().println("brjava.naming.provider.url="+System.getProperty("ja va.naming.provider.url")); B.getWriter().println("brjava.naming.factory.initial="+System.getProperty( "java.naming.factory.initial")); } catch (Exception e){ e.printStackTrace(); } } } When I run this servlet, I get the following error; java.lang.NullPointerException at java.io.Reader.init(Reader.java:64) at java.io.InputStreamReader.init(InputStreamReader.java:89) at java.io.InputStreamReader.init(InputStreamReader.java:78) at java.util.Properties.load(Properties.java:189) at Servlet1.doGet(Servlet1.java:9) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java :498) at java.lang.Thread.run(Thread.java:484) [root@londevrbiw01 bin]# ls [root@londevrbiw01 bin]# find ../webapps/ -name jndi.properties ../webapps/rbi-crm-1.0-alpha/WEB-INF/lib/jndi.properties I've tried moving the file into WEB-INF/classes and also into the tomcat lib directory - all with the same error. I have also tried changing the classloader line as follows; System.getProperties().load(this.getClass().getClassLoader().getResourceAsSt ream("jndi.properties")); But I also get the same problem. If I put the code into a main and run it from the command line, it works fine - and find the jndi.properties - which points to a problem (or misue by me) of the tomcat classloader. Has anyone seen this problem? Got a workaround for it? Thanks, Chris This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Coperatieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK. The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery. -- -- To subscribe:[EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED]
Tomcat as Service...
Hello everybody!!! I'm tryin' to install Tomcat 3.2.1 as NT Service on a JDK1.3. The jk_nt_service module isn't right because of the usage of JDK1.3 So I'm tryin with JavaService (http://www.alexandriasc.com/software/JavaService/). I configured the Tomcat Service and it starts but it doesn't works. If I start Tomcat in the manual mode (and the prompt window appears) it works fine I used the bat examples in JavaService that help making tomcat a service I called Tomcatsv.exe the file. ... do you have any suggestion? Thank you very much in advance!! Robuschi Roberto Delfi srl P.za Ravenet 1/b - 43100 PARMA Tel. 0521/932474 Fax 0521/989045 [EMAIL PROTECTED] --- http://www.delfi.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Benchmarking
There is also a tool I used myself for benchmark and can be found at the following address; http://www.hpl.hp.com/personal/David_Mosberger/ It has been written by HP Research Labs. Cheers Andre On Tue, 23 Jan 2001, Jon Baer wrote: There is a tool @ http://www.mindcraft.com/webstone/, I have not used it. Im actually looking for stats for: TOMCAT http://jakarta.apache.com ORION http://www.orionserver.com JRUN http://www.allaire.com WEBLOGIC http://www.bea.com RESIN http://www.caucho.com JETTY http://jetty.mortbay.com Does anyone know if this has been documented anywhere or any benchmark results? - Jon Oleg Timofeyev wrote: Hey guys, Well now that I installed TOMCAT, ORION and JRUN I would like to benchmark those. Anyone knows of good benchmarking solutions for java servers, maybe some ready results as well, but I like to run those myself as ppl have a tendency to be bios :) thank you -- -- Oleg Timofeyev ReadySetNet [EMAIL PROTECTED] http://www.readysetnet.com Phone : 323 469 2000 Fax : 323 469 2155 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] FORM HR BIFONT COLOR="#008080" SIZE=+2Andre Couture/FONT/I/B BRBIFONT COLOR="#4299A7"938934 Ontarionbsp;Inc./FONT/I/B BRFONT COLOR="#CC"ADDRESSmailto:[EMAIL PROTECTED]/ADDRESS/FONT /FORM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat as Service...
So I'm tryin with JavaService (http://www.alexandriasc.com/software/JavaService/). I configured the Tomcat Service and it starts but it doesn't works. If I start Tomcat in the manual mode (and the prompt window appears) it works fine I used the bat examples in JavaService that help making tomcat a service I called Tomcatsv.exe the file. ... do you have any suggestion? Try TomcatService.exe -install Tomcat %JAVA_HOME%\jre\bin\hotspot\jvm.dll -Xms1M -Xmx8M -Djava.class.path=%TOMCAT_HOME%\lib\webserver.jar;%TOMCAT_HOME%\lib\jasper.jar;%TOMCAT_HOME%\lib\jaxp.jar;%TOMCAT_HOME%\lib\parser.jar;%TOMCAT_HOME%\lib\servlet.jar;%JAVA_HOME%\lib\tools.jar -Dtomcat.home=%TOMCAT_HOME% -start org.apache.tomcat.startup.Tomcat -params -config "%TOMCAT_HOME%\conf\server.xml" -stop org.apache.tomcat.startup.Tomcat -params -stop -config "%TOMCAT_HOME%\conf\server.xml" -out %TOMCAT_HOME%\logs\stdout.log -err %TOMCAT_HOME%\logs\stderr.log which is what worked for me; the old batch file won't work with 3.2 as the names of the startup and shutdown classes have changed... np: Luke Vibert - I Hear The Drummer (Xen Cuts comp.) - Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/ Send or read your emails anywhere. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
error: 500
Hello, I've installed Tomcat 3.2.1 (stand-alone) and the JDK1.3, and started Tomcat using justGo and it all works well. When I connect to http://localhost:8080/ it displays the default tomcat homepage. Then I tried to use some of the examples, and it appears that only the servlet examples work, not the JSP examples. Each time I want to start one of the JSP examples I get an error: 500 (complete error message below). What exactly goes wrong and how can I solve it? --- Error: 500 Location: /examples/jsp/num/numguess.jsp Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.ja va: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(ContextMana ger.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java :743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConne ction(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.j ava:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool. java:498) at java.lang.Thread.run(Unknown Source) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompile r.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:46 2) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.j ava:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNece ssary(JspServlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Js pServlet.java:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.ja va:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.ja va: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(ContextMana ger.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java :743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConne ction(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.j ava:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool. java:498) at java.lang.Thread.run(Unknown Source) Ajuus, Bop. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: error: 500
As this error indicates, Tomcat can not find javac (java.lang.NoClassDefFoundError: sun/tools/javac/Main). This indicates that you have not set your JAVA_HOME variable or have set it to the wrong path. (It needs to point to the directory that contains lib/tools.jar). Randy -Original Message- From: Bob Kersten [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 8:22 AM To: [EMAIL PROTECTED] Subject: error: 500 Hello, I've installed Tomcat 3.2.1 (stand-alone) and the JDK1.3, and started Tomcat using justGo and it all works well. When I connect to http://localhost:8080/ it displays the default tomcat homepage. Then I tried to use some of the examples, and it appears that only the servlet examples work, not the JSP examples. Each time I want to start one of the JSP examples I get an error: 500 (complete error message below). What exactly goes wrong and how can I solve it? --- Error: 500 Location: /examples/jsp/num/numguess.jsp Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.ja va: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(ContextMana ger.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java :743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConne ction(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.j ava:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool. java:498) at java.lang.Thread.run(Unknown Source) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompile r.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:46 2) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.j ava:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNece ssary(JspServlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Js pServlet.java:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.ja va:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.ja va: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(ContextMana ger.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java :743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConne ction(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.j ava:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool. java:498) at java.lang.Thread.run(Unknown Source) Ajuus, Bop. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
URL to Servlet Hangs
Hello, I was hoping that someone could give me some help with the following problem. I have a servlet that needs to respond to requests from URLs and other servlets. Servlet to servlet link works fine. The problem is that there does not seem to be a way for a URL connection to tell when the servlet connection has gone away, so the URL "client" will hang forever. Here is a code snippet from the client that has the URL connection to the servlet: HttpURLConnection dataCon = null; // url_ is the URL to the servlet dataCon = (HttpURLConnection) url_.openConnection(); // Set up the connection to be POST, allow output, and set the session // cookie dataCon.setDoOutput(true); dataCon.setRequestMethod("POST"); if (sessionCookie_ != null) { dataCon.setRequestProperty("Cookie", sessionCookie_); } OutputStream out = dataCon.getOutputStream(); ...write the output out.flush(); out.close(); InputStream in = null; in = dataCon.getInputStream(); int numBytes = 0; try { do { numBytes = in.available(); if(numBytes 1) { try { Thread.sleep(1000*2); } catch(InterruptedException ie) { } } }while(numBytes1); } catch(IOException ioe) { ...connection gone . . return; } ...read the input The in.available() never throws an exception if the web server times out and breaks the connection. Is there some way to tell if the servlet/web server has disconnected? Thanks. = Wyn Easton [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat 3.2.1 login and password of Admin context
I have dowload TOMCAT 3.2.1 and i can't add a new context whit the Admin because the Admin tell me a login and password. I don't know this login/password. Help me Thanks begin:vcard n:Philippe;LEBRETON x-mozilla-html:FALSE adr;dom;quoted-printable:;;1=3Brue Bouch=E9 Thomas=0D=0ABP 3604;Angers Cedex 01;;49036; org:CTI des Pays de Loire;TVT version:2.1 email;internet:[EMAIL PROTECTED] title:Admisnatreur du Système d'information tel;fax:02 41 68 09 60 tel;work:02 47 47 77 29 note:Support Admisys, Hermes, PAC, Unix fn:LEBRETON Philippe end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
configuring 1 webapp with multiple form logon pages
Using 3.2.1 has anyone configured a webapp that has multiple form-based logon pages. Basically I need a different logon page for each corporate unit? It appears to me that that by default, tomcat allows only 1 login page per webapp. Any Ideas? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: configuring 1 webapp with multiple form logon pages
My question is, how do you know which logon page to use? Is there something special about the machine they are requesting from? Do they try and go to a special (corporate unit specific) URL? Or is it supposed to guess somehow? One thing to remember is that the form-based logins are jsp pages. You can look at the HTTP request headers or whatever you want to make the decision about which login page to show, but in my experience this is usually very difficult to do - everyone wants to go the same URL and us any computer, but recieve their customized login page. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 10:29 AM To: [EMAIL PROTECTED] Subject: configuring 1 webapp with multiple form logon pages Using 3.2.1 has anyone configured a webapp that has multiple form-based logon pages. Basically I need a different logon page for each corporate unit? It appears to me that that by default, tomcat allows only 1 login page per webapp. Any Ideas? - 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: configuring 1 webapp with multiple form logon pages
The logon page is determined by which section of the site the users are trying to access. For example if the user is trying to get to the Marketing section they will be prompted with the Marketing logon page, that represents the Marketing's UI look/feel. However, if the user wanted to go to the Sales section they would be prompted with the Sales logon page that is consistent with the Sales Look/Feel. Is this more clear? Thanks Bob -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 9:12 AM To: [EMAIL PROTECTED] Subject: RE: configuring 1 webapp with multiple form logon pages My question is, how do you know which logon page to use? Is there something special about the machine they are requesting from? Do they try and go to a special (corporate unit specific) URL? Or is it supposed to guess somehow? One thing to remember is that the form-based logins are jsp pages. You can look at the HTTP request headers or whatever you want to make the decision about which login page to show, but in my experience this is usually very difficult to do - everyone wants to go the same URL and us any computer, but recieve their customized login page. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 10:29 AM To: [EMAIL PROTECTED] Subject: configuring 1 webapp with multiple form logon pages Using 3.2.1 has anyone configured a webapp that has multiple form-based logon pages. Basically I need a different logon page for each corporate unit? It appears to me that that by default, tomcat allows only 1 login page per webapp. Any Ideas? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - 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: configuring 1 webapp with multiple form logon pages
Then you probably want to create one really big login page that does basically a set of if { } else if { }, comparing a portion of request.getServletPath() to the whatever identifies each section. (Would probably work with jsp:include to include the different login pages). Also, depending upon how different your look and feels are, you might be able to get away with just having a different css file to replace color/fonts. Doesn't help with the basic structure of the page though. This does sound like the perfect example for using XML and XST, but I have never worked with them and there would probably be problems using that as your login page. Hope this helps, Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 10:49 AM To: [EMAIL PROTECTED] Subject: RE: configuring 1 webapp with multiple form logon pages The logon page is determined by which section of the site the users are trying to access. For example if the user is trying to get to the Marketing section they will be prompted with the Marketing logon page, that represents the Marketing's UI look/feel. However, if the user wanted to go to the Sales section they would be prompted with the Sales logon page that is consistent with the Sales Look/Feel. Is this more clear? Thanks Bob -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 9:12 AM To: [EMAIL PROTECTED] Subject: RE: configuring 1 webapp with multiple form logon pages My question is, how do you know which logon page to use? Is there something special about the machine they are requesting from? Do they try and go to a special (corporate unit specific) URL? Or is it supposed to guess somehow? One thing to remember is that the form-based logins are jsp pages. You can look at the HTTP request headers or whatever you want to make the decision about which login page to show, but in my experience this is usually very difficult to do - everyone wants to go the same URL and us any computer, but recieve their customized login page. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 10:29 AM To: [EMAIL PROTECTED] Subject: configuring 1 webapp with multiple form logon pages Using 3.2.1 has anyone configured a webapp that has multiple form-based logon pages. Basically I need a different logon page for each corporate unit? It appears to me that that by default, tomcat allows only 1 login page per webapp. Any Ideas? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - 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: RequestInterceptor authenticate and authorize. Need advise
How can a JSP get access to the authenticate method of a request interceptor, such as JDBCRealm ? Is there also a way for a JSP to find out which interceptor is handling authentication. I want users to enter their userID and password values, add these details to the database that JDBCRealm is configured to use, and do an automatic authenticate to allow them access to protected parts of the application. Thanks, Cathy -- From: Craig R. McClanahan[SMTP:[EMAIL PROTECTED]] Reply To: [EMAIL PROTECTED] Sent: 24 January 2001 23:10 To: [EMAIL PROTECTED] Subject: Re: RequestInterceptor authenticate and authorize. Need advise "Roytman, Alex" wrote: Hello, As I understand, RequestInterceptor.authenticate() and authorize() get called every time a protected resource is being accessed. Does it mean tomcat do not cache user/roles after first authentication? Tomcat 4.0 caches the authenticated principal in the current session (if there is one) -- otherwise, it authenticates on every request. I don't believe that this feature got back-ported to 3.2. Should I perform actual authentication every time (which is awfully resource consuming) or could I assume that if (request.getRemoteUser() != null) user has been authenticated. something like this: if (request.getRemoteUser() == null) { //perform authentication } the same question with authorize. What is the best way to handle it. Can I cache roles using request.getRemoteUser() as a key? You want to do something like this, in case some previous interceptor (or the Apache connector) did the authentication -- but if you're running Tomcat standalone, for example, you'll find that getRemoteUser() is never going to be set (unless 3.2 really does cache and I've just got amnesia about it :-), because your interceptor is the only place it will ever get set. Is user principal container wide or context wide? For 3.2, it's container-wide. For 4.0, it depends on where you define the Realm element -- you can make it webapp-wide, virtual-host-wide, or container-wide. Thank you very much in advance Alex Roytman Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: Actually RE: Tomcat processes... (to Christoph Rooms)
Which jdk 1.3 do you use, Sun or IBM ? Sun's jdk tends to use much more memory than the IBM jdk. (At least that's our experience) -Ursprngliche Nachricht- Von: Christoph Rooms [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 24. Januar 2001 23:55 An: [EMAIL PROTECTED] Betreff: RE: Actually RE: Tomcat processes... (to Christoph Rooms) snip/ I am using 3.2.1 ... using jdk 1.3. Strange ... but how is it possible that I'm getting 140MB and another user only 10 ? snip/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Cannot recover key error and SSL
I know this has been discussed on the list before, but I have not been able to find a definitive solution by searching through the archives. I'm running Tomcat 3.2 final on 3 different Windows 2000 Advanced Server boxes. After following the instructions in the SSL doc that comes with Tomcat, I am able to get full SSL functionality working on one box, but not the other two boxes that have virtually identical installs and setups. The error I am getting is "FATAL: java.io.IOException: Cannot recover key". I have delete the key with keytool and generated a new one several times to no avail. Does anyone have a solution to this problem? I would appreciate the help. Thanks. Craig
RE: Please, Please help with the install of Tomcat!
adding it to autoexec.bat and renaming is not necessary. add it to STARTUP.BAT in your c:\jakarta-tomcat-3.2.1\bin directory. -Original Message- From: G.Nagarajan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 1:16 AM To: [EMAIL PROTECTED] Subject: RE: Please, Please help with the install of Tomcat! Hi Roland, do the following, rename jdk1.3 to jdk rename jakarta-tomcat-3.2.1 to tomcat and add the following to the autoexec.bat, JAVA_HOME=c:\jdk TOMCAT_HOME=C:\tomcat\ PATH=c:\jdk\bin this should do! -Original Message- From: Roland Dong [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 11:06 AM To: [EMAIL PROTECTED] Subject: Pleae, Please help with the install of Tomcat! I am new to the list. I just downloaded Tomcat 3.2.1. and have little idea in terms of how to install it. I did manage to unzip the file and put them all together under the directory jakarta-tomcat 3.2.1. However, when I startup the server, I got an error message: "You must set JAVA_HOME to point at your Java Development Kit installation" I found "Tomcat - A Minimalistic User's Guide" is not clear enough to help me. Can someone perhelps show me a bit details? According to the Guide: "On Win32 you should type: "set TOMCAT_HOME=foo\tomcat". Set the environment variable JAVA_HOME to point to the root directory of your JDK hierarchy, then add the Java interpreter to your PATH environment variable." So I added these lines to my autoexec.bat "following" the above guide. JAVA_HOME=c:\jdk1.3 TOMCAT_HOME=C:\jakarta-tomcat-3.2.1\ PATH=%JAVA_HOME%\bin But I get it work. Is there something wrong? Thanks a lot, Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
JNI Servlet with Tomcat Problem
Hi, I am using a servlet call to a C dll with JNI. I am using Windows NT4, TOMCAT 3.2, jdk1.3, c dll. Below is my code # import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class jniServlet2 extends HttpServlet { public String myString = null; public native String displayHelloWorld(); public void init() throws ServletException { try { //System.load("d:\\work\\jni\\hello.dll"); System.loadLibrary("hello"); } catch(Exception e) { System.err.println("error1- " + e); return; } catch(Throwable e) { System.err.println("error2-" + e); return; } System.err.println("Successfully loaded DLL"); myString = new jniServlet2().displayHelloWorld(); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("html"); out.println("body"); out.println("head"); out.println("titleHello World!/title"); out.println("/head"); out.println("body"); out.println( myString ); out.println("/body"); out.println("/html"); } } # In the Tomcat console "Successfully loaded DLL" is printed. However, the native method displayHelloWorld() terminates the code abnormally. The error I'm receiving in the browser is an UnsatisfiedLinkError as follows... # Internal Servlet Error: java.lang.UnsatisfiedLinkError: displayHelloWorld at jniServlet2.displayHelloWorld(Native Method) at jniServlet2.init(jniServlet2.java:34) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.core.Handler.service(Handler.java:254) 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 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) The code for the c dll Implemation is as follows #include jni.h #include "HelloWorld.h" #include stdio.h #include string.h JNIEXPORT jstring JNICALL Java_HelloWorld_displayHelloWorld (JNIEnv *env, jobject obj) { jstring value; char buf[40]; strcpy(buf,"HelloWorld"); value = (*env)-NewStringUTF(env,buf); return value; } # I've tried adding the dll path to the SYSTEM and USER path, and I've tried the load() and loadLibrary() appraoches, but Tomcat is just not finding the dll.. Can anyone please help.. Adrian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: JNI Servlet with Tomcat Problem
Make doubley certain that the dll implements the function prototypes that javah creates from your native class. I've had it were the library loaded just fine but there was a name missmatch between the native methods and the JNI functions and I recieved similar sort of runtime errors AFTER successful load (was on Linux so I'll not say the SAME errors). It happened to me when I changed the native class's package and javah changed the prototypes to reflect that. -Original Message- From: Ryan Adrian [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 11:40 AM To: '[EMAIL PROTECTED]' Subject: JNI Servlet with Tomcat Problem Hi, I am using a servlet call to a C dll with JNI. I am using Windows NT4, TOMCAT 3.2, jdk1.3, c dll. Below is my code # import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class jniServlet2 extends HttpServlet { public String myString = null; public native String displayHelloWorld(); public void init() throws ServletException { try { //System.load("d:\\work\\jni\\hello.dll"); System.loadLibrary("hello"); } catch(Exception e) { System.err.println("error1- " + e); return; } catch(Throwable e) { System.err.println("error2-" + e); return; } System.err.println("Successfully loaded DLL"); myString = new jniServlet2().displayHelloWorld(); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("html"); out.println("body"); out.println("head"); out.println("titleHello World!/title"); out.println("/head"); out.println("body"); out.println( myString ); out.println("/body"); out.println("/html"); } } # In the Tomcat console "Successfully loaded DLL" is printed. However, the native method displayHelloWorld() terminates the code abnormally. The error I'm receiving in the browser is an UnsatisfiedLinkError as follows... # Internal Servlet Error: java.lang.UnsatisfiedLinkError: displayHelloWorld at jniServlet2.displayHelloWorld(Native Method) at jniServlet2.init(jniServlet2.java:34) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.core.Handler.service(Handler.java:254) 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 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) The code for the c dll Implemation is as follows #include jni.h #include "HelloWorld.h" #include stdio.h #include string.h JNIEXPORT jstring JNICALL Java_HelloWorld_displayHelloWorld (JNIEnv *env, jobject obj) { jstring value; char buf[40]; strcpy(buf,"HelloWorld"); value = (*env)-NewStringUTF(env,buf); return value; } # I've tried adding the dll path to the SYSTEM and USER path, and I've tried the load() and loadLibrary() appraoches, but Tomcat is just not finding the dll.. Can anyone please help.. Adrian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Installing Tomcat into IIS Automatically
I was wondering if anyone out there has come up with a way to install Tomcat into IIS programatically (using some program or editing the registry directly)? Or is this something that is not possible? The reason is that I am starting to think about installing our application on the client machine and would like it to be as automatic as possible. Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: mod_jk compile warning
Title: mod_jk compile warning i have the same problem. If you find the solution please help me thanks Carlos - Original Message - From: Hammon, Sean To: [EMAIL PROTECTED] Sent: Thursday, January 25, 2001 5:52 PM Subject: mod_jk compile warning I just tried to compile mod_jk on my solaris box and got the following message: ../jk/jk_jni_worker.c:764: warning: #warning --- ../jk/jk_jni_worker.c:765: warning: #warning NO JAVA 2 HEADERS! SUPPORT FOR JAVA 2 FEATURES DISABLED ../jk/jk_jni_worker.c:766: warning: #warning --- There are two jdks installed on this machine. The one in the system path is 1.2.1. The other is 1.3. What is the script looking for and where? -Sean Hammon
Linux / apache / tomcat which mod_jk.conf and the contextAdmin page
Hello, The documentation is a little confusing as where to start first. There are 3 RPMs for Linux. One was documentation, one was the module itself, and one was the main tomcat stuff. I installed all 3. 1) In the module do I need both mod_jk.so and mod_jserv_tomcat.so ? 2) Also there are 3 mod_jk.conf configuration files. /var/tomcat/conf/mod_jk.conf, /var/tomcat/conf/mod_jk.conf-auto, and /etc/httpd/conf/mod_jk.conf, does it matter which one I use? 3) It seems to work. (YEAH!) except when I try out /admin and the contextAdmin (/admin/contextAdmin/contextAdmin.html) it prompts for a password. How do I set this or what is it and how do I change this? 4) Also in the server.xml file it is set up for both protocol 12 and 13, what do I do to force 13? -- Joe Acosta home: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
taglib / context
does anyone know how to share a taglib from one context to another? therefor you would set up a base context and all other contexts would use it's taglibs. -- C. Jason Benedict
Re: Tomcat 3.2.1 login and password of Admin context
Hi Philippe, For username and password try to look in the conf/tomcat-users.xml file bye Stefano - Original Message - From: "LEBRETON Philippe" [EMAIL PROTECTED] To: "Tomcat" [EMAIL PROTECTED] Sent: Thursday, January 25, 2001 4:18 PM Subject: Tomcat 3.2.1 login and password of Admin context I have dowload TOMCAT 3.2.1 and i can't add a new context whit the Admin because the Admin tell me a login and password. I don't know this login/password. Help me Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
getParameter in Tomcat on IIS
Hi All, this is my first post to the list, and I'm not currently subscribed tomcat-user. I'm setting up Tomcat 3.2 + IIS and we get the problem stated in http://znutar.cortexity.com/BugRatViewer/ShowReport/55 and http://w4.metronet.com/~wjm/tomcat/ToFeb11/msg02723.html (getParameter is null when values from a HTML FORM are sent to a jsp). The getParameter works well if the method used is GET, but if POST is used the value returned is null (only detected in MSIE 4.x). Does anyone have any clue about this problem ?? (actual Tomcat bug, MSIE bug), Any workarrounds ?? Thanks for all your help. -- Vctor A. Rodrguez ( http://www.bit-man.com.ar) Telefnica de Argentina - http://www.Telefonica.com.ar Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problem with Tomcat and Apache Server Side Includes
I want to be able to use server side includes within Apache to populate part of an otherwise static HTML page with some dynamically generated components. The main reason for this approach is that the JSP and HTML will be developed and published independently. I have the web app as the root context, and the html as a directory specified in an Apache "Alias" directive. As a test, I have "/html/test.shtml" containing: !--#include virtual="/test.jsp"-- When this is run, I just get the following inserted, instead of the expected JSP output: Not Found (404) Original request: /html/index.shtml Not found request: /html/index.shtml So, for some reason, using a JSP inside an SSI is causing the URI passed to Tomcat to be the page, rather than the URI specified in the SSI tag. I am using Tomcat 3.2.1, with Apache 1.3.12 under Windows 2000, using mod_jserv and ajpv12. Is there something inherent in Tomcat that would prevent me using Apache server side includes, or can I cure the fault by using a different connector? -- `O O' | [EMAIL PROTECTED] // ^ \\ | http://www.pyrites.org.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat 3.2.1 login and password of Admin context
Title: RE: Tomcat 3.2.1 login and password of Admin context Add the role 'admin' to one of the accounts you listed. Then that account will work. (There is a blurb about this in the context.xml) -Original Message-From: Andy Scasso [mailto:[EMAIL PROTECTED]]Sent: Thursday, January 25, 2001 1:50 PMTo: '[EMAIL PROTECTED]'Subject: RE: Tomcat 3.2.1 login and password of Admin context Same problem. In tomcat-users.xml I see users "tomcat", "role1", "both" all with password "tomcat". I tried all the combinations and still can't log in the Admin. -Original Message- From: Stefano Martinella [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 10:05 To: [EMAIL PROTECTED] Subject: Re: Tomcat 3.2.1 login and password of Admin context Hi Philippe, For username and password try to look in the conf/tomcat-users.xml file bye Stefano - Original Message - From: "LEBRETON Philippe" [EMAIL PROTECTED] To: "Tomcat" [EMAIL PROTECTED] Sent: Thursday, January 25, 2001 4:18 PM Subject: Tomcat 3.2.1 login and password of Admin context I have dowload TOMCAT 3.2.1 and i can't add a new context whit the Admin because the Admin tell me a login and password. I don't know this login/password.
How to include from a non-local URL?
Hello: I hve a machine runnng an application that generates a piece of content that I want to include in a JSP page. According to the jsp include tag docs, I can only include a local document using it. Is there a way to include the result of a general URL? Thanks, Neil. -- Neil Aggarwal JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com Custom Internet Development -- Java, JSP, servlets, databases - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Cannot recover key error and SSL
Sorry for this reply to my own message, but I found a work around (solution ?). Make sure the password for the key you generate is the same as the password for the keystore. - Original Message - From: Craig Smithpeters To: [EMAIL PROTECTED] Sent: Thursday, January 25, 2001 11:33 AM Subject: "Cannot recover key" error and SSL I know this has been discussed on the list before, but I have not been able to find a definitive solution by searching through the archives. I'm running Tomcat 3.2 final on 3 different Windows 2000 Advanced Server boxes. After following the instructions in the SSL doc that comes with Tomcat, I am able to get full SSL functionality working on one box, but not the other two boxes that have virtually identical installs and setups. The error I am getting is "FATAL: java.io.IOException: Cannot recover key". I have delete the key with keytool and generated a new one several times to no avail. Does anyone have a solution to this problem? I would appreciate the help. Thanks. Craig
RE: Which JVM for Tomcat?
I believe there were some sort of "issues" between Sun and Blackdown. To my best recollection one of the major "issues" was that Blackdown had gotten so far behind schedule at one point. I don't know about the relationship between IBM and Tomcat. If IBM follows the specs for VM elopement as given by Tomcat then the VM good. You mean the VM specs given by Sun right? --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Configuring web.xml for HttpServlet - Solution!
Aha! never underestimate the power of just guessing. The solution was to hit the servlet by specifying "servlet" in the path, i.e.: http://servername/context/servlet/servlet-name If the servlet is installed under the ROOT webapp as Wyn Easton suggested, then you can skip specifying the context Does anyone know if there is a way to set up web.xml or something so that the "/servlet" portion of the URL can be skipped? Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jk load balancing
Title: mod_jk load balancing Hi Margaret, Take a look at the link :- http://java.apache.org/jserv/howto.load-balancing.html This is a bit old, and it talks about load balancing with Jserv ( not tomcat ) - using mod_jserv I assume that the syntax for the load balacing portion is mostly similar, but I have never tried it out using mod_jk If you were using Jserv, these are the lines that have to be in your httpd.conf file for Apache :- --- ApJServMount /servlet balance://set1/zone1 ApJServBalance set1 PC1 ApJServBalance set1 PC2 ApJServBalance set1 PC3 ApJServBalance set1 SPARK 4 ApJServHost PC1 ajpv12://192.168.0.51: ApJServHost PC2 ajpv11://192.168.0.52: ApJServHost PC3 ajpv11://192.168.0.53: ApJServHost SPARK ajpv12://192.168.0.54: ApJServRoute JS1 PC1 ApJServRoute JS2 PC2 ApJServRoute JS3 PC3 ApJServRoute sp1 SPARK ApJServShmFile log/jserv_shm --- ( this snippet is from the link described above. ) If anyone else has newer information - let us know, -- Nipun. -Original Message-From: Royzen, Margaret [mailto:[EMAIL PROTECTED]]Sent: Thursday, January 25, 2001 3:54 PMTo: [EMAIL PROTECTED]Subject: mod_jk load balancing Hi everyone, I am trying to configure the Apache server to balance the load between two independent Tomcat workers using ajp12 protocol. One worker is listening on port 10101, another one on port 10102. I put in my workers.properties file: worker.ajp12.port=10101 worker.ajp12.host=localhost worker.ajp12.type=ajp12 worker.ajp12.lbfactor=1 worker.ajp13.port=10103 worker.ajp13.host=localhost worker.ajp13.type=ajp12 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp12, ajp13 At first I put in my apache configuration file : JkMount /apps-jsp/servlet/* loadbalancer JkMount /apps-jsp/*.jsp loadbalancer thinking, that this way mod_jk will process requests via loadbalancer worker, but I got "Internal Server Error" After that, I changed it back to: JkMount /apps-jsp/servlet/* ajp12 JkMount /apps-jsp/*.jsp ajp12 Servlets started working, but log files are showing no load balancing, all requests are processes via port 10101. Does anyone know, what should I put into Apache configuration file to achieve load balancing? Thank you very much in advance, Margaret Royzen.
RE: Problems with context-relative path include directive
The way it nehaves is that "/" is the root of your webapp. So, when doing things with the servlet container alone, you would reference the file as "/JSPHeader.jsp". If, however, you are sending something to the browser for it to get, then do "%= request.getContextPath() %/JSPHeader.gif" Somewhat weird, but it does make navigation from the root of your webapp easier since the name (context path) of the webapp can be changed. Regards, Paul -Original Message- From: Cor Ruiten [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 11:03 PM To: [EMAIL PROTECTED] Subject: Problems with context-relative path include directive I just installed Tomcat 3.2.1 on my Windows 2000 workstation. I am able to start Tomcat and view the examples provided in the distribution. I made the following entry in the server.xml file so that I can reach my application: Context path="/hcs" docBase="d:/development/hcs/jsp" crossContext="false" debug="9" reloadable="true" /Context If I attempt to serve up any JSP page that has the following include directive: %@ include file="/hcs/JSPHeader.jsp" % I receive the following error: Error: 500 Location: /hcs/sccp.jsp Internal Servlet Error: org.apache.jasper.compiler.CompileException: D:\Development\hcs\jsp\sccp.jsp(0,0) Bad file argument to include at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve ntListener.java, Compiled Code) at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList ener.java:116) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, Compiled Code) at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code) at org.apache.jasper.compiler.Parser.parse(Parser.java:1042) at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:2 10) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) The same JSP pages work fine using JRun 3.0. But it appears that Tomcat is not liking my context-relative path include statement because if I change the include to be: %@ include file="JSPHeader.jsp" % and the JSP page that make this include is at the "root" level for my context, then Tomcat is happy... I was under the impression that my definition of the "/hcs" context should have taken care of this. Any thoughts on what I am doing wrong here? Thank you, Cor Ruiten Pipeline Software, Inc. [EMAIL PROTECTED] - 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: Please, Please help with the install of Tomcat!
First, thanks very much! I follow the instruction and change the jdk1.3 to jdk and reset my autoexec.bat file so it looks like this: SET BLASTER=A220 I7 D1 T2 SET SNDSCAPE=C:\WINDOWS set JAVA_HOME=c:\jdk set TOMCAT_HOME=C:\tomcat\ set PATH=c:\jdk\bin PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\ORAWIN95\BIN;c:\jdk\bin set CLASSPATH=c:\jdk\lib\tools.jar; But I got errors: *** Out of environment space Out of environment space Out of environment space Unable to set CLASSPATH dynamically. Note: To set the CLASSPATH dynamically on Win9x systems only DOS 8.3 names may be used in TOMCAT_HOME! Setting your CLASSPATH statically. Out of environment space Out of environment space Out of environment space Out of environment space Using CLASSPATH: C:\tomcat\\classes Starting Tomcat in new window Bad command or file name ** Can you tell me what's wrong? Can you give me an example of an autoexec.bat? I have been trying to set up tomcat for two days without success. Thanks very very much Roland -Original Message- From: Jayesh [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 8:36 AM To: [EMAIL PROTECTED] Subject: RE: Please, Please help with the install of Tomcat! adding it to autoexec.bat and renaming is not necessary. add it to STARTUP.BAT in your c:\jakarta-tomcat-3.2.1\bin directory. -Original Message- From: G.Nagarajan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 1:16 AM To: [EMAIL PROTECTED] Subject: RE: Please, Please help with the install of Tomcat! Hi Roland, do the following, rename jdk1.3 to jdk rename jakarta-tomcat-3.2.1 to tomcat and add the following to the autoexec.bat, JAVA_HOME=c:\jdk TOMCAT_HOME=C:\tomcat\ PATH=c:\jdk\bin this should do! -Original Message- From: Roland Dong [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 11:06 AM To: [EMAIL PROTECTED] Subject: Pleae, Please help with the install of Tomcat! I am new to the list. I just downloaded Tomcat 3.2.1. and have little idea in terms of how to install it. I did manage to unzip the file and put them all together under the directory jakarta-tomcat 3.2.1. However, when I startup the server, I got an error message: "You must set JAVA_HOME to point at your Java Development Kit installation" I found "Tomcat - A Minimalistic User's Guide" is not clear enough to help me. Can someone perhelps show me a bit details? According to the Guide: "On Win32 you should type: "set TOMCAT_HOME=foo\tomcat". Set the environment variable JAVA_HOME to point to the root directory of your JDK hierarchy, then add the Java interpreter to your PATH environment variable." So I added these lines to my autoexec.bat "following" the above guide. JAVA_HOME=c:\jdk1.3 TOMCAT_HOME=C:\jakarta-tomcat-3.2.1\ PATH=%JAVA_HOME%\bin But I get it work. Is there something wrong? Thanks a lot, Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - 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: Please, Please help with the install of Tomcat!
do the following, rename jdk1.3 to jdk Okay, I have to say DO NOT do this. The JDK installer adds registry entries for the install locations. Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Pleae, Please help with the install of Tomcat!
Jim, Thank you so much. It works very well! It took me a few second to down load the program and a few second to have the tomcat up running! It makes me wondering why the people who created Tomcat haven't done something like what you did to make our lives eazier... Thanks again! Roland -Original Message- From: Jim Rudnicki [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 10:53 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Pleae, Please help with the install of Tomcat! Don't rename directories, don't waste your time on batch files. Go here: http://www.geocities.com/jdrudnicki/ Get the small download and use the launcher. Works 99.99% of the time. Jim I am new to the list. I just downloaded Tomcat 3.2.1. and have little idea in terms of how to install it. I did manage to unzip the file and put them all together under the directory jakarta-tomcat 3.2.1. However, when I startup the server, I got an error message: "You must set JAVA_HOME to point at your Java Development Kit installation" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
NEW PROBLEM with Running a thread from a JSP
I have an iframe that is used to show status on various things and one of those things is mail progress. Right now the status page goes through it's chores and shows the status as it's being run. So when it's checking mail, it checks the mail and shows a progress bar and "Retrieving x of y messages." and x and the progress bar are being updated regularly. Now the problem is that sometimes if you leave the page too soon, the retrieving mail function does not finish, so it doesn't get all the messages and it doesn't delete them off the mail server. So the fix would obviously be to run a thread so that it wouldn't stop when you leave the page. But this doesn't work very well, because you can't keep the status updated because the status page finishes before the thread even gets going, so now it checks mail good, but you can't see the status. Any ideas on this? Thought of an infinite loop that would keep checking the message number on the thread, but what's the life cycle of the jsp page? Does it get killed by something or would the loop continue on forever? Travis Reeder Chief Software Architect www.ThinkVirtual.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]