Tomcat 4: How to get RoleName from LDAP
Hi, In my environment I want to authenticate the users against MS Active Directory by JNDI LDAP. The user authentication is ok and also the roles found by getRoles() are the right ones. But the returned roles are given in their complete distinguished name (DN. In catalina.out: 2004-05-13 11:33:44 JNDIRealm[Standalone]: Found role CN=ERKUSAAdmin,CN=Users,DC=local,DC=bremereb,DC=de instead of 2004-05-13 11:59:31 JNDIRealm[Catalina]: Found role ERKUSAAdmin So I have to configure the fully DN in web.xml for a security-constraint instead of the pure role name, what is highest undesireable. I run this on tomcat 4.1.27. The funny thing is that the same configuration on tomcat 5 works. For completion, here is my realm config (user- and rolebase are the same): Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=... (substituted) userBase=CN=Users,dc=local,dc=bremereb,dc=de userSearch=(sAMAccountName={0}) userRoleName=memberOf roleBase=CN=Users,dc=local,dc=bremereb,dc=de roleName=cn roleSearch=member={0} connectionName=[EMAIL PROTECTED] connectionPassword=secret roleSubtree=true userSubtree=true / Can anybody tell me how to get the pure assigned role names for a authenticated user? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4: How to get RoleName from LDAP
The way that the JNDIRealm works is dependant on its implementation. Unless there is a configuration item for Tomcat 4.1.27 that allows the comparison to be done on the role name attribute (CN in this case) then you will have to put the full distinguished name into the configuration. I had a quick look at the JNDIRealm doco and I didn't see anything in there that would allow this. It is strange however that the 4.1.27 implementation takes the roleName attribute that would be used in such a comparison and doesn't use it in the way that might be expected. Because otherwise there is no point in specifying the roleName attribute as its not required to determine membership of a user to a group through an LDAP search. Of course the doco says its used as a flag as to whether the userRoleName is used instead. I would image that the rationale of this implementation to use the DN is that the DN is unambiguous and would cater for a strongly heirachial LDAP tree that may have groups of the same name under different branches, from the starting point of the LDAP search. Another option of course is to compile your own Tomcat with the required change to the code or implement your own realm security manager. But thats a bit more work :) But without looking at the source, which I don't have time!, I can only speculate! Regards, Shane. -Original Message- From: Goerlich, Michael [mailto:[EMAIL PROTECTED] Sent: Monday, 17 May 2004 3:17 PM To: [EMAIL PROTECTED] Subject: Tomcat 4: How to get RoleName from LDAP Hi, In my environment I want to authenticate the users against MS Active Directory by JNDI LDAP. The user authentication is ok and also the roles found by getRoles() are the right ones. But the returned roles are given in their complete distinguished name (DN. In catalina.out: 2004-05-13 11:33:44 JNDIRealm[Standalone]: Found role CN=ERKUSAAdmin,CN=Users,DC=local,DC=bremereb,DC=de instead of 2004-05-13 11:59:31 JNDIRealm[Catalina]: Found role ERKUSAAdmin So I have to configure the fully DN in web.xml for a security-constraint instead of the pure role name, what is highest undesireable. I run this on tomcat 4.1.27. The funny thing is that the same configuration on tomcat 5 works. For completion, here is my realm config (user- and rolebase are the same): Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=... (substituted) userBase=CN=Users,dc=local,dc=bremereb,dc=de userSearch=(sAMAccountName={0}) userRoleName=memberOf roleBase=CN=Users,dc=local,dc=bremereb,dc=de roleName=cn roleSearch=member={0} connectionName=[EMAIL PROTECTED] connectionPassword=secret roleSubtree=true userSubtree=true / Can anybody tell me how to get the pure assigned role names for a authenticated user? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Tomcat 4: How to get RoleName from LDAP
Hi Shane, thanks for your remarks that shows me that there is probably no solution by configuration. So I have to decide to implement my own realm security manager or migrate to Tomcat 5. What Tomcat 5.0.24 does is the return of both, the DN and the rolename so you got the double amount of roles per user defined in LDAP tree. Disfunction or rationale? Thanks in advance Michael -Ursprüngliche Nachricht- Von: Shane Linley [mailto:[EMAIL PROTECTED] Gesendet: Montag, 17. Mai 2004 09:58 An: Tomcat Users List Betreff: RE: Tomcat 4: How to get RoleName from LDAP The way that the JNDIRealm works is dependant on its implementation. Unless there is a configuration item for Tomcat 4.1.27 that allows the comparison to be done on the role name attribute (CN in this case) then you will have to put the full distinguished name into the configuration. I had a quick look at the JNDIRealm doco and I didn't see anything in there that would allow this. It is strange however that the 4.1.27 implementation takes the roleName attribute that would be used in such a comparison and doesn't use it in the way that might be expected. Because otherwise there is no point in specifying the roleName attribute as its not required to determine membership of a user to a group through an LDAP search. Of course the doco says its used as a flag as to whether the userRoleName is used instead. I would image that the rationale of this implementation to use the DN is that the DN is unambiguous and would cater for a strongly heirachial LDAP tree that may have groups of the same name under different branches, from the starting point of the LDAP search. Another option of course is to compile your own Tomcat with the required change to the code or implement your own realm security manager. But thats a bit more work :) But without looking at the source, which I don't have time!, I can only speculate! Regards, Shane. -Original Message- From: Goerlich, Michael [mailto:[EMAIL PROTECTED] Sent: Monday, 17 May 2004 3:17 PM To: [EMAIL PROTECTED] Subject: Tomcat 4: How to get RoleName from LDAP Hi, In my environment I want to authenticate the users against MS Active Directory by JNDI LDAP. The user authentication is ok and also the roles found by getRoles() are the right ones. But the returned roles are given in their complete distinguished name (DN. In catalina.out: 2004-05-13 11:33:44 JNDIRealm[Standalone]: Found role CN=ERKUSAAdmin,CN=Users,DC=local,DC=bremereb,DC=de instead of 2004-05-13 11:59:31 JNDIRealm[Catalina]: Found role ERKUSAAdmin So I have to configure the fully DN in web.xml for a security-constraint instead of the pure role name, what is highest undesireable. I run this on tomcat 4.1.27. The funny thing is that the same configuration on tomcat 5 works. For completion, here is my realm config (user- and rolebase are the same): Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=... (substituted) userBase=CN=Users,dc=local,dc=bremereb,dc=de userSearch=(sAMAccountName={0}) userRoleName=memberOf roleBase=CN=Users,dc=local,dc=bremereb,dc=de roleName=cn roleSearch=member={0} connectionName=[EMAIL PROTECTED] connectionPassword=secret roleSubtree=true userSubtree=true / Can anybody tell me how to get the pure assigned role names for a authenticated user? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Taglib error
Hi, I'm trying to use cache taglib. I did the following steps : 1. Copy the tag library descriptor file to the /WEB-INF subdirectory of my web application. 2. Copy the tag library JAR file to the /WEB-INF/lib subdirectory of my web application. 3. Add a taglib element to your web application deployment descriptor in /WEB-INF/web.xml like this: taglib taglib-urihttp://jakarta.apache.org/taglibs/cache-1.0/taglib-uri taglib-location/WEB-INF/cache.tld/taglib-location /taglib but when tomcat(4.1.29) starts, I've this error: 17-mag-2004 10.36.05 org.apache.commons.digester.Digester error GRAVE: Parse Error at line 7 column 50: Attribute xmlns:xalan must be declared for element type taglib. org.xml.sax.SAXParseException: Attribute xmlns:xalan must be declared for elem ent type taglib. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un known Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValid ate(Unknown Source) In my lib I've xalan-2.5.1.jar xercesImpl.jar xercesSamples.jar xml-apis.jar xmlParserAPIs.jar Any idea? thankx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javax.security.auth.subject disappears
Hi, I'm running tomcat 5 with -security option and I'm using JAAS login module. In the jsp pages in first request after I have identified my self Subject is null. When I hit refresh (second request) Subject is correct subject with principals etc. But after that in all requests Subject is empty, no principals etc. I use follwing code to get Subject: AccessControlContext acc = AccessController.getContext(); Subject sub = Subject.getSubject(acc); I checked tomcat src code that it uses javax.security.auth.subject attribute to store Subject in session. CoyoteRequest.java public void setUserPrincipal(Principal principal) { if (System.getSecurityManager() != null){ HttpSession session = getSession(false); if ( (subject != null) (!subject.getPrincipals().contains(principal)) ){ subject.getPrincipals().add(principal); } else if (session != null session.getAttribute(Globals.SUBJECT_ATTR) == null) { subject = new Subject(); subject.getPrincipals().add(principal); } if (session != null){ session.setAttribute(Globals.SUBJECT_ATTR, subject); } } this.userPrincipal = principal; } I guess that session.getAttribute(Globals.SUBJECT_ATTR) is somehow null after second request.. Any ideas what is causing this and how can I fix it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat hangs Apache...
Hallo all, We are having problems, where aparently Tomcat sort of hangs apache. Lets first discribe the setup: Server runs IBM AIX 5 Tomcat is version 4.1.27 Apache is version 2.0.47 Java is IBM's own 64 bit JDK 1.4.1 mod_jk2 is used. We run several virtual hosts on the apache server. There are three instances of tomcat running, for three different virtual apache hosts. Apache communicates with these instances on tcp sockets, using mod_jk2. Every _monday_ morning I am presented with the following situation. - The Apache server has stopped accepting connections. The number of daemons is maxclients +1. - The Tomcat servers function normally. Connecting with a browser to their http ports does produce the expected results, within the expected time. - Restarting one of the tomcat servers solves the problem. The Apache server becomes unstuck, and starts accepting connections again. The number of apache daemons drops to around 20 or so, and that is normal for the load. I currently run a couple of scripts to watch what happens on the system, as the logfiles do not give me any clue. I notice that always, somehwere during Saturday, the number of apache daemons starts to increase, to the point that the maximum is reached, then it stops. The weird thing is that these servers are intranet servers, so nobody is actually using them during the weekend. I find nothing (no accesses) in the logifles. I ahve no idea where to start on this, what might cause this problem, how to find out more. Has anyobody here on the list seen similar behaviour? Any hints on how I might to start finding out what is happening here would be more then welcome. Krist van Besien -- Krist van Besien Bern, Switzerland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I need help: Configure log4j in Tomcat/Windows 2000
Hello, I need to now, how to configure the log4j from Tomcat in Windows 2000. What is log4j? I am new with Tomcat. I have installed jakarta-slide-2.0-tomcat-4.1.30 with Axis1_1 under the operating system Windows 2000 and it runs. But I get a WARNING if I start and stop the Tomcat. The WARNING is: LOG4j:No appender could be found for logger org.apache.common.digester.Digester.sax. Please initialize the log4j system properly. What should I do that this WARNING never appears and HOW to do this action. Thanks in advance. Kind Regards Jürgen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javax.security.auth.subject disappears
I resolved this. The problem was in SecurityUtil.java execute method. fixed code in execute method: ... if (subject == null){ subject = new Subject(); //I added following two lines if (principal != null) subject.getPrincipals().add(principal); session.setAttribute(Globals.SUBJECT_ATTR, subject); } ... -Original Message- From: Janne Väänänen Sent: 17. toukokuuta 2004 12:12 To: [EMAIL PROTECTED] Subject: javax.security.auth.subject disappears Filter detected spam Hi, I'm running tomcat 5 with -security option and I'm using JAAS login module. In the jsp pages in first request after I have identified my self Subject is null. When I hit refresh (second request) Subject is correct subject with principals etc. But after that in all requests Subject is empty, no principals etc. I use follwing code to get Subject: AccessControlContext acc = AccessController.getContext(); Subject sub = Subject.getSubject(acc); I checked tomcat src code that it uses javax.security.auth.subject attribute to store Subject in session. CoyoteRequest.java public void setUserPrincipal(Principal principal) { if (System.getSecurityManager() != null){ HttpSession session = getSession(false); if ( (subject != null) (!subject.getPrincipals().contains(principal)) ){ subject.getPrincipals().add(principal); } else if (session != null session.getAttribute(Globals.SUBJECT_ATTR) == null) { subject = new Subject(); subject.getPrincipals().add(principal); } if (session != null){ session.setAttribute(Globals.SUBJECT_ATTR, subject); } } this.userPrincipal = principal; } I guess that session.getAttribute(Globals.SUBJECT_ATTR) is somehow null after second request.. Any ideas what is causing this and how can I fix it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to include an external config file in tha main file server.xml?
Hi all, I am using Tomcat 5.0.24 on RH Enterprise Linux 3. Is there any way to include an external file in the main config file server.xml? I am looking for something similar to the Apache web server's Include directive: http://httpd.apache.org/docs-2.0/mod/core.html#include I've a few Tomcat virtual hosts and I would like to keep their config directives in a separate file. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp:include problem
You are doing a runtime include of a file that doesn't have jsp extensions. (Hint - do view source on your result page) I thought jspf were meant for compile time includes. (As a naming convention, but not dicated, but then again ... I didn't have my morning coffee yet) Anyhoo, add jspf as a mapping to the JSP Servlet. You can do that in $CATALINA_HOME/conf/server.xml or in your local webapp's web.xml. Or you can rename your include to have the file extension jsp. -Tim Sng Wee Jim wrote: Hi, I am using Jakarta tomcat 5.0.24 on Windows 2000. I have 2 files, 1.jsp which includes 2.jspf Content of 1.jsp % pageContext.setAttribute(aaa, 111); System.out.println(in 1.jsp: + pageContext.getAttribute(aaa)); % jsp:include page=2.jspf/ % System.out.println(after, in 1.jsp: + pageContext.getAttribute(aaa)); % Content of 2.jspf br 2 % System.out.println(\n\n\n\n); System.out.println(in 2.jspf: + pageContext.getAttribute(aaa)); //String s = null; //s.length(); pageContext.setAttribute(aaa, ); % The strange thing is that when 1.jsp is run, the System.out.println from 2.jspf is not shown in the tomcat console. Also when the 2 lines Stirng s = null; s.lenght(); is uncommented, the NullPointerException stack trace is not shown in the tomcat console too. (If we copy the 2 lines to 1.jsp, we will be able to see the stacktrace.) Is this a bug? - Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to include an external config file in tha main file server.xml?
XML entities. -Tim wsedio wrote: Hi all, I am using Tomcat 5.0.24 on RH Enterprise Linux 3. Is there any way to include an external file in the main config file server.xml? I am looking for something similar to the Apache web server's Include directive: http://httpd.apache.org/docs-2.0/mod/core.html#include I've a few Tomcat virtual hosts and I would like to keep their config directives in a separate file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to include an external config file in tha main file server.xml?
On 17-05-2004 12:46, Tim Funk wrote: XML entities. I found how to do it: http://www.junlu.com/msg/77913.html http://archives.real-time.com/pipermail/tomcat-users/2003-February/095936.html But it looks like you have to put in the full file path, otherwise Tomcat will throw a file not found error. Is it possible to use relative path in some way? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Turning off debug in catalina.out.
Robert Gouldstone wrote: Here is an example of what is being logged - DEBUG: Adding tld listeners:0 DEBUG: setDocumentLocator( [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ) Check if you have a log4j.properties with debug level for the root logger in one of your web app. For me it was present in the last auto deployed webapp and this switch the xml parser to debug mode producing 40/50 Mb of log at startup. Stefano. -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=d=17-5 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
public_html directory
Hi! I´ve been forced to use Weblogic 5.1 for some time now. I have a public_html directory with sub-directories containing the jsp´s. At the same level as the public_html catalog there is also the servletclasses directory with the jar´s and compiled java-classes. I´ve been trying to shift things around in order to make the application a j2ee one. Without luck. Is there a way to have (almost) the same structure in tomcat (version 5024) as in weblogic 5.1? Any help is appreciated! //Denny
Windows XP Issue
To all, I sent this out previously but I did not receive any feedback on this issue. If anyone is having this issue please let me know. I am using Apache 1.3.27 and tomcat 3.3. I am running this on Windows XP. I am trying to get Apache and Tomcat to work together unfortunately I keep running into an issue. Here are the symptoms. When I compile the examples JSP pages using Tomcat (port 8080) everything compiles fine. However when I try and compile them using Apache with Tomcat I get a fatal OS exception from Apache. This does not occur for static pages. By the way I am aware of the Windows XP bug Q317949 http://support.microsoft.com/default.aspx?scid=kb;EN-US;q317949 documented on the Apache and Windows site. I have a Windows XP SP 1 installed and the file mentioned in the documentation shows to be of a later date code so I assume this is okay. Unfortunately the application I am working with requires Apache 1.3.x it does not support Apache 2.x. The Apache error file is as follows. Mon May 10 01:38:29 2004] [info] master_main: Child processed exited prematurely. Restarting the child process. [Mon May 10 01:38:29 2004] [info] Parent: Created child process 2888 [Mon May 10 01:38:29 2004] [info] Parent: Duplicating socket 192 and sending it to child process 2888 [Mon May 10 01:38:29 2004] [info] BytesRead = 372 WSAProtocolInfo = 2006620 [Mon May 10 01:38:33 2004] [info] master_main: Child processed exited prematurely. Restarting the child process. [Mon May 10 01:38:33 2004] [info] Parent: Created child process 524 [Mon May 10 01:38:33 2004] [info] Parent: Duplicating socket 192 and sending it to child process 524 [Mon May 10 01:38:33 2004] [info] BytesRead = 372 WSAProtocolInfo = 2006620 Any help will be greatly appreciated. Joaquin J. Martinez de Pinillos Anteon Corporation (o) 703 253 3425 (f) 703 253 3690 (m) 703 980 8827
Re: Client authentication and customized error pages
I'm sorry to insist...anyone at Jakarta knows about this problem?? Gustavo Rodríguez wrote: Hi everyone! We were working in this issue some time ago, and reported that when using the clientAuth=want parameter, we got the following exception: java.net.SocketException: Socket Closed at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:177) We left it for some time, as mister Bill Barker had developed a patch that, according to changelog, was finally included in tomcat 5.0.20. So, now we just downloaded tomcat 5.0.24 and tried this authentication mechanism again. This time we get a similar error, althought at a different place: 2004-05-11 12:45:16 RequestDumperValve[localhost]: --- 2004-05-11 12:45:18 [EMAIL PROTECTED]: Exception Processing ErrorPage[errorCode=400, location=/Error.do] ClientAbortException: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:331) at org.apache.coyote.tomcat5.OutputBuffer.flush(OutputBuffer.java:297) at org.apache.coyote.tomcat5.CoyoteResponse.flushBuffer(CoyoteResponse.java:537) at org.apache.coyote.tomcat5.CoyoteResponseFacade.flushBuffer(CoyoteResponseFacade.java:238) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:303) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:147) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:169) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644) at java.lang.Thread.run(Thread.java:534) Is the socket still being closed by tomcat somewhere? May there be anything we should change in our configuration? Thanks very much in advance. Regads, Gustavo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Gustavo Rodríguez Castillo Área de Desarrollo [EMAIL PROTECTED] SATEC - Madrid Av. Europa 34 A 28023 - Aravaca (Madrid) Tlf.: (+34) 91 708 90 00 / (+34) 91 211 03 00 Fax: (+34) 91 708 90 90 / (+34) 91 211 03 90 -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: public_html directory
If using unix, I would try to use symlinks if you need to run the 2 systems in parallel using the same code base. (Kludgy - yes) -Tim Denny Löfgren wrote: Hi! I´ve been forced to use Weblogic 5.1 for some time now. I have a public_html directory with sub-directories containing the jsp´s. At the same level as the public_html catalog there is also the servletclasses directory with the jar´s and compiled java-classes. I´ve been trying to shift things around in order to make the application a j2ee one. Without luck. Is there a way to have (almost) the same structure in tomcat (version 5024) as in weblogic 5.1? Any help is appreciated! //Denny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: public_html directory
This is intended for Windows. Actually, I want to get rid of Weblogic and only use Tomcat in some way. There will be only one system. //Denny Tim Funk [EMAIL PROTECTED] 2004-05-17 13:57 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: public_html directory If using unix, I would try to use symlinks if you need to run the 2 systems in parallel using the same code base. (Kludgy - yes) -Tim Denny Löfgren wrote: Hi! I´ve been forced to use Weblogic 5.1 for some time now. I have a public_html directory with sub-directories containing the jsp´s. At the same level as the public_html catalog there is also the servletclasses directory with the jar´s and compiled java-classes. I´ve been trying to shift things around in order to make the application a j2ee one. Without luck. Is there a way to have (almost) the same structure in tomcat (version 5024) as in weblogic 5.1? Any help is appreciated! //Denny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: public_html directory
In that case - you'll need a hard cutover where during the conversion you'll need to move the directories around into the servlet spec compliant webapp format. Weblogic 5.1 does support 2.2 webapps (IIRC). So that might be the way to start. -Tim Denny Löfgren wrote: This is intended for Windows. Actually, I want to get rid of Weblogic and only use Tomcat in some way. There will be only one system. //Denny Tim Funk [EMAIL PROTECTED] 2004-05-17 13:57 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: public_html directory If using unix, I would try to use symlinks if you need to run the 2 systems in parallel using the same code base. (Kludgy - yes) -Tim Denny Löfgren wrote: Hi! I´ve been forced to use Weblogic 5.1 for some time now. I have a public_html directory with sub-directories containing the jsp´s. At the same level as the public_html catalog there is also the servletclasses directory with the jar´s and compiled java-classes. I´ve been trying to shift things around in order to make the application a j2ee one. Without luck. Is there a way to have (almost) the same structure in tomcat (version 5024) as in weblogic 5.1? Any help is appreciated! //Denny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Apache Tomcat 5.0.24 Stable released
Hi, It IS included in the release (both source and binary), under the tomcat-docs directory. If you didn't know where it was, a find command looking for *change* or *log* would show you. It's also on the download pages for the tomcat releases (both source and binaries, it's the same page, e.g. http://apache.mirrors.hoobly.com/jakarta/tomcat-5/v5.0.24/). So if you can't find it by looking on our web site, can't find it from these top-level links on the download pages, and can't find it by looking through the docs, I'm sorry, I have little emotion but pity. Yoav Shapira Millennium Research Informatics -Original Message- From: Eric Noel [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 1:20 AM To: Tomcat Users List Subject: Re: [ANN] Apache Tomcat 5.0.24 Stable released On 5/17/2004 10:19 AM, Zachary Hartley wrote: Eric Noel wrote: Hey yoav is just saying that usually for tomcat users we always goto the tomcat site which is -http://jakarta.apache.org/tomcat/ Hi, I think its pretty clear that I did go to the sitehow else would I have obtained the release or know there was a new release unless I had been checking the site? then of course it would be logical that if we want to find docs, on the left pane we click the documents section menu of tomcat 5 page -http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html Uh, a changelog is important enough to have it's own listing outside of the documentation, on the main page, or in the actual release. Not asking too much I thought. after that page was loaded at the bottom part you will find -http://jakarta.apache.org/tomcat/tomcat-5.0-doc/changelog.html Once again, a changelog is important enough to not put it in a relatively obsure place like the bottom left of a navigation menu. Not to put you out, but I did look around the site for some time, including downloading both source and binary release just to make sure they weren't inside there somewhere. Pardon the new user who might miss the single link at the bottom of a subpage, among the myriad of other links. I was simply frustrated it wasn't in a more prominent place. So why don't you stop being a smartass and just consider putting the changelog in a more prominent place so new users interested in the project, but not necessarily familiar with it, can try to become informed users. Logically, of course. Zachary Hartley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yeah, the bottom line is just be considerate. It's all in the site http://jakarta.apache.org/ All work at Jakarta is provided on a volunteer basis. There is no paid staff. Please be CONSIDERATE and do your homework before asking our volunteers to donate additional time and energy to your project. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 5.0.24 HotFix Answer
Hi, Yup, just extract it. By definition (of the Servlet Spec), for the same repository classes comes before lib, so an individual .class file will be loaded before its equivalent that's in a .jar. Yoav Shapira Millennium Research Informatics -Original Message- From: wsedio [mailto:[EMAIL PROTECTED] Sent: Sunday, May 16, 2004 10:33 AM To: Tomcat Users List Subject: Re: 5.0.24 HotFix Answer On 15-05-2004 0:31, Schalk wrote: What do I install the Hot Fix for Tomcat 5.0.24? Do I just overwrite the /server/classes/org/apache/coyote/tomcat5/CoyoteAdapter.class? It looks like you just have to extract the tarball in the Tomcat installation directory: http://issues.apache.org/bugzilla/show_bug.cgi?id=28971 --- Extract the package in the Tomcat installation folder --- I had no files in the directory classes of my clean Tomcat 5.0.24 installation, so no file to overwrite ... Ciao. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk
In the Apache error.log file, I get this when I restart Apache... [Fri May 14 12:13:40 2004] [notice] SIGHUP received. Attempting to restart No worker file and no worker options in httpd.conf \nuse JkWorkerFile to set workers\n [Fri May 14 12:13:41 2004] [notice] Apache/2.0.49 (Unix) mod_ssl/2.0.49 OpenSSL/0.9.7d configured -- resuming normal operations Does anyone know what that error means? That you've not told apache where your workers file is? http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html#mod_jk%20Directives I've done that with this line... Include /usr/local/tomcat/conf/auto/mod_jk.conf ..and even manually with this JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties I've decided that I'm just going to run Tomcat in standalone mode over SSL now. Most of everything is Java stuff anyway, so it should be fine. Its very annoying that I couldn't get mod_jk working though, especially since I've done it in the past a few times, using older versions of the software though...Tomcat 4.1.24 and a pre-compiled mod_jk that I downloaded. I think its either something with the 4.1.30 version or the fact that I compiled mod_jk.so myself this time. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Changing the 'ROOT' webapp (newbie question)
Hi, You need to define a Context element for your webapp whose path= (the empty string, not /, not null). And you need to remove or rename the ROOT webapp. The Context element's configuration reference page (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html) contains more details. Yoav Shapira Millennium Research Informatics -Original Message- From: Barnet Wagman [mailto:[EMAIL PROTECTED] Sent: Saturday, May 15, 2004 12:55 PM To: [EMAIL PROTECTED] Subject: Changing the 'ROOT' webapp (newbie question) By default, when Tomcat gets a request for something like http://www.some_domain_name.com/ or http://www.some_domain_name.com it serves the file webapps/ROOT/index.jsp What is the preferred way of getting it return the index file of a different wep app? I haven't found anything in the conf xml files, the documentation, or the archives about this (which doesn't mean it isn't there, just that I didn't see it). Of course I could just change the contents of webapps/ROOT, but I suspect there's a better way. Thanks, bw - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HttpRequest.addHeader() doesn't work?
Hi, Hmm, strange. Have you tried doing this using the standard (spec) interfaces, i.e. have an HttpServletRequestWrapper with the added functionality to include your custom headers and an addHeader method? This would be nicely portable. Yoav Shapira Millennium Research Informatics -Original Message- From: Rui Zhang [mailto:[EMAIL PROTECTED] Sent: Saturday, May 15, 2004 2:48 AM To: Tomcat Users List Subject: HttpRequest.addHeader() doesn't work? Hi there, I tried to use HttpRequest.addHeader() in a tomcat valve to add an additional header to the request. Right afert this, I printed out the request headers, by mapping the reqeust to HttpServletRequest. But the new header was not there. I'm using tomcat 4.1.30. Any help would be greatly apperciated. Best regards, Rui - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat security
Dear List, I am using tomcats integrated security options, available inside the web.xml (see below). When ever the session times out and the user makes a request for a html/or jsp page within this protected context, appears the login.jsp page. My problem is that my app uses frames, and when the user makes a request from a sub-frame the login page shows in this sub-frame window. Is there a simple way to configure in the web.xml, that the login.jsp page always is shown in the parent frame of the browser or document, so causing the whole window to be reloaded. I guess there isnt and I must do some jscript, or fiddle around with html. I would be extremely impressed if there would be a web.xml solution. regards BB p.s. It was very hard to find as Newbie, the email address to post this mail to!! +---+ | GIStec GmbH - Ihr Partner für GIS - Technologie | | | | Ben Bookey| | [EMAIL PROTECTED] Fraunhoferstraße 5 | | Tel 0 61 51 / 155 - 254 D-64283 Darmstadt | | Fax 0 61 51 / 155 - 259 http://www.gistec-online.de | | | | http://www.ingeoic.de http://www.geo-watermarking.de | +---+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jsvc versus startup.sh with jdk 1.4
Hi We may simply have not had the bandwidth or may note have noted the issue -- there's a ton of stuff going on and we're all busy. This should get fixed ;) Is there a bugzilla issue open for it? Yoav Shapira Millennium Research Informatics -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Sunday, May 16, 2004 3:24 AM To: Tomcat Users List Subject: Re: jsvc versus startup.sh with jdk 1.4 I had to add tools.jar to the classpath for the windows service (in service.bat) in order to get jsp's to compile. I've mentioned it to the Tomcat developers, but they haven't added it. The .sh and .bat files add tools.jar to the classpath, so I don't know why they wouldn't want to do it for jsvc??? Jake At 03:17 AM 5/16/2004 -0400, you wrote: Using Sun jdk 1.4 on RH Linux Enterprise Workstation, when I start Tomcat 5 using jsvc, jasper does not successfully create the .java files from the .jsp files. The error reported is that the .java files are not found when they need to be compiled. The problem does not seem to exist on jdk 1.3. Starting Tomcat using startup.sh also fixes the problem - even with jdk 1.4. Root cause unkown. As a new user, it might be that the template script for using jsvc is incomplete in some way that I have not determined, so I would not go so far as to call this a bug. Am I missing something? Thanks, Jonathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: public_html directory
Hi, Check out the section titled User Web Applications on the Host element's configuration reference page: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html. It might be helpful as a transition enabler. Yoav Shapira Millennium Research Informatics -Original Message- From: Denny Löfgren [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 7:44 AM To: [EMAIL PROTECTED] Subject: public_html directory Hi! I´ve been forced to use Weblogic 5.1 for some time now. I have a public_html directory with sub-directories containing the jsp´s. At the same level as the public_html catalog there is also the servletclasses directory with the jar´s and compiled java-classes. I´ve been trying to shift things around in order to make the application a j2ee one. Without luck. Is there a way to have (almost) the same structure in tomcat (version 5024) as in weblogic 5.1? Any help is appreciated! //Denny This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: swallowOutput property
Hi, swallowOutput takes your webapp's System.out and System.err output and puts it in the Logger defined for your context. This is good because it keeps your webapp logging output in one less place. It's also good because these Loggers are rotated, unlike catalina.out (the default location for System.out/System.err output), which can grow in size quickly. I thought this was fairly well defined in the Context element's configuration reference page (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html): If the value of this flag is true, the bytes output to System.out and System.err by the web application will be redirected to the web application logger. If not specified, the default value of the flag is false. Yoav Shapira Millennium Research Informatics -Original Message- From: wsedio [mailto:[EMAIL PROTECTED] Sent: Sunday, May 16, 2004 12:53 PM To: Tomcat Users List Subject: swallowOutput property Hi all, what is the swallowOutput property for? I found the following server.xml directives in an example and I am not sure what that property does: Host name=client.com Context path=/teste docBase=/home/client/public_html/test/ debug=0 crossContext=false reloadable=true swallowOutput=true / Logger className=org.apache.catalina.logger.FileLogger directory=/home/client/public_html/test/WEB-INF/logs prefix=client. suffix=.log timestamp=true/ /Host Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Turning off debug in catalina.out.
Hi, Yeah, that's good advice from Senor Lissa. In general, be careful not to mix the configuration for your webapp's logging component with that of tomcat's. It's easier to do in tomcat5 than it was in the past, since tomcat5 uses commons-logging heavily. Alternatively, if you do mix them (on purpose or not), you can add (for a log4j-flavor file): logger.org.apache = WARN This will turn on logging at the WARN level and higher for all org.apache classes. Yoav Shapira Millennium Research Informatics -Original Message- From: Stefano Lissa [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 7:06 AM To: Tomcat Users List Subject: Re: Turning off debug in catalina.out. Robert Gouldstone wrote: Here is an example of what is being logged - DEBUG: Adding tld listeners:0 DEBUG: setDocumentLocator( [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] c ) Check if you have a log4j.properties with debug level for the root logger in one of your web app. For me it was present in the last auto deployed webapp and this switch the xml parser to debug mode producing 40/50 Mb of log at startup. Stefano. -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=d=17-5 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The requested resource () is not available
Hi, First, you should look into your logs on the production server to see if there's a more detailed error message, such as an error instantiating the context or the specific servlet. Then you should look at the difference in configuration and see if something can account for this behavioral difference. If you post the configuration changes we can help debug further. Yoav Shapira Millennium Research Informatics -Original Message- From: Haroon [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 4:45 PM To: [EMAIL PROTECTED] Subject: The requested resource () is not available Hi, I am testing a struts Servlet, it is working fine on my development machine Which is running Tomcat 4.3 (standalone) However, when I deployed the application to production server running Tomcat 4.1.29/Apache/1.3.27 using mod_jk I it is giving me The requested resource () is not available web.xml both for /myApp and / is same on both servers However, there is a difference in configuration so server.xml is different but both instances have context Defined for /myApp Any help? Thanks Haroon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Apache Tomcat 5.0.24 Stable released
Eric Noel wrote: Yeah, the bottom line is just be considerate. It's all in the site http://jakarta.apache.org/ All work at Jakarta is provided on a volunteer basis. There is no paid staff. Please be CONSIDERATE and do your homework before asking our volunteers to donate additional time and energy to your project. Hi, Its rather obvious that all the work done on Tomcat is on a volunteer basis, wiht no paid staff. I never said it was. And I did do my homework. All I did was ask a simple question on the mailinglist. Nobody forced them to donate additional time and energy to my project, whatever that means. I was simply frustrated to not be able to find the changelog in what I considered the usual places. I happen to use a fairly large amount of open source software, so I have an idea of how the process works, and understand how valuable their time is. I'd rather they spend their time developing and let another user tell me where the changelog is, without having to be insulted (since not being able to find something is a clear sign of not doing your somework and deserving someone's pity?). But whatever, I don't care, I know where the changelog is now, and hope to someday tell somebody else who can't find it where it is without being a dick about it. Zachary Hartley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat reboot runtime
Hi, Yeah, but that's too external (and custom) or too OS-dependent (for the bash process thing). The ListenExec idea is decent at its core. It's not too clean (having to make a socket call, needing to secure that call, needing to configure a password somewhere, etc), but considering the dirtiness of other solutions I've seen in this space it's not bad. I still stick my by original no response when it comes to a portable, stand-along solution given the current tomcat codebase. And I would still love to be proven otherwise by some ingenious design, but this is an old problem ;) I don't think Enhydra was tomcat based, but I'm not sure, if Jacob (Kjome) is watching this thread he might shed some light on that. Remember, though, the idea (request of the original poster) wasn't to have an admin restart the server from a management console. Of course that's doable. It was to have a webapp running inside tomcat reboot its own server. Yoav Shapira Millennium Research Informatics -Original Message- From: Matthew Clark [mailto:[EMAIL PROTECTED] Sent: Sunday, May 16, 2004 5:40 AM To: Tomcat Users List Subject: RE: Tomcat reboot runtime If I remember rightly, the Enhydra Multiserver allowed you to restart the server from the web based administration console. Enhydra was tomcat based I believe.. So how did they achieve this (I don't know.. It's possible they weren't fully stopping the JVM and starting a new process) They also allowed you to stop from the HTML console which, obviously, made restarting it again a little tricky from the admin console.. I guess they thought it was easier than typing multiserver -stop from a command line?? We did it using shell scripts on our servers.. The tomcat process is protected by a restart script anyway (we found that some native libraries can completely screw up the JVM, causing memory errors and exit - its rare but we just need the container to restart in these situations). So we have a stop script that attempts to stop tomcat the nice way, a kill script and restart and start scripts... These are just called from an admin console that runs outside of the tomcat (PHP). Regards, Matthew -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 14 May 2004 14:30 To: Tomcat Users List Subject: RE: Tomcat reboot runtime NB As a relative novice to Tomcat it astonishs me that the Tomcat Manager does not provide the functionnality to reboot the server at runtime (taking in account that it services become unavailable during reboot time). Show me a server that does. Nearly all let you reload apps, some let you update JNDI entries etc, a few let you add new connectors etc., but a complete reboot meaning a new JVM process is different. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Apache Tomcat 5.0.24 Stable released
Shapira, Yoav wrote: Hi, It IS included in the release (both source and binary), under the tomcat-docs directory. If you didn't know where it was, a find command looking for *change* or *log* would show you. It's also on the download pages for the tomcat releases (both source and binaries, it's the same page, e.g. http://apache.mirrors.hoobly.com/jakarta/tomcat-5/v5.0.24/). So if you can't find it by looking on our web site, can't find it from these top-level links on the download pages, and can't find it by looking through the docs, I'm sorry, I have little emotion but pity. http://jakarta.apache.org/site/binindex.cgi http://jakarta.apache.org/site/sourceindex.cgi Hrm, not there... I apologize for being unfamiliar with your documentation, it never occured to me to look under webapps for all the project documentation. Consider me informed. However, don't pity me asshole. Just because you're a developer (whose work I appreciate and admire), doesn't mean needed to respond like you did. Simple question, simple answer. Regardless of this unfortunate exchange, I do appreciate the time you and others spend on the project. Zachary Hartley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat security
Hi, The declarative security options offered by the Servlet Specification, those you refer to as the integrated security options, have no understanding of the client side, i.e. the browser. There is no concept of frame or browser, so you can't do what you're asking for with these declarative security directives. As to finding the mailing list: I'm troubled that you found that so difficult. Links to the mailing list are on the top apache page (www.apache.org), top jakarta page (jakarta.apache.org), top tomcat page (jakarta.apache.org/tomcat), both the binary and source apache download pages (http://jakarta.apache.org/site/binindex.cgi, and http://jakarta.apache.org/site/sourceindex.cgi), the jakarta contact us page (http://jakarta.apache.org/site/contact.html), the home page of a new tomcat installation (webapps/ROOT/index.jsp), and many other locations. Where did you look or what made it difficult to find? Yoav Shapira Millennium Research Informatics -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 9:12 AM To: [EMAIL PROTECTED] Subject: Tomcat security Dear List, I am using tomcats integrated security options, available inside the web.xml (see below). When ever the session times out and the user makes a request for a html/or jsp page within this protected context, appears the login.jsp page. My problem is that my app uses frames, and when the user makes a request from a sub-frame the login page shows in this sub-frame window. Is there a simple way to configure in the web.xml, that the login.jsp page always is shown in the parent frame of the browser or document, so causing the whole window to be reloaded. I guess there isnt and I must do some jscript, or fiddle around with html. I would be extremely impressed if there would be a web.xml solution. regards BB p.s. It was very hard to find as Newbie, the email address to post this mail to!! +---+ | GIStec GmbH - Ihr Partner für GIS - Technologie | | | | Ben Bookey| | [EMAIL PROTECTED] Fraunhoferstraße 5 | | Tel 0 61 51 / 155 - 254 D-64283 Darmstadt | | Fax 0 61 51 / 155 - 259 http://www.gistec-online.de | | | | http://www.ingeoic.de http://www.geo-watermarking.de | +---+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to include an external config file in tha main file server.xml?
On Mon, May 17, 2004 at 01:13:02PM +0200, wsedio wrote: : But it looks like you have to put in the full file path, otherwise : Tomcat will throw a file not found error. : : Is it possible to use relative path in some way? Not to my knowledge. (Not *reliably*, at least.) Search the archives for discussions on Tomcat's/a webapp's current directory and you'll see what I mean. What part of the server.xml keeps changing? Is it the vhost defs themselves, or the contents of the Context elements? In the latter case you can use per-webapp context.xml. That stays with the webapp itself, so there's no need to change the main server.xml each time an app migrates. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Apache Tomcat 5.0.24 Stable released
Hi, pages for the tomcat releases (both source and binaries, it's the same page, e.g. http://apache.mirrors.hoobly.com/jakarta/tomcat-5/v5.0.24/). So if you can't find it by looking on our web site, can't find it from these top-level links on the download pages, and can't find it by looking through the docs, I'm sorry, I have little emotion but pity. http://jakarta.apache.org/site/binindex.cgi http://jakarta.apache.org/site/sourceindex.cgi Hrm, not there... I said the download pages for tomcat releases. Do you see any changelogs or other docs for any specific products on the URLs you posted above? No, because they're for all the Apache products. If you click on the tomcat links, you get a URL such as the one I quoted above, which has the changelog right along with the release notes. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I need help: Configure log4j in Tomcat/Windows 2000
Hi, Log4j is a logging toolkit from Apache. Its home page and docs are at http://logging.apache.org/log4j. It is used by many applications and libraries directly, and by many applications and libraries via commons-logging (http://jakarta.apache.org/commons/logging). If commons-logging finds log4j on the classpath, log4j is used for logging. The message you got means something in your code (or more likely, the Axis or Slide code) made a log4j logging statement before log4j was configured. This is not a fatal error. It means you're losing logging statements until you configure log4j. A good way to configure log4j is to create a properties files, log4j.properties, and put it in the WEB-INF/classes directory of your web application. The free short log4j manual (http://logging.apache.org/log4j/docs/manual.html) contains examples of configuration files. There are many additional examples available via a simple Google search: http://www.google.com/search?sourceid=navclientq=log4j%2Eproperties+example. There are many other ways to configure a use log4j, and you might eventually want to change this, but start with a simple file in the WEB-INF/classes directory and log4j will configure itself automatically. Yoav Shapira Millennium Research Informatics -Original Message- From: Dotterweich Juergen [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 5:54 AM To: '[EMAIL PROTECTED]' Subject: I need help: Configure log4j in Tomcat/Windows 2000 Hello, I need to now, how to configure the log4j from Tomcat in Windows 2000. What is log4j? I am new with Tomcat. I have installed jakarta-slide-2.0-tomcat-4.1.30 with Axis1_1 under the operating system Windows 2000 and it runs. But I get a WARNING if I start and stop the Tomcat. The WARNING is: LOG4j:No appender could be found for logger org.apache.common.digester.Digester.sax. Please initialize the log4j system properly. What should I do that this WARNING never appears and HOW to do this action. Thanks in advance. Kind Regards Jürgen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Tomcat security
Hi Yoav Shapira, Thanks for the reply. I know my question is client based, but I thought the web.xml might have an option to specify target=_self or something similar, for the login.jsp (that should be theoretically poss.?) woops. as regards mailing list, I have v. little xp with lists (at all) , and am not honestly sure how they work. I joined the list [EMAIL PROTECTED] because I thought then I would get an email to which I could post to (this email was not in this list either as far as I could see). In addition on this Tomcat website about mailing lists http://jakarta.apache.org/site/mail2.html#Tomcat I could not find reference to [EMAIL PROTECTED] Do I need to be registered (somehow- either digest or high traffic) to post questions to this list? regards Ben -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Montag, 17. Mai 2004 15:25 An: Tomcat Users List; [EMAIL PROTECTED] Betreff: RE: Tomcat security Hi, The declarative security options offered by the Servlet Specification, those you refer to as the integrated security options, have no understanding of the client side, i.e. the browser. There is no concept of frame or browser, so you can't do what you're asking for with these declarative security directives. As to finding the mailing list: I'm troubled that you found that so difficult. Links to the mailing list are on the top apache page (www.apache.org), top jakarta page (jakarta.apache.org), top tomcat page (jakarta.apache.org/tomcat), both the binary and source apache download pages (http://jakarta.apache.org/site/binindex.cgi, and http://jakarta.apache.org/site/sourceindex.cgi), the jakarta contact us page (http://jakarta.apache.org/site/contact.html), the home page of a new tomcat installation (webapps/ROOT/index.jsp), and many other locations. Where did you look or what made it difficult to find? Yoav Shapira Millennium Research Informatics -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 9:12 AM To: [EMAIL PROTECTED] Subject: Tomcat security Dear List, I am using tomcats integrated security options, available inside the web.xml (see below). When ever the session times out and the user makes a request for a html/or jsp page within this protected context, appears the login.jsp page. My problem is that my app uses frames, and when the user makes a request from a sub-frame the login page shows in this sub-frame window. Is there a simple way to configure in the web.xml, that the login.jsp page always is shown in the parent frame of the browser or document, so causing the whole window to be reloaded. I guess there isnt and I must do some jscript, or fiddle around with html. I would be extremely impressed if there would be a web.xml solution. regards BB p.s. It was very hard to find as Newbie, the email address to post this mail to!! +---+ | GIStec GmbH - Ihr Partner für GIS - Technologie | | | | Ben Bookey| | [EMAIL PROTECTED] Fraunhoferstraße 5 | | Tel 0 61 51 / 155 - 254 D-64283 Darmstadt | | Fax 0 61 51 / 155 - 259 http://www.gistec-online.de | | | | http://www.ingeoic.de http://www.geo-watermarking.de | +---+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jk2 problems
I'm getting error in my apache tomcat configuration and I don't know why. I'm running Tomcat 4.1.18 with apache 2.0.49 under linux. And I can't make apache running with mod jk stuff. Here is an extract of my apache httpd.conf file LoadModule jk2_module modules/mod_jk2.so IfModule mod_jk2.c JkWorkersFile /opt/jboss/prod-intraneta/intraneta/prod/conf/workers.properties JkLogFile /var/log/apache/inet/jk.log JkLogLevel info JkMount /jmx-console/* ajp13 /IfModule when I start apache, I get the error message below Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration can someone tells me what I'm doing wrong Thankx in advance ___ NATEXIS ASSET MANAGEMENT Meissa SAKHO 01 58 19 45 71. . . . . . . . . . . . (84571) [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
Catalina.out
Dear List, I have specified for my app in the web.xml context a logging file. I thought this would therefore result in ALL System.out.println(); messages to be printed to my app_.txt file. Instead, my app continues to log all output to the catalina.out file. Is there anyway of printing content to this app_.txt file from inside my JSP and servlets ? as I would prefer to have ALL of my app related information in one logfile, to make it easier for the customer to maintain. Would appreciate any support. regards BB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Apache Tomcat 5.0.24 Stable released
Shapira, Yoav wrote: I said the download pages for tomcat releases. Do you see any changelogs or other docs for any specific products on the URLs you posted above? No, because they're for all the Apache products. If you click on the tomcat links, you get a URL such as the one I quoted above, which has the changelog right along with the release notes. I see, thank you for pointing out the distinction to me. Zachary Hartley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apps terminating abruptly
Hi People, Yoav - I apologize for the previous toping of is .24 stable, I realise that by the time it's realeased you guys have done everything possible to assert a working product. The problem I have is that I use axis for a simple web service, which does a UDDI lookup and then submit's a job into a Control-M server via the ^M java API. Now, since upgrading from 5.0.18 to 5.0.24, the webapp gets to a certain point and then just does nothing. The weirdest is, that when I run Tomcat as a service, it hangs at a different place than when I run it from startup.bat. (Oh, it's on WinXP). On my old dev server that still runs 5.0.18 the app executes just fine. The strange thing is that I am not getting any exceptions at all - well the C# app that calls the axis service gets a TargetInvocationException - but this is such a generic catch-all in Java which doesn't help debugging. BTW, in early 4.x.x days, the exception was sent from Java back to C# - this has all been replaced by the TargetInvokationException since 5.x.x? But maybe I just did something stupid again... Any ideas? Should I stick with 5.0.18 for the time being, or can I fix this somehow? Thanks, Andi ** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. **
RE : Catalina.out
If you use Tomcat on Windows you'll find the path to the log file in the Registry, under the key : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters\System.out File (and also System.err File key for System.err.println() method) Hope it helps, Alain -Message d'origine- De : Ben Bookey [mailto:[EMAIL PROTECTED] Envoyé : lundi, 17. mai 2004 15:50 À : Tomcat User List Objet : Catalina.out Dear List, I have specified for my app in the web.xml context a logging file. I thought this would therefore result in ALL System.out.println(); messages to be printed to my app_.txt file. Instead, my app continues to log all output to the catalina.out file. Is there anyway of printing content to this app_.txt file from inside my JSP and servlets ? as I would prefer to have ALL of my app related information in one logfile, to make it easier for the customer to maintain. Would appreciate any support. regards BB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** 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. Eri Bancaire SA ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Catalina.out
Hi, We just had a thread about this: add swallowOutput=true to your context definition. Read the definition of swallowOutput in the Context element's configuration reference page if you'd like. Yoav Shapira Millennium Research Informatics -Original Message- From: Ben Bookey [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 9:50 AM To: Tomcat User List Subject: Catalina.out Dear List, I have specified for my app in the web.xml context a logging file. I thought this would therefore result in ALL System.out.println(); messages to be printed to my app_.txt file. Instead, my app continues to log all output to the catalina.out file. Is there anyway of printing content to this app_.txt file from inside my JSP and servlets ? as I would prefer to have ALL of my app related information in one logfile, to make it easier for the customer to maintain. Would appreciate any support. regards BB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Apache Tomcat 5.0.24 Stable released
Hi, I'm glad to help. I think we were both too edgy / attitude-y, but let's forget about that. What would have been the ideal location(s) for you to make finding the changelog trivial? We're always flexible towards accommodating user requests to make documentation easier to find/use. Yoav Shapira Millennium Research Informatics -Original Message- From: Zachary Hartley [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 9:53 AM To: Tomcat Users List Subject: Re: [ANN] Apache Tomcat 5.0.24 Stable released Shapira, Yoav wrote: I said the download pages for tomcat releases. Do you see any changelogs or other docs for any specific products on the URLs you posted above? No, because they're for all the Apache products. If you click on the tomcat links, you get a URL such as the one I quoted above, which has the changelog right along with the release notes. I see, thank you for pointing out the distinction to me. Zachary Hartley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Changing the 'ROOT' webapp (newbie question)
I did this with my site, and had the empty string pointing to my /portal app. Everything worked okay until I put in container-managed security, and then when restricted pages were redirected to the login jsp, Tomcat seemed to lose the context completely, so none of my links worked (using request.getContext() or c:url .../ on the login page except the submit button. I stuck in a mini-app under the root to redirect to /portal as a work-around, but presumably this isn't expected behaviour. Digby PS. Yoav, I think I speak for many users on this mailing list who appreciate your help and don't think you're a smartass, asshole or dick! Keep up the good work. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 17 May 2004 14:04 To: Tomcat Users List Subject: RE: Changing the 'ROOT' webapp (newbie question) Hi, You need to define a Context element for your webapp whose path= (the empty string, not /, not null). And you need to remove or rename the ROOT webapp. The Context element's configuration reference page (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html) contains more details. Yoav Shapira Millennium Research Informatics -Original Message- From: Barnet Wagman [mailto:[EMAIL PROTECTED] Sent: Saturday, May 15, 2004 12:55 PM To: [EMAIL PROTECTED] Subject: Changing the 'ROOT' webapp (newbie question) By default, when Tomcat gets a request for something like http://www.some_domain_name.com/ or http://www.some_domain_name.com it serves the file webapps/ROOT/index.jsp What is the preferred way of getting it return the index file of a different wep app? I haven't found anything in the conf xml files, the documentation, or the archives about this (which doesn't mean it isn't there, just that I didn't see it). Of course I could just change the contents of webapps/ROOT, but I suspect there's a better way. Thanks, bw - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - * Confidentiality Note: The information contained in this message, and any attachments, may contain confidential and/or privileged material. It is intended solely for the person(s) or entity to which it is addressed. Any review, retransmission, dissemination, or taking of any action in reliance upon this information by persons or entities other than the intended recipient(s) is prohibited. If you received this in error, please contact the sender and delete the material from any computer. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat standalone virtual hosting
I have a localhost host and test host. Both contain two webapps: /pkservermanager and /pkserver. The test host has a seperate connector listening to the port 3030. The server.xml content of tomcat is given below. The problem is when I open the browser and type http://localhost:3030/pkservermanager/index.htm the /pkservermanager/index.html page of localhost (in its docbase) is loaded and not the one of test. Does anybody has an idea why this is occurs, and if possible howto fix it? I tried to change everything in the server.xml of tomcat but nothing seems to work. Rudolf Feyerkleist Directory structure of my tomcat installation under tomcat directory: /server/webapps/pkserver/ /webapps/pkservermanager/ /** the index.html under this directory isalways loaded **/ /webapps_test/pkserver/ /webapps_test/pkservermangager/ /** the index.html under this directory is never loaded **/ Content of server.xml ?xml version=1.0 encoding=UTF-8? !-- 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 !-- Comment these entries out to disable JMX MBeans support -- !-- You may also configure custom components (e.g. Valves/Realms) by including your own mbean-descriptor file(s), and setting the descriptors attribute to point to a ';' seperated list of paths (in the ClassLoader sense) of files to add to the default list. e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- 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 Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true/ Connector className=org.apache.coyote.tomcat4.CoyoteConnector address=test port=3030 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true/ !-- Note : To disable connection timeouts, set connectionTimeout value
Re: Odd deployment problem
I checked and the unPackWars attribute is set to True. In Context I have set the docBase attribute to the path of the war file. Is that ok? If I change it to StrutsTest, I get a No suitable driver found error. Original Message Follows From: Paul Mitchell [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Odd deployment problem Date: Fri, 14 May 2004 15:17:26 -0700 (PDT) MIME-Version: 1.0 Received: from mail.apache.org ([209.237.227.199]) by mc7-f13.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Fri, 14 May 2004 15:18:24 -0700 Received: (qmail 9930 invoked by uid 500); 14 May 2004 22:17:59 - Received: (qmail 9848 invoked by uid 98); 14 May 2004 22:17:59 - Received: from [EMAIL PROTECTED] by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(216.136.232.85):. Processed in 0.040044 secs); 14 May 2004 22:17:59 - Received: from unknown (HELO web21410.mail.yahoo.com) (216.136.232.85) by hermes.apache.org with SMTP; 14 May 2004 22:17:58 - Received: from [208.186.200.1] by web21410.mail.yahoo.com via HTTP; Fri, 14 May 2004 15:17:26 PDT X-Message-Info: JGTYoYF78jH5SV9jfD0Gu7rDT7POsWYy Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:[EMAIL PROTECTED] List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list [EMAIL PROTECTED] X-Qmail-Scanner-Mail-From: [EMAIL PROTECTED] via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(216.136.232.85):. Processed in 0.040044 secs) Message-ID: [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED] X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 14 May 2004 22:18:25.0777 (UTC) FILETIME=[60459E10:01C43A01] Check your Host unpackWars attribute- it could be set to false. Try setting it to true. --- Poorav Sheth [EMAIL PROTECTED] wrote: I am using Tomcat 4.1.30 with a SQL Server 7.0 database. Since I needed a DataSource, I modified the Tomcat server.xml as follows: Context path=/StrutsTest docBase=StrutsTest.war debug=1 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_StrutsTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/FieldProjDB auth=Container type=javax.sql.DataSource / ResourceParams name=jdbc/FieldProjDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameuser/name valuelab/value /parameter parameter namepassword/name valuelab/value /parameter parameter namedriverClassName/name valuenet.sourceforge.jtds.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:jtds:sqlserver://192.xxx.xx.xx:1433/Development;User=lab;Password=lab/value /parameter /ResourceParams /context With this configuration, I can get my data source to work! But the only thing is that the war file is not unpacked under webapps folder but directly under %TOMCAT_HOME%/work/Standalone/localhost. I know that all deployed apps get listed here subsequently, but why does it not put it in webapps folder as well? This is causing the paths in my various properties files to fail. _ Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! http://join.msn.click-url.com/go/onm00200362ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Watch LIVE baseball games on your computer with MLB.TV, included with MSN Premium! http://join.msn.click-url.com/go/onm00200439ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mail server / relay
hi list, i am going to implement a server-system that will be used to distribute xml messages via mail (and perhaps ftp also). in short: the system receives an xml document via mail, validates it, saves the data in a db and forwards a different xml to various recipents. i wonder whether anyone knows of some modules / components that i could use. any suggestions on whether to use atachments or have the xml in the body would also be very welcome. same applies to the tomcat mail sessions, can they be used for something like this? thanks sorry for any stupid question asked jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
heap size profiling
I notice an auto increase (no webapp running) of memory heap with T4.1.29. Any idea ? Regards, Arnaud Message d'origine De: Tim Funk [mailto:[EMAIL PROTECTED] Date: lun. 17/05/2004 14:13 : Tomcat Users List Cc: Objet: Re: public_html directory In that case - you'll need a hard cutover where during the conversion you'll need to move the directories around into the servlet spec compliant webapp format. Weblogic 5.1 does support 2.2 webapps (IIRC). So that might be the way to start. -Tim Denny Lfgren wrote: This is intended for Windows. Actually, I want to get rid of Weblogic and only use Tomcat in some way. There will be only one system. //Denny Tim Funk [EMAIL PROTECTED] 2004-05-17 13:57 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: public_html directory If using unix, I would try to use symlinks if you need to run the 2 systems in parallel using the same code base. (Kludgy - yes) -Tim Denny Lfgren wrote: Hi! Ive been forced to use Weblogic 5.1 for some time now. I have a public_html directory with sub-directories containing the jsps. At the same level as the public_html catalog there is also the servletclasses directory with the jars and compiled java-classes. Ive been trying to shift things around in order to make the application a j2ee one. Without luck. Is there a way to have (almost) the same structure in tomcat (version 5024) as in weblogic 5.1? Any help is appreciated! //Denny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Changing the 'ROOT' webapp (newbie question)
Hi, PS. Yoav, I think I speak for many users on this mailing list who appreciate your help and don't think you're a smartass, asshole or dick! Keep up the good work. Thank you ;) I'm glad to help, and I don't get offended easily, so no worries ;) Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Changing the 'ROOT' webapp (newbie question)
On Mon, 2004-05-17 at 16:11, Shapira, Yoav wrote: Hi, PS. Yoav, I think I speak for many users on this mailing list who appreciate your help and don't think you're a smartass, asshole or dick! Keep up the good work. Yoav, I think you're a smartass, but I mean that in the nicest and most complimentary way possible ;-) You're a constant source of help and relief to tomcat users on this list. I am always interested to read your posts and take a great interest in what you have to say! Thanks! Thank you ;) I'm glad to help, and I don't get offended easily, so no worries ;) Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may no - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Adam Buglass, The Golden Freeway, Department of Child Health, University of Newcastle-upon-Tyne. Royal Victoria Infirmary. (0191) 2023062 Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. ~Benjamin Franklin, 1759 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mail server / relay
Hi, You will find the JavaMail FAQ useful: http://java.sun.com/products/javamail/FAQ.html#sendmpa. Yes, you can use tomcat's mail sessions for this, as they are JavaMail sessions. A module for receiving a message by mail? I don't know. I imagine that's not too hard to write, you read an XML string, parse it however you want (SAX, DOM, JDOM, Digester, and on and on and on goes the list), and store the right properties into a DB. As for a notification system: there are a ton out there, but you still may with to write your own if any appear too heavyweight/complex. A SourceForge search for java notification (check the require all words box) brings up several promising projects. IIRC, OSWorkflow (http://www.opensymphony.com/osworkflow/) has email notification, and that's a good product I've used in the past (the OpenSymphony folks are cool in general ;)) Yoav Shapira Millennium Research Informatics -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 10:42 AM To: 'Tomcat Users List' Subject: mail server / relay hi list, i am going to implement a server-system that will be used to distribute xml messages via mail (and perhaps ftp also). in short: the system receives an xml document via mail, validates it, saves the data in a db and forwards a different xml to various recipents. i wonder whether anyone knows of some modules / components that i could use. any suggestions on whether to use atachments or have the xml in the body would also be very welcome. same applies to the tomcat mail sessions, can they be used for something like this? thanks sorry for any stupid question asked jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: heap size profiling
Hi, I notice an auto increase (no webapp running) of memory heap with T4.1.29. Any idea ? It's almost impossible to have absolutely nothing running. If you have tomcat running, that's something (e.g. background processing threads that watch files to detect changes). However, you still shouldn't see huge jumps in memory if no users are hitting the server. What are your observation methods and results precisely? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mail server / relay
-Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] ... A module for receiving a message by mail? I don't know. I imagine that's not too hard to write, you read an XML string, parse it however you want (SAX, DOM, JDOM, Digester, and on and on and on goes the list), and store the right properties into a DB. You could use James with a 'Mailet' to receive the E-mail, parse it, then save its information in a DB. Although this may be a bit of a heavyweight solution for you. http://james.apache.org Adam. _ This email and any files attached is intended for the addressee only and may contain information that is confidential and/or legally privileged. Unauthorised use is strictly prohibited and may be unlawful. If you are not the addressee, you should not read, copy, disclose or otherwise use this message, including any attachment, except for the purpose of delivery to the addressee. We make every effort to keep our network free from viruses. However, you do need to verify this e-mail and any attachments to it to be virus free as we can take no responsibility for any computer virus which might be transferred by way of this e-mail. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mail server / relay
Hi Yoav, thanks for the suggestions / links! I have a bit of reading to do now ;) Cheers, Jan Hi, You will find the JavaMail FAQ useful: http://java.sun.com/products/javamail/FAQ.html#sendmpa. Yes, you can use tomcat's mail sessions for this, as they are JavaMail sessions. A module for receiving a message by mail? I don't know. I imagine that's not too hard to write, you read an XML string, parse it however you want (SAX, DOM, JDOM, Digester, and on and on and on goes the list), and store the right properties into a DB. As for a notification system: there are a ton out there, but you still may with to write your own if any appear too heavyweight/complex. A SourceForge search for java notification (check the require all words box) brings up several promising projects. IIRC, OSWorkflow (http://www.opensymphony.com/osworkflow/) has email notification, and that's a good product I've used in the past (the OpenSymphony folks are cool in general ;)) Yoav Shapira Millennium Research Informatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK2 uri context question
I have a site where users enter the members area through a URL like this: http://www.domain.com/members/minutes.jsp My workers2.properties file [uri:/minutes/*] group:ajp13:localhost:8009 How do you remap the members directory so that jk2 know that it point to a tomcat app called minutes in the root context? Thanks, Jack - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apps terminating abruptly
Hi, I don't know ;) So 5.0.18 runs it fine, 5.0.24 hangs (does nothing). Can you tell (using a thread dump or a profiler) what it's doing when it does nothing? Yoav Shapira Millennium Research Informatics -Original Message- From: Andi Reinbrech [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 10:01 AM To: Tomcat-User ([EMAIL PROTECTED]) Subject: Apps terminating abruptly Hi People, Yoav - I apologize for the previous toping of is .24 stable, I realise that by the time it's realeased you guys have done everything possible to assert a working product. The problem I have is that I use axis for a simple web service, which does a UDDI lookup and then submit's a job into a Control-M server via the ^M java API. Now, since upgrading from 5.0.18 to 5.0.24, the webapp gets to a certain point and then just does nothing. The weirdest is, that when I run Tomcat as a service, it hangs at a different place than when I run it from startup.bat. (Oh, it's on WinXP). On my old dev server that still runs 5.0.18 the app executes just fine. The strange thing is that I am not getting any exceptions at all - well the C# app that calls the axis service gets a TargetInvocationException - but this is such a generic catch-all in Java which doesn't help debugging. BTW, in early 4.x.x days, the exception was sent from Java back to C# - this has all been replaced by the TargetInvokationException since 5.x.x? But maybe I just did something stupid again... Any ideas? Should I stick with 5.0.18 for the time being, or can I fix this somehow? Thanks, Andi *** *** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. *** *** This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : RE : 2 Tomcat instances on the same server ?
Thanks a lot, with some minor changes this works great, thanks ! Is there an article somewhere with some thorough explanation about this ? Besides the RUNNING.txt file I didn't find anything. Thanks again, Alain -Message d'origine- De : Asif Chowdhary [mailto:[EMAIL PROTECTED] Envoyé : jeudi, 13. mai 2004 17:17 À : Tomcat Users List Objet : RE: RE : 2 Tomcat instances on the same server ? This should ease your pain: Change JAVA Home base on your JRE ::Starting Tomcat as an NT Service echo off set PATH=%PATH%;%CATALINA_HOME% set SERVICENAME=mysecondtomcat set CATALINA_BASE=C:\Program Files\mydirectory set JAVACLASSPATH=%CLASSPATH% set JAVACLASSPATH=%JAVACLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar set JAVACLASSPATH=%JAVACLASSPATH%;%CATALINA_HOME%\common\lib\servlet.jar set JAVACLASSPATH=%JAVACLASSPATH%;%JAVA_HOME%\lib\rt.jar %CATALINA_HOME%\bin\tomcat.exe -install %SERVICENAME% %JAVA_HOME%\jre\bin\classic\jvm.dll -Djava.class.path=%JAVACLASSPATH% -Dcatalina.home=%CATALINA_HOME% -Dcatalina.base=%CATALINA_BASE% -Xrs -Xmx200m -Xms100m -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_BASE%\logs\stdout.log -err %CATALINA_BASE%\logs\stderr.log -Original Message- From: Hertenstein Alain [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 11:01 AM To: Tomcat Users List Subject: RE : 2 Tomcat instances on the same server ? Thanks Matt and Ralph, Is there a documentation somewhere as to how to setup 2 (or more) Tomcat instances ? I've seen there were Workers on Tomcat 3.x, but cannot find more documentation for Tomcat 4.x (the Running.txt file doesn't explain much, I've created that CATALINA_BASE environment variable but cannot see any difference). Also my 1st tomcat instance is already running as an NT service, and I'd like to keep it that way. Another question : would these Tomcat instances be completely independent one from the other(s) ? I mean, could I completely restart one instance without affecting the others ? Thanks again, Alain -Message d'origine- De : Ralph Einfeldt [mailto:[EMAIL PROTECTED] Envoyé : jeudi, 13. mai 2004 14:55 À : Tomcat Users List Objet : RE: 2 Tomcat instances on the same server ? I would go for 2. As I'm not using IIS, I'm not shure if there are specific hurdles in this environment. Tomcat stand alone and tomcat behind apache are quite easy to setup with multiple instances. If all tomcate have the same versions, you just have to install tomcat once and setup two instances. -Original Message- From: Hertenstein Alain [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 2:47 PM To: [EMAIL PROTECTED] Subject: 2 Tomcat instances on the same server ? 2- install a 2nd Tomcat instance on the server and have that 2nd web apps running on that 2nd instance, 3- have a 2nd server installed with its own configuration. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** 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. Eri Bancaire SA ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat stand alone versus IIS plug in...another newbie question!
Ok is there a difference or is the same program? I cannot find a specific tomcat download that says IIS plug in I think (which is dangerous sometimes) that the standalone IS the plug in and that people intermingle the terms. Or is it? When operated within a webserver (IIS/Apache/Etc) there is a separate plug in that is different from the stand alone tomcat? TIA Coolguys! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: heap size profiling
Only the manager app running. I use OptimizeIt and run the Memory Leak Detector. the diff between 2 heap states (1 minute delta) look like this : see linked image I suppose that there is a thread that analyse web.xml but I wonder why (there is no ap running !) and how can I freeze it ? Best regards, Arnaud Message d'origine De: Shapira, Yoav [mailto:[EMAIL PROTECTED] Date: lun. 17/05/2004 17:19 : Tomcat Users List Cc: Objet: RE: heap size profiling Hi, I notice an auto increase (no webapp running) of memory heap with T4.1.29. Any idea ? It's almost impossible to have absolutely nothing running. If you have tomcat running, that's something (e.g. background processing threads that watch files to detect changes). However, you still shouldn't see huge jumps in memory if no users are hitting the server. What are your observation methods and results precisely? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: heap size profiling oups ! forgot logs
Optimizeit logs ! Message d'origine De: Shapira, Yoav [mailto:[EMAIL PROTECTED] Date: lun. 17/05/2004 17:19 : Tomcat Users List Cc: Objet: RE: heap size profiling Hi, I notice an auto increase (no webapp running) of memory heap with T4.1.29. Any idea ? It's almost impossible to have absolutely nothing running. If you have tomcat running, that's something (e.g. background processing threads that watch files to detect changes). However, you still shouldn't see huge jumps in memory if no users are hitting the server. What are your observation methods and results precisely? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
urgent: does jk2 work with oracle application server
... and other application servers from ibm etc. or does it only work with tomcat and ergo jboss? thx for reply - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Relocation error
Thanks for the info Could you actually provide the syntax that I should use. Not sure if it should be LoadModule mod_dir or what? Thanks Terry -Original Message- From: Graham Bleach [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 5:24 PM To: Tomcat Users List Subject: Re: Relocation error On Fri, May 14, 2004 at 12:21:27PM -0400, Wehner, Terry wrote: Hello, I am trying to load the mod_jk.conf file that is generated by my Tomcat 4.1.29 installation on Solaris 8 When starting Apache 1.3.27 I get the following error. Cannot load /opt/applocal/imt/webi/modules/mod_jk.so into server: ld.so.1: /opt/applocal/imt/webi/bin/httpd: fatal: relocation error: file /opt/applocal/imt/webi/modules/mod_jk.so: symbol dir_module: referenced symbol not found ./apachectl start: httpd could not be started Any suggestions on why I am getting this would be great. Perhaps it is because you don't have mod_dir loaded? If you have a line to load mod_dir, move it above the line that loads mod_jk. If you don't have such a line, add one. If you've compiled apache yourself you will also need to make sure you actually included mod_dir. G -- Premature optimization is the root of all evil. -- Tony Hoare - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK2 equivalent of JkMount
Is there a JK2 equivalent of JkMount? If there is what is the JK2 syntax for: JkMount /members/minutes/*.jsp worker1 Are there any docs or examples for this? Jack - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Apache Tomcat 5.0.24 Stable released
May I contribute? I'd love to see the Tomcat docs download links to be re-pointed to an actual Tomcat download directory, rather than the generic 'all' page for jakarta downloads. ie: http://jakarta.apache.org/site/sourceindex.cgi The links for downloads are direct to the zip files. The only way I can get to see the changelog, is to click 'tomcat 3' (which thankfully is still linked). This gets me to: http://apache.mirror.secondchapter.info/jakarta/tomcat-3/v3.3.2/src/ Then I click 'Parent Directory' 3 times Then I can click Tomcat 4 or tomcat 5, as I want. So, 1) the Tomcat docs download links should point to the actual directories from which I can download things, not just the generic jakarta page. 2) on the generic jakarta page, please link the tomcat 4 and tomcat 5 to those directories as well. I have also been frustrated at finding that changelog thingy. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 8:59 AM To: Tomcat Users List Subject: RE: [ANN] Apache Tomcat 5.0.24 Stable released Hi, I'm glad to help. I think we were both too edgy / attitude-y, but let's forget about that. What would have been the ideal location(s) for you to make finding the changelog trivial? We're always flexible towards accommodating user requests to make documentation easier to find/use. Yoav Shapira Millennium Research Informatics -Original Message- From: Zachary Hartley [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 9:53 AM To: Tomcat Users List Subject: Re: [ANN] Apache Tomcat 5.0.24 Stable released Shapira, Yoav wrote: I said the download pages for tomcat releases. Do you see any changelogs or other docs for any specific products on the URLs you posted above? No, because they're for all the Apache products. If you click on the tomcat links, you get a URL such as the one I quoted above, which has the changelog right along with the release notes. I see, thank you for pointing out the distinction to me. Zachary Hartley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
InvalidJarIndexException
Hello, I just installed Tomcat 5.0.24 on a Sparc Solaris 8 system with all the defaults in the config files with Java 1.4.2 just installed from Sun and when I run bin/startup.sh I get the following exceptions in catalina.out: [ERROR] Digester - -Begin event threw error java.lang.ExceptionInInitializerErrorjava.lang.ExceptionInInitializerError : sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at org.apache.catalina.loader.StandardClassLoader.findResource(StandardClassLoa der.java:527) at org.apache.catalina.loader.StandardClassLoader.getResource(StandardClassLoad er.java:603) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:895) at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:1602) at org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:107) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(GlobalR esourcesLifecycleListener.java:65) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253 ) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java :65) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartEl ement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:489) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:421) java.lang.reflect.InvocationTargetException: java.lang.ExceptionInInitializerError: sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at org.apache.catalina.loader.StandardClassLoader.findResource(StandardClassLoa der.java:527) at org.apache.catalina.loader.StandardClassLoader.getResource(StandardClassLoad er.java:603) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:895) at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:1602) at org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:107) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(GlobalR esourcesLifecycleListener.java:65) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253 ) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java :65) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at
RE: InvalidJarIndexException
Hi, If you installed tomcat from a .tar.gz distribution, make sure to use GNU tar to unpack it. The normal Solaris tar doesn't handle the long paths correctly. Yoav Shapira Millennium Research Informatics -Original Message- From: Kevin Schroeder [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 12:38 PM To: Tomcat Users List Subject: InvalidJarIndexException Hello, I just installed Tomcat 5.0.24 on a Sparc Solaris 8 system with all the defaults in the config files with Java 1.4.2 just installed from Sun and when I run bin/startup.sh I get the following exceptions in catalina.out: [ERROR] Digester - -Begin event threw error java.lang.ExceptionInInitializerErrorjava.lang.ExceptionInInitializer Erro r : sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at org.apache.catalina.loader.StandardClassLoader.findResource(StandardCla ssLo a der.java:527) at org.apache.catalina.loader.StandardClassLoader.getResource(StandardClas sLoa d er.java:603) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:895) at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:16 02) at org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:107) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(Gl obal R esourcesLifecycleListener.java:65) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.jav a:25 3 ) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester .jav a :65) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknow n Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartEl ement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi spat c her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn own Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:489) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:421) java.lang.reflect.InvocationTargetException: java.lang.ExceptionInInitializerError: sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at org.apache.catalina.loader.StandardClassLoader.findResource(StandardCla ssLo a der.java:527) at org.apache.catalina.loader.StandardClassLoader.getResource(StandardClas sLoa d er.java:603) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:895) at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:16 02) at org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:107) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(Gl obal R esourcesLifecycleListener.java:65) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.jav a:25 3 ) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester .jav a :65) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at
Re: InvalidJarIndexException
Yep, did that. I noticed, however, that my Solaris Java install wasn't a full version of 1.4.2. It had a lot of 1.3 in there. I'm going to see if I can get all of the 1.4 classes set up. If that works I'll post the fix to the list. Kevin - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 17, 2004 11:43 AM Subject: RE: InvalidJarIndexException Hi, If you installed tomcat from a .tar.gz distribution, make sure to use GNU tar to unpack it. The normal Solaris tar doesn't handle the long paths correctly. Yoav Shapira Millennium Research Informatics -Original Message- From: Kevin Schroeder [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 12:38 PM To: Tomcat Users List Subject: InvalidJarIndexException Hello, I just installed Tomcat 5.0.24 on a Sparc Solaris 8 system with all the defaults in the config files with Java 1.4.2 just installed from Sun and when I run bin/startup.sh I get the following exceptions in catalina.out: [ERROR] Digester - -Begin event threw error java.lang.ExceptionInInitializerErrorjava.lang.ExceptionInInitializer Erro r : sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at org.apache.catalina.loader.StandardClassLoader.findResource(StandardCla ssLo a der.java:527) at org.apache.catalina.loader.StandardClassLoader.getResource(StandardClas sLoa d er.java:603) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:895) at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:16 02) at org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:107) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(Gl obal R esourcesLifecycleListener.java:65) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.jav a:25 3 ) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester .jav a :65) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknow n Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartEl ement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi spat c her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn own Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:489) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:421) java.lang.reflect.InvocationTargetException: java.lang.ExceptionInInitializerError: sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at org.apache.catalina.loader.StandardClassLoader.findResource(StandardCla ssLo a der.java:527) at org.apache.catalina.loader.StandardClassLoader.getResource(StandardClas sLoa d er.java:603) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:895) at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:16 02) at org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:107) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(Gl obal R
RE: [ANN] Apache Tomcat 5.0.24 Stable released
Hi, Done. It was already set for the binary download pages, I did it for the source downloads page as well. Yoav Shapira Millennium Research Informatics -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 12:35 PM To: 'Tomcat Users List' Subject: RE: [ANN] Apache Tomcat 5.0.24 Stable released May I contribute? I'd love to see the Tomcat docs download links to be re-pointed to an actual Tomcat download directory, rather than the generic 'all' page for jakarta downloads. ie: http://jakarta.apache.org/site/sourceindex.cgi The links for downloads are direct to the zip files. The only way I can get to see the changelog, is to click 'tomcat 3' (which thankfully is still linked). This gets me to: http://apache.mirror.secondchapter.info/jakarta/tomcat-3/v3.3.2/src/ Then I click 'Parent Directory' 3 times Then I can click Tomcat 4 or tomcat 5, as I want. So, 1) the Tomcat docs download links should point to the actual directories from which I can download things, not just the generic jakarta page. 2) on the generic jakarta page, please link the tomcat 4 and tomcat 5 to those directories as well. I have also been frustrated at finding that changelog thingy. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 8:59 AM To: Tomcat Users List Subject: RE: [ANN] Apache Tomcat 5.0.24 Stable released Hi, I'm glad to help. I think we were both too edgy / attitude-y, but let's forget about that. What would have been the ideal location(s) for you to make finding the changelog trivial? We're always flexible towards accommodating user requests to make documentation easier to find/use. Yoav Shapira Millennium Research Informatics -Original Message- From: Zachary Hartley [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 9:53 AM To: Tomcat Users List Subject: Re: [ANN] Apache Tomcat 5.0.24 Stable released Shapira, Yoav wrote: I said the download pages for tomcat releases. Do you see any changelogs or other docs for any specific products on the URLs you posted above? No, because they're for all the Apache products. If you click on the tomcat links, you get a URL such as the one I quoted above, which has the changelog right along with the release notes. I see, thank you for pointing out the distinction to me. Zachary Hartley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Symlinks and jar files
Hey thanks, I removed the symlinks and put the webapp.xml file into the $CATALINA_HOME/conf/Catalina/localhost/ dir Irwin Williams -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 2:09 PM To: Tomcat Users List Subject: RE: Symlinks and jar files Hi, You're misusing the context path attribute completely, so correct that. You don't need to define a symlink in the webapps directory since you have the dspace.xml file. You don't need the Resources className=... in tomcat 5. Yoav Shapira Millennium Research Informatics -Original Message- From: Irwin Williams [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 2:05 PM To: Tomcat Users List Subject: Symlinks and jar files Hi all, I am trying to implement a web app called Dspace. For which, I am using Tomcat (v5) as a standalone servlet container on RH Linux. Everything else in the configuration seems to work fine, but when I try to plug the app into Tomcat via symlinking, Tomcat doesn't seem to find the relevant class files in the prescribed jar packages. In the $CATALINA_HOME/webapps directory, I have defined a symlink, /dspace, which points to /$DSPACE_INSTALL_DIR/jsp. And, in $CATALINA_HOME/conf/Catalina/localhost/dspace.xml, I have defined the context as: ?xml version='1.0' encoding='utf-8'? Context path=$DSPACE_INSTALL_DIR docBase=dspace debug=0 reloadable=true crossContext=true allowLinking=true Resources className=org.apache.naming.resources.FileDirContext/ /Context For example, one of the required files is called 'SimpleAuthenticator.class', and its located in a jar file called dspace.jar. Dspace.jar is located in /WEB-INF/lib. There are other jar files in this directory. Thus, I am wondering if Tomcat has to be explicitly told to look in this jar container, to identify the class as part of the web application. Any help in this regard is appreciated, Regards Irwin Williams -Original Message- From: Chris Purcell [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 12:11 PM To: [EMAIL PROTECTED] Subject: Re: mod_jk In the Apache error.log file, I get this when I restart Apache... [Fri May 14 12:13:40 2004] [notice] SIGHUP received. Attempting to restart No worker file and no worker options in httpd.conf \nuse JkWorkerFile to set workers\n [Fri May 14 12:13:41 2004] [notice] Apache/2.0.49 (Unix) mod_ssl/2.0.49 OpenSSL/0.9.7d configured -- resuming normal operations Does anyone know what that error means? Thanks, Chris Tomcat 4.1.30 Apache 2.0.49 tomcat-connectors-jk-1.2.5 (mod_jk) Red Hat Enterprise Linux ES 3.0 I have Tomcat and Apache both up and running okay, but I'm having a problem with mod_jk. When I try to execute .jsp pages from Apache I get a 500 Internal Server Error. I think this is a configuration issue somewhere in Tomcat. These are the changes I've made /usr/local/apache2/conf/httpd.conf... LoadModule jk_module modules/mod_jk.so Include /usr/local/tomcat/conf/auto/mod_jk.conf /usr/local/tomcat/conf/server.xml... I took the default file and just added two lines... Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / !-- Define the default virtual host -- Host name=tux.foo.org debug=0 appBase=webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/usr/local/apache2/modules/mod_jk.so / /usr/local/tomcat/conf/jk/workers.properties. worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 Anyone know whats up? Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail:
PHP and Tomcat
Can I use PHP in a web application? Its only for testing and so I'm not amused to configure Apache. The other way were to write the PHP-File in memory and execute php.exe example.php. Is there a good way to move this output into my webpage? Thanks in advance, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PHP and Tomcat
Hi, You can give this a shot: http://wiki.apache.org/jakarta-tomcat/UsingPhp. You can also capture the output from php.exe and render it onto your web page, but you need to write a bit of IO code for that. Yoav Shapira Millennium Research Informatics -Original Message- From: Michael Drewitz [mailto:[EMAIL PROTECTED] hamburg.de] Sent: Monday, May 17, 2004 1:30 PM To: [EMAIL PROTECTED] Subject: PHP and Tomcat Can I use PHP in a web application? Its only for testing and so I'm not amused to configure Apache. The other way were to write the PHP-File in memory and execute php.exe example.php. Is there a good way to move this output into my webpage? Thanks in advance, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: heap size profiling
can you look at the calls trace? and tell us what you see? having profile tomcat a lot the last 2 years, I personally haven't seen tomcat increase heap usage with no requests hitting tomcat. If anything, I consistently see tomcat4 and 5 maintain flat memory usage under constant load. In the case of no requests, it shouldn't be more 40mb of memory. do you have a webapp that does caching and refreshes? peter Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, I notice an auto increase (no webapp running) of memory heap with T4.1.29. Any idea ? It's almost impossible to have absolutely nothing running. If you have tomcat running, that's something (e.g. background processing threads that watch files to detect changes). However, you still shouldn't see huge jumps in memory if no users are hitting the server. What are your observation methods and results precisely? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! - Internet access at a great low price.
hwo to discover which app is is wating memory
Is there any way do discover which app is taking all the memory of the server? I have 21 applications running at our production server. And from some days to now my TC instance is running out of memory. I configured it to use 128 megs, as the machine is also used as http server and has just 256 mgs. In manager , server status givis me the total of memory used by tomcat, how do I find this use per app?? Will the answer be: use a profiler?? I think that this feature (mem per app) could help a lot to distinguish which app is consuming all the memory. Thanks -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
taglib - O'Reilly tutorial problem
I am running Tomcat 5.0.1.9 on OS X. I found an O'Reilly tutorial online (http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html) which I always find helpful. Following the tutorial, I got basic jsp/servlets working. The last part of the tutorial is creating custom tags, and when I implement that part of the tutorial, I receive a javax.servlet.ServletException: javax.servlet.jsp.tagext.TagInfo.init(...) exception. Googling the error didn't turn up any seemingly useful information, and the end of the article also did not show anyone else having the same issue. --code-- %@ taglib uri=/onjava prefix=onjava % html head titleOnJava Demo/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head table width=500 border=0 cellspacing=0 cellpadding=0 tr td /td /tr tr td img src=/onjava/images/monitor2.gif/td td !-- With this line uncommented and the next line commented (and the first line of the file deleted), everything works great -- !-- bWelcome : %= request.getAttribute(USER)%/b -- bonjava:hello / : %= request.getAttribute(USER) %/b !-- but I get the error with the current setup -- /td /tr tr td /td /tr /table /body /html --code- I feel like I'm missing something fairly obvious, but I've followed the tutorial exactly (as best I can tell). If it would help to see more code or anything please let me know and I'll post it. The web.xml has taglib tags and the taglib.tld is in the lib directory. If there are any resources you can point me to I'd be appreciative. Thanks for you consideration, matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javax.security.auth.subject disappears
Janne Väänänen wrote: I resolved this. The problem was in SecurityUtil.java execute method. fixed code in execute method: ... if (subject == null){ subject = new Subject(); //I added following two lines if (principal != null) subject.getPrincipals().add(principal); OK I will take a look and port your fix. Thanks -- Jeanfrancois session.setAttribute(Globals.SUBJECT_ATTR, subject); } ... -Original Message- From: Janne Väänänen Sent: 17. toukokuuta 2004 12:12 To: [EMAIL PROTECTED] Subject: javax.security.auth.subject disappears Filter detected spam Hi, I'm running tomcat 5 with -security option and I'm using JAAS login module. In the jsp pages in first request after I have identified my self Subject is null. When I hit refresh (second request) Subject is correct subject with principals etc. But after that in all requests Subject is empty, no principals etc. I use follwing code to get Subject: AccessControlContext acc = AccessController.getContext(); Subject sub = Subject.getSubject(acc); I checked tomcat src code that it uses javax.security.auth.subject attribute to store Subject in session. CoyoteRequest.java public void setUserPrincipal(Principal principal) { if (System.getSecurityManager() != null){ HttpSession session = getSession(false); if ( (subject != null) (!subject.getPrincipals().contains(principal)) ){ subject.getPrincipals().add(principal); } else if (session != null session.getAttribute(Globals.SUBJECT_ATTR) == null) { subject = new Subject(); subject.getPrincipals().add(principal); } if (session != null){ session.setAttribute(Globals.SUBJECT_ATTR, subject); } } this.userPrincipal = principal; } I guess that session.getAttribute(Globals.SUBJECT_ATTR) is somehow null after second request.. Any ideas what is causing this and how can I fix it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
taglib - O'Reilly tutorial problem
Return Receipt Your taglib - O'Reilly tutorial problem document : was Tom Williams/HQ/dssi received by: at: 05/17/2004 10:53:09 AM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: hwo to discover which app is is wating memory
Hi, profiler?? I think that this feature (mem per app) could help a lot to distinguish which app is consuming all the memory. I think this would be a spectacular feature as well. If you implement it, I'll gladly review and commit into the tomcat repository. That is, if other tomcat committers don't beat me to it, because they'd all want to see it. The reason the feature is not there is that the java heap is not hierarchical. There are X string instances taking up Y bytes of memory: there's no further categorization of them, e.g. by webapp (a foreign concept to the JVM) or by thread. You CAN get allocation backtraces for each instance, and keep track of those somehow if you'd like, e.g. by thread, but due to the tremendous runtime overhead involved, I'm not aware of any profiler that does that. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: hwo to discover which app is is wating memory
Hi, To continue my previous message, which I sent too early: so in practice, one way to find out is by stress testing one application at a time and seeing its memory usage to find the bad one if one exists. Yoav Shapira Millennium Research Informatics -Original Message- From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 1:56 PM To: Tomcat Users List Subject: hwo to discover which app is is wating memory Is there any way do discover which app is taking all the memory of the server? I have 21 applications running at our production server. And from some days to now my TC instance is running out of memory. I configured it to use 128 megs, as the machine is also used as http server and has just 256 mgs. In manager , server status givis me the total of memory used by tomcat, how do I find this use per app?? Will the answer be: use a profiler?? I think that this feature (mem per app) could help a lot to distinguish which app is consuming all the memory. Thanks -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: taglib - O'Reilly tutorial problem
On Mon, May 17, 2004 at 01:49:18PM -0400, Zollinhofer, Matt wrote: : The last part of the tutorial is creating custom tags, and when I : implement that part of the tutorial, I receive a : javax.servlet.ServletException: : javax.servlet.jsp.tagext.TagInfo.init(...) exception. Googling the : error didn't turn up any seemingly useful information, and the end of : the article also did not show anyone else having the same issue. : !-- bWelcome : %= request.getAttribute(USER)%/b -- :bonjava:hello / : %= request.getAttribute(USER) %/b What's the full stack trace? Barring that, I'll take a stab in the dark: does the custom tag take an argument, either as body content or an attribute? e.g. onjava:hello %= ... % /onjava:hello ? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: taglib - O'Reilly tutorial problem
Sorry for the incomplete exception, the server is running in a test environment totally cut off from any network (company policy) on my personal laptop. I'll post the whole exception later on this evening when I get home. The stab in the dark is quite appreciated, but no it does not take any arguments. --code-- package com.onjava; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspTagException; import javax.servlet.jsp.tagext.TagSupport; public class HelloTag extends TagSupport { public void HelloTag() { } public int doEndTag() throws JspException { try { pageContext.getOut().print(Hello); } catch (Exception e) { throw new JspTagException(e.getMessage()); } return SKIP_BODY; } public void release() { super.release(); } } --code-- any more thoughts/suggestions always welcome, matt -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 2:12 PM To: Tomcat Users List Subject: Re: taglib - O'Reilly tutorial problem On Mon, May 17, 2004 at 01:49:18PM -0400, Zollinhofer, Matt wrote: : The last part of the tutorial is creating custom tags, and when I : implement that part of the tutorial, I receive a : javax.servlet.ServletException: : javax.servlet.jsp.tagext.TagInfo.init(...) exception. Googling the : error didn't turn up any seemingly useful information, and the end of : the article also did not show anyone else having the same issue. : !-- bWelcome : %= request.getAttribute(USER)%/b -- :bonjava:hello / : %= request.getAttribute(USER) %/b What's the full stack trace? Barring that, I'll take a stab in the dark: does the custom tag take an argument, either as body content or an attribute? e.g. onjava:hello %= ... % /onjava:hello ? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can I create manager/admin contexts in a new host without restart ing Tomcat 5?
Tomcat 5 works well with context creation without shutting down the Tomcat server. However, I need to add admintool and manager contexts to a new host, e.g test.tlg.ca, so that I can reload/start/stop application contexts in test.tlg.ca host. However, it seems that the admintool/manager contexts for test.tlg.ca created using admintool under localhost host don't have privileged=true. Thus these contexts always throw exceptions. I can only manually put privileged=true in them and restart the whole server. Since my application will be deployed remotely and root access for manager.xml/admin.xml files won't be available, is there a workaround? Thank you very much. Best regards, Sheng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Apache Tomcat 5.0.24 Stable released
Shapira, Yoav wrote: Hi, I'm glad to help. I think we were both too edgy / attitude-y, but let's forget about that. What would have been the ideal location(s) for you to make finding the changelog trivial? We're always flexible towards accommodating user requests to make documentation easier to find/use. Well, having a link to the changelog directly from the announcement (email and jakarta news) and maybe putting a link directly from the tomcat menu would be my only suggestions. However, after thinking about it, putting the links under the documentation is perfectly alright, I was just used to seeing it more directly before. Definately my fault for flying off the handle. Zachary Hartley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does Tomcat 5 support reloading of xml configuration files change d externally?
I hope Tomcat 5 can have a reload feature like that of SunOne administration tool. That is, I can change the server.xml, manager.xml, and admin.xml manually, then let Tomcat admintool re-initialize itself. Now when I press Commit Changes, it always overwrites the changes I made. But admintool of Tomcat 5 missed a lot of tags in its user interface. Does Tomcat 5 support this? Thank you very much. Best regards, Sheng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question on Valves.
Hi, Does any one have experience in creating custom valves? Thanks, Sreeni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: InvalidJarIndexException
It seems like the 1.3 Java libs were the reason. I completely removed the Sun Java directory and re-installed everything and everything's working fine now. Kevin - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 17, 2004 11:43 AM Subject: RE: InvalidJarIndexException Hi, If you installed tomcat from a .tar.gz distribution, make sure to use GNU tar to unpack it. The normal Solaris tar doesn't handle the long paths correctly. Yoav Shapira Millennium Research Informatics -Original Message- From: Kevin Schroeder [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 12:38 PM To: Tomcat Users List Subject: InvalidJarIndexException Hello, I just installed Tomcat 5.0.24 on a Sparc Solaris 8 system with all the defaults in the config files with Java 1.4.2 just installed from Sun and when I run bin/startup.sh I get the following exceptions in catalina.out: [ERROR] Digester - -Begin event threw error java.lang.ExceptionInInitializerErrorjava.lang.ExceptionInInitializer Erro r : sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at org.apache.catalina.loader.StandardClassLoader.findResource(StandardCla ssLo a der.java:527) at org.apache.catalina.loader.StandardClassLoader.getResource(StandardClas sLoa d er.java:603) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:895) at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:16 02) at org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:107) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(Gl obal R esourcesLifecycleListener.java:65) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.jav a:25 3 ) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester .jav a :65) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknow n Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartEl ement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi spat c her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn own Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:489) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:421) java.lang.reflect.InvocationTargetException: java.lang.ExceptionInInitializerError: sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at org.apache.catalina.loader.StandardClassLoader.findResource(StandardCla ssLo a der.java:527) at org.apache.catalina.loader.StandardClassLoader.getResource(StandardClas sLoa d er.java:603) at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:895) at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:16 02) at org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:107) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(Gl obal R esourcesLifecycleListener.java:65) at java.lang.Class.newInstance0(Native Method)
Does Tomcat 5 supports stop/start/reload server through admintool ?
Does anyone know whether Tomcat 5 supports stop/start server through a GUI tool? Or can I reload all the contexts in all hosts through a GUI interface? Best regards, Sheng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question on Valves.
Hi, Yes ;) And I imagine numerous others on this list do as well ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Chippada, Sreeni [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 3:26 PM To: Tomcat Users List Subject: Question on Valves. Hi, Does any one have experience in creating custom valves? Thanks, Sreeni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does Tomcat 5 support reloading of xml configuration files changed externally?
Hi, I hope Tomcat 5 can have a reload feature like that of SunOne administration tool. That is, I can change the server.xml, manager.xml, and admin.xml manually, then let Tomcat admintool re-initialize itself. There are many different files involved and many sets of semantics. Changes to server.xml that are made by hand will not be picked up until the server is restarted. Changes to manager.xml and admin.xml affect only those webapps, not the rest of the server. Changes to the server made in the admin webapp take affect as immediately as possible (depends on the component being modified, e.g. new contexts can be started immediately). Changes to application's web.xml made by hand can be made to take effect immediately by using the manager webapp to reload the relevant application. Now when I press Commit Changes, it always overwrites the changes I made. But admintool of Tomcat 5 missed a lot of tags in its user interface. Does Tomcat 5 support this? Thank you very much. You may have made a typo above, meaning tomcat 4 missed a lot of tags? In any case, if you find something specific missing or lacking, we'll be happy to hear about it and address it, but let us know specifically what you're missing. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does Tomcat 5 support reloading of xml configuration files ch anged externally?
Hi Yoav, Thank you very much for your reply. As in the last two emails I just sent, what I need is to create new host, then create new context, then load the new context application in the new host using the manager tool. But the manager context I created using admintool doesn't have privileged=true thus it can't be started thus it can't be used to start my new application in turn. My application uses global resource link to global datasource, thus it won't be correctly initialized after new context creation and need reloading using manager tool. It seems that a single context configuration change will cause the whole server to reload itself. Thus I just tried that manually put privileged=true to manager.xml and admin.xml of the new test.tlg.ca host, modify one context property in my localhost host, then commit changes. Tomcat 5 reloads all the two hosts, keeps the privileged=true in admin.xml but overwrites privileged=true in manager.xml. Sorry that I did not make myself clear. I said Tomcat 5 missed a lot of tags, which means Tomcat 5 doesn't provide GUI configuration of tags such as privileged. Could you give me more information? Thank you very much. Best regards, Sheng -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: May 17, 2004 2:32 PM To: Tomcat Users List Subject: RE: Does Tomcat 5 support reloading of xml configuration files changed externally? Hi, I hope Tomcat 5 can have a reload feature like that of SunOne administration tool. That is, I can change the server.xml, manager.xml, and admin.xml manually, then let Tomcat admintool re-initialize itself. There are many different files involved and many sets of semantics. Changes to server.xml that are made by hand will not be picked up until the server is restarted. Changes to manager.xml and admin.xml affect only those webapps, not the rest of the server. Changes to the server made in the admin webapp take affect as immediately as possible (depends on the component being modified, e.g. new contexts can be started immediately). Changes to application's web.xml made by hand can be made to take effect immediately by using the manager webapp to reload the relevant application. Now when I press Commit Changes, it always overwrites the changes I made. But admintool of Tomcat 5 missed a lot of tags in its user interface. Does Tomcat 5 support this? Thank you very much. You may have made a typo above, meaning tomcat 4 missed a lot of tags? In any case, if you find something specific missing or lacking, we'll be happy to hear about it and address it, but let us know specifically what you're missing. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question on Valves.
Hi Yoav, Before posting the question, I was having trouble deploying a valve. I was not sure if valves are internal to tomcat or developer can customize. I should have phrased my question better. Sorry about that. I am able to deploy it now by jarring my custom valve and placing it in the %CATALINA_HOME%\server\lib directory. Is this the right way to do it? Thanks, Sreeni -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 3:33 PM To: Tomcat Users List Subject: RE: Question on Valves. Hi, Yes ;) And I imagine numerous others on this list do as well ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Chippada, Sreeni [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 3:26 PM To: Tomcat Users List Subject: Question on Valves. Hi, Does any one have experience in creating custom valves? Thanks, Sreeni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does Tomcat 5 supports stop/start/reload server through admintool ?
Quoting Sheng Huang [EMAIL PROTECTED]: Does anyone know whether Tomcat 5 supports stop/start server through a GUI tool? Or can I reload all the contexts in all hosts through a GUI interface? Look at the manager app: http://localhost:8080/manager/html/list You'll have to set up a user in tomcat-users.xml with the role of manager before you do this. Then log in with that user at the URL above. Jake Best regards, Sheng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question on Valves.
Hi, I am able to deploy it now by jarring my custom valve and placing it in the %CATALINA_HOME%\server\lib directory. Is this the right way to do it? $CATALINA_HOME/common/lib might work as well. (Or unjarred in server/classes or common/classes). The Valve's class must be visible to the server or common classloader. So you can't put them in WEB-INF/lib or WEB-INF/classes. That's the long answer, the short one to your question above is: yes, that's OK. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question on Valves.
Thanks. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 4:01 PM To: Tomcat Users List Subject: RE: Question on Valves. Hi, I am able to deploy it now by jarring my custom valve and placing it in the %CATALINA_HOME%\server\lib directory. Is this the right way to do it? $CATALINA_HOME/common/lib might work as well. (Or unjarred in server/classes or common/classes). The Valve's class must be visible to the server or common classloader. So you can't put them in WEB-INF/lib or WEB-INF/classes. That's the long answer, the short one to your question above is: yes, that's OK. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hwo to discover which app is is wating memory
That's was I thought at first. Hadn't thought of all the implications in having the statistics broken by app. thanks a lot anyway. Emerson Shapira, Yoav wrote: Hi, To continue my previous message, which I sent too early: so in practice, one way to find out is by stress testing one application at a time and seeing its memory usage to find the bad one if one exists. Yoav Shapira Millennium Research Informatics -Original Message- From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 1:56 PM To: Tomcat Users List Subject: hwo to discover which app is is wating memory Is there any way do discover which app is taking all the memory of the server? I have 21 applications running at our production server. And from some days to now my TC instance is running out of memory. I configured it to use 128 megs, as the machine is also used as http server and has just 256 mgs. In manager , server status givis me the total of memory used by tomcat, how do I find this use per app?? Will the answer be: use a profiler?? I think that this feature (mem per app) could help a lot to distinguish which app is consuming all the memory. Thanks -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hwo to discover which app is is wating memory
use a profile, you will discover it instantly - Original Message - From: Emerson Cargnin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 17, 2004 3:29 PM Subject: Re: hwo to discover which app is is wating memory That's was I thought at first. Hadn't thought of all the implications in having the statistics broken by app. thanks a lot anyway. Emerson Shapira, Yoav wrote: Hi, To continue my previous message, which I sent too early: so in practice, one way to find out is by stress testing one application at a time and seeing its memory usage to find the bad one if one exists. Yoav Shapira Millennium Research Informatics -Original Message- From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 1:56 PM To: Tomcat Users List Subject: hwo to discover which app is is wating memory Is there any way do discover which app is taking all the memory of the server? I have 21 applications running at our production server. And from some days to now my TC instance is running out of memory. I configured it to use 128 megs, as the machine is also used as http server and has just 256 mgs. In manager , server status givis me the total of memory used by tomcat, how do I find this use per app?? Will the answer be: use a profiler?? I think that this feature (mem per app) could help a lot to distinguish which app is consuming all the memory. Thanks -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Document
Important document! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
httpd jk2 connections persisting in CLOSE_WAIT state
Dear all, Im running Httpd 2.0.48 Tomcat 4.1.24 Connect by JK2 (unfortunately, I have no record of the version number) on RH9 This set-up has worked really well, up till recently, where I found that after a couple of visits to the JSP pages compiled by my tomcat server caused a couple of CLOSE_WAIT connections to persist: tcp1 0 127.0.0.1:42567 127.0.0.1:8009 CLOSE_WAIT The JK2 connector is running at port 8009, and this is the connection between a spawned httpd process and the JK2 connector, or so I believe. I recently did a massive cut down on my server.xml file, (backing it up of course) to all the essentials I thought I needed and nothing more. So I'm posting it below: Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Monster !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=99 scheme=http connectionTimeout=6000 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=0 Valve className=org.apache.catalina.valves.RequestDumperValve/ !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true verbosity=4/ Host name=monster.northwestern.edu debug=99 appBase=/home/monster/web unpackWARs=false autoDeploy=false Context path= docBase= debug=99 reloadable=false/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=monster_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host /Engine /Service /Server my website is not going to be used a lot, maybe more in July, but I really need to make sure I can keep it running for months on end, and there's no way its doing that, it keeps getting 'blocked' by these CLOSE_WAITs im getting, any insight? By the way, when I shut down Catalina, the CLOSE_WAITs persist, but they go away if I restart httpd. Cheers Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does Tomcat 5 supports stop/start/reload server through admin tool ?
Hi Jake, Thanks a lot for your reply. However, I am going to create the context of the new manager application for the new host (e.g. test.tlg.ca). But the manager context created in http://localhost:8080/admin won't be initialized correctly without the privileged attribute. And on my machine, to access the manager application, I need to use http://localhost:8080/manager/list instead of http://localhost:8080/manager/html/list. Hope this won't be the problem. Could you give me more ideas? Thank you very much. Best regards, Sheng -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: May 17, 2004 3:08 PM To: Tomcat Users List Subject: Re: Does Tomcat 5 supports stop/start/reload server through admintool ? Quoting Sheng Huang [EMAIL PROTECTED]: Does anyone know whether Tomcat 5 supports stop/start server through a GUI tool? Or can I reload all the contexts in all hosts through a GUI interface? Look at the manager app: http://localhost:8080/manager/html/list You'll have to set up a user in tomcat-users.xml with the role of manager before you do this. Then log in with that user at the URL above. Jake Best regards, Sheng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]