jakarta-tomcat-deployer Installation on Windows XP ???
Hello all, I am a complete newbie for all about tomcat. So in this context, I installed yesterday Tomcat 5.5.9 on my Windows XP machine to discover the product and the possibility for me to develop a complete web (java oriented) web site. I also would try the ability for IBM Websphere 5.1.1 to generate war files I can deploy on my Tomcat installation. So I also installed jakarta-tomcat-admin and I am now trying to install jakarta-tomcat-deployer ... and that is really my problem. Can somebody explain me how I have to install jakarta-tomcat-deployer ... I am sorry for this stupid question but I haven't found any explanation for this. Regards Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem for loading files under WEB-INF/classes
Hi, Thanks all three for answering. In fact, the error seems to appear because the loading of the file is done in the static{} initializer of a class. By loading the properties elsewhere it works (at least there's no FileNotFoundException yet, having a well configured log4j.properties is another business ^^). Vincent. Vincent wrote: I want to load some files that I've placed in the WEB-INF/classes directory of my project (particularly the file log4j.properties). The problem is that I always have the same errors logged in stdout tomcat's log file : java.io.FileNotFoundException... The files are well-placed, and curiously my webapp can read a ressource bundle file that I provide for i18n, which is in this same directory. I believed that Tomcat automatically place files under WEB-INF/classes into the path of the webapp. I'm wrong ? What's the problem exactly ? Thank you for your help. Note: Running Tomcat 5.5.9 under Windows XP or Windows 2000, JVM 1.5 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem for loading files under WEB-INF/classes
I want to load some files that I've placed in the WEB-INF/classes directory of my project (particularly the file log4j.properties). The problem is that I always have the same errors logged in stdout tomcat's log file : java.io.FileNotFoundException... The files are well-placed, and curiously my webapp can read a ressource bundle file that I provide for i18n, which is in this same directory. I believed that Tomcat automatically place files under WEB-INF/classes into the path of the webapp. I'm wrong ? What's the problem exactly ? Thank you for your help. Note: Running Tomcat 5.5.9 under Windows XP or Windows 2000, JVM 1.5 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot access Tomcat from remote box
Thanks. I did double check and it is 8080. I changed to port 80 and Tomcat is running just fine. This is truly odd. From: Tim Diggins [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Cannot access Tomcat from remote box Date: Fri, 13 May 2005 09:00:16 +0100 Hi Vincent - one more idea... Have you checked Tomcat's server.xml for what port it thinks it should be serving from? I recently installed tomcat 5.0 on a FreeBSD box from a BSD-package* and either because of the way the BSD-package was configured, or because of some other check, Tomcat ended up serving from 8180. So of course the box refused a connection on 8080. Tim *actually a BSD port but that's just too confusing... --- Am Freitag, 13. Mai 2005 00:35 schrieb Vincent Yau: Today, I got hold of 2 boxes that I need to setup tomcat. Both are Linux. One with Kernel 2.4, the other is 2.6.10. I have a 3rd box with Tomcat up and running that I setup a few months ago (version 5.0.28). So I downloaded Tomcat 5.0.28 on box boxes earlier today. They ran fine with a local browser accessing it. However, no other box on the network can access it. I got Connection Refused when trying to load the front page from any other machine (http://thatbox:8080). There is no firewall on either machine. I have tried ping, ssh, scp, httpd and all traffic goes through fine on both boxes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot access Tomcat from remote box
Hi: I have a very odd error hope someone can tell me how to fix it. I am not a new Tomcat user, been using it on and off for the last few years. I never really dive into the setup as my need had always been very simple. Today, I got hold of 2 boxes that I need to setup tomcat. Both are Linux. One with Kernel 2.4, the other is 2.6.10. I have a 3rd box with Tomcat up and running that I setup a few months ago (version 5.0.28). So I downloaded Tomcat 5.0.28 on box boxes earlier today. They ran fine with a local browser accessing it. However, no other box on the network can access it. I got Connection Refused when trying to load the front page from any other machine (http://thatbox:8080). There is no firewall on either machine. I have tried ping, ssh, scp, httpd and all traffic goes through fine on both boxes. I have also tried Tomcat version 5.0.28, 5.5.7, 5.5.8. I have also tried Java 1.4.2 and Java 1.5. I have no idea why browser on the local host loaded the Tomcat front page just fine but not from any other machine on the network. Is there a new Tomcat option that disabled remote connection? Thanks for any tip... --Vincent _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot access Tomcat from remote box
Are you really sure that there is no firewall running? And what does you mean when mentioning that HTTPD traffic passes through? Have you also checked port 8080 which is Tomcat's default port? Here is output of iptables: Chain INPUT (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- anywhere anywhere Chain FORWARD (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain RH-Firewall-1-INPUT (2 references) target prot opt source destination ACCEPT all -- anywhere anywhere ACCEPT icmp -- anywhere anywhereicmp any ACCEPT ipv6-crypt-- anywhere anywhere ACCEPT ipv6-auth-- anywhere anywhere ACCEPT udp -- anywhere 224.0.0.251 udp dpt:5353 ACCEPT udp -- anywhere anywhereudp dpt:ipp ACCEPT all -- anywhere anywherestate RELATED,ESTABLISHED ACCEPT tcp -- anywhere anywherestate NEW tcp dpt:ssh ACCEPT tcp -- anywhere anywherestate NEW tcp dpt:http ACCEPT tcp -- anywhere anywherestate NEW tcp dpt:ftp REJECT all -- anywhere anywherereject-with icmp-host-prohibited But I have a few ideas: 1. Once again port 8080: When you try to access the server from another machine, which browser configuration do you have there? Do you use a proxy, and could it be that port 8080 is then disallowed? What does happen when you disable the proxy for the connections to the machine hosting the Tomcat server? when I telnet to that box and port 80, I connect just fine. when I telnet to that box and port 8080, I got no route to host. There is no proxy. 2. What does happen if you try to get a connection to the Tomcat server from another machine by using the ip address, i.e. http://192.168.0.80:8080/? If this should work, you should simply have a dns problem. The dns server, you are using, must have to know which ip belongs to thatbox so that it can resolve thatbox properly. I did try with just IP and I got the same behavior. 3. How did you configure the host and context? A mis-configuration can cause that the request in fact reaches the machine but Tomcat does not respond because it doesn't feel responsible due to the configuration settings. I am not even at that point yet. I just want to load the default index.jsp page that comes with Tomcat. I don't think I need to configure any context to load the first page, do I? thanks _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Asynchronous statistics logger
I'll agree using the Context Listener for starup/shutdown but you probably don't need to add JMS to the mix. As a first approach, you could simply switch all your logging to log4j. I haven't used it that much but I know it has many types of appenders (including JMS). Log4j is thread safe and is reported to scale well. If you need to go beyond that, then you will probably want to read up on Producer/Consumer type issues in a multithreaded environment. There are books written on these types of issues but for your type of situation the problem boils down to how you decouple the producers (the threads adding to the log) from the consumer (the TimerTask writing the log). A simple solution is to put a queue between the two and make sure that nothing is locked up for too long. Watch out for a common implementation mistake: having the consumer lock the queue while processing it. A better solution is to have the consumer take the queue and replace it with an empty one. Hope this helps, Vincent -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 5:11 AM To: Tomcat Users List Subject: RE: Asynchronous statistics logger this strikes me as being something JMS would handle well, but Tomcat doesn't support JMS by default. I have seen people installing openJMS on Tomcat though. as for the startup/shutdown, that's going to be a Context Listener you want to implement and add to web.xml with listener. that's about all i can offer on this, sorry :) -Original Message- From: Michael Cornell [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 10:04 To: [EMAIL PROTECTED] Subject: Asynchronous statistics logger Hi, I am trying to implement an asynchronous statistics logger that would load on startup and be destroyed on shutdown of tomcat. This logger then needs to write to a log file / to disk / to log4j every x seconds with these statistics. Methods to add some statistic to it need to be accessible by all other classes in the same context (eg public static void addPageHit(String whatPage, int howBigWasIt); ) I have already tried writing an asynchronous Singleton, but this has caused major havoc with threading issues (jdk1.4.2 tomcat 5.0.25 redhat linux 9.0). In addition I know this is not good practice. This singleton was using the Timer and TimerTask for its implementation. What is the best practice for implementing this sort of class ? Thanks Michael --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multipart/byteranges bug in tomcat 4.1.x
Thanks. I'll ask for some quick advice. Is it safer (stability wise) to upgrade to 5.0.x rather than directly to 5.5.x? Thanks, Vincent -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, November 22, 2004 2:38 PM To: 'Tomcat Users List' Subject: RE: multipart/byteranges bug in tomcat 4.1.x Fixed in CVS for TC4 but I wouldn't expect a 4.1.32 release for some time (New Year at the earliest). Mark -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 22, 2004 1:56 PM To: Tomcat Users List Subject: RE: multipart/byteranges bug in tomcat 4.1.x Hi, Don't hold your breath, upgrade if/when possible. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Vincent Gogan [mailto:[EMAIL PROTECTED] Sent: Friday, November 19, 2004 9:09 PM To: [EMAIL PROTECTED] Subject: multipart/byteranges bug in tomcat 4.1.x I had to write some byte-streaming code and it took me quite a while to find my problem because I had manged to get my behaviour byte-for-byte identical to Tomcat 4.1.x behaviour. My bug was that I wasn't outputting CRLF before each separator. The same bug still exists in DefaultServlet.java in Tomcat 4.1.31. I checked the 5.0.28 code and the bug was fixed. It might be nice to fix the old version of Tomcat as it is still quite heavily used. Regards, Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multipart/byteranges bug in tomcat 4.1.x
I had to write some byte-streaming code and it took me quite a while to find my problem because I had manged to get my behaviour byte-for-byte identical to Tomcat 4.1.x behaviour. My bug was that I wasn't outputting CRLF before each separator. The same bug still exists in DefaultServlet.java in Tomcat 4.1.31. I checked the 5.0.28 code and the bug was fixed. It might be nice to fix the old version of Tomcat as it is still quite heavily used. Regards, Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Just installed 5.5, Can't access localhost:8080
I have been using Tomcat 3.3 and have been able to start it and access it via localhost:80. I just downloaded 5.5 and installed it on my Windows XP. I think I have started the Tomcat 5.5 successfully. I can see Tomcat5w.exe running in the Windows Task Manager. However, I get a page cannot be displayed message when I go to localhost:8080. I changed server.xml to change tomcat's port to 80 since that port works for 3.3. However, that did not work either. Does anyone have any ideas of what might be wrong. I had a similar problem running after downloading opencyc a few weeks ago. I was able to download and run opencyc. I was able to communicate to it through the dos window but I couldn't access it via localhost. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Just installed 5.5, Can't access localhost:8080
Thanks. It worked. Actually I did unzip compat before but it just created another tomcat directory under my tomcat directory. I just manually put the files in my folder from winzip. Also, it only worked after I rebooted my machine. Vincent - Original Message - From: Remy Maucherat [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 11, 2004 12:36 PM Subject: Re: Just installed 5.5, Can't access localhost:8080 On Thu, 11 Nov 2004 12:02:13 -0800, Vincent Hikida [EMAIL PROTECTED] wrote: I have been using Tomcat 3.3 and have been able to start it and access it via localhost:80. I just downloaded 5.5 and installed it on my Windows XP. I think I have started the Tomcat 5.5 successfully. I can see Tomcat5w.exe running in the Windows Task Manager. However, I get a page cannot be displayed message when I go to localhost:8080. I changed server.xml to change tomcat's port to 80 since that port works for 3.3. However, that did not work either. If your not using JRE 5.0, you need to unzip the compat package inside the Tomcat installation directory. This is the likely cause of the problem (you should get a catalina.out file in the logs folder which will indicate the cause of the problem). -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
recursive tld problem in tag files?
I am trying to use JSP Documents and have run into a snag. If I use a tld for tag files, which I want to do so that I can mix tag-file entries and tag entries in the same namespace, and I reference that tld from inside a tag file defined in that tld, tomcat ends up in a loop never to return. If I'm lucky, I may get java.lang.StackOverflowError. I want to do this so that I can use other tags in the same namespace inside a tag. I am not calling the tag from inside itself, it is simply the tld that is referenced. If I remove the reference to the tld, the tag will run. Has anyone else run into this problem? I'm hoping there is something simple I am missing. My setup: Tomcat 5.0.27 on Windows XP JDK1.4.2_05 Sample code below. I can provide the StackOverflowError trace if it would be useful. Thanks, Vincent Bumgarner Home.jspx rmcore:page xmlns=http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml xmlns:rmcore=rmcore:1.0 [ home ] /rmcore:page tld: taglib xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd version=2.0 tlib-version1.0/tlib-version urirmcore:1.0/uri short-namermcore/short-name tag-file namepage/name path/WEB-INF/tags/core/page.tagx/path /tag-file tag nametabs/name pathcom.riskmetrics.web.tags.TabsTag/path /tag ... page.tagx html xmlns=http://www.w3.org/1999/xhtml; xmlns:rmcore=rmcore:1.0 ... rmcore:tabs / ...
setting classpath when running as service on win2k
hello ! where do we specify the classpath when when we launch tomcat 5 as service ? we tried to put the classpath in 'catalina.bat', in the tomcat configuration program (configure tomcat) but it seems that all this has no effect :/ and, an other problem: isn't it possible to update jars and classes in shared\lib or common\lib whithout reloading tomcat ? thanks ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Updating shared libs without reloading tomcat
hello ! We have developed several applications under tomcat 5. all of these applications use a lib we made, so we put it in shared/lib Is it possible to update this library without a tomcat reload ? (a context reload would be ok, but restarting tomcat would be a problem :/...) thanks for advice ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDIRealm in Tomcat 5
Hello All, I searched the archive but have not seen a situation like mine. I am in the process of upgrading to tomcat 5.0.16 from 4.1.29. I'm happy to say that my webapp seems to be running fine under tomcat 5 with one important exception. My configured JNDIRealm seems to be failing. The main problem is that I cannot seem to get the logger to report the realm's errors to me. I have the realm within engine and both engine and realm are set to debug=99. Is there something else I need to do? Thanks. Vincent smime.p7s Description: S/MIME Cryptographic Signature
How to access Server/Container from a web application (tomcat 4.1)
Could someone please point me at some sample code to access the Server/Containers from the web application. In particular, I would like to add a host alias dynamically. Is this possible without changing server.xml and restarting? Thanks, Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet Response Wrapper not able to get JSP data
Ok, I got this figured out. I was confused for a while where the data buffering happened: the buffering happens at the PrintWriter that I created when the getWriter() is called on the wrapper. So i need flush the print writer in order to make the data available to the underlying outputstream, which is my wrapper outpustream. Problem solved. sorry for the confusion. thanks - Do you Yahoo!? Free Pop-Up Blocker - Get it now
Servlet Response Wrapper not able to get JSP data: how to control flush?
I thought I should not be the only one with this issue, but I searched the tomcat-user and tomcat-dev mailing lists and could not find a good answer. There are some changes made between tomcat4.0.4 and tomcat4.1.18 and I can see the exact discussions on the tomcat-dev list (under the thread Costin: reverted the fix), but I did not see an answer to as how this should work. Forgive me if I missed some obvious answers. Here is my issue I have a Servlet 2.3 filter that encodes all jsp output. It works fine in tomcat 4.0.4 and not any more if I move to tomcat 4.1.18 (I did not try earlier 4.1.x versions though, I tried 4.1.29 and the problem remains). My filter does this in a very typical way: * before calling filterchain.doFilter it creates a response wrapper * the response wrapper will return a outpustream/writer wrapper for wrapped servlet/jsp to use * after filterchain.doFilter returns, the filter gets data out and do the encoding. then it writes the encoded data to the 'real' response (the response passed to it) The problem is the implementation of PageContextImpl.release() has changed. Previously it will call flush() but now it calls flushBuffer(). the latter does not flush data to my OutputStream/Writer wrapper so when the filterchain.doFilter returns from the jsp service, I could not get the result of the jsp. I could not get handle of the JspWriter that was used in the jsp page to force a flush since that is not in my scope. I could surely add a out.flush() in every jsp i wrote, but that seems too ugly to me, and it does not feel quite right either. Here is the comment put into PageContextImp.release() // Do not flush the buffer even if we're not included (i.e. // we are the main page. The servlet will flush it and close // the stream. However, since my fitler don't reference the jsp servlet I don't see how I could force the flush and close the stream. I see a followup email talking about * automatically generating out.flush at the end of the java code for a jsp * implement a partial flush And I could not see anything following up that. I read the Sun servlet spec, and I could not see a clear definition on this. It seems with the wrapper, the sense of 'commit' is not what it meant to be previously: in this case, I do want the data to be flushed (committed) but it has nothing to do with flushing data to the end user. I tried some popular CompressionFilter implementations and they fail on tomcat4.1.18 for the same reasons. So what is the recommendation? Thanks a lot Vincent - Do you Yahoo!? Free Pop-Up Blocker - Get it now
Re: Web App authentication
Jean-Francois, I don't think this'll work. The security-constraint tag defines what resources need to be protected. The authentication mode is defined in the login-config tag and you can only have one of those per application. I posted a workaround a couple of weeks ago. -Vincent. Jean-Francois Arcand wrote: Yes, just define two security-constraint, one for the FORM and one for BASIC and use a different url-pattern. The problem is they will have 2 different url pattenr which may not be convenient for your users. -- Jeanfrancois Matthew Oatham wrote: Hi, Is it possible to have a web app that uses both FORM and BASIC authentication or can only 1 be used ? Thanks Matt _ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session security questions?
Hi, all I am running tomcat as application server and using session to store objects which will determine what dynamic content will be displayed. It's typical, but I have the following question: 1. Where is the session variable stored? server side or client cookie? 2. If variables stored in server side, is it possible to fake it and is there a proof of concept exists? 3. If variable stored in client cookie, I have the same question for point 2. Thanks, Vincent - Yahoo! http://tw.promo.yahoo.com/mail_premium/stationery.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connection timeout Problem
MySQL drops the connection after a certain period of inactivity. Just add autoReconnect=true to you jdbc url: E.g. jdbc:mysql://localhost:3306/mydb?autoReconnect=true -Vincent. Gary Lee wrote: My tomcat 4.1.27 connects to mysql thu. jdbc driver. If I keep some connections overnite, i found they all got lost in the next morning, and hence my tomcat need to restart. does anybody has some hint? Thanks - Original Message - From: Veselin Kovacevic [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 4:17 PM Subject: RE: Problem with ConnectionPool on Linux You think DBCP 1.1? I try to install Tomcat 4.1.29 but I get some error with connection pool. Is there some changes in server.xml settings? -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 9:13 AM To: Tomcat Users List Subject: Re: Problem with ConnectionPool on Linux The new version of DBCP should be able to cope with this as well. I tested it with MaxDB and it works ok. Veselin Kovacevic wrote: Now, everything working fine. :) Thanks Jon. -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 4:50 PM To: Tomcat Users List Subject: Re: Problem with ConnectionPool on Linux MySql times out idle connections. If your pool implementation doesn't take care of weeding out dead connections you need to add autoReconnect=true to your connection string. HTH, Jon Veselin Kovacevic wrote: Hi, I have o problem with Tomcat 4.1.24 on SuseLinux7.3. Our application has Controller servlet (below) where using connection objects from connection pool. When tomcat started, application working fine and everything OK that day. But next day when we try to start application we get error message in isUser method (PortalUserDB class). It's first place where we use connection object in application. Method isUser is very simple method for authenticate user (below). We get this exception: SQL Exception:java.sql.SQLException: No operations allowed after connection closed Connection object is not null in this case, and this message for me is not correct. Next, if I restart tomcat, everything working ok... (for next day). On windows (we using windows for development platform) we have not this problem. What is problem? Is configuration server.xml or similar configuration files on Linux different rather on windows? Note: On both platform we using Tomcat 4.1.24 and j2sdk1.4.1_03. public class Controller extends HttpServlet { private DataSource ds; public void init(ServletConfig config) throws ServletException { super.init(config); try { InitialContext initCtx = new InitialContext(); Context envCtx = (Context)initCtx.lookup(java:comp/env); ds = (DataSource)envCtx.lookup(jdbc/MySQLPool); } catch (Exception e){ throw new UnavailableException(e.getMessage()); } } public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { request.setCharacterEncoding(iso-8859-2); if (ds != null) { Connection conn = ds.getConnection(); if (conn != null) { boolean isUserExists = PortalUserDB.isUser(conn, userName, userPass); conn.close(); } } } public static boolean isUser(Connection conn, String userName, String userPass) throws SQLException, IOException { String query = SELECT user_name FROM admin_user + WHERE user_name = ? + AND user_pass = ?; boolean isUserExists = false; try { PreparedStatement pstmt = conn.prepareStatement(query); pstmt.setString(1, userName); pstmt.setString(2, userPass); ResultSet rs = pstmt.executeQuery(); isUserExists = rs.next(); rs.close(); rs = null; pstmt.close(); pstmt = null; } catch (SQLException sqle) { PortalLog.addLogLine(Class: PortalUserDB, Method: isUser. SQL Exception: + sqle, userName); } return isUserExists; } Thanks, Veso - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL
Re: second try : help needed for tomcat -jsp issue
Not sure, I use Netscape. What;s different between your testing environment and your customer's environment? -Vincent. Venkatesh Rachapudi wrote: Hi Vincent, Yeah I will check out this, which option we have to look for finding the supported MIME types in the browser,I tried to look internet options, but I could not find any thing related to MIME types sorry to ask you more questions . Thanks for your help Regards Venkatesh -Original Message- From: Vincent Aumont [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 11:42 AM To: Tomcat Users List Subject: Re: second try : help needed for tomcat -jsp issue Check the supported mime types and associated applications for you customer's browser and compare with yours. -Vincent. Venkatesh Rachapudi wrote: Actually this is the entry page for getting into the application, Its happening in all the machines at the customer site,(though its not reproducable in our machines) We have checked it in InternetExplorer ONLY , as this application is good for IE , Regards Venkatesh -Original Message- From: Vincent Aumont [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 11:22 AM To: Tomcat Users List Subject: Re: second try : help needed for tomcat -jsp issue So the url you enter is a JSP? Maybe you should post it. Does it happen only with your customer's browser, or with any browser? -Vincent. Venkatesh Rachapudi wrote: Yeah sure, sorry for not providing the full info .. The application is MVC architecture,is being accessed by a servlet alias,which is correctly mapped in web.xml And the servlet will be sending the response through jsp, the jsp is very much there in the specified path. The version of tomcat is 3.1(2) , the server is up and running and the remaining functionlity is functioning well (calls landing .. This is a telecom product in which tomcat is a plugin) The version of jdk is 1.3 We have seen some solutions like upgrading jdk to 1.4 and reinstalling tomcat, But these are not acceptable to client. Please let me know if you know need any more information, Regards Venkatesh -Original Message- From: Schalk [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 10:57 AM To: 'Tomcat Users List' Subject: RE: second try : help needed for tomcat -jsp issue Can you give some more information as to how this URL is accessed? Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or diclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Venkatesh Rachapudi [mailto:[EMAIL PROTECTED] :: Sent: Tuesday, November 11, 2003 6:47 AM :: To: [EMAIL PROTECTED]; 'Tomcat Users List' :: Subject: second try : help needed for tomcat -jsp issue :: :: hi All :: how are you doing? :: i have an urgent issue with my client :: thought you are the person who can actually give the solution :: :: my customer is facing a problem , :: when he is trying access the application , by typing the url , :: the page is not opening in the browser, :: but its throwing up the dialog box for download , :: the server is tomcat :: and its up and running :: what will be the probem , do we need to set any configuration :: :: regards :: Venkatesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JBoss Mapping
This error messages tells you that your server is up but has no context for this url. So, in a way, you've got what you asked for. Did you define a context in server.xml? Something like: Context path=/test docBase=testapp Also, you should be able to see Tomcat's default page by pointing your browser at http://localhost:8080 (providing you did not modify the original server.xml file) -Vincent. [EMAIL PROTECTED] wrote: All, I need to know how to configure a context in JBoss I try to see if the server is up but I got the following error when I try to open a file HTTP Status 500 - No Context configured to process this request Regards, Salvador - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Authenticator valve at the host level, not possible?
Your valve is supposed to be initialized with a loginConfig object, itself initialized from the security constraints defined in a web.xml file. How can tomcat configure your valvle if it is not attached to a context (i.e. no web.xml)? -Vincent. Hi, I am trying to implement my own authentication system (extending AuthenticatorBase). I would like this valve to be set up at the host level so my server.xml, looks like Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Context path=/myContext docBase=ina debug=0 Manager classname=org.apache.catalina.session.StandardManager pathname= / Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=myLog. suffix=.log timestamp=true/ /Context Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Valve className=com.mycompany.MyAuthenticator debug=10 myParam1=p1 myParam2=p2/ /Host When I try to start my tomcat, it crashes at startup with the following : Catalina.start: java.lang.IllegalArgumentException: Configuration error: Must be attached to a Context java.lang.IllegalArgumentException: Configuration error: Must be attached to a Context at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.start(Catalina.java:449) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) First question : Am I trying to do it in the bad way? Second question : What can be the reason why it crashes when I attach my valve to the host but starts normally when I attach it to the context? Thanks for giving opinions. PS : any link to information related to custom authentication in tomcat is welcome!!! Cheers, Thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Realm Authentication and Password Change
A possible solution: - Your custom realm sets a session attribute to indicate that the password must be changed. - You create a filter that checks this attribute and redirect the use to the password change page if needed. -Vincent. Goal: Using forms based authentication, a user logs into a site with a valid user ID/password, and is redirected to a page explaining that the password has expired and user must change their password. What's a good way to reach this goal? I've been working with a custom realm module, so I know when the password needs to be changed, I just can't figure out how to redirect the user to the password change page. Thanks for any help, Jim Shain Sr. Architect Fidelity Information Services - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Realm Authentication and Password Change
session.setAttribute(). Don't forget to remove the attribute from the session when you're done, Actually, you should use a request attribute in this case. - Vincent Shain, Jim wrote: Vincent, Thanks! Great solution. How can I set a session variable in a custom realm? -Original Message- From: Vincent Aumont [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 10:24 AM To: Tomcat Users List Subject: Re: Realm Authentication and Password Change A possible solution: - Your custom realm sets a session attribute to indicate that the password must be changed. - You create a filter that checks this attribute and redirect the use to the password change page if needed. -Vincent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: second try : help needed for tomcat -jsp issue
If you get the download dialog, it is because your customer's browser does not know how to display this document (i.e. it does not recognize the MIME type) or because it was configured to open a Download dialog for this type of document. For instance, if you send a pdf file and the browser is not configured to launch Acrobat Reader for content of type application/pdf, the user will get a Download dialog. As Schalk pointed out, we need more information on what you're doing. -Vincent. Schalk wrote: Can you give some more information as to how this URL is accessed? Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or diclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Venkatesh Rachapudi [mailto:[EMAIL PROTECTED] :: Sent: Tuesday, November 11, 2003 6:47 AM :: To: [EMAIL PROTECTED]; 'Tomcat Users List' :: Subject: second try : help needed for tomcat -jsp issue :: :: hi All :: how are you doing? :: i have an urgent issue with my client :: thought you are the person who can actually give the solution :: :: my customer is facing a problem , :: when he is trying access the application , by typing the url , :: the page is not opening in the browser, :: but its throwing up the dialog box for download , :: the server is tomcat :: and its up and running :: what will be the probem , do we need to set any configuration :: :: regards :: Venkatesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: second try : help needed for tomcat -jsp issue
So the url you enter is a JSP? Maybe you should post it. Does it happen only with your customer's browser, or with any browser? -Vincent. Venkatesh Rachapudi wrote: Yeah sure, sorry for not providing the full info .. The application is MVC architecture,is being accessed by a servlet alias,which is correctly mapped in web.xml And the servlet will be sending the response through jsp, the jsp is very much there in the specified path. The version of tomcat is 3.1(2) , the server is up and running and the remaining functionlity is functioning well (calls landing .. This is a telecom product in which tomcat is a plugin) The version of jdk is 1.3 We have seen some solutions like upgrading jdk to 1.4 and reinstalling tomcat, But these are not acceptable to client. Please let me know if you know need any more information, Regards Venkatesh -Original Message- From: Schalk [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 10:57 AM To: 'Tomcat Users List' Subject: RE: second try : help needed for tomcat -jsp issue Can you give some more information as to how this URL is accessed? Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or diclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Venkatesh Rachapudi [mailto:[EMAIL PROTECTED] :: Sent: Tuesday, November 11, 2003 6:47 AM :: To: [EMAIL PROTECTED]; 'Tomcat Users List' :: Subject: second try : help needed for tomcat -jsp issue :: :: hi All :: how are you doing? :: i have an urgent issue with my client :: thought you are the person who can actually give the solution :: :: my customer is facing a problem , :: when he is trying access the application , by typing the url , :: the page is not opening in the browser, :: but its throwing up the dialog box for download , :: the server is tomcat :: and its up and running :: what will be the probem , do we need to set any configuration :: :: regards :: Venkatesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: second try : help needed for tomcat -jsp issue
Check the supported mime types and associated applications for you customer's browser and compare with yours. -Vincent. Venkatesh Rachapudi wrote: Actually this is the entry page for getting into the application, Its happening in all the machines at the customer site,(though its not reproducable in our machines) We have checked it in InternetExplorer ONLY , as this application is good for IE , Regards Venkatesh -Original Message- From: Vincent Aumont [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 11:22 AM To: Tomcat Users List Subject: Re: second try : help needed for tomcat -jsp issue So the url you enter is a JSP? Maybe you should post it. Does it happen only with your customer's browser, or with any browser? -Vincent. Venkatesh Rachapudi wrote: Yeah sure, sorry for not providing the full info .. The application is MVC architecture,is being accessed by a servlet alias,which is correctly mapped in web.xml And the servlet will be sending the response through jsp, the jsp is very much there in the specified path. The version of tomcat is 3.1(2) , the server is up and running and the remaining functionlity is functioning well (calls landing .. This is a telecom product in which tomcat is a plugin) The version of jdk is 1.3 We have seen some solutions like upgrading jdk to 1.4 and reinstalling tomcat, But these are not acceptable to client. Please let me know if you know need any more information, Regards Venkatesh -Original Message- From: Schalk [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 10:57 AM To: 'Tomcat Users List' Subject: RE: second try : help needed for tomcat -jsp issue Can you give some more information as to how this URL is accessed? Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or diclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Venkatesh Rachapudi [mailto:[EMAIL PROTECTED] :: Sent: Tuesday, November 11, 2003 6:47 AM :: To: [EMAIL PROTECTED]; 'Tomcat Users List' :: Subject: second try : help needed for tomcat -jsp issue :: :: hi All :: how are you doing? :: i have an urgent issue with my client :: thought you are the person who can actually give the solution :: :: my customer is facing a problem , :: when he is trying access the application , by typing the url , :: the page is not opening in the browser, :: but its throwing up the dialog box for download , :: the server is tomcat :: and its up and running :: what will be the probem , do we need to set any configuration :: :: regards :: Venkatesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_proxy / JBOSS
You insert this connector in tomcat's server.xml. You must specify the proxy's port and (optionally) the proxy's name in the Connector tag. For instance, if you proxy port 80 to port 8080 for the www.foo domain, your connector will look like this: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=6 proxyName=www.foo.com proxyPort=80 -Vincent. Gustavo Gomes wrote: Can anyone help me with integration Apache + JBOSS with mod_proxy!? I know the configuration of apache to make this, but what I configure in JBOSS, and in which file? I have to insert this command where? !-- A HTTP Connector on port 8080 -- Connector className = org.apache.catalina.connector.http.HttpConnector port = 8080 minProcessors = 3 maxProcessors = 10 enableLookups = true acceptCount = 10 debug = 0 connectionTimeout = 6/ Help please. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Opinions
No need to be annoyed (or to buy a bigger monitor). This post was about Java's portability and the notion of process ownership. My point was that you can't have native support for this feature because not all OS's support it. That's why you have to include native code for a particular S. I know commons-deamons works on *Nix (Solaris, Linux, etc) but I'm not sure about other operating systems. Hence the comment: it's doable but not portable. -Vincent. Rodrigo Ruiz wrote: Jejeje, people (in general) should buy better monitors. It looks like they skip more than one line when reading on-line docs ;-) Shapira, Yoav wrote: Howdy, feature natively. Jakarta Commons' deamon is a unix-only solution (I imagine it uses JNI). So its's possible, but not portable. Still an advanced language... -Vincent. Aarrggh, Monday morning and I'm already annoyed. Where did you get the idea commons-daemon is unix only? It works on unix and win32 platforms. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Basic and Form authhentication in the same webapp (revisited). Request for opinions
How do you manage the case when someone else deploy a web app that requires basic authentication using the browser? If Tomcat is used only by your app, then your solution seems correct. An HTML browser will never require Basic Auth. The downside if this solution is that it ties me to Tomcat. I'm ready to pay that price. If we later need to switch to another container, I'll split the webapp in two. -Vincent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Basic and Form authhentication in the same webapp (revisited). Request for opinions
An HTML browser will never require Basic Auth. ?? Why? I'm missing something here.in web.xml, what do you do if I chose BASIC instead of FORM? If your browser can accept HTML, then it can use FORM authentication. It is documented that you must use FORM authentication in web.xml when you deploy the app. Even if you don't, it should still work (as long as you specify the login and error page in the login-config tag) because teh authenticator Tomcat creates after reding web.xml is never called. I use web.xml just to make sure that the LoginConfig instance that gets passed to my authenticator contains the right information. -Vincent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirecting request.
You should consider front-ending you application with Apache (with mod_rewrite, mod_proxy, or mod_jk2). Alternatively, you can use your favorite firewall to rewrite incoming requests. IvanLatysh wrote: Hello, Vincent! You wrote to Tomcat Users List [EMAIL PROTECTED] on Sat, 01 Nov 2003 15:17:39 -0800: VA Have you considered Apache's mod_rewrite? I am not running Apache, Tomcat only. How I can redirect incoming request from one virtual host to another. For example I have : host.dm, www.host.dm, www1.host.dm I need to redirect all incoming requests to host.dm Alias doesn't work for me, because we have SSL certificate only for host.dm Is there are any default way to redirect the requests ? --- Regards Ivan[a]yourmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Basic and Form authhentication in the same webapp (revisited). Request for opinions
Hello, I need your opinion on a solution I found to allow a single webapp to support two authentication modes. The application Im working on has two types of clients: HTML and WML. The controller (Struts) can forward a request to the appropriate JSP, depending on the clients type. WML clients (PDAs) are limited to Basic authentication; I want to use FORM authentication for HTML clients. Because the Servlet 2.3 specs do not allow to specify more than one authentication mode in web.xml, I have to use 2 webapps if I want to stay compliant. Last week I posted a solution to work around this, only to realize that it does not work. I found this other solution: 1) I declare the security constraints in web.xml as usual. I set the authentication mode to FORM. 2) I have two custom classes: MyBasicAuthenticator and MyFormAuthenticator that inherit from BasicAuthenticator and FormAuthenticator, respectively. 3) By nature, these two classes also implement the Valve interface. I register them in my webapps context (in web.xml): Context path=/test docBase=/home/test Valve className=PortalBasicAuthenticator/ Valve className=PortalFormAuthentication/ /Context 4) These classes do nothing but invoke their super class it the client has the appropriate type: public class MyBasicAuthenticator{ public void invoke(Request request, Response response, ValveContext context) throws IOException, ServletException { if (isWMLClient(request)) { super.invoke(); } else { context.invokeNext(request, response); } } public class MyFormAuthenticator{ public void invoke(Request request, Response response, ValveContext context) throws IOException, ServletException { if (isHTMLClient(request)) { super.invoke(); } else { context.invokeNext(request, response); } } Here is how it works: - Setting the security constraints in web.xml will cause Tomact to add a FormAuthenticator valve in the pipeline. - TC will never execute that particular valve because the two valves I have added to my context will be executed first and will take care of authentication. - When a WML client makes a request, MyBasicAuthenticator traps it and executes Tomcat's BasicAuthenticatot code. Because I defined the security constraints in web.xml, the authenticator receives the right login info (protected urls, roles, etc.). If the user enters valid credentials, the form authenticator tomcat created wont be called because we already have a Principal. If the user provides invalid credentials, the user gets an error and the pipeline is interrupted. Therefore, the form authenticator Tomcat created wont be called either. - Same thing for a request from an HTML client: MyFormAuthenticator will traps the request and take care of the authentication. I tried it and it seems to work fine. Can you think of any gotchas? Am I missing something obvious? Is there a simpler solution? Thanks, -Vincent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Opinions
No, you're right. You can make Apache listen on port 80 while running as root because it'll change the process' ownership when it opens a new connection. There is no portable way of doing this in Java; therefore, Hey! And they call it an advanced language? P.S.: One or two trolls are hiding in this message, please do NOT feed! Can't resist the urge to feed that one ;) It's just that Java being cross-platform and the notion of process owner being specific to only a few platforms, Java does not suports this feature natively. Jakarta Commons' deamon is a unix-only solution (I imagine it uses JNI). So its's possible, but not portable. Still an advanced language... -Vincent.
Re: JNDI problem using 4.1.27
Could you post your server.xml file? You attachment did not make it to the list. -Vincent. Anderson, James H [IT] wrote: I can't seem to get JNDI working. I'm trying to access an MySQL database via JNDI and it's not working. catalina.out contains this msg: DBCP borrowObject failed: ..., underlying cause: Unexpected end of input stream The following compressed tar file contains portions of all the relevant files, AFAIK. Any help greatly appreciated! jndi.problem.tar.gz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirecting request.
Have you considered Apache's mod_rewrite? IvanLatysh wrote: Hello, All! How I can redirect incoming request from one virtual host to another. For example I have : host.dm, www.host.dm, www1.host.dm I need to redirect all incoming requests to host.dm Alias doesn't work for me, because we have SSL certificate only for host.dm Is there are any default way to redirect the requests ? P.S. Posting it again, the previous one didn't get thru. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Opinions
François, Oh, and last but not least, I didn't find a privilege separation method in tomcat (like in apache or ssh or postfix, or...). Perhaps am I wrong, but, if you want tomcat to run in unpriviledge environment, you have to make it bind to a public port (say 8080). I use iptables to redirect connections from 80 to 8080: No, you're right. You can make Apache listen on port 80 while running as root because it'll change the process' ownership when it opens a new connection. There is no portable way of doing this in Java; therefore, you have to run Tomcat as root if you want to make it listen on port 80. Of course, that's a major security hole. I always front-end TC with Apache and use mod_proxy to achieve what you're doing with iptables. -Vincent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using BASIC and FORM authentication in the same webapp
Hi, My application has two types of clients: HTML and WML (for small devices). The controller (Struts) takes care of selecting the appropriate JSP (html or wml) for each client. WML clients must use BASIC authentication (they dont support cookies and url rewriting is not an option). For HTML clients, I want to use FORM authentication. Unfortunately, the servlet spec supports only one authentication method per web application. I started by creating two web apps, differing only by the authentication mode definition in web.xml. But I really want to have one single application. My solution consists in adding a Valve that sets the right authenticator in the pipeline, based on the client type (I determine the clients type by examining the request header). The code looks like this: public void invoke(Request request, Response response, ValveContext context) throws IOException, ServletException { if ((request instanceof HttpServletRequest) ((HttpServletRequest) request).getUserPrincipal() == null) { if (request.getContext() instanceof ContainerBase) { ContainerBase container = (ContainerBase) request.getContext(); // remove the existing authenticator Valve[] valves = container.getValves(); for (int i=0;ivalves.length;i++){ if (valves[i] instanceof Authenticator){ container.removeValve(authenticator); } } // add the apropriate authenticator Authenitcator authentication = new container.addValve((Valve)authenticator); // Next valve context.invokeNext(request, response); } Can you think of a better/smarter way to achieve the same result? Thanks, -Vincent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat dropping sessions under load
Hi I am running tomcat 4.1.24 in its default configuration on suse 7.2, connected to apache via ajp13 (jdk1.3.1_07). Tomcat has been performing well over the past 6 months, however an incident occurred recently that has caused alarm.The web application has been steadily increasing in number of users/connections and on the day in question a number of users remarked how the site was slow and were seeing error 500's. Catalina's output showed sessions being 'lost' and mod_jk.log showed ajp13_process_callback - write failed. Is this a performance problem with Tomcat 4 and/or mod_jk? is there a simple solution for fixing it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
servlet execution help
Dear All, I have a servlet config issue. I have been developing an application on a Sun-Solaris/Tomcat 4.1.18 platform. I have modified the server.xml to include my own application domain. It has some JSP and also some servlet which I placed under TOMCAT_HOME/webapps/my_app/WEB-INF/classes. They are all working just fine. I am starting to port over to a Linux environment and running Tomcat 4.1.27. Serlvet has been placed under the same directory under webapps/my_app/WEB-INF/classes. However, under this new setting, I got a 404, servlet not available message. I tried comparing all config files, could see anything different. No error messages are available in the log directory either. Can someone suggest where I am doing wrong? Tha nks --Vincent
servlet execution help
Sorry for my earlier post. I found the answer in the release notes... sorry --Vincent
Need help : how to shutdown restart Tomcat, how to reload servlet
Dear Tomcat user, I have two problem here, hope anyone who know can help to teach me. Problem 1: How to shutdown and restart tomcat server? Description: I try to shutdown and restart Tomcat using shutdown and startup batch file. I notice some error prompt out when I running shutdown.bat and startup.bat in command prompt. The message I capture during run shutdown.bat in command prompt in Windows XP is as below : Using Catalina_Base: C:\Program Files\Apache Group\Tomcat 4.1 Using Catalina_Home: C:\Program Files\Apache Group\Tomcat 4.1 Using Catalina_Tmpdir: C:\Program Files\Apache Group\Tomcat 4.1\temp Using Java_Home: C:\J2sdk1.4.0 Catalina.stop: Java.net.ConnectException:Connection refused:connect java.net.ConnectException:Connection refuse: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295) at java.net.PlainSocketImpl.connecToAddress(PlainSocketImpl.java:161) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148) at java.net.Socket.connect(Socket.java:425) at java.net.Socket.connect(Socket.java:375) at java.net.Socket.(init)(Socket.java:290) at java.net.Socket.(init)(Socket.java:110) at org.apache.catalina.startup.Catalina.stop(Catalina.java:579) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccesorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) Remark : Currently I m using Apache Tomcat/4.1.12-LE-jdk14 Problem 2: How to reload the servlet program after modified? Description : Everytime I change the servlet program I need to restart my pc. Anyone know how to reload my servlet program without restart the pc. Thanks in advance Vincent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat manager not working
I'm a real newbie in tomcat installation, but I know a bit about apache and linux. I've successfully installed Tomcat 4.1.24 with Apache 2.0.45 and mod_jk. I'm using IBM Java2 1.31. Everything is working fine : both PHP and JSP rulez ;-) My only problem is using Tomcat manager. Through Apache, I only see the directory listing of the manager's directory ($CATALINA_HOME/server/webapps/manager/). This directory listing is rendered by tomcat, not apache. However, when bypassing Apache mod_jk (I mean talking directly to tomcat, on it's own port), it works just fine : manager servlet is OK. If anyone has had the same problem and solved it, please tell me. If not, as I'm a newbie, could you tell me which log should I look for more information about this problem ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and IIS 6.0??
Welcome to the club I had the same problem, but no response up til now Hope you will be more lucky Vince -Message d'origine- De : Reynir Hübner [mailto:[EMAIL PROTECTED] Envoyé : lundi 16 juin 2003 18:10 À : Tomcat Users List Objet : RE: Tomcat and IIS 6.0?? I've been trying this, with out luck. The connector does not work between the two, maybe it's enough to build it on win2003... I'm hoping someone will take a look at this soon. Bye -reynir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 16. júní 2003 16:11 To: [EMAIL PROTECTED] Subject: Tomcat and IIS 6.0?? Hi! Is it possible to combine Tomcat with IIS 6.0 (Win 2003)? I've tried without luck. Do I do something wrong or is it impossible. Can I use the same isapi_redirect.dll as for IIS 5.0 (everything works fine on IIS 5) /cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat connector for Windows Server 2003/IIS 6
Hi, I successfully use Jakarta Tomcat connector on a Windows Server 2000/IIS 5 platform http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.3/bin/win32/isapi_redirect.dll I tried the same connector on the W2K3/IIS 6 platform, but it doesn' t work Does anybody knows if a new connector exists for Windows Server 2003/IIS 6? Thanks in advance Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error starting apache w/ mod_jk2
you can get the connectors at: http://jakarta.apache.org/builds/jakarta-tomcat-connectors you'll choose either jk or jk2. jk2 supercedes jk. here is some documentation: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html http://www.pubbitch.org/jboss/mod_jk2.html cheers, On Giovedì, mag 29, 2003, at 20:54 US/Pacific, deepa_narayanan wrote: Hi, I also need to use apache 2.0.45 and tomcat 4.1.24 , on Unix (solaris) and Win2000. Please can you guide me as to what connector is to be used and where to get the downloadables of alll these Regards, Deepa -Original Message- From: Vincent J. Buonassisi [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 4:42 AM To: Tomcat Users List Subject: Re: error starting apache w/ mod_jk2 hi, i installed apache 2.0.45 as per your suggestion of using a different one than the one that comes w/ redhat. however, i did read an email sent a couple of days ago by pascal chong where he writes that when his apache2 successfully loaded mod_jk2 he would get the following in the apache error_log file: [Tue May 27 13:45:45 2003] [notice] workerEnv.init() ok /etc/httpd2/conf/workers2.properties [Tue May 27 13:45:45 2003] [notice] mod_jk child init 1 -1 so, it seems to me that apache or mod_jk2 is trying to say that something is wrong when being loaded w/o giving the slightest hint as to what it could be. any suggestions? thanks, vince On Mercoledì, mag 28, 2003, at 17:54 US/Pacific, Chong Yu Meng wrote: Vincent J. Buonassisi wrote: hi, i am using apache 2.0.45 and tomcat 4.1.24 on redhat 8.0. i am able to start tomcat just fine and am able to connect to it thru my web browser. but, when i start up apache i get the following error: [Wed May 28 15:40:32 2003] [notice] Digest: generating secret for digest authentication ... [Wed May 28 15:40:32 2003] [notice] Digest: done [Wed May 28 15:40:33 2003] [error] mod_jk child init 1 0 [Wed May 28 15:40:33 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations Vincent, That does not look like an error. An annoyance maybe. In any case, you should not be using Red Hat's httpd because it appears to be buggy (according to some accounts). Use the rpms from Falsehope (http://ftp.falsehope.com/home/gomez/apache2/). Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RPM for Tomcat 4.1.24 and JDK 1.4
hi, in your howto document you set up two listeners. can you explain to me why you did this? thanks, Don't use the LE version...it's a special purpose distribution. Also, in my opinion, you're much better off downloading the binary install of Tomcat, not the RPM. Download the binary, unpack it, set CATALINA_HOME, and start it up...its that easy. All covered in my HOWTO: http://www.johnturner.com/howto (ignore the parts about installing Apache and the JK connector and check out the part on installing Tomcat). John On Fri, 30 May 2003 12:12:12 -0400, Scott Ahten [EMAIL PROTECTED] wrote: Hello everyone, I'm trying to install the light version of Tomcat 4.1.24 on Redhat Linux 7.3 from the RPM on the Jakarta site, but It fails due to the following dependencies. java_parser_impl xml-commons-apis I have already installed the Java 1.4 JDK RPM from the Sun website J2sdk-1_4_1_02-fcs-linux-i586.rpm Being new to Linux, I'm unsure where to find these additional packages and have the following questions about RPMs in general. 01. When a dependency is listed, is it linked to a particular RPM file or can any RPM that installs the same components work? I imagine multiple RPMs can be used, since projects like Tomcat are split up into multiple RPM files to allow updating individual components. 02. If so, how do I know which RPM file fulfills a particular dependency, such as javap_parser_impl? I haven't had much success searching for RPMs that have the characters javap_parser_impl in it's name. Also, can a single RPM provide support for more than one dependency? Sites like http://www.jpackage.org/ and http://rpmfind.net list many packages, but do not specify which dependency they resolve. Thanks, ~Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: libjkjni.so
hi pascal, that worked! the jk2.socket file is being created and apache seems to be using it after i changed the permissions on the file. but, i am getting the following error when the service starts: Starting service Tomcat-Standalone Apache Tomcat/4.1 May 30, 2003 8:38:57 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8180 [Fri May 30 08:38:57 2003] (error ) [jk_config_file.c (279)] config.update(): Can't find config file ${serverRoot}/conf/workers2.properties [Fri May 30 08:38:57 2003] ( info ) [jk_config.c (251)] config.setAttribute() Error setting config: file ${serverRoot}/conf/workers2.properties [Fri May 30 08:38:57 2003] ( info ) [jk_logger_file.c (184)] Initializing log file stderr [Fri May 30 08:38:57 2003] (error ) [jk_shm.c (333)] shm.init(): No file [Fri May 30 08:38:57 2003] ( info ) [jk_workerEnv.c (403)] workerEnv.init() ok ${serverRoot}/conf/workers2.properties May 30, 2003 8:38:57 AM org.apache.jk.apr.AprImpl init INFO: JK2: Initialized apr May 30, 2003 8:38:57 AM org.apache.jk.common.ChannelUn init INFO: JK: listening on unix socket: /var/tomcat4/work/jk2.socket [Fri May 30 08:38:57 2003] ( info ) [jk_jni_aprImpl.c (472)] jkInvoke() invoke 4d434c76 May 30, 2003 8:38:57 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 May 30, 2003 8:38:57 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=2/239 config=/var/tomcat4/conf/jk2.properties why would tomcat be trying to access the workers2.properties file? i thought this file was for the web server. thanks, On Giovedì, mag 29, 2003, at 17:02 US/Pacific, Chong Yu Meng wrote: Vincent J. Buonassisi wrote: INFO: APR not loaded, disabling jni components: java.io.IOException: no jkjni in java.library.path i read someplace that libjkjni.so should be placed in $catalina_home/bin so i put it in there. but, it didn't make a difference. should it be placed somewhere else? You need to create a symbolic link from your existing jkjni.so. For example, suppose you have jkjni.so inside /usr/lib/apache, you will need to do this : ln -s /usr/lib/apache/jkjni.so $JAVA_HOME/jre/bin/libjkjni.so export LD_LIBRARY_PATH=$JAVA_HOME/jre/bin:$JAVA_HOME/jre/bin/ classic:$LD_LIBRARY_PATH Hope this helps ! Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat / Apache / JK2 impossible??
try putting the following line in your workers2.properties: [shm] file=/etc/httpd/logs/shm.file size=1048576 On Giovedì, mag 29, 2003, at 03:27 US/Pacific, David Reche Martinez wrote: Hi again, Your first link don't tell anything about jk2 configuration and the faq's don't say anything new. I had been doing all LIKE they say. But don't work. Help me please. :-( - Original Message - From: Jason Bainbridge [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, May 29, 2003 9:53 AM Subject: Re: Tomcat / Apache / JK2 impossible?? It is very possible, many of us are doing it as we speak... Check out: http://www.johnturner.com/howto/apache-tomcat-howto.html and http://tomcatfaq.sourceforge.net Then go from there, if you still have problems then let us know. Regards, -- Jason Bainbridge KDE Web Team - http://kde.org [EMAIL PROTECTED] On Thu, 29 May 2003 15:29, David Reche Martinez wrote: Hi All, I'm trying to integrate Apache and Tomcat using jk2 but I can't reach it This is my configuration: Apache 2.0.45 Tomcat 4.1.24 JK2 (2.0.1) This are each configuration file: ***httpd.conf*** ... LoadModule jk2_module modules/mod_jk2.so ... ***jk2.properties*** All the file is commented ***workers2.properties*** # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp ***server.xml*** ... Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ ... When I try to access http:/server/examples Apache throw an error. This is all the error message in the error_log: [Wed May 28 16:05:21 2003] [error] shm.init(): No file [Wed May 28 16:05:21 2003] [notice] Apache/2.0.45 (Unix) mod_jk2/2.0.0 configured -- resuming normal operations [Wed May 28 16:05:21 2003] [error] shm.init(): No file [Wed May 28 16:05:21 2003] [error] shm.init(): No file [Wed May 28 16:05:21 2003] [error] shm.init(): No file [Wed May 28 16:05:21 2003] [error] shm.init(): No file [Wed May 28 16:05:21 2003] [error] shm.init(): No file [Wed May 28 16:05:26 2003] [error] shm.init(): No file [Wed May 28 16:05:34 2003] [error] workerEnv.init() create slot epStat.0 failed [Wed May 28 16:05:34 2003] [error] lb.service() worker failed ajp13:localhost:8009 [Wed May 28 16:05:34 2003] [error] lb.service() unrecoverable error... [Wed May 28 16:05:34 2003] [error] mod_jk.handler() Error connecting to tomcat 12 [Wed May 28 16:06:24 2003] [error] workerEnv.init() create slot epStat.2 failed [Wed May 28 16:06:24 2003] [error] lb.service() worker failed ajp13:localhost:8009 [Wed May 28 16:06:24 2003] [error] lb.service() unrecoverable error... [Wed May 28 16:06:24 2003] [error] mod_jk.handler() Error connecting to tomcat 12 I hope you can help me in this trouble. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
libjkjni.so
hi, in the catalina.out file i'm getting the following error: INFO: APR not loaded, disabling jni components: java.io.IOException: no jkjni in java.library.path i'm confused as to why this library is being searched in the java.library.path since this is a .so file. is there another jkjni file? i read someplace that libjkjni.so should be placed in $catalina_home/bin so i put it in there. but, it didn't make a difference. should it be placed somewhere else? thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ant error compiling native2
i was able to build the mod_jk2.so by building it from the jk directory instead of the native2 directory. i did have to make a change to build.xml file because it was building the native directory and i didn't have apache 1.3 installed. i commented out the task to build the native directory. i'm using apache2 so i can't send you a mod_jk2.so for apache1. however, if you are having compile problems make sure that you installed the development rpm for apache1 so that you get the include files and libraries needed to build the library. or, how about the rpm located here: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/ v1.2.2/rpms/ cheers, On Giovedì, mag 29, 2003, at 14:55 US/Pacific, Benjamin Cox wrote: I wish I could help you :-( In the meantime, does anyone know where I can get a binary version of mod_jk2.so for red hat 7.2, apache 1.3, tomcat 4.1? I have tried a number of times and ways to get Apache and Tomcat talking happily, and all roads seem to end here! Since I can't build the connector, either, and nobody seems interested in the problem, perhaps someone can send me their binary, or point me to one? Thanks, Ben Vincent J. Buonassisi wrote: hi, i am trying to compile jakarta-tomcat-connectors-4.1.24-src/jk/native2 using ant and i am getting the following ant error: BUILD FAILED file:/tmp/jakarta-tomcat-connectors-4.1.24-src/jk/native2/ build.xml:276: Could not create task or type of type: so. does anyone know where i can find the ant task 'so'? it doesn't seem to be a core task or a contrib task. and i can't find in the optional tasks. thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error starting apache w/ mod_jk2
hi, i installed apache 2.0.45 as per your suggestion of using a different one than the one that comes w/ redhat. however, i did read an email sent a couple of days ago by pascal chong where he writes that when his apache2 successfully loaded mod_jk2 he would get the following in the apache error_log file: [Tue May 27 13:45:45 2003] [notice] workerEnv.init() ok /etc/httpd2/conf/workers2.properties [Tue May 27 13:45:45 2003] [notice] mod_jk child init 1 -1 so, it seems to me that apache or mod_jk2 is trying to say that something is wrong when being loaded w/o giving the slightest hint as to what it could be. any suggestions? thanks, vince On Mercoledì, mag 28, 2003, at 17:54 US/Pacific, Chong Yu Meng wrote: Vincent J. Buonassisi wrote: hi, i am using apache 2.0.45 and tomcat 4.1.24 on redhat 8.0. i am able to start tomcat just fine and am able to connect to it thru my web browser. but, when i start up apache i get the following error: [Wed May 28 15:40:32 2003] [notice] Digest: generating secret for digest authentication ... [Wed May 28 15:40:32 2003] [notice] Digest: done [Wed May 28 15:40:33 2003] [error] mod_jk child init 1 0 [Wed May 28 15:40:33 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations Vincent, That does not look like an error. An annoyance maybe. In any case, you should not be using Red Hat's httpd because it appears to be buggy (according to some accounts). Use the rpms from Falsehope (http://ftp.falsehope.com/home/gomez/apache2/). Regards, pascal chong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache2/Tomcat/mod_jk2/ajp13
i wish i could better help you but i am having problems as well in trying to get these components working together. but, i will try to give you meager comments based on my reading/experience. one question: were you able to get rid of the mod_jk2 error at startup in apache ([error] mod_jk child init 1 0) that you wrote about earlier? also: ---jk2.properties --- #list of needed handlers handler.list=apr,channelSocket,request #Set the derault port for the channelSocket channelSocket.port=8089 #Information about a UNIX domain socket - we don't have this. Supposedly, the #UNIX domain socket is used for speed only #if this is used, add channelUnix to the handler.list above #channel.Unix.file=/home/gmh2441/uPortal/Tomcat_4-0-4/work/jk2.socket #Dynamic library serverRoot=/opt/apache # This will enable the starting of the Tomcat from mod_jk2 apr.jniModeSo=/opt/apache/modules/mod_jk2.so ---jk2.properties --- And here begin my questions. - I cannot find a jk2.socket file anywhere - is this somewhere in the Tomcat configs? i believe that the file jk2.socket should be created on the tomcat side when tomcat starts up and reads the jk2.properties file (i think that the file is read if you have defined a jk2 connector in the server.xml file). however, i see that you have the line for creating this socket commented out and you also don't list the unix domain socket (channelUnix) in the handler list handler.list. - notice the directory /apache - this is acutally a symbolic link (I'm on a UNIX system) - the directory is actually called httpd-2.0.45 - I've tried using the different names for it, and it doesn't seem to matter - or does it? it shouldn't matter. - as far as the UNIX domain socket and dynamic library go, the document said that without the dynamic library section the UNIX domain socket would fail, but a regular TCP/IP socket would still work. but UNIX domain sockets were much, much faster. So does that mean I should removed the part about the dynamic library if I'm using TCP/IP sockets? Here is workers2.properties, found in {Apache}/conf ---workers2.properties --- [shm] file=/var/adm/httpd-shm.mod_jk2 size=1048576 # Example socket channel [channel.socket:poivre.ucs.louisiana.edu:8089] info=Ajp13 forwarding over socket tomcatId=poivre.ucs.louisiana.edu:8089 #Needed for UNIX domain socket - but we don't have that #[channel.un:/home/gmh2441/uPortal/Tomcat_4-0-4/work/jk2.socket] #tomcatId=poivre.ucs.louisiana.edu:8089 #debug=0 # define the worker [ajp13:poivre.ucs.louisiana.edu:8089] #This uses the TCP/IP socket instead of the UNIX domain socket channel=channel.socket:poivre.ucs.louisiana.edu:8089 #Uncomment the next line to use the UNIX domain socket #channel=channel.un:/home/gmh2441/uPortal/Tomcat_4-0-4/work/jk2.socket #Announce a status worker [status:status] # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp worker=ajp13:poivre.ucs.louisiana.edu:8089 #Uncomment the next line to use the UNIX domain socket #worker=ajp13:/home/gmh2441/uPortal/Tomcat_4-0-4/work/jk2.socket #info=Map the whole examples webapp [uri:/jkstatus/*] worker=status:status ---workers2.properties --- Something else I've seen, under that #Example socket channel entry is that the port and host need to be explicity set, thusly: port=8089 host=130.70.132.204 (127.0.0.1 for localhost) - Does this info have to be there as well?a All this configuration info is based on the document on Apache 2, Tomcat 4.0.4 and mod_jk2 I found at http://www.pubbitch.org/jboss/mod_jk2.html - and according to this document, once these config files have been written and installed in the correct places, I need to start Tomcat, then Apache. First, I should view a normal tomcat connection by referencing a URL ending in 8080, or the port that the standard http connector is on. Then, (assuming the URL has been mapped in workers2.properties)(like /examples/*, I assume) try the equivalent URL by connecting to Apache instead - I take it that this last sentence means that if the first URL I viewed was, say, http://poivre.ucs.louisiana.edu:8080/examples, the next URL I should try would be http://poivre.ucs.louisiana.edu/examples - and I should get the same result, if the connector is working. Well, according to that status worker, and my Apache log, the mod_jk2 connector is installed and working fine. However, all I get going to that second URL is a blank page - even in the source of the page, all that's there is htmlbody/body/html. A httpd-xfer log file I have shows that each request returns a 400 (Bad Request), however when I go to /jkstatus instead, I get a 200 and a page with tables, showing various values and other information. I have tried this in several different browsers - that is one reason I haven't been using localhost but instead use my server's name - I can try it on a nearby PC as well. None of the docs I've found as yet tell me what to do if things don't go right - I'm not sure just
error starting apache w/ mod_jk2
hi, i am using apache 2.0.45 and tomcat 4.1.24 on redhat 8.0. i am able to start tomcat just fine and am able to connect to it thru my web browser. but, when i start up apache i get the following error: [Wed May 28 15:40:32 2003] [notice] Digest: generating secret for digest authentication ... [Wed May 28 15:40:32 2003] [notice] Digest: done [Wed May 28 15:40:33 2003] [error] mod_jk child init 1 0 [Wed May 28 15:40:33 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations i have followed the basic setup steps that i found in a howto guide. i have also made sure the socket file has the correct permissions: [EMAIL PROTECTED] conf]$ ll /var/tomcat4//work/ total 16 drwxrwxrwx4 root tomcat4 4096 May 28 16:24 ./ drwxr-xr-x4 root root 4096 May 22 12:37 ../ my jk2.properties file looks as follows: # Set the desired handler list handler.list=apr,request,channelUnix # channelUnix.file=/var/tomcat4/work/jk2.socket # Just to check if the the config is working shm.file=/var/tomcat4/work/jk2.shm # This will enable the starting of the Tomcat from mod_jk2 apr.jniModeSo=/etc/httpd/modules/mod_jk2.so and, my workers2.properties file looks as follows: # Shared memory handling. Needs to be set. [shm] file=/etc/httpd/logs/shm.file size=1048576 # Example UNIX domain socket [channel.un:/var/tomcat4/work/jk2.socket] tomcatId=localhost:8109 debug=0 # define the worker [ajp13:/var/tomcat4/work/jk2.socket] channel=channel.un:/var/tomcat4/work/jk2.socket # Announce a status worker [status:status] # URI mapping [uri:/examples/*] worker=ajp13:/var/tomcat4/work/jk2.socket [uri:/jkstatus/*] worker=status:status can someone please give some hints at what i should look at to make this configuration work? thanks, vince - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk installation
Where did you get your mod_jk ? According to what you say, you should download the following version : http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1/bin/linux/i386/mod_jk-1.3-eapi.so Also note that you should have mod_so compiled into apache in order to load dynamic modules : look at the output of httpd -l As we say in french, www.chezmoicamarche.org :) Vincent. On Fri, 2003-03-21 at 04:16, Tarun Ghanshyam Abhichandani wrote: Hi: I am trying to configure mod_jk 1.3 to work between Apache 1.3.27 with mod_ssl and Tomcat 4.1.18 on Linux Version 7.1. After installing Apache 1.3.27 and Tomcat 4.1.18 when I update httpsd.conf with following two lines LoadModule jk_module /libexec/mod_jk.so AddModule mod_jk.c And then when I restart Apache 1.3.27 I get the following error: = Cannot load /usr/local/apache_1.3.27/libexec/mod_jk.so into server: /usr/local/apache_1.3.27/libexec/mod_jk.so: undefined symbol: ap_ctx_get ./httpsdctl start: httpsd could not be started. === Any indications where am I going wrong? Thanks Tarun - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
Re: Do not understand tomcat-apache autoconfiguration
Well, thanks, but I've already read this. It is not really explaining WHERE are supposed to be those Listeners that turn tomcat ApacheConfig on. When you read the doc, it seems that you're supposed to put one listener inside the Server tag and another one inside each Context tag (remember I do not want to use Virtualhosting). It's not clear whether you're supposed to use append=true or not. In any cases, it does not generate what I want (and there also seems to be some bugs in here : restarting tomcat twice does not give the same mod_jk.conf). I've also tried to put them in many places whithout success. However, I recently found a mod_jk.conf shipped with a RedHat RPM and it seems to have been auto-generated as it contains the following lines : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location This group of directives is exactly what I need but I don't know how to tell tomcat to generate them automatically. I'm almost forced to make a perl script to do something like For each context you're managing, generate an Alias, a Directory and a JkMount for Apache (using perl to manage a java application server... a bit strange isn't it ? :-) On Thu, 2003-03-20 at 10:04, Bill Barker wrote: If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in directive to the 4.x auto-config. In the mean-time go back and read http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html#Using%20Apach eConfig. Vincent Panel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
Re: Do not understand tomcat-apache autoconfiguration
OK, thanks But it generates Virutalhost directives and inside, there's only JkMount's, no Directory, no Alias, right ? What I really need (and I'm pretty sure I'm not the only one) is something like this (for each of my contexts) : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location On Thu, 2003-03-20 at 15:56, Jacob Kjome wrote: Close. One inside the Server tag and one inside each Host tag that you want autogenerated. Here's mine... Server Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=mod_jk.dll jkDebug=info / ... ... ... Host ... Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / ... ... ... /Host ... ... ... /Server Jake At 02:09 PM 3/20/2003 +0100, you wrote: Well, thanks, but I've already read this. It is not really explaining WHERE are supposed to be those Listeners that turn tomcat ApacheConfig on. When you read the doc, it seems that you're supposed to put one listener inside the Server tag and another one inside each Context tag (remember I do not want to use Virtualhosting). It's not clear whether you're supposed to use append=true or not. In any cases, it does not generate what I want (and there also seems to be some bugs in here : restarting tomcat twice does not give the same mod_jk.conf). I've also tried to put them in many places whithout success. However, I recently found a mod_jk.conf shipped with a RedHat RPM and it seems to have been auto-generated as it contains the following lines : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location This group of directives is exactly what I need but I don't know how to tell tomcat to generate them automatically. I'm almost forced to make a perl script to do something like For each context you're managing, generate an Alias, a Directory and a JkMount for Apache (using perl to manage a java application server... a bit strange isn't it ? :-) On Thu, 2003-03-20 at 10:04, Bill Barker wrote: If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in directive to the 4.x auto-config. In the mean-time go back and read http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html#Using%20Apach eConfig. Vincent Panel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
Re: Do not understand tomcat-apache autoconfiguration
OK, thanks. It still seems impossible to avoid this virtualhosting feature if you do not want it. Moreover, after setting exacly the same parameters than (both of) you, these three lines do not appear in my mod_jk.conf : JkWorkersFile /usr/local/jakarta-tomcat-4.0.4/conf/jk/workers.properties JkLogFile /usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log JkLogLevel emerg But that's OK, I'll wait for another version adding a bit more flexibility. Meanwhile, I'll play it manually. Thank you all. Vincent. On Thu, 2003-03-20 at 16:12, John Turner wrote: Here's an example of exactly what it creates: http://www.johnturner.com/howto/mod_jk_conf.html John On 20 Mar 2003 16:06:41 +0100, Vincent Panel [EMAIL PROTECTED] wrote: OK, thanks But it generates Virutalhost directives and inside, there's only JkMount's, no Directory, no Alias, right ? What I really need (and I'm pretty sure I'm not the only one) is something like this (for each of my contexts) : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location On Thu, 2003-03-20 at 15:56, Jacob Kjome wrote: Close. One inside the Server tag and one inside each Host tag that you want autogenerated. Here's mine... Server Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=mod_jk.dll jkDebug=info / ... ... ... Host ... Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / ... ... ... /Host ... ... ... /Server Jake At 02:09 PM 3/20/2003 +0100, you wrote: Well, thanks, but I've already read this. It is not really explaining WHERE are supposed to be those Listeners that turn tomcat ApacheConfig on. When you read the doc, it seems that you're supposed to put one listener inside the Server tag and another one inside each Context tag (remember I do not want to use Virtualhosting). It's not clear whether you're supposed to use append=true or not. In any cases, it does not generate what I want (and there also seems to be some bugs in here : restarting tomcat twice does not give the same mod_jk.conf). I've also tried to put them in many places whithout success. However, I recently found a mod_jk.conf shipped with a RedHat RPM and it seems to have been auto-generated as it contains the following lines : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Directory /var/tomcat4/webapps/examples Options Indexes FollowSymLinks /Directory JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 Location /examples/WEB-INF/ AllowOverride None deny from all /Location This group of directives is exactly what I need but I don't know how to tell tomcat to generate them automatically. I'm almost forced to make a perl script to do something like For each context you're managing, generate an Alias, a Directory and a JkMount for Apache (using perl to manage a java application server... a bit strange isn't it ? :-) On Thu, 2003-03-20 at 10:04, Bill Barker wrote: If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in directive to the 4.x auto-config. In the mean-time go back and read http://jakarta.apache.org/tomcat/tomcat-4.1- doc/config/jk.html#Using%20Apach eConfig. Vincent Panel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part
Do not understand tomcat-apache autoconfiguration
Hi ! I've set up tomcat 1.4.1 and apache 1.3 to work together via autoconfiguration (generating a mod_jk.conf file). Here is the beginning of my server.xml file : Server port=8005 shutdown=SHUTDOWN debug=0 !-- Autoconfiguration of Apache - vpanel see http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html -- Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/etc/httpd/modules/mod_jk.so jkLog=/var/log/httpd/mod_jk.log jkDebug=debug forwardAll=true / Context name=localhost debug=0 appbase=webapps /Context The mod_jk.conf generated is : ## Auto generated on Wed Mar 19 17:23:51 CET 2003## IfModule !mod_jk.c LoadModule jk_module /etc/httpd/modules/mod_jk.so /IfModule JkWorkersFile /var/tomcat4/conf/jk/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel debug I do not want virtualhosts on my apache server, only directories. The problem is that there is no Directory, Alias nor JkMount directive being generated and I have to set them up myself in the httpd.conf. Is this supposed to be so ? (If it is the case, what is the interest of auconfiguration : the mod_jk.conf contains exactly the same directives as in my server.xml file!!) Is there any solution to make Tomcat virtualhosts appears as directories in the httpd.conf of apache ? Thanks. Vincent. signature.asc Description: This is a digitally signed message part
Error 500, no context configured
Hi, I'm installing an apache+tomcat server. Apache work with all the regular content on port 80 and tomcat work only with secure transaction on port 443. My problem is that I receive an error 500 in my browser : no context configured to process this request. In my log file, I have MAPPING configuration error for request URI. I have searched google,tomcat mailing-list archive and the manual. Nothing help me enough to solve the problem. There is a part of my server.xml file : !-- Beginning of server.xml-- ?xml version=1.0 encoding=UTF-8? Server debug=0 port=8083 shutdown=SHUTDOWN Service name=Tomcat-Standalone Connector acceptCount=10 className=org.apache.catalina.connector.http.HttpConnector connectionTimeout=6 debug=0 maxProcessors=75 minProcessors=5 port=8080 enableLookups=true redirectPort=443/ Connector className=org.apache.catalina.connector.http.HttpConnector port=443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS/ /Connector !-- I Define an AJP 1.3 Connector on port 8009 in the futur, i will use this connector to connect apache for static html page and ssl connection (don't remove that) cherif on 22-02-2003 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 enableLookups=true redirectPort=443/ Engine debug=0 defaultHost=localhost name=Standalone Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Valve className=org.apache.catalina.valves.AccessLogValve prefix=catalina_access_log. suffix=.txt pattern=common/ Host appBase=/usr/local/java/host debug=0 name=localhost unpackWARs=true Context debug=0 docBase=/usr/local/java/host/defaultroot path=/mot useNaming=true workDir=/usr/local/java/host/work/mot reloadable=true Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/mySQLDS auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/mySQLDS parameternameuser/namevalue*USERNAME*/value/parameter parameternamepassword/namevalue*PASSWORD*/value/parameter parameter namedriverClassName/name !--org.gjt.mm.mysql.Driver -- valuecom.mysql.jdbc.Driver/value /parameter parameter namedriverName/name valuejdbc:mysql://localhost:3306/host/value /parameter /ResourceParams /Context /Host /Engine /Service /Server !--End of server.xml-- I noticed that if I changed the name attribute in the Host tag for the ServerName i.e. test.domain.com. I don't have any errors but no pages are loaded. I tried the server with many addresses like https://server.domain.com/ https://server.domain.com/mot/login.jsp and it is not working. The version of all softwares are the following: tomcat 4.1.18 jdk 1.4 apache 1.3.27 open_ssl 0.9.6b-28 running under redhat 7.2 Thanks for your convenience and concern -- Vincent M. [EMAIL PROTECTED] This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the Plan B Strategies Network Administrator by email at [EMAIL PROTECTED] and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring tomcat with apache - webapp - linux server
Hi, I would like connect tomcat 4.1.18 with apache 2.x under linux. I search the connector binarie file (not RPM) on the jakarta ftp site but the directories are empty (binary or RPM) Is someone able to help me ? Thank's for your help and sorry for my poor english. Vincent. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Need your help - Configuring tomcat with apache - webapp - linuxserver
Hi, I would like connect tomcat 4.1.18 with apache 2.x under linux. I search the connector binarie file (not RPM) on the jakarta ftp site but the directories are empty (binary or RPM) Is someone able to help me ? Thank's for your help and sorry for my poor english. Vincent. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
j_security_check again
I have a JDNIREALM up and running fine, except for the annoying fact that logging in sometimes brings me to a white page with a relative url of /j_security_check This is what I see in the logs: 2002-12-19 11:28:29 Authenticator[]: Security checking request POST/j_security_check 2002-12-19 11:28:29 Authenticator[]: Authenticating username 'UnO' How does tomcat store the final page that the user is trying to get to? May be a variable is getting overwritten? Anyone seen this before patched tomcat 4.1.12 on linux jdk 1.4.0 Thank You -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JNDI connection times out (again)
I am discovering that over a period of a few hours my JNDI (using LDAP) datasource/realm looses it's conecction. Is there a way to have tomcat check to see if the connection is timed out and reconnect if it is? So far the workaround I am using is restarting tomcat. tomcat 4.1.12 (patched) jdk 1.4 for linux (2.4.18) -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
JNDIRealm expires?
I have been able to successfully set up a JNDIRealm in tomcat for authentication. Only problem is after about 12 (rough guess) I get the dreaded black page instead of seeing my login form. The workaround is to restart tomcat. Obviously, this won't work well for a always-on service. Maybe there might be a way to reinitialize an idle connection? Thanks. 2002-10-08 12:35:18 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:173) at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2516) at com.sun.jndi.ldap.LdapCtx.ensureOpen(LdapCtx.java:2458) at com.sun.jndi.ldap.LdapCtx.ensureOpen(LdapCtx.java:2432) at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1837) at com.sun.jndi.ldap.LdapCtx.doSearchOnce(LdapCtx.java:1829) at com.sun.jndi.ldap.LdapCtx.c_getAttributes(LdapCtx.java:1223) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:213) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:121) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:109) at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:121) at org.apache.catalina.realm.JNDIRealm.bindAsUser(JNDIRealm.java:1051) at org.apache.catalina.realm.JNDIRealm.checkCredentials(JNDIRealm.java:957) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:729) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:671) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:263) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:458) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2397) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: JNDIRealm expires?
I apoligize for the false alarm. My password had expired (arghh) that is why the login process failed. Back to the regularly scheduled program. Vincent Stoessel wrote: I have been able to successfully set up a JNDIRealm in tomcat for authentication. Only problem is after about 12 (rough guess) I get the dreaded black page instead of seeing my login form. The workaround is to restart tomcat. Obviously, this won't work well for a always-on service. Maybe there might be a way to reinitialize an idle connection? Thanks. 2002-10-08 12:35:18 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:173) at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2516) at com.sun.jndi.ldap.LdapCtx.ensureOpen(LdapCtx.java:2458) at com.sun.jndi.ldap.LdapCtx.ensureOpen(LdapCtx.java:2432) at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1837) at com.sun.jndi.ldap.LdapCtx.doSearchOnce(LdapCtx.java:1829) at com.sun.jndi.ldap.LdapCtx.c_getAttributes(LdapCtx.java:1223) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:213) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:121) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:109) at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:121) at org.apache.catalina.realm.JNDIRealm.bindAsUser(JNDIRealm.java:1051) at org.apache.catalina.realm.JNDIRealm.checkCredentials(JNDIRealm.java:957) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:729) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:671) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:263) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:458) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2397) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) smime.p7s Description: S/MIME Cryptographic Signature
Double Tomcat!
Hello, is it possible to install two Tomcat server on the same machine, note that I use FreeBSD (4.6) and the agoal would be to have a development server and a production server? Got hints or tricks about that? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat and JDK on FreeBSD
OK, thanks for your reply Do you mean there is a patch to use different JDK on freebsd? you seem to say that only environnement variables are important... But my Tomcat (4.0.3) is started by the www user in a rc.d script at the boot, and this user have no shell access... will it change something to create a .cshrc for this user?? [EMAIL PROTECTED] wrote: I have mine set like so: install linux-jdk via port this is needed (i believe) in conjunction with the native 1.3.1 and tied together via the patchset #p7. so you need to make install clean inside linux-jdk and follow directions then inside your /root/.cshrc put the following PATH=/usr/local/jdk1.3.1/bin setenv JAVA_HOME /usr/local/jdk1.3.1 #setenv ANT_HOME /home/myname/JAKARTA/jakarta-ant-1.5 setenv CATALINA_HOME /home/myname/JAKARTA/jakarta-tomcat-4.1.12 setenv CLASSPATH .:$JAVA_HOME/lib/tools:jar:$JAVA_HOME/lib/dt.jar:$ANT_HOME/lib/ant.jar then cp /root/.cshrc /home/myhome/.cshrc logout log back in export or setenv from interactive mode only last the terminal session grab the binary tomcat from jakart.apache.org version4.1.12. Hello, I'm using Tomcat 4.0.3 with FreeBSD 4.6 I've install SUN JDK 1.3.1 but also the SUN JDK 1.4.1 Since the beginning, despite the definition of JAVA_HOME in the /usr/local/jakarta-tomcat4.0.3/catalina.sh (with this line export JAVA_HOME=usr/java/ --this script use sh) /usr/java a symbolic link to the JDK I want to use, for the moment 1.3.1 but I'd like to pass to 1.4.1 Since the installation, when I start tomcat (with the script executing tomcat4ctl with www identity) I get this error : tomcat4ctl: Unable to stat /usr/local/linux-jdk1.3.1: No such file or directory I've try to set JAVA_HOME using different ways in different files... but nothing works so I had to create a sym link with the path TOmcat was asking for (/usr/local/linux-jdk1.3.1) to the directory of my linux-Sun-JDK 1.3.1 (/usr/local/linux-sun-jdk1.3.1) It's like Tomcat don't care about the JAVA_HOME env.variable and always use an hard-coded-like java_home dir : /usr/local/linux-jdk1.3.1 ??? Questions: Catalina.sh is not the place to set the JAVA_HOME var for Tomcat?? So where is it? why is Tomcat asking for /usr/local/linux-jdk1.3.1 a path that didn't exist and that I never set in a conf file... Does Tomcat 4.0.3 support JDK 1.4.x on FreeBSD? (or something different from 1.3.1, just want to know even I don't absolutely need 1.4) Thanks Vincent -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat and JDK on FreeBSD
Hello, I'm using Tomcat 4.0.3 with FreeBSD 4.6 I've install SUN JDK 1.3.1 but also the SUN JDK 1.4.1 Since the beginning, despite the definition of JAVA_HOME in the /usr/local/jakarta-tomcat4.0.3/catalina.sh (with this line export JAVA_HOME=usr/java/ --this script use sh) /usr/java a symbolic link to the JDK I want to use, for the moment 1.3.1 but I'd like to pass to 1.4.1 Since the installation, when I start tomcat (with the script executing tomcat4ctl with www identity) I get this error : tomcat4ctl: Unable to stat /usr/local/linux-jdk1.3.1: No such file or directory I've try to set JAVA_HOME using different ways in different files... but nothing works so I had to create a sym link with the path TOmcat was asking for (/usr/local/linux-jdk1.3.1) to the directory of my linux-Sun-JDK 1.3.1 (/usr/local/linux-sun-jdk1.3.1) It's like Tomcat don't care about the JAVA_HOME env.variable and always use an hard-coded-like java_home dir : /usr/local/linux-jdk1.3.1 ??? Questions: Catalina.sh is not the place to set the JAVA_HOME var for Tomcat?? So where is it? why is Tomcat asking for /usr/local/linux-jdk1.3.1 a path that didn't exist and that I never set in a conf file... Does Tomcat 4.0.3 support JDK 1.4.x on FreeBSD? (or something different from 1.3.1, just want to know even I don't absolutely need 1.4) Thanks Vincent -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
any way to customize 404 messages?
Hello, have you seen some sites that have a cool page that get returned instead of the usual boring 404 message? Is there any way to do that in tomcat as well? Write a servlet? Overwrite a method somewhere? a server.xml config? Thanks. -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
retry form based login
Hello All, maybe I had too much caffeine today but I can't get my head out of this causality loop I'm stuck in. I am using tomcat's form based authentication against the realm and all is great except for the fact that I am trying to improve the user experience when they fail a login attempt. I have it set up so that a login failure gets shipped to: form-error-page/ErrorPage.jsp/form-error-page That was fine for testing purposes but I want to know if there is a way to redirect a person back to the login form in order for them to try again until they succeed. Or is the only way to have the user retry is to have a link on errorPage.jsp that points to the protected resource? Thanks. tomcat 4.1.10 LE (Invoker off) jdk 1.4 -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: retry form based login
Hmmm, so you are saying that I can point form-error-page to the login page? I will try this. Mark R. Diggory wrote: Why do you say this? You can call the j_security_check service from any jsp page, whether its the one defined in the login attribute of web.xml or not. html head titleLogin Page for Examples/title body bgcolor=white form method=POST action='%= response.encodeURL(j_security_check) %' table border=0 cellspacing=5 tr th align=rightUsername:/th td align=leftinput type=text name=j_username/td /tr tr th align=rightPassword:/th td align=leftinput type=password name=j_password/td /tr tr td align=rightinput type=submit value=Log In/td td align=leftinput type=reset/td /tr /table /form /body /html -M. p.s. I believe the original request that was made is stored in the users session object. you could come at this page more than once and that previous information is still stored. After a successful login, that request should still be completed. Vincent Stoessel wrote: Barney Hamish wrote: On our systems I use an error page which contains another login form as well as an error message. Maybe you could try that. Hamish I though about doing this too but then I would have to implement my own authentication scheme on that page, losing all the benefits of using the built-in one from tomcat. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 2.0.42 and SSL (Win32)
That's not the right place to ask this questione, but... you can see on this page: http://www.apache.org/dist/httpd/binaries/win32 That : This version is only available at present in a -no_ssl flavor, due to ongoing questions of strong crypto redistribution. When a binary build with mod_ssl compiled in is made available, the -no_ssl flavor will remain as an option for those in jurisdictions that restrict ssl encryption, as well as those T8 prohibited from downloading from the ASF's US-based servers. It must answare your question -Message d'origine- De : Matt Raible [mailto:[EMAIL PROTECTED]] Envoye : jeudi 26 septembre 2002 15:18 A : 'Tomcat Users List' Objet : Apache 2.0.42 and SSL (Win32) I'm sending this message to this list since it seems there are some experts apache dll's here ;) Please let me know if I should post this to [EMAIL PROTECTED] instead. I'm basically trying to install SSL on Apache 2.0 - once I get it done on Windows, I'll do it on Linux. I downloaded http://www.apache.org/dist/httpd/binaries/win32/apache_1.3.26-win32-x86- no_src.msi - and there is no mod_sll.dll (I'm assuming) in this distrubition. Is there somewhere I can download a binary version? I read this article http://tud.at/programm/apache-ssl-win32-howto.php3/, but it only seems to pertain to apache 1.3. Thanks, Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 2.0.42 and SSL (Win32)
It delivered with Apache 2.x sources but not build. -Message d'origine- De : Turner, John [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 26 septembre 2002 15:19 À : 'Tomcat Users List' Objet : RE: Apache 2.0.42 and SSL (Win32) As far as I know, mod_ssl (or its functionality) is built-in to Apache 2, its not an add-on. John -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 9:18 AM To: 'Tomcat Users List' Subject: Apache 2.0.42 and SSL (Win32) I'm sending this message to this list since it seems there are some experts apache dll's here ;) Please let me know if I should post this to [EMAIL PROTECTED] instead. I'm basically trying to install SSL on Apache 2.0 - once I get it done on Windows, I'll do it on Linux. I downloaded http://www.apache.org/dist/httpd/binaries/win32/apache_1.3.26- win32-x86- no_src.msi - and there is no mod_sll.dll (I'm assuming) in this distrubition. Is there somewhere I can download a binary version? I read this article http://tud.at/programm/apache-ssl-win32-howto.php3/, but it only seems to pertain to apache 1.3. Thanks, Matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
j_security_check weirdness
Hello, I am running struts on tomcat 4.1.10 (Invoker disabled) on redhat 7.3 jdk 1.4 I am using Realm and Form based Athentication for my app. Every so often enough to be really annoying, I end up at a blank page after submitting the login form. I get a completely blank page with a url of http://server/webapp/j_security_check starting over a few times will usually take care of the problem. Has anyone seen this before? snip of web.xml login-config auth-methodFORM/auth-method form-login-config form-login-page/login.jsp/form-login-page form-error-page/ErrorPage.jsp/form-error-page /form-login-config /login-config and the form itself: table border='1' form method=POST action=j_security_check tr tdUsername/td tdinput type=text name=j_username size=30 maxlength=45 //td /tr tr tdPassword/td tdinput type=password name=j_password size=30 maxlength=45 //td /tr tr tdinput type=submit value=Submit//td /tr /form /table -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com smime.p7s Description: S/MIME Cryptographic Signature
Re: j_security_check weirdness
Cool, was there a solution that you discovered? [EMAIL PROTECTED] wrote: I have. Bao-Ha Dam Bui [EMAIL PROTECTED] St. Jude Medical, Inc 651.765.1018 * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com smime.p7s Description: S/MIME Cryptographic Signature
RE: Running tomcat 4.0 as NT Srvice
There is a topic which explain that, there were 1 or 2 weeks ago. Make a search on the mailling list. -Message d'origine- De : Katz, Adi [mailto:[EMAIL PROTECTED]] Envoyé : lundi 23 septembre 2002 18:22 À : [EMAIL PROTECTED] Objet : Running tomcat 4.0 as NT Srvice Hello, Tomcat 4.0 distributaion contains a file: tomcat.exe that is used for running tomcat as a service. There isnt seems to be any documentation regarding this or how to install the service. If you install tomcat using the exe installer it will be done automaticly but I need to do it by myself. Does anybody know something about how to use tomcat.exe ( it is in the bin directory ) in order for tomcat to run as a service? Thanks, Adi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ? java.net.BindException: Address already in use
Tomcat try to use a port already used by another application. You must verify that a tomcat instance doesn't run. You can see the opened port with an utility like netstat. -Message d'origine- De : Bill Blackmon [mailto:[EMAIL PROTECTED]] Envoyé : mardi 24 septembre 2002 17:44 À : TOMCAT USERS GROUP Objet : ? java.net.BindException: Address already in use I'm getting to following error message when I start Tomcat on my Hosts machine: Catalina.start: LifecycleException: Error creating server socket (java.net.BindException): java.net.BindException: Address already in use LifecycleException: Error creating server socket (java.net.BindException): java.net.BindException: Address already in use at org.apache.catalina.connector.warp.WarpConnector.initialize(WarpCo nnector.ja va:491) at org.apache.catalina.core.StandardService.initialize(StandardServic e.java:454 ) at org.apache.catalina.core.StandardServer.initialize(StandardServer. java:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm pl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc cessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321) at java.net.ServerSocket.bind(ServerSocket.java:308) at java.net.ServerSocket.bind(ServerSocket.java:266) at java.net.ServerSocket.init(ServerSocket.java:182) at java.net.ServerSocket.init(ServerSocket.java:138) at org.apache.catalina.net.DefaultServerSocketFactory.createSocket(De faultServe rSocketFactory.java:118) at org.apache.catalina.connector.warp.WarpConnector.initialize(WarpCo nnector.ja va:485) at org.apache.catalina.core.StandardService.initialize(StandardServic e.java:454 ) at org.apache.catalina.core.StandardServer.initialize(StandardServer. java:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm pl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc cessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) I've shutdown Tomcat and let it expire for quite a long period of time. What else can cause this? A port conflict? All I have to analyze it are the logs. Any suggestions? Thanks, Bill -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: web.xml
Hello, I have found your error... Your config files are correct! The error became from the HelloWorld servlet. If you enter on the code, to see what it really do ;-) you can see that it use a LocalString properties file. Your servlet cannot function because this file missing. That's all. By, Vincent. -Message d'origine- De : Lindomar [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 19 septembre 2002 17:10 À : Tomcat Users List Objet : Re: web.xml I can't see file localhost_myapp_log, i only found localhost_examples_log, localhost_admin_log and localhost_log. I search something in localhost_log, but i don't find anything. Let me take a few of your time. Well, i created a new app (teste) : teste |_index.html |_WEB-INF |_classes |_HelloWorldExample.class |_web.xml The class HelloWorldExample it's work in localhost:8080/examples/servlet/HelloWorldExample, then i copied it. The file web.xml is: *** ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-namemyteste/servlet-name servlet-classHelloWorldExample/servlet-class /servlet servlet-mapping servlet-name myteste /servlet-name url-pattern /hi /url-pattern /servlet-mapping /web-app *** When i put http://localhost:8080/teste -It's ok, i see my index.html But when i put http://localhost:8080/teste/hi - don't works!? I see this on page: ## HTTP Status 404 - /teste/hi type Status report message /teste/hi description The requested resource (/teste/hi) is not available ## And i can't found anything in log files about this exception. What do i? I don't have an idea...i only install tomcat 4.1, i don't configurate anything more. Thank's for your attention. - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 19, 2002 11:36 AM Subject: RE: web.xml Quer ter seu próprio endereço na Internet? Garanta já o seu e ainda ganhe cinco e-mails personalizados. DomíniosBOL - http://dominios.bol.com.br What the tomcat's log say? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2 and Tomcat4 on different boxes
I have never run Tomcat under an Unix like OS, so I don't now. The host neptune.broward.edu is declared in the network configuration of the machine? ping neptune.broward.edu works? -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoy? : jeudi 19 septembre 2002 22:30 ? : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes Hi Vincent, I am running tomcat under root user, do you think it has anything to do for the configuration not to work.. again here are my latest mod_jk.log.. [Thu Sep 19 15:28:02 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Thu Sep 19 15:28:02 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Thu Sep 19 15:28:02 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0 [Thu Sep 19 15:28:02 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Thu Sep 19 15:28:02 2002] [jk_worker.c (88)]: Into wc_open [Thu Sep 19 15:28:02 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Thu Sep 19 15:28:02 2002] [jk_worker.c (228)]: build_worker_map, creating worker ajp13 [Thu Sep 19 15:28:02 2002] [jk_worker.c (148)]: Into wc_create_worker [Thu Sep 19 15:28:02 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance ajp13 of ajp13 [Thu Sep 19 15:28:02 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Thu Sep 19 15:28:02 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init ajp13 [Thu Sep 19 15:28:02 2002] [jk_ajp_common.c (1178)]: Into jk_worker_t::validate [Thu Sep 19 15:28:02 2002] [jk_ajp_common.c (1198)]: In jk_worker_t::validate for worker ajp13 contact is neptune.broward.edu:8009 [Thu Sep 19 15:28:02 2002] [jk_ajp_common.c (1226)]: Into jk_worker_t::init [Thu Sep 19 15:28:02 2002] [jk_worker.c (187)]: wc_create_worker, done [Thu Sep 19 15:28:02 2002] [jk_worker.c (238)]: build_worker_map, removing old ajp13 worker [Thu Sep 19 15:28:02 2002] [jk_worker.c (250)]: build_worker_map, done [Thu Sep 19 15:28:02 2002] [jk_worker.c (111)]: wc_open, done 1 thanks a lot -Raj [EMAIL PROTECTED] 09/19/02 03:58AM Sorry I look at your config files, but I see nothing bad (as you I think ;-) ) In your mod_jk logs, we can see that the ajp13 worker is not found first then it's running and found by Apache. And then, it's closed during request processing. That's a strange beaviours. You run this configuration : Apache/2.0.39 (Unix) mod_ssl/2.0.39 OpenSSL/0.9.6g mod_jk/1.2.0 What have you compile by your self? If I were you, I will recompile Apache 2.0.39 (You can change to 2.0.40) without mod_ssl, mod_jk 1.2.0 and Tomcat 4.0.4 on your machine, because it'is so strange... Try to restart your test in a clean environement. Save your config files, they seem to me not bad. Try to do a working configuration without mod_ssl. That's poor help... Sorry. But at this step, I don't see anything. -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoy? : mercredi 18 septembre 2002 22:12 ? : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes These are yesterday logs...I dont see anything for today.. [Tue Sep 17 09:58:27 2002] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Tue Sep 17 09:58:27 2002] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker [Tue Sep 17 09:58:27 2002] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Sep 17 09:58:27 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI '/error/HTTP_NOT_FOUND.html.var' [Tue Sep 17 09:58:27 2002] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - / [Tue Sep 17 10:09:01 2002] [jk_worker.c (118)]: Into wc_close [Tue Sep 17 10:09:01 2002] [jk_worker.c (199)]: close_workers got -1 workers to destroy [Tue Sep 17 10:09:01 2002] [jk_worker.c (120)]: wc_close, done [Tue Sep 17 10:09:01 2002] [jk_uri_worker_map.c (190)]: Into jk_uri_worker_map_t::uri_worker_map_free [Tue Sep 17 10:09:01 2002] [jk_uri_worker_map.c (441)]: Into jk_uri_worker_map_t::uri_worker_map_close apache error logs... - [Wed Sep 18 15:54:43 2002] [notice] Apache/2.0.39 (Unix) mod_ssl/2.0.39 OpenSSL/0.9.6g mod_jk/1.2.0 configured -- resuming normal operations thanks vincent.. -Raj : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 17:44 A : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes yes, I have tried both( name and Ip) http://10.103.2.4/examples and http://morpheus.broward.edu/exampels , for both of them I am getting http 400 - Bad Request(it's not 404) Raj [EMAIL PROTECTED] 09/18/02 11:41AM When you test, you enter this URL? http://10.103.2.4/examples -Message d'origine- De : Raj
RE: Realtime Log File Viewer
I have heard that the tomcat's stdout can be redirected in the log event manager of windows. But I don't know how to made that. -Message d'origine- De : Nicholas Orr [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 20 septembre 2002 10:52 À : 'Tomcat Users List' Objet : RE: Realtime Log File Viewer Sorry- Windows 2k pro. Tomcat 4.1.10 Tail? What is this for. Nicholas Orr -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: Friday, 20 September 2002 6:51 PM To: 'Tomcat Users List' Subject: RE: Realtime Log File Viewer Is your server on Windows or *nix? Have you tried tail? That allows you to view the last X lines of the log in real-time. Hamish -Original Message- From: Nicholas Orr [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 10:48 AM To: Tomcat Mailing List Subject: Realtime Log File Viewer Hi Is there a way to see additions made to the log files in real time? Like is there someway you could get notified when something has been written to a log file? Or can you some how hook into catilina, so that when ever ServletContext.log(log something) is fired you get the string as well? I'm just after real time logging. That's all. Nicholas Orr ** The information contained in this e-mail is confidential and is intended only for the use of the addressee(s). If you receive this e-mail in error, any use, distribution or copying of this e-mail is not permitted. You are requested to forward unwanted e-mail and address any problems to the MIM Holdings Limited Support Centre. For general enquires: ++61 7 3833 8000 Support Centre e-mail:[EMAIL PROTECTED] Support Centre phone: Australia 1800500646 International ++61 7 38338042 ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2/Win32 and mod_webapp anyone?
Hi, You can have .so on Apache 2.0.x under Windows. When you compile Apache by your self all the files are .so. You can try to rename them on .dll, but it doesn't change anything for Apache. Vincent. -Message d'origine- De : Thomas T. Veldhouse [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 20 septembre 2002 15:34 À : Tomcat Users List Objet : Re: Apache2/Win32 and mod_webapp anyone? You can not use a .so file on Windows -- unless something has changed in a wierd way with Apache and Windows. .so is a UNIX shared library, where .dll is a Windows shared library. You need to find a mod_webapp.dll file, of which you will not find one. It is not [yet] supported for Windows. Tom Veldhouse - Original Message - From: Sasha Kraljevic [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 20, 2002 8:30 AM Subject: Apache2/Win32 and mod_webapp anyone? Has anyone made it work with the Apache 2.0.40 / Win32 (win2K), Tomcat 4.1.10 and mod_webapp.so for the WARP protocol ? The error reported by Apache is: Cannot load path to the/mod_webapp.so into server: The specified module could not be found. I have used libapr.dll from Apache 2.0.40 and mod_webapp.so from Tomcat 4.0.1 binary download. I have already searched around and found some URLs, but all in vain... None of those that I've found mentions Apache2/Win32/Tomcat 4. TIA, Sasha -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2/Win32 and mod_webapp anyone?
That's right it can be the case. For my expercience, I always compile Apache and the modules on my platform. I'll get lots of curious behaviours using downloaded Apache 2.0 binary and Apache's modules. If you can create your self-compiled one, do it. I never managed to compile mod_webapp. I have seen in a readme file of the mod_webapp that the mod_webapp isn't supported for Windows. -Message d'origine- De : Thomas T. Veldhouse [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 20 septembre 2002 16:01 À : Tomcat Users List Objet : Re: Apache2/Win32 and mod_webapp anyone? Yes, but this guy downloaded the binary mod_webapp.so from the web somewhere. Presumably, that is for Linux or some other UNIX variant. Tom Veldhouse - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 20, 2002 8:57 AM Subject: RE: Apache2/Win32 and mod_webapp anyone? Hi, You can have .so on Apache 2.0.x under Windows. When you compile Apache by your self all the files are .so. You can try to rename them on .dll, but it doesn't change anything for Apache. Vincent. -Message d'origine- De : Thomas T. Veldhouse [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 20 septembre 2002 15:34 À : Tomcat Users List Objet : Re: Apache2/Win32 and mod_webapp anyone? You can not use a .so file on Windows -- unless something has changed in a wierd way with Apache and Windows. .so is a UNIX shared library, where .dll is a Windows shared library. You need to find a mod_webapp.dll file, of which you will not find one. It is not [yet] supported for Windows. Tom Veldhouse - Original Message - From: Sasha Kraljevic [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 20, 2002 8:30 AM Subject: Apache2/Win32 and mod_webapp anyone? Has anyone made it work with the Apache 2.0.40 / Win32 (win2K), Tomcat 4.1.10 and mod_webapp.so for the WARP protocol ? The error reported by Apache is: Cannot load path to the/mod_webapp.so into server: The specified module could not be found. I have used libapr.dll from Apache 2.0.40 and mod_webapp.so from Tomcat 4.0.1 binary download. I have already searched around and found some URLs, but all in vain... None of those that I've found mentions Apache2/Win32/Tomcat 4. TIA, Sasha -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2 and Tomcat4 on different boxes
Sorry I look at your config files, but I see nothing bad (as you I think ;-) ) In your mod_jk logs, we can see that the ajp13 worker is not found first then it's running and found by Apache. And then, it's closed during request processing. That's a strange beaviours. You run this configuration : Apache/2.0.39 (Unix) mod_ssl/2.0.39 OpenSSL/0.9.6g mod_jk/1.2.0 What have you compile by your self? If I were you, I will recompile Apache 2.0.39 (You can change to 2.0.40) without mod_ssl, mod_jk 1.2.0 and Tomcat 4.0.4 on your machine, because it'is so strange... Try to restart your test in a clean environement. Save your config files, they seem to me not bad. Try to do a working configuration without mod_ssl. That's poor help... Sorry. But at this step, I don't see anything. -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoy? : mercredi 18 septembre 2002 22:12 ? : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes These are yesterday logs...I dont see anything for today.. [Tue Sep 17 09:58:27 2002] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 [Tue Sep 17 09:58:27 2002] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker [Tue Sep 17 09:58:27 2002] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Sep 17 09:58:27 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI '/error/HTTP_NOT_FOUND.html.var' [Tue Sep 17 09:58:27 2002] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - / [Tue Sep 17 10:09:01 2002] [jk_worker.c (118)]: Into wc_close [Tue Sep 17 10:09:01 2002] [jk_worker.c (199)]: close_workers got -1 workers to destroy [Tue Sep 17 10:09:01 2002] [jk_worker.c (120)]: wc_close, done [Tue Sep 17 10:09:01 2002] [jk_uri_worker_map.c (190)]: Into jk_uri_worker_map_t::uri_worker_map_free [Tue Sep 17 10:09:01 2002] [jk_uri_worker_map.c (441)]: Into jk_uri_worker_map_t::uri_worker_map_close apache error logs... - [Wed Sep 18 15:54:43 2002] [notice] Apache/2.0.39 (Unix) mod_ssl/2.0.39 OpenSSL/0.9.6g mod_jk/1.2.0 configured -- resuming normal operations thanks vincent.. -Raj : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 17:44 A : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes yes, I have tried both( name and Ip) http://10.103.2.4/examples and http://morpheus.broward.edu/exampels , for both of them I am getting http 400 - Bad Request(it's not 404) Raj [EMAIL PROTECTED] 09/18/02 11:41AM When you test, you enter this URL? http://10.103.2.4/examples -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 16:42 A : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes Hi Vincent, I had a typo in my servername and Ip address... apache server 10.103.2.4 tomcat server 10.103.2.30 and attached are my latest conf files I am getting 400 Bad request error, when I try to access examples...I have modified virualhost ip...that didn't fix it. thanks Raj [EMAIL PROTECTED] 09/18/02 10:07AM When did you have this error? When you type this URL : http://10.103.2.4/examples ? If it is the case, I think it's normal, because your Apache Virtual Host is just defined for 10.103.2.30. And It seems to me strange, because you said that the @IP of the Apache server is 10.103.2.4 and you have a virtual host listenning on the 10.103.2.30 @IP. I don't understand what you want really do. Hopes, it's pointed on your problem... -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 15:26 A : [EMAIL PROTECTED] Objet : Re: Apache2 and Tomcat4 on different boxes thanks David, I have removed the workers.list parm from workers.properties and also there was typo in my last email for DNS and IP address.. Apache server 10.103.2 4(morphues.broward.edu) Tomcat server 10.103.2.30(neptune.broward.edu) Still, I am getting object not found errorapache is looking under htdocs directory usr/local/apache/htdocs for /examples Attached are the latest conf files.. thanks Raj [EMAIL PROTECTED] 09/18/02 05:08AM Raj, I hope something fell out of your workers file on it's way to me ... You define the workers.list as using ajp12 and ajp13 But there is no definition for ajp12... Also the host IP you give from the list below is the apache box. Your httpd.conf file seems OK though. David Raj Mettai wrote: thanks Daniel for you response, I have tried the options you suggested, tested telnet from apche to tomcat on port 8009, that worked fine and also configured apache/tomcat on each box
RE: web.xml
Nothing's wrong, nothing's missing. Your problem isn't here. Does the Tomcat's examples run? Which error do you get? -Message d'origine- De : Lindomar [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 19 septembre 2002 15:14 À : Tomcat Users List Objet : web.xml Hi everyone! I have a problem with mapping to my servlets. I have this structure in tomcat 4.1 myapp |_WEB-INF |_classes |_subdir1 |_subdir2 |_ myServlet.class I want to mapping this servlet this way: http://localhost:8080/myapp/oneid I placed this code in web.xml on my app. *** ... servlet servlet-namemyservlet/servlet-name servlet-classsubdir1.subdir2.myServlet/servlet-class /servlet servlet-mapping servlet-namemyservlet/servlet-name url-pattern/oneid/url-pattern /servlet-mapping /web-app .. *** What's wrong or missing? Thanks in advanced. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: web.xml
What the tomcat's log say? -Message d'origine- De : Lindomar [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 19 septembre 2002 16:18 À : Tomcat Users List Objet : Re: web.xml Hi Vincet. Thanks for your reply. My tomcat's example run. The error is : HTTP Status 404 - /myapp/oneid/ The requested resource (/myapp/oneid) is not available Note: I got directory myapp of tomcat 3.2.3, and i placed on 4.1. Thanks again! - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 19, 2002 10:37 AM Subject: RE: web.xml Quer ter seu próprio endereço na Internet? Garanta já o seu e ainda ganhe cinco e-mails personalizados. DomíniosBOL - http://dominios.bol.com.br Nothing's wrong, nothing's missing. Your problem isn't here. Does the Tomcat's examples run? Which error do you get? -Message d'origine- De : Lindomar [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 19 septembre 2002 15:14 À : Tomcat Users List Objet : web.xml Hi everyone! I have a problem with mapping to my servlets. I have this structure in tomcat 4.1 myapp |_WEB-INF |_classes |_subdir1 |_subdir2 |_ myServlet.class I want to mapping this servlet this way: http://localhost:8080/myapp/oneid I placed this code in web.xml on my app. *** ... servlet servlet-namemyservlet/servlet-name servlet-classsubdir1.subdir2.myServlet/servlet-class /servlet servlet-mapping servlet-namemyservlet/servlet-name url-pattern/oneid/url-pattern /servlet-mapping /web-app .. *** What's wrong or missing? Thanks in advanced. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2 and Tomcat4 on different boxes
When did you have this error? When you type this URL : http://10.103.2.4/examples ? If it is the case, I think it's normal, because your Apache Virtual Host is just defined for 10.103.2.30. And It seems to me strange, because you said that the @IP of the Apache server is 10.103.2.4 and you have a virtual host listenning on the 10.103.2.30 @IP. I don't understand what you want really do. Hopes, it's pointed on your problem... -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 15:26 A : [EMAIL PROTECTED] Objet : Re: Apache2 and Tomcat4 on different boxes thanks David, I have removed the workers.list parm from workers.properties and also there was typo in my last email for DNS and IP address.. Apache server 10.103.2 4(morphues.broward.edu) Tomcat server 10.103.2.30(neptune.broward.edu) Still, I am getting object not found errorapache is looking under htdocs directory usr/local/apache/htdocs for /examples Attached are the latest conf files.. thanks Raj [EMAIL PROTECTED] 09/18/02 05:08AM Raj, I hope something fell out of your workers file on it's way to me ... You define the workers.list as using ajp12 and ajp13 But there is no definition for ajp12... Also the host IP you give from the list below is the apache box. Your httpd.conf file seems OK though. David Raj Mettai wrote: thanks Daniel for you response, I have tried the options you suggested, tested telnet from apche to tomcat on port 8009, that worked fine and also configured apache/tomcat on each box(and they are working fine), then I have changed the host in workers.properties on apache box to point to tomcat box, but that didn't work for me. Can you please send me the config files(httpd.conf, workers.properties, mod_jk.conf and server.xml) from both machines, may be I am missing some simpe thingAlso I am attaching my config files(httpd.conf,workers.properties from apache and server.xml from tomcat box. apache server 10.103.2.30(neptune.broward.edu) tomcat server 10.103.2.4(morpheus.broward.edu) (both are running on solaris 8) thanks again -Raj [EMAIL PROTECTED] 09/15/02 07:53AM I had all kinds of problems getting apache to speak to a remote tomcat, and most of them were on the apache side. The only problem I had on the app (tomcat) server was having the firewalls (yes there are 2 firewalls between the web and app server, a dedicated firewall box and the iptables/chains running on the actual app server) blocking port 8009. You should also make sure that port 8009 is not blocked on the tomcat box. An easy way to test this is have tomcat running and from your web server just telnet into port 8009 of your tomcat box. You should connect, otherwise you need to sort out firewall rules first. The problems I had on the apache side were basically not having mod_jk work properly. I found out that the best way of approaching the apache/tomcat on different boxes task is to install and test apache/tomcat on each box individually. When they both work, then just change your apache-side workers.properties to point at the right host (by IP address worked for me). Also, try just JkMount'ing /examples outside the Virtual Server block. It's best to troubleshoot a pure mod_jk connectivity issue, excluding stuff like vhost context mismatches. I now have apache 2.0.40 speak with a remote tomcat 4.1.10 via mod_jk2, which I must say was easier to accomplish, simply because the 4.1.10 connectors source compiles a lot better. Regards Daniel Farinha -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] mailto:[EMAIL PROTECTED]%5D Sent: 13 September 2002 20:56 To: [EMAIL PROTECTED] Subject: RE: Apache2 and Tomcat4 on different boxes Hi, I had hostname on server.xml and IP in workers.properties, I have changed both to IP. But still, apache does not talk to tomcat. They work fine when they are on the same box, also, do I need to stutdown port 8080 on tomcat, because tomcat is accessible thru his port. Here are my latest config files.. workers.properties -- worker.ajp13.port=8009 worker.ajp13.host=neptune.broward.edu worker.ajp13.type=ajp13 -- httpd.conf - IfModule !mod_jk.c LoadModule jk_module /usr/local/apache/modules/mod_jk.so /IfModule JkWorkersFile /usr/local/apache/conf/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevel debug VirtualHost morpheus.broward.edu ServerName
RE: Apache2 and Tomcat4 on different boxes
You have specify that in your httpd.conf: JkWorkersFile /opt/tomcat4/conf/jk/workers.properties JkLogFile /opt/tomcat4/logs/mod_jk.log you have another tomcat installed on your apache server? -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 16:42 A : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes Hi Vincent, I had a typo in my servername and Ip address... apache server 10.103.2.4 tomcat server 10.103.2.30 and attached are my latest conf files I am getting 400 Bad request error, when I try to access examples...I have modified virualhost ip...that didn't fix it. thanks Raj [EMAIL PROTECTED] 09/18/02 10:07AM When did you have this error? When you type this URL : http://10.103.2.4/examples ? If it is the case, I think it's normal, because your Apache Virtual Host is just defined for 10.103.2.30. And It seems to me strange, because you said that the @IP of the Apache server is 10.103.2.4 and you have a virtual host listenning on the 10.103.2.30 @IP. I don't understand what you want really do. Hopes, it's pointed on your problem... -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 15:26 A : [EMAIL PROTECTED] Objet : Re: Apache2 and Tomcat4 on different boxes thanks David, I have removed the workers.list parm from workers.properties and also there was typo in my last email for DNS and IP address.. Apache server 10.103.2 4(morphues.broward.edu) Tomcat server 10.103.2.30(neptune.broward.edu) Still, I am getting object not found errorapache is looking under htdocs directory usr/local/apache/htdocs for /examples Attached are the latest conf files.. thanks Raj [EMAIL PROTECTED] 09/18/02 05:08AM Raj, I hope something fell out of your workers file on it's way to me ... You define the workers.list as using ajp12 and ajp13 But there is no definition for ajp12... Also the host IP you give from the list below is the apache box. Your httpd.conf file seems OK though. David Raj Mettai wrote: thanks Daniel for you response, I have tried the options you suggested, tested telnet from apche to tomcat on port 8009, that worked fine and also configured apache/tomcat on each box(and they are working fine), then I have changed the host in workers.properties on apache box to point to tomcat box, but that didn't work for me. Can you please send me the config files(httpd.conf, workers.properties, mod_jk.conf and server.xml) from both machines, may be I am missing some simpe thingAlso I am attaching my config files(httpd.conf,workers.properties from apache and server.xml from tomcat box. apache server 10.103.2.30(neptune.broward.edu) tomcat server 10.103.2.4(morpheus.broward.edu) (both are running on solaris 8) thanks again -Raj [EMAIL PROTECTED] 09/15/02 07:53AM I had all kinds of problems getting apache to speak to a remote tomcat, and most of them were on the apache side. The only problem I had on the app (tomcat) server was having the firewalls (yes there are 2 firewalls between the web and app server, a dedicated firewall box and the iptables/chains running on the actual app server) blocking port 8009. You should also make sure that port 8009 is not blocked on the tomcat box. An easy way to test this is have tomcat running and from your web server just telnet into port 8009 of your tomcat box. You should connect, otherwise you need to sort out firewall rules first. The problems I had on the apache side were basically not having mod_jk work properly. I found out that the best way of approaching the apache/tomcat on different boxes task is to install and test apache/tomcat on each box individually. When they both work, then just change your apache-side workers.properties to point at the right host (by IP address worked for me). Also, try just JkMount'ing /examples outside the Virtual Server block. It's best to troubleshoot a pure mod_jk connectivity issue, excluding stuff like vhost context mismatches. I now have apache 2.0.40 speak with a remote tomcat 4.1.10 via mod_jk2, which I must say was easier to accomplish, simply because the 4.1.10 connectors source compiles a lot better. Regards Daniel Farinha -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] mailto:[EMAIL PROTECTED]%5D Sent: 13 September 2002 20:56 To: [EMAIL PROTECTED] Subject: RE: Apache2 and Tomcat4 on different boxes Hi, I had hostname on server.xml and IP in workers.properties, I have changed both to IP
RE: Apache2 and Tomcat4 on different boxes
When you test, you enter this URL? http://10.103.2.4/examples -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 16:42 A : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes Hi Vincent, I had a typo in my servername and Ip address... apache server 10.103.2.4 tomcat server 10.103.2.30 and attached are my latest conf files I am getting 400 Bad request error, when I try to access examples...I have modified virualhost ip...that didn't fix it. thanks Raj [EMAIL PROTECTED] 09/18/02 10:07AM When did you have this error? When you type this URL : http://10.103.2.4/examples ? If it is the case, I think it's normal, because your Apache Virtual Host is just defined for 10.103.2.30. And It seems to me strange, because you said that the @IP of the Apache server is 10.103.2.4 and you have a virtual host listenning on the 10.103.2.30 @IP. I don't understand what you want really do. Hopes, it's pointed on your problem... -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 15:26 A : [EMAIL PROTECTED] Objet : Re: Apache2 and Tomcat4 on different boxes thanks David, I have removed the workers.list parm from workers.properties and also there was typo in my last email for DNS and IP address.. Apache server 10.103.2 4(morphues.broward.edu) Tomcat server 10.103.2.30(neptune.broward.edu) Still, I am getting object not found errorapache is looking under htdocs directory usr/local/apache/htdocs for /examples Attached are the latest conf files.. thanks Raj [EMAIL PROTECTED] 09/18/02 05:08AM Raj, I hope something fell out of your workers file on it's way to me ... You define the workers.list as using ajp12 and ajp13 But there is no definition for ajp12... Also the host IP you give from the list below is the apache box. Your httpd.conf file seems OK though. David Raj Mettai wrote: thanks Daniel for you response, I have tried the options you suggested, tested telnet from apche to tomcat on port 8009, that worked fine and also configured apache/tomcat on each box(and they are working fine), then I have changed the host in workers.properties on apache box to point to tomcat box, but that didn't work for me. Can you please send me the config files(httpd.conf, workers.properties, mod_jk.conf and server.xml) from both machines, may be I am missing some simpe thingAlso I am attaching my config files(httpd.conf,workers.properties from apache and server.xml from tomcat box. apache server 10.103.2.30(neptune.broward.edu) tomcat server 10.103.2.4(morpheus.broward.edu) (both are running on solaris 8) thanks again -Raj [EMAIL PROTECTED] 09/15/02 07:53AM I had all kinds of problems getting apache to speak to a remote tomcat, and most of them were on the apache side. The only problem I had on the app (tomcat) server was having the firewalls (yes there are 2 firewalls between the web and app server, a dedicated firewall box and the iptables/chains running on the actual app server) blocking port 8009. You should also make sure that port 8009 is not blocked on the tomcat box. An easy way to test this is have tomcat running and from your web server just telnet into port 8009 of your tomcat box. You should connect, otherwise you need to sort out firewall rules first. The problems I had on the apache side were basically not having mod_jk work properly. I found out that the best way of approaching the apache/tomcat on different boxes task is to install and test apache/tomcat on each box individually. When they both work, then just change your apache-side workers.properties to point at the right host (by IP address worked for me). Also, try just JkMount'ing /examples outside the Virtual Server block. It's best to troubleshoot a pure mod_jk connectivity issue, excluding stuff like vhost context mismatches. I now have apache 2.0.40 speak with a remote tomcat 4.1.10 via mod_jk2, which I must say was easier to accomplish, simply because the 4.1.10 connectors source compiles a lot better. Regards Daniel Farinha -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] mailto:[EMAIL PROTECTED]%5D Sent: 13 September 2002 20:56 To: [EMAIL PROTECTED] Subject: RE: Apache2 and Tomcat4 on different boxes Hi, I had hostname on server.xml and IP in workers.properties, I have changed both to IP. But still, apache does not talk to tomcat. They work fine when they are on the same box, also, do I need to stutdown port
RE: Apache2 and Tomcat4 on different boxes
Ho, yes 400 error. And what does your mod_jk.log say? -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 17:44 A : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes yes, I have tried both( name and Ip) http://10.103.2.4/examples and http://morpheus.broward.edu/exampels , for both of them I am getting http 400 - Bad Request(it's not 404) Raj [EMAIL PROTECTED] 09/18/02 11:41AM When you test, you enter this URL? http://10.103.2.4/examples -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 16:42 A : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes Hi Vincent, I had a typo in my servername and Ip address... apache server 10.103.2.4 tomcat server 10.103.2.30 and attached are my latest conf files I am getting 400 Bad request error, when I try to access examples...I have modified virualhost ip...that didn't fix it. thanks Raj [EMAIL PROTECTED] 09/18/02 10:07AM When did you have this error? When you type this URL : http://10.103.2.4/examples ? If it is the case, I think it's normal, because your Apache Virtual Host is just defined for 10.103.2.30. And It seems to me strange, because you said that the @IP of the Apache server is 10.103.2.4 and you have a virtual host listenning on the 10.103.2.30 @IP. I don't understand what you want really do. Hopes, it's pointed on your problem... -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoye : mercredi 18 septembre 2002 15:26 A : [EMAIL PROTECTED] Objet : Re: Apache2 and Tomcat4 on different boxes thanks David, I have removed the workers.list parm from workers.properties and also there was typo in my last email for DNS and IP address.. Apache server 10.103.2 4(morphues.broward.edu) Tomcat server 10.103.2.30(neptune.broward.edu) Still, I am getting object not found errorapache is looking under htdocs directory usr/local/apache/htdocs for /examples Attached are the latest conf files.. thanks Raj [EMAIL PROTECTED] 09/18/02 05:08AM Raj, I hope something fell out of your workers file on it's way to me ... You define the workers.list as using ajp12 and ajp13 But there is no definition for ajp12... Also the host IP you give from the list below is the apache box. Your httpd.conf file seems OK though. David Raj Mettai wrote: thanks Daniel for you response, I have tried the options you suggested, tested telnet from apche to tomcat on port 8009, that worked fine and also configured apache/tomcat on each box(and they are working fine), then I have changed the host in workers.properties on apache box to point to tomcat box, but that didn't work for me. Can you please send me the config files(httpd.conf, workers.properties, mod_jk.conf and server.xml) from both machines, may be I am missing some simpe thingAlso I am attaching my config files(httpd.conf,workers.properties from apache and server.xml from tomcat box. apache server 10.103.2.30(neptune.broward.edu) tomcat server 10.103.2.4(morpheus.broward.edu) (both are running on solaris 8) thanks again -Raj [EMAIL PROTECTED] 09/15/02 07:53AM I had all kinds of problems getting apache to speak to a remote tomcat, and most of them were on the apache side. The only problem I had on the app (tomcat) server was having the firewalls (yes there are 2 firewalls between the web and app server, a dedicated firewall box and the iptables/chains running on the actual app server) blocking port 8009. You should also make sure that port 8009 is not blocked on the tomcat box. An easy way to test this is have tomcat running and from your web server just telnet into port 8009 of your tomcat box. You should connect, otherwise you need to sort out firewall rules first. The problems I had on the apache side were basically not having mod_jk work properly. I found out that the best way of approaching the apache/tomcat on different boxes task is to install and test apache/tomcat on each box individually. When they both work, then just change your apache-side workers.properties to point at the right host (by IP address worked for me). Also, try just JkMount'ing /examples outside the Virtual Server block. It's best to troubleshoot a pure mod_jk connectivity issue, excluding stuff like vhost context mismatches. I now have apache 2.0.40 speak with a remote tomcat 4.1.10 via mod_jk2, which I must say was easier to accomplish, simply because the 4.1.10 connectors source compiles a lot better. Regards Daniel Farinha
RE: How to Change Port Number of Tomcat
I think that Andreas has right. The ports of the connectors must be changed, but the shutdown port must also be changed. Try this and we'll see. -Message d'origine- De : Garling, Matthew [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 11:09 À : 'Tomcat Users List' Objet : RE: How to Change Port Number of Tomcat What ever you do, don't start putting tomcat 4 configuration entries in your server.xml configuration file. The error you say you are getting isn't a Tomcat problem at all. It sounds as though Tomcat is trying to start on the new ports you defined BUT they are already in use. That happens when you have to hard code ports. I suggest you try a port that is not being used. Try running netstat to see what ports are being used and code some different ones into your server.xml file. Matthew -Original Message- From: Andreas Mohrig [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:01 AM To: 'Tomcat Users List' Subject: RE: How to Change Port Number of Tomcat Hi, I'm afraid I can't reproduce your symptom with my two Tomcat 4.0(.4) on a single Linux PC. But since I don't have Tomcat 3.2.3 at my disposal, this may mean nothing. This may sound silly, but have you double checked that the right instances of tomcat get started (using the right server.xml)? Can you acces them on the designated ports when you start them alone? What are the error-messages exactly? Another thing I noted is the absence of a port for tomcat shutdown. With tomcat 4 there is a port configured for this on top of server.xml like this: Server port=8005 shutdown=SHUTDOWN debug=0 This is a wild guess, but maybe this is giving you trouble? I'm sorry I can't delve deeper into this. greetings Andreas Mohrig -Original Message- From: Bing Li [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:57 AM To: Tomcat Users List Subject: RE: How to Change Port Number of Tomcat Hi, Mohrig, In the Connector part, there are three port values, 8080, 8443 and 8007. I change them to 9080, 9443 and 9007. But when the other Tomcat (port values are 8080, 8443, 8007) is started, the one with new port values got error, which said Address already in use. The changed server.xml is attached. Thanks for your help! Bing -Original Message- From: Andreas Mohrig [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 12:44 AM To: 'Tomcat Users List' Subject: RE: How to Change Port Number of Tomcat I'd say that changing the port number in server.xml should definitely do the trick. Could you post your changed server.xml? We could take a look. greetings Andreas Mohrig Web: www.cadooz.de -Original Message- From: Bing Li [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:39 AM To: [EMAIL PROTECTED] Subject: How to Change Port Number of Tomcat Hi, all, I am now using Tomcat 3.2.3. I would like to use one PC to simulate two Web applications. Each of them resides in the same PC but they should have different port number. I took a try to change the port value in the server.xml. But it doesn't work. Anyone could do me a favor? Thanks a lot! Bing Li -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to Change Port Number of Tomcat
That's right, but he wants to run 2 Tomcat simultaneously. That's why all ports number must be different. -Message d'origine- De : Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 13:35 À : 'Tomcat Users List' Objet : RE: How to Change Port Number of Tomcat From the tomcat 4 RUNNING.txt file, to change the port number it only says to change 8080 to the number that you want. It does not mention changing anything else in the file. I have changed all my tomcats to 80 on windows, linux and solaris and have had not problems. Check netstat, also check ps -eaf for any old tomcat threads till holding on to the ports, and kill them. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with Tomcat 4.1.10!
You can run Tomcat as a service with the same parameters as the DOS mode. There were a post in this mailling list yesterdey (I think). The service creation command was given. I don't know which parameter is needed in your case, but if you specify all the parameters, it must be worked as in Dos mode. After, you could test which parameter missed. -Message d'origine- De : Alexander Schmidt [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 14:56 À : Tomcat Users List Objet : Re: Problem with Tomcat 4.1.10! I installed on platform win2000. But my great problem is that I have connected TOMCAT with Apache. I need Apache and Apache starts Tomcat! Any idea? Thanks A. Schmidt - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:42 PM Subject: RE: Problem with Tomcat 4.1.10! Maybe I was wrong and it's not a problem with your jsp file, since Miguel Angel Mulero Martinez had the same problem (running tomcat in win2000 as a service). On which platform do you have your tomcat installed? Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 2:34 PM To: Tomcat Users List Subject: Re: Problem with Tomcat 4.1.10! Hi! I have problems with the JSPs. The example also doesn´t work! Is it a bug! With Tomcat 4.0.4 I hadn´t problems. - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:20 PM Subject: RE: Problem with Tomcat 4.1.10! Something with the syntax of your jsp file. The line An error occurred at line: -1 in the jsp file: null makes me guess at some illegal character or even a missing file (???). Do you have some kind of index.jsp in your root directory? Do you have a webapp configured for /? Try accessing something you know exists for sure, e.g. something of the examples webapp. In Tomcat 4.0 http://localhost:8080/examples/jsp/num/numguess.jsp exists and should work. And if the error remains, post your jsp file. greetings Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 1:59 PM To: Tomcat Users List Subject: Problem with Tomcat 4.1.10! Hi! I have installed Tomcat 4.1.10-LE-JDK1.4. When I type in the browser http://localhost:8080/ I get the Error-Message HTTP Status 500 Exception report description The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: Unable to compile class for JSP root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file What is wrong? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with Tomcat 4.1.10!
That's what was given yesterday : %CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.ja r -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log To uninstall the sevice use: %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina But you must verify if it's matched with Tomcat 4.1.10 configuration. -Message d'origine- De : Alexander Schmidt [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 15:17 À : Tomcat Users List Objet : Re: Problem with Tomcat 4.1.10! Thanks but I don´t have the parameters from yesterday! Did anyone have? Thanks A. Schmidt - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 3:17 PM Subject: RE: Problem with Tomcat 4.1.10! You can run Tomcat as a service with the same parameters as the DOS mode. There were a post in this mailling list yesterdey (I think). The service creation command was given. I don't know which parameter is needed in your case, but if you specify all the parameters, it must be worked as in Dos mode. After, you could test which parameter missed. -Message d'origine- De : Alexander Schmidt [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 14:56 À : Tomcat Users List Objet : Re: Problem with Tomcat 4.1.10! I installed on platform win2000. But my great problem is that I have connected TOMCAT with Apache. I need Apache and Apache starts Tomcat! Any idea? Thanks A. Schmidt - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:42 PM Subject: RE: Problem with Tomcat 4.1.10! Maybe I was wrong and it's not a problem with your jsp file, since Miguel Angel Mulero Martinez had the same problem (running tomcat in win2000 as a service). On which platform do you have your tomcat installed? Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 2:34 PM To: Tomcat Users List Subject: Re: Problem with Tomcat 4.1.10! Hi! I have problems with the JSPs. The example also doesn´t work! Is it a bug! With Tomcat 4.0.4 I hadn´t problems. - Original Message - From: Andreas Mohrig [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 12, 2002 2:20 PM Subject: RE: Problem with Tomcat 4.1.10! Something with the syntax of your jsp file. The line An error occurred at line: -1 in the jsp file: null makes me guess at some illegal character or even a missing file (???). Do you have some kind of index.jsp in your root directory? Do you have a webapp configured for /? Try accessing something you know exists for sure, e.g. something of the examples webapp. In Tomcat 4.0 http://localhost:8080/examples/jsp/num/numguess.jsp exists and should work. And if the error remains, post your jsp file. greetings Andreas Mohrig -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 1:59 PM To: Tomcat Users List Subject: Problem with Tomcat 4.1.10! Hi! I have installed Tomcat 4.1.10-LE-JDK1.4. When I type in the browser http://localhost:8080/ I get the Error-Message HTTP Status 500 Exception report description The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: Unable to compile class for JSP root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file What is wrong? Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: IOException under tomcat 4.1.10!
I don't know very well the JK2 connector, but I think that you have configured Tomcat to function with the jni channel. And you don't specify the apr.NativeSo parameter. More explication here. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configtc.html -Message d'origine- De : Alexander Schmidt [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 16:25 À : Tomcat Users List Objet : IOException under tomcat 4.1.10! Hi! Can someone tell me what this mean and if it is important? INFO: APR not loaded, disabling jni components: java.io.IOException: no jkjni in java.library.path Thanks A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 1.3.26 to Tomcat 4.0.4 PROBLEM with mod-Jk on solaris
First Engine name=Standalone defaultHost=localhost debug=0 must be : Engine name=Standalone defaultHost=ebusiness.corp.teradyne.com debug=0 In your workers.properties, you have: worker.ajp13.host=ebusiness.corp.teradyne.com Is ebusiness.corp.teradyne.com knowned? ebusiness.corp.teradyne.com must be a machine name. You must specify the host in the workers.properties when Tomcat is installed in a different machine than Apache. If it's not the case you can let that as localhost. -Message d'origine- De : Habibak haAlbek [mailto:[EMAIL PROTECTED]] Envoye : jeudi 12 septembre 2002 16:57 A : [EMAIL PROTECTED] Objet : Apache 1.3.26 to Tomcat 4.0.4 PROBLEM with mod-Jk on solaris Still hangs. Apache alone works fine. TomCat alone works fine. something is wrong with the connector configuration. here's what I have: 1- Server.xml : - Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig / - Service name=Tomcat-Standalone Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6 / Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=10 / - Engine name=Standalone defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true / Realm className=org.apache.catalina.realm.MemoryRealm / - Host name=ebusiness.corp.teradyne.com debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common / Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true / Context path=/manager docBase=manager debug=0 privileged=true / + Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true / Ejb name=ejb/EmplRecord type=Entity home=com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord / --f(clean); Environment name=maxExemptions type=java.lang.Integer value=15 / Parameter name=context.param.name value=context.param.value override=false / Resource name=jdbc/EmployeeAppDb auth=SERVLET type=javax.sql.DataSource / - ResourceParams name=jdbc/EmployeeAppDb - parameter nameuser/name valuesa/value /parameter - parameter namepassword/name value / /parameter - parameter namedriverClassName/name valueorg.hsql.jdbcDriver/value /parameter - parameter namedriverName/name valuejdbc:HypersonicSQL:database/value /parameter /ResourceParams Resource name=mail/Session auth=Container type=javax.mail.Session / - ResourceParams name=mail/Session - parameter namemail.smtp.host/name valuelocalhost/value /parameter /ResourceParams /Context /Host /Engine /Service - Service name=Tomcat-Apache - Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true / Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server 2. workers.properties looks like this: # # workers.properties # worker.list=ajp12, ajp13 workers.tomcat_home=/export/home/eapps/apacheTomCat/jakarta-tomcat-4.0.4 workers.java_home=/usr/java1.2 ps=/ worker.ajp13.port=8009 worker.ajp13.host=ebusiness.corp.teradyne.com worker.ajp13.type=ajp13 # # END workers.properties # 3. JDK version is 1.2.2_05a 4. httpd.conf contains the following lines LoadModule jk_module libexec/mod_jk.so (I even downloaded another so than then the one I have compiled) AddModule mod_jk.c JkWorkersFile /apache-dir/conf/workers.properties JkLogFile /apache-dir/logs/mod_jk.log JkLogLevel debug JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 it can not be simpler than that configuration wise, at this point It is becoming frustrating not having a clue what's going on! Thanks for your help! - Do you Yahoo!? Yahoo! News - Today's headlines -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 2, mod_jk2, inprocess, w2k, classpath ?
You could just specify the directory where your jars are in the java.class.path. -Message d'origine- De : Andre Schild [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 12 septembre 2002 17:11 À : [EMAIL PROTECTED] Objet : Apache 2, mod_jk2, inprocess, w2k, classpath ? Hello, I'm trying to setup my Apache 2.0.40 with mod_jk2 and tomcat 4.1.10 When using the AJP13 connector or http connectors then things work fine. But when I specify to use the inprocess/jni connection, then I get startup problems for the VM. Looking at the stderr.log file, I see that it doesn't find the needed jar files who are located in TOMCAT_HOME/server/lib and TOMCAT_HOME/lib/... etc. When I add one .jar to the OPT=-Djava.class.path= line in the workers2.properties file, then this class loads, but it stops at the next missing jar file. Must I realy add all 32 jar files located in TOMCAT_HOME/server/lib and TOMCAT_HOME/common/lib manually to get it working André -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat running as a service...
1 - At the Tomcat's Installation, you can sepcify to install Tomcat as a service. 2 - Tomcat.exe works great to create a service, there is some options to specify -Message d'origine- De : Joseph Duncan Shaw [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 11 septembre 2002 09:48 À : '[EMAIL PROTECTED]' Objet : Tomcat running as a service... Hi there... I have installed Tomcat on my Win2000 server and it's running perfectly!! One question I have though...How do I get Tomcat to start automatically on my server as it boots (so that I don't have to logon). I have tried installing Tomcat as a service, but it doesn't work (seems that the Tomcat.exe isn't all that is required to get Tomcat up and running). Any other suggestions? Thanks! Regards, Joseph Shaw MCP 2000, ITE Dipl. Millennium Computer Services (Tel)+27 21 4481777 (fax)+27 21 448 1982 ** Disclaimer : This message contains confidential information and is intended only for the addressee. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. Millennium accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Employees of Millennium are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. The company will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]