Re: JRE and JSP
You can use the JSPC script to pre-compile your JSP pages before creating your war file. RAJESH KANNAN [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, We have a special requirement which warrants the use of tomcat with only JRE. (Not JDK). In our web application we have JSPs also in addition to Java classes. Is there any way by which we can operate TOMCAT only with JRE. (which supports JSP execution). We are using TOMCAT-4.0.3 with JRE 1.4.1. Can you please give some directions to go about. Thanks in anticipation. With Regards K.RajeshKannan _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
An error occurred at line: -1 in the jsp file: null
What does this error mean? I have been trying to migrate my old JSPs to tomcat 4.1.10 + JDK1.4 But all I got is this error, the JSP works fine before on tomcat 4.1.9 + JDK1.3 -- 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 at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:120) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:326) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 82) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) snip -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Servlet multithreading design question
If I create classes similar to the following, then I suspect that I will run into multithreading issues, because OneServlet and TwoServlet will run in the same JVM? Is this correct? public abstract class BaseServlet extends HttpServlet implements SingleThreadModel { int value; } public class OneServlet extends BaseServlet { public void init (ServletConfig config) { value = 1; } } public class TwoServlet extends BaseServlet { public void init (ServletConfig config) { value = 2; } } -- Mathew Pole Web Architect, Gerard Industries email: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] www: http://www.clipsal.com/ http://www.clipsal.com http://www.custompress.com.au/ http://www.custompress.com.au phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617
RE: Restart webapp after Exception
Zitiere Andy Eastham [EMAIL PROTECTED]: Paul, I'm afraid it looks like you have to write code that doesn't eat all the memory on the server ;-) Andy This isn't possible because we are using foreign components. There is a cache system eating a lot of memory which we can't change/modify! Do anyone else has a solution? Thanks, Paul -Original Message- From: Paul Andreas Petershagen [mailto:[EMAIL PROTECTED]] Sent: 08 September 2002 22:18 To: [EMAIL PROTECTED] Subject: Restart webapp after Exception Hi, I have a problem with a webapp application. It produces sometimes a java.lang.OutOfMemory error and Tomcat is going to shut it down like this: java.lang.OutOfMemoryError java.lang.OutOfMemoryError Stopping service Tomcat-Standalone Exception during startup processing java.lang.reflect.InvocationTargetException: java.lang.OutOfMemoryError Starting service Tomcat-Standalone Apache Tomcat/4.0.4-b3 After this, the webapp wasn't available any more. I had to stop and start Tomcat by myself. What can I do to get Tomcat restart correctly? I set the JVM head size to bigger values but what if this doesn't help? How can I guarantee a running / stable system? Thanks in advance, Paul -- 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: Apache/tomcat load balance doesn't work with http post operation
Hi, I have already had this type of problem, the cause was a miss configuration. Can we please see your worker.properties and server.xml file? Vincent. -Message d'origine- De : Xiaoyu Zhang [mailto:[EMAIL PROTECTED]] Envoyé : dimanche 8 septembre 2002 19:30 À : [EMAIL PROTECTED] Objet : Apache/tomcat load balance doesn't work with http post operation Hi All, Sorry if you received this email twice. I didn't receive the email from tomcat-user list, so I am sending it again in case the first one got lost. I have set up Apache 1.3.29 distribute loads across 2 Catalina 4.0.3. For http get operation, every thing works fine. For HTTP post operation, apache can figure out the righ server to send the request, however catalina 4.0.3 can not identify the correct session, it can not find the data we stored in the session. Would like to know if anyone else has similar experience to share? TIA Xiaoyu -- 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]
threads best practice
- Original Message - From: skraaatch [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 8:12 PM Subject: threads best practice hi all, please could someone tell me what the best way to start and run a background thread is in tomcat? i have a couple of tasks that need to run on a regular basis to update my db. however, using an initialisation servlet to start the threads seems to cause problems with the classloader. many thanks, aL. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Software Caused Connection Abort
Hi All, I am using Tomcat 4.0. I am using SMTP mail, threads and ofcourse with database connections. I am getting the following error. System or internal error java.net.SocketException: Software caused connection abort: socket write error After this tomcat is unable to make connections or send mails. Can any body tell me what is the problem? Details : I need to send mails at 9 am, 12 noon, 2pm every day depending on data in the database. For activating the data checking at these shceduled timings, I am using threads. I am using SMTP host. Database is informix. Is it the problem with Tomcat or SMTP or Database? If needed I can send sample code. with best regrds Reddy Madhava Reddy, Software Engineer ICON GmbH, Hertzstresse 16, Geb.06.41 Karlsruhe, Germany Ph. (0)721 - 790 08 -67 (office) (0)170 5526528(Mobile) - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes
Re: global.jsa
Hello, I've seen a few answers to your question suggesting that you use a servlet that loads on startup. I have another suggestion that you may prefer to emulate global.asa: implement ServletContextListener and HttpSessionActivationListener. javax.servlet.ServletContextListener ...sends you events when the webapp starts and ends. javax.servlet.http.HttpSessionActivationListener ...sends you events when a session is created or destroyed. You'll find javadocs for these items in the following path with a default tomcat installation, obviously relative to the root of your installation: /tomcat-docs/servletapi/index.html To use them, you'll need to add appropriate XML elements to web.xml (refer to a tutorial or the web.xml DTD). It's simple and works well. - Chris - Original Message - From: neal [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, September 03, 2002 10:14 AM Subject: global.jsa Is there such a thing as a global.jsa file in Tomcat? I first saw this concept (an idea taken from ASP's global.asa) implemented in JRUN. If there is a global.jsa, does anyone know of any docs on this? If not, is there an alternative? The reason I would want to use this is to instantiate, populate, and cache a few objects upon startup of the application. If Tomcat does not provide a global.jsa...does anyone know how otherwise to achieve the goal? Thanks. Neal -- 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]
apache 2.0 and tomcat 4.1.7 integration problem
Hi all, I am having problem integrating apahce 2.0 and tomcat 4.1.7. I am working on it since 3 days. I have read the articles on website, searched the archives, but in the archives also there is no answer to be found. My tc and apahce are installed and running successfully individually. But when i try to integrate them, apache closes, saying operation failed. This happens only after i add the foll. line in httpd.conf Include d:/ApacheTomcat4.1/conf/auto/mod_jk.conf If i remove the above line, then apache runs smoothly. I have been going through the instructions in http://www.webmasterbase.com/article/305/53 http://www.webmasterbase.com/article/305/53 http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html . I have downloaded the mod_jk.dll from the relevant site and done the changes as needed in the respective files as said in the articles. My Configuration: Apache 2.0 beta version, Tomcat 4.1.7 beta version, windows NT 4.0 Regards, Vikramjit Singh, GTL Ltd. Ph. 7612929-1059
AW: Tomcat standalone Versus Apache
What do most people run for production and why? Tomcat standalone or Tomcat with Apache? And for that matter, isn't the http server for Tomcat Apache - or is it something else? For help in your decision : we run our tc standalone because nearly every page handles dynamic content. just the layout is bases on static files which are included. In case of using perl we create a new process and let it work for itself. So WE have no need for Apache. OTHERS may have it while mixing PERL/PHP/JSP together. Make clear what you wanne do, and there will be someone with an equal webapp who can help you.. cu M.Schwarz -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat standalone Versus Apache
-Original Message- From: Power-Netz (Schwarz) [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 1:57 AM To: Tomcat Users List Subject: AW: Tomcat standalone Versus Apache What do most people run for production and why? Tomcat standalone or Tomcat with Apache? And for that matter, isn't the http server for Tomcat Apache - or is it something else? Apache may be slightly faster at serving static pages, but unless you're running a web site with lots of traffic and lots of static content, I doubt that you will notice any difference compared to running Tomcat stand-alone. In fact, your dynamic pages (servlets and JSP pages) may run slightly slower, because you now have a new layer of code to go through before you hit them. Adding Apache to the mix also makes life a whole lot more complex, as you have already seen. There's rarely a need to run Tomcat behind Apache. The exceptions I can think of are * if your site uses a mix of servlet/JSP and features only supported by Apache (e.g. PHP, mod_rewrite, etc.) * if you make heavy use of HTTPS; Apache's SSL C code is probably still faster than Tomcat's SSL Java code. * if you have an extremely popular site with tons of large static files (e.g. huge graphic files). If none of this is true, I recommend sticking to the stand-alone configurations. Remember that performance is rarely a goal in itself; enough performance to handle your requirements is typically what you want. Performance always cost something (more complex design, configuration and administration, more expensive hardware and software) Run load tests against your site and see if it's able to handle the estimated peek usage within the time margins you define. If so, great. If not, try to find the bottleneck and fix it. In most cases it's the database for a web application, not the web server's ability to serve static files. -- 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]
form-login-config
After I sent my previous message I played around a bit and it became clear that I was misinterpreting how to use form login. I'll explain what I want to do and perhaps somebody would be kind enough to point me in the right direction. I have a page that I only want members to be able to get to, member.jsp for instance. At the moment I've got it set up so attempting to access member.jsp will redirect you to the index page at which point you can login in and then be redirected to the member page. All works ok. However what I actually want is a form login on each page of the site and when a user logs in they get redirected to member.jsp. At the moment that gives me a invalid direct reference to form login page because tomcat wants me to go to member.jsp first and then be redirected to a form. Do I have to write myself some authentication code in this case? This was very easy in resin because you just mapped the j_security_check servlet and everything worked as I've outlined. Help! Thanks a lot, Richard -- http://fastmail.fm - Taking the ail out of email! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Still need help w. Tomcat installation
I STILL need some degree of help/assistance from someone in this newsgroup re. installing Tomcat!!! That is really a damned SAD thing to have to say at this late date now, you would think that I could have had this thing figured out by now! (Maybe I am just flat too DUMB to be a member of this newsgroup, I don't know!! :) ) Anyway, I think that the crux of my problem is that I am editing the environment variables in System the wrong way!! Do I or do I not leave on the ; (semi-colon) after the particular path in the JAVA_HOME and TOMCAT_HOME, etc.? When I try to activate Tomcat in DOS, I always seem to get an error message saying that the JAVA_HOME variable is either missing or improperly set. Now, what's up with that anyway? Sincerely Yours, Steve Burrus SINCERELY YOURS, STEVE BURRUS ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
threads best practice
hi all, please could someone tell me what the best way to start and run a background thread is in tomcat? i have a couple of tasks that need to run on a regular basis to update my db. however, using an initialisation servlet to start the threads seems to cause problems with the classloader. many thanks, aL. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Still need help w. Tomcat installation
To run Tomcat in DOS, you must specify the JAVA_HOME and TOMCAT_HOME environment variables (system or user are not important in a first step). If you have already done it, you must close your DOS window and open a new one in order to the variables became enabled. hopes it help you. -Message d'origine- De : STEVE BURRUS [mailto:[EMAIL PROTECTED]] Envoyé : dimanche 8 septembre 2002 21:53 À : [EMAIL PROTECTED] Objet : Still need help w. Tomcat installation I STILL need some degree of help/assistance from someone in this newsgroup re. installing Tomcat!!! That is really a damned SAD thing to have to say at this late date now, you would think that I could have had this thing figured out by now! (Maybe I am just flat too DUMB to be a member of this newsgroup, I don't know!! :) ) Anyway, I think that the crux of my problem is that I am editing the environment variables in System the wrong way!! Do I or do I not leave on the ; (semi-colon) after the particular path in the JAVA_HOME and TOMCAT_HOME, etc.? When I try to activate Tomcat in DOS, I always seem to get an error message saying that the JAVA_HOME variable is either missing or improperly set. Now, what's up with that anyway? Sincerely Yours, Steve Burrus SINCERELY YOURS, STEVE BURRUS ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- 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: Still need help w. Tomcat installation
No trailing semi-colon. No trailing slash. :) -Original Message- From: STEVE BURRUS [mailto:[EMAIL PROTECTED]] Sent: 08 September 2002 20:53 To: [EMAIL PROTECTED] Subject: Still need help w. Tomcat installation I STILL need some degree of help/assistance from someone in this newsgroup re. installing Tomcat!!! That is really a damned SAD thing to have to say at this late date now, you would think that I could have had this thing figured out by now! (Maybe I am just flat too DUMB to be a member of this newsgroup, I don't know!! :) ) Anyway, I think that the crux of my problem is that I am editing the environment variables in System the wrong way!! Do I or do I not leave on the ; (semi-colon) after the particular path in the JAVA_HOME and TOMCAT_HOME, etc.? When I try to activate Tomcat in DOS, I always seem to get an error message saying that the JAVA_HOME variable is either missing or improperly set. Now, what's up with that anyway? Sincerely Yours, Steve Burrus SINCERELY YOURS, STEVE BURRUS ___ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com -- 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: Problems getting roles in JNDI Realm (This *IS* a problem.)
Providing a connectionName and connectionPassword does *not* cause JNDIRealm to lookup the password. It will still authenticate by binding as the user unless you specify the userPassword configuration attribute. Looking up roles as the administrator (or anonymously if connectionName and connectionPassword are not specified) is a deliberate design decision. John. Mark R. Diggory wrote: Looking over the JNDIRealm Code I notice that in the bindAsUser method that the users principle and credentials are stripped out of the context. It is after this point that the JNDI search request is made to gather the roles from the ldap server. Shouldn't it be *after* the search for the roles that the users principle and credentials is removed from the DirContext? This would mean that I can never *really* use bindAsUser(...) strategy because I'd always have to provide a connectionUser and connectionPassword to do the role lookup. Not good at all. This means the configuration is impossible because if you provide the connectionName and connectionPassword attributes, then it just looks up the password on authentication instead of binding as the user. -M. Mark R. Diggory wrote: I know my request should work at the LDAP Server through JNDI because the following does work when I make a request to the LDAP server. I do get back the groups. % Hashtable env = new Hashtable(); env.put(DirContext.INITIAL_CONTEXT_FACTORY,com.sun.jndi.ldap.LdapCtxFactory); env.put(DirContext.SECURITY_PRINCIPAL,uid=jadmin,ou=vdcid,ou=hmdc,o=vdc); env.put(DirContext.SECURITY_CREDENTIALS,**); env.put(DirContext.PROVIDER_URL,ldap://vdc.fas.harvard.edu:389;); DirContext ctx = new InitialDirContext(env); SearchControls controls = new SearchControls(); controls.setSearchScope(SearchControls.SUBTREE_SCOPE); controls.setReturningAttributes(new String[] {vdcGroup}); NamingEnumeration enum = ctx.search(o=vdc,(member=uid=jadmin,ou=vdcid,ou=hmdc,o=vdc),controls); while(enum.hasMore()){ SearchResult sr = (SearchResult)enum.next(); out.print(sr.getAttributes().get(vdcGroup) + BR); } % is returning vdcGroup: public vdcGroup: researchers vdcGroup: curators vdcGroup: administrators -Mark Mark R. Diggory wrote: I'm trying to get a realm set up via JNDI to an Openldap server. Here is my current server.xml config. Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://vdc.fas.harvard.edu:389; userPattern=uid={0},ou=vdcid,ou=hmdc,o=vdc roleBase=o=vdc roleSubtree=true roleName=vdcGroup roleSearch=(member={0}) digest=SHA / I'm using vdcGroup entries to store unique member attributes named 'member'. I can do this search using straight JNDI in a Test Java Application. But the realm will not return the vdcGroups that jadmin is a member of. Is there something obvious I am missing? -Mark 2002-09-07 10:40:51 JNDIRealm[Standalone]: Connecting to URL ldap://vdc.fas.harvard.edu:389 2002-09-07 10:41:11 JNDIRealm[Standalone]: lookupUser(jadmin) 2002-09-07 10:41:11 JNDIRealm[Standalone]: dn=uid=jadmin,ou=vdcid,ou=hmdc,o=vdc 2002-09-07 10:41:11 JNDIRealm[Standalone]: validating credentials by binding as the user 2002-09-07 10:41:11 JNDIRealm[Standalone]: binding as uid=jadmin,ou=vdcid,ou=hmdc,o=vdc 2002-09-07 10:41:11 JNDIRealm[Standalone]: Username jadmin successfully authenticated 2002-09-07 10:41:11 JNDIRealm[Standalone]: getRoles(uid=jadmin,ou=vdcid,ou=hmdc,o=vdc) 2002-09-07 10:41:11 JNDIRealm[Standalone]: Searching role base 'o=vdc' for attribute 'vdcGroup' 2002-09-07 10:41:11 JNDIRealm[Standalone]: With filter expression '(member=uid=jadmin,ou=vdcid,ou=hmdc,o=vdc)' 2002-09-07 10:41:11 JNDIRealm[Standalone]: Returning 0 roles 2002-09-07 10:41:12 JNDIRealm[Standalone]: Username jadmin does NOT have role tomcat 2002-09-07 10:41:12 JNDIRealm[Standalone]: Username jadmin does NOT have role role1 2002-09-07 10:41:12 JNDIRealm[Standalone]: Username jadmin does NOT have role administrators -- 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: threads best practice
I can't imagine why you'd have problems with your classloader. In any event, I prefer to use context lifecycle events myself. See http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html?page=1 You might want to post more details about your classloader problem as it is possibly only a minor problem. skraaatch wrote: hi all, please could someone tell me what the best way to start and run a background thread is in tomcat? i have a couple of tasks that need to run on a regular basis to update my db. however, using an initialisation servlet to start the threads seems to cause problems with the classloader. many thanks, aL. -- 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 4.1.0 fresh configuration problem
Hi I have a problem with fresh Tomcat 4.1.0 installation. When I try http://127.0.0.1:8080/admin/ I get: org.apache.jasper.JasperException: Unable to compile class for JSP , and in log I get: 2002-09-09 12:14:57 Error compiling file: D:\Java\tomcat\work\Standalone\localhost\admin\/login_jsp.java [javac] Compiling 1 source file D:\Java\tomcat\work\Standalone\localhost\admin\login_jsp.java:69: package org.apache.struts.taglib.html does not exist org.apache.struts.taglib.html.HtmlTag _jspx_th_html_html_0 = (org.apache.struts.taglib.html.HtmlTag) _jspx_tagPool_html_html_locale.get(org.apache.struts.taglib.html.HtmlTag.cla ss); My JAVA_HOME variable is set correctly. What could cause this problem? TIA -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.1.0 fresh configuration problem
Partycki Piotr wrote: Hi I have a problem with fresh Tomcat 4.1.0 installation. When I try http://127.0.0.1:8080/admin/ I get: org.apache.jasper.JasperException: Unable to compile class for JSP , and in log I get: 2002-09-09 12:14:57 Error compiling file: D:\Java\tomcat\work\Standalone\localhost\admin\/login_jsp.java [javac] Compiling 1 source file D:\Java\tomcat\work\Standalone\localhost\admin\login_jsp.java:69: package org.apache.struts.taglib.html does not exist org.apache.struts.taglib.html.HtmlTag _jspx_th_html_html_0 = (org.apache.struts.taglib.html.HtmlTag) _jspx_tagPool_html_html_locale.get(org.apache.struts.taglib.html.HtmlTag.cla ss); My JAVA_HOME variable is set correctly. What could cause this problem? Install Tomcat on the C: drive. (this is apparently caused by an Ant bug; there will be a workaround in 4.1.11) Remy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Url Mapping with mod_jk
Hi Again Thanks for your ongoing help. I have done as suggested in the previous post i.e.. http.conf now just has an include all listener elements in server.xml have forwardAll=false in them. The result (as I'm sure you know) of changing the listener elements was to make the generated mod_jk.conf much more comprehensive (and similar to the example you pointed at). This is all good and I feel I am making progress - but the problem is still there. When I look at the site through Apache the JSP source is displayed. Also, I have noticed that the generated mod_jk.conf contains two identical entries for the same virtual host. I have included the mod_jk.conf below (sorry it is so long): --- cut --- ## Auto generated on Mon Sep 09 10:52:32 BST 2002## IfModule !mod_jk.c LoadModule jk_module /usr/local/apache/libexec/mod_jk.so /IfModule JkWorkersFile /usr/local/jakarta-tomcat/conf/jk/workers.properties JkLogFile /usr/local/jakarta-tomcat/logs/mod_jk.log JkLogLevel info VirtualHost stagenewngfl.ngfl.gov.uk ServerName stagenewngfl.ngfl.gov.uk stagenewngfl.ngfl.gov.uk:/stagenewngfl # Static files Alias /stagenewngfl /usr/local/jakarta-tomcat-4.0.4/webapps/stagenewngfl Directory /usr/local/jakarta-tomcat-4.0.4/webapps/stagenewngfl Options Indexes FollowSymLinks DirectoryIndex index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /stagenewngfl/WEB-INF/* AllowOverride None deny from all /Location Location /stagenewngfl/META-INF/* AllowOverride None deny from all /Location JkMount /stagenewngfl/servlet/* ajp13 JkMount /stagenewngfl/servlet/UserUpdateServlet ajp13 JkMount /stagenewngfl/servlet/RoleDeleteServlet ajp13 JkMount /stagenewngfl/servlet/CreateFeatureServlet ajp13 JkMount /stagenewngfl/*.jsp ajp13 stagenewngfl.ngfl.gov.uk:/manager # Static files Alias /manager /usr/local/jakarta-tomcat-4.0.4/webapps/manager Directory /usr/local/jakarta-tomcat-4.0.4/webapps/manager Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /manager/WEB-INF/* AllowOverride None deny from all /Location Location /manager/META-INF/* AllowOverride None deny from all /Location JkMount /manager/*.jsp ajp13 JkMount /manager/servlet/* ajp13 JkMount /manager/* ajp13 /VirtualHost VirtualHost localhost ServerName localhost JkMount /examples ajp13 JkMount /examples/* ajp13 localhost:/stagenewngfl # Static files Alias /stagenewngfl /usr/local/jakarta-tomcat-4.0.4/webapps/stagenewngfl Directory /usr/local/jakarta-tomcat-4.0.4/webapps/stagenewngfl Options Indexes FollowSymLinks DirectoryIndex index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /stagenewngfl/WEB-INF/* AllowOverride None deny from all /Location Location /stagenewngfl/META-INF/* AllowOverride None deny from all /Location JkMount /stagenewngfl/servlet/* ajp13 JkMount /stagenewngfl/servlet/UserUpdateServlet ajp13 JkMount /stagenewngfl/servlet/RoleDeleteServlet ajp13 JkMount /stagenewngfl/servlet/CreateFeatureServlet ajp13 JkMount /stagenewngfl/*.jsp ajp13 localhost:/manager # Static files Alias /manager /usr/local/jakarta-tomcat-4.0.4/webapps/manager Directory /usr/local/jakarta-tomcat-4.0.4/webapps/manager Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /manager/WEB-INF/* AllowOverride None deny from all /Location Location /manager/META-INF/* AllowOverride None deny from all /Location JkMount /manager/*.jsp ajp13 JkMount /manager/servlet/* ajp13 JkMount /manager/* ajp13 /VirtualHost VirtualHost stagenewngfl.ngfl.gov.uk ServerName stagenewngfl.ngfl.gov.uk stagenewngfl.ngfl.gov.uk:/stagenewngfl # Static files Alias /stagenewngfl /usr/local/jakarta-tomcat-4.0.4/webapps/stagenewngfl Directory /usr/local/jakarta-tomcat-4.0.4/webapps/stagenewngfl Options Indexes FollowSymLinks DirectoryIndex index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /stagenewngfl/WEB-INF/* AllowOverride None deny from all /Location Location /stagenewngfl/META-INF/* AllowOverride None deny from all /Location JkMount
[OT] Linux environment variables
Hi guys. Sorry, i'm not expert in linux I need that some environment variables (like JAVA_HOME) are visible to a specified user Until today i worked with root, so i placed them in /etc/profile. I'd like now them are visible only for the specified user (also the installation is done by the user). Is there a file for the user where i can place them? Sorry my english and my poor linux knowledge Giorgio -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.0 fresh configuration problem
Partycki Piotr wrote: Hi I have a problem with fresh Tomcat 4.1.0 installation. When I try http://127.0.0.1:8080/admin/ I get: org.apache.jasper.JasperException: Unable to compile class for JSP , and in log I get: 2002-09-09 12:14:57 Error compiling file: D:\Java\tomcat\work\Standalone\localhost\admin\/login_jsp.java [javac] Compiling 1 source file D:\Java\tomcat\work\Standalone\localhost\admin\login_jsp.java:69: package org.apache.struts.taglib.html does not exist org.apache.struts.taglib.html.HtmlTag _jspx_th_html_html_0 = (org.apache.struts.taglib.html.HtmlTag) _jspx_tagPool_html_html_locale.get(org.apache.struts.taglib.html.HtmlTag.cla ss); My JAVA_HOME variable is set correctly. What could cause this problem? Install Tomcat on the C: drive. (this is apparently caused by an Ant bug; there will be a workaround in 4.1.11) Remy Thank you, now it works -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Servlet multithreading design question
What are the Multi-threaded isses? Regardless that the abstract class does implement SingleThreadModel - you would still have 2 instances of BaseServlet since it is extended by OneServlet and TwoServlet. Who will need to be more specific in you question. Mathew Pole wrote: If I create classes similar to the following, then I suspect that I will run into multithreading issues, because OneServlet and TwoServlet will run in the same JVM? Is this correct? public abstract class BaseServlet extends HttpServlet implements SingleThreadModel { int value; } public class OneServlet extends BaseServlet { public void init (ServletConfig config) { value = 1; } } public class TwoServlet extends BaseServlet { public void init (ServletConfig config) { value = 2; } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Query
HI, I have the following query, I am using tomcat 3.3.1 and would like to deploy a new version of a webapp in a war file. To do this I need to stop Tomcat, remove the expanded old war directory and restart Tomcat. I would like to know is there a way to deploy a new version of a webbapp in a war file without having to manually delete the earlier expanded war file ? Note in the apps-*.xml file reloadable is set to true. ?xml version=1.0 encoding=ISO-8859-1? webapps Context path=/emissary docBase=webapps/emissary debug=0 reloadable=true /Context /webapps Thanks, Tony. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 3.1.* config problem
Hi I have been trying to install Tomcat v3.1.2 (I think which by the looks of it is a really old version) - my problem is that I have installed 2 different versions of Tomcat in 2 different places - one in its own root directory and the other in a sub-directory of JBuilder4. I seem to get an 'out of environment space' (I am running of Windows 98) issue when trying to run from within JBuilder and I get a set up JAVA_HOME variable error message when trying to run/start Tomcat in the one off the root directory . How do I set this up correctly ? I have fiddled around in the classpath of my autoexec.bat file but don't think that I have got it right . I have to code an entire Java/JSP project and have a week to do it and am suitably freaked out that I cannot even get the configs correct ..lol ... Any takers ? Thanks Samantha ## Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions presented are solely those of the author. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Query
-Original Message- From: Tony McNicholas [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:05 AM To: [EMAIL PROTECTED] Subject: Query HI, I have the following query, I am using tomcat 3.3.1 and would like to deploy a new version of a webapp in a war file. To do this I need to stop Tomcat, remove the expanded old war directory and restart Tomcat. I would like to know is there a way to deploy a new version of a webbapp in a war file without having to manually delete the earlier expanded war file ? Note in the apps-*.xml file reloadable is set to true. ?xml version=1.0 encoding=ISO-8859-1? webapps Context path=/emissary docBase=webapps/emissary debug=0 reloadable=true /Context /webapps AFAIK, it is only possible in tc 4.x series. TC 3.x does not support dynamic class loading. Thanks, Tony. Vikram. -- 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: Query
Vikram, I don't mind having to restart Tomcat 3.3.1 but I don't want to have to manually remove the webapps/emissary directory before restarting. emissary being the name of our webapp. I would like Tomcat on restart to realise that there is a newer war file, remove the old webapps/emissary directory where the old expanded war file exists and expand the newer war file again. Is it possible to do this ? Thanks, Tony. -Original Message- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: 09 September 2002 12:05 To: 'Tomcat Users List' Subject: RE: Query -Original Message- From: Tony McNicholas [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:05 AM To: [EMAIL PROTECTED] Subject: Query HI, I have the following query, I am using tomcat 3.3.1 and would like to deploy a new version of a webapp in a war file. To do this I need to stop Tomcat, remove the expanded old war directory and restart Tomcat. I would like to know is there a way to deploy a new version of a webbapp in a war file without having to manually delete the earlier expanded war file ? Note in the apps-*.xml file reloadable is set to true. ?xml version=1.0 encoding=ISO-8859-1? webapps Context path=/emissary docBase=webapps/emissary debug=0 reloadable=true /Context /webapps AFAIK, it is only possible in tc 4.x series. TC 3.x does not support dynamic class loading. Thanks, Tony. Vikram. -- 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: Tomcat 3.1.* config problem
Samantha, I think this might help resovle your problem http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q230205; Out of Environment Space Error Message in MS-DOS Programs The information in this article applies to: Microsoft Windows 95 Microsoft Windows 95 OEM Service Release 1, 2, 2.1, 2.5 Microsoft Windows 98 Symptoms When you attempt to run an MS-DOS program in Windows, you may receive the following error message: Out of environment space. Cause This issue can occur if you do not have enough memory in the MS-DOS environment to set an environment variable. Resolution To resolve this issue, increase the default environment space available for MS-DOS programs. To do this, use one of the following methods. Modify the Environment for All MS-DOS Programs To increase the default environment space for all MS-DOS programs running in Windows, edit the Shell command in the Config.sys file. To do this, follow these steps: Click Start, and then click Run. In the Open box, type sysedit, and then click OK. Click the Config.sys window. At the beginning of the Shell= line, type REM, and then press the SPACEBAR. If the Shell= line does not exist, proceed to the next step. Press the HOME key. Type the following line to create a new Shell= line, and then press ENTER: SHELL=C:\COMMAND.COM /E:4096 /P On the File menu, click Save. On the File menu, click Exit. Restart the computer. Modify the Environment for a Specific MS-DOS Program To increase the default environment space for a specific MS-DOS program, follow these steps: Right-click the MS-DOS program icon, and then click Properties. Click the Memory tab. In the Initial Environment box, type the number of kilobytes (KB) that the program requires, and then click OK. NOTE: The maximum amount of memory that you can allocate for an MS-DOS program is 4096 KB. -Original Message- From: Hoy, Samantha SSA-CORAR11 [mailto:[EMAIL PROTECTED]] Sent: 09 September 2002 12:04 To: 'Tomcat Users List' Subject: Tomcat 3.1.* config problem Hi I have been trying to install Tomcat v3.1.2 (I think which by the looks of it is a really old version) - my problem is that I have installed 2 different versions of Tomcat in 2 different places - one in its own root directory and the other in a sub-directory of JBuilder4. I seem to get an 'out of environment space' (I am running of Windows 98) issue when trying to run from within JBuilder and I get a set up JAVA_HOME variable error message when trying to run/start Tomcat in the one off the root directory . How do I set this up correctly ? I have fiddled around in the classpath of my autoexec.bat file but don't think that I have got it right . I have to code an entire Java/JSP project and have a week to do it and am suitably freaked out that I cannot even get the configs correct ..lol ... Any takers ? Thanks Samantha ## Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions presented are solely those of the author. -- 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 3.1.* config problem
Thanks Tony ... I'll try this later as I haven't got it installed at my machine at work more worrying I think is how to set up the JAVA_HOME variable any ideas as to where I can locate more detailed info would be much appreciated ... Thanks Samantha -Original Message- From: Tony McNicholas [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 1:16 PM To: Tomcat Users List Subject: RE: Tomcat 3.1.* config problem Samantha, I think this might help resovle your problem http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q230205; Out of Environment Space Error Message in MS-DOS Programs The information in this article applies to: Microsoft Windows 95 Microsoft Windows 95 OEM Service Release 1, 2, 2.1, 2.5 Microsoft Windows 98 -Original Message- From: Hoy, Samantha SSA-CORAR11 [mailto:[EMAIL PROTECTED]] Sent: 09 September 2002 12:04 To: 'Tomcat Users List' Subject: Tomcat 3.1.* config problem Hi I have been trying to install Tomcat v3.1.2 (I think which by the looks of it is a really old version) - my problem is that I have installed 2 different versions of Tomcat in 2 different places - one in its own root directory and the other in a sub-directory of JBuilder4. I seem to get an 'out of environment space' (I am running of Windows 98) issue when trying to run from within JBuilder and I get a set up JAVA_HOME variable error message when trying to run/start Tomcat in the one off the root directory . How do I set this up correctly ? I have fiddled around in the classpath of my autoexec.bat file but don't think that I have got it right . I have to code an entire Java/JSP project and have a week to do it and am suitably freaked out that I cannot even get the configs correct ..lol ... Any takers ? Thanks Samantha ## Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions presented are solely those of the author. -- 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] ## Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions presented are solely those of the author. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
line feeds in response
Hi all, got the following problem: I'm generating xml with jsps. Before I write out any response, I'm using out.clearBuffer() to clear anything from the output buffer in order not to write out new lines etc. However, this doesn't seem to work. I always get 3 line feeds before the xml starts, which causes most parsers to fail parsing that xml. I was wondering wether this is caused by the dispatcher mechanism I'm using: RequestDispatcher dispatcher = request.getRequestDispatcher(jspUrl); dispatcher.forward(request,response); since the resulting servlet code for the jsp begins output without any line feeds, so this problem can't have it's origin the jsp. I'm running jakarta-tomcat-4.0.4-LE-jdk14 on nt 4.0. Any help would be really appreciated. Alex -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Query
-Original Message- From: Tony McNicholas [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:14 AM To: Tomcat Users List Subject: RE: Query Vikram, I don't mind having to restart Tomcat 3.3.1 but I don't want to have to manually remove the webapps/emissary directory before restarting. emissary being the name of our webapp. I would like Tomcat on restart to realise that there is a newer war file, remove the old webapps/emissary directory where the old expanded war file exists and expand the newer war file again. If i get you correctly, you mean that your war file is expanded, and any changes made in the war file are not reflected. I dont think it is possible in 3.x, coz tc expands the .war files to the directory structure, then it does not look into the war file. It just serves the pages from the directory. If you put a new war file, tc does not load it since there is a directory with the same name, but if you delete the folder then tc reads from the war file and unzips it. In TC 4.x you could use the manager for reloading the application without restarting tomcat. Is it possible to do this ? Thanks, Tony. -Original Message- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: 09 September 2002 12:05 To: 'Tomcat Users List' Subject: RE: Query -Original Message- From: Tony McNicholas [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:05 AM To: [EMAIL PROTECTED] Subject: Query HI, I have the following query, I am using tomcat 3.3.1 and would like to deploy a new version of a webapp in a war file. To do this I need to stop Tomcat, remove the expanded old war directory and restart Tomcat. I would like to know is there a way to deploy a new version of a webbapp in a war file without having to manually delete the earlier expanded war file ? Note in the apps-*.xml file reloadable is set to true. ?xml version=1.0 encoding=ISO-8859-1? webapps Context path=/emissary docBase=webapps/emissary debug=0 reloadable=true /Context /webapps AFAIK, it is only possible in tc 4.x series. TC 3.x does not support dynamic class loading. Thanks, Tony. Vikram. -- 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: line feeds in response
There are 3 linefeeds in your jsp before the code that generates the xml. Remove them and you should be ok. There has been a discussion on this before on this list. Search the archives :) -Original Message- From: Alexander Stage [mailto:[EMAIL PROTECTED]] Sent: 09 September 2002 12:12 To: Tomcat Users List Subject: line feeds in response Hi all, got the following problem: I'm generating xml with jsps. Before I write out any response, I'm using out.clearBuffer() to clear anything from the output buffer in order not to write out new lines etc. However, this doesn't seem to work. I always get 3 line feeds before the xml starts, which causes most parsers to fail parsing that xml. I was wondering wether this is caused by the dispatcher mechanism I'm using: RequestDispatcher dispatcher = request.getRequestDispatcher(jspUrl); dispatcher.forward(request,response); since the resulting servlet code for the jsp begins output without any line feeds, so this problem can't have it's origin the jsp. I'm running jakarta-tomcat-4.0.4-LE-jdk14 on nt 4.0. Any help would be really appreciated. Alex -- 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 standalone Versus Apache
-Original Message- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:56 AM To: 'Tomcat Users List' Subject: RE: Tomcat standalone Versus Apache layer of code to go through before you hit them. Adding Apache to the mix also makes life a whole lot more complex, as you have already seen. I would disagree completely. The only complex thing is building the connectors from source, in my experience. The ApacheConfig utility in Tomcat makes using Apache in conjunction with Tomcat relatively painless once the connector is built/installed/working. There's rarely a need to run Tomcat behind Apache. The exceptions I can think of are * if your site uses a mix of servlet/JSP and features only supported by Apache (e.g. PHP, mod_rewrite, etc.) * if you make heavy use of HTTPS; Apache's SSL C code is probably still faster than Tomcat's SSL Java code. * if you have an extremely popular site with tons of large static files (e.g. huge graphic files). If none of this is true, I recommend sticking to the stand-alone configurations. Again, I would disagree completely. There's lots more to Apache than the three things you've listed. All of it's modules, significantly more robust access control, easy integration with other dynamic technologies besides Java/JSP, well-known exploits and patches for same, and more. If Apache was just serving static pages you could write it in a lot smaller package, like this webserver: http://www.acme.com/software/thttpd/ or this one for HTTPS: http://www.acme.com/software/mini_httpd/ (which, according to benchmarks, runs at about 90% Apache speed). My point is that it's not just about serving static pages when you use Apache, there are lots of other reasons to choose Apache + Tomcat as opposed to Tomcat alone. John Turner [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.1.* config problem
Thanks Tony ... I'll try this later as I haven't got it installed at my machine at work more worrying I think is how to set up the JAVA_HOME variable any ideas as to where I can locate more detailed info would be much appreciated ... For the out-of-memory you can simply add the following line to your c:\config.sys: shell=c:\windows\command.com /e:4096 This will then work for every DOS box. For setting the JAVA_HOME, add a line similar to the following line to your c:\autoexec.bat: SET JAVA_HOME=c:\java\jdk13~1.1_0 Make sure you use the DOS 8.3 filename format when setting the variable in autoexec.bat. To get to know the 8.3 filename open a DOS box, navigate to the parent of your java home and type dir. Then the filename will be shown in long and 8.3 format. To make it easier you could copy your existing jdk to a path like c:\java\jsdk131 and use this one for your JAVA_HOME setting. After all restart the computer. Andreas Thanks Samantha -Original Message- From: Tony McNicholas [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 1:16 PM To: Tomcat Users List Subject: RE: Tomcat 3.1.* config problem Samantha, I think this might help resovle your problem http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q230205; Out of Environment Space Error Message in MS-DOS Programs The information in this article applies to: Microsoft Windows 95 Microsoft Windows 95 OEM Service Release 1, 2, 2.1, 2.5 Microsoft Windows 98 -Original Message- From: Hoy, Samantha SSA-CORAR11 [mailto:[EMAIL PROTECTED]] Sent: 09 September 2002 12:04 To: 'Tomcat Users List' Subject: Tomcat 3.1.* config problem Hi I have been trying to install Tomcat v3.1.2 (I think which by the looks of it is a really old version) - my problem is that I have installed 2 different versions of Tomcat in 2 different places - one in its own root directory and the other in a sub-directory of JBuilder4. I seem to get an 'out of environment space' (I am running of Windows 98) issue when trying to run from within JBuilder and I get a set up JAVA_HOME variable error message when trying to run/start Tomcat in the one off the root directory . How do I set this up correctly ? I have fiddled around in the classpath of my autoexec.bat file but don't think that I have got it right . I have to code an entire Java/JSP project and have a week to do it and am suitably freaked out that I cannot even get the configs correct ..lol ... Any takers ? Thanks Samantha ## Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions presented are solely those of the author. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] Linux environment variables
Depends on which shell you are using. For sh, it would be USER_HOME/.profile. For bash it would be USER_HOME/.bash_profile (or even .profile if .bash_profile doesn't exist). tcsh is USER_HOME/.login, I believe, though I use sh or bash, so I can't be sure. A search on Google should help you out. John -Original Message- From: Giorgio Ponza [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 6:51 AM To: Tomcat Users List Subject: [OT] Linux environment variables Hi guys. Sorry, i'm not expert in linux I need that some environment variables (like JAVA_HOME) are visible to a specified user Until today i worked with root, so i placed them in /etc/profile. I'd like now them are visible only for the specified user (also the installation is done by the user). Is there a file for the user where i can place them? Sorry my english and my poor linux knowledge Giorgio -- 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 3.1.* config problem
Thanks Andreas When setting the JAVA_HOME variable , if I have Borland Jbuilder4 installed , would the statement look more like the following ? SET JAVA_HOME=c:\jbuilder4\bin ? (JBuilder is currently installed on the root directory eg. c:\jbuilder4) Is JAVA_HOME just so that Java knows where it is situated / the location of the installation ? Okay I will navigate to the dos prompt and see how it looks there ... Thanks Samantha -Original Message- From: Andreas Probst [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 2:19 PM To: Tomcat Users List Subject: RE: Tomcat 3.1.* config problem Thanks Tony ... I'll try this later as I haven't got it installed at my machine at work more worrying I think is how to set up the JAVA_HOME variable any ideas as to where I can locate more detailed info would be much appreciated ... For the out-of-memory you can simply add the following line to your c:\config.sys: shell=c:\windows\command.com /e:4096 This will then work for every DOS box. For setting the JAVA_HOME, add a line similar to the following line to your c:\autoexec.bat: SET JAVA_HOME=c:\java\jdk13~1.1_0 Make sure you use the DOS 8.3 filename format when setting the variable in autoexec.bat. To get to know the 8.3 filename open a DOS box, navigate to the parent of your java home and type dir. Then the filename will be shown in long and 8.3 format. To make it easier you could copy your existing jdk to a path like c:\java\jsdk131 and use this one for your JAVA_HOME setting. After all restart the computer. Andreas Thanks Samantha ## Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions presented are solely those of the author. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Url Mapping with mod_jk
Make sure there is only one Host container in server.xml for stagenewngfl.ngfl.gov.uk. There should only be three Listener elements, one for Server, one for localhost, and one for stagenewngfl.ngfl.gov.uk. Do you get the source of the JSP pages when you access http://localhost/examples or only when you access http://stagenewngfl.ngfl.gov.uk/some.jsp ? What is the URL of the JSP page you are trying to test...does it match any of the URL mappings in your mod_jk.conf? John -Original Message- From: Anthony Milbourne [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 6:49 AM To: 'Tomcat Users List' Subject: RE: Url Mapping with mod_jk Hi Again Thanks for your ongoing help. I have done as suggested in the previous post i.e.. http.conf now just has an include all listener elements in server.xml have forwardAll=false in them. The result (as I'm sure you know) of changing the listener elements was to make the generated mod_jk.conf much more comprehensive (and similar to the example you pointed at). This is all good and I feel I am making progress - but the problem is still there. When I look at the site through Apache the JSP source is displayed. Also, I have noticed that the generated mod_jk.conf contains two identical entries for the same virtual host. I have included the mod_jk.conf below (sorry it is so long): --- cut --- ## Auto generated on Mon Sep 09 10:52:32 BST 2002## IfModule !mod_jk.c LoadModule jk_module /usr/local/apache/libexec/mod_jk.so /IfModule JkWorkersFile /usr/local/jakarta-tomcat/conf/jk/workers.properties JkLogFile /usr/local/jakarta-tomcat/logs/mod_jk.log JkLogLevel info VirtualHost stagenewngfl.ngfl.gov.uk ServerName stagenewngfl.ngfl.gov.uk stagenewngfl.ngfl.gov.uk:/stagenewngfl # Static files Alias /stagenewngfl /usr/local/jakarta-tomcat-4.0.4/webapps/stagenewngfl Directory /usr/local/jakarta-tomcat-4.0.4/webapps/stagenewngfl Options Indexes FollowSymLinks DirectoryIndex index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /stagenewngfl/WEB-INF/* AllowOverride None deny from all /Location Location /stagenewngfl/META-INF/* AllowOverride None deny from all /Location JkMount /stagenewngfl/servlet/* ajp13 JkMount /stagenewngfl/servlet/UserUpdateServlet ajp13 JkMount /stagenewngfl/servlet/RoleDeleteServlet ajp13 JkMount /stagenewngfl/servlet/CreateFeatureServlet ajp13 JkMount /stagenewngfl/*.jsp ajp13 stagenewngfl.ngfl.gov.uk:/manager # Static files Alias /manager /usr/local/jakarta-tomcat-4.0.4/webapps/manager Directory /usr/local/jakarta-tomcat-4.0.4/webapps/manager Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /manager/WEB-INF/* AllowOverride None deny from all /Location Location /manager/META-INF/* AllowOverride None deny from all /Location JkMount /manager/*.jsp ajp13 JkMount /manager/servlet/* ajp13 JkMount /manager/* ajp13 /VirtualHost VirtualHost localhost ServerName localhost JkMount /examples ajp13 JkMount /examples/* ajp13 localhost:/stagenewngfl # Static files Alias /stagenewngfl /usr/local/jakarta-tomcat-4.0.4/webapps/stagenewngfl Directory /usr/local/jakarta-tomcat-4.0.4/webapps/stagenewngfl Options Indexes FollowSymLinks DirectoryIndex index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /stagenewngfl/WEB-INF/* AllowOverride None deny from all /Location Location /stagenewngfl/META-INF/* AllowOverride None deny from all /Location JkMount /stagenewngfl/servlet/* ajp13 JkMount /stagenewngfl/servlet/UserUpdateServlet ajp13 JkMount /stagenewngfl/servlet/RoleDeleteServlet ajp13 JkMount /stagenewngfl/servlet/CreateFeatureServlet ajp13 JkMount /stagenewngfl/*.jsp ajp13 localhost:/manager # Static files Alias /manager /usr/local/jakarta-tomcat-4.0.4/webapps/manager Directory /usr/local/jakarta-tomcat-4.0.4/webapps/manager Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /manager/WEB-INF/* AllowOverride None deny from all /Location Location /manager/META-INF/* AllowOverride None
Re: [OT] Linux environment variables
.bash_profile in each user's home directory will do it for you. - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, September 09, 2002 8:30 AM Subject: RE: [OT] Linux environment variables Depends on which shell you are using. For sh, it would be USER_HOME/.profile. For bash it would be USER_HOME/.bash_profile (or even .profile if .bash_profile doesn't exist). tcsh is USER_HOME/.login, I believe, though I use sh or bash, so I can't be sure. A search on Google should help you out. John -Original Message- From: Giorgio Ponza [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 6:51 AM To: Tomcat Users List Subject: [OT] Linux environment variables Hi guys. Sorry, i'm not expert in linux I need that some environment variables (like JAVA_HOME) are visible to a specified user Until today i worked with root, so i placed them in /etc/profile. I'd like now them are visible only for the specified user (also the installation is done by the user). Is there a file for the user where i can place them? Sorry my english and my poor linux knowledge Giorgio -- 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]
problem with nested (struts) iterate tags with Tomcat 4.1.10
Hi, I have recently installed Tomcat 4.1.10, having previously used Tomcat 4.0.4. We're using Struts 1.0.2. Some of our jsp pages give the following error: Generated servlet error: [javac] Compiling 1 source file D:\jakarta\jakarta-tomcat-latest\work\Standalone\localhost\collection\jsp\al l_exhibitions_jsp.java:459: _jspx_exhibition_in_type_1 is already defined in _jspService(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSer vletResponse) java.lang.Object _jspx_exhibition_in_type_1 = exhibition_in_type; The problem appears to be whenever struts-logic:iterate tags are nested. In the servlet generated from the jsp pages I can see the problem: the variable used to refer to the current object in the iteration is defined at the top of the _jspService method, and at the start of the iterate block. Is this a known issue with 4.1.10? It doesn't happen with 4.1.9. Thanks, Martin. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat standalone Versus Apache
-Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 5:11 AM To: 'Tomcat Users List' Subject: RE: Tomcat standalone Versus Apache -Original Message- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:56 AM To: 'Tomcat Users List' Subject: RE: Tomcat standalone Versus Apache layer of code to go through before you hit them. Adding Apache to the mix also makes life a whole lot more complex, as you have already seen. I would disagree completely. The only complex thing is building the connectors from source, in my experience. The ApacheConfig utility in Tomcat makes using Apache in conjunction with Tomcat relatively painless once the connector is built/installed/working. There's rarely a need to run Tomcat behind Apache. The exceptions I can think of are * if your site uses a mix of servlet/JSP and features only supported by Apache (e.g. PHP, mod_rewrite, etc.) * if you make heavy use of HTTPS; Apache's SSL C code is probably still faster than Tomcat's SSL Java code. * if you have an extremely popular site with tons of large static files (e.g. huge graphic files). If none of this is true, I recommend sticking to the stand-alone configurations. Again, I would disagree completely. There's lots more to Apache than the three things you've listed. All of it's modules, significantly more robust access control, easy integration with other dynamic technologies besides Java/JSP, well-known exploits and patches for same, and more. Sure I can list some advantages : 1) Apache is faster better when serving static content such as images 2) You get more error handling ability with apache (ie, when tomcat goes down for releases, etc, Apache gets a 500 error and can display a polite notice rather than nasty error pages) 3) You get all the other stuff that apache does: userdir, modspeling, cgi, ssi etc etc etc 4) https. i don't know if any certificate signing authorities do certs for java/tomcat (probably) but its very easy for mod_ssl or apache-ssl. 6) you can (theoretically) do sticky load balancing with mod_jk across multiple tomcat instances. Neither do i disapprove that apache+tomcat make a good combination, but tomcat stand alone is also stable. If Apache was just serving static pages you could write it in a lot smaller package, like this webserver: http://www.acme.com/software/thttpd/ or this one for HTTPS: http://www.acme.com/software/mini_httpd/ (which, according to benchmarks, runs at about 90% Apache speed). My point is that it's not just about serving static pages when you use Apache, there are lots of other reasons to choose Apache + Tomcat as opposed to Tomcat alone. John Turner [EMAIL PROTECTED] Vikram. -- 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: SSL Connectors
I can't speak to your SSL question, but there's no way to predict Tomcat 5. Tomcat is developed Apache-style...that is, each version is voted on by the community, and only when the consensus says it is ready for release is it released. It could be 3 months, it could be 3 years. There is no timeline, and there can be no promised release dates. There can also be no way to predict how many minor revs will occur before being voted as release. For example, the 4.1 branch has 10 revs in it (4.1.0-4.1.10). The 5.0 branch could have 20, 30, 50, or more before being voted stable. That's not to say that in-progress 5.0 can't be used in production, just that nobody is going to say it is production ready or released unless the community votes on it. 4.1.10 took a year and a half, and was released 4 days ago. As far as I know, the current release versions of Tomcat 4 are 4.0.4 and 4.1.10. John -Original Message- From: Trevor Nielsen [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 3:25 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: SSL Connectors Hi, Does anyone know anything about changes to the connector in Tomcat 4 or 5. Currently 3.3.x supports pluggable SSL where you can make use of PureTLS (or other SSL implementations) instead of the standard and very limited JSSE. I would also like to get an idea of how long it will be until Tomcat 5 has been released. -- Trevor Nielsen -- 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 3.1.* config problem
No, it should be: SET JAVA_HOME=c:\jbuilder4\jdkxxx where xxx is the JDK version. JAVA_HOME is needed to simply run java. -Message d'origine- De : Hoy, Samantha SSA-CORAR11 [mailto:[EMAIL PROTECTED]] Envoyé : lundi 9 septembre 2002 14:27 À : 'Tomcat Users List' Objet : RE: Tomcat 3.1.* config problem Thanks Andreas When setting the JAVA_HOME variable , if I have Borland Jbuilder4 installed , would the statement look more like the following ? SET JAVA_HOME=c:\jbuilder4\bin ? (JBuilder is currently installed on the root directory eg. c:\jbuilder4) Is JAVA_HOME just so that Java knows where it is situated / the location of the installation ? Okay I will navigate to the dos prompt and see how it looks there ... Thanks Samantha -Original Message- From: Andreas Probst [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 2:19 PM To: Tomcat Users List Subject: RE: Tomcat 3.1.* config problem Thanks Tony ... I'll try this later as I haven't got it installed at my machine at work more worrying I think is how to set up the JAVA_HOME variable any ideas as to where I can locate more detailed info would be much appreciated ... For the out-of-memory you can simply add the following line to your c:\config.sys: shell=c:\windows\command.com /e:4096 This will then work for every DOS box. For setting the JAVA_HOME, add a line similar to the following line to your c:\autoexec.bat: SET JAVA_HOME=c:\java\jdk13~1.1_0 Make sure you use the DOS 8.3 filename format when setting the variable in autoexec.bat. To get to know the 8.3 filename open a DOS box, navigate to the parent of your java home and type dir. Then the filename will be shown in long and 8.3 format. To make it easier you could copy your existing jdk to a path like c:\java\jsdk131 and use this one for your JAVA_HOME setting. After all restart the computer. Andreas Thanks Samantha ## Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions presented are solely those of the author. -- 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 and tomcat 4.1.7 integration problem
The mod_jk.dll is Apache-version sensitive. When you say Apache 2.0 beta what does that mean? The only mod_jk.dll files I am aware of are for 2.0.39 and 2.0.40, and neither of those are beta. Also, I would upgrade your Tomcat to 4.1.10. There were all sorts of fixes between 4.1.7 and 4.1.9+. John -Original Message- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:46 AM To: Tomcat Users List (E-mail) Subject: apache 2.0 and tomcat 4.1.7 integration problem Hi all, I am having problem integrating apahce 2.0 and tomcat 4.1.7. I am working on it since 3 days. I have read the articles on website, searched the archives, but in the archives also there is no answer to be found. My tc and apahce are installed and running successfully individually. But when i try to integrate them, apache closes, saying operation failed. This happens only after i add the foll. line in httpd.conf Include d:/ApacheTomcat4.1/conf/auto/mod_jk.conf If i remove the above line, then apache runs smoothly. I have been going through the instructions in http://www.webmasterbase.com/article/305/53 http://www.webmasterbase.com/article/305/53 http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html http://www.cnr.berkeley.edu/~salazar/apache_tomcat.html . I have downloaded the mod_jk.dll from the relevant site and done the changes as needed in the respective files as said in the articles. My Configuration: Apache 2.0 beta version, Tomcat 4.1.7 beta version, windows NT 4.0 Regards, Vikramjit Singh, GTL Ltd. Ph. 7612929-1059 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk.so where from ??
My website by the end of the week. Other than that, no. Everyone has been building them from source. John -Original Message- From: Adar Wesley [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 2:21 AM To: 'Tomcat Users List' Subject: mod_jk.so where from ?? Hi Group ! I'm creating an installer that deploys tomcat on various systems. Does anyone have any idea where may I find a collection of compiled mod_jk.so for various systems ?? Thanks ! Tal -- 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: Communicating with Tomcat3 through shell scripts.
Help! Help! Help! Can I use 'handle' parameter in server.xml to do this task as below: Connector className=com.mycom.TCCommunicator Parameter name=handler value=com.mycom.TCCommunicatorHandle/ Parameter name=port value=9090/ /Connector OR Is there any other way. I appreciate any help. Thank you, Sri At 05:11 PM 9/6/2002, Srinadh Karumuri wrote: Hi, I used Tomcat 3 for a while but didn't work on customizing it. We need to disable the user input sometimes and typically we store a flag in the session. To modify this flag we use a jsp page. If I can communicate with tomcat from shell scripts while it is running, I will be able to able to set it up in crontab etc. Thanks for any help from you all, -Sri -- 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: Problems getting roles in JNDI Realm (This *IS* a problem.)
Thank you for responding John, John Holman wrote: Providing a connectionName and connectionPassword does *not* cause JNDIRealm to lookup the password. It will still authenticate by binding as the user unless you specify the userPassword configuration attribute. I'm working with documentation for tomcat 4.0.4. It doesn't state any of this information. I did look at the information in the documentation for 4.1 and it is there. Thank you. I believe (through experimentation) that the 4.0.4 version of this does switch over to the connectionUser/connectionPassword at least for the role query, this because when I added them to my connection to a non-anonymous LDAP server, it started returning the roles without the presence of the userPassword attribute. Looking up roles as the administrator (or anonymously if connectionName and connectionPassword are not specified) is a deliberate design decision. John. ?? But, if you've already established a connection with the users principle and credentials, why would ever want to convert to a diferent set of principle/credentials to do the role lookup as a *rule*? This seems to be a *configuration* decision. It would be benifical if the interface provided for this option by providing something like a bind-as-user='true|false' query-as-user='true|false' in the realm configuration. This is a great Realm interface to JNDI/LDAP. Thanks for writting it. -Mark Mark R. Diggory wrote: Looking over the JNDIRealm Code I notice that in the bindAsUser method that the users principle and credentials are stripped out of the context. It is after this point that the JNDI search request is made to gather the roles from the ldap server. Shouldn't it be *after* the search for the roles that the users principle and credentials is removed from the DirContext? This would mean that I can never *really* use bindAsUser(...) strategy because I'd always have to provide a connectionUser and connectionPassword to do the role lookup. Not good at all. This means the configuration is impossible because if you provide the connectionName and connectionPassword attributes, then it just looks up the password on authentication instead of binding as the user. -M. Mark R. Diggory wrote: I know my request should work at the LDAP Server through JNDI because the following does work when I make a request to the LDAP server. I do get back the groups. % Hashtable env = new Hashtable(); env.put(DirContext.INITIAL_CONTEXT_FACTORY,com.sun.jndi.ldap.LdapCtxFactory); env.put(DirContext.SECURITY_PRINCIPAL,uid=jadmin,ou=vdcid,ou=hmdc,o=vdc); env.put(DirContext.SECURITY_CREDENTIALS,**); env.put(DirContext.PROVIDER_URL,ldap://vdc.fas.harvard.edu:389;); DirContext ctx = new InitialDirContext(env); SearchControls controls = new SearchControls(); controls.setSearchScope(SearchControls.SUBTREE_SCOPE); controls.setReturningAttributes(new String[] {vdcGroup}); NamingEnumeration enum = ctx.search(o=vdc,(member=uid=jadmin,ou=vdcid,ou=hmdc,o=vdc),controls); while(enum.hasMore()){ SearchResult sr = (SearchResult)enum.next(); out.print(sr.getAttributes().get(vdcGroup) + BR); } % is returning vdcGroup: public vdcGroup: researchers vdcGroup: curators vdcGroup: administrators -Mark Mark R. Diggory wrote: I'm trying to get a realm set up via JNDI to an Openldap server. Here is my current server.xml config. Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://vdc.fas.harvard.edu:389; userPattern=uid={0},ou=vdcid,ou=hmdc,o=vdc roleBase=o=vdc roleSubtree=true roleName=vdcGroup roleSearch=(member={0}) digest=SHA / I'm using vdcGroup entries to store unique member attributes named 'member'. I can do this search using straight JNDI in a Test Java Application. But the realm will not return the vdcGroups that jadmin is a member of. Is there something obvious I am missing? -Mark 2002-09-07 10:40:51 JNDIRealm[Standalone]: Connecting to URL ldap://vdc.fas.harvard.edu:389 2002-09-07 10:41:11 JNDIRealm[Standalone]: lookupUser(jadmin) 2002-09-07 10:41:11 JNDIRealm[Standalone]: dn=uid=jadmin,ou=vdcid,ou=hmdc,o=vdc 2002-09-07 10:41:11 JNDIRealm[Standalone]: validating credentials by binding as the user 2002-09-07 10:41:11 JNDIRealm[Standalone]: binding as uid=jadmin,ou=vdcid,ou=hmdc,o=vdc 2002-09-07 10:41:11 JNDIRealm[Standalone]: Username jadmin successfully authenticated 2002-09-07 10:41:11 JNDIRealm[Standalone]: getRoles(uid=jadmin,ou=vdcid,ou=hmdc,o=vdc) 2002-09-07 10:41:11 JNDIRealm[Standalone]: Searching role base 'o=vdc' for attribute 'vdcGroup' 2002-09-07 10:41:11 JNDIRealm[Standalone]: With filter expression '(member=uid=jadmin,ou=vdcid,ou=hmdc,o=vdc)'
RE: mod_jk.so where from ??
10x John ! and where would that web site be ? Tal -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 2:45 PM To: 'Tomcat Users List' Subject: RE: mod_jk.so where from ?? My website by the end of the week. Other than that, no. Everyone has been building them from source. John -Original Message- From: Adar Wesley [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 2:21 AM To: 'Tomcat Users List' Subject: mod_jk.so where from ?? Hi Group ! I'm creating an installer that deploys tomcat on various systems. Does anyone have any idea where may I find a collection of compiled mod_jk.so for various systems ?? Thanks ! Tal -- 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]
AW: line feeds in response
use %@. %jsp: / aso. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk.so where from ??
http://www.johnturner.com/howto but as I said, there aren't any files available for download at the moment, other than HOWTOs. John -Original Message- From: Adar Wesley [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 10:06 AM To: 'Tomcat Users List' Subject: RE: mod_jk.so where from ?? 10x John ! and where would that web site be ? Tal -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 2:45 PM To: 'Tomcat Users List' Subject: RE: mod_jk.so where from ?? My website by the end of the week. Other than that, no. Everyone has been building them from source. John -Original Message- From: Adar Wesley [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 2:21 AM To: 'Tomcat Users List' Subject: mod_jk.so where from ?? Hi Group ! I'm creating an installer that deploys tomcat on various systems. Does anyone have any idea where may I find a collection of compiled mod_jk.so for various systems ?? Thanks ! Tal -- 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]
AW: Tomcat standalone Versus Apache
Von: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Betreff: RE: Tomcat standalone Versus Apache 4) https. i don't know if any certificate signing authorities do certs for java/tomcat (probably) but its very easy for mod_ssl or apache-ssl. Theres no difference in SSL, maybe you have one step more in the integration process of the CACert, but thats all. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JAASRealm and JDK1.3.1_03
Is anyone here able to get JAAS authentication working using the JAASRealm, Tomcat 4.1.9, and JDK1.3.1_02?? I've been having lots of what look like classpath/classloader issues in getting the default JAASMemoryLoginModule to work. I've read that the jaas.jar located in Tomcat's server/lib must be removed due to some issues regarding the server classloader. This class I've relocated to a different directory and included on the Tomcat classpath via the setclasspath.bat file. When I did this I was able to get the LoginModule to load (I can see this because I'm JPDA stepping through the Tomcat source) but the whole thing fails when I execute the login on the LoginModule. This is the point at which the JAAS infrastructure loads the JAASMemoryLoginModule. I assume that this fails because the classes loaded from the classpath can't see the classes loaded by the system classloader (server/lib). As a fix, I tried to jar up the relevant classes from the realm package and put them on the classpath via setclasspath.bat. However, this caused Tomcat to fail to start. Any suggestions would be appreciated. Thanks! jk -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_jk.so where from ??
I found it here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/bin/ - Original Message - From: Adar Wesley [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, September 09, 2002 10:05 AM Subject: RE: mod_jk.so where from ?? 10x John ! and where would that web site be ? Tal -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 2:45 PM To: 'Tomcat Users List' Subject: RE: mod_jk.so where from ?? My website by the end of the week. Other than that, no. Everyone has been building them from source. John -Original Message- From: Adar Wesley [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 2:21 AM To: 'Tomcat Users List' Subject: mod_jk.so where from ?? Hi Group ! I'm creating an installer that deploys tomcat on various systems. Does anyone have any idea where may I find a collection of compiled mod_jk.so for various systems ?? Thanks ! Tal -- 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: mod_jk.so where from ??
Which connector binaries did you find there? John -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 9:18 AM To: Tomcat Users List Subject: Re: mod_jk.so where from ?? I found it here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4 .1.10/bin/ - Original Message - From: Adar Wesley [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, September 09, 2002 10:05 AM Subject: RE: mod_jk.so where from ?? 10x John ! and where would that web site be ? Tal -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 2:45 PM To: 'Tomcat Users List' Subject: RE: mod_jk.so where from ?? My website by the end of the week. Other than that, no. Everyone has been building them from source. John -Original Message- From: Adar Wesley [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 2:21 AM To: 'Tomcat Users List' Subject: mod_jk.so where from ?? Hi Group ! I'm creating an installer that deploys tomcat on various systems. Does anyone have any idea where may I find a collection of compiled mod_jk.so for various systems ?? Thanks ! Tal -- 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: mod_jk.so where from ??
Oops, didn't read the entire thread before replying. Shame on me... - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 09, 2002 9:20 AM Subject: Re: mod_jk.so where from ?? Sorry, I mean here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/src/ - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 09, 2002 9:18 AM Subject: Re: mod_jk.so where from ?? I found it here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/bin/ - Original Message - From: Adar Wesley [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, September 09, 2002 10:05 AM Subject: RE: mod_jk.so where from ?? 10x John ! and where would that web site be ? Tal -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 2:45 PM To: 'Tomcat Users List' Subject: RE: mod_jk.so where from ?? My website by the end of the week. Other than that, no. Everyone has been building them from source. John -Original Message- From: Adar Wesley [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 2:21 AM To: 'Tomcat Users List' Subject: mod_jk.so where from ?? Hi Group ! I'm creating an installer that deploys tomcat on various systems. Does anyone have any idea where may I find a collection of compiled mod_jk.so for various systems ?? Thanks ! Tal -- 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]
AW: line feeds in response
Hi Jon, unfortunally that is not the solution since I'm clearing the buffer just before starting the output by writing out ?xml version=1.0 encoding=UTF-8? and as I wrote, there are no line feeds outputted by the generated servlet source code. I'm also 100 % percent sure that the outputstream is nowhere else used and if I would write out some line feeds, out.clearBuffer() should throw them out. It also looks like out.clearBuffer() has no effect. Alex -Ursprüngliche Nachricht- Von: jon wingfield [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 9. September 2002 13:27 An: Tomcat Users List; [EMAIL PROTECTED] Betreff: RE: line feeds in response There are 3 linefeeds in your jsp before the code that generates the xml. Remove them and you should be ok. There has been a discussion on this before on this list. Search the archives :) -Original Message- From: Alexander Stage [mailto:[EMAIL PROTECTED]] Sent: 09 September 2002 12:12 To: Tomcat Users List Subject: line feeds in response Hi all, got the following problem: I'm generating xml with jsps. Before I write out any response, I'm using out.clearBuffer() to clear anything from the output buffer in order not to write out new lines etc. However, this doesn't seem to work. I always get 3 line feeds before the xml starts, which causes most parsers to fail parsing that xml. I was wondering wether this is caused by the dispatcher mechanism I'm using: RequestDispatcher dispatcher = request.getRequestDispatcher(jspUrl); dispatcher.forward(request,response); since the resulting servlet code for the jsp begins output without any line feeds, so this problem can't have it's origin the jsp. I'm running jakarta-tomcat-4.0.4-LE-jdk14 on nt 4.0. Any help would be really appreciated. Alex -- 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: PLEASE: Setting Virtual Hosts ClassPaths with Tomcat 3.3
Hi Joshua, Is there some reason you are not putting your bean class in WEB-INF/classes where they would be picked up automatically? In the majority of cases for Tomcat 3.3.x, the CLASSPATH is the wrong place to put web application classes. Cheers, Larry -Original Message- From: Joshua D. Drake [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 07, 2002 2:10 PM To: [EMAIL PROTECTED] Subject: PLEASE: Setting Virtual Hosts ClassPaths with Tomcat 3.3 Hello, I am running RedHat 7.3, Apache 1.3.26 and Tomcat-3.3.1. I am having problems getting Tomcat to pick up new classpaths for virtual hosts. We can successfully run jsp files from the virtual hosts but once we try to add a class (for JavaBeans in this case) it fails. Here is the exact error: java.lang.ClassNotFoundException: SimpleBean at org.apache.tomcat.util.depend.DependClassLoader.loadClassInter nal1(DependClassLoader.java) at org.apache.tomcat.util.depend.DependClassLoader12$1.run(Depend ClassLoader12.java) at java.security.AccessController.doPrivileged(Native Method) at org.apache.tomcat.util.depend.DependClassLoader12.loadClass(De pendClassLoader12.java) at java.lang.ClassLoader.loadClass(ClassLoader.java:262) at org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepo sitory.java) at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPr opertyGenerator.java) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrap per.generate(JspParseEventListener.java) at org.apache.jasper.compiler.JspParseEventListener.generateAll(J spParseEventListener.java) at org.apache.jasper.compiler.JspParseEventListener.endPageProces sing(JspParseEventListener.java) at org.apache.jasper.compiler.Compiler.compile(Compiler.java) at org.apache.tomcat.facade.JasperLiaison.jsp2java(JspInterceptor.java) at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInter ceptor.java) at org.apache.tomcat.facade.JspInterceptor.requestMap(JspIntercep tor.java) at org.apache.tomcat.core.ContextManager.processRequest(ContextMa nager.java) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java) at org.apache.tomcat.core.ContextManager.service(ContextManager.java) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConne ction(Ajp13Interceptor.java) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java) at java.lang.Thread.run(Thread.java:536) Here is my apps-vhosts.xml: ?xml version=1.0 encoding=ISO-8859-1? Server Host name=dev.sflsoccer.us Context path= docBase=/home/vhosting/sfl/htdocs/ debug=5 / /Host /Server Also I have the following lines in my tomcat.properties: wrapper.path=/bin:/usr/bin:/usr/local/bin:/home/vhosting/sfl/b in:/usr/java/j2sdk1.4.0_01/bin wrapper.classpath=@JSERV_CLASSES@:@JSDK_CLASSES@:/home/vhostin g/sfl/htdocs I have also tried the following: wrapper.path=/bin:/usr/bin:/usr/local/bin:/home/vhosting/sfl/b in:/usr/java/j2sdk1.4.0_01/bin wrapper.classpath=@JSERV_CLASSES@ wrapper.classpath=@JSDK_CLASSES@ wrapper.classpath=/home/vhosting/sfl/htdocs/classes Normally I would call to a separate class directory but I am just trying to get it to work at this point. I also added the following to my tomcat3.conf although it is my understanding that tomcat3 doesn't care about shell variables for the classpath: CLASSPATH=/home/vhosting/sfl/htdocs/classes:/home/vhostings/sf l/htdocs/classes export CLASSPATH Help would be greatly appreciated, Sincerely, Joshua D. Drake -- To unsubscribe, e-mail: mailto:tomcat-user- [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]
Success with MySQL 4.0.2 and com.mysql.jdbc.Driver on Win2000
Just wanted to report that I have been able to successfully connect Tomcat 4.1.10 with MySQL 4 series on Win 2000 OS : Win 2000 (Service Pack 1) MySQL server: 4.0.2-alpha-max-nt jdbc driver : mysql-connector-java-3.0.0-beta-bin.jar driverClassName : com.mysql.jdbc.Driver Instructions that were greatly helpful: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples -howto.html Thanks for all the good stuff, Viru -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JNDIRealm and upper and lower case username
Hello We are using JNDIRealm together with OpenLDAP to implement authentication/authorization on Tomcat 4.0.4. But, we have one problem. JNDIRealm seems to ignore case in the username. A user with username rune can log in with both rune and Rune, but we use the username of the logged in user several other places. For instance, we use the remote user to connect to a POP3 server and to search i a database. Is it possible to configure the JNDIRealm to not ignore case in the username, or do we have to live with it ? Rune Hamnvik Mobinor AS Norway -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
WARP error shutting down tomcat
Hi, I have a problem with my tomcat/apache setup. I have several tomcat threads running with apache via the warp connector. My setup is: Tomcat 4.0.3 apache httpd server 1.3 webapp-module 1.0 This works fine for a while, until I get an error page from apache: Error 500 warp connector error. Looking at the httpd log file I get the following errors: [Mon Sep 9 12:07:05 2002] [error] Re-Trying to deploy connections [Mon Sep 9 12:07:05 2002] [error] Connection conn4 cannot connect [Mon Sep 9 12:07:05 2002] [error] Cannot open connection conn4 [Mon Sep 9 12:07:05 2002] [error] Connection conn3 cannot connect [Mon Sep 9 12:07:05 2002] [error] Cannot open connection conn3 [Mon Sep 9 12:45:48 2002] [error] Cannot shutdown conn2 This error results in my tomcat thread being shut down and will re-appear until I restart apache and tomcat. Has anyone else had this problem? Any help will be most gratefully received. Graeme Colman. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache/tomcat load balance doesn't work with http post operation
Vincent, The server.xml file and workers.properties are attached. In the server.xml file the warpConnector configuration is commented out. Thanks, Xiaoyu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:01 AM To: Tomcat Users List Subject: RE: Apache/tomcat load balance doesn't work with http post operation Hi, I have already had this type of problem, the cause was a miss configuration. Can we please see your worker.properties and server.xml file? Vincent. -Message d'origine- De : Xiaoyu Zhang [mailto:[EMAIL PROTECTED]] Envoyé : dimanche 8 septembre 2002 19:30 À : [EMAIL PROTECTED] Objet : Apache/tomcat load balance doesn't work with http post operation Hi All, Sorry if you received this email twice. I didn't receive the email from tomcat-user list, so I am sending it again in case the first one got lost. I have set up Apache 1.3.29 distribute loads across 2 Catalina 4.0.3. For http get operation, every thing works fine. For HTTP post operation, apache can figure out the righ server to send the request, however catalina 4.0.3 can not identify the correct session, it can not find the data we stored in the session. Would like to know if anyone else has similar experience to share? TIA Xiaoyu -- 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] !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 4.0 documentation bundle for more detailed instructions): * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) with a password value of changeit for both the certificate and the keystore itself. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on performance, so you can disable it by setting the enableLookups attribute to false. When DNS lookups are disabled, request.getRemoteHost() will return the String version of the IP address of the remote client. -- !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define an SSL HTTP/1.1 Connector on port 8443 -- !-- Connector className=org.apache.catalina.connector.http.HttpConnector port=8443 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 -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75
tomcat 4.1.10: war deploy in default context not working.
Hi all, Environment: tomcat 4.1.10 ant 1.5 solaris 2.8 JDK 1.4.0_01 I have an application that to work must be deployed in the default context /. It is working fine both when i define it with app.xml into webapps and when i load it dynamically using the manager install command. The following managers commands: install remove start stop reload using path=/ to refer to default context act correctly on the application. The problem is that i cannot deploy a war file of the same application when using default context. My deploy task is deploy url=${manager.url} username=${manager.username} password=${manager.password} path=/ war=file://${dist.home}/${deploy.app.name}.war/ and i receive the message [mdeploy] OK - Installed application at context path / If a use manager list command i see: [list] OK - Listed applications for virtual host localhost [list] /:running:0:/prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/manager/.war [list] /manager:running:0:/usr/local/tomcat-4.1/server/webapps/manager [list] /admin:running:0:/usr/local/tomcat-4.1/server/webapps/admi In the server.xml file i find now the generated entry: Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass =org.apache.catalina.util.CharsetMapper cookies=true crossContext =false debug=0 displayName=Infoviabilita docBase =/prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/manager/.war mapperClass=org.apache.catalina.core.StandardContextMapper path=/ privileged=false reloadable=false swallowOutput=false useNaming =true wrapperClass=org.apache.catalina.core.StandardWrapper /Context In the log i see: 2002-09-09 15:16:27 StandardWrapper[/manager:Manager]: Loading container servlet Manager 2002-09-09 15:16:27 Manager: init: Associated with Deployer 'localhost' 2002-09-09 15:16:27 Manager: init: Global resources are available 2002-09-09 15:16:27 Manager: deploy: Deploying web application at '/' 2002-09-09 15:16:27 Manager: Uploading WAR file to /prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/manager/.war 2002-09-09 15:16:30 Manager: Extracting XML file to /prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/manager/.xml 2002-09-09 15:16:30 StandardHost[localhost]: Installing web application at context path / from URL jar:file:/prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/manager/.war!/ 2002-09-09 15:16:30 WebappLoader[/]: Deploying class repositories to work directory /prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/_ 2002-09-09 15:16:32 WebappLoader[/]: Deploy class files /WEB-INF/classes to /prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/_/WEB-INF/classes 2002-09-09 15:16:32 StandardManager[/]: Seeding random number generator class java.security.SecureRandom 2002-09-09 15:16:32 StandardManager[/]: Seeding of random number generator has been completed 2002-09-09 15:16:32 StandardWrapper[/:default]: Loading container servlet default 2002-09-09 15:16:32 StandardWrapper[/:invoker]: Loading container servlet invoker Up to now everything looks good but... If i refer the application as usual via browser i get: HTTP Status 500 - No Context configured to process this request If i try to undeploy the app using the manager undeploy command i get: [undeploy] FAIL - No context exists for path / The odd thing is that now i use manager install i see: [install] OK - Installed application at context path / and if i list i see (?!): [list] OK - Listed applications for virtual host localhost [list] /:running:0:/prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/manager/.war [list] /manager:running:0:/usr/local/tomcat-4.1/server/webapps/manager [list] /:running:0:/prd/iv00/devel/infoviabilita-1.1/build [list] /admin:running:0:/usr/local/tomcat-4.1/server/webapps/admin You see the miracle? I have TWO application installed at default context, one working (that installed with install comand) and one not working (that installed with the deploy command). The only way to get rid of that /:running:0:/prd/iv00/portale/tomcat-4.1/work/Standalone/localhost/manager/.war context-not-context is to stop tomcat and manually delete the entry from web.xml. Obviously if instead of using path=/ i use any other valid context to deploy, everything works ok. Well, it works in the sense that tomcat acts correctly with the application, the app itself won't run because it's not written to run in a context different from / and its web.xml is not yet complete to have it run from a war file, but at least i see the app is there. Is this a bug or am i doing something really odd? My best regards, Gabriele. [EMAIL PROTECTED] 055-420 2832 388-9473323 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache/tomcat load balance doesn't work with http post operation
So you use the Warp connector or AJP13? First you must have 2 server.xml (one for each instance), the port numbers must be different for each instances. In your server.xml you must specify the jvmRoute in the Engine Tag (jvmRoute=LoadBalancerName). -Message d'origine- De : Xiaoyu Zhang [mailto:[EMAIL PROTECTED]] Envoyé : lundi 9 septembre 2002 16:05 À : Tomcat Users List Objet : RE: Apache/tomcat load balance doesn't work with http post operation Vincent, The server.xml file and workers.properties are attached. In the server.xml file the warpConnector configuration is commented out. Thanks, Xiaoyu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:01 AM To: Tomcat Users List Subject: RE: Apache/tomcat load balance doesn't work with http post operation Hi, I have already had this type of problem, the cause was a miss configuration. Can we please see your worker.properties and server.xml file? Vincent. -Message d'origine- De : Xiaoyu Zhang [mailto:[EMAIL PROTECTED]] Envoyé : dimanche 8 septembre 2002 19:30 À : [EMAIL PROTECTED] Objet : Apache/tomcat load balance doesn't work with http post operation Hi All, Sorry if you received this email twice. I didn't receive the email from tomcat-user list, so I am sending it again in case the first one got lost. I have set up Apache 1.3.29 distribute loads across 2 Catalina 4.0.3. For http get operation, every thing works fine. For HTTP post operation, apache can figure out the righ server to send the request, however catalina 4.0.3 can not identify the correct session, it can not find the data we stored in the session. Would like to know if anyone else has similar experience to share? TIA Xiaoyu -- 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: threads best practice
What problems are caused with the class loader? Michael Petres ~ InnovObjX Corp. Web: www.innovobjx.com Tel: 905-729-2235 x3 Fax: 905-729-2235 ~ -Original Message- From: skraaatch [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 3:13 PM To: Tomcat Users List Subject: threads best practice hi all, please could someone tell me what the best way to start and run a background thread is in tomcat? i have a couple of tasks that need to run on a regular basis to update my db. however, using an initialisation servlet to start the threads seems to cause problems with the classloader. many thanks, aL. -- 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-4.0.4/Apache-1.3.26 and mod_jk
Hi, I followed John Turner's Apache1.3.26 version of howto to install/setup/configure the captioned packages. All went fine: Apache is ok on its own, tomcat is ok on its own, and localhost/examples can access the html file located at /webapps/examples, but when I try to run servlet or jsp, I get internal error message. To be precise, I can run http://localhost:8080/examples/servlet/HelloWorldExample; but not http://localhost/examples/servlet/HelloWorldExample; I would appreciate, if any one out there can point me what I have not done. regards, Damar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SSL Connectors
Hi, Does anyone know anything about changes to the connector in Tomcat 4 or 5. Currently 3.3.x supports pluggable SSL where you can make use of PureTLS (or other SSL implementations) instead of the standard and very limited JSSE. I would also like to get an idea of how long it will be until Tomcat 5 has been released. -- Trevor Nielsen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat-4.0.4/Apache-1.3.26 and mod_jk
Can you post your mod_jk.conf file? John -Original Message- From: damar thapa [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 7:14 PM To: Tomcat Users List Subject: tomcat-4.0.4/Apache-1.3.26 and mod_jk Hi, I followed John Turner's Apache1.3.26 version of howto to install/setup/configure the captioned packages. All went fine: Apache is ok on its own, tomcat is ok on its own, and localhost/examples can access the html file located at /webapps/examples, but when I try to run servlet or jsp, I get internal error message. To be precise, I can run http://localhost:8080/examples/servlet/HelloWorldExample; but not http://localhost/examples/servlet/HelloWorldExample; I would appreciate, if any one out there can point me what I have not done. regards, Damar -- 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]
How can I connect Apache 2.40 with Tomcat 4.1.10 on Windows 2000?
Hello! I have Apache 2.40 and Tomcat 4.1.10 and the mod_jk.dll. What have I to do to connect Apache/Tomcat? Don´t find something in the documentation! Thanks for help A. Schmidt
How can I connect Apache 2.40 with Tomcat 4.1.10 on Windows 2000?
Hello! I have Apache 2.40 and Tomcat 4.1.10 and the mod_jk.dll. What have I to do to connect both? Don´t find something in the documentation! Thanks for help A. Schmidt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems getting roles in JNDI Realm (This *IS* a problem.)
Mark Looking up roles as the administrator (or anonymously if connectionName and connectionPassword are not specified) is a deliberate design decision. John. ?? But, if you've already established a connection with the users principle and credentials, why would ever want to convert to a diferent set of principle/credentials to do the role lookup as a *rule*? This seems to be a *configuration* decision. It would be benifical if the interface provided for this option by providing something like a bind-as-user='true|false' query-as-user='true|false' in the realm configuration. One reason for the decision was that users may not have the permissions to retrieve their own roles from the directory, at least when roles are represented as LDAP group entries. (Such permissions would enable a user to retrieve the roles of any other user, which may be considered a breach of privacy). Another reason was that for efficiency reasons role information held as the value of an attribute in the user's entry is retrieved as an integral part of searching for that entry (when a user search is configured). That search must be carried out when bound as the administrator, since we don't yet know the user's dn, and so it seemed consistent to use the same credentials when retrieving role information held as group entries. If you are worried about privacy you won't want to give users the ability to read the roles of others - so binding as the user to retrieve group-based role information won't work. And if you are not, just allow the roles to be read when bound anonymously. So I can't see it would add much (except to the complexity of the program!) to support a query-as-user option. Though I may be missing something ... John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache 2.0.40, mod_jk core dump on AIX
Hi everyone, I want to use mod_jk for integrating Tomcat 4.0.4 and Apache 2.0.40 on AIX 4.3.3. So I downloaded the j-t-c from CVS to get the latest source and followed the instructions: ./buildconf.sh ./configure --with-apxs=/www/apache2/bin/apxs make make install There were 2 minimal things: 1) the path to libtool in the common/Makefile was wrong - should be ../libtool 2) in the apache-2.0 directory I used the Makefile.apxs instead of Makefile. It compiled very well and also installed into /www/apache2/modules, but by typing: apachectl configtest it core-dumped. I tried to figure out with gdb what was going on, but I have to say - I don't even understand the output. Perhaps does anyone of you? (gdb) where #0 0xd155ce40 in ap_hook_handler () at config.c:193 #1 0xd155f52c in jk_register_hooks (p=0x300afb14) at mod_jk.c:1715 #2 0x1000ae68 in ap_register_hooks (m=0x300af1a8, p=0x30028d40) at config.c:438 #3 0x1000b04c in ap_add_module (m=0x300af1a8, p=0x30028d40) at config.c:507 #4 0x1000b18c in ap_add_loaded_module (mod=0x300af1a8, p=0x0) at config.c:562 #5 0x1005813c in load_module (cmd=0x2ff22818, dummy=0x300af1a8, modname=0x3009c408 Address 0x3009c408 out of bounds, filename=0x3003c020 Address 0x3003c020 out of bounds) at mod_so.c:323 #6 0x1000b85c in invoke_cmd (cmd=0x30002ee0, parms=0x2ff22818, mconfig=0x2ff20760, args=0x2ff207ee ) at config.c:736 #7 0x1000cf9c in execute_now ( cmd_line=0x3009c3b8 Address 0x3009c3b8 out of bounds, args=0x2ff207d3 jk_module modules/mod_jk.so, parms=0x2ff22818, p=0xa, ptemp=0x53, sub_tree=0x2ff20760, parent=0x20002ef0) at config.c:1342 #8 0x1000c324 in ap_build_config_sub (p=0x30028d40, temp_pool=0x300731e0, l=0x0, parms=0x2ff22818, current=0x2ff227c8, curr_parent=0x2ff227cc, conftree=0x3000157c) at config.c:939 #9 0x1000c968 in ap_build_config (parms=0x2ff22818, p=0x30028d40, temp_pool=0x300731e0, conftree=0x3000157c) at config.c:1146 #10 0x1000d56c in ap_process_resource_config (s=0x3003bd80, fname=0x30076600 Address 0x30076600 out of bounds, conftree=0x3000157c, p=0x30028d40, ptemp=0x300731e0) at config.c:1527 #11 0x1000dfc8 in ap_read_config (process=0x300afb14, ptemp=0x300731e0, filename=0x10066c9c conf/httpd.conf, conftree=0x3000157c) at config.c:1805 #12 0x10001048 in main (argc=2, argv=0x2ff22acc) at main.c:557 #13 0x11dc in __start () (gdb) I search the net and almost every newsgroup where mod_jk or tomcat were discussed, and it seams that building mod_jk as DSO on AIX is quite a challenge :) I did this for Apache 1.3.22 on AIX and found the hint to add -bexpall to LDFLAGS_SHLIB in the apxs script. That worked - but there's nothing similar for Apache 2.0.40. Sad but true. Perhaps it is important that I have patched the source of Apache with the openssl-patch and the AIX-specific apr-util patch available from http://www.apache.org/dist/httpd/patches/apply_to_2.0.40/ thanks in advance, and greetings from austria, Johannes Grumböck -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to make apache work both for https
yes John, mod_ssl is built in it, I need some help in how to generate the CSR so that I can get test certificate. Also, any changes I need to make in ssl.conf file. thanks a lot -Raj [EMAIL PROTECTED] 09/06/02 12:06PM http://www.modssl.org/docs/2.8/ Apache 2 has mod_ssl built in, I believe. John -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 12:02 PM To: [EMAIL PROTECTED] Subject: How to make apache work both for https Hi all, I have Installed Apache2.0.39 from source and configured with Tomcat4 using mod_jk on solaris8, I want to make Apache work with both http and https, can some one please tell me how to create and install a test certificate on apache and possible changes to conf files to make https work. thanks -Raj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Success with MySQL 4.0.2 and com.mysql.jdbc.Driver on Win2000
Hello, Have you tried to setup a TX-aware datasource, through either Tyrex or DBCP (jakarta commons)? -Original Message- From: Virender Singh [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 8:01 AM To: [EMAIL PROTECTED] Subject: Success with MySQL 4.0.2 and com.mysql.jdbc.Driver on Win2000 Just wanted to report that I have been able to successfully connect Tomcat 4.1.10 with MySQL 4 series on Win 2000 OS : Win 2000 (Service Pack 1) MySQL server: 4.0.2-alpha-max-nt jdbc driver : mysql-connector-java-3.0.0-beta-bin.jar driverClassName : com.mysql.jdbc.Driver Instructions that were greatly helpful: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples -howto.html Thanks for all the good stuff, Viru -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ClassCastException after reloading Context
Hi, We are experiencing a problem with Tomcat 4.0.4. We have a series of webapp that are working perfectely but this particular one will produce a ClassCastException after reloading its context with the Manager. Actually the Context is reloaded correctely but when we try to access a jsp page we get the ClassCastException. What is happening? I though that reloading the Context was the same thing as restarting Tomcat but for one webapp only. If there is any piece of code/configuration that I can send to help, please let me know. Thank you for your help, once again, Laurent -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ServletContext in a Bean
Hi, how can I access the ServeltContext in a bean? Could you give me sample: e.g. import javax.servlet.*; // something like that, but getServletConfig() is of course not known in a normal bean. ServletContext ctx = getServletConfig().getServletContext(); String dbdriver = ctx.getAttribute(Constants.DBDRIVER); thanks for any help! Rainer
RE: How to make apache work both for https
http://www.modssl.org/docs/2.8/ssl_faq.html#ToC28 http://slacksite.com/apache/certificate.html Google is your friend. John -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 11:01 AM To: [EMAIL PROTECTED] Subject: RE: How to make apache work both for https yes John, mod_ssl is built in it, I need some help in how to generate the CSR so that I can get test certificate. Also, any changes I need to make in ssl.conf file. thanks a lot -Raj [EMAIL PROTECTED] 09/06/02 12:06PM http://www.modssl.org/docs/2.8/ Apache 2 has mod_ssl built in, I believe. John -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 12:02 PM To: [EMAIL PROTECTED] Subject: How to make apache work both for https Hi all, I have Installed Apache2.0.39 from source and configured with Tomcat4 using mod_jk on solaris8, I want to make Apache work with both http and https, can some one please tell me how to create and install a test certificate on apache and possible changes to conf files to make https work. thanks -Raj -- 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 network authentication in Windows Domain
Hi List, I have run in to a problem that I can't track down. In my intranet application I can't get a servlet to retreive any file system objects that do not have read-only access for everyone even though the same code allows me to access these objects using the same JVM on the same machine through a regular application. I am wondering if TomCat uses its own security settings somehow to access these resources through a servlet? This is beyond the scope of this list, but in general how does the JVM authenticate with a W2K domain? Does it authenticate as the user logged in to the server the JVM is running on? I can't find a lot on this topic. At any rate--maybe someone can help me with what is going on with TomCat and accessing network resources. Surprisingly, I haven't found any discussions on this. Any help--GREATLY appreciated. I am totally stumped and don't know where to go from here. --Aaron -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 2.0.40, mod_jk core dump on AIX
What if you add an additional parameter to your configure command? ./configure --with-apxs=/www/apache2/bin/apxs --with-java-home=${JAVA_HOME} It was suggested to me that the JAVA_HOME part was needed...I would be interested to know if it works without that part. John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 10:57 AM To: [EMAIL PROTECTED] Subject: Apache 2.0.40, mod_jk core dump on AIX Hi everyone, I want to use mod_jk for integrating Tomcat 4.0.4 and Apache 2.0.40 on AIX 4.3.3. So I downloaded the j-t-c from CVS to get the latest source and followed the instructions: ./buildconf.sh ./configure --with-apxs=/www/apache2/bin/apxs make make install There were 2 minimal things: 1) the path to libtool in the common/Makefile was wrong - should be ../libtool 2) in the apache-2.0 directory I used the Makefile.apxs instead of Makefile. It compiled very well and also installed into /www/apache2/modules, but by typing: apachectl configtest it core-dumped. I tried to figure out with gdb what was going on, but I have to say - I don't even understand the output. Perhaps does anyone of you? (gdb) where #0 0xd155ce40 in ap_hook_handler () at config.c:193 #1 0xd155f52c in jk_register_hooks (p=0x300afb14) at mod_jk.c:1715 #2 0x1000ae68 in ap_register_hooks (m=0x300af1a8, p=0x30028d40) at config.c:438 #3 0x1000b04c in ap_add_module (m=0x300af1a8, p=0x30028d40) at config.c:507 #4 0x1000b18c in ap_add_loaded_module (mod=0x300af1a8, p=0x0) at config.c:562 #5 0x1005813c in load_module (cmd=0x2ff22818, dummy=0x300af1a8, modname=0x3009c408 Address 0x3009c408 out of bounds, filename=0x3003c020 Address 0x3003c020 out of bounds) at mod_so.c:323 #6 0x1000b85c in invoke_cmd (cmd=0x30002ee0, parms=0x2ff22818, mconfig=0x2ff20760, args=0x2ff207ee ) at config.c:736 #7 0x1000cf9c in execute_now ( cmd_line=0x3009c3b8 Address 0x3009c3b8 out of bounds, args=0x2ff207d3 jk_module modules/mod_jk.so, parms=0x2ff22818, p=0xa, ptemp=0x53, sub_tree=0x2ff20760, parent=0x20002ef0) at config.c:1342 #8 0x1000c324 in ap_build_config_sub (p=0x30028d40, temp_pool=0x300731e0, l=0x0, parms=0x2ff22818, current=0x2ff227c8, curr_parent=0x2ff227cc, conftree=0x3000157c) at config.c:939 #9 0x1000c968 in ap_build_config (parms=0x2ff22818, p=0x30028d40, temp_pool=0x300731e0, conftree=0x3000157c) at config.c:1146 #10 0x1000d56c in ap_process_resource_config (s=0x3003bd80, fname=0x30076600 Address 0x30076600 out of bounds, conftree=0x3000157c, p=0x30028d40, ptemp=0x300731e0) at config.c:1527 #11 0x1000dfc8 in ap_read_config (process=0x300afb14, ptemp=0x300731e0, filename=0x10066c9c conf/httpd.conf, conftree=0x3000157c) at config.c:1805 #12 0x10001048 in main (argc=2, argv=0x2ff22acc) at main.c:557 #13 0x11dc in __start () (gdb) I search the net and almost every newsgroup where mod_jk or tomcat were discussed, and it seams that building mod_jk as DSO on AIX is quite a challenge :) I did this for Apache 1.3.22 on AIX and found the hint to add -bexpall to LDFLAGS_SHLIB in the apxs script. That worked - but there's nothing similar for Apache 2.0.40. Sad but true. Perhaps it is important that I have patched the source of Apache with the openssl-patch and the AIX-specific apr-util patch available from http://www.apache.org/dist/httpd/patches/apply_to_2.0.40/ thanks in advance, and greetings from austria, Johannes Grumböck -- 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-4.0.4/Apache-1.3.26 and mod_jk
Hi, I would like to add one more query here. I created one servlet called AddDispServlet.class, which I copied to /webapps/examples/WEB-INF/classes directory. And to deploy that, I added the following lines in /WEB-INF/web.xml file: servlet servlet-nameAddDispServlet/servlet-name servlet-classAddDispServlet/servlet-class /servlet servlet-mapping servlet-nameAddDispServlet/servlet-name url-patternAddDispServlet/url-pattern /servlet-mapping Reran apache, and tomcat, and tried to access that servlet with localhost:8080/examples/servlet/AddDispServlet, it did not work. After updating web.xml file with the above lines, I even cannot run localhost:8080/examples. Have I missed some points in deploying the servlet? Any pointers would be highly appreciated. Thanks again. Damar damar thapa wrote: Hi, I followed John Turner's Apache1.3.26 version of howto to install/setup/configure the captioned packages. All went fine: Apache is ok on its own, tomcat is ok on its own, and localhost/examples can access the html file located at /webapps/examples, but when I try to run servlet or jsp, I get internal error message. To be precise, I can run http://localhost:8080/examples/servlet/HelloWorldExample; but not http://localhost/examples/servlet/HelloWorldExample; I would appreciate, if any one out there can point me what I have not done. regards, Damar -- 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 can I connect Apache 2.40 with Tomcat 4.1.10 on Windows 2000?
Robert Sowders created a HOWTO: ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.10_JSDK1.4.zip John -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 10:49 AM To: Tomcat Users List Subject: How can I connect Apache 2.40 with Tomcat 4.1.10 on Windows 2000? Hello! I have Apache 2.40 and Tomcat 4.1.10 and the mod_jk.dll. What have I to do to connect both? Don´t find something in the documentation! Thanks for help 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]
Re: form-login-config
Richard Chamberlain wrote: After I sent my previous message I played around a bit and it became clear that I was misinterpreting how to use form login. I'll explain what I want to do and perhaps somebody would be kind enough to point me in the right direction. I have a page that I only want members to be able to get to, member.jsp for instance. At the moment I've got it set up so attempting to access member.jsp will redirect you to the index page at which point you can login in and then be redirected to the member page. All works ok. However what I actually want is a form login on each page of the site and when a user logs in they get redirected to member.jsp. At the moment that gives me a invalid direct reference to form login page because tomcat wants me to go to member.jsp first and then be redirected to a form. Do I have to write myself some authentication code in this case? This was very easy in resin because you just mapped the j_security_check servlet and everything worked as I've outlined. Do you mean that you actually have the login form embedded in every public page? Doesn't that clutter up your pages unnecessarily? What I do is to have a Login button on every public page. The login button sends the user to the private home page. Since this is subject to a security restriction, the user is diverted to a login page first. Once logged in, he is automagically redirected to the private home page. This works well! HTH, Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SIGINT kills tomcat
On Solaris 8, under bourne shell, tomcat 4.0.3. Run tomcat/bin/startup.sh prints out env. variables starts tomcat Script exits and returns to the shell prompt. All is fine. Tomcat now seems to be running as a background process If I type ^C (SIGINT) at the command prompt (or at a subsequent tail -f, say, running at the same terminal window as I started tomcat from), the signal is propagated to the tomcat jvm instance and it exits! This outrageous behaviour only happens with the bourne shell; bash and csh are OK. Any idea on how to stop keyboard generated signals getting propagated to the background tomcat java process? - Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache/tomcat load balance doesn't work with http post operation
AJP13 is used. jvmRoute does the trick!! In my case, two instances of tomcat run on separated machines. Thank you Vincent. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 10:32 AM To: Tomcat Users List Subject: RE: Apache/tomcat load balance doesn't work with http post operation So you use the Warp connector or AJP13? First you must have 2 server.xml (one for each instance), the port numbers must be different for each instances. In your server.xml you must specify the jvmRoute in the Engine Tag (jvmRoute=LoadBalancerName). -Message d'origine- De : Xiaoyu Zhang [mailto:[EMAIL PROTECTED]] Envoyé : lundi 9 septembre 2002 16:05 À : Tomcat Users List Objet : RE: Apache/tomcat load balance doesn't work with http post operation Vincent, The server.xml file and workers.properties are attached. In the server.xml file the warpConnector configuration is commented out. Thanks, Xiaoyu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 4:01 AM To: Tomcat Users List Subject: RE: Apache/tomcat load balance doesn't work with http post operation Hi, I have already had this type of problem, the cause was a miss configuration. Can we please see your worker.properties and server.xml file? Vincent. -Message d'origine- De : Xiaoyu Zhang [mailto:[EMAIL PROTECTED]] Envoyé : dimanche 8 septembre 2002 19:30 À : [EMAIL PROTECTED] Objet : Apache/tomcat load balance doesn't work with http post operation Hi All, Sorry if you received this email twice. I didn't receive the email from tomcat-user list, so I am sending it again in case the first one got lost. I have set up Apache 1.3.29 distribute loads across 2 Catalina 4.0.3. For http get operation, every thing works fine. For HTTP post operation, apache can figure out the righ server to send the request, however catalina 4.0.3 can not identify the correct session, it can not find the data we stored in the session. Would like to know if anyone else has similar experience to share? TIA Xiaoyu -- 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]
Is Tomcat 4.1.10 RPM available?
As the subject states, is there an RPM available for 4.1.10? If not, will one be coming, or should I just install the .tar.gz binary? (I like the RPM file layout better than just using the .tar.gz.) Thanks, Ryan
more global.asa
I created the following class, but for some reason contextInitilized() and contextDestroyed() are fired, but the session method aren't. By the way, I shouldn't implement HttpSessionListener? -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Url Mapping with mod_jk
Hi again The stagenewngfl host element is defined twice (which is a bit strange now I look at it). Once in the Tomcat-Standalone service section and once in the Tomcat-Apache service section. I do want it to be available both through Apache and direct from Tomcat. I took a guess and got rid of the host in the Tomcat-Apache service. This seems to have worked as the generated conf file now only has one virtualhost entry for stagenewngfl. I presume from this that all contexts are shared among all services (even if the context isn't defined in the given service) - which seems a bit odd. Then I started playing and seeing if I could define an examples context under stagenewngfl. I couldn't get it to work and it just gave me page not found. I then tried changing the path attribute for the stagenewngfl context to be /stagenewngfl. That didn't work either. It seems that I can't get http://stagenewngfl.ngfl.gov.uk/anything-at-all/ to work. However I still seem to be able to get pages from my webapp if I go to the root (for instance http://stagenewngfl.ngfl.gov.uk/index.jsp), but that is when I get JSP source back. I am now more confused than I was :-( I hope this all means something to someone as I have lost it. I hope you can help, Anthony. PS I doubt the links in this mail will work as our firewall will probably block them. -Original Message- From: Turner, John [SMTP:[EMAIL PROTECTED]] Sent: 09 September 2002 13:31 To: 'Tomcat Users List' Subject: RE: Url Mapping with mod_jk Make sure there is only one Host container in server.xml for stagenewngfl.ngfl.gov.uk. There should only be three Listener elements, one for Server, one for localhost, and one for stagenewngfl.ngfl.gov.uk. Do you get the source of the JSP pages when you access http://localhost/examples or only when you access http://stagenewngfl.ngfl.gov.uk/some.jsp ? What is the URL of the JSP page you are trying to test...does it match any of the URL mappings in your mod_jk.conf? John ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: form-login-config
Hi Martin, Do you mean that you actually have the login form embedded in every public page? Doesn't that clutter up your pages unnecessarily? What I do is to have a Login button on every public page. The login button sends the user to the private home page. Since this is subject to a security restriction, the user is diverted to a login page first. Once logged in, he is automagically redirected to the private home page. This works well! HTH, Martin We do have it on pretty much every page. Once the user is logged the form gets replaced with a kind of member control panel. If you look at slashdot.org they do a similar thing with a member login on each page in the right column - it's doesn't take up too much real estate. When I figured out how the form-login-config worked I realised I could of course do it like you were suggesting, however I really would like to get it working as is ideally - as that's how the html designed it. Any other suggestions? Thanks, Richard -- http://fastmail.fm - Email service worth paying for. Try it for free. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat Clustering
Hi I have a cluster of 2 tomcats running in a loadbalancing. Two Problems: 1) when one fails none of the others nodes accept any requests until shutdown complete. I run shutdown in nodes one at time. For example: a) shutdown tomcat1, startup tomcat1; shutdown tomcat2, startup tomcat2;... java.lang.RuntimeException: Read of HTTP Request POST parameters failed: read content length at org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpRequestBase.java:658) at org.apache.catalina.connector.HttpRequestBase.getParameterNames(HttpRequestBase.java:723) at org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFacade.java:165) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:924) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:795) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:484) 2002-09-06 17:54:29 Ajp13Processor[18080][1] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:96) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:484) b) when node return for cluster, your session not uptaded. 1) My worker.properties worker.list=loadbalancer # # First tomcat server # worker.tomcat1.port=18080 worker.tomcat1.host=localhost worker.tomcat1.type=ajp13 worker.tomcat1.lbfactor=1 worker.tomcat2.port=19080 worker.tomcat2.host=localhost worker.tomcat2.type=ajp13 worker.tomcat1.lbfactor=1Vc vai ter que escrever uma subclasse de Policy q pegue worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1, tomcat2 In mod_jk.log in apache. [Fri Sep 06 18:31:55 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Fri Sep 06 18:31:55 2002] [jk_ajp13_worker.c (712)]: Error reading reply [Fri Sep 06 18:31:55 2002] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 0 [Fri Sep 06 18:31:55 2002] [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [Fri Sep 06 18:31:55 2002] [jk_ajp13_worker.c (196)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 [Fri Sep 06 18:31:55 2002] [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat process. [Fri Sep 06 18:31:55 2002] [jk_ajp13_worker.c (848)]: In jk_endpoint_t::service, send_request failed in send loop 1 [Fri Sep 06 18:31:55 2002] [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [Fri Sep 06 18:31:55 2002] [jk_ajp13_worker.c (196)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 [Fri Sep 06 18:31:55 2002] [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat process. [Fri Sep 06 18:31:55 2002] [jk_ajp13_worker.c (848)]: In jk_endpoint_t::service, send_request failed in send loop 2 [Fri Sep 06 18:32:08 2002] [jk_ajp13_worker.c (381)]: Error ajp13_process_callback - write failed Regards Alvaro -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache 2.0.40, mod_jk core dump on AIX
On Mon, 9 Sep 2002, Turner, John wrote: What if you add an additional parameter to your configure command? ./configure --with-apxs=/www/apache2/bin/apxs --with-java-home=${JAVA_HOME} It was suggested to me that the JAVA_HOME part was needed...I would be interested to know if it works without that part. I suspect that won't help this situation -- it looks like this is an issue with building shared libs on AIX, which I have some experience with, but unfortunately not enough to help the Johannes. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 10:57 AM To: [EMAIL PROTECTED] Subject: Apache 2.0.40, mod_jk core dump on AIX Hi everyone, I want to use mod_jk for integrating Tomcat 4.0.4 and Apache 2.0.40 on AIX 4.3.3. So I downloaded the j-t-c from CVS to get the latest source and followed the instructions: [ ... ] I search the net and almost every newsgroup where mod_jk or tomcat were discussed, and it seams that building mod_jk as DSO on AIX is quite a challenge :) I did this for Apache 1.3.22 on AIX and found the hint to add -bexpall to LDFLAGS_SHLIB in the apxs script. That worked - but there's nothing similar for Apache 2.0.40. Sad but true. [ ... ] Why do you say there's nothing similar for Apache 2? -bexpall is a loader/linker option, that is often required on AIX when building shared libs. You can't ind any place where you can insert it? In any case, I suspect you'll have the most luck getting help by looking in the newsgroup comp.unix.aix -- you can search its archive at groups.google.com, and if you don't find anything helpful, you can post something there. This is really a general AIX shared lib issue (and maybe apache related as well), not anything particular to mod_jk. Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems getting roles in JNDI Realm (This *IS* a problem.)
John Holman wrote: Mark Looking up roles as the administrator (or anonymously if connectionName and connectionPassword are not specified) is a deliberate design decision. John. ?? But, if you've already established a connection with the users principle and credentials, why would ever want to convert to a diferent set of principle/credentials to do the role lookup as a *rule*? This seems to be a *configuration* decision. It would be benifical if the interface provided for this option by providing something like a bind-as-user='true|false' query-as-user='true|false' in the realm configuration. One reason for the decision was that users may not have the permissions to retrieve their own roles from the directory, at least when roles are represented as LDAP group entries. (Such permissions would enable a user to retrieve the roles of any other user, which may be considered a breach of privacy). Depends on the ACL model the LDAP server is implementing. Another reason was that for efficiency reasons role information held as the value of an attribute in the user's entry is retrieved as an integral part of searching for that entry (when a user search is configured). That search must be carried out when bound as the administrator, since we don't yet know the user's dn, and so it seemed consistent to use the same credentials when retrieving role information held as group entries. The users dn is know implicitly because you just bound to the ldap server with it. In our model, users can only see the groups that they are a member of. If you are worried about privacy you won't want to give users the ability to read the roles of others - so binding as the user to retrieve group-based role information won't work. And if you are not, just allow the roles to be read when bound anonymously. So I can't see it would add much (except to the complexity of the program!) to support a query-as-user option. Though I may be missing something ... John I think it depends on the ACL model one is using. We are using a hierarchical membership model. We have Public, Researchers, Curators and Admins. Each of which has progressively more rights than the last. In our case, the administrators of a particular subtree of the LDAP are decided based on thier being members of an administrator group entry at that particular point in the LDAP server. So an administrator has rights to alter the contents all members of the administrator group and any sub-groups below the administrator, same goes for curators as well, they can edit membership into the curators group, researchers group or public group. Researchers and Public only have read access to the groups they are a member of. In all cases a user stays logged into the LDAP using the same principle/credentials that they bound with. The LDAP servers ACL controlles their rights in the system. (Not the Client JNDI Context, which could then be breached by rogue clients.) Users all log in just the same and have thier views of the ldap controlled by the ACL. Our ACL on our LDAP server restricts Users to only see group entries of which they are a member of (so users can't see who is a member of a higher group). Only administrators and curators actually have the rights to edit their group/subgroup entries. Users in the other groups do have rights to view thier groups/subgroups, they have no view of groups higher than them in the hierarchy. In my eye's the JNDI realm *is* just another *LDAP Client* connecting to the LDAP server. Its the server's job to restrict access appropriately and not the client's. If the security of the Tomcat server were breached and the someone was able to pull the administrative credentials from the server.xml file, that would be bad. In our case we would need to put them there because we don't allow annonymous lookup of our groups and the greatest access group would be the administrators. So the JNDI realm configurablity becomes an issue because I can do the following. bindAsUser / lookup roles Anonymously bindAsUser / lookup roles as Administrator but I can't do: bindAsUser / lookup roles as User. I dont' think its the *clients* job to restrict the way one can communicate with the *server* in this case. The JNDI library itself doesn't, why should Tomcat? In our model, the users (admins,curators,researchers and public) are responsable for thier credentials and the Tomcat Server is not a point of security risk. Its just a client they are configuring. It doesn't store any passwords in the server.xml file -Mark -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
line feeds in response
Hi all, got the following problem: I'm generating xml with jsps. Before I write out any response, I'm using out.clearBuffer() to clear anything from the output buffer in order not to write out new lines etc. However, this doesn't seem to work. I always get 3 line feeds before the xml starts, which causes most parsers to fail parsing that xml. I was wondering wether this is caused by the dispatcher mechanism I'm using: RequestDispatcher dispatcher = request.getRequestDispatcher(jspUrl); dispatcher.forward(request,response); since the resulting servlet code for the jsp begins output without any line feeds, so this problem can't have it's origin the jsp. The generated source code is: // begin [file=/includeHeader.jsp;from=(0,2);to=(0,15)] out.clearBuffer(); // end // HTML // begin [file=/includeHeader.jsp;from=(0,17);to=(1,0)] out.write(?xml version=\1.0\ encoding=\UTF-8\?\n); I tried to use also the clear() method in the out object, also reset(), resetBuffer() in HttpServletResponse, with the same results. The line feeds are always outputted before the ?xml version=\1.0\ encoding=\UTF-8\?\n String. I'm running jakarta-tomcat-4.0.4-LE-jdk14 on nt 4.0. Any help would be really, really appreciated. Thanks Alex -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Cannot allocate servlet instance for path ...
Hello! It may be a well known problem, but I'm new in working with Tomcat. I've made a simple servlet and I want to run it in Tomcat. The servlet is in the package simpleServlet and it is called SimpleServlet. My directory structure is: \webapps\simpleServlet\WEB-INF\ classes\SimpleServlet.class web.xml After I startup Tomcat and trying to browse with this URL...: http://localhost:8080/simpleServlet/servlet/SimpleServlet ...I get this error message: -- javax.servlet.ServletException: Cannot allocate servlet instance for path /simpleServlet/servlet/SimpleServlet at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:419) at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:479) - I will thank a lot if you can help me. Reggards. - Mauro -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Using IIS and Tomcat without integration.
Hello all, A general integration question. I've got an asp application that I am attempting to merge with a jsp application and have not had any luck integrating the two. (two full days perusing the tomcat archives) This got me to thinking. Is it really necessary that they be integrated. The two apps can run independent of one another so why can't I just create a link from within the asp program (where users login) to the tomcat application? Are there sercurity or session issues that I'm not anticipating? There won't be a lot of traffic to the site but data security is essential. Any thoughts would be greatly appreciated. Thanks, Richard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: error
Remember to place a return just after the sendRedirect line. Bye - Original Message - From: Dionisio Ruiz de Zarate [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 07, 2002 12:14 AM Subject: error Anybody knows whoat is this error?: Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error -- -- type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception java.lang.IllegalStateException at org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFa cade.java:173) at org.apache.jsp.index$jsp._jspService(index$jsp.java:3364) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:217) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19 4) at java.lang.Thread.run(Thread.java:484) -- -- MSN: [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: tomcat-4.0.4/Apache-1.3.26 and mod_jk
On Tue, 10 Sep 2002, damar thapa wrote: Hi, I would like to add one more query here. I created one servlet called AddDispServlet.class, which I copied to /webapps/examples/WEB-INF/classes directory. And to deploy that, I added the following lines in /WEB-INF/web.xml file: servlet servlet-nameAddDispServlet/servlet-name servlet-classAddDispServlet/servlet-class /servlet servlet-mapping servlet-nameAddDispServlet/servlet-name url-patternAddDispServlet/url-pattern /servlet-mapping Reran apache, and tomcat, and tried to access that servlet with Note that you shouldn't need to restart Apache with such a change (i.e. something that's within an already existing context). localhost:8080/examples/servlet/AddDispServlet, it did not work. Note that when you specify the port 8080, you're calling Tomcat as a standalone web server, and not going through Apache at all. After updating web.xml file with the above lines, I even cannot run localhost:8080/examples. Have I missed some points in deploying the servlet? Any pointers would be highly appreciated. [ ... ] One very important thing to do when things aren't working is to look at the logs -- both Apache's and Tomcats's. Do you see anything there related to the above? If you say that examples no longer works at all, the first thing that I think of is that you messed up your web.xml so that it's no longer compliant with the DTD, and Tomcat can't parse it -- an error related to this will show up in Tomcat's logs (don't recall which one). Note that things like the order of tags in the web.xml is specified by the DTD, so by making changes/additions to it, you might have gotten things out of the required order. The spec mentions the required order. Another question I think of is, is AddDispServlet in a package. The way you have it set up above should work if it isn't. But either way, this should only affect whether AddDispServlet works, not examples overall. Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Configuring tomcat 4.1.10 for working with both http and https
Hi all, I have just downloaded tomcat 4.1.10 and replaced tomcat 4.0.4 in the previous version I had a site working with both http and https. Now I switched to the jk2 connector and I have this problem the jk2 connector can't works with https and http together. In the server.xml i had to put the attribute scheme to https in order to work with https but if I try to get the same site with http I get the fist manually digited page in http but if I submit a form with a relative url (/context/servlet) as a target the response switches over https here is a scheme jsp page---(submit to a servlet)--servlet(redirecting with relative url)---other jsp page httphttp--https (switch made automatically) the same happens if the scheme is set to http and I'd like to see the site in https mode (in this case the switch is from htts to http) can I avoid this situation? In tomcat 4.0.4 all worked as I expected. here is my tomcat 4.1.10 server.xml ... Service name=Tomcat-ApacheSSL Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps scheme=https acceptCount=10 debug=0 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler / Engine className=org.apache.catalina.core.StandardEngine name=Apache debug=0 defaultHost=giovanni Host name=giovanni debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / /Host !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ /Engine /Service ... and here is the tomcat 4.0.4 one Service name=Tomcat-Apache !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 secure=true / !--Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/-- !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.core.StandardEngine name=Apache debug=0 Host name=giovanni debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / !--Context path=/Portal docBase=Portal debug=0 /-- /Host !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service thanks in advance, Giovanni Giovanni Cuccu Sw [EMAIL PROTECTED] Dianoema S.p.A. Via de' Carracci 93 40131 Bologna Tel: 051-4193911 e-mail:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ServletContext in a Bean
For me, you don't have to access to the ServletContext in your bean, because the bean belongs to the Business Model. The data model has to be independent of the web. It can be shared by all applications (web or not). It is the process which manipulates the bean (the Servlet) that must access to the ServletContext. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 09 September 2002 17:09 To: Tomcat Users List Subject: ServletContext in a Bean Hi, how can I access the ServeltContext in a bean? Could you give me sample: e.g. import javax.servlet.*; // something like that, but getServletConfig() is of course not known in a normal bean. ServletContext ctx = getServletConfig().getServletContext(); String dbdriver = ctx.getAttribute(Constants.DBDRIVER); thanks for any help! Rainer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AJP13 and bug 10383
Hi, I could really use some recommendations. I'm having a problem with the AJP13 processors locking up Tomcat. My problem sounds very much like bug 10383... http://issues.apache.org/bugzilla/show_bug.cgi?id=10383 The configuration is Tomcat 4.0.4, Windows 2000, IIS 5, ISAPI Redirect and AJP 13 from the jakarta-tomcat-4.0.4.exe distribution (which appears to be the same as distributed with Tomcat 3.3). The catalina_log file shows that the management of Ajp13Processors seems to spin out of control, incrementally starting processors in a loop, starting 70 processors in under 3 seconds. Once the number of processors reachs the maximum (I have it set for 150), the Ajp13Connector starts rejecting all connections. 2002-09-04 13:31:09 Ajp13Processor[8009][116] Starting background thread 2002-09-04 13:31:10 Ajp13Processor[8009][117] Starting background thread ... snip ... 2002-09-04 13:32:06 Ajp13Processor[8009][148] Starting background thread 2002-09-04 13:32:07 Ajp13Processor[8009][149] Starting background thread 2002-09-04 13:32:07 Ajp13Connector[8009] No processor available, rejecting this connection 2002-09-04 13:32:08 Ajp13Connector[8009] No processor available, rejecting this connection 2002-09-04 13:32:09 Ajp13Connector[8009] No processor available, rejecting this connection 2002-09-04 13:32:09 Ajp13Connector[8009] No processor available, rejecting this connection ... and so on, and so on ... The only clue I have as to the cause, is a lot of SocketExceptions from connection resets. My understanding was that this was caused by users stopping or closing browsers before a request is completed, and they are safely ignored. 2002-09-04 12:29:37 Ajp13Processor[8009][18] process: invoke java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:484) The only other unusual activity I can find is a number of servlet exceptions thrown form one of my servlets, which prevents overly large files from being submitted with a multipart mime request. I need to use IIS and 2.3 servlets at this time, so I think my options for connectors are limited. Any help or suggestions would be greatly appreciated. Thanks, Mike Reardon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: ServletContext in a Bean
Thanks Sandra, you are confirming my solution I just decieded for. I will pass on the needed values with a setter methode from the servlet to the bean. Thats how it's supposed to be. Rainer For me, you don't have to access to the ServletContext in your bean, because the bean belongs to the Business Model. The data model has to be independent of the web. It can be shared by all applications (web or not). It is the process which manipulates the bean (the Servlet) that must access to the ServletContext. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 09 September 2002 17:09 To: Tomcat Users List Subject: ServletContext in a Bean Hi, how can I access the ServeltContext in a bean? Could you give me sample: e.g. import javax.servlet.*; // something like that, but getServletConfig() is of course not known in a normal bean. ServletContext ctx = getServletConfig().getServletContext(); String dbdriver = ctx.getAttribute(Constants.DBDRIVER); thanks for any help! Rainer -- 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]
.ear descriptor description?
anyone know where i can find a detailed description of what goes into the xml deployment descriptor of an .ear file? i've been combing the sun site and haven't been able to find it. :| thanks! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]