running servlets
I copied some sample servlets from the examples context into another context I made to see if they would run. But they won't run. I have placed the servlets inside the WEB-INF/classes directory just like in the examples context and also made a web.xml file under WEB-INF with the following lines: ?xml version="1.0" encoding="ISO-8859-1"? web-app servlet servlet-name SessionExample /servlet-name servlet-class SessionExample /servlet-class /servlet servlet-mapping servlet-name SessionExample /servlet-name url-pattern /SessionExample /url-pattern /servlet-mapping /web-app I'm trying to access the servlet with: http://hostname/context/servlet/SessionExample but I keep on getting Error: 404 Location: /context/servlet/SessionExample I am using Tomcat 3.1 with Apache handling static pages. Thanks. Get your small business started at Lycos Small Business at http://www.lycos.com/business/mail.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: URGENT! TomCat won't run my servlets.
Without more information about your setup it's difficult to guess... Could you send any configurations you changed from the defaults? Some wild guesses: - Your HTTPConnectionHandler still uses the default port 8080 instead of 80. From the default server.xml: !-- Normal HTTP -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/ Parameter name="port" value="8080"/ /Connector Change the 8080 to 80 - You changed the port of the Ajp12ConnectionHandler to 80 instead of the HttpConnectionHandler... - On the production server, tomcat does not have the rights to open port 80. On unix the application needs root access to open ports 1024 Luc Vanlerberghe "Cato, Christopher" wrote: Hi all. I'm deploying my applications to the production server. The production server (a DELL system running 2 processors) silently refuses to run my applications. They init okay (can see it in the tomcat log and also in the database log) but they won't run the doGet method for some reason. On the development server, they run just fine. Both systems run RedHat 6.2 and TomCat 3.21. The development server runs TomCat thru Apache and mod_jk, the production server runs TomCat standalone. I found a bug report on redhat.com that stated that in some cases glibc can break java, so I upgraded glibc to the latest version. Still doesn't work. Question is: am I overlooking something simple here? Could it be the difference between running as mod_jk and running standalone? All other files are served as they should through TomCat standalone. So, to reiterate the problem: machine A (development server) - rh 6.2 - tomcat 3.21 - apache 1.3.12 - mod_jk: runs ok machine B (production server) - rh 6.2 - tomcat 3.21 standalone: doesn't run. WHY?? What's the friggin' problem here, I just can't get it! Please help me if you can, deadline is overdrawn and decapitation is moving in rapidly :( regards, christopher cato - 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: Hi Ho - Problem with ServletOutputStream in Tomcat
Ok thx for all your help - i found the problem - or more correct i read the infos a 10th time about InputStreamReader - and now i found the info about conversion of the characters -- i am veerrryy blind thx Wolfgang Kremser -Ursprngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 16. Februar 2001 09:12 An: [EMAIL PROTECTED] Betreff: AW: Hi Ho - Problem with ServletOutputStream in Tomcat well i use a HTTPUrlConnection - and theres a getInputStream method which brings me my inputstream. I dont see any info about char-conversion with this method here's the missing code snippet --- InputStreamReader brInput = new InputStreamReader(HttpUrlCon.getInputStream()); --- greetings Wolfgang -Ursprngliche Nachricht- Von: Randy Layman [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. Februar 2001 16:28 An: [EMAIL PROTECTED] Betreff: RE: Hi Ho - Problem with ServletOutputStream in Tomcat What kind of translation is happening? Are you getting a few extra bytes here and there, are all (or some) shifting by a few bits? Just guess - I don't see where you get your inpustream, make sure that you aren't using a stream that expects to work with characters and is doning some form of character translation. (Any class that has a readLine or readString method is suspect to fiddling with the bytes). Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 8:39 AM To: [EMAIL PROTECTED] Subject: AW: Hi Ho - Problem with ServletOutputStream in Tomcat thx for your info i used write but my next problem is that the binary content gets somehow translated and isnt the same as before - for example gif images arent displayed correctly --- pdf are displayed wrong -- and so on ... well i dont have a clue why. greetings Wolfgang -Ursprngliche Nachricht- Von: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. Februar 2001 14:32 An: '[EMAIL PROTECTED]' Betreff: RE: Hi Ho - Problem with ServletOutputStream in Tomcat This is true, I wrote a multipart/form-data parser and the only character set which preserved binary data was ISO-8859-1. Conversions between bytes and characters only work with this encType, your input and output should both use this if you use characters to store binary data. Output streams are supposed to output bytes, the print in the ServletOutputStream method converts a char to a byte array, you'd be better off using the write(byte[] b) method of the base OutputStream class. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 12:45 PM To: [EMAIL PROTECTED] Subject: Hi Ho - Problem with ServletOutputStream in Tomcat I ve created an Servlet that routes Requests and Responses to and from another Server. When i try to get a Image through this Servlet i get an Error 500. I coded the app as described in the j2ee docu for sending binary data. maybee a little code snipplet and the error trace helps to understand http://127.0.0.1:8080/maria/portal/zmr/javalogo52x88.gif this is the url -- http://127.0.0.1:8080 - is my Tomcat instance /maria/portal - is my proxy servlet /zmr/javalogo52x88.gif is the image i want to display in my browser - but /zmr is another webapplication on another tomcat server heres the code for the binary data receiving and sending to the client // Setting the Headers for the Client same as the Servlet received them from the other server while ((strHeaderKey = HttpUrlCon.getHeaderFieldKey(iCounter)) != null) { strHeaderValue = HttpUrlCon.getHeaderField(iCounter); LogIt("ResponseHeader - Value: " + strHeaderKey + " - " + strHeaderValue); response.setHeader(strHeaderKey,strHeaderValue); iCounter +=1; } // figuring out which type of data the servlet is getting if (HttpUrlCon.getContentType().equals("text/html")) { // Text or HTML - thats where i use the PrintWriter PrintWriter out = response.getWriter(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } else { try { // Everything else assuming its binary data so i use ServletOutputStream ServletOutputStream out = ((ServletResponse)response).getOutputStream(); int iByte; while ((iByte = brInput.read()) != -1) { out.print((char) iByte); } } catch (IOException e) { this.log("IOException !!",e); } } heres the error trace i get when i try to process it - 2001-02-14 01:26:43 -
tomcat on FreeBSD4.2
Hi, I'm having troubles to understand how really sessions are working. I'm using a servlet to handle every client requests and I'm using jsp session to display various objects between frames, such as: HttpSession session = req.getSession(false); Toto toto = session.getAttribute("toto"); if (toto.getName() == "mike") toto.setInfotoDisplay("Hi mike, waza?"); else if (toto.getName() == "alain") toto.setInfotoDisplay("Tcho alain, ca boom?"); ... session.setAttribute("toto", toto); My concern is that I really thought that the object I get with "getAttribute" on sessions were attached to the according user. But apparently not, it looks like my object Toto is shared amongst my clients and thus everything is f up ;-( Any idea how I could stick a session per user? thanx, --mike -- --- To unsubscribe, e-mail: tomcat-user- [EMAIL PROTECTED] For additional commands, email: tomcat-user- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Where is mod_jk.so for WIN32?
GOT IT, THANKS ALL At 15:20 05/02/01 +, you wrote: In the standard downloads directory, ie: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i3 86/mod_jk.dll Hope this helps, Steve On Mon, 5 Feb 2001, Michael Wentzel wrote: SUB:Where is mod_jk.so for WIN32?(required for apache-tomcat connectin in win 98) URL address will be most helpful. There is no mod_jk.so for win32. A .so is a static library in linux. Should be a dll you're looking for. --- 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] -- Steve Smale [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]
tomcat on FreeBSD4.2
Is there really nobody out there who know how to install jdk1.3 and tomcat 3.2 or 4.0beta1 no FreeBSD 4.2?! I have sent at least 5-6 messages to this group and have had no help. I know nobody HAS to help, but ignoring people is just plain rude :) Mike (aka desperate tomcatter) D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
running servlets
I copied some sample servlets from the examples context into another context I made to see if they would run. But they won't run. I have placed the servlets inside the WEB-INF/classes directory just like in the examples context and also made a web.xml file under WEB-INF with the following lines: ?xml version="1.0" encoding="ISO-8859-1"? web-app servlet servlet-name SessionExample /servlet-name servlet-class SessionExample /servlet-class /servlet servlet-mapping servlet-name SessionExample /servlet-name url-pattern /SessionExample /url-pattern /servlet-mapping /web-app I'm trying to access the servlet with: http://hostname/context/servlet/SessionExample but I keep on getting Error: 404 Location: /context/servlet/SessionExample How do I make the servlet work? I am using Tomcat 3.1 with Apache handling static pages. Thanks. Get your small business started at Lycos Small Business at http://www.lycos.com/business/mail.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tomcat on FreeBSD4.2
On Fri, Feb 16, 2001 at 11:23:02AM +, [EMAIL PROTECTED] wrote: Is there really nobody out there who know how to install jdk1.3 and tomcat 3.2 or 4.0beta1 no FreeBSD 4.2?! I have sent at least 5-6 messages to this group and have had no help. I know nobody HAS to help, but ignoring people is just plain rude :) Na na na :-) I'm running tomcat 3.1 (?) and jdk1.2 under FreeBSD 4.2. What are your questions? Mike (aka desperate tomcatter) D -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
test
test mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: The Ultimate Tomcat as NT Service How-To
Hi Christian! Christian Rauh wrote: To the Tomcat active developers and everyone else, Well, I dont have "The Ultimate Tomcat as NT Service How-To" either. But I think someone must write one soon because this list is being flooded with the same questions over and over. You're right. It seems to me that there is a big documentation issue here. All this people, including me, cannot be all stupid. Many people are trying to make the Windows+Apache+Tomcat install and are having great trouble with this. This is happening because of one of two things: - the documentation is not good enough - the process is too complex Both points seem true enough. In either case there must be a solution: create the docs or simplify the process. It seems to me that Tomcat 4 adressess some of these issues but I am not sure. If I had the knowledge I would definetely write the docs, but I dont. You have surely read the answers to the most common questions. You can try them out, compile the right ones into a document and send it to the list. Or you can complain about it and do nothing. Most of us choose the third option, but anyone -- mark you, anyone -- can do the job. In fact, there are several kind guys who have come up with similar things. Now you can say, why don't *you* write the FAQ document. This is a question of priorities. Mine are quite far from that, I think I can be more useful reviewing code and testing the platform, and I've already volunteered for that. As a general rule, developers hate writing user documentation, and since this is volunteer work, they aren't compelled to do it in their spare time. It's probably up to users (if this is going to work as a community) to document the system from the user's point of view. In this particular system, users are also developers, and I think that is the reason of the problems you perceived. So, as Jon Stevens *might* say, "stop whining and get to work" :) You can get involved in the Tomcat community as soon (and as deeply) as you want. Cheers, Alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tomcat on FreeBSD4.2
Aaah! But not jdk1.3 and not Tomcat 3.2.1, which are the ones I'm interested in... :( Thanks anyway! Mike On Fri, Feb 16, 2001 at 11:23:02AM +, [EMAIL PROTECTED] wrote: Is there really nobody out there who know how to install jdk1.3 and tomcat 3.2 or 4.0beta1 no FreeBSD 4.2?! I have sent at least 5-6 messages to this group and have had no help. I know nobody HAS to help, but ignoring people is just plain rude :) Na na na :-) I'm running tomcat 3.1 (?) and jdk1.2 under FreeBSD 4.2. What are your questions? Mike (aka desperate tomcatter) D -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED] aachen.de -- --- To unsubscribe, e-mail: tomcat-user- [EMAIL PROTECTED] For additional commands, email: tomcat-user- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat3.2.1 with IIS5
Steve Wong wrote: I have the green arrow in the ISAPI filter in Internet Manager. I can browse http://localhost/examples/jsp/index.html But when I browse http://localhost/examples/servlet/HelloWorldExample It shows: The Page cannot be displayed. There is no error in the isapi.log And there's a warning in Window's event log saying the specified metadata not found. Does anyone know why? I don't know why, but you can get rid of that "friendly" browser message and see what the servlet is actually sending by changing your browser settings. Tools-Internet Options - advanced make sure the "Show Friendly HTTP Error Messages" is not checked. -- 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat
Julie Ruiz wrote: Hi, Where can I find a configuration manual of Tomcat??? A manual that explain all the directives that we can configure in the server.xml and in the web.xml. Julie Ruiz. Configuring web.xml is covered in detail in the servlets API documentation - download it in PDF format from java.sun.com -- 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How to disable sessions timeout?
Does removing the appropriate lines in server.xml would make my sessions lifetime? --mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Win2k and IIS 5 - 404 on all new web apps
Have you modified the uriworkermap.properties file? If thats not it, look at the isapi.log and the tomcat console to see how far the request gets. If Tomcat sees it then it should be fairly easy to determine why Tomcat is returning 404. If isapi.log sees it and Tomcat doesn't then check the uriworkermap to make sure the mappings are correct. (I believe that you must restart IIS to have the file reloaded). Randy -Original Message- From: Tim Trentham [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 7:16 PM To: '[EMAIL PROTECTED]' Subject: Win2k and IIS 5 - 404 on all new web apps I'm having a problem that I see mentioned in some of the mailing list archives, but I never saw a solution posted. I'm running Tomcat 3.2 with Windows 2000 Advanced Server and IIS 5. I followed the instructions for installing the isapi_redirect.dll and I'm getting the green arrow in the filters dialog. I'm also able to access the examples at http://localhost/examples/index.html with no problem. However, as soon as I try to access my own application at http://localhost/myapp, I get a 404 error. I am able to access my pages at http://localhost:8080/myapp, so Tomcat can see it fine. What am I missing? Thanks. Tim Tim Trentham Systems Engineer @hand Corporation v: 512.439.2360 f: 512.231.9994 [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: How to disable sessions timeout?
hi, No, the default session timeout is 30 min. regards Hristo -Original Message- From: mike niemaz [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Date: Friday, February 16, 2001 2:29 PM Subject: How to disable sessions timeout? Does removing the appropriate lines in server.xml would make my sessions lifetime? --mike - 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: i: Issue with TOMCAT 3.2.1 on IIS5.0
Hi All, I installed ISAPI_redirect.dll as describe in the document "How to set up IIS to cooperate with TOMCAT" but I encountered some difficulties. I also troubleshoot as describe in document and my conclusion is that I've got the following error : If the number following GET "/..." is 200 or 403. I'm looking forward for your help. Thanks in advance. Kind Regards, Rob Robert Pattacini Internet Technology Consultant Compaq Global Services @:[EMAIL PROTECTED] Tl: +32-2-729.7538 Address : Compaq Rue de l'Aronef, 1 - Luchtschipstraat, 1 B-1140 Bruxelles - Brussel Belgium - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Missing Resource
Sorry to do this to the list, I've searched the archives and found many posts of this problem, but can't find the answer anywhere. I am trying to run tomcat 3.2.1 on Linux Redhat 6.2 using JDK1.3 I get the error MissingResourceException Can't find Bundle for base name org.apache.tomcat.resources.LocalStrings, locale en_US. My tomcat_home and java_home seem correctly set up. Has this one been resolved by anyone yet? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Xalan and Tomcat - installation and performance issues
I hope no-one minds me cross-posting this but it covers all areas. I have had success using Xalan2 in a servlet on Tomcat3.2 and also found some major performance problems. I thought it would be useful for people to be aware of these problems and I would value any comments/suggestions. First, I hit the well-known problem of clashing XML parsers. I solved this by removing jaxp.jar and parser.jar from the tomcat\lib directory and inserted xerces,jar in their place. This does not work on Tomcat3.1 since it directly uses xml.jar - you have to add xerces to the classpath of the server startup before the other jars. I was then able to create a simple servlet using Xalan2 to perform a transformation (using Transformer). I'm using JDK1.3, NT4 running on 600MHz P3 with 256Mb RAM. The performance was appalling so I did a number of tests with the following code: TransformerFactory tFactory = TransformerFactory.newInstance(); // step1 StreamSource style = new StreamSource(xsl); // step2 StreamSource source = new StreamSource(xml); StreamResult res = new StreamResult(out); Transformer transformer = tFactory.newTransformer(style); // step3 transformer.transform(source, res); // step4 Command line usage: Step1 - 280ms Step2 - 20ms Step3 - 3946ms Step4 - 531ms Servlet in Tomcat 3.2.1 Step1 - 2954ms Step2 - 421ms Step3 - 46266ms Step4 - 8442ms As you can see, the performance degraded by about 10 times. I got around this by going against everything I believed about where to place libs in tomcat and loaded all jars in the server startup script. The problem goes away. I believe this is a problem with class loading on Tomcat. Pete Edwards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: RequestDispatcher.forward() in Tomcat 3.2.1
You are right. Control does return to the calling servlet. It just couldn't write to the response. It would be nice if an exception was thrown. After control returns to the calling servlet, I try forwarding to a second servlet and that doesn't seem to work. The first servlet that was forwarded to did not change the response. Is multiple forward within a servlet not supported/allowed? Bill "Craig R. McClanahan" wrote: William Au wrote: Is there any way in Tomcat 3.2.1 for the control to return to a servlet after its call to RequestDispatcher.forward() is completed? Control *does* return -- RequestDispatcher.forward() is a normal Java method call. However, the servlet spec prohibits you from modifying the response at this point. If Weblogic lets you do this (for instance, by allowing you to add additional text to the response created by the forwarded-to servlet), then it is not obeying the spec. That is the behavior of WebLogic 5.1.0. I want my code to work on the same way running under both. I am aware of the RequestDispatcher.include() method. Bill 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]
ContextManager Configuration
Techies, In the server.xml file, the ContextManager has two parameters, 'debug' and 'workDir'. What is the impact of these parameters? Thanks, -- Art __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
help on jsp
please help. after install and start tomcat, example jsp doesn't work. i got error 500 page. following is pasted error msg when i am using browser, click jsp examples, then excute on the next page Error: 500 Location: /examples/jsp/num/numguess.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSP at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(Compiled Code) at org.apache.jasper.JasperException.(Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled Code) at org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled Code) at org.apache.jasper.servlet.JspServlet.loadJSP(Compiled Code) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(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.IllegalArgumentException: Unknown argument at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at java.lang.RuntimeException.(Compiled Code) at java.lang.IllegalArgumentException.(Compiled Code) at java.text.MessageFormat.format(Compiled Code) at java.text.MessageFormat.format(Compiled Code) at java.text.Format.format(Compiled Code) Junlin Shen E-Mtce PSO [EMAIL PROTECTED] (732) 420-3771 800-946-4646 PIN 6109250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat on HP With IAS
Michel, Make sure your Tomcat shutdown OK. I've had some problems with it leaving stuff running which I had to kill before I could startup again. # ps -eaf|grep java Look for any tomcat related stuff running after you shutdown and kill the processes. Also, I ran into a problem the other day, I copied the Oracle jdbc classes to the $TOMCAT_HOME/lib directory so they would be available to all apps. I received a similar error. If you've installed any classes since the install, you may want to undo the changes to see what the effect is. Thanks, Mike. -- Mike Braden [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 5:45 PM To: [EMAIL PROTECTED] Subject: Tomcat on HP With IAS HI, I did the installation of Tomcat on HP the first few step didn't give me any problem. 1.ant distribution 2.Servlet API the third section gave me some error, I didn't have JSSE , Question 1: Is the JSSE necessary But then i tried it again and it didn't give me any error. Then when i run the ../build/tomcat/bin/startup.sh I get the following message Exception in thread "main" java.lang.NoClassDeffoundError: javax/servlet/jsp/JspFactory at ... at Any Ideal i have the following - HP 11 , sdk 1.2.2 and IAS. Thanks Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Error starting of Tomcat-4.0-b1, when using oracle-jdbc driver.
Hi, we have problems, when we try to start Tomcat-4.0-b1 (Catalina) including the oracle-jdbc driver (classes12.jar in TOMCAT_HOME/lib). We get the following error message: Using CLASSPATH: ..\bin\bootstrap.jar;c:\jdk1.3\lib\tools.jar Exception in thread "main" java.lang.IllegalArgumentException: addRepositoryInternal: java.lang.NullPointerException at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar dClassLoader.java:1073) at org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.ja va:166) at org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:122) ( We tested several oracle drivers) The same driver works correctly with tomcat 3.2.1. Can anybody help us ? Best regards and thanks in advance. Dieter Johannsmeier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Error starting of Tomcat-4.0-b1, when using oracle-jdbc driver.
Dieter, I've had the same problem. I wasn't able to fix it, but was able to work around the problem. I added the Oracle classes to the catalina.sh script in the classpath. Add them to the end of the CP= line. # - Set Up The System Classpath --- CP="$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/servlet.jar:$CATALIN A_HOME/bin/naming.jar" I haven't tried to see if they can be put in the WEB-INF/lib dir yet, that is my next test. Mike. -- Mike Braden [EMAIL PROTECTED] -Original Message- From: Johannsmeier, Dieter [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 9:54 AM To: [EMAIL PROTECTED] Subject: Error starting of Tomcat-4.0-b1, when using oracle-jdbc driver. Hi, we have problems, when we try to start Tomcat-4.0-b1 (Catalina) including the oracle-jdbc driver (classes12.jar in TOMCAT_HOME/lib). We get the following error message: Using CLASSPATH: ..\bin\bootstrap.jar;c:\jdk1.3\lib\tools.jar Exception in thread "main" java.lang.IllegalArgumentException: addRepositoryInternal: java.lang.NullPointerException at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar dClassLoader.java:1073) at org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.ja va:166) at org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:122) ( We tested several oracle drivers) The same driver works correctly with tomcat 3.2.1. Can anybody help us ? Best regards and thanks in advance. Dieter Johannsmeier - 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: Tomcat on HP With IAS
Thanks, We were thinking of re-installing it all. Because we didn't use the default directory that they propose : $JAKARTA_HOME/jakarta-tomcat $JAKARTA_HOME/jakarta-servletapi we use $JAKARTA_HOME/jakarta-servletapi-3.2-src $JAKARTA_HOME/jakarta-tomcat-3.2.1-src I did change the code on the build to reflect the change. If we re-start i will tar again and rename the directory. would that be a good approach. Thanks for the previous reply. Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == -- Original Text -- From: "Mike Braden" [EMAIL PROTECTED], on 2/16/01 9:48 AM: Michel, Make sure your Tomcat shutdown OK. I've had some problems with it leaving stuff running which I had to kill before I could startup again. # ps -eaf|grep java Look for any tomcat related stuff running after you shutdown and kill the processes. Also, I ran into a problem the other day, I copied the Oracle jdbc classes to the $TOMCAT_HOME/lib directory so they would be available to all apps. I received a similar error. If you've installed any classes since the install, you may want to undo the changes to see what the effect is. Thanks, Mike. -- Mike Braden [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 5:45 PM To: [EMAIL PROTECTED] Subject: Tomcat on HP With IAS HI, I did the installation of Tomcat on HP the first few step didn't give me any problem. 1.ant distribution 2.Servlet API the third section gave me some error, I didn't have JSSE , Question 1: Is the JSSE necessary But then i tried it again and it didn't give me any error. Then when i run the ../build/tomcat/bin/startup.sh I get the following message Exception in thread "main" java.lang.NoClassDeffoundError: javax/servlet/jsp/JspFactory at ... at Any Ideal i have the following - HP 11 , sdk 1.2.2 and IAS. Thanks Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == - 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: RequestDispatcher.forward() in Tomcat 3.2.1
What Craig meant (I believe) by "prohibits you from modifying the response" is that the response has been committed and no more data can be sent. The html/other-data you are sending to the client is part of the response. When the forward returns, you are prohibited by the spec, from adding any more information to the response output stream. If you need to do as you desire, you must use some kind of include based scheme instead of forward. Regards, Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 9:38 AM To: [EMAIL PROTECTED] Subject: Re: RequestDispatcher.forward() in Tomcat 3.2.1 You are right. Control does return to the calling servlet. It just couldn't write to the response. It would be nice if an exception was thrown. After control returns to the calling servlet, I try forwarding to a second servlet and that doesn't seem to work. The first servlet that was forwarded to did not change the response. Is multiple forward within a servlet not supported/allowed? Bill "Craig R. McClanahan" wrote: William Au wrote: Is there any way in Tomcat 3.2.1 for the control to return to a servlet after its call to RequestDispatcher.forward() is completed? Control *does* return -- RequestDispatcher.forward() is a normal Java method call. However, the servlet spec prohibits you from modifying the response at this point. If Weblogic lets you do this (for instance, by allowing you to add additional text to the response created by the forwarded-to servlet), then it is not obeying the spec. That is the behavior of WebLogic 5.1.0. I want my code to work on the same way running under both. I am aware of the RequestDispatcher.include() method. Bill 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Help me!
Title: Help me! I want to start my directory index xxx.jsp and she include a satic file name xxx.html. I have the following. org.apache.jasper.compiler.CompileException: /export/home/apache/tomcat/webapps/prt/accueil.jsp(12,5) Bad file argument to include 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.JasperException.(Compiled Code) at org.apache.jasper.compiler.CompileException.(Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.handleDirective(Compiled Code) at org.apache.jasper.compiler.DelegatingListener.handleDirective(Compiled Code) at org.apache.jasper.compiler.Parser$Directive.accept(Compiled Code) at org.apache.jasper.compiler.Parser.parse(Compiled Code) at org.apache.jasper.compiler.Parser.parse(Compiled Code) at org.apache.jasper.compiler.Parser.parse(Compiled Code) at org.apache.jasper.compiler.Compiler.compile(Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled Code) at org.apache.jasper.servlet.JasperLoader12.loadJSP(Compiled Code) at org.apache.jasper.servlet.JspServlet.loadJSP(Compiled Code) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(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.connector.Ajp12ConnectionHandler.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(Thread.java:485). I want what i can do. Thanks !
RE: Help me!
accueil.jsp(12,5) Bad file argument to include This means that the file you are trying to include can't be found. The offending @include is on line 12, column 5 (or is it line 5, column 12 - I can never remember) of the file accueil.jsp. Randy -Original Message- From: Lallier, Sylvain Olivier [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 10:12 AM To: '[EMAIL PROTECTED]' Subject: Help me! I want to start my directory index xxx.jsp and she include a satic file name xxx.html. I have the following. org.apache.jasper.compiler.CompileException: /export/home/apache/tomcat/webapps/prt/accueil.jsp(12,5) Bad file argument to include 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.JasperException.(Compiled Code) at org.apache.jasper.compiler.CompileException.(Compiled Code) at org.apache.jasper.compiler.JspParseEventListener.handleDirective(Compiled Code) at org.apache.jasper.compiler.DelegatingListener.handleDirective(Compiled Code) at org.apache.jasper.compiler.Parser$Directive.accept(Compiled Code) at org.apache.jasper.compiler.Parser.parse(Compiled Code) at org.apache.jasper.compiler.Parser.parse(Compiled Code) at org.apache.jasper.compiler.Parser.parse(Compiled Code) at org.apache.jasper.compiler.Compiler.compile(Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled Code) at org.apache.jasper.servlet.JasperLoader12.loadJSP(Compiled Code) at org.apache.jasper.servlet.JspServlet.loadJSP(Compiled Code) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compi led 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.connector.Ajp12ConnectionHandler.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(Thread.java:485). I want what i can do. Thanks ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Win2k and IIS 5 - 404 on all new web apps SOLVED + New Question
That was it. I should've read the IIS HowTo more carefully. Thanks One more question that you might know the answer to. First, I tried /myapp/*.jsp=ajp12 /myapp/servlet/*=ajp12 That served the jsp page in myapp just fine, but it was unable to find a jpg that a jsp refers to in the same directory. I got a broken image. Switching to /myapp/*=ajp12 It is able to find and display the image. The same problem occurs with the examples context. If you specify that Tomcat only get the jsps and servlets, you get a 404 on the index.html. I'd prefer IIS to serve the static content. Do I have to add a virtual directory in IIS for it to see the static content? Or is it something else? Thanks. Tim -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 6:20 AM To: [EMAIL PROTECTED] Subject: RE: Win2k and IIS 5 - 404 on all new web apps Have you modified the uriworkermap.properties file? If thats not it, look at the isapi.log and the tomcat console to see how far the request gets. If Tomcat sees it then it should be fairly easy to determine why Tomcat is returning 404. If isapi.log sees it and Tomcat doesn't then check the uriworkermap to make sure the mappings are correct. (I believe that you must restart IIS to have the file reloaded). Randy -Original Message- From: Tim Trentham [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 7:16 PM To: '[EMAIL PROTECTED]' Subject: Win2k and IIS 5 - 404 on all new web apps I'm having a problem that I see mentioned in some of the mailing list archives, but I never saw a solution posted. I'm running Tomcat 3.2 with Windows 2000 Advanced Server and IIS 5. I followed the instructions for installing the isapi_redirect.dll and I'm getting the green arrow in the filters dialog. I'm also able to access the examples at http://localhost/examples/index.html with no problem. However, as soon as I try to access my own application at http://localhost/myapp, I get a 404 error. I am able to access my pages at http://localhost:8080/myapp, so Tomcat can see it fine. What am I missing? Thanks. Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: (Off topic) How to know which hyper-link has been clicked?
May you could use a servlet to catch the URL in the request? -Original Message- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 9:10 PM To: '[EMAIL PROTECTED]' Subject: RE: (Off topic) How to know which hyper-link has been clicked? why dont u use QueryString. u can pass parameter in ur link. -Original Message- From: Paul Yoon [SMTP:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 6:32 AM To: [EMAIL PROTECTED] Subject: (Off topic) How to know which hyper-link has been clicked? Hello, I am sorry to ask off topic but is there any way to know which hyper-link was clicked? There is a page which can generate dynamically hyper-link and linked page should know which one was cliked. I am using jsp and can I use parameter? Any idea will be appreciated. Thank you. Paul Yoon - 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 Isapi Redirector with IIS
The problem here had nothing to do with IIS or Tomcat. It had to do with read permissions on the folder of the DLL. This folder is web shared. The security permissions for the folder should be 'read access' to everyone or to guests. When you configure IIS to use a filter, it makes the folder web shared, but does not change the read permission. In retrospect, it should have been clear from the 401 status code. It seems to me like there might be several things wrong. First, check your workers.properties file. It seems like you might not have the ajp12 worker defined or maybe defined incorrectly. Next, check the registry entry for the worker.properties file. Second, look at your filter. The executable for the filter needs to be isapi_redirect.dll (the message looks like it might not point to the dll, just the directory). If that doesn't do it, I would suggest trying a new DLL, after the Windows NT fix-all - reboot. Randy -Original Message- From: Eli Segev [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:30 AM To: [EMAIL PROTECTED] Subject: Configuring Isapi Redirector with IIS I have followed the instructions in "Tomcat IIS HowTo" by Gal Shachor [EMAIL PROTECTED] to set up IIS to redirect requests to Tomcat on an NT machine. I don't want to repeat again all the steps that appears in the document in this email. Whenever I try to test the redirection of requests from IIS to Tomcat, I get an error. It appears in the "Event Viewer" as: "The HTTP Filter DLL E:\Programs\jakarta-tomcat\bin\iis\i386 failed to load. The data is the error.". The isapi.log has [jk_isapi_plugin.c (385)]: In HttpFilterProc test redirection of /examples/jsp/index.html [jk_uri_worker_map.c (286)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (338)]: jk_uri_worker_map_t::uri_worker_map_open, done with ajp12 [jk_isapi_plugin.c (395)]: In HttpFilterProc /examples/jsp/index.html should redirect to ajp12 [jk_uri_worker_map.c (127)]: Into jk_uri_worker_map_t::uri_worker_map_free [jk_uri_worker_map.c (273)]: Into jk_uri_worker_map_t::uri_worker_map_close [jk_uri_worker_map.c (278)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (134)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_worker.c (125)]: Into wc_close [jk_worker.c (127)]: wc_close, done C:\WINNT\system32\LogFiles\W3SVC1\ex010214.log has: 2001-02-14 15:08:59 132.253.97.108 - W3SVC1 BISUT GET /jakarta/isapi_redirect.dll - 401 80 HTTP/1.0 Mozilla/4.7+[en]+(WinNT;+I) - The operation crashes IIS and I get the following error (see attachment). Does anyone know what is wrong here? The error is 401 which is not covered in the troubleshooting section for WinNT. The IIS version is 4.0 and Tomcat is 3.1. -- Eli Segev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Thanks, bye, and check out www.locomotive.com
you should try with winblowz platform. Winblowz rules! -Original Message- From: J Austin [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 9:18 AM To: [EMAIL PROTECTED] Subject: Thanks, bye, and check out www.locomotive.com I have found this to be a useful list although, the Signal-to-noise ratio is a bit too low for my liking. In summary: I have been unable to integrate Tomcat 3.2.1 with Apache 1.3.17 on my ancient (but trustey) Solaris 2.5.1 system. I will probably try again with a Linux platform in the near future. For now, I am running Resin from http://www.caucho.com and may explore http://www.locomotive.com/ later on. Thanks again - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] NOTICE: This communication may contain confidential or other privileged information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this email in error, and delete the copy you received. Any communication that does not relate to official Columbia business is that of the sender and is neither given nor endorsed by Columbia. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Thanks, bye, and check out www.locomotive.com
For now, I am running Resin from http://www.caucho.com and may explore http://www.locomotive.com/ later on. Have a nice trip and don't forget than OpenSource projects need help. Prepackaged products exist at higher cost and The noise-ratio is normal in open project. There is no noise when there is no alternative or discussion. Sorry that you didn't understand what is OpenSource... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
What is open software... Sorry, could not resist...
On Fri, 16 Feb 2001, GOMEZ Henri wrote: Sorry that you didn't understand what is OpenSource... Here it is... Malice {:-)}. This is a official quote by Microsoft Corp.'s Windows operating-system chief, Jim Allchin. "Open source is an intellectual-property destroyer. I can't imagine something that could be worse than this for the software business and the intellectual-property business." "I'm an American, I believe in the American Way. I worry if the government encourages open source, and I don't think we've done enough education of policy makers to understand the threat." http://news.cnet.com/investor/news/newsitem/0-9900-1028-4825719-RHAT.html?tag=ltnc Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
SOLVED: runaway threads eating cpu cycles on Solaris 7
found this snippet as a comment in the tomcat cvs repository. +6.11 Misconfiguration Can Cause CPU-Bound Loop++If you misconfigure Tomcat 3.2 in a way that there is no valid context to+handle a request (such as removing the root context and then attempting a+request that should be handled by that context), Tomcat will enter a CPU-bound+loop instead of responding with a 404 error. I had removed the default contexts since all of our applications are stored in a different directory structure and aliased in our configuration files. Kelly - Original Message - From: Kelly Kleinfelder To: [EMAIL PROTECTED] Sent: Thursday, February 15, 2001 3:43 PM Subject: runaway threads eating cpu cycles on Solaris 7 We are running Tomcat 3.2.1and Solaris 7 on a Sun e250 with 4 400Mhz processors. The problem we're having is that one thread is chewing up the majority of the cpu cycles and sometimes causes tomcat to hang. I have included sample mpstat data and the output from ps -L -p PID: ps -L -p 26361 PID LWP TTY LTIME CMD26361 1 ? 0:03 java26361 22 ? 1:02 java26361 23 ? 40:57 java26361 24 ? 1:43 java26361 26 ? 0:09 java26361 67 ? 0:03 java(24 entries deleted for brevity. All were at 0:00 LTIME) mpstat 30 CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl 0 12 0 12 6 4 17 0 1 0 0 75 0 3 1 96 1 6 0 6 4 1 14 3 0 0 0 52 59 1 1 39 2 0 0 0 64 62 12 2 0 0 0 20 41 1 1 57 3 4 0 14 203 3 27 0 1 0 0 26 0 0 0 100CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl 0 0 0 1 3 2 16 0 1 1 0 51 1 3 1 95 1 0 0 0 5 1 6 4 0 0 0 3 81 0 0 19 2 0 0 2 19 19 17 0 1 0 0 16 0 0 0 100 3 4 0 13 202 2 15 1 1 0 0 41 19 2 0 78CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl 0 4 0 5 5 5 17 0 1 1 0 70 1 2 1 96 1 4 0 0 5 1 11 4 0 0 0 36 84 0 0 15 2 2 0 4 26 26 28 0 1 0 0 81 2 0 0 98 3 0 0 20 204 4 19 1 0 0 0 24 14 0 0 86 Before today, this was happening about every 3 days. Today it happened 5 hours apart. By going through our logs, we have determined that this is not caused by any specific user action. It is also not caused by server load, as it mostly happens with less than 5 users accessing the application. It is also not a gradual thing. Our sar statistics show that our processor idle time is 98% and then 5 minutes later it's down to 83% and in another 5 minutes, it's at 49%. Is there any way that I can tell exactly what is happening in the offending thread? Any other ideas on what's causing this problem? Thanks, Kelly
Re: How to disable sessions timeout?
How to disable sessions timeout? No, the default session timeout is 30 min. really, that doesn't sound right. You have to be able to disable the session timeout. This is taken from the servlet specification, you can set the timeout to -1 in web.xml for your web application or do it programatically. EXTRACT The default timeout period for sessions is defined by the servlet container and can be obtained via the getMaxInactiveInterval method of the HttpSession interface. This timeout can be changed by the Developer using the setMaxInactiveInterval of the HttpSession interface. The timeout periods used by these methods is defined in seconds. If the timeout period for a session is set to -1, the session will never expire. /EXTRACT EXTRACT !ELEMENT session-timeout (#PCDATA) !-- The mime-mapping element defines a mapping between an extension and a mime type. -- /EXTRACT Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net - Original Message - From: "Hristo Katsarski" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 16, 2001 5:39 AM Subject: Re: How to disable sessions timeout? hi, No, the default session timeout is 30 min. regards Hristo -Original Message- From: mike niemaz [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Date: Friday, February 16, 2001 2:29 PM Subject: How to disable sessions timeout? Does removing the appropriate lines in server.xml would make my sessions lifetime? --mike - 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]
JDBC realm
is there any specific advantage in using JDBC realm. Why cant we load the driver (as static into the jvm) directly and operate? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
setting the classpath for a webapp
I'm a little confused about how Tomcat sets the classpath of the different webapps. I thought that if you placed jar files in the webapps/myapp/WEB-INF/lib directory that they were automatically added to the classpath and that the webapps/myapp/WEB-INF/classes directory was also added automatically. What I'm finding is that I have to set the classpath manually for each app in the shell that is used to start Tomcat. Is this correct? Do I need to package them into WAR files before the classpath is dealt with automatically? Help?! Thanks
RE: mod_jk + ssl + apache
I had specified JkMount in Virtual Host directive in httpd.conf file and specified the path in the host directive in server.xml. They are as following: In httpd.conf, VirtualHost host1.myorg.com:443 DocumentRoot j:/webapps/rootexample/secure_html SSLEnable SSLClientAuth none ServerName host1.myorg.com /VirtualHost In server.xml, Host name="host1.myorg.com" Context path="" docBase="j:/webapps/rootexample/secure_html"/ /Host If I set the virtual host name (for SSL) as same as server name, it won't work. When I https://host1.myorg.com https://host1.myorg.com , the log file show that the tomcat still looks for the public_html directory (which is the document root directory for the web server). But I set the virtual host name different from the server name, it works fine. Plus, I notice from the console shows as followings when tomcat starts up: ContextManager: Adding context Ctx( host1.myorg.com: ) I am not sure if I should specify the port in the host directive, in order to tell tomcat to look for different path for SSL. If so, what is the syntax. I cannot find from the user guide. I tried Host name="host1.myorg.com:443" and Host name="host1.myorg.com" port="443'. None of them works (the console shows "Adding contect Ctx(host1.myorg.com:443: ).Please advise. Thanks, Connie -Original Message- From: GOMEZ Henri [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 11:21 AM To: [EMAIL PROTECTED] Subject:RE: mod_jk + ssl + apache Does anyone know how to configure the apache and tomcat so that the tomcat will look for the different path other than the root document when ssl is enabling (e.g. https://host1.myorg/) https://host1.myorg/) ? Could you be more explicit ? I'm using mod_jk as connector with AJP13. How to configure tomcat so that a context path can only be looked for when using SSL only? Specify JkMount on SSL part (ie in mod_ssl in Virtual hostl:443./Virtual - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Anybody doing doPost successfully ?
Hi, I am still not successful in getting data in doPost. anybody is doing it successfully ? Regards, Mandar - Original Message - From: Mandar Joshi To: [EMAIL PROTECTED] Sent: Thursday, February 15, 2001 6:15 PM Subject: No Data available in doPost ? Hi, I am doing the following thing in my doPost() method. __ public void doPost(HttpServletRequestrequest,HttpServletResponseresponse) throws ServletException, IOException { try { InputStream ins = request.getInputStream(); logMsg("Bytes available " + ins.available()); } } I am posting some data to this servlet but I am getting the available bytes to be 0 ?? Any guess why is this happening ? TIA Mandar
RE: Pathing Problems
Hi, I'm a newbie at the opensource thing, I have had the same issues and grievances about the documentation, or lack thereof. I have found the following site an excellent resource for these issues. Please take the time to thank the author if you find this useful. http://www.ccl.net/cca/software/UNIX/apache/index.shtml John Grove -Original Message- From: Brock Barber [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 11:51 AM To: '[EMAIL PROTECTED]' Subject: Pathing Problems Hi I'm having a heck of a time getting tomcat/apache(virtual host)/mod_jk to work properly in a directory structure different than that laid out in the example. I'm relatively certain it's a pathing problem since I'm pretty much guessing at what the values should be for the various paths. I have read all the FAQ's and tomcat documentation but for the most part, it's deals with using jserv and nowhere can I find an explanation of what docBase is supposed to be. I've spent hours looking through the archives as well. If nothing else, the archive shows me I'm not alone in my lack of understanding :p Can anyone explain the relationship between apache DocumentRoot and JkMount, ContextManager home and Context path and docBase? System info: solaris 8, tomcat 3.2.1 (binary), apache 1.3.12, mod_jk My directory structure looks like: /web (contains 15 or so web sites, one for each virtual host) /tomcat2 (this is just the root directory for some website) /java conf logs webapps images index.html jsp servlets WEB-INF work My DocumentRoot = /web/tomcat2 and my ContextManager home = /web/tomcat2/java. My latest try (and I think I've tried every possible combination at least twice). JkMount /java/webapps/*.jsp ajp13 JkMount /java/webapps/servlet/* ajp13 Host name ="192.168.0.240" Context path="" docBase="/web/tomcat2/java/webapps" crossContext="false" debug="0" reloadable="true" /Context /Host If anyone can clarify things for me I'd be eternally grateful. brock ** Brock Barber Applications Group MBD (McNair Business Development Inc.) Direct: 789-0019 Fax: 789-7630 E-Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.mcnairbd.com A head for business. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Compile error of Servelet
Hi, We have tried theexample of Tomcat: D:\foo\tomcat\webapps\examples\WEB-INF\classes\cal\TableBean.java After the compling, the error message shows following: D:\foo\tomcat\webapps\examples\WEB-INF\classes\cal\TableBean.java:62: Package javax.servlet.http not found in import.import javax.servlet.http.*; ^D:\foo\tomcat\webapps\examples\WEB-INF\classes\cal\TableBean.java:63: Package javax.servlet not found in import.import javax.servlet.*; ^ Does something wrong with Tomcat setup? How to solve it? Thanks!! Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Aliases/Rewrites (was: ajp12 vs ajp13 mod_jk.conf-auto
--- Jan Labanowski [EMAIL PROTECTED] wrote: It is my (and others) experience that mod_jk has to be loaded BEFORE mod_rewrite for it to act responsibly. In your case the mod_rewrite is linked statically, i.e., loaded before mod_jk. I would suggest to make both mod_jk and mod_rewrite DSO, and load/add module mod_jk before mod_rewrite. Remember to comment out the # LoadModule jk_module libexec/mod_jk.so in mod_jk.conf Ya know, I'm almost 100% positive I tried this before to no affect, but being in a mad dash to fix things, I may spoiled that test by simultaneously changing something else. At any rate, with mod_jk loaded before mod_rewrite (in my case, I am able to simply perform the include of mod_jk.conf-auto before I do any rewrites) it seems to work. I also had a stupid syntax error in my rewrite expression so maybe that was it. Amazin' how much time one can spend fixin' somethin' that ain't broke... Mel __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Anybody doing doPost successfully ?
I have successfully received post data in a JSP both using the getParameter and using the com.oreilly.servlet utility classes. How are you sending the post data? Are you using a web browser and form, or are you trying to post it yourself using an applet or something. The process does work, so it must be something unique to the way you are sending the info. Regards, Paul -Original Message-From: Mandar Joshi [mailto:[EMAIL PROTECTED]]Sent: Friday, February 16, 2001 1:39 PMTo: [EMAIL PROTECTED]Subject: Anybody doing doPost successfully ? Hi, I am still not successful in getting data in doPost. anybody is doing it successfully ? Regards, Mandar - Original Message - From: Mandar Joshi To: [EMAIL PROTECTED] Sent: Thursday, February 15, 2001 6:15 PM Subject: No Data available in doPost ? Hi, I am doing the following thing in my doPost() method. __ public void doPost(HttpServletRequestrequest,HttpServletResponseresponse) throws ServletException, IOException { try { InputStream ins = request.getInputStream(); logMsg("Bytes available " + ins.available()); } } I am posting some data to this servlet but I am getting the available bytes to be 0 ?? Any guess why is this happening ? TIA Mandar
In-process Tomcat with IIS 4.0
I have set up tomcat with IIS 4.0 in out of process operation successfully. I followed the steps in the document "In-Process How to" to set up in-process. But it doesn't work. The tomcat does start up. But when I browse jsp page, I get the browser error. When I look into the log, the log still located the AJP12 worker. Is it supposed to be like this?Also, I'm not sure if the document is correct. In the step to set worker.list property. It is set to "jni:worker.jni.list=jni". But anyway, I tried to follow it. It did not work. I took out "jni:" and it still did not work. I used jni_workers.properties with adding the line ps=\. It didn't work either. Can someone help? Thanks, Connie Connie Chan Senior Associate TYC Associates, Inc. 3206 Tower Oaks Blvd, Suite 100 Rockville, MD 20852 301-231-9898 ext. 151 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: JDBC realm
uthay wrote: is there any specific advantage in using JDBC realm. Why cant we load the driver (as static into the jvm) directly and operate? You are certainly welcome to use a JDBC driver directly in your own applications, in any manner that you wish. The reason that JDBCRealm exists is to configure *Tomcat* (rather than your application) on how to look up users and their associated passwords and roles, so that you can use container-managed security for your web applications. These concepts are defined in the Servlet Specification, version 2.2, which you can download at: http://java.sun.com/products/servlet/download.html as well as being discussed in numerous books and magazine articles. Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Anybody doing doPost successfully ?
Hi , This is for a Servlet- Well I tried it in both ways - Posting datausing a java client like this URL url = new URL(http://mandar:8080/commerceroute/servletname); URLConnection conn = url.openConnection(); if(conn instanceof HttpURLConnection) { HttpURLConnection httpConn = (HttpURLConnection) conn; httpConn.setRequestMethod("POST"); httpConn.setDoOutput(true); out.write(arr); System.out.println("bytes written : " + arr.length); out.flush(); out.close(); out = null; httpConn.getContent(); InputStream ins = httpConn.getInputStream(); InputStreamReader rd = new InputStreamReader(ins); // read from rd } Using a html page like this HTMLHEADTITLERosettaNet Request POST/TITLE/HEADBODYFORM METHOD=POST ACTION="http://mandar:8080/commerceroute/servletname" INPUT TYPE=HIDDEN NAME=ERNOVALUE="Test_Data"INPUT TYPE=SUBMIT NAME="Submit"/FORM/BODY/HTML In both cases the servlet seems to be stuck while reading from the request.InputStream Mandar - Original Message - From: CPC Livelink Admin To: [EMAIL PROTECTED] Sent: Friday, February 16, 2001 11:23 AM Subject: RE: Anybody doing doPost successfully ? I have successfully received post data in a JSP both using the getParameter and using the com.oreilly.servlet utility classes. How are you sending the post data? Are you using a web browser and form, or are you trying to post it yourself using an applet or something. The process does work, so it must be something unique to the way you are sending the info. Regards, Paul -Original Message-From: Mandar Joshi [mailto:[EMAIL PROTECTED]]Sent: Friday, February 16, 2001 1:39 PMTo: [EMAIL PROTECTED]Subject: Anybody doing doPost successfully ? Hi, I am still not successful in getting data in doPost. anybody is doing it successfully ? Regards, Mandar - Original Message - From: Mandar Joshi To: [EMAIL PROTECTED] Sent: Thursday, February 15, 2001 6:15 PM Subject: No Data available in doPost ? Hi, I am doing the following thing in my doPost() method. __ public void doPost(HttpServletRequestrequest,HttpServletResponseresponse) throws ServletException, IOException { try { InputStream ins = request.getInputStream(); logMsg("Bytes available " + ins.available()); } } I am posting some data to this servlet but I am getting the available bytes to be 0 ?? Any guess why is this happening ? TIA Mandar
changing from mod_jserv - mod_jk: Invalid command 'LoadModule'
I've tried to use mod_jk.so on my RedHat 6.2 linux with apache .14 but I get this error: [root@atechapp bin]# ./apachectl start Syntax error on line 8 of /packages/tomcat/conf/mod_jk.conf-auto: Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration ./apachectl start: httpd could not be started Here is what I did...anyone see something missing?? 1.) Downloaded mod_jk.conf from jakarta site under Tomcat source(I know I should build my own - but that is another story). 2.) I've included the mod_jk.conf-auto file at the end of httpd.conf - here is where I load the module in the conf-auto file: ### # The following line instructs Apache to load the jk module # LoadModule jk_module libexec/mod_jk.so JkWorkersFile /packages/tomcat/conf/workers.properties JkLogFile /packages/tomcat/logs/mod_jk.log ### 3.) I've moved the mod_jk.so to my httpd dir /etc/httpd/libexec. question: The loadmodule command doesn't start from root...how does it know where libexec is... is this related to APACHE_HOME variable??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: What is open software... Sorry, could not resist...
If I had this, I'd feel the same way. ;-) I guess it takes proprietary products and knowledge get you there. Of course, as complex as products are today, that's what it'd cost to compete as well. The real world is a tough place for sure. Not much room for people at this level. === ALLCHIN, JAMES E Updated 3-Jan-01 Officer, Group Vice President, Platforms Product Group Microsoft Corp Nasdaq:MSFT (historical quotes, profile, other insiders) Reported: 27-Nov-00 Shares: Common 25,327 Value: $1,790,000 as of 27-Nov-00 Value: $1,534,000 as of 23-Jan-01 27-Nov-00 100,000 MSFT Exercised Options at $14.77/Share and Sold at $71.75/Share. Proceeds of $5,698,000. 23-Oct-00 350,000 MSFT Exercised Options at Average of $5.97/Share and Sold at $64.62/Share. Proceeds of $20,528,500. 30-Jun-00 214 MSFT Accrued Through Plan at $68.00/Share. Cost of $14,552. 11-Feb-00 200,000 MSFT Exercised Options at $5.97/Share and Sold at $103.94/Share. Proceeds of $19,594,000. 11-Feb-00 500,000 MSFT Proposed Sale (Form 144) of Restricted Shares. Estimated proceeds of $50,000,000. === From: http://biz.yahoo.com/t/68/1734.html -- Mike Braden [EMAIL PROTECTED] -Original Message- From: Jan Labanowski [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 12:27 PM To: [EMAIL PROTECTED] Cc: Jan Labanowski Subject: What is open software... Sorry, could not resist... On Fri, 16 Feb 2001, GOMEZ Henri wrote: Sorry that you didn't understand what is OpenSource... Here it is... Malice {:-)}. This is a official quote by Microsoft Corp.'s Windows operating-system chief, Jim Allchin. "Open source is an intellectual-property destroyer. I can't imagine something that could be worse than this for the software business and the intellectual-property business." "I'm an American, I believe in the American Way. I worry if the government encourages open source, and I don't think we've done enough education of policy makers to understand the threat." http://news.cnet.com/investor/news/newsitem/0-9900-1028-4825719-RHAT.html?ta g=ltnc Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/ - 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: What is open software... Sorry, could not resist...
And companies such as yours are obviously running scared now that the world has an alternative choice. -Original Message- From: Mike Braden [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 11:51 AM To: '[EMAIL PROTECTED]' Subject: RE: What is open software... Sorry, could not resist... If I had this, I'd feel the same way. ;-) I guess it takes proprietary products and knowledge get you there. Of course, as complex as products are today, that's what it'd cost to compete as well. The real world is a tough place for sure. Not much room for people at this level. === ALLCHIN, JAMES E Updated 3-Jan-01 Officer, Group Vice President, Platforms Product Group Microsoft Corp Nasdaq:MSFT (historical quotes, profile, other insiders) Reported: 27-Nov-00 Shares: Common 25,327 Value: $1,790,000 as of 27-Nov-00 Value: $1,534,000 as of 23-Jan-01 27-Nov-00 100,000 MSFT Exercised Options at $14.77/Share and Sold at $71.75/Share. Proceeds of $5,698,000. 23-Oct-00 350,000 MSFT Exercised Options at Average of $5.97/Share and Sold at $64.62/Share. Proceeds of $20,528,500. 30-Jun-00 214 MSFT Accrued Through Plan at $68.00/Share. Cost of $14,552. 11-Feb-00 200,000 MSFT Exercised Options at $5.97/Share and Sold at $103.94/Share. Proceeds of $19,594,000. 11-Feb-00 500,000 MSFT Proposed Sale (Form 144) of Restricted Shares. Estimated proceeds of $50,000,000. === From: http://biz.yahoo.com/t/68/1734.html -- Mike Braden [EMAIL PROTECTED] -Original Message- From: Jan Labanowski [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 12:27 PM To: [EMAIL PROTECTED] Cc: Jan Labanowski Subject: What is open software... Sorry, could not resist... On Fri, 16 Feb 2001, GOMEZ Henri wrote: Sorry that you didn't understand what is OpenSource... Here it is... Malice {:-)}. This is a official quote by Microsoft Corp.'s Windows operating-system chief, Jim Allchin. "Open source is an intellectual-property destroyer. I can't imagine something that could be worse than this for the software business and the intellectual-property business." "I'm an American, I believe in the American Way. I worry if the government encourages open source, and I don't think we've done enough education of policy makers to understand the threat." http://news.cnet.com/investor/news/newsitem/0-9900-1028-4825719-RHAT.html?ta g=ltnc Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/ - 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]
CLASSPATH
HI, What is the minimum environment variable that should be setup to run TOMCAT 3.2.1 on HP using SDK 1.2.2. CLASSPATH= JAKARTA_HOME= TOMCAT_HOME= What else, is there any other environment setup? Does anybody know this. Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
module not included in the server configuration??
OK to test, I've gone back to mod_jserv and I'm interestingly enough geting the same error message: ** [root@atechapp bin]# ./apachectl start Syntax error on line 1 of /packages/tomcat/conf/tomcat-apache.conf: Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration ./apachectl start: httpd could not be started ** ALL I AM DOING IS MOVING THE MOD_JSERV.SO OR MOD_JK TO THE /ETC/HTTPD/LIBEXEC DIRECTORY. Is there something else I need to do to "include in the server configuration'?? Thanks! -Original Message- From: Chris Richard Adams Sent: Friday, February 16, 2001 5:53 PM To: Tomcat-User (E-mail) Subject: changing from mod_jserv - mod_jk: Invalid command 'LoadModule' I've tried to use mod_jk.so on my RedHat 6.2 linux with apache .14 but I get this error: ** ** [root@atechapp bin]# ./apachectl start Syntax error on line 8 of /packages/tomcat/conf/mod_jk.conf-auto: Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration ./apachectl start: httpd could not be started ** ** Here is what I did...anyone see something missing?? 1.) Downloaded mod_jk.conf from jakarta site under Tomcat source(I know I should build my own - but that is another story). 2.) I've included the mod_jk.conf-auto file at the end of httpd.conf - here is where I load the module in the conf-auto file: ### # The following line instructs Apache to load the jk module # LoadModule jk_module libexec/mod_jk.so JkWorkersFile /packages/tomcat/conf/workers.properties JkLogFile /packages/tomcat/logs/mod_jk.log ### 3.) I've moved the mod_jk.so to my httpd dir /etc/httpd/libexec. question: The loadmodule command doesn't start from root...how does it know where libexec is... is this related to APACHE_HOME variable??? - 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: CLASSPATH
You should also have a JAVA_HOME variable defined...for the JDK you are using... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 5:47 PM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: CLASSPATH HI, What is the minimum environment variable that should be setup to run TOMCAT 3.2.1 on HP using SDK 1.2.2. CLASSPATH= JAKARTA_HOME= TOMCAT_HOME= What else, is there any other environment setup? Does anybody know this. Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == - 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: CLASSPATH
Hi, I already have the JAVA_HOME Setup , i'm getting CLASSPATH ERROR when i'm trying to start it. Is there a list of the CLASSPATH variable that should come with Tomcat and Apache using SDK 1.2.2 Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == -- Original Text -- From: "Chris Richard Adams" [EMAIL PROTECTED], on 2/16/01 3:53 PM: You should also have a JAVA_HOME variable defined...for the JDK you are using... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 5:47 PM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: CLASSPATH HI, What is the minimum environment variable that should be setup to run TOMCAT 3.2.1 on HP using SDK 1.2.2. CLASSPATH= JAKARTA_HOME= TOMCAT_HOME= What else, is there any other environment setup? Does anybody know this. Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == - 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]
libexec directory on apache - how do I reference it.
I seem to have lost reference to my libexec directory in apache - this may be a result of installing a new version of apache - v14 from v12. I've installed apache in the same location as it comes with Redhat 6.2 - in /etc/httpd. - but now when the libexec directory is refernced as apache-tomcat.conf or mod_jk.conf-auto like: LoadModule ... libexec/mod_jk.so or similar with mod_jserv I get the error: Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not inclu ded in the server configuration I can remove all content from the libexec directory and I get the same error so i realize its not even being refernced... What gives??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: CLASSPATH
Hi, I already have the JAVA_HOME Setup , i'm getting CLASSPATH ERROR when i'm trying to start it. Is there a list of the CLASSPATH variable that should come with Tomcat and Apache using SDK 1.2.2 Michel Are you sure? Echo out all these environ vars to console at startup to check and make sure they are set correctly. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com mailto:[EMAIL PROTECTED] - Punisher of those who cannot spell dumb! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: CLASSPATH
If you are using Tomcat all you need to do is set TOMCAT_HOME and JAVA_HOME. The startup and shutdown scripts take care of setting the necessary classpathes. When you say getting a CLASSPATH ERROR, what do you mean - there is a message on the console saying "CLASSPATH ERROR" and no further explanation, or is there more to it? What type of HP are you refering to - a machine running the HP-UX Operating System, or a machine made by HP running some version of Windows? Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 4:02 PM To: [EMAIL PROTECTED] Subject: RE: CLASSPATH Hi, I already have the JAVA_HOME Setup , i'm getting CLASSPATH ERROR when i'm trying to start it. Is there a list of the CLASSPATH variable that should come with Tomcat and Apache using SDK 1.2.2 Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == -- Original Text -- From: "Chris Richard Adams" [EMAIL PROTECTED], on 2/16/01 3:53 PM: You should also have a JAVA_HOME variable defined...for the JDK you are using... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 5:47 PM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: CLASSPATH HI, What is the minimum environment variable that should be setup to run TOMCAT 3.2.1 on HP using SDK 1.2.2. CLASSPATH= JAKARTA_HOME= TOMCAT_HOME= What else, is there any other environment setup? Does anybody know this. Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == - 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: CLASSPATH
Not sure, but it helps me to elimnate classpath problems to put all the classes I want for an app in the tomcat.sh filethis way you can manage what is being covered in the tomcat app itself rather than you login environment. Confirm the classes you need - or just default - appear to be loading during tomcat startup. - check the tomcat.sh file if no classes are shown. chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 6:02 PM To: [EMAIL PROTECTED] Subject: RE: CLASSPATH Hi, I already have the JAVA_HOME Setup , i'm getting CLASSPATH ERROR when i'm trying to start it. Is there a list of the CLASSPATH variable that should come with Tomcat and Apache using SDK 1.2.2 Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == -- Original Text -- From: "Chris Richard Adams" [EMAIL PROTECTED], on 2/16/01 3:53 PM: You should also have a JAVA_HOME variable defined...for the JDK you are using... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 5:47 PM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: CLASSPATH HI, What is the minimum environment variable that should be setup to run TOMCAT 3.2.1 on HP using SDK 1.2.2. CLASSPATH= JAKARTA_HOME= TOMCAT_HOME= What else, is there any other environment setup? Does anybody know this. Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == - 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: CLASSPATH
Hi, I known that the JAVA_HOME is set properly,because it's working properly with mod_jserv(IAS) I would like to check but , what should the value be for CLASSPATH. Is there DOC that specifies the minimum JAR file that should be setup ? Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == -- Original Text -- From: "Michael Wentzel" [EMAIL PROTECTED], on 2/16/01 4:10 PM: Hi, I already have the JAVA_HOME Setup , i'm getting CLASSPATH ERROR when i'm trying to start it. Is there a list of the CLASSPATH variable that should come with Tomcat and Apache using SDK 1.2.2 Michel Are you sure? Echo out all these environ vars to console at startup to check and make sure they are set correctly. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com mailto:[EMAIL PROTECTED] - Punisher of those who cannot spell dumb! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
default context
Hi, Under my /webapps dir I have a few contexts. I want to define 1 as the default one. (So I don't have to define a context in the url), So if no context is defined in the url, I will go to this url ... this is what I putted in my server.xml Context path=" " docBase="webapps/rnb" crossContext="true" debug="0" reloadable="true"/ /ContextManager This works BUT now he won't load my images that are in the directory "images". When I go to http://www.xxx.com/images/image.gif he's gonna launch an exception ... anyone ? greetz, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: default context
Interertingly enough...I just spent a week on this problem...I should at least let you suffer for a day or 2but I'm a nice guy:) The ROOT context is used as the default - just use that and define a context within to define where to put your images. -Original Message- From: Christoph Rooms [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 6:27 PM To: [EMAIL PROTECTED] Subject: default context Hi, Under my /webapps dir I have a few contexts. I want to define 1 as the default one. (So I don't have to define a context in the url), So if no context is defined in the url, I will go to this url ... this is what I putted in my server.xml Context path=" " docBase="webapps/rnb" crossContext="true" debug="0" reloadable="true"/ /ContextManager This works BUT now he won't load my images that are in the directory "images". When I go to http://www.xxx.com/images/image.gif he's gonna launch an exception ... anyone ? greetz, Christoph - 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: CLASSPATH
my first guess is your missing servlet.jar... is it there? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 6:21 PM To: [EMAIL PROTECTED] Subject: RE: CLASSPATH HP-UX 11 D-Class 9000. SDK 1.2.2 IAS(Internet Application server)Oracle Web server using Apache 1.3.12.0.2a When i do a startup i get the following error. See Attachment : It look like a CLASSPATH error ? Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == -- Original Text -- From: "Randy Layman" [EMAIL PROTECTED], on 2/16/01 4:14 PM: If you are using Tomcat all you need to do is set TOMCAT_HOME and JAVA_HOME. The startup and shutdown scripts take care of setting the necessary classpathes. When you say getting a CLASSPATH ERROR, what do you mean - there is a message on the console saying "CLASSPATH ERROR" and no further explanation, or is there more to it? What type of HP are you refering to - a machine running the HP-UX Operating System, or a machine made by HP running some version of Windows? Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 4:02 PM To: [EMAIL PROTECTED] Subject: RE: CLASSPATH Hi, I already have the JAVA_HOME Setup , i'm getting CLASSPATH ERROR when i'm trying to start it. Is there a list of the CLASSPATH variable that should come with Tomcat and Apache using SDK 1.2.2 Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == -- Original Text -- From: "Chris Richard Adams" [EMAIL PROTECTED], on 2/16/01 3:53 PM: You should also have a JAVA_HOME variable defined...for the JDK you are using... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 5:47 PM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: CLASSPATH HI, What is the minimum environment variable that should be setup to run TOMCAT 3.2.1 on HP using SDK 1.2.2. CLASSPATH= JAKARTA_HOME= TOMCAT_HOME= What else, is there any other environment setup? Does anybody know this. Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: default context
hi, just found it :))) I also found ... if you want to keep on working with your original directory ... by pointing another dir to the root context it works also : Context path="" docBase="webapps/rnb" crossContext="true" debug="0" reloadable="true"/ /ContextManager Context path="/rnb" docBase="webapps/ROOT" / Watch out ... without the second part ... it doesn't work :) greetz, Christoph -Original Message- From: Chris Richard Adams [mailto:[EMAIL PROTECTED]] Sent: vrijdag 16 februari 2001 23:28 To: [EMAIL PROTECTED] Subject: RE: default context Interertingly enough...I just spent a week on this problem...I should at least let you suffer for a day or 2but I'm a nice guy:) The ROOT context is used as the default - just use that and define a context within to define where to put your images. -Original Message- From: Christoph Rooms [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 6:27 PM To: [EMAIL PROTECTED] Subject: default context Hi, Under my /webapps dir I have a few contexts. I want to define 1 as the default one. (So I don't have to define a context in the url), So if no context is defined in the url, I will go to this url ... this is what I putted in my server.xml Context path=" " docBase="webapps/rnb" crossContext="true" debug="0" reloadable="true"/ /ContextManager This works BUT now he won't load my images that are in the directory "images". When I go to http://www.xxx.com/images/image.gif he's gonna launch an exception ... anyone ? greetz, Christoph - 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: CLASSPATH
It looks like from your error log and your classpath set at the top of the log you do not have servlet.jar in your classpath. It should be in TOMCAT_HOME/lib/. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com mailto:[EMAIL PROTECTED] - Punisher of those who cannot spell dumb! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: CLASSPATH
Thanks , i think that was it, I will do more test tommorow . Thanks Again. Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == -- Original Text -- From: "Chris Richard Adams" [EMAIL PROTECTED], on 2/16/01 4:27 PM: my first guess is your missing servlet.jar... is it there? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 6:21 PM To: [EMAIL PROTECTED] Subject: RE: CLASSPATH HP-UX 11 D-Class 9000. SDK 1.2.2 IAS(Internet Application server)Oracle Web server using Apache 1.3.12.0.2a When i do a startup i get the following error. See Attachment : It look like a CLASSPATH error ? Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == -- Original Text -- From: "Randy Layman" [EMAIL PROTECTED], on 2/16/01 4:14 PM: If you are using Tomcat all you need to do is set TOMCAT_HOME and JAVA_HOME. The startup and shutdown scripts take care of setting the necessary classpathes. When you say getting a CLASSPATH ERROR, what do you mean - there is a message on the console saying "CLASSPATH ERROR" and no further explanation, or is there more to it? What type of HP are you refering to - a machine running the HP-UX Operating System, or a machine made by HP running some version of Windows? Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 4:02 PM To: [EMAIL PROTECTED] Subject: RE: CLASSPATH Hi, I already have the JAVA_HOME Setup , i'm getting CLASSPATH ERROR when i'm trying to start it. Is there a list of the CLASSPATH variable that should come with Tomcat and Apache using SDK 1.2.2 Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == -- Original Text -- From: "Chris Richard Adams" [EMAIL PROTECTED], on 2/16/01 3:53 PM: You should also have a JAVA_HOME variable defined...for the JDK you are using... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 5:47 PM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: CLASSPATH HI, What is the minimum environment variable that should be setup to run TOMCAT 3.2.1 on HP using SDK 1.2.2. CLASSPATH= JAKARTA_HOME= TOMCAT_HOME= What else, is there any other environment setup? Does anybody know this. Michel == Michel Knight ITArchitecture(Oracle)group [EMAIL PROTECTED] (819)953-1791 == - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
R: Help - stuck with mod_jk
First, thank you for your help Yes, it should have been a "plain vanilla setup" following quick start instructions. System is a tomcat-3.2.1-1.noarch.rpm from Falsehope on a linux box (mandrake 7.2 - kernel 2.4.0-12mdk) It works fine on port 8080. Apache is Apache-AdvancedExtranetServer/1.3.14 Linux-Mandrake/2mdk, the one that comes with Mandrake. Config files and relevant parts of logs are included Thanks again Eugenio Ascoli-Bartoli - Original Message - From: Mike Braden [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 15, 2001 4:05 PM Subject: RE: Help - stuck with mod_jk What system are you running this on? Is this a "first-time" setup of mod_jk? Can you post the config for mod_jk in your apache httpd.conf and the startup messages from Tomcat. Log info may help as well. Mike. -- Mike Braden [EMAIL PROTECTED] -Original Message- From: Eugenio Ascoli-Bartoli [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 4:35 AM To: [EMAIL PROTECTED] Subject: Help - stuck with mod_jk I am new to the list, and I am sorry for posting the same question twice, but I am still stuck with Apache and Tomcat (using mod_jk). I used the instructions in mod_jk.howto. I read both manual and Tomcat-Apache HOWTO, but all the stuff related to mod_jk is in the howto mentioned above. Tomcat is up and running as standalone; Apache is up and running. Configuration for mod_jk is used,mod_jk is loaded and working as I can see from the log file, mod_jk tries to find workers in workers.properties, but each request for virtual directories reserved to Tomcat never comes to the tomcat engine, as there is no communication on port 8009. Any hint would be helpful. Excuse me again and TIA. Eugenio Ascoli-Bartoli - 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]
WEB-INF\Classes
I'm running Tomcat 3.2.1 under Windows 2000. I have a Server.xml entry of: Context path="/JspIn24Hours" docBase="c:\JspIn24Hours" debug="4" reloadable="true" /Context I can browse to http://localhost:8080/JspIn24Hours OK and some links off of that page work. But one those pages uses a bean and I get an "Unable to load class " error on it even though the class file is under c:\JspIn24Hours\WEB-INF\classes\x . I can get around this by putting the class file under $TOMCAT_HOME\classes\x or by keeping my docBase under $TOMCAT_HOME\webapps\ in the first place. Did I miss something? Thanks for any help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: WEB-INF\Classes
Are you really sure that the directory is WEB-INF? Tomcat is written in Java, which means that file names are case sensitive even though Windows isn't. I would suggest removing the WEB-INF directory and recreating it. (I believe its supposed to be all caps, but just reviewing my computer here its Web-inf - I don't know if that's Explorer's way of showing me what it thinks is right, or what it really is and really supposed to be). Randy -Original Message- From: John Burr [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 4:38 PM To: [EMAIL PROTECTED] Subject: WEB-INF\Classes I'm running Tomcat 3.2.1 under Windows 2000. I have a Server.xml entry of: Context path="/JspIn24Hours" docBase="c:\JspIn24Hours" debug="4" reloadable="true" /Context I can browse to http://localhost:8080/JspIn24Hours OK and some links off of that page work. But one those pages uses a bean and I get an "Unable to load class " error on it even though the class file is under c:\JspIn24Hours\WEB-INF\classes\x . I can get around this by putting the class file under $TOMCAT_HOME\classes\x or by keeping my docBase under $TOMCAT_HOME\webapps\ in the first place. Did I miss something? Thanks for any help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
FATAL:java.io.IOException: Address already in use
I'm using RedHat 7 and have installed the tomcat rpm 3.2.1. When I try to start it says Address already in use. I changed all the port numbers within server.xml and still get the same error. I'm not sure what Address it is refering to. Does anyone know how to fix this? Regards, Bryan [root@tesuque bin]# ./startup.sh Guessing TOMCAT_HOME from tomcat.sh to ./.. Setting TOMCAT_HOME to ./.. Using classpath: ./../lib/ant.jar:./../lib/jasper.jar:./../lib/jaxp.jar:./../ /parser.jar:./../lib/servlet.jar:./../lib/test:./../lib/webserver.jar [root@tesuque bin]# Starting tomcat. Check logs/tomcat.log for error messages 2001-02-16 01:44:13 - ContextManager: Adding context Ctx( ) 2001-02-16 01:44:13 - ContextManager: Adding context Ctx( /test ) 2001-02-16 01:44:13 - ContextManager: Adding context Ctx( /examples ) 2001-02-16 01:44:13 - ContextManager: Adding context Ctx( /admin ) FATAL:java.io.IOException: Address already in use java.io.IOException: Address already in use at java.net.PlainSocketImpl.socketBind(PlainSocketImpl.java:native) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:43) at java.net.ServerSocket.init(ServerSocket.java:53) at java.net.ServerSocket.init(ServerSocket.java:30) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Defa ServerSocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEnd nt.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector. a:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:52 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) at this point it just freezes... _ Get your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: libexec directory on apache - how do I reference it.
Did you build apache yourself or use a binary version? I'd check to make sure DSO (modules) support is available: # /usr/local/apache/bin/httpd -l Compiled-in modules: http_core.c mod_so.c # If you see mod_so.c, then DSO is supported and modules should load from libexec if the path is still correct. You can get more detailed info with some of the other commands to httpd. Try httpd -h for a list. Mike. -- Mike Braden [EMAIL PROTECTED] -Original Message- From: Chris Richard Adams [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 5:09 PM To: Tomcat-User (E-mail) Subject: libexec directory on apache - how do I reference it. I seem to have lost reference to my libexec directory in apache - this may be a result of installing a new version of apache - v14 from v12. I've installed apache in the same location as it comes with Redhat 6.2 - in /etc/httpd. - but now when the libexec directory is refernced as apache-tomcat.conf or mod_jk.conf-auto like: LoadModule ... libexec/mod_jk.so or similar with mod_jserv I get the error: Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not inclu ded in the server configuration I can remove all content from the libexec directory and I get the same error so i realize its not even being refernced... What gives??? - 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: (Off topic) How to know which hyper-link has been clicked?
Hello, Vikramjit Singh Thank you for your kind reply. Could you let me know how to set parameter in link? Could you give me some example? Thank you so much. Paul -Original Message- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 11:10 PM To: '[EMAIL PROTECTED]' Subject: RE: (Off topic) How to know which hyper-link has been clicked? why dont u use QueryString. u can pass parameter in ur link. -Original Message- From: Paul Yoon [SMTP:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 6:32 AM To: [EMAIL PROTECTED] Subject: (Off topic) How to know which hyper-link has been clicked? Hello, I am sorry to ask off topic but is there any way to know which hyper-link was clicked? There is a page which can generate dynamically hyper-link and linked page should know which one was cliked. I am using jsp and can I use parameter? Any idea will be appreciated. Thank you. Paul Yoon - 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]
R: JDBC Driver for MySQL
If you are looking for Jdbc drivers form my sql, classical ones (type 4) for MySql are: - twzJdbcForMySql http://www.voicenet.com/~zellert/tjFM/ - mm.mysql.jdbc http://mmmysql.sourceforge.net/ If your question is whether is better to use type III or type IV, Type 3 is only going to be flexible to you if you are coding an application to work with a variety of databases. There is no type 3 for mysql that I am aware of anyway. The only way I know is about using some kind of database gateway (Borland, Merant) tha allow using a jdbc driver, and let it access MySql via an odbc driver (the one at www.mysql.net for example)...what a long trip to access data! If you are writting an application or servlet or whatever that will only be using mysql you are fine with type 4, if you are writting it to work with multiple databases, and you can manage to get it to work that way you can always let it use more than one jdbc driver at run-time. - Original Message - From: Rick Roberts [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 15, 2001 10:43 PM Subject: JDBC Driver for MySQL What are my options for JDBC drivers for MySQL? Type III, Type IV? Can I use the Resin driver with Tomcat? All advice welcome. Thanks, Rick - 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: mod_jk + ssl + apache
Title: RE: mod_jk + ssl + apache Tomcat only works with IP-based virtual hosts. Using a different host name resolves to a different IP address, so Tomcat can serve from the correct directory. Trying to use 443 on the same host name as your public system resolves to the same IP address, so Tomcat serves from the public directory. The only way I could figure out how to get this to work was to run two copies of Tomcat, one serving http and the other serving https. Run the connectors on unique ports so Apache can talk to the correct tomcat instance. -Original Message- From: Connie Chan [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 1:29 PM To: [EMAIL PROTECTED] Subject: RE: mod_jk + ssl + apache I had specified JkMount in Virtual Host directive in httpd.conf file and specified the path in the host directive in server.xml. They are as following: In httpd.conf, VirtualHost host1.myorg.com:443 DocumentRoot j:/webapps/rootexample/secure_html SSLEnable SSLClientAuth none ServerName host1.myorg.com /VirtualHost In server.xml, Host name=host1.myorg.com Context path= docBase=j:/webapps/rootexample/secure_html/ /Host If I set the virtual host name (for SSL) as same as server name, it won't work. When I https://host1.myorg.com https://host1.myorg.com , the log file show that the tomcat still looks for the public_html directory (which is the document root directory for the web server). But I set the virtual host name different from the server name, it works fine. Plus, I notice from the console shows as followings when tomcat starts up: ContextManager: Adding context Ctx( host1.myorg.com: ) I am not sure if I should specify the port in the host directive, in order to tell tomcat to look for different path for SSL. If so, what is the syntax. I cannot find from the user guide. I tried Host name=host1.myorg.com:443 and Host name=host1.myorg.com port=443'. None of them works (the console shows Adding contect Ctx(host1.myorg.com:443: ). Please advise. Thanks, Connie -Original Message- From: GOMEZ Henri [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 11:21 AM To: [EMAIL PROTECTED] Subject: RE: mod_jk + ssl + apache Does anyone know how to configure the apache and tomcat so that the tomcat will look for the different path other than the root document when ssl is enabling (e.g. https://host1.myorg/) https://host1.myorg/) ? Could you be more explicit ? I'm using mod_jk as connector with AJP13. How to configure tomcat so that a context path can only be looked for when using SSL only? Specify JkMount on SSL part (ie in mod_ssl in Virtual hostl:443./Virtual - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Question about sessions
If I instantiate a javabean from a JSP: jsp:useBean id="myBean" class="com.mycorp.somebean" scope="session" jsp:setProperty name="myBean" property="*"/ /jsp:useBean and hand off control to a servlet where I retrieve the session using: HttpSession session = req.getSession(false); Shouldn't session.isNew() return "false" because the session already exists? Thanks and regards, Andy ___ Do You Yahoo!? Get your free @yahoo.ca address at http://mail.yahoo.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Pathing Problems
I don't think you want to be setting ContextManager.home - that (apparently, from reading the user's guide) is a way to have Tomcat load all its configuration files from a place other than TOMCAT_HOME, and that doesn't really have anything to do (directly) with Tomcat-Apache communication. docBase is root directory for files that Tomcat serves in a particular context. DocumentRoot is the root directory for Apache. JkMount is relative to DocumentRoot. The problem I see in your configuration below is that DocumentRoot set to /web/tomcat2, but the empty context in Tomcat is set to /web/tomcat2/java/webapps. So when Apache finds a file, starting from its DocumentRoot, of (e.g.) /java/webapps/jsp/test.jsp, tomcat will look for this document starting in the directory you gave it for it's docBase, so it will try to find a file /web/tomcat2/java/webapps/java/webapps/jsp/test.jsp. Obviously, this file does not exist. -Original Message- From: Brock Barber [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 1:51 PM To: '[EMAIL PROTECTED]' Subject: Pathing Problems Hi I'm having a heck of a time getting tomcat/apache(virtual host)/mod_jk to work properly in a directory structure different than that laid out in the example. I'm relatively certain it's a pathing problem since I'm pretty much guessing at what the values should be for the various paths. I have read all the FAQ's and tomcat documentation but for the most part, it's deals with using jserv and nowhere can I find an explanation of what docBase is supposed to be. I've spent hours looking through the archives as well. If nothing else, the archive shows me I'm not alone in my lack of understanding :p Can anyone explain the relationship between apache DocumentRoot and JkMount, ContextManager home and Context path and docBase? System info: solaris 8, tomcat 3.2.1 (binary), apache 1.3.12, mod_jk My directory structure looks like: /web (contains 15 or so web sites, one for each virtual host) /tomcat2 (this is just the root directory for some website) /java conf logs webapps images index.html jsp servlets WEB-INF work My DocumentRoot = /web/tomcat2 and my ContextManager home = /web/tomcat2/java. My latest try (and I think I've tried every possible combination at least twice). JkMount /java/webapps/*.jsp ajp13 JkMount /java/webapps/servlet/* ajp13 Host name ="192.168.0.240" Context path="" docBase="/web/tomcat2/java/webapps" crossContext="false" debug="0" reloadable="true" /Context /Host If anyone can clarify things for me I'd be eternally grateful. brock ** Brock Barber Applications Group MBD (McNair Business Development Inc.) Direct: 789-0019 Fax: 789-7630 E-Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.mcnairbd.com A head for business. ** - 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: Question about sessions
-Original Message- From: A Yang [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 3:05 PM To: [EMAIL PROTECTED] Subject: Question about sessions If I instantiate a javabean from a JSP: jsp:useBean id="myBean" class="com.mycorp.somebean" scope="session" jsp:setProperty name="myBean" property="*"/ /jsp:useBean and hand off control to a servlet where I retrieve the session using: HttpSession session = req.getSession(false); Shouldn't session.isNew() return "false" because the session already exists? I don't think so, IF the client hasn't yet seen the session. I think it only returns false if the request includes the session ID, which it won't until there has been a round-trip back to the client. George McKinney, Developer tantalus communications inc. 500-1122 Mainland Street Vancouver, BC, Canada V6B 5L1 [EMAIL PROTECTED] Direct 604.726.6753 Main604.609.0700 Fax 604.609.0705 www.tantalus.com "When eBusiness experience counts." - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: What is open software... Sorry, could not resist...
We all know that OpenSource cost time and money. We spent time learning, adapting, patching and helping other users. But we have the control over the product we use. No more risk to see a great product disapear when the company is out of business. We're the business. Yes OpenSource as a price, not in $ but in time. And we got was we do in fine. La prise de conscience de votre propre ignorance est un grand pas vers la connaissance. -- Benjamin Disraeli -Original Message- From: Nael Mohammad [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 9:05 PM To: '[EMAIL PROTECTED]' Subject: RE: What is open software... Sorry, could not resist... And companies such as yours are obviously running scared now that the world has an alternative choice. -Original Message- From: Mike Braden [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 11:51 AM To: '[EMAIL PROTECTED]' Subject: RE: What is open software... Sorry, could not resist... If I had this, I'd feel the same way. ;-) I guess it takes proprietary products and knowledge get you there. Of course, as complex as products are today, that's what it'd cost to compete as well. The real world is a tough place for sure. Not much room for people at this level. === ALLCHIN, JAMES E Updated 3-Jan-01 Officer, Group Vice President, Platforms Product Group Microsoft Corp Nasdaq:MSFT (historical quotes, profile, other insiders) Reported: 27-Nov-00 Shares: Common 25,327 Value: $1,790,000 as of 27-Nov-00 Value: $1,534,000 as of 23-Jan-01 27-Nov-00 100,000 MSFT Exercised Options at $14.77/Share and Sold at $71.75/Share. Proceeds of $5,698,000. 23-Oct-00 350,000 MSFT Exercised Options at Average of $5.97/Share and Sold at $64.62/Share. Proceeds of $20,528,500. 30-Jun-00 214 MSFT Accrued Through Plan at $68.00/Share. Cost of $14,552. 11-Feb-00 200,000 MSFT Exercised Options at $5.97/Share and Sold at $103.94/Share. Proceeds of $19,594,000. 11-Feb-00 500,000 MSFT Proposed Sale (Form 144) of Restricted Shares. Estimated proceeds of $50,000,000. === From: http://biz.yahoo.com/t/68/1734.html -- Mike Braden [EMAIL PROTECTED] -Original Message- From: Jan Labanowski [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 12:27 PM To: [EMAIL PROTECTED] Cc: Jan Labanowski Subject: What is open software... Sorry, could not resist... On Fri, 16 Feb 2001, GOMEZ Henri wrote: Sorry that you didn't understand what is OpenSource... Here it is... Malice {:-)}. This is a official quote by Microsoft Corp.'s Windows operating-system chief, Jim Allchin. "Open source is an intellectual-property destroyer. I can't imagine something that could be worse than this for the software business and the intellectual-property business." "I'm an American, I believe in the American Way. I worry if the government encourages open source, and I don't think we've done enough education of policy makers to understand the threat." http://news.cnet.com/investor/news/newsitem/0-9900-1028-4825719 -RHAT.html?ta g=ltnc Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/ - 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]
Forwarding Servlet/JSP Request to Tomcat from Apache
Hi All, After much hair pulling,I have been successful in installing tomcat with Apache Server. Now the Apache Server , registers , the JServ extensions. however, when i try to access the example servlets in the Tomcat distribution i get the "File Not Found Error". I am enclosing , here the error logs and the Apache config file for Tomcat. Can someone please help me? Thanx in Advance, Bye, Ratnakar Apache Log Files: *** This is the access Log ** 127.0.0.1 - - [16/Feb/2001:17:16:19 -0600] "GET /examples/servlet/HelloWorldExample HTTP/1.0" 500 590 * This is the error log [Fri Feb 16 17:16:06 2001] [alert] Apache.exe: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName * this is the mod_jserv log * [16/02/2001 23:16:19:587] (EMERGENCY) ajp12: can not connect to host 127.0.0.1:8007 [16/02/2001 23:16:19:587] (EMERGENCY) ajp12: connection fail [16/02/2001 23:16:19:587] (ERROR) an error returned handling request via protocol "ajpv12" A part of Apache Http.config ** ## # Apache-Tomcat Smart Context Redirection # ## LoadModule jserv_module modules/ApacheModuleJServ.dll IfModule mod_jserv.c ApJServManual on ApJServDefaultProtocol ajpv12 ApJServSecretKey DISABLED ApJServMountCopy on ApJServLogLevel notice ApJServDefaultHost localhost ApJServDefaultPort 8007 # # Mounting a single smart context: # # (1) Make Apache know about the context location. Alias /examples C:\jakarta-tomcat-4.0\webapps\examples # (2) Optional, customize Apache context service. Directory "C:\jakarta-tomcat-4.0\webapps\examples" Options Indexes FollowSymLinks # (2a) No directory indexing for the context root. #Options -Indexes # (2b) Set index.jsp to be the directory index file. #DirectoryIndex index.jsp /Directory # (3) Protect the WEB-INF directory from tampering. Location /examples\WEB-INF/ AllowOverride None deny from all /Location # (4) Instructing Apache to send all the .jsp files under the context to the # jserv servlet handler. LocationMatch /examples/*.jsp SetHandler jserv-servlet /LocationMatch # (5) Direct known servlet URLs to Tomcat. ApJServMount /examples/servlet /examples # (6) Optional, direct servlet only contexts to Tomcat. ApJServMount /servlet /ROOT /IfModule Do You Yahoo!? Get your free @yahoo.co.in address at http://mail.yahoo.co.in - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Socket write error solved
Several people mentioned in the past the 'socket write error' that happens when using standalone Tomcat and IE. We also encountered this problem and here are our findings, some of them based on facts and some are assumptions. Basically, the problem occurs because IE is smarter than the Tomcat's built-in web server. If the browser already has a given file in cache, then next time it needs it, it lets Tomcat know that it already has that version of the file (using the HTTP 'if-modified-since' header). Tomcat in turn is expected to check that the file has not been modified and if so, return a 304 status (SC_NOT_MODIFIED). This behavior reduces the traffic and improves the performance. However, Tomcat's built-in server does not support the 304 status code and simply resends the entire file. When IE starts to get the headers and the file data, it determines that the file has not been changed, drops the connection, and uses the value from the cache. On Tomcat's side, this causes an exception (when it try to send the next chunk of the file) and an error message. The error messages seems to be displayed by Tomcat only when sending the file from a servlet, and is ignored when Tomcat's itself sends a static file. Fixes 1. It would be nice to have support for 304 code by Tomcat static file server. This will improve the performance. 2. If you send files from your servlet, add support for 304 status code. That is, if the header 'if-modified-since' is found in the request, get its date, compare it to the actual date of the file, if the file has not been changed, send SC_NOT_MODIFIED status. Tal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
IIS still won't play nice
Hi all. I need some expert help with a mystery that's been plaguing me. I have the ISAPI redirector installed and Tomcat configured to run with it. I am using IIS 5 under Win2K. I've checked everything over and it all looks fine (from my newbie perspective -- read the how-tos and follow them as closely as possible). When I try to hit http://localhost/examples/jsp/index.html I get an HTTP 404 File not found error. The last line in SYSTEM32/LogFiles/W3SVC1 is "01:00:28 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404" The troubleshooting guide says, in this case, to "Make sure you entered the URL correctly.", which isn't that helpful. So the ISAPI redirector is recognizing that it should handle the request, but it is not finding the page? The ISAPI.log file has these lines associated with the request: [jk_isapi_plugin.c (408)]: HttpFilterProc started[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html[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/jsp/index.html] is a servlet url - should redirect to ajp12[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory By the way, http://localhost:8080/examples/jsp/index.htmlworks just fine. In workers.properties, I have these workers defined: worker.ajp12.port=8007worker.ajp12.host=localhostworker.ajp12.type=ajp12 worker.ajp13.port=8009worker.ajp13.host=localhostworker.ajp13.type=ajp13 The examples context in server.xml is just the same as the default. I didn't put the isapi_redirect.dll into the FilterDLLs registry key, as somebody had suggested I check (thank you). Sorry to be so long-winded, but this is totally driving me nuts for a week now. I don't seem to have any clues as to what is going wrong. If any Tomcat-wise people have any advice to me I would be very appreciative. Gratefully, Conrad
Newbie Question, this should be easy
Hi all, I have the following error when trying to load a simple JSP page. Please find the JSP code as well as the error below. Could someone see what the problem is? Thanks in advance, AC JSP --- % page import = "Input.Splash" % JSP:USEBEAN id="schedule" class="Input.Splash" scope="session" JSP:SETPROPERTY property="*" name="numguess" HTML HEAD TITLE This life ain't good enough/TITLE /HEAD BODY PTesting some JSP./P This text was brought back. P !--% schedule.getText() %-- /BODY/HTML Error: 500 - Location: /Uni-Calendar/many.jsp Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(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:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(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(JspServlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(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:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Virtual Hosts
I think you need to upgrade to tomcat 3.2.1 - to get support for virtual hosting. Scott Bertone Advertising [EMAIL PROTECTED] 16/02/2001 03:41 AM Please respond to tomcat-user To:[EMAIL PROTECTED] cc: Subject:Virtual Hosts I am using tomcat 3.0 with Apache and mod_jk to run jsp. I have got it functioning for one domain by changing the server.xml: !-- example - how to override AutoSetup actions -- Context path=/examples docBase=webapps/examples debug=0 reloadable=true /Context !-- example - how to override AutoSetup actions -- Context path= docBase=/path/to/domain/htdocs debug=0 reloadable=true /Context I works for the one domain. Problem is, I want to use jsp on other domains as well. When I run them, they look for the page.jsp on the domain I referenced in the server.xml. I am a total freshman at this stuff. Can anyone please offer specific examples as to how I may accomplish this? Thank you for your time. Andrea Do You Yahoo!? - Get personalized email addresses from Yahoo! Mail Personal Address - only $35 a year!
RE: HELP!!!!!
rick, the apache modules under RH go into /etc/httpd/modules@ which is a symlink pointing to /usr/lib/apache Redhat's screwy implementation ... go figure ## # Andrew Stewart ([EMAIL PROTECTED]) # MEGAStation.com # Web / Systems Developer ## -Original Message- From: Rick Roberts [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 9:38 PM To: [EMAIL PROTECTED] Subject: Re: HELP! I agree with andrew. One other thought however, the RPM will install in /home/httpd/ and the config files will be in /etc/httpd/conf/. It's a fundamental difference in the way that RPM thinks that programs should reside vs the way that tar.gz type programs think that they should reside. Another think that I don't really understand is where the library (.so) files go. The RPM versions want to see the libs in modules/{something}.so while the tar.gz types want to see them in libexec/{something}.so. This is more of a question than an answer but maybe it will help you figure it out. Comments welcome, Rick p.s. I like it here. I've been away for awhile and it's good to be back. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How to start tomcat
I have just downlad tomcat.zip and unzip it. After I typed startup on DOS prompter I got the messagesaid You must set JAVA_HOME to point at your Java Development Kit installation Does anybody know whatthe message means? I work on NT4.0
RE: How to start tomcat
Go to ControlPanel-system-environment and set the environment variable JAVA_HOME to the location of your JDK installation. All this is explained in the tomcat documentation. Environment variables are variables that get passed to programs you run so that they can adjust their behaviour to your machine's configuration. Some environment variables are defined by the operating system, some by applications, others by human users. On Win platform users usually don't have to deal with environment variables unless they work with cross-platform programs. thx Alex -Original Message-From: Daniel Liu [mailto:[EMAIL PROTECTED]]Sent: Friday, February 16, 2001 6:20 PMTo: [EMAIL PROTECTED]Subject: How to start tomcat I have just downlad tomcat.zip and unzip it. After I typed startup on DOS prompter I got the messagesaid You must set JAVA_HOME to point at your Java Development Kit installation Does anybody know whatthe message means? I work on NT4.0
RE: Newbie Question, this should be easy
Well, there are two errors. One, you don't have the java compiler in your classpath. This is usually in a file called tools.jar. Second, the XML tag extentions are case sensitive. You will need to use jsp:usebean and jsp:setproperty (thought I can't remember if it is useBean and setProperty instead - rats) Regards, Paul -Original Message- From: Ashant Chalasani [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 8:25 PM To: [EMAIL PROTECTED] Subject: Newbie Question, this should be easy Hi all, I have the following error when trying to load a simple JSP page. Please find the JSP code as well as the error below. Could someone see what the problem is? Thanks in advance, AC JSP --- % page import = "Input.Splash" % JSP:USEBEAN id="schedule" class="Input.Splash" scope="session" JSP:SETPROPERTY property="*" name="numguess" HTML HEAD TITLE This life ain't good enough/TITLE /HEAD BODY PTesting some JSP./P This text was brought back. P !--% schedule.getText() %-- /BODY/HTML Error: 500 - Location: /Uni-Calendar/many.jsp Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(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:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(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(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:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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]
https requests to tomcat
I have configured Tomcat3.2.1 to work with JSSE1.0.2. Now what should i do to test that it can process https://... requests. is this enough to write https://localhost:8080 in browser. But it is not working. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Toolkit.getDefaultToolkit() error under Solaris
Thanks David and Pam, We grabbed the Xvfb binary and dropped it into /usr/openwin/bin After stopping and restarting tomcat the problem was solved. Best, Nick David Bullock wrote: Do a Google Search for XVFB ( X Virtual Frame Buffer ). To use AWT stuff in a server-side environment on Unix, you have to have access to a window mangager - -XVFB lets you set it up without actually having to dedicate a graphics card to the use of an X Server. Also, make sure that you can run an example AWT or Swing app using the same environment configuration as the server, as a check for other gotchas. good luck, David. Pam Withnall wrote: use xvfb or, add eteks classes... 1. use the classes from eteks 2. put system property statements in your code ( see document from eteks) 3. This works for everything but the -Xbootclasspath, after much hair pulling, I found the answer below On Thu, 15 Feb 2001, Nick Didkovsky wrote: Hello all, We are running Tomcat Version 3.2.1 on a Solaris Server. I've isolated a problem which boils down to a simple two liner: %@ page import="java.awt.*" % % Toolkit myToolkit = Toolkit.getDefaultToolkit(); % Internal Servlet Error: javax.servlet.ServletException: sun/awt/motif/MToolkit at java.lang.Throwable.fillInStackTrace(Native Method) java.lang.NoClassDefFoundError: sun/awt/motif/MToolkit at java.lang.Class.forName0(Native Method) at java.lang.Class.forName0(Compiled Code) at java.lang.Class.forName(Compiled Code) at java.awt.Toolkit$2.run(Toolkit.java:499) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:492) David Bullock LISAsoft Project Lead Sun Certified Programmer for the Java 2 Platform email: [EMAIL PROTECTED] mobile: +61 4 0290 1228 "The key ingredients of success are a crystal-clear goal, a realistic attack plan to achieve that goal, and consistent, daily action to reach that goal." Steve Maguire, "Debugging the Development Process". LISAsoft http://www.lisasoft.com/ Adelaide Sydney 38 Greenhill Rd Level 3, 228 Pitt Street Wayville S.A. 5034Sydney NSW 2000 Australia Australia PH +61 8 8272 1555 PH +61 2 9283 0877 FAX +61 8 8271 1199 FAX +61 2 9283 0866 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
FW: Tomcat3.2.1 with IIS5
It shows me Server Application Error : The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance. Here is the isapi.log with log_level is debug: [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/servl et/HelloWorldExample [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 mat ch ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/servlet/HelloWorldExample] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/servlet/HelloWorld Example] is points to the web-inf directory Here is the W3SVC's log, it shows: #Software: Microsoft Internet Information Services 5.0 #Version: 1.0 #Date: 2001-02-17 03:21:26 #Fields: time c-ip cs-method cs-uri-stem sc-status 03:21:26 127.0.0.1 GET /jakarta/isapi_redirect.dll 500 Somebody said because I have installed JRun in my machine. Is it the cause? Are there anyone meet this error before? Thx. in Advance. -Original Message- From: William Brogden [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 8:20 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat3.2.1 with IIS5 Steve Wong wrote: I have the green arrow in the ISAPI filter in Internet Manager. I can browse http://localhost/examples/jsp/index.html But when I browse http://localhost/examples/servlet/HelloWorldExample It shows: The Page cannot be displayed. There is no error in the isapi.log And there's a warning in Window's event log saying the specified metadata not found. Does anyone know why? I don't know why, but you can get rid of that "friendly" browser message and see what the servlet is actually sending by changing your browser settings. Tools-Internet Options - advanced make sure the "Show Friendly HTTP Error Messages" is not checked. -- 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 - 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: Forwarding Servlet/JSP Request to Tomcat from Apache
I have this exact problem, hope someone else can help. S - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cannot find file mod_jk.conf-auto
Hi All, The documentation says that the file "mod_jk.conf-auto" the configuration file for mod_jk.dll, will be automaticlly generated. however in my directory, i cannot find any file by the specified name. can someone please guide me, as to how i need to make Apache talk with tomcat. Thanx in Advance, Bye, Ratnakar Do You Yahoo!? Get your free @yahoo.co.in address at http://mail.yahoo.co.in - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: cannot find file mod_jk.conf-auto
I take it you have ran tomcat to generate the file, yes? Adam. Adam Fowler Second year Computer Science undergraduate University of Wales, Aberystwyth Carroll College, WI, USA(2000-2001) web: http://gucciboy.dyndns.org/aff9 e-mail: [EMAIL PROTECTED] "Every new beginning comes from some other beginning's end" -Original Message- From: Ratnakar Malla [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 9:56 PM To: Tomcat Subject: cannot find file "mod_jk.conf-auto" Hi All, The documentation says that the file "mod_jk.conf-auto" the configuration file for mod_jk.dll, will be automaticlly generated. however in my directory, i cannot find any file by the specified name. can someone please guide me, as to how i need to make Apache talk with tomcat. Thanx in Advance, Bye, Ratnakar Do You Yahoo!? Get your free @yahoo.co.in address at http://mail.yahoo.co.in - 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: Regarding support for tomcat server....................
At 02:47 PM 2/15/1996 +0530, you wrote: The above line shows a possible problem. Set your system date to 2001. It might be doing a time diff, and always think than an update is needed, hence a recompile. Hello Sir, I am Ravindra using tomcat 3.2.1 server in standalone mode for learning jsp . but problem is every time when i request for jsp page server is creating .java file compiled it into class file . But this should not happened ,java file class file should generate first time after change in jsp file . so i am facing problems for follwing counter.jsp example. when same jsp i am running through javawebserver2.0 it is working fine because java class file is created after change in jsp only.not like previous case. Bellow i am giving code so please help me to solve the problem - %@ page language=java contentType=text/html % html head titleA page with a counter/title /head body bgcolor=white %! int globalCounter = 0; % This page has been visited: %= ++globalCounter % times. p % int localCounter = 0; % This counter never increases its value: %= ++localCounter % /body /html - Thank you very much Regards Ravindra
RE: IIS still won't play nice...And neither does Apache...
Hi, Interestingly enough this also happens on my Linux Mandrake 7.2(kernel-2.4.0-2mdk) installation. I too followed the very detailed how-to's on the web *snigger*.(need a mod_jk documentation re-writer?) I am an experienced Linux user and I've checked the logs which say NOTHING. I've come to the conclusion that it's a linking problem. I'm using mod_jk, ajp13 as the protocol and apache-1.3.14-2mdk as the web server. There's no way with the number of ppl I've seen having this problem in the last week that it's a dumb user thing. It's gotta be the communication between the web server and tomcat. Any developers got any ideas? Regards, Adam. Adam Fowler Second year Computer Science undergraduate University of Wales, Aberystwyth Carroll College, WI, USA(2000-2001) web: http://gucciboy.dyndns.org/aff9 e-mail: [EMAIL PROTECTED] "Every new beginning comes from some other beginning's end" -Original Message- From: Conrad Gustafson [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 7:21 PM To: [EMAIL PROTECTED] Subject: IIS still won't play nice Hi all. I need some expert help with a mystery that's been plaguing me. I have the ISAPI redirector installed and Tomcat configured to run with it. I am using IIS 5 under Win2K. I've checked everything over and it all looks fine (from my newbie perspective -- read the how-tos and follow them as closely as possible). When I try to hit http://localhost/examples/jsp/index.html I get an HTTP 404 File not found error. The last line in SYSTEM32/LogFiles/W3SVC1 is "01:00:28 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404" The troubleshooting guide says, in this case, to "Make sure you entered the URL correctly.", which isn't that helpful. So the ISAPI redirector is recognizing that it should handle the request, but it is not finding the page? The ISAPI.log file has these lines associated with the request: [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/jsp/index.html [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/jsp/index.html] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is points to the web-inf directory By the way, http://localhost:8080/examples/jsp/index.html works just fine. In workers.properties, I have these workers defined: worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 The examples context in server.xml is just the same as the default. I didn't put the isapi_redirect.dll into the FilterDLLs registry key, as somebody had suggested I check (thank you). Sorry to be so long-winded, but this is totally driving me nuts for a week now. I don't seem to have any clues as to what is going wrong. If any Tomcat-wise people have any advice to me I would be very appreciative. Gratefully, Conrad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Newbie Question, this should be easy
It is jsp:useBean and jsp:setProperty. The JSP standard actions are camel case and follow the bean spec. Thanks, James -Original Message- From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 7:37 PM To: [EMAIL PROTECTED] Subject: RE: Newbie Question, this should be easy Well, there are two errors. One, you don't have the java compiler in your classpath. This is usually in a file called tools.jar. Second, the XML tag extentions are case sensitive. You will need to use jsp:usebean and jsp:setproperty (thought I can't remember if it is useBean and setProperty instead - rats) Regards, Paul -Original Message- From: Ashant Chalasani [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 8:25 PM To: [EMAIL PROTECTED] Subject: Newbie Question, this should be easy Hi all, I have the following error when trying to load a simple JSP page. Please find the JSP code as well as the error below. Could someone see what the problem is? Thanks in advance, AC JSP --- % page import = "Input.Splash" % JSP:USEBEAN id="schedule" class="Input.Splash" scope="session" JSP:SETPROPERTY property="*" name="numguess" HTML HEAD TITLE This life ain't good enough/TITLE /HEAD BODY PTesting some JSP./P This text was brought back. P !--% schedule.getText() %-- /BODY/HTML Error: 500 - Location: /Uni-Calendar/many.jsp Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(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:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(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(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:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: libexec directory on apache - how do I reference it.
Quick fix/work around: $ln -sd /usr/lib/apache /etc/httpd/libexec This will create a soft link between the two directories so that references to libexec look into /usr/lib/apache. Make sure mod_jk.so gets copied to /usr/lib/apache as well. - Original Message - From: "Chris Richard Adams" [EMAIL PROTECTED] To: "Tomcat-User (E-mail)" [EMAIL PROTECTED] Sent: Friday, February 16, 2001 2:08 PM Subject: libexec directory on apache - how do I reference it. I seem to have lost reference to my libexec directory in apache - this may be a result of installing a new version of apache - v14 from v12. I've installed apache in the same location as it comes with Redhat 6.2 - in /etc/httpd. - but now when the libexec directory is refernced as apache-tomcat.conf or mod_jk.conf-auto like: LoadModule ... libexec/mod_jk.so or similar with mod_jserv I get the error: Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not inclu ded in the server configuration I can remove all content from the libexec directory and I get the same error so i realize its not even being refernced... What gives??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Hotw to set Tomcat as out-of process servlet container on Windons 98
Could anyone tell me how to set Tomcat as out-of process servlet container on Windons 98 Daming - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Please help me in this issue
Hello Before every thing thanks alot for your attention to my EMail and your product... Please guid me how can I have a website on the different directory out of tomcat directory and use it by IIS.please tell me the step by step instruction Best Regards Mazamir Sorbi Software Developer _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]